var m7=Object.defineProperty;var NO=Ut=>{throw TypeError(Ut)};var g7=(Ut,Kt,ce)=>Kt in Ut?m7(Ut,Kt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ut[Kt]=ce;var Wt=(Ut,Kt,ce)=>g7(Ut,typeof Kt!="symbol"?Kt+"":Kt,ce),L0=(Ut,Kt,ce)=>Kt.has(Ut)||NO("Cannot "+ce);var A=(Ut,Kt,ce)=>(L0(Ut,Kt,"read from private field"),ce?ce.call(Ut):Kt.get(Ut)),yt=(Ut,Kt,ce)=>Kt.has(Ut)?NO("Cannot add the same private member more than once"):Kt instanceof WeakSet?Kt.add(Ut):Kt.set(Ut,ce),ut=(Ut,Kt,ce,fs)=>(L0(Ut,Kt,"write to private field"),fs?fs.call(Ut,ce):Kt.set(Ut,ce),ce),zt=(Ut,Kt,ce)=>(L0(Ut,Kt,"access private method"),ce);var Ld=(Ut,Kt,ce,fs)=>({set _(zd){ut(Ut,Kt,zd,ce)},get _(){return A(Ut,Kt,fs)}});try{(function(){var Ut=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Kt=new Ut.Error().stack;Kt&&(Ut._sentryDebugIds=Ut._sentryDebugIds||{},Ut._sentryDebugIds[Kt]="b19a73e1-aac8-42af-90be-9f28f5cc01c6",Ut._sentryDebugIdIdentifier="sentry-dbid-b19a73e1-aac8-42af-90be-9f28f5cc01c6")})()}catch{}(function(){"use strict";var Ri,bg,_C,js,Oi,Ya,AC,Ka,ki,$a,RC,zs,OC,Bs,Xa,Yn,Us,Ue,$l,Is,lr,pi,kC,mn,Ht,Xl,sn,Ps,Qa,Hr,Di,Ql,Za,Ja,qs,Fs,Mi,Wa,Jt,Ku,j0,z0,B0,U0,I0,P0,q0,LO,DC,Zl,Rr,an,Vs,Or,cs,MC,Gr,ur,Jl,NC,Yr,Ni,gn,Kr,$r,jd,F0,LC,kr,jC,ve,Li,ji,to,eo,zi,no,ro,zC,Dr,Mr,cr,Bi,Hs,io,Ui;function Ut(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}},ce={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fs;function zd(){if(fs)return ce;fs=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,a,l){var u=null;if(l!==void 0&&(u=""+l),a.key!==void 0&&(u=""+a.key),"key"in a){l={};for(var f in a)f!=="key"&&(l[f]=a[f])}else l=a;return a=l.ref,{$$typeof:t,type:i,key:u,ref:a!==void 0?a:null,props:l}}return ce.Fragment=e,ce.jsx=n,ce.jsxs=n,ce}var V0;function zO(){return V0||(V0=1,Kt.exports=zd()),Kt.exports}var N=zO(),Bd={exports:{}},Yo={},Ud={exports:{}},Id={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var H0;function BO(){return H0||(H0=1,(function(t){function e(Q,Y){var F=Q.length;Q.push(Y);t:for(;0<F;){var gt=F-1>>>1,O=Q[gt];if(0<a(O,Y))Q[gt]=Y,Q[F]=O,F=gt;else break t}}function n(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var Y=Q[0],F=Q.pop();if(F!==Y){Q[0]=F;t:for(var gt=0,O=Q.length,xt=O>>>1;gt<xt;){var D=2*(gt+1)-1,T=Q[D],J=D+1,ot=Q[J];if(0>a(T,F))J<O&&0>a(ot,T)?(Q[gt]=ot,Q[J]=F,gt=J):(Q[gt]=T,Q[D]=F,gt=D);else if(J<O&&0>a(ot,F))Q[gt]=ot,Q[J]=F,gt=J;else break t}}return Y}function a(Q,Y){var F=Q.sortIndex-Y.sortIndex;return F!==0?F:Q.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var d=[],h=[],m=1,y=null,b=3,v=!1,w=!1,E=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function U(Q){for(var Y=n(h);Y!==null;){if(Y.callback===null)i(h);else if(Y.startTime<=Q)i(h),Y.sortIndex=Y.expirationTime,e(d,Y);else break;Y=n(h)}}function G(Q){if(E=!1,U(Q),!w)if(n(d)!==null)w=!0,z||(z=!0,st());else{var Y=n(h);Y!==null&&it(G,Y.startTime-Q)}}var z=!1,q=-1,M=5,P=-1;function K(){return C?!0:!(t.unstable_now()-P<M)}function nt(){if(C=!1,z){var Q=t.unstable_now();P=Q;var Y=!0;try{t:{w=!1,E&&(E=!1,L(q),q=-1),v=!0;var F=b;try{e:{for(U(Q),y=n(d);y!==null&&!(y.expirationTime>Q&&K());){var gt=y.callback;if(typeof gt=="function"){y.callback=null,b=y.priorityLevel;var O=gt(y.expirationTime<=Q);if(Q=t.unstable_now(),typeof O=="function"){y.callback=O,U(Q),Y=!0;break e}y===n(d)&&i(d),U(Q)}else i(d);y=n(d)}if(y!==null)Y=!0;else{var xt=n(h);xt!==null&&it(G,xt.startTime-Q),Y=!1}}break t}finally{y=null,b=F,v=!1}Y=void 0}}finally{Y?st():z=!1}}}var st;if(typeof R=="function")st=function(){R(nt)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,at=ft.port2;ft.port1.onmessage=nt,st=function(){at.postMessage(null)}}else st=function(){_(nt,0)};function it(Q,Y){q=_(function(){Q(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(Q){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var F=b;b=Y;try{return Q()}finally{b=F}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(Q,Y){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var F=b;b=Q;try{return Y()}finally{b=F}},t.unstable_scheduleCallback=function(Q,Y,F){var gt=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?gt+F:gt):F=gt,Q){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=F+O,Q={id:m++,callback:Y,priorityLevel:Q,startTime:F,expirationTime:O,sortIndex:-1},F>gt?(Q.sortIndex=F,e(h,Q),n(d)===null&&Q===n(h)&&(E?(L(q),q=-1):E=!0,it(G,F-gt))):(Q.sortIndex=O,e(d,Q),w||v||(w=!0,z||(z=!0,st()))),Q},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(Q){var Y=b;return function(){var F=b;b=Y;try{return Q.apply(this,arguments)}finally{b=F}}}})(Id)),Id}var G0;function UO(){return G0||(G0=1,Ud.exports=BO()),Ud.exports}var Pd={exports:{}},Ot={},Y0;function IO(){if(Y0)return Ot;Y0=1;var t={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function L(D,T,J){this.props=D,this.context=T,this.refs=_,this.updater=J||E}L.prototype.isReactComponent={},L.prototype.setState=function(D,T){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,T,"setState")},L.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function R(){}R.prototype=L.prototype;function U(D,T,J){this.props=D,this.context=T,this.refs=_,this.updater=J||E}var G=U.prototype=new R;G.constructor=U,C(G,L.prototype),G.isPureReactComponent=!0;var z=Array.isArray;function q(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function K(D,T,J){var ot=J.ref;return{$$typeof:e,type:D,key:T,ref:ot!==void 0?ot:null,props:J}}function nt(D,T){return K(D.type,T,D.props)}function st(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function ft(D){var T={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(J){return T[J]})}var at=/\/+/g;function it(D,T){return typeof D=="object"&&D!==null&&D.key!=null?ft(""+D.key):T.toString(36)}function Q(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(q,q):(D.status="pending",D.then(function(T){D.status==="pending"&&(D.status="fulfilled",D.value=T)},function(T){D.status==="pending"&&(D.status="rejected",D.reason=T)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function Y(D,T,J,ot,vt){var dt=typeof D;(dt==="undefined"||dt==="boolean")&&(D=null);var wt=!1;if(D===null)wt=!0;else switch(dt){case"bigint":case"string":case"number":wt=!0;break;case"object":switch(D.$$typeof){case e:case n:wt=!0;break;case y:return wt=D._init,Y(wt(D._payload),T,J,ot,vt)}}if(wt)return vt=vt(D),wt=ot===""?"."+it(D,0):ot,z(vt)?(J="",wt!=null&&(J=wt.replace(at,"$&/")+"/"),Y(vt,T,J,"",function(Ve){return Ve})):vt!=null&&(st(vt)&&(vt=nt(vt,J+(vt.key==null||D&&D.key===vt.key?"":(""+vt.key).replace(at,"$&/")+"/")+wt)),T.push(vt)),1;wt=0;var Gt=ot===""?".":ot+":";if(z(D))for(var qt=0;qt<D.length;qt++)ot=D[qt],dt=Gt+it(ot,qt),wt+=Y(ot,T,J,dt,vt);else if(qt=w(D),typeof qt=="function")for(D=qt.call(D),qt=0;!(ot=D.next()).done;)ot=ot.value,dt=Gt+it(ot,qt++),wt+=Y(ot,T,J,dt,vt);else if(dt==="object"){if(typeof D.then=="function")return Y(Q(D),T,J,ot,vt);throw T=String(D),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return wt}function F(D,T,J){if(D==null)return D;var ot=[],vt=0;return Y(D,ot,"","",function(dt){return T.call(J,dt,vt++)}),ot}function gt(D){if(D._status===-1){var T=D._result;T=T(),T.then(function(J){(D._status===0||D._status===-1)&&(D._status=1,D._result=J)},function(J){(D._status===0||D._status===-1)&&(D._status=2,D._result=J)}),D._status===-1&&(D._status=0,D._result=T)}if(D._status===1)return D._result.default;throw D._result}var O=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(T))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",D);return}console.error(D)},xt={map:F,forEach:function(D,T,J){F(D,function(){T.apply(this,arguments)},J)},count:function(D){var T=0;return F(D,function(){T++}),T},toArray:function(D){return F(D,function(T){return T})||[]},only:function(D){if(!st(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ot.Activity=b,Ot.Children=xt,Ot.Component=L,Ot.Fragment=i,Ot.Profiler=l,Ot.PureComponent=U,Ot.StrictMode=a,Ot.Suspense=h,Ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ot.__COMPILER_RUNTIME={__proto__:null,c:function(D){return M.H.useMemoCache(D)}},Ot.cache=function(D){return function(){return D.apply(null,arguments)}},Ot.cacheSignal=function(){return null},Ot.cloneElement=function(D,T,J){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ot=C({},D.props),vt=D.key;if(T!=null)for(dt in T.key!==void 0&&(vt=""+T.key),T)!P.call(T,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&T.ref===void 0||(ot[dt]=T[dt]);var dt=arguments.length-2;if(dt===1)ot.children=J;else if(1<dt){for(var wt=Array(dt),Gt=0;Gt<dt;Gt++)wt[Gt]=arguments[Gt+2];ot.children=wt}return K(D.type,vt,ot)},Ot.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Ot.createElement=function(D,T,J){var ot,vt={},dt=null;if(T!=null)for(ot in T.key!==void 0&&(dt=""+T.key),T)P.call(T,ot)&&ot!=="key"&&ot!=="__self"&&ot!=="__source"&&(vt[ot]=T[ot]);var wt=arguments.length-2;if(wt===1)vt.children=J;else if(1<wt){for(var Gt=Array(wt),qt=0;qt<wt;qt++)Gt[qt]=arguments[qt+2];vt.children=Gt}if(D&&D.defaultProps)for(ot in wt=D.defaultProps,wt)vt[ot]===void 0&&(vt[ot]=wt[ot]);return K(D,dt,vt)},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(D){return{$$typeof:d,render:D}},Ot.isValidElement=st,Ot.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:gt}},Ot.memo=function(D,T){return{$$typeof:m,type:D,compare:T===void 0?null:T}},Ot.startTransition=function(D){var T=M.T,J={};M.T=J;try{var ot=D(),vt=M.S;vt!==null&&vt(J,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&ot.then(q,O)}catch(dt){O(dt)}finally{T!==null&&J.types!==null&&(T.types=J.types),M.T=T}},Ot.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ot.use=function(D){return M.H.use(D)},Ot.useActionState=function(D,T,J){return M.H.useActionState(D,T,J)},Ot.useCallback=function(D,T){return M.H.useCallback(D,T)},Ot.useContext=function(D){return M.H.useContext(D)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(D,T){return M.H.useDeferredValue(D,T)},Ot.useEffect=function(D,T){return M.H.useEffect(D,T)},Ot.useEffectEvent=function(D){return M.H.useEffectEvent(D)},Ot.useId=function(){return M.H.useId()},Ot.useImperativeHandle=function(D,T,J){return M.H.useImperativeHandle(D,T,J)},Ot.useInsertionEffect=function(D,T){return M.H.useInsertionEffect(D,T)},Ot.useLayoutEffect=function(D,T){return M.H.useLayoutEffect(D,T)},Ot.useMemo=function(D,T){return M.H.useMemo(D,T)},Ot.useOptimistic=function(D,T){return M.H.useOptimistic(D,T)},Ot.useReducer=function(D,T,J){return M.H.useReducer(D,T,J)},Ot.useRef=function(D){return M.H.useRef(D)},Ot.useState=function(D){return M.H.useState(D)},Ot.useSyncExternalStore=function(D,T,J){return M.H.useSyncExternalStore(D,T,J)},Ot.useTransition=function(){return M.H.useTransition()},Ot.version="19.2.0",Ot}var K0;function qd(){return K0||(K0=1,Pd.exports=IO()),Pd.exports}var Fd={exports:{}},Xe={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $0;function PO(){if($0)return Xe;$0=1;var t=qd();function e(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(d,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:d,containerInfo:h,implementation:m}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Xe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Xe.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return l(d,h,null,m)},Xe.flushSync=function(d){var h=u.T,m=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=h,i.p=m,i.d.f()}},Xe.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},Xe.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},Xe.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:v}):m==="script"&&i.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Xe.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},Xe.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Xe.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},Xe.requestFormReset=function(d){i.d.r(d)},Xe.unstable_batchedUpdates=function(d,h){return d(h)},Xe.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},Xe.useFormStatus=function(){return u.H.useHostTransitionStatus()},Xe.version="19.2.0",Xe}var X0;function Q0(){if(X0)return Fd.exports;X0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Fd.exports=PO(),Fd.exports}var Z0;function qO(){if(Z0)return Yo;Z0=1;var t={};/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e=UO(),n=qd(),i=Q0();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function u(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function f(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function d(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function h(r){if(u(r)!==r)throw Error(a(188))}function m(r){var s=r.alternate;if(!s){if(s=u(r),s===null)throw Error(a(188));return s!==r?null:r}for(var o=r,c=s;;){var p=o.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){o=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===o)return h(p),r;if(g===c)return h(p),s;g=g.sibling}throw Error(a(188))}if(o.return!==c.return)o=p,c=g;else{for(var x=!1,S=p.child;S;){if(S===o){x=!0,o=p,c=g;break}if(S===c){x=!0,c=p,o=g;break}S=S.sibling}if(!x){for(S=g.child;S;){if(S===o){x=!0,o=g,c=p;break}if(S===c){x=!0,c=g,o=p;break}S=S.sibling}if(!x)throw Error(a(189))}}if(o.alternate!==c)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?r:s}function y(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=y(r),s!==null)return s;r=r.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),U=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),nt=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function ft(r){return r===null||typeof r!="object"?null:(r=st&&r[st]||r["@@iterator"],typeof r=="function"?r:null)}var at=Symbol.for("react.client.reference");function it(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===at?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case C:return"Fragment";case L:return"Profiler";case _:return"StrictMode";case z:return"Suspense";case q:return"SuspenseList";case K:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case E:return"Portal";case U:return r.displayName||"Context";case R:return(r._context.displayName||"Context")+".Consumer";case G:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case M:return s=r.displayName||null,s!==null?s:it(r.type)||"Memo";case P:s=r._payload,r=r._init;try{return it(r(s))}catch{}}return null}var Q=Array.isArray,Y=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt={pending:!1,data:null,method:null,action:null},O=[],xt=-1;function D(r){return{current:r}}function T(r){0>xt||(r.current=O[xt],O[xt]=null,xt--)}function J(r,s){xt++,O[xt]=r.current,r.current=s}var ot=D(null),vt=D(null),dt=D(null),wt=D(null);function Gt(r,s){switch(J(dt,s),J(vt,r),J(ot,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?nO(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=nO(s),r=rO(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}T(ot),J(ot,r)}function qt(){T(ot),T(vt),T(dt)}function Ve(r){r.memoizedState!==null&&J(wt,r);var s=ot.current,o=rO(s,r.type);s!==o&&(J(vt,r),J(ot,o))}function yn(r){vt.current===r&&(T(ot),T(vt)),wt.current===r&&(T(wt),Vu._currentValue=gt)}var We,bn;function Kn(r){if(We===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);We=s&&s[1]||"",bn=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+We+r+bn}var Ii=!1;function so(r,s){if(!r||Ii)return"";Ii=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(s){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Z){var $=Z}Reflect.construct(r,[],rt)}else{try{rt.call()}catch(Z){$=Z}r.call(rt.prototype)}}else{try{throw Error()}catch(Z){$=Z}(rt=r())&&typeof rt.catch=="function"&&rt.catch(function(){})}}catch(Z){if(Z&&$&&typeof Z.stack=="string")return[Z.stack,$.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),x=g[0],S=g[1];if(x&&S){var k=x.split(`
`),H=S.split(`
`);for(p=c=0;c<k.length&&!k[c].includes("DetermineComponentFrameRoot");)c++;for(;p<H.length&&!H[p].includes("DetermineComponentFrameRoot");)p++;if(c===k.length||p===H.length)for(c=k.length-1,p=H.length-1;1<=c&&0<=p&&k[c]!==H[p];)p--;for(;1<=c&&0<=p;c--,p--)if(k[c]!==H[p]){if(c!==1||p!==1)do if(c--,p--,0>p||k[c]!==H[p]){var W=`
`+k[c].replace(" at new "," at ");return r.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",r.displayName)),W}while(1<=c&&0<=p);break}}}finally{Ii=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Kn(o):""}function vg(r,s){switch(r.tag){case 26:case 27:case 5:return Kn(r.type);case 16:return Kn("Lazy");case 13:return r.child!==s&&s!==null?Kn("Suspense Fallback"):Kn("Suspense");case 19:return Kn("SuspenseList");case 0:case 15:return so(r.type,!1);case 11:return so(r.type.render,!1);case 1:return so(r.type,!0);case 31:return Kn("Activity");default:return""}}function Wl(r){try{var s="",o=null;do s+=vg(r,o),o=r,r=r.return;while(r);return s}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}var ao=Object.prototype.hasOwnProperty,tu=e.unstable_scheduleCallback,eu=e.unstable_cancelCallback,xg=e.unstable_shouldYield,wg=e.unstable_requestPaint,on=e.unstable_now,tt=e.unstable_getCurrentPriorityLevel,ct=e.unstable_ImmediatePriority,Rt=e.unstable_UserBlockingPriority,jt=e.unstable_NormalPriority,te=e.unstable_LowPriority,vn=e.unstable_IdlePriority,Xr=e.log,fr=e.unstable_setDisableYieldValue,dr=null,ze=null;function xe(r){if(typeof Xr=="function"&&fr(r),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(dr,r)}catch{}}var Oe=Math.clz32?Math.clz32:e8,hr=Math.log,t8=Math.LN2;function e8(r){return r>>>=0,r===0?32:31-(hr(r)/t8|0)|0}var bf=256,vf=262144,xf=4194304;function Gs(r){var s=r&42;if(s!==0)return s;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function wf(r,s,o){var c=r.pendingLanes;if(c===0)return 0;var p=0,g=r.suspendedLanes,x=r.pingedLanes;r=r.warmLanes;var S=c&134217727;return S!==0?(c=S&~g,c!==0?p=Gs(c):(x&=S,x!==0?p=Gs(x):o||(o=S&~r,o!==0&&(p=Gs(o))))):(S=c&~g,S!==0?p=Gs(S):x!==0?p=Gs(x):o||(o=c&~r,o!==0&&(p=Gs(o)))),p===0?0:s!==0&&s!==p&&(s&g)===0&&(g=p&-p,o=s&-s,g>=o||g===32&&(o&4194048)!==0)?s:p}function nu(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function n8(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 BC(){var r=xf;return xf<<=1,(xf&62914560)===0&&(xf=4194304),r}function Sg(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function ru(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function r8(r,s,o,c,p,g){var x=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var S=r.entanglements,k=r.expirationTimes,H=r.hiddenUpdates;for(o=x&~o;0<o;){var W=31-Oe(o),rt=1<<W;S[W]=0,k[W]=-1;var $=H[W];if($!==null)for(H[W]=null,W=0;W<$.length;W++){var Z=$[W];Z!==null&&(Z.lane&=-536870913)}o&=~rt}c!==0&&UC(r,c,0),g!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=g&~(x&~s))}function UC(r,s,o){r.pendingLanes|=s,r.suspendedLanes&=~s;var c=31-Oe(s);r.entangledLanes|=s,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function IC(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-Oe(o),p=1<<c;p&s|r[c]&s&&(r[c]|=s),o&=~p}}function PC(r,s){var o=s&-s;return o=(o&42)!==0?1:Eg(o),(o&(r.suspendedLanes|s))!==0?0:o}function Eg(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Tg(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function qC(){var r=F.p;return r!==0?r:(r=window.event,r===void 0?32:_O(r.type))}function FC(r,s){var o=F.p;try{return F.p=r,s()}finally{F.p=o}}var Pi=Math.random().toString(36).slice(2),He="__reactFiber$"+Pi,xn="__reactProps$"+Pi,oo="__reactContainer$"+Pi,Cg="__reactEvents$"+Pi,i8="__reactListeners$"+Pi,s8="__reactHandles$"+Pi,VC="__reactResources$"+Pi,iu="__reactMarker$"+Pi;function _g(r){delete r[He],delete r[xn],delete r[Cg],delete r[i8],delete r[s8]}function lo(r){var s=r[He];if(s)return s;for(var o=r.parentNode;o;){if(s=o[oo]||o[He]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=cO(r);r!==null;){if(o=r[He])return o;r=cO(r)}return s}r=o,o=r.parentNode}return null}function uo(r){if(r=r[He]||r[oo]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function su(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(a(33))}function co(r){var s=r[VC];return s||(s=r[VC]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ie(r){r[iu]=!0}var HC=new Set,GC={};function Ys(r,s){fo(r,s),fo(r+"Capture",s)}function fo(r,s){for(GC[r]=s,r=0;r<s.length;r++)HC.add(s[r])}var a8=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]*$"),YC={},KC={};function o8(r){return ao.call(KC,r)?!0:ao.call(YC,r)?!1:a8.test(r)?KC[r]=!0:(YC[r]=!0,!1)}function Sf(r,s,o){if(o8(s))if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var c=s.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+o)}}function Ef(r,s,o){if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+o)}}function Qr(r,s,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(s,o,""+c)}}function $n(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function $C(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function l8(r,s,o){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,s);if(!r.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,g=c.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return p.call(this)},set:function(x){o=""+x,g.call(this,x)}}),Object.defineProperty(r,s,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Ag(r){if(!r._valueTracker){var s=$C(r)?"checked":"value";r._valueTracker=l8(r,s,""+r[s])}}function XC(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=$C(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function Tf(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var u8=/[\n"\\]/g;function Xn(r){return r.replace(u8,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Rg(r,s,o,c,p,g,x,S){r.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?r.type=x:r.removeAttribute("type"),s!=null?x==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+$n(s)):r.value!==""+$n(s)&&(r.value=""+$n(s)):x!=="submit"&&x!=="reset"||r.removeAttribute("value"),s!=null?Og(r,x,$n(s)):o!=null?Og(r,x,$n(o)):c!=null&&r.removeAttribute("value"),p==null&&g!=null&&(r.defaultChecked=!!g),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?r.name=""+$n(S):r.removeAttribute("name")}function QC(r,s,o,c,p,g,x,S){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),s!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||s!=null)){Ag(r);return}o=o!=null?""+$n(o):"",s=s!=null?""+$n(s):o,S||s===r.value||(r.value=s),r.defaultValue=s}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=S?r.checked:!!c,r.defaultChecked=!!c,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.name=x),Ag(r)}function Og(r,s,o){s==="number"&&Tf(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function ho(r,s,o,c){if(r=r.options,s){s={};for(var p=0;p<o.length;p++)s["$"+o[p]]=!0;for(o=0;o<r.length;o++)p=s.hasOwnProperty("$"+r[o].value),r[o].selected!==p&&(r[o].selected=p),p&&c&&(r[o].defaultSelected=!0)}else{for(o=""+$n(o),s=null,p=0;p<r.length;p++){if(r[p].value===o){r[p].selected=!0,c&&(r[p].defaultSelected=!0);return}s!==null||r[p].disabled||(s=r[p])}s!==null&&(s.selected=!0)}}function ZC(r,s,o){if(s!=null&&(s=""+$n(s),s!==r.value&&(r.value=s),o==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=o!=null?""+$n(o):""}function JC(r,s,o,c){if(s==null){if(c!=null){if(o!=null)throw Error(a(92));if(Q(c)){if(1<c.length)throw Error(a(93));c=c[0]}o=c}o==null&&(o=""),s=o}o=$n(s),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),Ag(r)}function po(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var c8=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 WC(r,s,o){var c=s.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":c?r.setProperty(s,o):typeof o!="number"||o===0||c8.has(s)?s==="float"?r.cssFloat=o:r[s]=(""+o).trim():r[s]=o+"px"}function t_(r,s,o){if(s!=null&&typeof s!="object")throw Error(a(62));if(r=r.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||s!=null&&s.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var p in s)c=s[p],s.hasOwnProperty(p)&&o[p]!==c&&WC(r,p,c)}else for(var g in s)s.hasOwnProperty(g)&&WC(r,g,s[g])}function kg(r){if(r.indexOf("-")===-1)return!1;switch(r){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 f8=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"]]),d8=/^[\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 Cf(r){return d8.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Zr(){}var Dg=null;function Mg(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var mo=null,go=null;function e_(r){var s=uo(r);if(s&&(r=s.stateNode)){var o=r[xn]||null;t:switch(r=s.stateNode,s.type){case"input":if(Rg(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),s=o.name,o.type==="radio"&&s!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Xn(""+s)+'"][type="radio"]'),s=0;s<o.length;s++){var c=o[s];if(c!==r&&c.form===r.form){var p=c[xn]||null;if(!p)throw Error(a(90));Rg(c,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<o.length;s++)c=o[s],c.form===r.form&&XC(c)}break t;case"textarea":ZC(r,o.value,o.defaultValue);break t;case"select":s=o.value,s!=null&&ho(r,!!o.multiple,s,!1)}}}var Ng=!1;function n_(r,s,o){if(Ng)return r(s,o);Ng=!0;try{var c=r(s);return c}finally{if(Ng=!1,(mo!==null||go!==null)&&(dd(),mo&&(s=mo,r=go,go=mo=null,e_(s),r)))for(s=0;s<r.length;s++)e_(r[s])}}function au(r,s){var o=r.stateNode;if(o===null)return null;var c=o[xn]||null;if(c===null)return null;o=c[s];t:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break t;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(a(231,s,typeof o));return o}var Jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lg=!1;if(Jr)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){Lg=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{Lg=!1}var qi=null,jg=null,_f=null;function r_(){if(_f)return _f;var r,s=jg,o=s.length,c,p="value"in qi?qi.value:qi.textContent,g=p.length;for(r=0;r<o&&s[r]===p[r];r++);var x=o-r;for(c=1;c<=x&&s[o-c]===p[g-c];c++);return _f=p.slice(r,1<c?1-c:void 0)}function Af(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Rf(){return!0}function i_(){return!1}function wn(r){function s(o,c,p,g,x){this._reactName=o,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var S in r)r.hasOwnProperty(S)&&(o=r[S],this[S]=o?o(g):g[S]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Rf:i_,this.isPropagationStopped=i_,this}return b(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Rf)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Rf)},persist:function(){},isPersistent:Rf}),s}var Ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Of=wn(Ks),lu=b({},Ks,{view:0,detail:0}),h8=wn(lu),zg,Bg,uu,kf=b({},lu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ig,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==uu&&(uu&&r.type==="mousemove"?(zg=r.screenX-uu.screenX,Bg=r.screenY-uu.screenY):Bg=zg=0,uu=r),zg)},movementY:function(r){return"movementY"in r?r.movementY:Bg}}),s_=wn(kf),p8=b({},kf,{dataTransfer:0}),m8=wn(p8),g8=b({},lu,{relatedTarget:0}),Ug=wn(g8),y8=b({},Ks,{animationName:0,elapsedTime:0,pseudoElement:0}),b8=wn(y8),v8=b({},Ks,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),x8=wn(v8),w8=b({},Ks,{data:0}),a_=wn(w8),S8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E8={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"},T8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C8(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=T8[r])?!!s[r]:!1}function Ig(){return C8}var _8=b({},lu,{key:function(r){if(r.key){var s=S8[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Af(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?E8[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ig,charCode:function(r){return r.type==="keypress"?Af(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Af(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),A8=wn(_8),R8=b({},kf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o_=wn(R8),O8=b({},lu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ig}),k8=wn(O8),D8=b({},Ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),M8=wn(D8),N8=b({},kf,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),L8=wn(N8),j8=b({},Ks,{newState:0,oldState:0}),z8=wn(j8),B8=[9,13,27,32],Pg=Jr&&"CompositionEvent"in window,cu=null;Jr&&"documentMode"in document&&(cu=document.documentMode);var U8=Jr&&"TextEvent"in window&&!cu,l_=Jr&&(!Pg||cu&&8<cu&&11>=cu),u_=" ",c_=!1;function f_(r,s){switch(r){case"keyup":return B8.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d_(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var yo=!1;function I8(r,s){switch(r){case"compositionend":return d_(s);case"keypress":return s.which!==32?null:(c_=!0,u_);case"textInput":return r=s.data,r===u_&&c_?null:r;default:return null}}function P8(r,s){if(yo)return r==="compositionend"||!Pg&&f_(r,s)?(r=r_(),_f=jg=qi=null,yo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return l_&&s.locale!=="ko"?null:s.data;default:return null}}var q8={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 h_(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!q8[r.type]:s==="textarea"}function p_(r,s,o,c){mo?go?go.push(c):go=[c]:mo=c,s=vd(s,"onChange"),0<s.length&&(o=new Of("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var fu=null,du=null;function F8(r){QR(r,0)}function Df(r){var s=su(r);if(XC(s))return r}function m_(r,s){if(r==="change")return s}var g_=!1;if(Jr){var qg;if(Jr){var Fg="oninput"in document;if(!Fg){var y_=document.createElement("div");y_.setAttribute("oninput","return;"),Fg=typeof y_.oninput=="function"}qg=Fg}else qg=!1;g_=qg&&(!document.documentMode||9<document.documentMode)}function b_(){fu&&(fu.detachEvent("onpropertychange",v_),du=fu=null)}function v_(r){if(r.propertyName==="value"&&Df(du)){var s=[];p_(s,du,r,Mg(r)),n_(F8,s)}}function V8(r,s,o){r==="focusin"?(b_(),fu=s,du=o,fu.attachEvent("onpropertychange",v_)):r==="focusout"&&b_()}function H8(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Df(du)}function G8(r,s){if(r==="click")return Df(s)}function Y8(r,s){if(r==="input"||r==="change")return Df(s)}function K8(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var kn=typeof Object.is=="function"?Object.is:K8;function hu(r,s){if(kn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var o=Object.keys(r),c=Object.keys(s);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var p=o[c];if(!ao.call(s,p)||!kn(r[p],s[p]))return!1}return!0}function x_(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function w_(r,s){var o=x_(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=s&&c>=s)return{node:o,offset:s-r};r=c}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode}o=void 0}o=x_(o)}}function S_(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?S_(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function E_(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=Tf(r.document);s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=Tf(r.document)}return s}function Vg(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var $8=Jr&&"documentMode"in document&&11>=document.documentMode,bo=null,Hg=null,pu=null,Gg=!1;function T_(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Gg||bo==null||bo!==Tf(c)||(c=bo,"selectionStart"in c&&Vg(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),pu&&hu(pu,c)||(pu=c,c=vd(Hg,"onSelect"),0<c.length&&(s=new Of("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=bo)))}function $s(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var vo={animationend:$s("Animation","AnimationEnd"),animationiteration:$s("Animation","AnimationIteration"),animationstart:$s("Animation","AnimationStart"),transitionrun:$s("Transition","TransitionRun"),transitionstart:$s("Transition","TransitionStart"),transitioncancel:$s("Transition","TransitionCancel"),transitionend:$s("Transition","TransitionEnd")},Yg={},C_={};Jr&&(C_=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);function Xs(r){if(Yg[r])return Yg[r];if(!vo[r])return r;var s=vo[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in C_)return Yg[r]=s[o];return r}var __=Xs("animationend"),A_=Xs("animationiteration"),R_=Xs("animationstart"),X8=Xs("transitionrun"),Q8=Xs("transitionstart"),Z8=Xs("transitioncancel"),O_=Xs("transitionend"),k_=new Map,Kg="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(" ");Kg.push("scrollEnd");function pr(r,s){k_.set(r,s),Ys(s,[r])}var Mf=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",r);return}console.error(r)},Qn=[],xo=0,$g=0;function Nf(){for(var r=xo,s=$g=xo=0;s<r;){var o=Qn[s];Qn[s++]=null;var c=Qn[s];Qn[s++]=null;var p=Qn[s];Qn[s++]=null;var g=Qn[s];if(Qn[s++]=null,c!==null&&p!==null){var x=c.pending;x===null?p.next=p:(p.next=x.next,x.next=p),c.pending=p}g!==0&&D_(o,p,g)}}function Lf(r,s,o,c){Qn[xo++]=r,Qn[xo++]=s,Qn[xo++]=o,Qn[xo++]=c,$g|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function Xg(r,s,o,c){return Lf(r,s,o,c),jf(r)}function Qs(r,s){return Lf(r,null,null,s),jf(r)}function D_(r,s,o){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o);for(var p=!1,g=r.return;g!==null;)g.childLanes|=o,c=g.alternate,c!==null&&(c.childLanes|=o),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(p=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,p&&s!==null&&(p=31-Oe(o),r=g.hiddenUpdates,c=r[p],c===null?r[p]=[s]:c.push(s),s.lane=o|536870912),g):null}function jf(r){if(50<zu)throw zu=0,i0=null,Error(a(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var wo={};function J8(r,s,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dn(r,s,o,c){return new J8(r,s,o,c)}function Qg(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Wr(r,s){var o=r.alternate;return o===null?(o=Dn(r.tag,s,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=s,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,s=r.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function M_(r,s){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,s=o.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function zf(r,s,o,c,p,g){var x=0;if(c=r,typeof r=="function")Qg(r)&&(x=1);else if(typeof r=="string")x=r7(r,o,ot.current)?26:r==="html"||r==="head"||r==="body"?27:5;else t:switch(r){case K:return r=Dn(31,o,s,p),r.elementType=K,r.lanes=g,r;case C:return Zs(o.children,p,g,s);case _:x=8,p|=24;break;case L:return r=Dn(12,o,s,p|2),r.elementType=L,r.lanes=g,r;case z:return r=Dn(13,o,s,p),r.elementType=z,r.lanes=g,r;case q:return r=Dn(19,o,s,p),r.elementType=q,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case U:x=10;break t;case R:x=9;break t;case G:x=11;break t;case M:x=14;break t;case P:x=16,c=null;break t}x=29,o=Error(a(130,r===null?"null":typeof r,"")),c=null}return s=Dn(x,o,s,p),s.elementType=r,s.type=c,s.lanes=g,s}function Zs(r,s,o,c){return r=Dn(7,r,c,s),r.lanes=o,r}function Zg(r,s,o){return r=Dn(6,r,null,s),r.lanes=o,r}function N_(r){var s=Dn(18,null,null,0);return s.stateNode=r,s}function Jg(r,s,o){return s=Dn(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var L_=new WeakMap;function Zn(r,s){if(typeof r=="object"&&r!==null){var o=L_.get(r);return o!==void 0?o:(s={value:r,source:s,stack:Wl(s)},L_.set(r,s),s)}return{value:r,source:s,stack:Wl(s)}}var So=[],Eo=0,Bf=null,mu=0,Jn=[],Wn=0,Fi=null,Nr=1,Lr="";function ti(r,s){So[Eo++]=mu,So[Eo++]=Bf,Bf=r,mu=s}function j_(r,s,o){Jn[Wn++]=Nr,Jn[Wn++]=Lr,Jn[Wn++]=Fi,Fi=r;var c=Nr;r=Lr;var p=32-Oe(c)-1;c&=~(1<<p),o+=1;var g=32-Oe(s)+p;if(30<g){var x=p-p%5;g=(c&(1<<x)-1).toString(32),c>>=x,p-=x,Nr=1<<32-Oe(s)+p|o<<p|c,Lr=g+r}else Nr=1<<g|o<<p|c,Lr=r}function Wg(r){r.return!==null&&(ti(r,1),j_(r,1,0))}function ty(r){for(;r===Bf;)Bf=So[--Eo],So[Eo]=null,mu=So[--Eo],So[Eo]=null;for(;r===Fi;)Fi=Jn[--Wn],Jn[Wn]=null,Lr=Jn[--Wn],Jn[Wn]=null,Nr=Jn[--Wn],Jn[Wn]=null}function z_(r,s){Jn[Wn++]=Nr,Jn[Wn++]=Lr,Jn[Wn++]=Fi,Nr=s.id,Lr=s.overflow,Fi=r}var Ge=null,fe=null,Yt=!1,Vi=null,tr=!1,ey=Error(a(519));function Hi(r){var s=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gu(Zn(s,r)),ey}function B_(r){var s=r.stateNode,o=r.type,c=r.memoizedProps;switch(s[He]=r,s[xn]=c,o){case"dialog":Pt("cancel",s),Pt("close",s);break;case"iframe":case"object":case"embed":Pt("load",s);break;case"video":case"audio":for(o=0;o<Uu.length;o++)Pt(Uu[o],s);break;case"source":Pt("error",s);break;case"img":case"image":case"link":Pt("error",s),Pt("load",s);break;case"details":Pt("toggle",s);break;case"input":Pt("invalid",s),QC(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pt("invalid",s);break;case"textarea":Pt("invalid",s),JC(s,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||s.textContent===""+o||c.suppressHydrationWarning===!0||tO(s.textContent,o)?(c.popover!=null&&(Pt("beforetoggle",s),Pt("toggle",s)),c.onScroll!=null&&Pt("scroll",s),c.onScrollEnd!=null&&Pt("scrollend",s),c.onClick!=null&&(s.onclick=Zr),s=!0):s=!1,s||Hi(r,!0)}function U_(r){for(Ge=r.return;Ge;)switch(Ge.tag){case 5:case 31:case 13:tr=!1;return;case 27:case 3:tr=!0;return;default:Ge=Ge.return}}function To(r){if(r!==Ge)return!1;if(!Yt)return U_(r),Yt=!0,!1;var s=r.tag,o;if((o=s!==3&&s!==27)&&((o=s===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||v0(r.type,r.memoizedProps)),o=!o),o&&fe&&Hi(r),U_(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));fe=uO(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));fe=uO(r)}else s===27?(s=fe,is(r.type)?(r=T0,T0=null,fe=r):fe=s):fe=Ge?nr(r.stateNode.nextSibling):null;return!0}function Js(){fe=Ge=null,Yt=!1}function ny(){var r=Vi;return r!==null&&(Cn===null?Cn=r:Cn.push.apply(Cn,r),Vi=null),r}function gu(r){Vi===null?Vi=[r]:Vi.push(r)}var ry=D(null),Ws=null,ei=null;function Gi(r,s,o){J(ry,s._currentValue),s._currentValue=o}function ni(r){r._currentValue=ry.current,T(ry)}function iy(r,s,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===o)break;r=r.return}}function sy(r,s,o,c){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var g=p.dependencies;if(g!==null){var x=p.child;g=g.firstContext;t:for(;g!==null;){var S=g;g=p;for(var k=0;k<s.length;k++)if(S.context===s[k]){g.lanes|=o,S=g.alternate,S!==null&&(S.lanes|=o),iy(g.return,o,r),c||(x=null);break t}g=S.next}}else if(p.tag===18){if(x=p.return,x===null)throw Error(a(341));x.lanes|=o,g=x.alternate,g!==null&&(g.lanes|=o),iy(x,o,r),x=null}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===r){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}}function Co(r,s,o,c){r=null;for(var p=s,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var x=p.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var S=p.type;kn(p.pendingProps.value,x.value)||(r!==null?r.push(S):r=[S])}}else if(p===wt.current){if(x=p.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(Vu):r=[Vu])}p=p.return}r!==null&&sy(s,r,o,c),s.flags|=262144}function Uf(r){for(r=r.firstContext;r!==null;){if(!kn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ta(r){Ws=r,ei=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ye(r){return I_(Ws,r)}function If(r,s){return Ws===null&&ta(r),I_(r,s)}function I_(r,s){var o=s._currentValue;if(s={context:s,memoizedValue:o,next:null},ei===null){if(r===null)throw Error(a(308));ei=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else ei=ei.next=s;return o}var W8=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(o,c){r.push(c)}};this.abort=function(){s.aborted=!0,r.forEach(function(o){return o()})}},t9=e.unstable_scheduleCallback,e9=e.unstable_NormalPriority,ke={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ay(){return{controller:new W8,data:new Map,refCount:0}}function yu(r){r.refCount--,r.refCount===0&&t9(e9,function(){r.controller.abort()})}var bu=null,oy=0,_o=0,Ao=null;function n9(r,s){if(bu===null){var o=bu=[];oy=0,_o=c0(),Ao={status:"pending",value:void 0,then:function(c){o.push(c)}}}return oy++,s.then(P_,P_),s}function P_(){if(--oy===0&&bu!==null){Ao!==null&&(Ao.status="fulfilled");var r=bu;bu=null,_o=0,Ao=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function r9(r,s){var o=[],c={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return r.then(function(){c.status="fulfilled",c.value=s;for(var p=0;p<o.length;p++)(0,o[p])(s)},function(p){for(c.status="rejected",c.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),c}var q_=Y.S;Y.S=function(r,s){TR=on(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&n9(r,s),q_!==null&&q_(r,s)};var ea=D(null);function ly(){var r=ea.current;return r!==null?r:oe.pooledCache}function Pf(r,s){s===null?J(ea,ea.current):J(ea,s.pool)}function F_(){var r=ly();return r===null?null:{parent:ke._currentValue,pool:r}}var Ro=Error(a(460)),uy=Error(a(474)),qf=Error(a(542)),Ff={then:function(){}};function V_(r){return r=r.status,r==="fulfilled"||r==="rejected"}function H_(r,s,o){switch(o=r[o],o===void 0?r.push(s):o!==s&&(s.then(Zr,Zr),s=o),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Y_(r),r;default:if(typeof s.status=="string")s.then(Zr,Zr);else{if(r=oe,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=s,r.status="pending",r.then(function(c){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=c}},function(c){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=c}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Y_(r),r}throw ra=s,Ro}}function na(r){try{var s=r._init;return s(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(ra=o,Ro):o}}var ra=null;function G_(){if(ra===null)throw Error(a(459));var r=ra;return ra=null,r}function Y_(r){if(r===Ro||r===qf)throw Error(a(483))}var Oo=null,vu=0;function Vf(r){var s=vu;return vu+=1,Oo===null&&(Oo=[]),H_(Oo,r,s)}function xu(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function Hf(r,s){throw s.$$typeof===v?Error(a(525)):(r=Object.prototype.toString.call(s),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function K_(r){function s(I,j){if(r){var V=I.deletions;V===null?(I.deletions=[j],I.flags|=16):V.push(j)}}function o(I,j){if(!r)return null;for(;j!==null;)s(I,j),j=j.sibling;return null}function c(I){for(var j=new Map;I!==null;)I.key!==null?j.set(I.key,I):j.set(I.index,I),I=I.sibling;return j}function p(I,j){return I=Wr(I,j),I.index=0,I.sibling=null,I}function g(I,j,V){return I.index=V,r?(V=I.alternate,V!==null?(V=V.index,V<j?(I.flags|=67108866,j):V):(I.flags|=67108866,j)):(I.flags|=1048576,j)}function x(I){return r&&I.alternate===null&&(I.flags|=67108866),I}function S(I,j,V,et){return j===null||j.tag!==6?(j=Zg(V,I.mode,et),j.return=I,j):(j=p(j,V),j.return=I,j)}function k(I,j,V,et){var St=V.type;return St===C?W(I,j,V.props.children,et,V.key):j!==null&&(j.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===P&&na(St)===j.type)?(j=p(j,V.props),xu(j,V),j.return=I,j):(j=zf(V.type,V.key,V.props,null,I.mode,et),xu(j,V),j.return=I,j)}function H(I,j,V,et){return j===null||j.tag!==4||j.stateNode.containerInfo!==V.containerInfo||j.stateNode.implementation!==V.implementation?(j=Jg(V,I.mode,et),j.return=I,j):(j=p(j,V.children||[]),j.return=I,j)}function W(I,j,V,et,St){return j===null||j.tag!==7?(j=Zs(V,I.mode,et,St),j.return=I,j):(j=p(j,V),j.return=I,j)}function rt(I,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Zg(""+j,I.mode,V),j.return=I,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case w:return V=zf(j.type,j.key,j.props,null,I.mode,V),xu(V,j),V.return=I,V;case E:return j=Jg(j,I.mode,V),j.return=I,j;case P:return j=na(j),rt(I,j,V)}if(Q(j)||ft(j))return j=Zs(j,I.mode,V,null),j.return=I,j;if(typeof j.then=="function")return rt(I,Vf(j),V);if(j.$$typeof===U)return rt(I,If(I,j),V);Hf(I,j)}return null}function $(I,j,V,et){var St=j!==null?j.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return St!==null?null:S(I,j,""+V,et);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return V.key===St?k(I,j,V,et):null;case E:return V.key===St?H(I,j,V,et):null;case P:return V=na(V),$(I,j,V,et)}if(Q(V)||ft(V))return St!==null?null:W(I,j,V,et,null);if(typeof V.then=="function")return $(I,j,Vf(V),et);if(V.$$typeof===U)return $(I,j,If(I,V),et);Hf(I,V)}return null}function Z(I,j,V,et,St){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return I=I.get(V)||null,S(j,I,""+et,St);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case w:return I=I.get(et.key===null?V:et.key)||null,k(j,I,et,St);case E:return I=I.get(et.key===null?V:et.key)||null,H(j,I,et,St);case P:return et=na(et),Z(I,j,V,et,St)}if(Q(et)||ft(et))return I=I.get(V)||null,W(j,I,et,St,null);if(typeof et.then=="function")return Z(I,j,V,Vf(et),St);if(et.$$typeof===U)return Z(I,j,V,If(j,et),St);Hf(j,et)}return null}function ht(I,j,V,et){for(var St=null,$t=null,bt=j,Lt=j=0,Vt=null;bt!==null&&Lt<V.length;Lt++){bt.index>Lt?(Vt=bt,bt=null):Vt=bt.sibling;var Xt=$(I,bt,V[Lt],et);if(Xt===null){bt===null&&(bt=Vt);break}r&&bt&&Xt.alternate===null&&s(I,bt),j=g(Xt,j,Lt),$t===null?St=Xt:$t.sibling=Xt,$t=Xt,bt=Vt}if(Lt===V.length)return o(I,bt),Yt&&ti(I,Lt),St;if(bt===null){for(;Lt<V.length;Lt++)bt=rt(I,V[Lt],et),bt!==null&&(j=g(bt,j,Lt),$t===null?St=bt:$t.sibling=bt,$t=bt);return Yt&&ti(I,Lt),St}for(bt=c(bt);Lt<V.length;Lt++)Vt=Z(bt,I,Lt,V[Lt],et),Vt!==null&&(r&&Vt.alternate!==null&&bt.delete(Vt.key===null?Lt:Vt.key),j=g(Vt,j,Lt),$t===null?St=Vt:$t.sibling=Vt,$t=Vt);return r&&bt.forEach(function(us){return s(I,us)}),Yt&&ti(I,Lt),St}function Et(I,j,V,et){if(V==null)throw Error(a(151));for(var St=null,$t=null,bt=j,Lt=j=0,Vt=null,Xt=V.next();bt!==null&&!Xt.done;Lt++,Xt=V.next()){bt.index>Lt?(Vt=bt,bt=null):Vt=bt.sibling;var us=$(I,bt,Xt.value,et);if(us===null){bt===null&&(bt=Vt);break}r&&bt&&us.alternate===null&&s(I,bt),j=g(us,j,Lt),$t===null?St=us:$t.sibling=us,$t=us,bt=Vt}if(Xt.done)return o(I,bt),Yt&&ti(I,Lt),St;if(bt===null){for(;!Xt.done;Lt++,Xt=V.next())Xt=rt(I,Xt.value,et),Xt!==null&&(j=g(Xt,j,Lt),$t===null?St=Xt:$t.sibling=Xt,$t=Xt);return Yt&&ti(I,Lt),St}for(bt=c(bt);!Xt.done;Lt++,Xt=V.next())Xt=Z(bt,I,Lt,Xt.value,et),Xt!==null&&(r&&Xt.alternate!==null&&bt.delete(Xt.key===null?Lt:Xt.key),j=g(Xt,j,Lt),$t===null?St=Xt:$t.sibling=Xt,$t=Xt);return r&&bt.forEach(function(p7){return s(I,p7)}),Yt&&ti(I,Lt),St}function ae(I,j,V,et){if(typeof V=="object"&&V!==null&&V.type===C&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case w:t:{for(var St=V.key;j!==null;){if(j.key===St){if(St=V.type,St===C){if(j.tag===7){o(I,j.sibling),et=p(j,V.props.children),et.return=I,I=et;break t}}else if(j.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===P&&na(St)===j.type){o(I,j.sibling),et=p(j,V.props),xu(et,V),et.return=I,I=et;break t}o(I,j);break}else s(I,j);j=j.sibling}V.type===C?(et=Zs(V.props.children,I.mode,et,V.key),et.return=I,I=et):(et=zf(V.type,V.key,V.props,null,I.mode,et),xu(et,V),et.return=I,I=et)}return x(I);case E:t:{for(St=V.key;j!==null;){if(j.key===St)if(j.tag===4&&j.stateNode.containerInfo===V.containerInfo&&j.stateNode.implementation===V.implementation){o(I,j.sibling),et=p(j,V.children||[]),et.return=I,I=et;break t}else{o(I,j);break}else s(I,j);j=j.sibling}et=Jg(V,I.mode,et),et.return=I,I=et}return x(I);case P:return V=na(V),ae(I,j,V,et)}if(Q(V))return ht(I,j,V,et);if(ft(V)){if(St=ft(V),typeof St!="function")throw Error(a(150));return V=St.call(V),Et(I,j,V,et)}if(typeof V.then=="function")return ae(I,j,Vf(V),et);if(V.$$typeof===U)return ae(I,j,If(I,V),et);Hf(I,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,j!==null&&j.tag===6?(o(I,j.sibling),et=p(j,V),et.return=I,I=et):(o(I,j),et=Zg(V,I.mode,et),et.return=I,I=et),x(I)):o(I,j)}return function(I,j,V,et){try{vu=0;var St=ae(I,j,V,et);return Oo=null,St}catch(bt){if(bt===Ro||bt===qf)throw bt;var $t=Dn(29,bt,null,I.mode);return $t.lanes=et,$t.return=I,$t}finally{}}}var ia=K_(!0),$_=K_(!1),Yi=!1;function cy(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fy(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ki(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function $i(r,s,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Zt&2)!==0){var p=c.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),c.pending=s,s=jf(r),D_(r,null,o),s}return Lf(r,c,s,o),jf(r)}function wu(r,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194048)!==0)){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,IC(r,o)}}function dy(r,s){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var p=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var x={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?p=g=x:g=g.next=x,o=o.next}while(o!==null);g===null?p=g=s:g=g.next=s}else p=g=s;o={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}var hy=!1;function Su(){if(hy){var r=Ao;if(r!==null)throw r}}function Eu(r,s,o,c){hy=!1;var p=r.updateQueue;Yi=!1;var g=p.firstBaseUpdate,x=p.lastBaseUpdate,S=p.shared.pending;if(S!==null){p.shared.pending=null;var k=S,H=k.next;k.next=null,x===null?g=H:x.next=H,x=k;var W=r.alternate;W!==null&&(W=W.updateQueue,S=W.lastBaseUpdate,S!==x&&(S===null?W.firstBaseUpdate=H:S.next=H,W.lastBaseUpdate=k))}if(g!==null){var rt=p.baseState;x=0,W=H=k=null,S=g;do{var $=S.lane&-536870913,Z=$!==S.lane;if(Z?(Ft&$)===$:(c&$)===$){$!==0&&$===_o&&(hy=!0),W!==null&&(W=W.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var ht=r,Et=S;$=s;var ae=o;switch(Et.tag){case 1:if(ht=Et.payload,typeof ht=="function"){rt=ht.call(ae,rt,$);break t}rt=ht;break t;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=Et.payload,$=typeof ht=="function"?ht.call(ae,rt,$):ht,$==null)break t;rt=b({},rt,$);break t;case 2:Yi=!0}}$=S.callback,$!==null&&(r.flags|=64,Z&&(r.flags|=8192),Z=p.callbacks,Z===null?p.callbacks=[$]:Z.push($))}else Z={lane:$,tag:S.tag,payload:S.payload,callback:S.callback,next:null},W===null?(H=W=Z,k=rt):W=W.next=Z,x|=$;if(S=S.next,S===null){if(S=p.shared.pending,S===null)break;Z=S,S=Z.next,Z.next=null,p.lastBaseUpdate=Z,p.shared.pending=null}}while(!0);W===null&&(k=rt),p.baseState=k,p.firstBaseUpdate=H,p.lastBaseUpdate=W,g===null&&(p.shared.lanes=0),Wi|=x,r.lanes=x,r.memoizedState=rt}}function X_(r,s){if(typeof r!="function")throw Error(a(191,r));r.call(s)}function Q_(r,s){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)X_(o[r],s)}var ko=D(null),Gf=D(0);function Z_(r,s){r=fi,J(Gf,r),J(ko,s),fi=r|s.baseLanes}function py(){J(Gf,fi),J(ko,ko.current)}function my(){fi=Gf.current,T(ko),T(Gf)}var Mn=D(null),er=null;function Xi(r){var s=r.alternate;J(Ce,Ce.current&1),J(Mn,r),er===null&&(s===null||ko.current!==null||s.memoizedState!==null)&&(er=r)}function gy(r){J(Ce,Ce.current),J(Mn,r),er===null&&(er=r)}function J_(r){r.tag===22?(J(Ce,Ce.current),J(Mn,r),er===null&&(er=r)):Qi()}function Qi(){J(Ce,Ce.current),J(Mn,Mn.current)}function Nn(r){T(Mn),er===r&&(er=null),T(Ce)}var Ce=D(0);function Yf(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||S0(o)||E0(o)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ri=0,Dt=null,ie=null,De=null,Kf=!1,Do=!1,sa=!1,$f=0,Tu=0,Mo=null,i9=0;function we(){throw Error(a(321))}function yy(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!kn(r[o],s[o]))return!1;return!0}function by(r,s,o,c,p,g){return ri=g,Dt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Y.H=r===null||r.memoizedState===null?jA:Ny,sa=!1,g=o(c,p),sa=!1,Do&&(g=tA(s,o,c,p)),W_(r),g}function W_(r){Y.H=Au;var s=ie!==null&&ie.next!==null;if(ri=0,De=ie=Dt=null,Kf=!1,Tu=0,Mo=null,s)throw Error(a(300));r===null||Me||(r=r.dependencies,r!==null&&Uf(r)&&(Me=!0))}function tA(r,s,o,c){Dt=r;var p=0;do{if(Do&&(Mo=null),Tu=0,Do=!1,25<=p)throw Error(a(301));if(p+=1,De=ie=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}Y.H=zA,g=s(o,c)}while(Do);return g}function s9(){var r=Y.H,s=r.useState()[0];return s=typeof s.then=="function"?Cu(s):s,r=r.useState()[0],(ie!==null?ie.memoizedState:null)!==r&&(Dt.flags|=1024),s}function vy(){var r=$f!==0;return $f=0,r}function xy(r,s,o){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~o}function wy(r){if(Kf){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Kf=!1}ri=0,De=ie=Dt=null,Do=!1,Tu=$f=0,Mo=null}function ln(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?Dt.memoizedState=De=r:De=De.next=r,De}function _e(){if(ie===null){var r=Dt.alternate;r=r!==null?r.memoizedState:null}else r=ie.next;var s=De===null?Dt.memoizedState:De.next;if(s!==null)De=s,ie=r;else{if(r===null)throw Dt.alternate===null?Error(a(467)):Error(a(310));ie=r,r={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},De===null?Dt.memoizedState=De=r:De=De.next=r}return De}function Xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cu(r){var s=Tu;return Tu+=1,Mo===null&&(Mo=[]),r=H_(Mo,r,s),s=Dt,(De===null?s.memoizedState:De.next)===null&&(s=s.alternate,Y.H=s===null||s.memoizedState===null?jA:Ny),r}function Qf(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Cu(r);if(r.$$typeof===U)return Ye(r)}throw Error(a(438,String(r)))}function Sy(r){var s=null,o=Dt.updateQueue;if(o!==null&&(s=o.memoCache),s==null){var c=Dt.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(s={data:c.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),o===null&&(o=Xf(),Dt.updateQueue=o),o.memoCache=s,o=s.data[s.index],o===void 0)for(o=s.data[s.index]=Array(r),c=0;c<r;c++)o[c]=nt;return s.index++,o}function ii(r,s){return typeof s=="function"?s(r):s}function Zf(r){var s=_e();return Ey(s,ie,r)}function Ey(r,s,o){var c=r.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=o;var p=r.baseQueue,g=c.pending;if(g!==null){if(p!==null){var x=p.next;p.next=g.next,g.next=x}s.baseQueue=p=g,c.pending=null}if(g=r.baseState,p===null)r.memoizedState=g;else{s=p.next;var S=x=null,k=null,H=s,W=!1;do{var rt=H.lane&-536870913;if(rt!==H.lane?(Ft&rt)===rt:(ri&rt)===rt){var $=H.revertLane;if($===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),rt===_o&&(W=!0);else if((ri&$)===$){H=H.next,$===_o&&(W=!0);continue}else rt={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},k===null?(S=k=rt,x=g):k=k.next=rt,Dt.lanes|=$,Wi|=$;rt=H.action,sa&&o(g,rt),g=H.hasEagerState?H.eagerState:o(g,rt)}else $={lane:rt,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},k===null?(S=k=$,x=g):k=k.next=$,Dt.lanes|=rt,Wi|=rt;H=H.next}while(H!==null&&H!==s);if(k===null?x=g:k.next=S,!kn(g,r.memoizedState)&&(Me=!0,W&&(o=Ao,o!==null)))throw o;r.memoizedState=g,r.baseState=x,r.baseQueue=k,c.lastRenderedState=g}return p===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Ty(r){var s=_e(),o=s.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=r;var c=o.dispatch,p=o.pending,g=s.memoizedState;if(p!==null){o.pending=null;var x=p=p.next;do g=r(g,x.action),x=x.next;while(x!==p);kn(g,s.memoizedState)||(Me=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),o.lastRenderedState=g}return[g,c]}function eA(r,s,o){var c=Dt,p=_e(),g=Yt;if(g){if(o===void 0)throw Error(a(407));o=o()}else o=s();var x=!kn((ie||p).memoizedState,o);if(x&&(p.memoizedState=o,Me=!0),p=p.queue,Ay(iA.bind(null,c,p,r),[r]),p.getSnapshot!==s||x||De!==null&&De.memoizedState.tag&1){if(c.flags|=2048,No(9,{destroy:void 0},rA.bind(null,c,p,o,s),null),oe===null)throw Error(a(349));g||(ri&127)!==0||nA(c,s,o)}return o}function nA(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=Dt.updateQueue,s===null?(s=Xf(),Dt.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function rA(r,s,o,c){s.value=o,s.getSnapshot=c,sA(s)&&aA(r)}function iA(r,s,o){return o(function(){sA(s)&&aA(r)})}function sA(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!kn(r,o)}catch{return!0}}function aA(r){var s=Qs(r,2);s!==null&&_n(s,r,2)}function Cy(r){var s=ln();if(typeof r=="function"){var o=r;if(r=o(),sa){xe(!0);try{o()}finally{xe(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:r},s}function oA(r,s,o,c){return r.baseState=o,Ey(r,ie,typeof c=="function"?c:ii)}function a9(r,s,o,c,p){if(td(r))throw Error(a(485));if(r=s.action,r!==null){var g={payload:p,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){g.listeners.push(x)}};Y.T!==null?o(!0):g.isTransition=!1,c(g),o=s.pending,o===null?(g.next=s.pending=g,lA(s,g)):(g.next=o.next,s.pending=o.next=g)}}function lA(r,s){var o=s.action,c=s.payload,p=r.state;if(s.isTransition){var g=Y.T,x={};Y.T=x;try{var S=o(p,c),k=Y.S;k!==null&&k(x,S),uA(r,s,S)}catch(H){_y(r,s,H)}finally{g!==null&&x.types!==null&&(g.types=x.types),Y.T=g}}else try{g=o(p,c),uA(r,s,g)}catch(H){_y(r,s,H)}}function uA(r,s,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){cA(r,s,c)},function(c){return _y(r,s,c)}):cA(r,s,o)}function cA(r,s,o){s.status="fulfilled",s.value=o,fA(s),r.state=o,s=r.pending,s!==null&&(o=s.next,o===s?r.pending=null:(o=o.next,s.next=o,lA(r,o)))}function _y(r,s,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=o,fA(s),s=s.next;while(s!==c)}r.action=null}function fA(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function dA(r,s){return s}function hA(r,s){if(Yt){var o=oe.formState;if(o!==null){t:{var c=Dt;if(Yt){if(fe){e:{for(var p=fe,g=tr;p.nodeType!==8;){if(!g){p=null;break e}if(p=nr(p.nextSibling),p===null){p=null;break e}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){fe=nr(p.nextSibling),c=p.data==="F!";break t}}Hi(c)}c=!1}c&&(s=o[0])}}return o=ln(),o.memoizedState=o.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dA,lastRenderedState:s},o.queue=c,o=MA.bind(null,Dt,c),c.dispatch=o,c=Cy(!1),g=My.bind(null,Dt,!1,c.queue),c=ln(),p={state:s,dispatch:null,action:r,pending:null},c.queue=p,o=a9.bind(null,Dt,p,g,o),p.dispatch=o,c.memoizedState=r,[s,o,!1]}function pA(r){var s=_e();return mA(s,ie,r)}function mA(r,s,o){if(s=Ey(r,s,dA)[0],r=Zf(ii)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=Cu(s)}catch(x){throw x===Ro?qf:x}else c=s;s=_e();var p=s.queue,g=p.dispatch;return o!==s.memoizedState&&(Dt.flags|=2048,No(9,{destroy:void 0},o9.bind(null,p,o),null)),[c,g,r]}function o9(r,s){r.action=s}function gA(r){var s=_e(),o=ie;if(o!==null)return mA(s,o,r);_e(),s=s.memoizedState,o=_e();var c=o.queue.dispatch;return o.memoizedState=r,[s,c,!1]}function No(r,s,o,c){return r={tag:r,create:o,deps:c,inst:s,next:null},s=Dt.updateQueue,s===null&&(s=Xf(),Dt.updateQueue=s),o=s.lastEffect,o===null?s.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,s.lastEffect=r),r}function yA(){return _e().memoizedState}function Jf(r,s,o,c){var p=ln();Dt.flags|=r,p.memoizedState=No(1|s,{destroy:void 0},o,c===void 0?null:c)}function Wf(r,s,o,c){var p=_e();c=c===void 0?null:c;var g=p.memoizedState.inst;ie!==null&&c!==null&&yy(c,ie.memoizedState.deps)?p.memoizedState=No(s,g,o,c):(Dt.flags|=r,p.memoizedState=No(1|s,g,o,c))}function bA(r,s){Jf(8390656,8,r,s)}function Ay(r,s){Wf(2048,8,r,s)}function l9(r){Dt.flags|=4;var s=Dt.updateQueue;if(s===null)s=Xf(),Dt.updateQueue=s,s.events=[r];else{var o=s.events;o===null?s.events=[r]:o.push(r)}}function vA(r){var s=_e().memoizedState;return l9({ref:s,nextImpl:r}),function(){if((Zt&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}function xA(r,s){return Wf(4,2,r,s)}function wA(r,s){return Wf(4,4,r,s)}function SA(r,s){if(typeof s=="function"){r=r();var o=s(r);return function(){typeof o=="function"?o():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function EA(r,s,o){o=o!=null?o.concat([r]):null,Wf(4,4,SA.bind(null,s,r),o)}function Ry(){}function TA(r,s){var o=_e();s=s===void 0?null:s;var c=o.memoizedState;return s!==null&&yy(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function CA(r,s){var o=_e();s=s===void 0?null:s;var c=o.memoizedState;if(s!==null&&yy(s,c[1]))return c[0];if(c=r(),sa){xe(!0);try{r()}finally{xe(!1)}}return o.memoizedState=[c,s],c}function Oy(r,s,o){return o===void 0||(ri&1073741824)!==0&&(Ft&261930)===0?r.memoizedState=s:(r.memoizedState=o,r=_R(),Dt.lanes|=r,Wi|=r,o)}function _A(r,s,o,c){return kn(o,s)?o:ko.current!==null?(r=Oy(r,o,c),kn(r,s)||(Me=!0),r):(ri&42)===0||(ri&1073741824)!==0&&(Ft&261930)===0?(Me=!0,r.memoizedState=o):(r=_R(),Dt.lanes|=r,Wi|=r,s)}function AA(r,s,o,c,p){var g=F.p;F.p=g!==0&&8>g?g:8;var x=Y.T,S={};Y.T=S,My(r,!1,s,o);try{var k=p(),H=Y.S;if(H!==null&&H(S,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var W=r9(k,c);_u(r,s,W,zn(r))}else _u(r,s,c,zn(r))}catch(rt){_u(r,s,{then:function(){},status:"rejected",reason:rt},zn())}finally{F.p=g,x!==null&&S.types!==null&&(x.types=S.types),Y.T=x}}function u9(){}function ky(r,s,o,c){if(r.tag!==5)throw Error(a(476));var p=RA(r).queue;AA(r,p,s,gt,o===null?u9:function(){return OA(r),o(c)})}function RA(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:gt,baseState:gt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:gt},next:null};var o={};return s.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:o},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function OA(r){var s=RA(r);s.next===null&&(s=r.alternate.memoizedState),_u(r,s.next.queue,{},zn())}function Dy(){return Ye(Vu)}function kA(){return _e().memoizedState}function DA(){return _e().memoizedState}function c9(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var o=zn();r=Ki(o);var c=$i(s,r,o);c!==null&&(_n(c,s,o),wu(c,s,o)),s={cache:ay()},r.payload=s;return}s=s.return}}function f9(r,s,o){var c=zn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},td(r)?NA(s,o):(o=Xg(r,s,o,c),o!==null&&(_n(o,r,c),LA(o,s,c)))}function MA(r,s,o){var c=zn();_u(r,s,o,c)}function _u(r,s,o,c){var p={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(td(r))NA(s,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=s.lastRenderedReducer,g!==null))try{var x=s.lastRenderedState,S=g(x,o);if(p.hasEagerState=!0,p.eagerState=S,kn(S,x))return Lf(r,s,p,0),oe===null&&Nf(),!1}catch{}finally{}if(o=Xg(r,s,p,c),o!==null)return _n(o,r,c),LA(o,s,c),!0}return!1}function My(r,s,o,c){if(c={lane:2,revertLane:c0(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},td(r)){if(s)throw Error(a(479))}else s=Xg(r,o,c,2),s!==null&&_n(s,r,2)}function td(r){var s=r.alternate;return r===Dt||s!==null&&s===Dt}function NA(r,s){Do=Kf=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function LA(r,s,o){if((o&4194048)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,IC(r,o)}}var Au={readContext:Ye,use:Qf,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};Au.useEffectEvent=we;var jA={readContext:Ye,use:Qf,useCallback:function(r,s){return ln().memoizedState=[r,s===void 0?null:s],r},useContext:Ye,useEffect:bA,useImperativeHandle:function(r,s,o){o=o!=null?o.concat([r]):null,Jf(4194308,4,SA.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Jf(4194308,4,r,s)},useInsertionEffect:function(r,s){Jf(4,2,r,s)},useMemo:function(r,s){var o=ln();s=s===void 0?null:s;var c=r();if(sa){xe(!0);try{r()}finally{xe(!1)}}return o.memoizedState=[c,s],c},useReducer:function(r,s,o){var c=ln();if(o!==void 0){var p=o(s);if(sa){xe(!0);try{o(s)}finally{xe(!1)}}}else p=s;return c.memoizedState=c.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},c.queue=r,r=r.dispatch=f9.bind(null,Dt,r),[c.memoizedState,r]},useRef:function(r){var s=ln();return r={current:r},s.memoizedState=r},useState:function(r){r=Cy(r);var s=r.queue,o=MA.bind(null,Dt,s);return s.dispatch=o,[r.memoizedState,o]},useDebugValue:Ry,useDeferredValue:function(r,s){var o=ln();return Oy(o,r,s)},useTransition:function(){var r=Cy(!1);return r=AA.bind(null,Dt,r.queue,!0,!1),ln().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,o){var c=Dt,p=ln();if(Yt){if(o===void 0)throw Error(a(407));o=o()}else{if(o=s(),oe===null)throw Error(a(349));(Ft&127)!==0||nA(c,s,o)}p.memoizedState=o;var g={value:o,getSnapshot:s};return p.queue=g,bA(iA.bind(null,c,g,r),[r]),c.flags|=2048,No(9,{destroy:void 0},rA.bind(null,c,g,o,s),null),o},useId:function(){var r=ln(),s=oe.identifierPrefix;if(Yt){var o=Lr,c=Nr;o=(c&~(1<<32-Oe(c)-1)).toString(32)+o,s="_"+s+"R_"+o,o=$f++,0<o&&(s+="H"+o.toString(32)),s+="_"}else o=i9++,s="_"+s+"r_"+o.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:Dy,useFormState:hA,useActionState:hA,useOptimistic:function(r){var s=ln();s.memoizedState=s.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=o,s=My.bind(null,Dt,!0,o),o.dispatch=s,[r,s]},useMemoCache:Sy,useCacheRefresh:function(){return ln().memoizedState=c9.bind(null,Dt)},useEffectEvent:function(r){var s=ln(),o={impl:r};return s.memoizedState=o,function(){if((Zt&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}},Ny={readContext:Ye,use:Qf,useCallback:TA,useContext:Ye,useEffect:Ay,useImperativeHandle:EA,useInsertionEffect:xA,useLayoutEffect:wA,useMemo:CA,useReducer:Zf,useRef:yA,useState:function(){return Zf(ii)},useDebugValue:Ry,useDeferredValue:function(r,s){var o=_e();return _A(o,ie.memoizedState,r,s)},useTransition:function(){var r=Zf(ii)[0],s=_e().memoizedState;return[typeof r=="boolean"?r:Cu(r),s]},useSyncExternalStore:eA,useId:kA,useHostTransitionStatus:Dy,useFormState:pA,useActionState:pA,useOptimistic:function(r,s){var o=_e();return oA(o,ie,r,s)},useMemoCache:Sy,useCacheRefresh:DA};Ny.useEffectEvent=vA;var zA={readContext:Ye,use:Qf,useCallback:TA,useContext:Ye,useEffect:Ay,useImperativeHandle:EA,useInsertionEffect:xA,useLayoutEffect:wA,useMemo:CA,useReducer:Ty,useRef:yA,useState:function(){return Ty(ii)},useDebugValue:Ry,useDeferredValue:function(r,s){var o=_e();return ie===null?Oy(o,r,s):_A(o,ie.memoizedState,r,s)},useTransition:function(){var r=Ty(ii)[0],s=_e().memoizedState;return[typeof r=="boolean"?r:Cu(r),s]},useSyncExternalStore:eA,useId:kA,useHostTransitionStatus:Dy,useFormState:gA,useActionState:gA,useOptimistic:function(r,s){var o=_e();return ie!==null?oA(o,ie,r,s):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Sy,useCacheRefresh:DA};zA.useEffectEvent=vA;function Ly(r,s,o,c){s=r.memoizedState,o=o(c,s),o=o==null?s:b({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var jy={enqueueSetState:function(r,s,o){r=r._reactInternals;var c=zn(),p=Ki(c);p.payload=s,o!=null&&(p.callback=o),s=$i(r,p,c),s!==null&&(_n(s,r,c),wu(s,r,c))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=zn(),p=Ki(c);p.tag=1,p.payload=s,o!=null&&(p.callback=o),s=$i(r,p,c),s!==null&&(_n(s,r,c),wu(s,r,c))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=zn(),c=Ki(o);c.tag=2,s!=null&&(c.callback=s),s=$i(r,c,o),s!==null&&(_n(s,r,o),wu(s,r,o))}};function BA(r,s,o,c,p,g,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,x):s.prototype&&s.prototype.isPureReactComponent?!hu(o,c)||!hu(p,g):!0}function UA(r,s,o,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,c),s.state!==r&&jy.enqueueReplaceState(s,s.state,null)}function aa(r,s){var o=s;if("ref"in s){o={};for(var c in s)c!=="ref"&&(o[c]=s[c])}if(r=r.defaultProps){o===s&&(o=b({},o));for(var p in r)o[p]===void 0&&(o[p]=r[p])}return o}function IA(r){Mf(r)}function PA(r){console.error(r)}function qA(r){Mf(r)}function ed(r,s){try{var o=r.onUncaughtError;o(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function FA(r,s,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function zy(r,s,o){return o=Ki(o),o.tag=3,o.payload={element:null},o.callback=function(){ed(r,s)},o}function VA(r){return r=Ki(r),r.tag=3,r}function HA(r,s,o,c){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var g=c.value;r.payload=function(){return p(g)},r.callback=function(){FA(s,o,c)}}var x=o.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(r.callback=function(){FA(s,o,c),typeof p!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var S=c.stack;this.componentDidCatch(c.value,{componentStack:S!==null?S:""})})}function d9(r,s,o,c,p){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=o.alternate,s!==null&&Co(s,o,p,!0),o=Mn.current,o!==null){switch(o.tag){case 31:case 13:return er===null?hd():o.alternate===null&&Se===0&&(Se=3),o.flags&=-257,o.flags|=65536,o.lanes=p,c===Ff?o.flags|=16384:(s=o.updateQueue,s===null?o.updateQueue=new Set([c]):s.add(c),o0(r,c,p)),!1;case 22:return o.flags|=65536,c===Ff?o.flags|=16384:(s=o.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=s):(o=s.retryQueue,o===null?s.retryQueue=new Set([c]):o.add(c)),o0(r,c,p)),!1}throw Error(a(435,o.tag))}return o0(r,c,p),hd(),!1}if(Yt)return s=Mn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,c!==ey&&(r=Error(a(422),{cause:c}),gu(Zn(r,o)))):(c!==ey&&(s=Error(a(423),{cause:c}),gu(Zn(s,o))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,c=Zn(c,o),p=zy(r.stateNode,c,p),dy(r,p),Se!==4&&(Se=2)),!1;var g=Error(a(520),{cause:c});if(g=Zn(g,o),ju===null?ju=[g]:ju.push(g),Se!==4&&(Se=2),s===null)return!0;c=Zn(c,o),o=s;do{switch(o.tag){case 3:return o.flags|=65536,r=p&-p,o.lanes|=r,r=zy(o.stateNode,c,r),dy(o,r),!1;case 1:if(s=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ts===null||!ts.has(g))))return o.flags|=65536,p&=-p,o.lanes|=p,p=VA(p),HA(p,r,o,c),dy(o,p),!1}o=o.return}while(o!==null);return!1}var By=Error(a(461)),Me=!1;function Ke(r,s,o,c){s.child=r===null?$_(s,null,o,c):ia(s,r.child,o,c)}function GA(r,s,o,c,p){o=o.render;var g=s.ref;if("ref"in c){var x={};for(var S in c)S!=="ref"&&(x[S]=c[S])}else x=c;return ta(s),c=by(r,s,o,x,g,p),S=vy(),r!==null&&!Me?(xy(r,s,p),si(r,s,p)):(Yt&&S&&Wg(s),s.flags|=1,Ke(r,s,c,p),s.child)}function YA(r,s,o,c,p){if(r===null){var g=o.type;return typeof g=="function"&&!Qg(g)&&g.defaultProps===void 0&&o.compare===null?(s.tag=15,s.type=g,KA(r,s,g,c,p)):(r=zf(o.type,null,c,s,s.mode,p),r.ref=s.ref,r.return=s,s.child=r)}if(g=r.child,!Gy(r,p)){var x=g.memoizedProps;if(o=o.compare,o=o!==null?o:hu,o(x,c)&&r.ref===s.ref)return si(r,s,p)}return s.flags|=1,r=Wr(g,c),r.ref=s.ref,r.return=s,s.child=r}function KA(r,s,o,c,p){if(r!==null){var g=r.memoizedProps;if(hu(g,c)&&r.ref===s.ref)if(Me=!1,s.pendingProps=c=g,Gy(r,p))(r.flags&131072)!==0&&(Me=!0);else return s.lanes=r.lanes,si(r,s,p)}return Uy(r,s,o,c,p)}function $A(r,s,o,c){var p=c.children,g=r!==null?r.memoizedState:null;if(r===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((s.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,r!==null){for(c=s.child=r.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;c=p&~g}else c=0,s.child=null;return XA(r,s,g,o,c)}if((o&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&Pf(s,g!==null?g.cachePool:null),g!==null?Z_(s,g):py(),J_(s);else return c=s.lanes=536870912,XA(r,s,g!==null?g.baseLanes|o:o,o,c)}else g!==null?(Pf(s,g.cachePool),Z_(s,g),Qi(),s.memoizedState=null):(r!==null&&Pf(s,null),py(),Qi());return Ke(r,s,p,o),s.child}function Ru(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function XA(r,s,o,c,p){var g=ly();return g=g===null?null:{parent:ke._currentValue,pool:g},s.memoizedState={baseLanes:o,cachePool:g},r!==null&&Pf(s,null),py(),J_(s),r!==null&&Co(r,s,c,!0),s.childLanes=p,null}function nd(r,s){return s=id({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function QA(r,s,o){return ia(s,r.child,null,o),r=nd(s,s.pendingProps),r.flags|=2,Nn(s),s.memoizedState=null,r}function h9(r,s,o){var c=s.pendingProps,p=(s.flags&128)!==0;if(s.flags&=-129,r===null){if(Yt){if(c.mode==="hidden")return r=nd(s,c),s.lanes=536870912,Ru(null,r);if(gy(s),(r=fe)?(r=lO(r,tr),r=r!==null&&r.data==="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Fi!==null?{id:Nr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},o=N_(r),o.return=s,s.child=o,Ge=s,fe=null)):r=null,r===null)throw Hi(s);return s.lanes=536870912,null}return nd(s,c)}var g=r.memoizedState;if(g!==null){var x=g.dehydrated;if(gy(s),p)if(s.flags&256)s.flags&=-257,s=QA(r,s,o);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(a(558));else if(Me||Co(r,s,o,!1),p=(o&r.childLanes)!==0,Me||p){if(c=oe,c!==null&&(x=PC(c,o),x!==0&&x!==g.retryLane))throw g.retryLane=x,Qs(r,x),_n(c,r,x),By;hd(),s=QA(r,s,o)}else r=g.treeContext,fe=nr(x.nextSibling),Ge=s,Yt=!0,Vi=null,tr=!1,r!==null&&z_(s,r),s=nd(s,c),s.flags|=4096;return s}return r=Wr(r.child,{mode:c.mode,children:c.children}),r.ref=s.ref,s.child=r,r.return=s,r}function rd(r,s){var o=s.ref;if(o===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(r===null||r.ref!==o)&&(s.flags|=4194816)}}function Uy(r,s,o,c,p){return ta(s),o=by(r,s,o,c,void 0,p),c=vy(),r!==null&&!Me?(xy(r,s,p),si(r,s,p)):(Yt&&c&&Wg(s),s.flags|=1,Ke(r,s,o,p),s.child)}function ZA(r,s,o,c,p,g){return ta(s),s.updateQueue=null,o=tA(s,c,o,p),W_(r),c=vy(),r!==null&&!Me?(xy(r,s,g),si(r,s,g)):(Yt&&c&&Wg(s),s.flags|=1,Ke(r,s,o,g),s.child)}function JA(r,s,o,c,p){if(ta(s),s.stateNode===null){var g=wo,x=o.contextType;typeof x=="object"&&x!==null&&(g=Ye(x)),g=new o(c,g),s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=jy,s.stateNode=g,g._reactInternals=s,g=s.stateNode,g.props=c,g.state=s.memoizedState,g.refs={},cy(s),x=o.contextType,g.context=typeof x=="object"&&x!==null?Ye(x):wo,g.state=s.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(Ly(s,o,x,c),g.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&jy.enqueueReplaceState(g,g.state,null),Eu(s,c,g,p),Su(),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(r===null){g=s.stateNode;var S=s.memoizedProps,k=aa(o,S);g.props=k;var H=g.context,W=o.contextType;x=wo,typeof W=="object"&&W!==null&&(x=Ye(W));var rt=o.getDerivedStateFromProps;W=typeof rt=="function"||typeof g.getSnapshotBeforeUpdate=="function",S=s.pendingProps!==S,W||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S||H!==x)&&UA(s,g,c,x),Yi=!1;var $=s.memoizedState;g.state=$,Eu(s,c,g,p),Su(),H=s.memoizedState,S||$!==H||Yi?(typeof rt=="function"&&(Ly(s,o,rt,c),H=s.memoizedState),(k=Yi||BA(s,o,k,c,$,H,x))?(W||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(s.flags|=4194308)):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=H),g.props=c,g.state=H,g.context=x,c=k):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{g=s.stateNode,fy(r,s),x=s.memoizedProps,W=aa(o,x),g.props=W,rt=s.pendingProps,$=g.context,H=o.contextType,k=wo,typeof H=="object"&&H!==null&&(k=Ye(H)),S=o.getDerivedStateFromProps,(H=typeof S=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x!==rt||$!==k)&&UA(s,g,c,k),Yi=!1,$=s.memoizedState,g.state=$,Eu(s,c,g,p),Su();var Z=s.memoizedState;x!==rt||$!==Z||Yi||r!==null&&r.dependencies!==null&&Uf(r.dependencies)?(typeof S=="function"&&(Ly(s,o,S,c),Z=s.memoizedState),(W=Yi||BA(s,o,W,c,$,Z,k)||r!==null&&r.dependencies!==null&&Uf(r.dependencies))?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,Z,k),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,Z,k)),typeof g.componentDidUpdate=="function"&&(s.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof g.componentDidUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=Z),g.props=c,g.state=Z,g.context=k,c=W):(typeof g.componentDidUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),c=!1)}return g=c,rd(r,s),c=(s.flags&128)!==0,g||c?(g=s.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:g.render(),s.flags|=1,r!==null&&c?(s.child=ia(s,r.child,null,p),s.child=ia(s,null,o,p)):Ke(r,s,o,p),s.memoizedState=g.state,r=s.child):r=si(r,s,p),r}function WA(r,s,o,c){return Js(),s.flags|=256,Ke(r,s,o,c),s.child}var Iy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Py(r){return{baseLanes:r,cachePool:F_()}}function qy(r,s,o){return r=r!==null?r.childLanes&~o:0,s&&(r|=jn),r}function tR(r,s,o){var c=s.pendingProps,p=!1,g=(s.flags&128)!==0,x;if((x=g)||(x=r!==null&&r.memoizedState===null?!1:(Ce.current&2)!==0),x&&(p=!0,s.flags&=-129),x=(s.flags&32)!==0,s.flags&=-33,r===null){if(Yt){if(p?Xi(s):Qi(),(r=fe)?(r=lO(r,tr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Fi!==null?{id:Nr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},o=N_(r),o.return=s,s.child=o,Ge=s,fe=null)):r=null,r===null)throw Hi(s);return E0(r)?s.lanes=32:s.lanes=536870912,null}var S=c.children;return c=c.fallback,p?(Qi(),p=s.mode,S=id({mode:"hidden",children:S},p),c=Zs(c,p,o,null),S.return=s,c.return=s,S.sibling=c,s.child=S,c=s.child,c.memoizedState=Py(o),c.childLanes=qy(r,x,o),s.memoizedState=Iy,Ru(null,c)):(Xi(s),Fy(s,S))}var k=r.memoizedState;if(k!==null&&(S=k.dehydrated,S!==null)){if(g)s.flags&256?(Xi(s),s.flags&=-257,s=Vy(r,s,o)):s.memoizedState!==null?(Qi(),s.child=r.child,s.flags|=128,s=null):(Qi(),S=c.fallback,p=s.mode,c=id({mode:"visible",children:c.children},p),S=Zs(S,p,o,null),S.flags|=2,c.return=s,S.return=s,c.sibling=S,s.child=c,ia(s,r.child,null,o),c=s.child,c.memoizedState=Py(o),c.childLanes=qy(r,x,o),s.memoizedState=Iy,s=Ru(null,c));else if(Xi(s),E0(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var H=x.dgst;x=H,c=Error(a(419)),c.stack="",c.digest=x,gu({value:c,source:null,stack:null}),s=Vy(r,s,o)}else if(Me||Co(r,s,o,!1),x=(o&r.childLanes)!==0,Me||x){if(x=oe,x!==null&&(c=PC(x,o),c!==0&&c!==k.retryLane))throw k.retryLane=c,Qs(r,c),_n(x,r,c),By;S0(S)||hd(),s=Vy(r,s,o)}else S0(S)?(s.flags|=192,s.child=r.child,s=null):(r=k.treeContext,fe=nr(S.nextSibling),Ge=s,Yt=!0,Vi=null,tr=!1,r!==null&&z_(s,r),s=Fy(s,c.children),s.flags|=4096);return s}return p?(Qi(),S=c.fallback,p=s.mode,k=r.child,H=k.sibling,c=Wr(k,{mode:"hidden",children:c.children}),c.subtreeFlags=k.subtreeFlags&65011712,H!==null?S=Wr(H,S):(S=Zs(S,p,o,null),S.flags|=2),S.return=s,c.return=s,c.sibling=S,s.child=c,Ru(null,c),c=s.child,S=r.child.memoizedState,S===null?S=Py(o):(p=S.cachePool,p!==null?(k=ke._currentValue,p=p.parent!==k?{parent:k,pool:k}:p):p=F_(),S={baseLanes:S.baseLanes|o,cachePool:p}),c.memoizedState=S,c.childLanes=qy(r,x,o),s.memoizedState=Iy,Ru(r.child,c)):(Xi(s),o=r.child,r=o.sibling,o=Wr(o,{mode:"visible",children:c.children}),o.return=s,o.sibling=null,r!==null&&(x=s.deletions,x===null?(s.deletions=[r],s.flags|=16):x.push(r)),s.child=o,s.memoizedState=null,o)}function Fy(r,s){return s=id({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function id(r,s){return r=Dn(22,r,null,s),r.lanes=0,r}function Vy(r,s,o){return ia(s,r.child,null,o),r=Fy(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function eR(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),iy(r.return,s,o)}function Hy(r,s,o,c,p,g){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:p,treeForkCount:g}:(x.isBackwards=s,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=o,x.tailMode=p,x.treeForkCount=g)}function nR(r,s,o){var c=s.pendingProps,p=c.revealOrder,g=c.tail;c=c.children;var x=Ce.current,S=(x&2)!==0;if(S?(x=x&1|2,s.flags|=128):x&=1,J(Ce,x),Ke(r,s,c,o),c=Yt?mu:0,!S&&r!==null&&(r.flags&128)!==0)t:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&eR(r,o,s);else if(r.tag===19)eR(r,o,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break t;for(;r.sibling===null;){if(r.return===null||r.return===s)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(p){case"forwards":for(o=s.child,p=null;o!==null;)r=o.alternate,r!==null&&Yf(r)===null&&(p=o),o=o.sibling;o=p,o===null?(p=s.child,s.child=null):(p=o.sibling,o.sibling=null),Hy(s,!1,p,o,g,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=s.child,s.child=null;p!==null;){if(r=p.alternate,r!==null&&Yf(r)===null){s.child=p;break}r=p.sibling,p.sibling=o,o=p,p=r}Hy(s,!0,o,null,g,c);break;case"together":Hy(s,!1,null,null,void 0,c);break;default:s.memoizedState=null}return s.child}function si(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Wi|=s.lanes,(o&s.childLanes)===0)if(r!==null){if(Co(r,s,o,!1),(o&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(a(153));if(s.child!==null){for(r=s.child,o=Wr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=Wr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function Gy(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&Uf(r)))}function p9(r,s,o){switch(s.tag){case 3:Gt(s,s.stateNode.containerInfo),Gi(s,ke,r.memoizedState.cache),Js();break;case 27:case 5:Ve(s);break;case 4:Gt(s,s.stateNode.containerInfo);break;case 10:Gi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,gy(s),null;break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(Xi(s),s.flags|=128,null):(o&s.child.childLanes)!==0?tR(r,s,o):(Xi(s),r=si(r,s,o),r!==null?r.sibling:null);Xi(s);break;case 19:var p=(r.flags&128)!==0;if(c=(o&s.childLanes)!==0,c||(Co(r,s,o,!1),c=(o&s.childLanes)!==0),p){if(c)return nR(r,s,o);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),J(Ce,Ce.current),c)break;return null;case 22:return s.lanes=0,$A(r,s,o,s.pendingProps);case 24:Gi(s,ke,r.memoizedState.cache)}return si(r,s,o)}function rR(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps)Me=!0;else{if(!Gy(r,o)&&(s.flags&128)===0)return Me=!1,p9(r,s,o);Me=(r.flags&131072)!==0}else Me=!1,Yt&&(s.flags&1048576)!==0&&j_(s,mu,s.index);switch(s.lanes=0,s.tag){case 16:t:{var c=s.pendingProps;if(r=na(s.elementType),s.type=r,typeof r=="function")Qg(r)?(c=aa(r,c),s.tag=1,s=JA(null,s,r,c,o)):(s.tag=0,s=Uy(null,s,r,c,o));else{if(r!=null){var p=r.$$typeof;if(p===G){s.tag=11,s=GA(null,s,r,c,o);break t}else if(p===M){s.tag=14,s=YA(null,s,r,c,o);break t}}throw s=it(r)||r,Error(a(306,s,""))}}return s;case 0:return Uy(r,s,s.type,s.pendingProps,o);case 1:return c=s.type,p=aa(c,s.pendingProps),JA(r,s,c,p,o);case 3:t:{if(Gt(s,s.stateNode.containerInfo),r===null)throw Error(a(387));c=s.pendingProps;var g=s.memoizedState;p=g.element,fy(r,s),Eu(s,c,null,o);var x=s.memoizedState;if(c=x.cache,Gi(s,ke,c),c!==g.cache&&sy(s,[ke],o,!0),Su(),c=x.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:x.cache},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){s=WA(r,s,c,o);break t}else if(c!==p){p=Zn(Error(a(424)),s),gu(p),s=WA(r,s,c,o);break t}else{switch(r=s.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(fe=nr(r.firstChild),Ge=s,Yt=!0,Vi=null,tr=!0,o=$_(s,null,c,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Js(),c===p){s=si(r,s,o);break t}Ke(r,s,c,o)}s=s.child}return s;case 26:return rd(r,s),r===null?(o=pO(s.type,null,s.pendingProps,null))?s.memoizedState=o:Yt||(o=s.type,r=s.pendingProps,c=xd(dt.current).createElement(o),c[He]=s,c[xn]=r,$e(c,o,r),Ie(c),s.stateNode=c):s.memoizedState=pO(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return Ve(s),r===null&&Yt&&(c=s.stateNode=fO(s.type,s.pendingProps,dt.current),Ge=s,tr=!0,p=fe,is(s.type)?(T0=p,fe=nr(c.firstChild)):fe=p),Ke(r,s,s.pendingProps.children,o),rd(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&Yt&&((p=c=fe)&&(c=H9(c,s.type,s.pendingProps,tr),c!==null?(s.stateNode=c,Ge=s,fe=nr(c.firstChild),tr=!1,p=!0):p=!1),p||Hi(s)),Ve(s),p=s.type,g=s.pendingProps,x=r!==null?r.memoizedProps:null,c=g.children,v0(p,g)?c=null:x!==null&&v0(p,x)&&(s.flags|=32),s.memoizedState!==null&&(p=by(r,s,s9,null,null,o),Vu._currentValue=p),rd(r,s),Ke(r,s,c,o),s.child;case 6:return r===null&&Yt&&((r=o=fe)&&(o=G9(o,s.pendingProps,tr),o!==null?(s.stateNode=o,Ge=s,fe=null,r=!0):r=!1),r||Hi(s)),null;case 13:return tR(r,s,o);case 4:return Gt(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=ia(s,null,c,o):Ke(r,s,c,o),s.child;case 11:return GA(r,s,s.type,s.pendingProps,o);case 7:return Ke(r,s,s.pendingProps,o),s.child;case 8:return Ke(r,s,s.pendingProps.children,o),s.child;case 12:return Ke(r,s,s.pendingProps.children,o),s.child;case 10:return c=s.pendingProps,Gi(s,s.type,c.value),Ke(r,s,c.children,o),s.child;case 9:return p=s.type._context,c=s.pendingProps.children,ta(s),p=Ye(p),c=c(p),s.flags|=1,Ke(r,s,c,o),s.child;case 14:return YA(r,s,s.type,s.pendingProps,o);case 15:return KA(r,s,s.type,s.pendingProps,o);case 19:return nR(r,s,o);case 31:return h9(r,s,o);case 22:return $A(r,s,o,s.pendingProps);case 24:return ta(s),c=Ye(ke),r===null?(p=ly(),p===null&&(p=oe,g=ay(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=o),p=g),s.memoizedState={parent:c,cache:p},cy(s),Gi(s,ke,p)):((r.lanes&o)!==0&&(fy(r,s),Eu(s,null,null,o),Su()),p=r.memoizedState,g=s.memoizedState,p.parent!==c?(p={parent:c,cache:c},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Gi(s,ke,c)):(c=g.cache,Gi(s,ke,c),c!==p.cache&&sy(s,[ke],o,!0))),Ke(r,s,s.pendingProps.children,o),s.child;case 29:throw s.pendingProps}throw Error(a(156,s.tag))}function ai(r){r.flags|=4}function Yy(r,s,o,c,p){if((s=(r.mode&32)!==0)&&(s=!1),s){if(r.flags|=16777216,(p&335544128)===p)if(r.stateNode.complete)r.flags|=8192;else if(kR())r.flags|=8192;else throw ra=Ff,uy}else r.flags&=-16777217}function iR(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!vO(s))if(kR())r.flags|=8192;else throw ra=Ff,uy}function sd(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?BC():536870912,r.lanes|=s,Bo|=s)}function Ou(r,s){if(!Yt)switch(r.tailMode){case"hidden":s=r.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function de(r){var s=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(s)for(var p=r.child;p!==null;)o|=p.lanes|p.childLanes,c|=p.subtreeFlags&65011712,c|=p.flags&65011712,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)o|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=c,r.childLanes=o,s}function m9(r,s,o){var c=s.pendingProps;switch(ty(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(s),null;case 1:return de(s),null;case 3:return o=s.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),ni(ke),qt(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(To(s)?ai(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,ny())),de(s),null;case 26:var p=s.type,g=s.memoizedState;return r===null?(ai(s),g!==null?(de(s),iR(s,g)):(de(s),Yy(s,p,null,c,o))):g?g!==r.memoizedState?(ai(s),de(s),iR(s,g)):(de(s),s.flags&=-16777217):(r=r.memoizedProps,r!==c&&ai(s),de(s),Yy(s,p,r,c,o)),null;case 27:if(yn(s),o=dt.current,p=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&ai(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return de(s),null}r=ot.current,To(s)?B_(s):(r=fO(p,c,o),s.stateNode=r,ai(s))}return de(s),null;case 5:if(yn(s),p=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&ai(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return de(s),null}if(g=ot.current,To(s))B_(s);else{var x=xd(dt.current);switch(g){case 1:g=x.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=x.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=x.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?x.createElement("select",{is:c.is}):x.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?x.createElement(p,{is:c.is}):x.createElement(p)}}g[He]=s,g[xn]=c;t:for(x=s.child;x!==null;){if(x.tag===5||x.tag===6)g.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===s)break t;for(;x.sibling===null;){if(x.return===null||x.return===s)break t;x=x.return}x.sibling.return=x.return,x=x.sibling}s.stateNode=g;t:switch($e(g,p,c),p){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break t;case"img":c=!0;break t;default:c=!1}c&&ai(s)}}return de(s),Yy(s,s.type,r===null?null:r.memoizedProps,s.pendingProps,o),null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==c&&ai(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(a(166));if(r=dt.current,To(s)){if(r=s.stateNode,o=s.memoizedProps,c=null,p=Ge,p!==null)switch(p.tag){case 27:case 5:c=p.memoizedProps}r[He]=s,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||tO(r.nodeValue,o)),r||Hi(s,!0)}else r=xd(r).createTextNode(c),r[He]=s,s.stateNode=r}return de(s),null;case 31:if(o=s.memoizedState,r===null||r.memoizedState!==null){if(c=To(s),o!==null){if(r===null){if(!c)throw Error(a(318));if(r=s.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[He]=s}else Js(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;de(s),r=!1}else o=ny(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return s.flags&256?(Nn(s),s):(Nn(s),null);if((s.flags&128)!==0)throw Error(a(558))}return de(s),null;case 13:if(c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=To(s),c!==null&&c.dehydrated!==null){if(r===null){if(!p)throw Error(a(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(a(317));p[He]=s}else Js(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;de(s),p=!1}else p=ny(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return s.flags&256?(Nn(s),s):(Nn(s),null)}return Nn(s),(s.flags&128)!==0?(s.lanes=o,s):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=s.child,p=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(p=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==p&&(c.flags|=2048)),o!==r&&o&&(s.child.flags|=8192),sd(s,s.updateQueue),de(s),null);case 4:return qt(),r===null&&p0(s.stateNode.containerInfo),de(s),null;case 10:return ni(s.type),de(s),null;case 19:if(T(Ce),c=s.memoizedState,c===null)return de(s),null;if(p=(s.flags&128)!==0,g=c.rendering,g===null)if(p)Ou(c,!1);else{if(Se!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(g=Yf(r),g!==null){for(s.flags|=128,Ou(c,!1),r=g.updateQueue,s.updateQueue=r,sd(s,r),s.subtreeFlags=0,r=o,o=s.child;o!==null;)M_(o,r),o=o.sibling;return J(Ce,Ce.current&1|2),Yt&&ti(s,c.treeForkCount),s.child}r=r.sibling}c.tail!==null&&on()>cd&&(s.flags|=128,p=!0,Ou(c,!1),s.lanes=4194304)}else{if(!p)if(r=Yf(g),r!==null){if(s.flags|=128,p=!0,r=r.updateQueue,s.updateQueue=r,sd(s,r),Ou(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Yt)return de(s),null}else 2*on()-c.renderingStartTime>cd&&o!==536870912&&(s.flags|=128,p=!0,Ou(c,!1),s.lanes=4194304);c.isBackwards?(g.sibling=s.child,s.child=g):(r=c.last,r!==null?r.sibling=g:s.child=g,c.last=g)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=on(),r.sibling=null,o=Ce.current,J(Ce,p?o&1|2:o&1),Yt&&ti(s,c.treeForkCount),r):(de(s),null);case 22:case 23:return Nn(s),my(),c=s.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(o&536870912)!==0&&(s.flags&128)===0&&(de(s),s.subtreeFlags&6&&(s.flags|=8192)):de(s),o=s.updateQueue,o!==null&&sd(s,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048),r!==null&&T(ea),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),s.memoizedState.cache!==o&&(s.flags|=2048),ni(ke),de(s),null;case 25:return null;case 30:return null}throw Error(a(156,s.tag))}function g9(r,s){switch(ty(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return ni(ke),qt(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return yn(s),null;case 31:if(s.memoizedState!==null){if(Nn(s),s.alternate===null)throw Error(a(340));Js()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 13:if(Nn(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(a(340));Js()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return T(Ce),null;case 4:return qt(),null;case 10:return ni(s.type),null;case 22:case 23:return Nn(s),my(),r!==null&&T(ea),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return ni(ke),null;case 25:return null;default:return null}}function sR(r,s){switch(ty(s),s.tag){case 3:ni(ke),qt();break;case 26:case 27:case 5:yn(s);break;case 4:qt();break;case 31:s.memoizedState!==null&&Nn(s);break;case 13:Nn(s);break;case 19:T(Ce);break;case 10:ni(s.type);break;case 22:case 23:Nn(s),my(),r!==null&&T(ea);break;case 24:ni(ke)}}function ku(r,s){try{var o=s.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&r)===r){c=void 0;var g=o.create,x=o.inst;c=g(),x.destroy=c}o=o.next}while(o!==p)}}catch(S){ne(s,s.return,S)}}function Zi(r,s,o){try{var c=s.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next;c=g;do{if((c.tag&r)===r){var x=c.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,p=s;var k=o,H=S;try{H()}catch(W){ne(p,k,W)}}}c=c.next}while(c!==g)}}catch(W){ne(s,s.return,W)}}function aR(r){var s=r.updateQueue;if(s!==null){var o=r.stateNode;try{Q_(s,o)}catch(c){ne(r,r.return,c)}}}function oR(r,s,o){o.props=aa(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){ne(r,s,c)}}function Du(r,s){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(p){ne(r,s,p)}}function jr(r,s){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(p){ne(r,s,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ne(r,s,p)}else o.current=null}function lR(r){var s=r.type,o=r.memoizedProps,c=r.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break t;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(p){ne(r,r.return,p)}}function Ky(r,s,o){try{var c=r.stateNode;U9(c,r.type,o,s),c[xn]=s}catch(p){ne(r,r.return,p)}}function uR(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&is(r.type)||r.tag===4}function $y(r){t:for(;;){for(;r.sibling===null;){if(r.return===null||uR(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&is(r.type)||r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Xy(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,s):(s=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.appendChild(r),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=Zr));else if(c!==4&&(c===27&&is(r.type)&&(o=r.stateNode,s=null),r=r.child,r!==null))for(Xy(r,s,o),r=r.sibling;r!==null;)Xy(r,s,o),r=r.sibling}function ad(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.insertBefore(r,s):o.appendChild(r);else if(c!==4&&(c===27&&is(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(ad(r,s,o),r=r.sibling;r!==null;)ad(r,s,o),r=r.sibling}function cR(r){var s=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,p=s.attributes;p.length;)s.removeAttributeNode(p[0]);$e(s,c,o),s[He]=r,s[xn]=o}catch(g){ne(r,r.return,g)}}var oi=!1,Ne=!1,Qy=!1,fR=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function y9(r,s){if(r=r.containerInfo,y0=Ad,r=E_(r),Vg(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else t:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break t}var x=0,S=-1,k=-1,H=0,W=0,rt=r,$=null;e:for(;;){for(var Z;rt!==o||p!==0&&rt.nodeType!==3||(S=x+p),rt!==g||c!==0&&rt.nodeType!==3||(k=x+c),rt.nodeType===3&&(x+=rt.nodeValue.length),(Z=rt.firstChild)!==null;)$=rt,rt=Z;for(;;){if(rt===r)break e;if($===o&&++H===p&&(S=x),$===g&&++W===c&&(k=x),(Z=rt.nextSibling)!==null)break;rt=$,$=rt.parentNode}rt=Z}o=S===-1||k===-1?null:{start:S,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(b0={focusedElem:r,selectionRange:o},Ad=!1,Pe=s;Pe!==null;)if(s=Pe,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,Pe=r;else for(;Pe!==null;){switch(s=Pe,g=s.alternate,r=s.flags,s.tag){case 0:if((r&4)!==0&&(r=s.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)p=r[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,o=s,p=g.memoizedProps,g=g.memoizedState,c=o.stateNode;try{var ht=aa(o.type,p);r=c.getSnapshotBeforeUpdate(ht,g),c.__reactInternalSnapshotBeforeUpdate=r}catch(Et){ne(o,o.return,Et)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,o=r.nodeType,o===9)w0(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":w0(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=s.sibling,r!==null){r.return=s.return,Pe=r;break}Pe=s.return}}function dR(r,s,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:ui(r,o),c&4&&ku(5,o);break;case 1:if(ui(r,o),c&4)if(r=o.stateNode,s===null)try{r.componentDidMount()}catch(x){ne(o,o.return,x)}else{var p=aa(o.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(p,s,r.__reactInternalSnapshotBeforeUpdate)}catch(x){ne(o,o.return,x)}}c&64&&aR(o),c&512&&Du(o,o.return);break;case 3:if(ui(r,o),c&64&&(r=o.updateQueue,r!==null)){if(s=null,o.child!==null)switch(o.child.tag){case 27:case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}try{Q_(r,s)}catch(x){ne(o,o.return,x)}}break;case 27:s===null&&c&4&&cR(o);case 26:case 5:ui(r,o),s===null&&c&4&&lR(o),c&512&&Du(o,o.return);break;case 12:ui(r,o);break;case 31:ui(r,o),c&4&&mR(r,o);break;case 13:ui(r,o),c&4&&gR(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=_9.bind(null,o),Y9(r,o))));break;case 22:if(c=o.memoizedState!==null||oi,!c){s=s!==null&&s.memoizedState!==null||Ne,p=oi;var g=Ne;oi=c,(Ne=s)&&!g?ci(r,o,(o.subtreeFlags&8772)!==0):ui(r,o),oi=p,Ne=g}break;case 30:break;default:ui(r,o)}}function hR(r){var s=r.alternate;s!==null&&(r.alternate=null,hR(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&_g(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var pe=null,Sn=!1;function li(r,s,o){for(o=o.child;o!==null;)pR(r,s,o),o=o.sibling}function pR(r,s,o){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(dr,o)}catch{}switch(o.tag){case 26:Ne||jr(o,s),li(r,s,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Ne||jr(o,s);var c=pe,p=Sn;is(o.type)&&(pe=o.stateNode,Sn=!1),li(r,s,o),Pu(o.stateNode),pe=c,Sn=p;break;case 5:Ne||jr(o,s);case 6:if(c=pe,p=Sn,pe=null,li(r,s,o),pe=c,Sn=p,pe!==null)if(Sn)try{(pe.nodeType===9?pe.body:pe.nodeName==="HTML"?pe.ownerDocument.body:pe).removeChild(o.stateNode)}catch(g){ne(o,s,g)}else try{pe.removeChild(o.stateNode)}catch(g){ne(o,s,g)}break;case 18:pe!==null&&(Sn?(r=pe,aO(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Go(r)):aO(pe,o.stateNode));break;case 4:c=pe,p=Sn,pe=o.stateNode.containerInfo,Sn=!0,li(r,s,o),pe=c,Sn=p;break;case 0:case 11:case 14:case 15:Zi(2,o,s),Ne||Zi(4,o,s),li(r,s,o);break;case 1:Ne||(jr(o,s),c=o.stateNode,typeof c.componentWillUnmount=="function"&&oR(o,s,c)),li(r,s,o);break;case 21:li(r,s,o);break;case 22:Ne=(c=Ne)||o.memoizedState!==null,li(r,s,o),Ne=c;break;default:li(r,s,o)}}function mR(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Go(r)}catch(o){ne(s,s.return,o)}}}function gR(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Go(r)}catch(o){ne(s,s.return,o)}}function b9(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new fR),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new fR),s;default:throw Error(a(435,r.tag))}}function od(r,s){var o=b9(r);s.forEach(function(c){if(!o.has(c)){o.add(c);var p=A9.bind(null,r,c);c.then(p,p)}})}function En(r,s){var o=s.deletions;if(o!==null)for(var c=0;c<o.length;c++){var p=o[c],g=r,x=s,S=x;t:for(;S!==null;){switch(S.tag){case 27:if(is(S.type)){pe=S.stateNode,Sn=!1;break t}break;case 5:pe=S.stateNode,Sn=!1;break t;case 3:case 4:pe=S.stateNode.containerInfo,Sn=!0;break t}S=S.return}if(pe===null)throw Error(a(160));pR(g,x,p),pe=null,Sn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)yR(s,r),s=s.sibling}var mr=null;function yR(r,s){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:En(s,r),Tn(r),c&4&&(Zi(3,r,r.return),ku(3,r),Zi(5,r,r.return));break;case 1:En(s,r),Tn(r),c&512&&(Ne||o===null||jr(o,o.return)),c&64&&oi&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var p=mr;if(En(s,r),Tn(r),c&512&&(Ne||o===null||jr(o,o.return)),c&4){var g=o!==null?o.memoizedState:null;if(c=r.memoizedState,o===null)if(c===null)if(r.stateNode===null){t:{c=r.type,o=r.memoizedProps,p=p.ownerDocument||p;e:switch(c){case"title":g=p.getElementsByTagName("title")[0],(!g||g[iu]||g[He]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(c),p.head.insertBefore(g,p.querySelector("head > title"))),$e(g,c,o),g[He]=r,Ie(g),c=g;break t;case"link":var x=yO("link","href",p).get(c+(o.href||""));if(x){for(var S=0;S<x.length;S++)if(g=x[S],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){x.splice(S,1);break e}}g=p.createElement(c),$e(g,c,o),p.head.appendChild(g);break;case"meta":if(x=yO("meta","content",p).get(c+(o.content||""))){for(S=0;S<x.length;S++)if(g=x[S],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){x.splice(S,1);break e}}g=p.createElement(c),$e(g,c,o),p.head.appendChild(g);break;default:throw Error(a(468,c))}g[He]=r,Ie(g),c=g}r.stateNode=c}else bO(p,r.type,r.stateNode);else r.stateNode=gO(p,c,r.memoizedProps);else g!==c?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,c===null?bO(p,r.type,r.stateNode):gO(p,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Ky(r,r.memoizedProps,o.memoizedProps)}break;case 27:En(s,r),Tn(r),c&512&&(Ne||o===null||jr(o,o.return)),o!==null&&c&4&&Ky(r,r.memoizedProps,o.memoizedProps);break;case 5:if(En(s,r),Tn(r),c&512&&(Ne||o===null||jr(o,o.return)),r.flags&32){p=r.stateNode;try{po(p,"")}catch(ht){ne(r,r.return,ht)}}c&4&&r.stateNode!=null&&(p=r.memoizedProps,Ky(r,p,o!==null?o.memoizedProps:p)),c&1024&&(Qy=!0);break;case 6:if(En(s,r),Tn(r),c&4){if(r.stateNode===null)throw Error(a(162));c=r.memoizedProps,o=r.stateNode;try{o.nodeValue=c}catch(ht){ne(r,r.return,ht)}}break;case 3:if(Ed=null,p=mr,mr=wd(s.containerInfo),En(s,r),mr=p,Tn(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Go(s.containerInfo)}catch(ht){ne(r,r.return,ht)}Qy&&(Qy=!1,bR(r));break;case 4:c=mr,mr=wd(r.stateNode.containerInfo),En(s,r),Tn(r),mr=c;break;case 12:En(s,r),Tn(r);break;case 31:En(s,r),Tn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,od(r,c)));break;case 13:En(s,r),Tn(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(ud=on()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,od(r,c)));break;case 22:p=r.memoizedState!==null;var k=o!==null&&o.memoizedState!==null,H=oi,W=Ne;if(oi=H||p,Ne=W||k,En(s,r),Ne=W,oi=H,Tn(r),c&8192)t:for(s=r.stateNode,s._visibility=p?s._visibility&-2:s._visibility|1,p&&(o===null||k||oi||Ne||oa(r)),o=null,s=r;;){if(s.tag===5||s.tag===26){if(o===null){k=o=s;try{if(g=k.stateNode,p)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=k.stateNode;var rt=k.memoizedProps.style,$=rt!=null&&rt.hasOwnProperty("display")?rt.display:null;S.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(ht){ne(k,k.return,ht)}}}else if(s.tag===6){if(o===null){k=s;try{k.stateNode.nodeValue=p?"":k.memoizedProps}catch(ht){ne(k,k.return,ht)}}}else if(s.tag===18){if(o===null){k=s;try{var Z=k.stateNode;p?oO(Z,!0):oO(k.stateNode,!1)}catch(ht){ne(k,k.return,ht)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break t;for(;s.sibling===null;){if(s.return===null||s.return===r)break t;o===s&&(o=null),s=s.return}o===s&&(o=null),s.sibling.return=s.return,s=s.sibling}c&4&&(c=r.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,od(r,o))));break;case 19:En(s,r),Tn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,od(r,c)));break;case 30:break;case 21:break;default:En(s,r),Tn(r)}}function Tn(r){var s=r.flags;if(s&2){try{for(var o,c=r.return;c!==null;){if(uR(c)){o=c;break}c=c.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var p=o.stateNode,g=$y(r);ad(r,g,p);break;case 5:var x=o.stateNode;o.flags&32&&(po(x,""),o.flags&=-33);var S=$y(r);ad(r,S,x);break;case 3:case 4:var k=o.stateNode.containerInfo,H=$y(r);Xy(r,H,k);break;default:throw Error(a(161))}}catch(W){ne(r,r.return,W)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function bR(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;bR(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function ui(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)dR(r,s.alternate,s),s=s.sibling}function oa(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:Zi(4,s,s.return),oa(s);break;case 1:jr(s,s.return);var o=s.stateNode;typeof o.componentWillUnmount=="function"&&oR(s,s.return,o),oa(s);break;case 27:Pu(s.stateNode);case 26:case 5:jr(s,s.return),oa(s);break;case 22:s.memoizedState===null&&oa(s);break;case 30:oa(s);break;default:oa(s)}r=r.sibling}}function ci(r,s,o){for(o=o&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var c=s.alternate,p=r,g=s,x=g.flags;switch(g.tag){case 0:case 11:case 15:ci(p,g,o),ku(4,g);break;case 1:if(ci(p,g,o),c=g,p=c.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(H){ne(c,c.return,H)}if(c=g,p=c.updateQueue,p!==null){var S=c.stateNode;try{var k=p.shared.hiddenCallbacks;if(k!==null)for(p.shared.hiddenCallbacks=null,p=0;p<k.length;p++)X_(k[p],S)}catch(H){ne(c,c.return,H)}}o&&x&64&&aR(g),Du(g,g.return);break;case 27:cR(g);case 26:case 5:ci(p,g,o),o&&c===null&&x&4&&lR(g),Du(g,g.return);break;case 12:ci(p,g,o);break;case 31:ci(p,g,o),o&&x&4&&mR(p,g);break;case 13:ci(p,g,o),o&&x&4&&gR(p,g);break;case 22:g.memoizedState===null&&ci(p,g,o),Du(g,g.return);break;case 30:break;default:ci(p,g,o)}s=s.sibling}}function Zy(r,s){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&yu(o))}function Jy(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&yu(r))}function gr(r,s,o,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)vR(r,s,o,c),s=s.sibling}function vR(r,s,o,c){var p=s.flags;switch(s.tag){case 0:case 11:case 15:gr(r,s,o,c),p&2048&&ku(9,s);break;case 1:gr(r,s,o,c);break;case 3:gr(r,s,o,c),p&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&yu(r)));break;case 12:if(p&2048){gr(r,s,o,c),r=s.stateNode;try{var g=s.memoizedProps,x=g.id,S=g.onPostCommit;typeof S=="function"&&S(x,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(k){ne(s,s.return,k)}}else gr(r,s,o,c);break;case 31:gr(r,s,o,c);break;case 13:gr(r,s,o,c);break;case 23:break;case 22:g=s.stateNode,x=s.alternate,s.memoizedState!==null?g._visibility&2?gr(r,s,o,c):Mu(r,s):g._visibility&2?gr(r,s,o,c):(g._visibility|=2,Lo(r,s,o,c,(s.subtreeFlags&10256)!==0||!1)),p&2048&&Zy(x,s);break;case 24:gr(r,s,o,c),p&2048&&Jy(s.alternate,s);break;default:gr(r,s,o,c)}}function Lo(r,s,o,c,p){for(p=p&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var g=r,x=s,S=o,k=c,H=x.flags;switch(x.tag){case 0:case 11:case 15:Lo(g,x,S,k,p),ku(8,x);break;case 23:break;case 22:var W=x.stateNode;x.memoizedState!==null?W._visibility&2?Lo(g,x,S,k,p):Mu(g,x):(W._visibility|=2,Lo(g,x,S,k,p)),p&&H&2048&&Zy(x.alternate,x);break;case 24:Lo(g,x,S,k,p),p&&H&2048&&Jy(x.alternate,x);break;default:Lo(g,x,S,k,p)}s=s.sibling}}function Mu(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var o=r,c=s,p=c.flags;switch(c.tag){case 22:Mu(o,c),p&2048&&Zy(c.alternate,c);break;case 24:Mu(o,c),p&2048&&Jy(c.alternate,c);break;default:Mu(o,c)}s=s.sibling}}var Nu=8192;function jo(r,s,o){if(r.subtreeFlags&Nu)for(r=r.child;r!==null;)xR(r,s,o),r=r.sibling}function xR(r,s,o){switch(r.tag){case 26:jo(r,s,o),r.flags&Nu&&r.memoizedState!==null&&i7(o,mr,r.memoizedState,r.memoizedProps);break;case 5:jo(r,s,o);break;case 3:case 4:var c=mr;mr=wd(r.stateNode.containerInfo),jo(r,s,o),mr=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Nu,Nu=16777216,jo(r,s,o),Nu=c):jo(r,s,o));break;default:jo(r,s,o)}}function wR(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function Lu(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var c=s[o];Pe=c,ER(c,r)}wR(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)SR(r),r=r.sibling}function SR(r){switch(r.tag){case 0:case 11:case 15:Lu(r),r.flags&2048&&Zi(9,r,r.return);break;case 3:Lu(r);break;case 12:Lu(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,ld(r)):Lu(r);break;default:Lu(r)}}function ld(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var c=s[o];Pe=c,ER(c,r)}wR(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:Zi(8,s,s.return),ld(s);break;case 22:o=s.stateNode,o._visibility&2&&(o._visibility&=-3,ld(s));break;default:ld(s)}r=r.sibling}}function ER(r,s){for(;Pe!==null;){var o=Pe;switch(o.tag){case 0:case 11:case 15:Zi(8,o,s);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:yu(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Pe=c;else t:for(o=r;Pe!==null;){c=Pe;var p=c.sibling,g=c.return;if(hR(c),c===o){Pe=null;break t}if(p!==null){p.return=g,Pe=p;break t}Pe=g}}}var v9={getCacheForType:function(r){var s=Ye(ke),o=s.data.get(r);return o===void 0&&(o=r(),s.data.set(r,o)),o},cacheSignal:function(){return Ye(ke).controller.signal}},x9=typeof WeakMap=="function"?WeakMap:Map,Zt=0,oe=null,It=null,Ft=0,ee=0,Ln=null,Ji=!1,zo=!1,Wy=!1,fi=0,Se=0,Wi=0,la=0,t0=0,jn=0,Bo=0,ju=null,Cn=null,e0=!1,ud=0,TR=0,cd=1/0,fd=null,ts=null,Be=0,es=null,Uo=null,di=0,n0=0,r0=null,CR=null,zu=0,i0=null;function zn(){return(Zt&2)!==0&&Ft!==0?Ft&-Ft:Y.T!==null?c0():qC()}function _R(){if(jn===0)if((Ft&536870912)===0||Yt){var r=vf;vf<<=1,(vf&3932160)===0&&(vf=262144),jn=r}else jn=536870912;return r=Mn.current,r!==null&&(r.flags|=32),jn}function _n(r,s,o){(r===oe&&(ee===2||ee===9)||r.cancelPendingCommit!==null)&&(Io(r,0),ns(r,Ft,jn,!1)),ru(r,o),((Zt&2)===0||r!==oe)&&(r===oe&&((Zt&2)===0&&(la|=o),Se===4&&ns(r,Ft,jn,!1)),zr(r))}function AR(r,s,o){if((Zt&6)!==0)throw Error(a(327));var c=!o&&(s&127)===0&&(s&r.expiredLanes)===0||nu(r,s),p=c?E9(r,s):a0(r,s,!0),g=c;do{if(p===0){zo&&!c&&ns(r,s,0,!1);break}else{if(o=r.current.alternate,g&&!w9(o)){p=a0(r,s,!1),g=!1;continue}if(p===2){if(g=s,r.errorRecoveryDisabledLanes&g)var x=0;else x=r.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){s=x;t:{var S=r;p=ju;var k=S.current.memoizedState.isDehydrated;if(k&&(Io(S,x).flags|=256),x=a0(S,x,!1),x!==2){if(Wy&&!k){S.errorRecoveryDisabledLanes|=g,la|=g,p=4;break t}g=Cn,Cn=p,g!==null&&(Cn===null?Cn=g:Cn.push.apply(Cn,g))}p=x}if(g=!1,p!==2)continue}}if(p===1){Io(r,0),ns(r,s,0,!0);break}t:{switch(c=r,g=p,g){case 0:case 1:throw Error(a(345));case 4:if((s&4194048)!==s)break;case 6:ns(c,s,jn,!Ji);break t;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((s&62914560)===s&&(p=ud+300-on(),10<p)){if(ns(c,s,jn,!Ji),wf(c,0,!0)!==0)break t;di=s,c.timeoutHandle=iO(RR.bind(null,c,o,Cn,fd,e0,s,jn,la,Bo,Ji,g,"Throttled",-0,0),p);break t}RR(c,o,Cn,fd,e0,s,jn,la,Bo,Ji,g,null,-0,0)}}break}while(!0);zr(r)}function RR(r,s,o,c,p,g,x,S,k,H,W,rt,$,Z){if(r.timeoutHandle=-1,rt=s.subtreeFlags,rt&8192||(rt&16785408)===16785408){rt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zr},xR(s,g,rt);var ht=(g&62914560)===g?ud-on():(g&4194048)===g?TR-on():0;if(ht=s7(rt,ht),ht!==null){di=g,r.cancelPendingCommit=ht(zR.bind(null,r,s,g,o,c,p,x,S,k,W,rt,null,$,Z)),ns(r,g,x,!H);return}}zR(r,s,g,o,c,p,x,S,k)}function w9(r){for(var s=r;;){var o=s.tag;if((o===0||o===11||o===15)&&s.flags&16384&&(o=s.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var p=o[c],g=p.getSnapshot;p=p.value;try{if(!kn(g(),p))return!1}catch{return!1}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ns(r,s,o,c){s&=~t0,s&=~la,r.suspendedLanes|=s,r.pingedLanes&=~s,c&&(r.warmLanes|=s),c=r.expirationTimes;for(var p=s;0<p;){var g=31-Oe(p),x=1<<g;c[g]=-1,p&=~x}o!==0&&UC(r,o,s)}function dd(){return(Zt&6)===0?(Bu(0),!1):!0}function s0(){if(It!==null){if(ee===0)var r=It.return;else r=It,ei=Ws=null,wy(r),Oo=null,vu=0,r=It;for(;r!==null;)sR(r.alternate,r),r=r.return;It=null}}function Io(r,s){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,q9(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),di=0,s0(),oe=r,It=o=Wr(r.current,null),Ft=s,ee=0,Ln=null,Ji=!1,zo=nu(r,s),Wy=!1,Bo=jn=t0=la=Wi=Se=0,Cn=ju=null,e0=!1,(s&8)!==0&&(s|=s&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=s;0<c;){var p=31-Oe(c),g=1<<p;s|=r[p],c&=~g}return fi=s,Nf(),o}function OR(r,s){Dt=null,Y.H=Au,s===Ro||s===qf?(s=G_(),ee=3):s===uy?(s=G_(),ee=4):ee=s===By?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Ln=s,It===null&&(Se=1,ed(r,Zn(s,r.current)))}function kR(){var r=Mn.current;return r===null?!0:(Ft&4194048)===Ft?er===null:(Ft&62914560)===Ft||(Ft&536870912)!==0?r===er:!1}function DR(){var r=Y.H;return Y.H=Au,r===null?Au:r}function MR(){var r=Y.A;return Y.A=v9,r}function hd(){Se=4,Ji||(Ft&4194048)!==Ft&&Mn.current!==null||(zo=!0),(Wi&134217727)===0&&(la&134217727)===0||oe===null||ns(oe,Ft,jn,!1)}function a0(r,s,o){var c=Zt;Zt|=2;var p=DR(),g=MR();(oe!==r||Ft!==s)&&(fd=null,Io(r,s)),s=!1;var x=Se;t:do try{if(ee!==0&&It!==null){var S=It,k=Ln;switch(ee){case 8:s0(),x=6;break t;case 3:case 2:case 9:case 6:Mn.current===null&&(s=!0);var H=ee;if(ee=0,Ln=null,Po(r,S,k,H),o&&zo){x=0;break t}break;default:H=ee,ee=0,Ln=null,Po(r,S,k,H)}}S9(),x=Se;break}catch(W){OR(r,W)}while(!0);return s&&r.shellSuspendCounter++,ei=Ws=null,Zt=c,Y.H=p,Y.A=g,It===null&&(oe=null,Ft=0,Nf()),x}function S9(){for(;It!==null;)NR(It)}function E9(r,s){var o=Zt;Zt|=2;var c=DR(),p=MR();oe!==r||Ft!==s?(fd=null,cd=on()+500,Io(r,s)):zo=nu(r,s);t:do try{if(ee!==0&&It!==null){s=It;var g=Ln;e:switch(ee){case 1:ee=0,Ln=null,Po(r,s,g,1);break;case 2:case 9:if(V_(g)){ee=0,Ln=null,LR(s);break}s=function(){ee!==2&&ee!==9||oe!==r||(ee=7),zr(r)},g.then(s,s);break t;case 3:ee=7;break t;case 4:ee=5;break t;case 7:V_(g)?(ee=0,Ln=null,LR(s)):(ee=0,Ln=null,Po(r,s,g,7));break;case 5:var x=null;switch(It.tag){case 26:x=It.memoizedState;case 5:case 27:var S=It;if(x?vO(x):S.stateNode.complete){ee=0,Ln=null;var k=S.sibling;if(k!==null)It=k;else{var H=S.return;H!==null?(It=H,pd(H)):It=null}break e}}ee=0,Ln=null,Po(r,s,g,5);break;case 6:ee=0,Ln=null,Po(r,s,g,6);break;case 8:s0(),Se=6;break t;default:throw Error(a(462))}}T9();break}catch(W){OR(r,W)}while(!0);return ei=Ws=null,Y.H=c,Y.A=p,Zt=o,It!==null?0:(oe=null,Ft=0,Nf(),Se)}function T9(){for(;It!==null&&!xg();)NR(It)}function NR(r){var s=rR(r.alternate,r,fi);r.memoizedProps=r.pendingProps,s===null?pd(r):It=s}function LR(r){var s=r,o=s.alternate;switch(s.tag){case 15:case 0:s=ZA(o,s,s.pendingProps,s.type,void 0,Ft);break;case 11:s=ZA(o,s,s.pendingProps,s.type.render,s.ref,Ft);break;case 5:wy(s);default:sR(o,s),s=It=M_(s,fi),s=rR(o,s,fi)}r.memoizedProps=r.pendingProps,s===null?pd(r):It=s}function Po(r,s,o,c){ei=Ws=null,wy(s),Oo=null,vu=0;var p=s.return;try{if(d9(r,p,s,o,Ft)){Se=1,ed(r,Zn(o,r.current)),It=null;return}}catch(g){if(p!==null)throw It=p,g;Se=1,ed(r,Zn(o,r.current)),It=null;return}s.flags&32768?(Yt||c===1?r=!0:zo||(Ft&536870912)!==0?r=!1:(Ji=r=!0,(c===2||c===9||c===3||c===6)&&(c=Mn.current,c!==null&&c.tag===13&&(c.flags|=16384))),jR(s,r)):pd(s)}function pd(r){var s=r;do{if((s.flags&32768)!==0){jR(s,Ji);return}r=s.return;var o=m9(s.alternate,s,fi);if(o!==null){It=o;return}if(s=s.sibling,s!==null){It=s;return}It=s=r}while(s!==null);Se===0&&(Se=5)}function jR(r,s){do{var o=g9(r.alternate,r);if(o!==null){o.flags&=32767,It=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!s&&(r=r.sibling,r!==null)){It=r;return}It=r=o}while(r!==null);Se=6,It=null}function zR(r,s,o,c,p,g,x,S,k){r.cancelPendingCommit=null;do md();while(Be!==0);if((Zt&6)!==0)throw Error(a(327));if(s!==null){if(s===r.current)throw Error(a(177));if(g=s.lanes|s.childLanes,g|=$g,r8(r,o,g,x,S,k),r===oe&&(It=oe=null,Ft=0),Uo=s,es=r,di=o,n0=g,r0=p,CR=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,R9(jt,function(){return qR(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=Y.T,Y.T=null,p=F.p,F.p=2,x=Zt,Zt|=4;try{y9(r,s,o)}finally{Zt=x,F.p=p,Y.T=c}}Be=1,BR(),UR(),IR()}}function BR(){if(Be===1){Be=0;var r=es,s=Uo,o=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||o){o=Y.T,Y.T=null;var c=F.p;F.p=2;var p=Zt;Zt|=4;try{yR(s,r);var g=b0,x=E_(r.containerInfo),S=g.focusedElem,k=g.selectionRange;if(x!==S&&S&&S.ownerDocument&&S_(S.ownerDocument.documentElement,S)){if(k!==null&&Vg(S)){var H=k.start,W=k.end;if(W===void 0&&(W=H),"selectionStart"in S)S.selectionStart=H,S.selectionEnd=Math.min(W,S.value.length);else{var rt=S.ownerDocument||document,$=rt&&rt.defaultView||window;if($.getSelection){var Z=$.getSelection(),ht=S.textContent.length,Et=Math.min(k.start,ht),ae=k.end===void 0?Et:Math.min(k.end,ht);!Z.extend&&Et>ae&&(x=ae,ae=Et,Et=x);var I=w_(S,Et),j=w_(S,ae);if(I&&j&&(Z.rangeCount!==1||Z.anchorNode!==I.node||Z.anchorOffset!==I.offset||Z.focusNode!==j.node||Z.focusOffset!==j.offset)){var V=rt.createRange();V.setStart(I.node,I.offset),Z.removeAllRanges(),Et>ae?(Z.addRange(V),Z.extend(j.node,j.offset)):(V.setEnd(j.node,j.offset),Z.addRange(V))}}}}for(rt=[],Z=S;Z=Z.parentNode;)Z.nodeType===1&&rt.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<rt.length;S++){var et=rt[S];et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}Ad=!!y0,b0=y0=null}finally{Zt=p,F.p=c,Y.T=o}}r.current=s,Be=2}}function UR(){if(Be===2){Be=0;var r=es,s=Uo,o=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||o){o=Y.T,Y.T=null;var c=F.p;F.p=2;var p=Zt;Zt|=4;try{dR(r,s.alternate,s)}finally{Zt=p,F.p=c,Y.T=o}}Be=3}}function IR(){if(Be===4||Be===3){Be=0,wg();var r=es,s=Uo,o=di,c=CR;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Be=5:(Be=0,Uo=es=null,PR(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(ts=null),Tg(o),s=s.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(dr,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=Y.T,p=F.p,F.p=2,Y.T=null;try{for(var g=r.onRecoverableError,x=0;x<c.length;x++){var S=c[x];g(S.value,{componentStack:S.stack})}}finally{Y.T=s,F.p=p}}(di&3)!==0&&md(),zr(r),p=r.pendingLanes,(o&261930)!==0&&(p&42)!==0?r===i0?zu++:(zu=0,i0=r):zu=0,Bu(0)}}function PR(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,yu(s)))}function md(){return BR(),UR(),IR(),qR()}function qR(){if(Be!==5)return!1;var r=es,s=n0;n0=0;var o=Tg(di),c=Y.T,p=F.p;try{F.p=32>o?32:o,Y.T=null,o=r0,r0=null;var g=es,x=di;if(Be=0,Uo=es=null,di=0,(Zt&6)!==0)throw Error(a(331));var S=Zt;if(Zt|=4,SR(g.current),vR(g,g.current,x,o),Zt=S,Bu(0,!1),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(dr,g)}catch{}return!0}finally{F.p=p,Y.T=c,PR(r,s)}}function FR(r,s,o){s=Zn(o,s),s=zy(r.stateNode,s,2),r=$i(r,s,2),r!==null&&(ru(r,2),zr(r))}function ne(r,s,o){if(r.tag===3)FR(r,r,o);else for(;s!==null;){if(s.tag===3){FR(s,r,o);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ts===null||!ts.has(c))){r=Zn(o,r),o=VA(2),c=$i(s,o,2),c!==null&&(HA(o,c,s,r),ru(c,2),zr(c));break}}s=s.return}}function o0(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new x9;var p=new Set;c.set(s,p)}else p=c.get(s),p===void 0&&(p=new Set,c.set(s,p));p.has(o)||(Wy=!0,p.add(o),r=C9.bind(null,r,s,o),s.then(r,r))}function C9(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,oe===r&&(Ft&o)===o&&(Se===4||Se===3&&(Ft&62914560)===Ft&&300>on()-ud?(Zt&2)===0&&Io(r,0):t0|=o,Bo===Ft&&(Bo=0)),zr(r)}function VR(r,s){s===0&&(s=BC()),r=Qs(r,s),r!==null&&(ru(r,s),zr(r))}function _9(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),VR(r,o)}function A9(r,s){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,p=r.memoizedState;p!==null&&(o=p.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(s),VR(r,o)}function R9(r,s){return tu(r,s)}var gd=null,qo=null,l0=!1,yd=!1,u0=!1,rs=0;function zr(r){r!==qo&&r.next===null&&(qo===null?gd=qo=r:qo=qo.next=r),yd=!0,l0||(l0=!0,k9())}function Bu(r,s){if(!u0&&yd){u0=!0;do for(var o=!1,c=gd;c!==null;){if(r!==0){var p=c.pendingLanes;if(p===0)var g=0;else{var x=c.suspendedLanes,S=c.pingedLanes;g=(1<<31-Oe(42|r)+1)-1,g&=p&~(x&~S),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,KR(c,g))}else g=Ft,g=wf(c,c===oe?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||nu(c,g)||(o=!0,KR(c,g));c=c.next}while(o);u0=!1}}function O9(){HR()}function HR(){yd=l0=!1;var r=0;rs!==0&&P9()&&(r=rs);for(var s=on(),o=null,c=gd;c!==null;){var p=c.next,g=GR(c,s);g===0?(c.next=null,o===null?gd=p:o.next=p,p===null&&(qo=o)):(o=c,(r!==0||(g&3)!==0)&&(yd=!0)),c=p}Be!==0&&Be!==5||Bu(r),rs!==0&&(rs=0)}function GR(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var x=31-Oe(g),S=1<<x,k=p[x];k===-1?((S&o)===0||(S&c)!==0)&&(p[x]=n8(S,s)):k<=s&&(r.expiredLanes|=S),g&=~S}if(s=oe,o=Ft,o=wf(r,r===s?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===s&&(ee===2||ee===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&eu(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||nu(r,o)){if(s=o&-o,s===r.callbackPriority)return s;switch(c!==null&&eu(c),Tg(o)){case 2:case 8:o=Rt;break;case 32:o=jt;break;case 268435456:o=vn;break;default:o=jt}return c=YR.bind(null,r),o=tu(o,c),r.callbackPriority=s,r.callbackNode=o,s}return c!==null&&c!==null&&eu(c),r.callbackPriority=2,r.callbackNode=null,2}function YR(r,s){if(Be!==0&&Be!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(md()&&r.callbackNode!==o)return null;var c=Ft;return c=wf(r,r===oe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(AR(r,c,s),GR(r,on()),r.callbackNode!=null&&r.callbackNode===o?YR.bind(null,r):null)}function KR(r,s){if(md())return null;AR(r,s,!0)}function k9(){F9(function(){(Zt&6)!==0?tu(ct,O9):HR()})}function c0(){if(rs===0){var r=_o;r===0&&(r=bf,bf<<=1,(bf&261888)===0&&(bf=256)),rs=r}return rs}function $R(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Cf(""+r)}function XR(r,s){var o=s.ownerDocument.createElement("input");return o.name=s.name,o.value=s.value,r.id&&o.setAttribute("form",r.id),s.parentNode.insertBefore(o,s),r=new FormData(r),o.parentNode.removeChild(o),r}function D9(r,s,o,c,p){if(s==="submit"&&o&&o.stateNode===p){var g=$R((p[xn]||null).action),x=c.submitter;x&&(s=(s=x[xn]||null)?$R(s.formAction):x.getAttribute("formAction"),s!==null&&(g=s,x=null));var S=new Of("action","action",null,c,p);r.push({event:S,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(rs!==0){var k=x?XR(p,x):new FormData(p);ky(o,{pending:!0,data:k,method:p.method,action:g},null,k)}}else typeof g=="function"&&(S.preventDefault(),k=x?XR(p,x):new FormData(p),ky(o,{pending:!0,data:k,method:p.method,action:g},g,k))},currentTarget:p}]})}}for(var f0=0;f0<Kg.length;f0++){var d0=Kg[f0],M9=d0.toLowerCase(),N9=d0[0].toUpperCase()+d0.slice(1);pr(M9,"on"+N9)}pr(__,"onAnimationEnd"),pr(A_,"onAnimationIteration"),pr(R_,"onAnimationStart"),pr("dblclick","onDoubleClick"),pr("focusin","onFocus"),pr("focusout","onBlur"),pr(X8,"onTransitionRun"),pr(Q8,"onTransitionStart"),pr(Z8,"onTransitionCancel"),pr(O_,"onTransitionEnd"),fo("onMouseEnter",["mouseout","mouseover"]),fo("onMouseLeave",["mouseout","mouseover"]),fo("onPointerEnter",["pointerout","pointerover"]),fo("onPointerLeave",["pointerout","pointerover"]),Ys("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ys("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ys("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ys("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ys("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ys("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uu="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(" "),L9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Uu));function QR(r,s){s=(s&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],p=c.event;c=c.listeners;t:{var g=void 0;if(s)for(var x=c.length-1;0<=x;x--){var S=c[x],k=S.instance,H=S.currentTarget;if(S=S.listener,k!==g&&p.isPropagationStopped())break t;g=S,p.currentTarget=H;try{g(p)}catch(W){Mf(W)}p.currentTarget=null,g=k}else for(x=0;x<c.length;x++){if(S=c[x],k=S.instance,H=S.currentTarget,S=S.listener,k!==g&&p.isPropagationStopped())break t;g=S,p.currentTarget=H;try{g(p)}catch(W){Mf(W)}p.currentTarget=null,g=k}}}}function Pt(r,s){var o=s[Cg];o===void 0&&(o=s[Cg]=new Set);var c=r+"__bubble";o.has(c)||(ZR(s,r,2,!1),o.add(c))}function h0(r,s,o){var c=0;s&&(c|=4),ZR(o,r,c,s)}var bd="_reactListening"+Math.random().toString(36).slice(2);function p0(r){if(!r[bd]){r[bd]=!0,HC.forEach(function(o){o!=="selectionchange"&&(L9.has(o)||h0(o,!1,r),h0(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[bd]||(s[bd]=!0,h0("selectionchange",!1,s))}}function ZR(r,s,o,c){switch(_O(s)){case 2:var p=l7;break;case 8:p=u7;break;default:p=O0}o=p.bind(null,s,o,r),p=void 0,!Lg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),c?p!==void 0?r.addEventListener(s,o,{capture:!0,passive:p}):r.addEventListener(s,o,!0):p!==void 0?r.addEventListener(s,o,{passive:p}):r.addEventListener(s,o,!1)}function m0(r,s,o,c,p){var g=c;if((s&1)===0&&(s&2)===0&&c!==null)t:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var S=c.stateNode.containerInfo;if(S===p)break;if(x===4)for(x=c.return;x!==null;){var k=x.tag;if((k===3||k===4)&&x.stateNode.containerInfo===p)return;x=x.return}for(;S!==null;){if(x=lo(S),x===null)return;if(k=x.tag,k===5||k===6||k===26||k===27){c=g=x;continue t}S=S.parentNode}}c=c.return}n_(function(){var H=g,W=Mg(o),rt=[];t:{var $=k_.get(r);if($!==void 0){var Z=Of,ht=r;switch(r){case"keypress":if(Af(o)===0)break t;case"keydown":case"keyup":Z=A8;break;case"focusin":ht="focus",Z=Ug;break;case"focusout":ht="blur",Z=Ug;break;case"beforeblur":case"afterblur":Z=Ug;break;case"click":if(o.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=s_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=m8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=k8;break;case __:case A_:case R_:Z=b8;break;case O_:Z=M8;break;case"scroll":case"scrollend":Z=h8;break;case"wheel":Z=L8;break;case"copy":case"cut":case"paste":Z=x8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=o_;break;case"toggle":case"beforetoggle":Z=z8}var Et=(s&4)!==0,ae=!Et&&(r==="scroll"||r==="scrollend"),I=Et?$!==null?$+"Capture":null:$;Et=[];for(var j=H,V;j!==null;){var et=j;if(V=et.stateNode,et=et.tag,et!==5&&et!==26&&et!==27||V===null||I===null||(et=au(j,I),et!=null&&Et.push(Iu(j,et,V))),ae)break;j=j.return}0<Et.length&&($=new Z($,ht,null,o,W),rt.push({event:$,listeners:Et}))}}if((s&7)===0){t:{if($=r==="mouseover"||r==="pointerover",Z=r==="mouseout"||r==="pointerout",$&&o!==Dg&&(ht=o.relatedTarget||o.fromElement)&&(lo(ht)||ht[oo]))break t;if((Z||$)&&($=W.window===W?W:($=W.ownerDocument)?$.defaultView||$.parentWindow:window,Z?(ht=o.relatedTarget||o.toElement,Z=H,ht=ht?lo(ht):null,ht!==null&&(ae=u(ht),Et=ht.tag,ht!==ae||Et!==5&&Et!==27&&Et!==6)&&(ht=null)):(Z=null,ht=H),Z!==ht)){if(Et=s_,et="onMouseLeave",I="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(Et=o_,et="onPointerLeave",I="onPointerEnter",j="pointer"),ae=Z==null?$:su(Z),V=ht==null?$:su(ht),$=new Et(et,j+"leave",Z,o,W),$.target=ae,$.relatedTarget=V,et=null,lo(W)===H&&(Et=new Et(I,j+"enter",ht,o,W),Et.target=V,Et.relatedTarget=ae,et=Et),ae=et,Z&&ht)e:{for(Et=j9,I=Z,j=ht,V=0,et=I;et;et=Et(et))V++;et=0;for(var St=j;St;St=Et(St))et++;for(;0<V-et;)I=Et(I),V--;for(;0<et-V;)j=Et(j),et--;for(;V--;){if(I===j||j!==null&&I===j.alternate){Et=I;break e}I=Et(I),j=Et(j)}Et=null}else Et=null;Z!==null&&JR(rt,$,Z,Et,!1),ht!==null&&ae!==null&&JR(rt,ae,ht,Et,!0)}}t:{if($=H?su(H):window,Z=$.nodeName&&$.nodeName.toLowerCase(),Z==="select"||Z==="input"&&$.type==="file")var $t=m_;else if(h_($))if(g_)$t=Y8;else{$t=H8;var bt=V8}else Z=$.nodeName,!Z||Z.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?H&&kg(H.elementType)&&($t=m_):$t=G8;if($t&&($t=$t(r,H))){p_(rt,$t,o,W);break t}bt&&bt(r,$,H),r==="focusout"&&H&&$.type==="number"&&H.memoizedProps.value!=null&&Og($,"number",$.value)}switch(bt=H?su(H):window,r){case"focusin":(h_(bt)||bt.contentEditable==="true")&&(bo=bt,Hg=H,pu=null);break;case"focusout":pu=Hg=bo=null;break;case"mousedown":Gg=!0;break;case"contextmenu":case"mouseup":case"dragend":Gg=!1,T_(rt,o,W);break;case"selectionchange":if($8)break;case"keydown":case"keyup":T_(rt,o,W)}var Lt;if(Pg)t:{switch(r){case"compositionstart":var Vt="onCompositionStart";break t;case"compositionend":Vt="onCompositionEnd";break t;case"compositionupdate":Vt="onCompositionUpdate";break t}Vt=void 0}else yo?f_(r,o)&&(Vt="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Vt="onCompositionStart");Vt&&(l_&&o.locale!=="ko"&&(yo||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&yo&&(Lt=r_()):(qi=W,jg="value"in qi?qi.value:qi.textContent,yo=!0)),bt=vd(H,Vt),0<bt.length&&(Vt=new a_(Vt,r,null,o,W),rt.push({event:Vt,listeners:bt}),Lt?Vt.data=Lt:(Lt=d_(o),Lt!==null&&(Vt.data=Lt)))),(Lt=U8?I8(r,o):P8(r,o))&&(Vt=vd(H,"onBeforeInput"),0<Vt.length&&(bt=new a_("onBeforeInput","beforeinput",null,o,W),rt.push({event:bt,listeners:Vt}),bt.data=Lt)),D9(rt,r,H,o,W)}QR(rt,s)})}function Iu(r,s,o){return{instance:r,listener:s,currentTarget:o}}function vd(r,s){for(var o=s+"Capture",c=[];r!==null;){var p=r,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=au(r,o),p!=null&&c.unshift(Iu(r,p,g)),p=au(r,s),p!=null&&c.push(Iu(r,p,g))),r.tag===3)return c;r=r.return}return[]}function j9(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function JR(r,s,o,c,p){for(var g=s._reactName,x=[];o!==null&&o!==c;){var S=o,k=S.alternate,H=S.stateNode;if(S=S.tag,k!==null&&k===c)break;S!==5&&S!==26&&S!==27||H===null||(k=H,p?(H=au(o,g),H!=null&&x.unshift(Iu(o,H,k))):p||(H=au(o,g),H!=null&&x.push(Iu(o,H,k)))),o=o.return}x.length!==0&&r.push({event:s,listeners:x})}var z9=/\r\n?/g,B9=/\u0000|\uFFFD/g;function WR(r){return(typeof r=="string"?r:""+r).replace(z9,`
`).replace(B9,"")}function tO(r,s){return s=WR(s),WR(r)===s}function se(r,s,o,c,p,g){switch(o){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||po(r,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&po(r,""+c);break;case"className":Ef(r,"class",c);break;case"tabIndex":Ef(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ef(r,o,c);break;case"style":t_(r,c,g);break;case"data":if(s!=="object"){Ef(r,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||o!=="href")){r.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=Cf(""+c),r.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(o,"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 g=="function"&&(o==="formAction"?(s!=="input"&&se(r,s,"name",p.name,p,null),se(r,s,"formEncType",p.formEncType,p,null),se(r,s,"formMethod",p.formMethod,p,null),se(r,s,"formTarget",p.formTarget,p,null)):(se(r,s,"encType",p.encType,p,null),se(r,s,"method",p.method,p,null),se(r,s,"target",p.target,p,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=Cf(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=Zr);break;case"onScroll":c!=null&&Pt("scroll",r);break;case"onScrollEnd":c!=null&&Pt("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}o=Cf(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""+c):r.removeAttribute(o);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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":c===!0?r.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,c):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(o,c):r.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(o):r.setAttribute(o,c);break;case"popover":Pt("beforetoggle",r),Pt("toggle",r),Sf(r,"popover",c);break;case"xlinkActuate":Qr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Qr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Qr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Qr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Qr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Qr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Qr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Qr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Qr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Sf(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=f8.get(o)||o,Sf(r,o,c))}}function g0(r,s,o,c,p,g){switch(o){case"style":t_(r,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"children":typeof c=="string"?po(r,c):(typeof c=="number"||typeof c=="bigint")&&po(r,""+c);break;case"onScroll":c!=null&&Pt("scroll",r);break;case"onScrollEnd":c!=null&&Pt("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Zr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!GC.hasOwnProperty(o))t:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),s=o.slice(2,p?o.length-7:void 0),g=r[xn]||null,g=g!=null?g[o]:null,typeof g=="function"&&r.removeEventListener(s,g,p),typeof c=="function")){typeof g!="function"&&g!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(s,c,p);break t}o in r?r[o]=c:c===!0?r.setAttribute(o,""):Sf(r,o,c)}}}function $e(r,s,o){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",r),Pt("load",r);var c=!1,p=!1,g;for(g in o)if(o.hasOwnProperty(g)){var x=o[g];if(x!=null)switch(g){case"src":c=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:se(r,s,g,x,o,null)}}p&&se(r,s,"srcSet",o.srcSet,o,null),c&&se(r,s,"src",o.src,o,null);return;case"input":Pt("invalid",r);var S=g=x=p=null,k=null,H=null;for(c in o)if(o.hasOwnProperty(c)){var W=o[c];if(W!=null)switch(c){case"name":p=W;break;case"type":x=W;break;case"checked":k=W;break;case"defaultChecked":H=W;break;case"value":g=W;break;case"defaultValue":S=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(a(137,s));break;default:se(r,s,c,W,o,null)}}QC(r,g,S,k,H,x,p,!1);return;case"select":Pt("invalid",r),c=x=g=null;for(p in o)if(o.hasOwnProperty(p)&&(S=o[p],S!=null))switch(p){case"value":g=S;break;case"defaultValue":x=S;break;case"multiple":c=S;default:se(r,s,p,S,o,null)}s=g,o=x,r.multiple=!!c,s!=null?ho(r,!!c,s,!1):o!=null&&ho(r,!!c,o,!0);return;case"textarea":Pt("invalid",r),g=p=c=null;for(x in o)if(o.hasOwnProperty(x)&&(S=o[x],S!=null))switch(x){case"value":c=S;break;case"defaultValue":p=S;break;case"children":g=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:se(r,s,x,S,o,null)}JC(r,c,p,g);return;case"option":for(k in o)if(o.hasOwnProperty(k)&&(c=o[k],c!=null))switch(k){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:se(r,s,k,c,o,null)}return;case"dialog":Pt("beforetoggle",r),Pt("toggle",r),Pt("cancel",r),Pt("close",r);break;case"iframe":case"object":Pt("load",r);break;case"video":case"audio":for(c=0;c<Uu.length;c++)Pt(Uu[c],r);break;case"image":Pt("error",r),Pt("load",r);break;case"details":Pt("toggle",r);break;case"embed":case"source":case"link":Pt("error",r),Pt("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in o)if(o.hasOwnProperty(H)&&(c=o[H],c!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:se(r,s,H,c,o,null)}return;default:if(kg(s)){for(W in o)o.hasOwnProperty(W)&&(c=o[W],c!==void 0&&g0(r,s,W,c,o,void 0));return}}for(S in o)o.hasOwnProperty(S)&&(c=o[S],c!=null&&se(r,s,S,c,o,null))}function U9(r,s,o,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,x=null,S=null,k=null,H=null,W=null;for(Z in o){var rt=o[Z];if(o.hasOwnProperty(Z)&&rt!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":k=rt;default:c.hasOwnProperty(Z)||se(r,s,Z,null,c,rt)}}for(var $ in c){var Z=c[$];if(rt=o[$],c.hasOwnProperty($)&&(Z!=null||rt!=null))switch($){case"type":g=Z;break;case"name":p=Z;break;case"checked":H=Z;break;case"defaultChecked":W=Z;break;case"value":x=Z;break;case"defaultValue":S=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(a(137,s));break;default:Z!==rt&&se(r,s,$,Z,c,rt)}}Rg(r,x,S,k,H,W,g,p);return;case"select":Z=x=S=$=null;for(g in o)if(k=o[g],o.hasOwnProperty(g)&&k!=null)switch(g){case"value":break;case"multiple":Z=k;default:c.hasOwnProperty(g)||se(r,s,g,null,c,k)}for(p in c)if(g=c[p],k=o[p],c.hasOwnProperty(p)&&(g!=null||k!=null))switch(p){case"value":$=g;break;case"defaultValue":S=g;break;case"multiple":x=g;default:g!==k&&se(r,s,p,g,c,k)}s=S,o=x,c=Z,$!=null?ho(r,!!o,$,!1):!!c!=!!o&&(s!=null?ho(r,!!o,s,!0):ho(r,!!o,o?[]:"",!1));return;case"textarea":Z=$=null;for(S in o)if(p=o[S],o.hasOwnProperty(S)&&p!=null&&!c.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:se(r,s,S,null,c,p)}for(x in c)if(p=c[x],g=o[x],c.hasOwnProperty(x)&&(p!=null||g!=null))switch(x){case"value":$=p;break;case"defaultValue":Z=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(a(91));break;default:p!==g&&se(r,s,x,p,c,g)}ZC(r,$,Z);return;case"option":for(var ht in o)if($=o[ht],o.hasOwnProperty(ht)&&$!=null&&!c.hasOwnProperty(ht))switch(ht){case"selected":r.selected=!1;break;default:se(r,s,ht,null,c,$)}for(k in c)if($=c[k],Z=o[k],c.hasOwnProperty(k)&&$!==Z&&($!=null||Z!=null))switch(k){case"selected":r.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:se(r,s,k,$,c,Z)}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 Et in o)$=o[Et],o.hasOwnProperty(Et)&&$!=null&&!c.hasOwnProperty(Et)&&se(r,s,Et,null,c,$);for(H in c)if($=c[H],Z=o[H],c.hasOwnProperty(H)&&$!==Z&&($!=null||Z!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,s));break;default:se(r,s,H,$,c,Z)}return;default:if(kg(s)){for(var ae in o)$=o[ae],o.hasOwnProperty(ae)&&$!==void 0&&!c.hasOwnProperty(ae)&&g0(r,s,ae,void 0,c,$);for(W in c)$=c[W],Z=o[W],!c.hasOwnProperty(W)||$===Z||$===void 0&&Z===void 0||g0(r,s,W,$,c,Z);return}}for(var I in o)$=o[I],o.hasOwnProperty(I)&&$!=null&&!c.hasOwnProperty(I)&&se(r,s,I,null,c,$);for(rt in c)$=c[rt],Z=o[rt],!c.hasOwnProperty(rt)||$===Z||$==null&&Z==null||se(r,s,rt,$,c,Z)}function eO(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I9(){if(typeof performance.getEntriesByType=="function"){for(var r=0,s=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var p=o[c],g=p.transferSize,x=p.initiatorType,S=p.duration;if(g&&S&&eO(x)){for(x=0,S=p.responseEnd,c+=1;c<o.length;c++){var k=o[c],H=k.startTime;if(H>S)break;var W=k.transferSize,rt=k.initiatorType;W&&eO(rt)&&(k=k.responseEnd,x+=W*(k<S?1:(S-H)/(k-H)))}if(--c,s+=8*(g+x)/(p.duration/1e3),r++,10<r)break}}if(0<r)return s/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var y0=null,b0=null;function xd(r){return r.nodeType===9?r:r.ownerDocument}function nO(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rO(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function v0(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var x0=null;function P9(){var r=window.event;return r&&r.type==="popstate"?r===x0?!1:(x0=r,!0):(x0=null,!1)}var iO=typeof setTimeout=="function"?setTimeout:void 0,q9=typeof clearTimeout=="function"?clearTimeout:void 0,sO=typeof Promise=="function"?Promise:void 0,F9=typeof queueMicrotask=="function"?queueMicrotask:typeof sO<"u"?function(r){return sO.resolve(null).then(r).catch(V9)}:iO;function V9(r){setTimeout(function(){throw r})}function is(r){return r==="head"}function aO(r,s){var o=s,c=0;do{var p=o.nextSibling;if(r.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(c===0){r.removeChild(p),Go(s);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")Pu(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,Pu(o);for(var g=o.firstChild;g;){var x=g.nextSibling,S=g.nodeName;g[iu]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=x}}else o==="body"&&Pu(r.ownerDocument.body);o=p}while(o);Go(s)}function oO(r,s){var o=r;r=0;do{var c=o.nextSibling;if(o.nodeType===1?s?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(s?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=c}while(o)}function w0(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var o=s;switch(s=s.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":w0(o),_g(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function H9(r,s,o,c){for(;r.nodeType===1;){var p=o;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[iu])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==p.rel||r.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute("title")!==(p.title==null?null:p.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(p.src==null?null:p.src)||r.getAttribute("type")!==(p.type==null?null:p.type)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=nr(r.nextSibling),r===null)break}return null}function G9(r,s,o){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=nr(r.nextSibling),r===null))return null;return r}function lO(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=nr(r.nextSibling),r===null))return null;return r}function S0(r){return r.data==="$?"||r.data==="$~"}function E0(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Y9(r,s){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=s;else if(r.data!=="$?"||o.readyState!=="loading")s();else{var c=function(){s(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function nr(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return r}var T0=null;function uO(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(s===0)return nr(r.nextSibling);s--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||s++}r=r.nextSibling}return null}function cO(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(s===0)return r;s--}else o!=="/$"&&o!=="/&"||s++}r=r.previousSibling}return null}function fO(r,s,o){switch(s=xd(o),r){case"html":if(r=s.documentElement,!r)throw Error(a(452));return r;case"head":if(r=s.head,!r)throw Error(a(453));return r;case"body":if(r=s.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function Pu(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);_g(r)}var rr=new Map,dO=new Set;function wd(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var hi=F.d;F.d={f:K9,r:$9,D:X9,C:Q9,L:Z9,m:J9,X:t7,S:W9,M:e7};function K9(){var r=hi.f(),s=dd();return r||s}function $9(r){var s=uo(r);s!==null&&s.tag===5&&s.type==="form"?OA(s):hi.r(r)}var Fo=typeof document>"u"?null:document;function hO(r,s,o){var c=Fo;if(c&&typeof s=="string"&&s){var p=Xn(s);p='link[rel="'+r+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),dO.has(p)||(dO.add(p),r={rel:r,crossOrigin:o,href:s},c.querySelector(p)===null&&(s=c.createElement("link"),$e(s,"link",r),Ie(s),c.head.appendChild(s)))}}function X9(r){hi.D(r),hO("dns-prefetch",r,null)}function Q9(r,s){hi.C(r,s),hO("preconnect",r,s)}function Z9(r,s,o){hi.L(r,s,o);var c=Fo;if(c&&r&&s){var p='link[rel="preload"][as="'+Xn(s)+'"]';s==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Xn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Xn(o.imageSizes)+'"]')):p+='[href="'+Xn(r)+'"]';var g=p;switch(s){case"style":g=Vo(r);break;case"script":g=Ho(r)}rr.has(g)||(r=b({rel:"preload",href:s==="image"&&o&&o.imageSrcSet?void 0:r,as:s},o),rr.set(g,r),c.querySelector(p)!==null||s==="style"&&c.querySelector(qu(g))||s==="script"&&c.querySelector(Fu(g))||(s=c.createElement("link"),$e(s,"link",r),Ie(s),c.head.appendChild(s)))}}function J9(r,s){hi.m(r,s);var o=Fo;if(o&&r){var c=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Xn(c)+'"][href="'+Xn(r)+'"]',g=p;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Ho(r)}if(!rr.has(g)&&(r=b({rel:"modulepreload",href:r},s),rr.set(g,r),o.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Fu(g)))return}c=o.createElement("link"),$e(c,"link",r),Ie(c),o.head.appendChild(c)}}}function W9(r,s,o){hi.S(r,s,o);var c=Fo;if(c&&r){var p=co(c).hoistableStyles,g=Vo(r);s=s||"default";var x=p.get(g);if(!x){var S={loading:0,preload:null};if(x=c.querySelector(qu(g)))S.loading=5;else{r=b({rel:"stylesheet",href:r,"data-precedence":s},o),(o=rr.get(g))&&C0(r,o);var k=x=c.createElement("link");Ie(k),$e(k,"link",r),k._p=new Promise(function(H,W){k.onload=H,k.onerror=W}),k.addEventListener("load",function(){S.loading|=1}),k.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Sd(x,s,c)}x={type:"stylesheet",instance:x,count:1,state:S},p.set(g,x)}}}function t7(r,s){hi.X(r,s);var o=Fo;if(o&&r){var c=co(o).hoistableScripts,p=Ho(r),g=c.get(p);g||(g=o.querySelector(Fu(p)),g||(r=b({src:r,async:!0},s),(s=rr.get(p))&&_0(r,s),g=o.createElement("script"),Ie(g),$e(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function e7(r,s){hi.M(r,s);var o=Fo;if(o&&r){var c=co(o).hoistableScripts,p=Ho(r),g=c.get(p);g||(g=o.querySelector(Fu(p)),g||(r=b({src:r,async:!0,type:"module"},s),(s=rr.get(p))&&_0(r,s),g=o.createElement("script"),Ie(g),$e(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function pO(r,s,o,c){var p=(p=dt.current)?wd(p):null;if(!p)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(s=Vo(o.href),o=co(p).hoistableStyles,c=o.get(s),c||(c={type:"style",instance:null,count:0,state:null},o.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Vo(o.href);var g=co(p).hoistableStyles,x=g.get(r);if(x||(p=p.ownerDocument||p,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,x),(g=p.querySelector(qu(r)))&&!g._p&&(x.instance=g,x.state.loading=5),rr.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},rr.set(r,o),g||n7(p,r,o,x.state))),s&&c===null)throw Error(a(528,""));return x}if(s&&c!==null)throw Error(a(529,""));return null;case"script":return s=o.async,o=o.src,typeof o=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ho(o),o=co(p).hoistableScripts,c=o.get(s),c||(c={type:"script",instance:null,count:0,state:null},o.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function Vo(r){return'href="'+Xn(r)+'"'}function qu(r){return'link[rel="stylesheet"]['+r+"]"}function mO(r){return b({},r,{"data-precedence":r.precedence,precedence:null})}function n7(r,s,o,c){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=r.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),$e(s,"link",o),Ie(s),r.head.appendChild(s))}function Ho(r){return'[src="'+Xn(r)+'"]'}function Fu(r){return"script[async]"+r}function gO(r,s,o){if(s.count++,s.instance===null)switch(s.type){case"style":var c=r.querySelector('style[data-href~="'+Xn(o.href)+'"]');if(c)return s.instance=c,Ie(c),c;var p=b({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Ie(c),$e(c,"style",p),Sd(c,o.precedence,r),s.instance=c;case"stylesheet":p=Vo(o.href);var g=r.querySelector(qu(p));if(g)return s.state.loading|=4,s.instance=g,Ie(g),g;c=mO(o),(p=rr.get(p))&&C0(c,p),g=(r.ownerDocument||r).createElement("link"),Ie(g);var x=g;return x._p=new Promise(function(S,k){x.onload=S,x.onerror=k}),$e(g,"link",c),s.state.loading|=4,Sd(g,o.precedence,r),s.instance=g;case"script":return g=Ho(o.src),(p=r.querySelector(Fu(g)))?(s.instance=p,Ie(p),p):(c=o,(p=rr.get(g))&&(c=b({},o),_0(c,p)),r=r.ownerDocument||r,p=r.createElement("script"),Ie(p),$e(p,"link",c),r.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(a(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,Sd(c,o.precedence,r));return s.instance}function Sd(r,s,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=c.length?c[c.length-1]:null,g=p,x=0;x<c.length;x++){var S=c[x];if(S.dataset.precedence===s)g=S;else if(g!==p)break}g?g.parentNode.insertBefore(r,g.nextSibling):(s=o.nodeType===9?o.head:o,s.insertBefore(r,s.firstChild))}function C0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function _0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var Ed=null;function yO(r,s,o){if(Ed===null){var c=new Map,p=Ed=new Map;p.set(o,c)}else p=Ed,c=p.get(o),c||(c=new Map,p.set(o,c));if(c.has(r))return c;for(c.set(r,null),o=o.getElementsByTagName(r),p=0;p<o.length;p++){var g=o[p];if(!(g[iu]||g[He]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var x=g.getAttribute(s)||"";x=r+x;var S=c.get(x);S?S.push(g):c.set(x,[g])}}return c}function bO(r,s,o){r=r.ownerDocument||r,r.head.insertBefore(o,s==="title"?r.querySelector("head > title"):null)}function r7(r,s,o){if(o===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return r=s.disabled,typeof s.precedence=="string"&&r==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function vO(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function i7(r,s,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Vo(c.href),g=s.querySelector(qu(p));if(g){s=g._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=Td.bind(r),s.then(r,r)),o.state.loading|=4,o.instance=g,Ie(g);return}g=s.ownerDocument||s,c=mO(c),(p=rr.get(p))&&C0(c,p),g=g.createElement("link"),Ie(g);var x=g;x._p=new Promise(function(S,k){x.onload=S,x.onerror=k}),$e(g,"link",c),o.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=Td.bind(r),s.addEventListener("load",o),s.addEventListener("error",o))}}var A0=0;function s7(r,s){return r.stylesheets&&r.count===0&&_d(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&_d(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+s);0<r.imgBytes&&A0===0&&(A0=62500*I9());var p=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&_d(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>A0?50:800)+s);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(p)}}:null}function Td(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_d(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Cd=null;function _d(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Cd=new Map,s.forEach(a7,r),Cd=null,Td.call(r))}function a7(r,s){if(!(s.state.loading&4)){var o=Cd.get(r);if(o)var c=o.get(null);else{o=new Map,Cd.set(r,o);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var x=p[g];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(o.set(x.dataset.precedence,x),c=x)}c&&o.set(null,c)}p=s.instance,x=p.getAttribute("data-precedence"),g=o.get(x)||c,g===c&&o.set(null,p),o.set(x,p),this.count++,c=Td.bind(this),p.addEventListener("load",c),p.addEventListener("error",c),g?g.parentNode.insertBefore(p,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),s.state.loading|=4}}var Vu={$$typeof:U,Provider:null,Consumer:null,_currentValue:gt,_currentValue2:gt,_threadCount:0};function o7(r,s,o,c,p,g,x,S,k){this.tag=1,this.containerInfo=r,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=Sg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sg(0),this.hiddenUpdates=Sg(null),this.identifierPrefix=c,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function xO(r,s,o,c,p,g,x,S,k,H,W,rt){return r=new o7(r,s,o,x,k,H,W,rt,S),s=1,g===!0&&(s|=24),g=Dn(3,null,null,s),r.current=g,g.stateNode=r,s=ay(),s.refCount++,r.pooledCache=s,s.refCount++,g.memoizedState={element:c,isDehydrated:o,cache:s},cy(g),r}function wO(r){return r?(r=wo,r):wo}function SO(r,s,o,c,p,g){p=wO(p),c.context===null?c.context=p:c.pendingContext=p,c=Ki(s),c.payload={element:o},g=g===void 0?null:g,g!==null&&(c.callback=g),o=$i(r,c,s),o!==null&&(_n(o,r,s),wu(o,r,s))}function EO(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function R0(r,s){EO(r,s),(r=r.alternate)&&EO(r,s)}function TO(r){if(r.tag===13||r.tag===31){var s=Qs(r,67108864);s!==null&&_n(s,r,67108864),R0(r,67108864)}}function CO(r){if(r.tag===13||r.tag===31){var s=zn();s=Eg(s);var o=Qs(r,s);o!==null&&_n(o,r,s),R0(r,s)}}var Ad=!0;function l7(r,s,o,c){var p=Y.T;Y.T=null;var g=F.p;try{F.p=2,O0(r,s,o,c)}finally{F.p=g,Y.T=p}}function u7(r,s,o,c){var p=Y.T;Y.T=null;var g=F.p;try{F.p=8,O0(r,s,o,c)}finally{F.p=g,Y.T=p}}function O0(r,s,o,c){if(Ad){var p=k0(c);if(p===null)m0(r,s,c,Rd,o),AO(r,c);else if(f7(p,r,s,o,c))c.stopPropagation();else if(AO(r,c),s&4&&-1<c7.indexOf(r)){for(;p!==null;){var g=uo(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var x=Gs(g.pendingLanes);if(x!==0){var S=g;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var k=1<<31-Oe(x);S.entanglements[1]|=k,x&=~k}zr(g),(Zt&6)===0&&(cd=on()+500,Bu(0))}}break;case 31:case 13:S=Qs(g,2),S!==null&&_n(S,g,2),dd(),R0(g,2)}if(g=k0(c),g===null&&m0(r,s,c,Rd,o),g===p)break;p=g}p!==null&&c.stopPropagation()}else m0(r,s,c,null,o)}}function k0(r){return r=Mg(r),D0(r)}var Rd=null;function D0(r){if(Rd=null,r=lo(r),r!==null){var s=u(r);if(s===null)r=null;else{var o=s.tag;if(o===13){if(r=f(s),r!==null)return r;r=null}else if(o===31){if(r=d(s),r!==null)return r;r=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return Rd=r,null}function _O(r){switch(r){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(tt()){case ct:return 2;case Rt:return 8;case jt:case te:return 32;case vn:return 268435456;default:return 32}default:return 32}}var M0=!1,ss=null,as=null,os=null,Hu=new Map,Gu=new Map,ls=[],c7="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 AO(r,s){switch(r){case"focusin":case"focusout":ss=null;break;case"dragenter":case"dragleave":as=null;break;case"mouseover":case"mouseout":os=null;break;case"pointerover":case"pointerout":Hu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gu.delete(s.pointerId)}}function Yu(r,s,o,c,p,g){return r===null||r.nativeEvent!==g?(r={blockedOn:s,domEventName:o,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},s!==null&&(s=uo(s),s!==null&&TO(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),r)}function f7(r,s,o,c,p){switch(s){case"focusin":return ss=Yu(ss,r,s,o,c,p),!0;case"dragenter":return as=Yu(as,r,s,o,c,p),!0;case"mouseover":return os=Yu(os,r,s,o,c,p),!0;case"pointerover":var g=p.pointerId;return Hu.set(g,Yu(Hu.get(g)||null,r,s,o,c,p)),!0;case"gotpointercapture":return g=p.pointerId,Gu.set(g,Yu(Gu.get(g)||null,r,s,o,c,p)),!0}return!1}function RO(r){var s=lo(r.target);if(s!==null){var o=u(s);if(o!==null){if(s=o.tag,s===13){if(s=f(o),s!==null){r.blockedOn=s,FC(r.priority,function(){CO(o)});return}}else if(s===31){if(s=d(o),s!==null){r.blockedOn=s,FC(r.priority,function(){CO(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Od(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=k0(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);Dg=c,o.target.dispatchEvent(c),Dg=null}else return s=uo(o),s!==null&&TO(s),r.blockedOn=o,!1;s.shift()}return!0}function OO(r,s,o){Od(r)&&o.delete(s)}function d7(){M0=!1,ss!==null&&Od(ss)&&(ss=null),as!==null&&Od(as)&&(as=null),os!==null&&Od(os)&&(os=null),Hu.forEach(OO),Gu.forEach(OO)}function kd(r,s){r.blockedOn===s&&(r.blockedOn=null,M0||(M0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,d7)))}var Dd=null;function kO(r){Dd!==r&&(Dd=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Dd===r&&(Dd=null);for(var s=0;s<r.length;s+=3){var o=r[s],c=r[s+1],p=r[s+2];if(typeof c!="function"){if(D0(c||o)===null)continue;break}var g=uo(o);g!==null&&(r.splice(s,3),s-=3,ky(g,{pending:!0,data:p,method:o.method,action:c},c,p))}}))}function Go(r){function s(k){return kd(k,r)}ss!==null&&kd(ss,r),as!==null&&kd(as,r),os!==null&&kd(os,r),Hu.forEach(s),Gu.forEach(s);for(var o=0;o<ls.length;o++){var c=ls[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<ls.length&&(o=ls[0],o.blockedOn===null);)RO(o),o.blockedOn===null&&ls.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var p=o[c],g=o[c+1],x=p[xn]||null;if(typeof g=="function")x||kO(o);else if(x){var S=null;if(g&&g.hasAttribute("formAction")){if(p=g,x=g[xn]||null)S=x.formAction;else if(D0(p)!==null)continue}else S=x.action;typeof S=="function"?o[c+1]=S:(o.splice(c,3),c-=3),kO(o)}}}function DO(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(x){return p=x})},focusReset:"manual",scroll:"manual"})}function s(){p!==null&&(p(),p=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,p=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),p!==null&&(p(),p=null)}}}function N0(r){this._internalRoot=r}Md.prototype.render=N0.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(a(409));var o=s.current,c=zn();SO(o,c,r,s,null,null)},Md.prototype.unmount=N0.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;SO(r.current,2,null,r,null,null),dd(),s[oo]=null}};function Md(r){this._internalRoot=r}Md.prototype.unstable_scheduleHydration=function(r){if(r){var s=qC();r={blockedOn:null,target:r,priority:s};for(var o=0;o<ls.length&&s!==0&&s<ls[o].priority;o++);ls.splice(o,0,r),o===0&&RO(r)}};var MO=n.version;if(MO!=="19.2.0")throw Error(a(527,MO,"19.2.0"));F.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=m(s),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var h7={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nd.isDisabled&&Nd.supportsFiber)try{dr=Nd.inject(h7),ze=Nd}catch{}}return Yo.createRoot=function(r,s){if(!l(r))throw Error(a(299));var o=!1,c="",p=IA,g=PA,x=qA;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(g=s.onCaughtError),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),s=xO(r,1,!1,null,null,o,c,null,p,g,x,DO),r[oo]=s.current,p0(r),new N0(s)},Yo.hydrateRoot=function(r,s,o){if(!l(r))throw Error(a(299));var c=!1,p="",g=IA,x=PA,S=qA,k=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.formState!==void 0&&(k=o.formState)),s=xO(r,1,!0,s,o??null,c,p,k,g,x,S,DO),s.context=wO(null),o=s.current,c=zn(),c=Eg(c),p=Ki(c),p.callback=null,$i(o,p,c),o=c,s.current.lanes=o,ru(s,o),zr(s),r[oo]=s.current,p0(r),new Md(s)},Yo.version="19.2.0",Yo}var J0;function FO(){if(J0)return Bd.exports;J0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Bd.exports=qO(),Bd.exports}var VO=FO();const At=t=>typeof t=="string",Ko=()=>{let t,e;const n=new Promise((i,a)=>{t=i,e=a});return n.resolve=t,n.reject=e,n},W0=t=>t==null?"":""+t,HO=(t,e,n)=>{t.forEach(i=>{e[i]&&(n[i]=e[i])})},GO=/###/g,tb=t=>t&&t.indexOf("###")>-1?t.replace(GO,"."):t,eb=t=>!t||At(t),$o=(t,e,n)=>{const i=At(e)?e.split("."):e;let a=0;for(;a<i.length-1;){if(eb(t))return{};const l=tb(i[a]);!t[l]&&n&&(t[l]=new n),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={},++a}return eb(t)?{}:{obj:t,k:tb(i[a])}},nb=(t,e,n)=>{const{obj:i,k:a}=$o(t,e,Object);if(i!==void 0||e.length===1){i[a]=n;return}let l=e[e.length-1],u=e.slice(0,e.length-1),f=$o(t,u,Object);for(;f.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),f=$o(t,u,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${l}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${l}`]=n},YO=(t,e,n,i)=>{const{obj:a,k:l}=$o(t,e,Object);a[l]=a[l]||[],a[l].push(n)},$u=(t,e)=>{const{obj:n,k:i}=$o(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},KO=(t,e,n)=>{const i=$u(t,n);return i!==void 0?i:$u(e,n)},rb=(t,e,n)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?At(t[i])||t[i]instanceof String||At(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):rb(t[i],e[i],n):t[i]=e[i]);return t},ua=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var $O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const XO=t=>At(t)?t.replace(/[&<>"'\/]/g,e=>$O[e]):t;class QO{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const ZO=[" ",",","?","!",";"],JO=new QO(20),WO=(t,e,n)=>{e=e||"",n=n||"";const i=ZO.filter(u=>e.indexOf(u)<0&&n.indexOf(u)<0);if(i.length===0)return!0;const a=JO.getRegExp(`(${i.map(u=>u==="?"?"\\?":u).join("|")})`);let l=!a.test(t);if(!l){const u=t.indexOf(n);u>0&&!a.test(t.substring(0,u))&&(l=!0)}return l},Vd=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const i=e.split(n);let a=t;for(let l=0;l<i.length;){if(!a||typeof a!="object")return;let u,f="";for(let d=l;d<i.length;++d)if(d!==l&&(f+=n),f+=i[d],u=a[f],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&d<i.length-1)continue;l+=d-l+1;break}a=u}return a},Xo=t=>t==null?void 0:t.replace("_","-"),tk={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var n,i;(i=(n=console==null?void 0:console[t])==null?void 0:n.apply)==null||i.call(n,console,e)}};class Xu{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||tk,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,a){return a&&!this.debug?null:(At(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Xu(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Xu(this.logger,e)}}var yr=new Xu;class Qu{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(n)||0;this.observers[i].set(n,a+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a.apply(a,[e,...n])})}}class ib extends Qu{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,i,a={}){var h,m;const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;e.indexOf(".")>-1?f=e.split("."):(f=[e,n],i&&(Array.isArray(i)?f.push(...i):At(i)&&l?f.push(...i.split(l)):f.push(i)));const d=$u(this.data,f);return!d&&!n&&!i&&e.indexOf(".")>-1&&(e=f[0],n=f[1],i=f.slice(2).join(".")),d||!u||!At(i)?d:Vd((m=(h=this.data)==null?void 0:h[e])==null?void 0:m[n],i,l)}addResource(e,n,i,a,l={silent:!1}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=[e,n];i&&(f=f.concat(u?i.split(u):i)),e.indexOf(".")>-1&&(f=e.split("."),a=n,n=f[1]),this.addNamespaces(n),nb(this.data,f,a),l.silent||this.emit("added",e,n,i,a)}addResources(e,n,i,a={silent:!1}){for(const l in i)(At(i[l])||Array.isArray(i[l]))&&this.addResource(e,n,l,i[l],{silent:!0});a.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,a,l,u={silent:!1,skipCopy:!1}){let f=[e,n];e.indexOf(".")>-1&&(f=e.split("."),a=i,i=n,n=f[1]),this.addNamespaces(n);let d=$u(this.data,f)||{};u.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?rb(d,i,l):d={...d,...i},nb(this.data,f,d),u.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var sb={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,a){return t.forEach(l=>{var u;e=((u=this.processors[l])==null?void 0:u.process(e,n,i,a))??e}),e}};const ab=Symbol("i18next/PATH_KEY");function ek(){const t=[],e=Object.create(null);let n;return e.get=(i,a)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),a===ab?t:(t.push(a),n=Proxy.revocable(i,e),n.proxy)},Proxy.revocable(Object.create(null),e).proxy}function Hd(t,e){const{[ab]:n}=t(ek());return n.join((e==null?void 0:e.keySeparator)??".")}const ob={},Gd=t=>!At(t)&&typeof t!="boolean"&&typeof t!="number";class Zu extends Qu{constructor(e,n={}){super(),HO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yr.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const i={...n};if(e==null)return!1;const a=this.resolve(e,i);if((a==null?void 0:a.res)===void 0)return!1;const l=Gd(a.res);return!(i.returnObjects===!1&&l)}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const u=i&&e.indexOf(i)>-1,f=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!WO(e,i,a);if(u&&!f){const d=e.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:e,namespaces:At(l)?[l]:l};const h=e.split(i);(i!==a||i===a&&this.options.ns.indexOf(h[0])>-1)&&(l=h.shift()),e=h.join(a)}return{key:e,namespaces:At(l)?[l]:l}}translate(e,n,i){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),e==null)return"";typeof e=="function"&&(e=Hd(e,{...this.options,...a})),Array.isArray(e)||(e=[String(e)]);const l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:f,namespaces:d}=this.extractFromKey(e[e.length-1],a),h=d[d.length-1];let m=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const y=a.lng||this.language,b=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((y==null?void 0:y.toLowerCase())==="cimode")return b?l?{res:`${h}${m}${f}`,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${m}${f}`:l?{res:f,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:f;const v=this.resolve(e,a);let w=v==null?void 0:v.res;const E=(v==null?void 0:v.usedKey)||f,C=(v==null?void 0:v.exactUsedKey)||f,_=["[object Number]","[object Function]","[object RegExp]"],L=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,U=a.count!==void 0&&!At(a.count),G=Zu.hasDefaultValue(a),z=U?this.pluralResolver.getSuffix(y,a.count,a):"",q=a.ordinal&&U?this.pluralResolver.getSuffix(y,a.count,{ordinal:!1}):"",M=U&&!a.ordinal&&a.count===0,P=M&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${z}`]||a[`defaultValue${q}`]||a.defaultValue;let K=w;R&&!w&&G&&(K=P);const nt=Gd(K),st=Object.prototype.toString.apply(K);if(R&&K&&nt&&_.indexOf(st)<0&&!(At(L)&&Array.isArray(K))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ft=this.options.returnedObjectHandler?this.options.returnedObjectHandler(E,K,{...a,ns:d}):`key '${f} (${this.language})' returned an object instead of string.`;return l?(v.res=ft,v.usedParams=this.getUsedParamsDetails(a),v):ft}if(u){const ft=Array.isArray(K),at=ft?[]:{},it=ft?C:E;for(const Q in K)if(Object.prototype.hasOwnProperty.call(K,Q)){const Y=`${it}${u}${Q}`;G&&!w?at[Q]=this.translate(Y,{...a,defaultValue:Gd(P)?P[Q]:void 0,joinArrays:!1,ns:d}):at[Q]=this.translate(Y,{...a,joinArrays:!1,ns:d}),at[Q]===Y&&(at[Q]=K[Q])}w=at}}else if(R&&At(L)&&Array.isArray(w))w=w.join(L),w&&(w=this.extendTranslation(w,e,a,i));else{let ft=!1,at=!1;!this.isValidLookup(w)&&G&&(ft=!0,w=P),this.isValidLookup(w)||(at=!0,w=f);const Q=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&at?void 0:w,Y=G&&P!==w&&this.options.updateMissing;if(at||ft||Y){if(this.logger.log(Y?"updateKey":"missingKey",y,h,f,Y?P:w),u){const xt=this.resolve(f,{...a,keySeparator:!1});xt&&xt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const gt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&gt&&gt[0])for(let xt=0;xt<gt.length;xt++)F.push(gt[xt]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(a.lng||this.language):F.push(a.lng||this.language);const O=(xt,D,T)=>{var ot;const J=G&&T!==w?T:Q;this.options.missingKeyHandler?this.options.missingKeyHandler(xt,h,D,J,Y,a):(ot=this.backendConnector)!=null&&ot.saveMissing&&this.backendConnector.saveMissing(xt,h,D,J,Y,a),this.emit("missingKey",xt,h,D,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?F.forEach(xt=>{const D=this.pluralResolver.getSuffixes(xt,a);M&&a[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(T=>{O([xt],f+T,a[`defaultValue${T}`]||P)})}):O(F,f,P))}w=this.extendTranslation(w,e,a,v,i),at&&w===f&&this.options.appendNamespaceToMissingKey&&(w=`${h}${m}${f}`),(at||ft)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${m}${f}`:f,ft?w:void 0,a))}return l?(v.res=w,v.usedParams=this.getUsedParamsDetails(a),v):w}extendTranslation(e,n,i,a,l){var d,h;if((d=this.i18nFormat)!=null&&d.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const m=At(e)&&(((h=i==null?void 0:i.interpolation)==null?void 0:h.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(m){const v=e.match(this.interpolator.nestingRegexp);y=v&&v.length}let b=i.replace&&!At(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),e=this.interpolator.interpolate(e,b,i.lng||this.language||a.usedLng,i),m){const v=e.match(this.interpolator.nestingRegexp),w=v&&v.length;y<w&&(i.nest=!1)}!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,(...v)=>(l==null?void 0:l[0])===v[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):this.translate(...v,n),i)),i.interpolation&&this.interpolator.reset()}const u=i.postProcess||this.options.postProcess,f=At(u)?[u]:u;return e!=null&&(f!=null&&f.length)&&i.applyPostProcessor!==!1&&(e=sb.handle(f,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,n={}){let i,a,l,u,f;return At(e)&&(e=[e]),e.forEach(d=>{if(this.isValidLookup(i))return;const h=this.extractFromKey(d,n),m=h.key;a=m;let y=h.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const b=n.count!==void 0&&!At(n.count),v=b&&!n.ordinal&&n.count===0,w=n.context!==void 0&&(At(n.context)||typeof n.context=="number")&&n.context!=="",E=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);y.forEach(C=>{var _,L;this.isValidLookup(i)||(f=C,!ob[`${E[0]}-${C}`]&&((_=this.utils)!=null&&_.hasLoadedNamespace)&&!((L=this.utils)!=null&&L.hasLoadedNamespace(f))&&(ob[`${E[0]}-${C}`]=!0,this.logger.warn(`key "${a}" for languages "${E.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),E.forEach(R=>{var z;if(this.isValidLookup(i))return;u=R;const U=[m];if((z=this.i18nFormat)!=null&&z.addLookupKeys)this.i18nFormat.addLookupKeys(U,m,R,C,n);else{let q;b&&(q=this.pluralResolver.getSuffix(R,n.count,n));const M=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(n.ordinal&&q.indexOf(P)===0&&U.push(m+q.replace(P,this.options.pluralSeparator)),U.push(m+q),v&&U.push(m+M)),w){const K=`${m}${this.options.contextSeparator||"_"}${n.context}`;U.push(K),b&&(n.ordinal&&q.indexOf(P)===0&&U.push(K+q.replace(P,this.options.pluralSeparator)),U.push(K+q),v&&U.push(K+M))}}let G;for(;G=U.pop();)this.isValidLookup(i)||(l=G,i=this.getResource(R,C,G,n))}))})}),{res:i,usedKey:a,exactUsedKey:l,usedLng:u,usedNS:f}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i,a={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(e,n,i,a):this.resourceStore.getResource(e,n,i,a)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!At(e.replace);let a=i?e.replace:e;if(i&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const l of n)delete a[l]}return a}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}class lb{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yr.create("languageUtils")}getScriptPartFromCode(e){if(e=Xo(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Xo(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(At(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const a=this.getScriptPartFromCode(i);if(this.isSupportedCode(a))return n=a;const l=this.getLanguagePartFromCode(i);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(u=>{if(u===l)return u;if(!(u.indexOf("-")<0&&l.indexOf("-")<0)&&(u.indexOf("-")>0&&l.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===l||u.indexOf(l)===0&&l.length>1))return u})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),At(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),a=[],l=u=>{u&&(this.isSupportedCode(u)?a.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return At(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(e))):At(e)&&l(this.formatLanguageCode(e)),i.forEach(u=>{a.indexOf(u)<0&&l(this.formatLanguageCode(u))}),a}}const ub={zero:0,one:1,two:2,few:3,many:4,other:5},cb={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class nk{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=yr.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const i=Xo(e==="dev"?"en":e),a=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:i,type:a});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let u;try{u=new Intl.PluralRules(i,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),cb;if(!e.match(/-|_/))return cb;const d=this.languageUtils.getLanguagePartFromCode(e);u=this.getRule(d,n)}return this.pluralRulesCache[l]=u,u}needsPlural(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,n,i={}){return this.getSuffixes(e,i).map(a=>`${n}${a}`)}getSuffixes(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((a,l)=>ub[a]-ub[l]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(e,n,i={}){const a=this.getRule(e,i);return a?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,i))}}const fb=(t,e,n,i=".",a=!0)=>{let l=KO(t,e,n);return!l&&a&&At(n)&&(l=Vd(t,n,i),l===void 0&&(l=Vd(e,n,i))),l},Yd=t=>t.replace(/\$/g,"$$$$");class rk{constructor(e={}){var n;this.logger=yr.create("interpolator"),this.options=e,this.format=((n=e==null?void 0:e.interpolation)==null?void 0:n.format)||(i=>i),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:i,useRawValueToEscape:a,prefix:l,prefixEscaped:u,suffix:f,suffixEscaped:d,formatSeparator:h,unescapeSuffix:m,unescapePrefix:y,nestingPrefix:b,nestingPrefixEscaped:v,nestingSuffix:w,nestingSuffixEscaped:E,nestingOptionsSeparator:C,maxReplaces:_,alwaysFormat:L}=e.interpolation;this.escape=n!==void 0?n:XO,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?ua(l):u||"{{",this.suffix=f?ua(f):d||"}}",this.formatSeparator=h||",",this.unescapePrefix=m?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=b?ua(b):v||ua("$t("),this.nestingSuffix=w?ua(w):E||ua(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=_||1e3,this.alwaysFormat=L!==void 0?L:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,i,a){var v;let l,u,f;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=w=>{if(w.indexOf(this.formatSeparator)<0){const L=fb(n,d,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,i,{...a,...n,interpolationkey:w}):L}const E=w.split(this.formatSeparator),C=E.shift().trim(),_=E.join(this.formatSeparator).trim();return this.format(fb(n,d,C,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...a,...n,interpolationkey:C})};this.resetRegExp();const m=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,y=((v=a==null?void 0:a.interpolation)==null?void 0:v.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>Yd(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?Yd(this.escape(w)):Yd(w)}].forEach(w=>{for(f=0;l=w.regex.exec(e);){const E=l[1].trim();if(u=h(E),u===void 0)if(typeof m=="function"){const _=m(e,l,a);u=At(_)?_:""}else if(a&&Object.prototype.hasOwnProperty.call(a,E))u="";else if(y){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${e}`),u="";else!At(u)&&!this.useRawValueToEscape&&(u=W0(u));const C=w.safeValue(u);if(e=e.replace(l[0],C),y?(w.regex.lastIndex+=u.length,w.regex.lastIndex-=l[0].length):w.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),e}nest(e,n,i={}){let a,l,u;const f=(d,h)=>{const m=this.nestingOptionsSeparator;if(d.indexOf(m)<0)return d;const y=d.split(new RegExp(`${m}[ ]*{`));let b=`{${y[1]}`;d=y[0],b=this.interpolate(b,u);const v=b.match(/'/g),w=b.match(/"/g);(((v==null?void 0:v.length)??0)%2===0&&!w||w.length%2!==0)&&(b=b.replace(/'/g,'"'));try{u=JSON.parse(b),h&&(u={...h,...u})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,E),`${d}${m}${b}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,d};for(;a=this.nestingRegexp.exec(e);){let d=[];u={...i},u=u.replace&&!At(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const h=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(h!==-1&&(d=a[1].slice(h).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),a[1]=a[1].slice(0,h)),l=n(f.call(this,a[1].trim(),u),u),l&&a[0]===e&&!At(l))return l;At(l)||(l=W0(l)),l||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),l=""),d.length&&(l=d.reduce((m,y)=>this.format(m,y,i.lng,{...i,interpolationkey:a[1].trim()}),l.trim())),e=e.replace(a[0],l),this.regexp.lastIndex=0}return e}}const ik=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(u=>{if(u){const[f,...d]=u.split(":"),h=d.join(":").trim().replace(/^'+|'+$/g,""),m=f.trim();n[m]||(n[m]=h),h==="false"&&(n[m]=!1),h==="true"&&(n[m]=!0),isNaN(h)||(n[m]=parseInt(h,10))}})}return{formatName:e,formatOptions:n}},db=t=>{const e={};return(n,i,a)=>{let l=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(l={...l,[a.interpolationkey]:void 0});const u=i+JSON.stringify(l);let f=e[u];return f||(f=t(Xo(i),a),e[u]=f),f(n)}},sk=t=>(e,n,i)=>t(Xo(n),i)(e);class ak{constructor(e={}){this.logger=yr.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const i=n.cacheInBuiltFormats?db:sk;this.formats={number:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l});return f=>u.format(f)}),currency:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l,style:"currency"});return f=>u.format(f)}),datetime:i((a,l)=>{const u=new Intl.DateTimeFormat(a,{...l});return f=>u.format(f)}),relativetime:i((a,l)=>{const u=new Intl.RelativeTimeFormat(a,{...l});return f=>u.format(f,l.range||"day")}),list:i((a,l)=>{const u=new Intl.ListFormat(a,{...l});return f=>u.format(f)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=db(n)}format(e,n,i,a={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(f=>f.indexOf(")")>-1)){const f=l.findIndex(d=>d.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,f)].join(this.formatSeparator)}return l.reduce((f,d)=>{var y;const{formatName:h,formatOptions:m}=ik(d);if(this.formats[h]){let b=f;try{const v=((y=a==null?void 0:a.formatParams)==null?void 0:y[a.interpolationkey])||{},w=v.locale||v.lng||a.locale||a.lng||i;b=this.formats[h](f,w,{...m,...a,...v})}catch(v){this.logger.warn(v)}return b}else this.logger.warn(`there was no format function for ${h}`);return f},e)}}const ok=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class lk extends Qu{constructor(e,n,i,a={}){var l,u;super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=yr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(u=(l=this.backend)==null?void 0:l.init)==null||u.call(l,i,a.backend,a)}queueLoad(e,n,i,a){const l={},u={},f={},d={};return e.forEach(h=>{let m=!0;n.forEach(y=>{const b=`${h}|${y}`;!i.reload&&this.store.hasResourceBundle(h,y)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?u[b]===void 0&&(u[b]=!0):(this.state[b]=1,m=!1,u[b]===void 0&&(u[b]=!0),l[b]===void 0&&(l[b]=!0),d[y]===void 0&&(d[y]=!0)))}),m||(f[h]=!0)}),(Object.keys(l).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(l),pending:Object.keys(u),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}loaded(e,n,i){const a=e.split("|"),l=a[0],u=a[1];n&&this.emit("failedLoading",l,u,n),!n&&i&&this.store.addResourceBundle(l,u,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&i&&(this.state[e]=0);const f={};this.queue.forEach(d=>{YO(d.loaded,[l],u),ok(d,e),n&&d.errors.push(n),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(h=>{f[h]||(f[h]={});const m=d.loaded[h];m.length&&m.forEach(y=>{f[h][y]===void 0&&(f[h][y]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(d=>!d.done)}read(e,n,i,a=0,l=this.retryTimeout,u){if(!e.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:a,wait:l,callback:u});return}this.readingCalls++;const f=(h,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(h&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,i,a+1,l*2,u)},l);return}u(h,m)},d=this.backend[i].bind(this.backend);if(d.length===2){try{const h=d(e,n);h&&typeof h.then=="function"?h.then(m=>f(null,m)).catch(f):f(null,h)}catch(h){f(h)}return}return d(e,n,f)}prepareLoading(e,n,i={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();At(e)&&(e=this.languageUtils.toResolveHierarchy(e)),At(n)&&(n=[n]);const l=this.queueLoad(e,n,i,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(u=>{this.loadOne(u)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e,n=""){const i=e.split("|"),a=i[0],l=i[1];this.read(a,l,"read",void 0,void 0,(u,f)=>{u&&this.logger.warn(`${n}loading namespace ${l} for language ${a} failed`,u),!u&&f&&this.logger.log(`${n}loaded namespace ${l} for language ${a}`,f),this.loaded(e,u,f)})}saveMissing(e,n,i,a,l,u={},f=()=>{}){var d,h,m,y,b;if((h=(d=this.services)==null?void 0:d.utils)!=null&&h.hasLoadedNamespace&&!((y=(m=this.services)==null?void 0:m.utils)!=null&&y.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((b=this.backend)!=null&&b.create){const v={...u,isUpdate:l},w=this.backend.create.bind(this.backend);if(w.length<6)try{let E;w.length===5?E=w(e,n,i,a,v):E=w(e,n,i,a),E&&typeof E.then=="function"?E.then(C=>f(null,C)).catch(f):f(null,E)}catch(E){f(E)}else w(e,n,i,a,f,v)}!e||!e[0]||this.store.addResource(e[0],n,i,a)}}}const hb=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),At(t[1])&&(e.defaultValue=t[1]),At(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(i=>{e[i]=n[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),pb=t=>{var e,n;return At(t.ns)&&(t.ns=[t.ns]),At(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),At(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((n=(e=t.supportedLngs)==null?void 0:e.indexOf)==null?void 0:n.call(e,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},Ju=()=>{},uk=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Qo extends Qu{constructor(e={},n){if(super(),this.options=pb(e),this.services={},this.logger=yr,this.modules={external:[]},uk(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(At(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=hb();this.options={...i,...this.options,...pb(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const a=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?yr.init(a(this.modules.logger),this.options):yr.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=ak;const m=new lb(this.options);this.store=new ib(this.options.resources,this.options);const y=this.services;y.logger=yr,y.resourceStore=this.store,y.languageUtils=m,y.pluralResolver=new nk(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),h&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(y.formatter=a(h),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new rk(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new lk(a(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(v,...w)=>{this.emit(v,...w)}),this.modules.languageDetector&&(y.languageDetector=a(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=a(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new Zu(this.services,this.options),this.translator.on("*",(v,...w)=>{this.emit(v,...w)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ju),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=(...m)=>this.store[h](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...m)=>(this.store[h](...m),this)});const f=Ko(),d=()=>{const h=(m,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(y),n(m,y)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),f}loadResources(e,n=Ju){var l,u;let i=n;const a=At(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const f=[],d=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(y=>{y!=="cimode"&&f.indexOf(y)<0&&f.push(y)})};a?d(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>d(m)),(u=(l=this.options.preload)==null?void 0:l.forEach)==null||u.call(l,h=>d(h)),this.services.backendConnector.load(f,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(h)})}else i(null)}reloadResources(e,n,i){const a=Ko();return typeof e=="function"&&(i=e,e=void 0),typeof n=="function"&&(i=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),i||(i=Ju),this.services.backendConnector.reload(e,n,l=>{a.resolve(),i(l)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&sb.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const i=Ko();this.emit("languageChanging",e);const a=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},l=(f,d)=>{d?this.isLanguageChangingTo===e&&(a(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,i.resolve((...h)=>this.t(...h)),n&&n(f,(...h)=>this.t(...h))},u=f=>{var m,y;!e&&!f&&this.services.languageDetector&&(f=[]);const d=At(f)?f:f&&f[0],h=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(At(f)?[f]:f);h&&(this.language||a(h),this.translator.language||this.translator.changeLanguage(h),(y=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||y.call(m,h)),this.loadResources(h,b=>{l(b,h)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),i}getFixedT(e,n,i){const a=(l,u,...f)=>{let d;typeof u!="object"?d=this.options.overloadTranslationOptionHandler([l,u].concat(f)):d={...u},d.lng=d.lng||a.lng,d.lngs=d.lngs||a.lngs,d.ns=d.ns||a.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||i||a.keyPrefix);const h=this.options.keySeparator||".";let m;return d.keyPrefix&&Array.isArray(l)?m=l.map(y=>(typeof y=="function"&&(y=Hd(y,{...this.options,...u})),`${d.keyPrefix}${h}${y}`)):(typeof l=="function"&&(l=Hd(l,{...this.options,...u})),m=d.keyPrefix?`${d.keyPrefix}${h}${l}`:l),this.t(m,d)};return At(e)?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=i,a}t(...e){var n;return(n=this.translator)==null?void 0:n.translate(...e)}exists(...e){var n;return(n=this.translator)==null?void 0:n.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const u=(f,d)=>{const h=this.services.backendConnector.state[`${f}|${d}`];return h===-1||h===0||h===2};if(n.precheck){const f=n.precheck(this,u);if(f!==void 0)return f}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(i,e)&&(!a||u(l,e)))}loadNamespaces(e,n){const i=Ko();return this.options.ns?(At(e)&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=Ko();At(e)&&(e=[e]);const a=this.options.preload||[],l=e.filter(u=>a.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return l.length?(this.options.preload=a.concat(l),this.loadResources(u=>{i.resolve(),n&&n(u)}),i):(n&&n(),Promise.resolve())}dir(e){var a,l;if(e||(e=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const u=new Intl.Locale(e);if(u&&u.getTextInfo){const f=u.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((l=this.services)==null?void 0:l.languageUtils)||new lb(hb());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const i=new Qo(e,n);return i.createInstance=Qo.createInstance,i}cloneInstance(e={},n=Ju){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},l=new Qo(a);if((e.debug!==void 0||e.prefix!==void 0)&&(l.logger=l.logger.clone(e)),["store","services","language"].forEach(f=>{l[f]=this[f]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},i){const f=Object.keys(this.store.data).reduce((d,h)=>(d[h]={...this.store.data[h]},d[h]=Object.keys(d[h]).reduce((m,y)=>(m[y]={...d[h][y]},m),d[h]),d),{});l.store=new ib(f,a),l.services.resourceStore=l.store}return l.translator=new Zu(l.services,a),l.translator.on("*",(f,...d)=>{l.emit(f,...d)}),l.init(a,n),l.translator.options=a,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const qe=Qo.createInstance();qe.createInstance,qe.dir,qe.init,qe.loadResources,qe.reloadResources,qe.use,qe.changeLanguage,qe.getFixedT,qe.t,qe.exists,qe.setDefaultNamespace,qe.hasLoadedNamespace,qe.loadNamespaces,qe.loadLanguages;/*! js-cookie v3.0.5 | MIT */function Wu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}var ck={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Kd(t,e){function n(a,l,u){if(!(typeof document>"u")){u=Wu({},e,u),typeof u.expires=="number"&&(u.expires=new Date(Date.now()+u.expires*864e5)),u.expires&&(u.expires=u.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var d in u)u[d]&&(f+="; "+d,u[d]!==!0&&(f+="="+u[d].split(";")[0]));return document.cookie=a+"="+t.write(l,a)+f}}function i(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var l=document.cookie?document.cookie.split("; "):[],u={},f=0;f<l.length;f++){var d=l[f].split("="),h=d.slice(1).join("=");try{var m=decodeURIComponent(d[0]);if(u[m]=t.read(h,m),a===m)break}catch{}}return a?u[a]:u}}return Object.create({set:n,get:i,remove:function(a,l){n(a,"",Wu({},l,{expires:-1}))},withAttributes:function(a){return Kd(this.converter,Wu({},this.attributes,a))},withConverter:function(a){return Kd(Wu({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var mb=Kd(ck,{path:"/"}),B=qd();const Zo=Ut(B),fk=(t,e,n,i)=>{var l,u,f,d;const a=[n,{code:e,...i||{}}];if((u=(l=t==null?void 0:t.services)==null?void 0:l.logger)!=null&&u.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);ds(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(d=(f=t==null?void 0:t.services)==null?void 0:f.logger)!=null&&d.warn?t.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},gb={},$d=(t,e,n,i)=>{ds(n)&&gb[n]||(ds(n)&&(gb[n]=new Date),fk(t,e,n,i))},yb=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},Xd=(t,e,n)=>{t.loadNamespaces(e,yb(t,n))},bb=(t,e,n,i)=>{if(ds(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return Xd(t,n,i);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,yb(t,i))},dk=(t,e,n={})=>!e.languages||!e.languages.length?($d(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,t))return!1}}),ds=t=>typeof t=="string",hk=t=>typeof t=="object"&&t!==null,pk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mk={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},gk=t=>mk[t];let Qd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(pk,gk)};const yk=(t={})=>{Qd={...Qd,...t}},bk=()=>Qd;let vb;const vk=t=>{vb=t},xk=()=>vb,wk={type:"3rdParty",init(t){yk(t.options.react),vk(t)}},Sk=B.createContext();class Ek{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Tk=(t,e)=>{const n=B.useRef();return B.useEffect(()=>{n.current=t},[t,e]),n.current},xb=(t,e,n,i)=>t.getFixedT(e,n,i),Ck=(t,e,n,i)=>B.useCallback(xb(t,e,n,i),[t,e,n,i]),br=(t,e={})=>{var U,G,z,q;const{i18n:n}=e,{i18n:i,defaultNS:a}=B.useContext(Sk)||{},l=n||i||xk();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new Ek),!l){$d(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const M=(K,nt)=>ds(nt)?nt:hk(nt)&&ds(nt.defaultValue)?nt.defaultValue:Array.isArray(K)?K[K.length-1]:K,P=[M,{},!1];return P.t=M,P.i18n={},P.ready=!1,P}(U=l.options.react)!=null&&U.wait&&$d(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...bk(),...l.options.react,...e},{useSuspense:f,keyPrefix:d}=u;let h=a||((G=l.options)==null?void 0:G.defaultNS);h=ds(h)?[h]:h||["translation"],(q=(z=l.reportNamespaces).addUsedNamespaces)==null||q.call(z,h);const m=(l.isInitialized||l.initializedStoreOnce)&&h.every(M=>dk(M,l,u)),y=Ck(l,e.lng||null,u.nsMode==="fallback"?h:h[0],d),b=()=>y,v=()=>xb(l,e.lng||null,u.nsMode==="fallback"?h:h[0],d),[w,E]=B.useState(b);let C=h.join();e.lng&&(C=`${e.lng}${C}`);const _=Tk(C),L=B.useRef(!0);B.useEffect(()=>{const{bindI18n:M,bindI18nStore:P}=u;L.current=!0,!m&&!f&&(e.lng?bb(l,e.lng,h,()=>{L.current&&E(v)}):Xd(l,h,()=>{L.current&&E(v)})),m&&_&&_!==C&&L.current&&E(v);const K=()=>{L.current&&E(v)};return M&&(l==null||l.on(M,K)),P&&(l==null||l.store.on(P,K)),()=>{L.current=!1,l&&M&&(M==null||M.split(" ").forEach(nt=>l.off(nt,K))),P&&l&&P.split(" ").forEach(nt=>l.store.off(nt,K))}},[l,C]),B.useEffect(()=>{L.current&&m&&E(b)},[l,d,m]);const R=[w,l,m];if(R.t=w,R.i18n=l,R.ready=m,m||!m&&!f)return R;throw new Promise(M=>{e.lng?bb(l,e.lng,h,()=>M()):Xd(l,h,()=>M())})},_k={bezvabot:{headerDropdown:{reloadChat:"Nový chat"},chatMessageInputForm:{placeholder:"Napište svůj dotaz"},errors:{offline:"Offline. Připojuji zpět…",general:{title:"Něco se pokazilo",description:"Něco se pokazilo, zkuste to prosím později.",buttonReload:"Zkusit znovu"}},contactSavedWidget:{title:"Kontakt zaznamenán!",subtitle:"Děkujeme!, brzy se vám ozveme."},poweredByBezvabot:"Powered by",startChatButton:"Zahájit chat",chatSessionClosed:"Konverzace byla ukončena",demo:{chatSessionDebugModeSwitch:{label:"Zobrazovat v dashboardu?"}},common:{confirm:"Potvrdit"},typingIndicator:{a:"Pracuji na tom…",b:"Ještě chvilku…",c:"Přemýšlím…",d:"Už to bude…"}}},wb="bezvabot-language",Ak=["cs","en"],Rk="cs",Ok="bezvabot",kk=mb.get(wb)||"cs";qe.use(wk).init({lng:kk,fallbackNS:Ok,supportedLngs:Ak,fallbackLng:Rk,debug:!0,interpolation:{escapeValue:!1},resources:{cs:{..._k}}}),qe.on("languageChanged",()=>{mb.set(wb,qe.language)});var ca=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dk={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Mk=(_C=class{constructor(){yt(this,Ri,Dk);yt(this,bg,!1)}setTimeoutProvider(t){ut(this,Ri,t)}setTimeout(t,e){return A(this,Ri).setTimeout(t,e)}clearTimeout(t){A(this,Ri).clearTimeout(t)}setInterval(t,e){return A(this,Ri).setInterval(t,e)}clearInterval(t){A(this,Ri).clearInterval(t)}},Ri=new WeakMap,bg=new WeakMap,_C),hs=new Mk;function Nk(t){setTimeout(t,0)}var ps=typeof window>"u"||"Deno"in globalThis;function tn(){}function Lk(t,e){return typeof t=="function"?t(e):t}function Zd(t){return typeof t=="number"&&t>=0&&t!==1/0}function Sb(t,e){return Math.max(t+(e||0)-Date.now(),0)}function mi(t,e){return typeof t=="function"?t(e):t}function Bn(t,e){return typeof t=="function"?t(e):t}function Eb(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:u,stale:f}=t;if(u){if(i){if(e.queryHash!==Jd(u,e.options))return!1}else if(!Jo(e.queryKey,u))return!1}if(n!=="all"){const d=e.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||a&&a!==e.state.fetchStatus||l&&!l(e))}function Tb(t,e){const{exact:n,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(ms(e.options.mutationKey)!==ms(l))return!1}else if(!Jo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function Jd(t,e){return((e==null?void 0:e.queryKeyHashFn)||ms)(t)}function ms(t){return JSON.stringify(t,(e,n)=>Wd(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function Jo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Jo(t[n],e[n])):!1}var jk=Object.prototype.hasOwnProperty;function Cb(t,e){if(t===e)return t;const n=_b(t)&&_b(e);if(!n&&!(Wd(t)&&Wd(e)))return e;const a=(n?t:Object.keys(t)).length,l=n?e:Object.keys(e),u=l.length,f=n?new Array(u):{};let d=0;for(let h=0;h<u;h++){const m=n?h:l[h],y=t[m],b=e[m];if(y===b){f[m]=y,(n?h<a:jk.call(t,m))&&d++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){f[m]=b;continue}const v=Cb(y,b);f[m]=v,v===y&&d++}return a===u&&d===a?t:f}function tc(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function _b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Wd(t){if(!Ab(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Ab(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ab(t){return Object.prototype.toString.call(t)==="[object Object]"}function zk(t){return new Promise(e=>{hs.setTimeout(e,t)})}function th(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Cb(t,e):e}function Bk(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function Uk(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var eh=Symbol();function Rb(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===eh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Ob(t,e){return typeof t=="function"?t(...e):!!t}var Ik=(AC=class extends ca{constructor(){super();yt(this,js);yt(this,Oi);yt(this,Ya);ut(this,Ya,e=>{if(!ps&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,Oi)||this.setEventListener(A(this,Ya))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Oi))==null||e.call(this),ut(this,Oi,void 0))}setEventListener(e){var n;ut(this,Ya,e),(n=A(this,Oi))==null||n.call(this),ut(this,Oi,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){A(this,js)!==e&&(ut(this,js,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof A(this,js)=="boolean"?A(this,js):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},js=new WeakMap,Oi=new WeakMap,Ya=new WeakMap,AC),nh=new Ik;function rh(){let t,e;const n=new Promise((a,l)=>{t=a,e=l});n.status="pending",n.catch(()=>{});function i(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},n.reject=a=>{i({status:"rejected",reason:a}),e(a)},n}var Pk=Nk;function qk(){let t=[],e=0,n=f=>{f()},i=f=>{f()},a=Pk;const l=f=>{e?t.push(f):a(()=>{n(f)})},u=()=>{const f=t;t=[],f.length&&a(()=>{i(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;e++;try{d=f()}finally{e--,e||u()}return d},batchCalls:f=>(...d)=>{l(()=>{f(...d)})},schedule:l,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{a=f}}}var Le=qk(),Fk=(RC=class extends ca{constructor(){super();yt(this,Ka,!0);yt(this,ki);yt(this,$a);ut(this,$a,e=>{if(!ps&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){A(this,ki)||this.setEventListener(A(this,$a))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,ki))==null||e.call(this),ut(this,ki,void 0))}setEventListener(e){var n;ut(this,$a,e),(n=A(this,ki))==null||n.call(this),ut(this,ki,e(this.setOnline.bind(this)))}setOnline(e){A(this,Ka)!==e&&(ut(this,Ka,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return A(this,Ka)}},Ka=new WeakMap,ki=new WeakMap,$a=new WeakMap,RC),ec=new Fk;function Vk(t){return Math.min(1e3*2**t,3e4)}function kb(t){return(t??"online")==="online"?ec.isOnline():!0}var ih=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Db(t){let e=!1,n=0,i;const a=rh(),l=()=>a.status!=="pending",u=E=>{var C;if(!l()){const _=new ih(E);b(_),(C=t.onCancel)==null||C.call(t,_)}},f=()=>{e=!0},d=()=>{e=!1},h=()=>nh.isFocused()&&(t.networkMode==="always"||ec.isOnline())&&t.canRun(),m=()=>kb(t.networkMode)&&t.canRun(),y=E=>{l()||(i==null||i(),a.resolve(E))},b=E=>{l()||(i==null||i(),a.reject(E))},v=()=>new Promise(E=>{var C;i=_=>{(l()||h())&&E(_)},(C=t.onPause)==null||C.call(t)}).then(()=>{var E;i=void 0,l()||(E=t.onContinue)==null||E.call(t)}),w=()=>{if(l())return;let E;const C=n===0?t.initialPromise:void 0;try{E=C??t.fn()}catch(_){E=Promise.reject(_)}Promise.resolve(E).then(y).catch(_=>{var z;if(l())return;const L=t.retry??(ps?0:3),R=t.retryDelay??Vk,U=typeof R=="function"?R(n,_):R,G=L===!0||typeof L=="number"&&n<L||typeof L=="function"&&L(n,_);if(e||!G){b(_);return}n++,(z=t.onFail)==null||z.call(t,n,_),zk(U).then(()=>h()?void 0:v()).then(()=>{e?b(_):w()})})};return{promise:a,status:()=>a.status,cancel:u,continue:()=>(i==null||i(),a),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?w():v().then(w),a)}}var Mb=(OC=class{constructor(){yt(this,zs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zd(this.gcTime)&&ut(this,zs,hs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ps?1/0:300*1e3))}clearGcTimeout(){A(this,zs)&&(hs.clearTimeout(A(this,zs)),ut(this,zs,void 0))}},zs=new WeakMap,OC),Hk=(kC=class extends Mb{constructor(e){super();yt(this,lr);yt(this,Bs);yt(this,Xa);yt(this,Yn);yt(this,Us);yt(this,Ue);yt(this,$l);yt(this,Is);ut(this,Is,!1),ut(this,$l,e.defaultOptions),this.setOptions(e.options),this.observers=[],ut(this,Us,e.client),ut(this,Yn,A(this,Us).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ut(this,Bs,jb(this.options)),this.state=e.state??A(this,Bs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=A(this,Ue))==null?void 0:e.promise}setOptions(e){if(this.options={...A(this,$l),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=jb(this.options);n.data!==void 0&&(this.setState(Lb(n.data,n.dataUpdatedAt)),ut(this,Bs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,Yn).remove(this)}setData(e,n){const i=th(this.state.data,e,this.options);return zt(this,lr,pi).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){zt(this,lr,pi).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=A(this,Ue))==null?void 0:i.promise;return(a=A(this,Ue))==null||a.cancel(e),n?n.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Bs))}isActive(){return this.observers.some(e=>Bn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>mi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Sb(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,Ue))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,Ue))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),A(this,Yn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(A(this,Ue)&&(A(this,Is)?A(this,Ue).cancel({revert:!0}):A(this,Ue).cancelRetry()),this.scheduleGc()),A(this,Yn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||zt(this,lr,pi).call(this,{type:"invalidate"})}async fetch(e,n){var d,h,m,y,b,v,w,E,C,_,L,R;if(this.state.fetchStatus!=="idle"&&((d=A(this,Ue))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,Ue))return A(this,Ue).continueRetry(),A(this,Ue).promise}if(e&&this.setOptions(e),!this.options.queryFn){const U=this.observers.find(G=>G.options.queryFn);U&&this.setOptions(U.options)}const i=new AbortController,a=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(ut(this,Is,!0),i.signal)})},l=()=>{const U=Rb(this.options,n),z=(()=>{const q={client:A(this,Us),queryKey:this.queryKey,meta:this.meta};return a(q),q})();return ut(this,Is,!1),this.options.persister?this.options.persister(U,z,this):U(z)},f=(()=>{const U={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,Us),state:this.state,fetchFn:l};return a(U),U})();(h=this.options.behavior)==null||h.onFetch(f,this),ut(this,Xa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=f.fetchOptions)==null?void 0:m.meta))&&zt(this,lr,pi).call(this,{type:"fetch",meta:(y=f.fetchOptions)==null?void 0:y.meta}),ut(this,Ue,Db({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:U=>{U instanceof ih&&U.revert&&this.setState({...A(this,Xa),fetchStatus:"idle"}),i.abort()},onFail:(U,G)=>{zt(this,lr,pi).call(this,{type:"failed",failureCount:U,error:G})},onPause:()=>{zt(this,lr,pi).call(this,{type:"pause"})},onContinue:()=>{zt(this,lr,pi).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const U=await A(this,Ue).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(v=(b=A(this,Yn).config).onSuccess)==null||v.call(b,U,this),(E=(w=A(this,Yn).config).onSettled)==null||E.call(w,U,this.state.error,this),U}catch(U){if(U instanceof ih){if(U.silent)return A(this,Ue).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw zt(this,lr,pi).call(this,{type:"error",error:U}),(_=(C=A(this,Yn).config).onError)==null||_.call(C,U,this),(R=(L=A(this,Yn).config).onSettled)==null||R.call(L,this.state.data,U,this),U}finally{this.scheduleGc()}}},Bs=new WeakMap,Xa=new WeakMap,Yn=new WeakMap,Us=new WeakMap,Ue=new WeakMap,$l=new WeakMap,Is=new WeakMap,lr=new WeakSet,pi=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Nb(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Lb(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ut(this,Xa,e.manual?a:void 0),a;case"error":const l=e.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),Le.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),A(this,Yn).notify({query:this,type:"updated",action:e})})},kC);function Nb(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kb(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Lb(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jb(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gk=(DC=class extends ca{constructor(e,n){super();yt(this,Jt);yt(this,mn);yt(this,Ht);yt(this,Xl);yt(this,sn);yt(this,Ps);yt(this,Qa);yt(this,Hr);yt(this,Di);yt(this,Ql);yt(this,Za);yt(this,Ja);yt(this,qs);yt(this,Fs);yt(this,Mi);yt(this,Wa,new Set);this.options=n,ut(this,mn,e),ut(this,Di,null),ut(this,Hr,rh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,Ht).addObserver(this),zb(A(this,Ht),this.options)?zt(this,Jt,Ku).call(this):this.updateResult(),zt(this,Jt,U0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sh(A(this,Ht),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sh(A(this,Ht),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,zt(this,Jt,I0).call(this),zt(this,Jt,P0).call(this),A(this,Ht).removeObserver(this)}setOptions(e){const n=this.options,i=A(this,Ht);if(this.options=A(this,mn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bn(this.options.enabled,A(this,Ht))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");zt(this,Jt,q0).call(this),A(this,Ht).setOptions(this.options),n._defaulted&&!tc(this.options,n)&&A(this,mn).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,Ht),observer:this});const a=this.hasListeners();a&&Bb(A(this,Ht),i,this.options,n)&&zt(this,Jt,Ku).call(this),this.updateResult(),a&&(A(this,Ht)!==i||Bn(this.options.enabled,A(this,Ht))!==Bn(n.enabled,A(this,Ht))||mi(this.options.staleTime,A(this,Ht))!==mi(n.staleTime,A(this,Ht)))&&zt(this,Jt,j0).call(this);const l=zt(this,Jt,z0).call(this);a&&(A(this,Ht)!==i||Bn(this.options.enabled,A(this,Ht))!==Bn(n.enabled,A(this,Ht))||l!==A(this,Mi))&&zt(this,Jt,B0).call(this,l)}getOptimisticResult(e){const n=A(this,mn).getQueryCache().build(A(this,mn),e),i=this.createResult(n,e);return Kk(this,i)&&(ut(this,sn,i),ut(this,Qa,this.options),ut(this,Ps,A(this,Ht).state)),i}getCurrentResult(){return A(this,sn)}trackResult(e,n){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&A(this,Hr).status==="pending"&&A(this,Hr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){A(this,Wa).add(e)}getCurrentQuery(){return A(this,Ht)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=A(this,mn).defaultQueryOptions(e),i=A(this,mn).getQueryCache().build(A(this,mn),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return zt(this,Jt,Ku).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,sn)))}createResult(e,n){var P;const i=A(this,Ht),a=this.options,l=A(this,sn),u=A(this,Ps),f=A(this,Qa),h=e!==i?e.state:A(this,Xl),{state:m}=e;let y={...m},b=!1,v;if(n._optimisticResults){const K=this.hasListeners(),nt=!K&&zb(e,n),st=K&&Bb(e,i,n,a);(nt||st)&&(y={...y,...Nb(m.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:E,status:C}=y;v=y.data;let _=!1;if(n.placeholderData!==void 0&&v===void 0&&C==="pending"){let K;l!=null&&l.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(K=l.data,_=!0):K=typeof n.placeholderData=="function"?n.placeholderData((P=A(this,Ja))==null?void 0:P.state.data,A(this,Ja)):n.placeholderData,K!==void 0&&(C="success",v=th(l==null?void 0:l.data,K,n),b=!0)}if(n.select&&v!==void 0&&!_)if(l&&v===(u==null?void 0:u.data)&&n.select===A(this,Ql))v=A(this,Za);else try{ut(this,Ql,n.select),v=n.select(v),v=th(l==null?void 0:l.data,v,n),ut(this,Za,v),ut(this,Di,null)}catch(K){ut(this,Di,K)}A(this,Di)&&(w=A(this,Di),v=A(this,Za),E=Date.now(),C="error");const L=y.fetchStatus==="fetching",R=C==="pending",U=C==="error",G=R&&L,z=v!==void 0,M={status:C,fetchStatus:y.fetchStatus,isPending:R,isSuccess:C==="success",isError:U,isInitialLoading:G,isLoading:G,data:v,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:E,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:L,isRefetching:L&&!R,isLoadingError:U&&!z,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:U&&z,isStale:ah(e,n),refetch:this.refetch,promise:A(this,Hr),isEnabled:Bn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const K=ft=>{M.status==="error"?ft.reject(M.error):M.data!==void 0&&ft.resolve(M.data)},nt=()=>{const ft=ut(this,Hr,M.promise=rh());K(ft)},st=A(this,Hr);switch(st.status){case"pending":e.queryHash===i.queryHash&&K(st);break;case"fulfilled":(M.status==="error"||M.data!==st.value)&&nt();break;case"rejected":(M.status!=="error"||M.error!==st.reason)&&nt();break}}return M}updateResult(){const e=A(this,sn),n=this.createResult(A(this,Ht),this.options);if(ut(this,Ps,A(this,Ht).state),ut(this,Qa,this.options),A(this,Ps).data!==void 0&&ut(this,Ja,A(this,Ht)),tc(n,e))return;ut(this,sn,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!A(this,Wa).size)return!0;const u=new Set(l??A(this,Wa));return this.options.throwOnError&&u.add("error"),Object.keys(A(this,sn)).some(f=>{const d=f;return A(this,sn)[d]!==e[d]&&u.has(d)})};zt(this,Jt,LO).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&zt(this,Jt,U0).call(this)}},mn=new WeakMap,Ht=new WeakMap,Xl=new WeakMap,sn=new WeakMap,Ps=new WeakMap,Qa=new WeakMap,Hr=new WeakMap,Di=new WeakMap,Ql=new WeakMap,Za=new WeakMap,Ja=new WeakMap,qs=new WeakMap,Fs=new WeakMap,Mi=new WeakMap,Wa=new WeakMap,Jt=new WeakSet,Ku=function(e){zt(this,Jt,q0).call(this);let n=A(this,Ht).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(tn)),n},j0=function(){zt(this,Jt,I0).call(this);const e=mi(this.options.staleTime,A(this,Ht));if(ps||A(this,sn).isStale||!Zd(e))return;const i=Sb(A(this,sn).dataUpdatedAt,e)+1;ut(this,qs,hs.setTimeout(()=>{A(this,sn).isStale||this.updateResult()},i))},z0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,Ht)):this.options.refetchInterval)??!1},B0=function(e){zt(this,Jt,P0).call(this),ut(this,Mi,e),!(ps||Bn(this.options.enabled,A(this,Ht))===!1||!Zd(A(this,Mi))||A(this,Mi)===0)&&ut(this,Fs,hs.setInterval(()=>{(this.options.refetchIntervalInBackground||nh.isFocused())&&zt(this,Jt,Ku).call(this)},A(this,Mi)))},U0=function(){zt(this,Jt,j0).call(this),zt(this,Jt,B0).call(this,zt(this,Jt,z0).call(this))},I0=function(){A(this,qs)&&(hs.clearTimeout(A(this,qs)),ut(this,qs,void 0))},P0=function(){A(this,Fs)&&(hs.clearInterval(A(this,Fs)),ut(this,Fs,void 0))},q0=function(){const e=A(this,mn).getQueryCache().build(A(this,mn),this.options);if(e===A(this,Ht))return;const n=A(this,Ht);ut(this,Ht,e),ut(this,Xl,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},LO=function(e){Le.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(A(this,sn))}),A(this,mn).getQueryCache().notify({query:A(this,Ht),type:"observerResultsUpdated"})})},DC);function Yk(t,e){return Bn(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function zb(t,e){return Yk(t,e)||t.state.data!==void 0&&sh(t,e,e.refetchOnMount)}function sh(t,e,n){if(Bn(e.enabled,t)!==!1&&mi(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&ah(t,e)}return!1}function Bb(t,e,n,i){return(t!==e||Bn(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&ah(t,n)}function ah(t,e){return Bn(e.enabled,t)!==!1&&t.isStaleByTime(mi(e.staleTime,t))}function Kk(t,e){return!tc(t.getCurrentResult(),e)}function Ub(t){return{onFetch:(e,n)=>{var m,y,b,v,w;const i=e.options,a=(b=(y=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,l=((v=e.state.data)==null?void 0:v.pages)||[],u=((w=e.state.data)==null?void 0:w.pageParams)||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let E=!1;const C=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(e.signal.aborted?E=!0:e.signal.addEventListener("abort",()=>{E=!0}),e.signal)})},_=Rb(e.options,e.fetchOptions),L=async(R,U,G)=>{if(E)return Promise.reject();if(U==null&&R.pages.length)return Promise.resolve(R);const q=(()=>{const nt={client:e.client,queryKey:e.queryKey,pageParam:U,direction:G?"backward":"forward",meta:e.options.meta};return C(nt),nt})(),M=await _(q),{maxPages:P}=e.options,K=G?Uk:Bk;return{pages:K(R.pages,M,P),pageParams:K(R.pageParams,U,P)}};if(a&&l.length){const R=a==="backward",U=R?$k:Ib,G={pages:l,pageParams:u},z=U(i,G);f=await L(G,z,R)}else{const R=t??l.length;do{const U=d===0?u[0]??i.initialPageParam:Ib(i,f);if(d>0&&U==null)break;f=await L(f,U),d++}while(d<R)}return f};e.options.persister?e.fetchFn=()=>{var E,C;return(C=(E=e.options).persister)==null?void 0:C.call(E,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=h}}}function Ib(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function $k(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var Xk=(MC=class extends Mb{constructor(e){super();yt(this,Or);yt(this,Zl);yt(this,Rr);yt(this,an);yt(this,Vs);ut(this,Zl,e.client),this.mutationId=e.mutationId,ut(this,an,e.mutationCache),ut(this,Rr,[]),this.state=e.state||Pb(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){A(this,Rr).includes(e)||(A(this,Rr).push(e),this.clearGcTimeout(),A(this,an).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ut(this,Rr,A(this,Rr).filter(n=>n!==e)),this.scheduleGc(),A(this,an).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){A(this,Rr).length||(this.state.status==="pending"?this.scheduleGc():A(this,an).remove(this))}continue(){var e;return((e=A(this,Vs))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,f,d,h,m,y,b,v,w,E,C,_,L,R,U,G,z,q,M,P;const n=()=>{zt(this,Or,cs).call(this,{type:"continue"})},i={client:A(this,Zl),meta:this.options.meta,mutationKey:this.options.mutationKey};ut(this,Vs,Db({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(K,nt)=>{zt(this,Or,cs).call(this,{type:"failed",failureCount:K,error:nt})},onPause:()=>{zt(this,Or,cs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,an).canRun(this)}));const a=this.state.status==="pending",l=!A(this,Vs).canStart();try{if(a)n();else{zt(this,Or,cs).call(this,{type:"pending",variables:e,isPaused:l}),await((f=(u=A(this,an).config).onMutate)==null?void 0:f.call(u,e,this,i));const nt=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,e,i));nt!==this.state.context&&zt(this,Or,cs).call(this,{type:"pending",context:nt,variables:e,isPaused:l})}const K=await A(this,Vs).start();return await((y=(m=A(this,an).config).onSuccess)==null?void 0:y.call(m,K,e,this.state.context,this,i)),await((v=(b=this.options).onSuccess)==null?void 0:v.call(b,K,e,this.state.context,i)),await((E=(w=A(this,an).config).onSettled)==null?void 0:E.call(w,K,null,this.state.variables,this.state.context,this,i)),await((_=(C=this.options).onSettled)==null?void 0:_.call(C,K,null,e,this.state.context,i)),zt(this,Or,cs).call(this,{type:"success",data:K}),K}catch(K){try{throw await((R=(L=A(this,an).config).onError)==null?void 0:R.call(L,K,e,this.state.context,this,i)),await((G=(U=this.options).onError)==null?void 0:G.call(U,K,e,this.state.context,i)),await((q=(z=A(this,an).config).onSettled)==null?void 0:q.call(z,void 0,K,this.state.variables,this.state.context,this,i)),await((P=(M=this.options).onSettled)==null?void 0:P.call(M,void 0,K,e,this.state.context,i)),K}finally{zt(this,Or,cs).call(this,{type:"error",error:K})}}finally{A(this,an).runNext(this)}}},Zl=new WeakMap,Rr=new WeakMap,an=new WeakMap,Vs=new WeakMap,Or=new WeakSet,cs=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Le.batch(()=>{A(this,Rr).forEach(i=>{i.onMutationUpdate(e)}),A(this,an).notify({mutation:this,type:"updated",action:e})})},MC);function Pb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qk=(NC=class extends ca{constructor(e={}){super();yt(this,Gr);yt(this,ur);yt(this,Jl);this.config=e,ut(this,Gr,new Set),ut(this,ur,new Map),ut(this,Jl,0)}build(e,n,i){const a=new Xk({client:e,mutationCache:this,mutationId:++Ld(this,Jl)._,options:e.defaultMutationOptions(n),state:i});return this.add(a),a}add(e){A(this,Gr).add(e);const n=nc(e);if(typeof n=="string"){const i=A(this,ur).get(n);i?i.push(e):A(this,ur).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(A(this,Gr).delete(e)){const n=nc(e);if(typeof n=="string"){const i=A(this,ur).get(n);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&A(this,ur).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=nc(e);if(typeof n=="string"){const i=A(this,ur).get(n),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const n=nc(e);if(typeof n=="string"){const a=(i=A(this,ur).get(n))==null?void 0:i.find(l=>l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Le.batch(()=>{A(this,Gr).forEach(e=>{this.notify({type:"removed",mutation:e})}),A(this,Gr).clear(),A(this,ur).clear()})}getAll(){return Array.from(A(this,Gr))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Tb(n,i))}findAll(e={}){return this.getAll().filter(n=>Tb(e,n))}notify(e){Le.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Le.batch(()=>Promise.all(e.map(n=>n.continue().catch(tn))))}},Gr=new WeakMap,ur=new WeakMap,Jl=new WeakMap,NC);function nc(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Zk=(LC=class extends ca{constructor(e,n){super();yt(this,$r);yt(this,Yr);yt(this,Ni);yt(this,gn);yt(this,Kr);ut(this,Yr,e),this.setOptions(n),this.bindMethods(),zt(this,$r,jd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var i;const n=this.options;this.options=A(this,Yr).defaultMutationOptions(e),tc(this.options,n)||A(this,Yr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:A(this,gn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ms(n.mutationKey)!==ms(this.options.mutationKey)?this.reset():((i=A(this,gn))==null?void 0:i.state.status)==="pending"&&A(this,gn).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=A(this,gn))==null||e.removeObserver(this)}onMutationUpdate(e){zt(this,$r,jd).call(this),zt(this,$r,F0).call(this,e)}getCurrentResult(){return A(this,Ni)}reset(){var e;(e=A(this,gn))==null||e.removeObserver(this),ut(this,gn,void 0),zt(this,$r,jd).call(this),zt(this,$r,F0).call(this)}mutate(e,n){var i;return ut(this,Kr,n),(i=A(this,gn))==null||i.removeObserver(this),ut(this,gn,A(this,Yr).getMutationCache().build(A(this,Yr),this.options)),A(this,gn).addObserver(this),A(this,gn).execute(e)}},Yr=new WeakMap,Ni=new WeakMap,gn=new WeakMap,Kr=new WeakMap,$r=new WeakSet,jd=function(){var n;const e=((n=A(this,gn))==null?void 0:n.state)??Pb();ut(this,Ni,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},F0=function(e){Le.batch(()=>{var n,i,a,l,u,f,d,h;if(A(this,Kr)&&this.hasListeners()){const m=A(this,Ni).variables,y=A(this,Ni).context,b={client:A(this,Yr),meta:this.options.meta,mutationKey:this.options.mutationKey};(e==null?void 0:e.type)==="success"?((i=(n=A(this,Kr)).onSuccess)==null||i.call(n,e.data,m,y,b),(l=(a=A(this,Kr)).onSettled)==null||l.call(a,e.data,null,m,y,b)):(e==null?void 0:e.type)==="error"&&((f=(u=A(this,Kr)).onError)==null||f.call(u,e.error,m,y,b),(h=(d=A(this,Kr)).onSettled)==null||h.call(d,void 0,e.error,m,y,b))}this.listeners.forEach(m=>{m(A(this,Ni))})})},LC),Jk=(jC=class extends ca{constructor(e={}){super();yt(this,kr);this.config=e,ut(this,kr,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??Jd(a,n);let u=this.get(l);return u||(u=new Hk({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){A(this,kr).has(e.queryHash)||(A(this,kr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=A(this,kr).get(e.queryHash);n&&(e.destroy(),n===e&&A(this,kr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Le.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return A(this,kr).get(e)}getAll(){return[...A(this,kr).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Eb(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Eb(e,i)):n}notify(e){Le.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Le.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Le.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},kr=new WeakMap,jC),Wk=(zC=class{constructor(t={}){yt(this,ve);yt(this,Li);yt(this,ji);yt(this,to);yt(this,eo);yt(this,zi);yt(this,no);yt(this,ro);ut(this,ve,t.queryCache||new Jk),ut(this,Li,t.mutationCache||new Qk),ut(this,ji,t.defaultOptions||{}),ut(this,to,new Map),ut(this,eo,new Map),ut(this,zi,0)}mount(){Ld(this,zi)._++,A(this,zi)===1&&(ut(this,no,nh.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,ve).onFocus())})),ut(this,ro,ec.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,ve).onOnline())})))}unmount(){var t,e;Ld(this,zi)._--,A(this,zi)===0&&((t=A(this,no))==null||t.call(this),ut(this,no,void 0),(e=A(this,ro))==null||e.call(this),ut(this,ro,void 0))}isFetching(t){return A(this,ve).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return A(this,Li).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,ve).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=A(this,ve).build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(mi(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return A(this,ve).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),a=A(this,ve).get(i.queryHash),l=a==null?void 0:a.state.data,u=Lk(e,l);if(u!==void 0)return A(this,ve).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return Le.batch(()=>A(this,ve).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,ve).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=A(this,ve);Le.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=A(this,ve);return Le.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=Le.batch(()=>A(this,ve).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(tn).catch(tn)}invalidateQueries(t,e={}){return Le.batch(()=>(A(this,ve).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=Le.batch(()=>A(this,ve).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(tn)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(tn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=A(this,ve).build(this,e);return n.isStaleByTime(mi(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(tn).catch(tn)}fetchInfiniteQuery(t){return t.behavior=Ub(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(tn).catch(tn)}ensureInfiniteQueryData(t){return t.behavior=Ub(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ec.isOnline()?A(this,Li).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ve)}getMutationCache(){return A(this,Li)}getDefaultOptions(){return A(this,ji)}setDefaultOptions(t){ut(this,ji,t)}setQueryDefaults(t,e){A(this,to).set(ms(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...A(this,to).values()],n={};return e.forEach(i=>{Jo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){A(this,eo).set(ms(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...A(this,eo).values()],n={};return e.forEach(i=>{Jo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...A(this,ji).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Jd(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===eh&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...A(this,ji).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){A(this,ve).clear(),A(this,Li).clear()}},ve=new WeakMap,Li=new WeakMap,ji=new WeakMap,to=new WeakMap,eo=new WeakMap,zi=new WeakMap,no=new WeakMap,ro=new WeakMap,zC),qb=B.createContext(void 0),fa=t=>{const e=B.useContext(qb);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},tD=({client:t,children:e})=>(B.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),N.jsx(qb.Provider,{value:t,children:e})),Fb=B.createContext(!1),eD=()=>B.useContext(Fb);Fb.Provider;function nD(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rD=B.createContext(nD()),Vb=()=>B.useContext(rD),iD=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},sD=t=>{B.useEffect(()=>{t.clearReset()},[t])},aD=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||Ob(n,[t.error,i])),oD=t=>{if(t.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>n(i(...a)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},lD=(t,e)=>t.isLoading&&t.isFetching&&!e,uD=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Hb=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function cD(t,e,n){var y,b,v,w,E;const i=eD(),a=Vb(),l=fa(),u=l.defaultQueryOptions(t);(b=(y=l.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||b.call(y,u),u._optimisticResults=i?"isRestoring":"optimistic",oD(u),iD(u,a),sD(a);const f=!l.getQueryCache().get(u.queryHash),[d]=B.useState(()=>new e(l,u)),h=d.getOptimisticResult(u),m=!i&&t.subscribed!==!1;if(B.useSyncExternalStore(B.useCallback(C=>{const _=m?d.subscribe(Le.batchCalls(C)):tn;return d.updateResult(),_},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),B.useEffect(()=>{d.setOptions(u)},[u,d]),uD(u,h))throw Hb(u,d,a);if(aD({result:h,errorResetBoundary:a,throwOnError:u.throwOnError,query:l.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if((w=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||w.call(v,u,h),u.experimental_prefetchInRender&&!ps&&lD(h,i)){const C=f?Hb(u,d,a):(E=l.getQueryCache().get(u.queryHash))==null?void 0:E.promise;C==null||C.catch(tn).finally(()=>{d.updateResult()})}return u.notifyOnChangeProps?h:d.trackResult(h)}function rc(t,e){return cD(t,Gk)}function ic(t,e){const n=fa(),[i]=B.useState(()=>new Zk(n,t));B.useEffect(()=>{i.setOptions(t)},[i,t]);const a=B.useSyncExternalStore(B.useCallback(u=>i.subscribe(Le.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=B.useCallback((u,f)=>{i.mutate(u,f).catch(tn)},[i]);if(a.error&&Ob(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}class Gb{constructor(e){this.config=e}}function Yb(t,e){return function(){return t.apply(e,arguments)}}var Kb={};const{toString:fD}=Object.prototype,{getPrototypeOf:oh}=Object,{iterator:sc,toStringTag:$b}=Symbol,ac=(t=>e=>{const n=fD.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=t=>(t=t.toLowerCase(),e=>ac(e)===t),oc=t=>e=>typeof e===t,{isArray:da}=Array,ha=oc("undefined");function Wo(t){return t!==null&&!ha(t)&&t.constructor!==null&&!ha(t.constructor)&&un(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Xb=ir("ArrayBuffer");function dD(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Xb(t.buffer),e}const hD=oc("string"),un=oc("function"),Qb=oc("number"),tl=t=>t!==null&&typeof t=="object",pD=t=>t===!0||t===!1,lc=t=>{if(ac(t)!=="object")return!1;const e=oh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!($b in t)&&!(sc in t)},mD=t=>{if(!tl(t)||Wo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},gD=ir("Date"),yD=ir("File"),bD=ir("Blob"),vD=ir("FileList"),xD=t=>tl(t)&&un(t.pipe),wD=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||un(t.append)&&((e=ac(t))==="formdata"||e==="object"&&un(t.toString)&&t.toString()==="[object FormData]"))},SD=ir("URLSearchParams"),[ED,TD,CD,_D]=["ReadableStream","Request","Response","Headers"].map(ir),AD=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function el(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),da(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(Wo(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),u=l.length;let f;for(i=0;i<u;i++)f=l[i],e.call(null,t[f],f,t)}}function Zb(t,e){if(Wo(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i=n.length,a;for(;i-- >0;)if(a=n[i],e===a.toLowerCase())return a;return null}const gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Jb=t=>!ha(t)&&t!==gs;function lh(){const{caseless:t,skipUndefined:e}=Jb(this)&&this||{},n={},i=(a,l)=>{const u=t&&Zb(n,l)||l;lc(n[u])&&lc(a)?n[u]=lh(n[u],a):lc(a)?n[u]=lh({},a):da(a)?n[u]=a.slice():(!e||!ha(a))&&(n[u]=a)};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&el(arguments[a],i);return n}const RD=(t,e,n,{allOwnKeys:i}={})=>(el(e,(a,l)=>{n&&un(a)?t[l]=Yb(a,n):t[l]=a},{allOwnKeys:i}),t),OD=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),kD=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},DD=(t,e,n,i)=>{let a,l,u;const f={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;)u=a[l],(!i||i(u,t,e))&&!f[u]&&(e[u]=t[u],f[u]=!0);t=n!==!1&&oh(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},MD=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},ND=t=>{if(!t)return null;if(da(t))return t;let e=t.length;if(!Qb(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},LD=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&oh(Uint8Array)),jD=(t,e)=>{const i=(t&&t[sc]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},zD=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},BD=ir("HTMLFormElement"),UD=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),Wb=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ID=ir("RegExp"),tv=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};el(n,(a,l)=>{let u;(u=e(a,l,t))!==!1&&(i[l]=u||a)}),Object.defineProperties(t,i)},PD=t=>{tv(t,(e,n)=>{if(un(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(un(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qD=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return da(t)?i(t):i(String(t).split(e)),n},FD=()=>{},VD=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function HD(t){return!!(t&&un(t.append)&&t[$b]==="FormData"&&t[sc])}const GD=t=>{const e=new Array(10),n=(i,a)=>{if(tl(i)){if(e.indexOf(i)>=0)return;if(Wo(i))return i;if(!("toJSON"in i)){e[a]=i;const l=da(i)?[]:{};return el(i,(u,f)=>{const d=n(u,a+1);!ha(d)&&(l[f]=d)}),e[a]=void 0,l}}return i};return n(t,0)},YD=ir("AsyncFunction"),KD=t=>t&&(tl(t)||un(t))&&un(t.then)&&un(t.catch),ev=((t,e)=>t?setImmediate:e?((n,i)=>(gs.addEventListener("message",({source:a,data:l})=>{a===gs&&l===n&&i.length&&i.shift()()},!1),a=>{i.push(a),gs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",un(gs.postMessage)),$D=typeof queueMicrotask<"u"?queueMicrotask.bind(gs):typeof Kb<"u"&&Kb.nextTick||ev,X={isArray:da,isArrayBuffer:Xb,isBuffer:Wo,isFormData:wD,isArrayBufferView:dD,isString:hD,isNumber:Qb,isBoolean:pD,isObject:tl,isPlainObject:lc,isEmptyObject:mD,isReadableStream:ED,isRequest:TD,isResponse:CD,isHeaders:_D,isUndefined:ha,isDate:gD,isFile:yD,isBlob:bD,isRegExp:ID,isFunction:un,isStream:xD,isURLSearchParams:SD,isTypedArray:LD,isFileList:vD,forEach:el,merge:lh,extend:RD,trim:AD,stripBOM:OD,inherits:kD,toFlatObject:DD,kindOf:ac,kindOfTest:ir,endsWith:MD,toArray:ND,forEachEntry:jD,matchAll:zD,isHTMLForm:BD,hasOwnProperty:Wb,hasOwnProp:Wb,reduceDescriptors:tv,freezeMethods:PD,toObjectSet:qD,toCamelCase:UD,noop:FD,toFiniteNumber:VD,findKey:Zb,global:gs,isContextDefined:Jb,isSpecCompliantForm:HD,toJSONObject:GD,isAsyncFn:YD,isThenable:KD,setImmediate:ev,asap:$D,isIterable:t=>t!=null&&un(t[sc])};function kt(t,e,n,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status?a.status:null)}X.inherits(kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}});const nv=kt.prototype,rv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{rv[t]={value:t}}),Object.defineProperties(kt,rv),Object.defineProperty(nv,"isAxiosError",{value:!0}),kt.from=(t,e,n,i,a,l)=>{const u=Object.create(nv);X.toFlatObject(t,u,function(m){return m!==Error.prototype},h=>h!=="isAxiosError");const f=t&&t.message?t.message:"Error",d=e==null&&t?t.code:e;return kt.call(u,f,d,n,i,a),t&&u.cause==null&&Object.defineProperty(u,"cause",{value:t,configurable:!0}),u.name=t&&t.name||"Error",l&&Object.assign(u,l),u};const XD=null;function uh(t){return X.isPlainObject(t)||X.isArray(t)}function iv(t){return X.endsWith(t,"[]")?t.slice(0,-2):t}function sv(t,e,n){return t?t.concat(e).map(function(a,l){return a=iv(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function QD(t){return X.isArray(t)&&!t.some(uh)}const ZD=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function uc(t,e,n){if(!X.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,C){return!X.isUndefined(C[E])});const i=n.metaTokens,a=n.visitor||m,l=n.dots,u=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(e);if(!X.isFunction(a))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(X.isDate(w))return w.toISOString();if(X.isBoolean(w))return w.toString();if(!d&&X.isBlob(w))throw new kt("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(w)||X.isTypedArray(w)?d&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,E,C){let _=w;if(w&&!C&&typeof w=="object"){if(X.endsWith(E,"{}"))E=i?E:E.slice(0,-2),w=JSON.stringify(w);else if(X.isArray(w)&&QD(w)||(X.isFileList(w)||X.endsWith(E,"[]"))&&(_=X.toArray(w)))return E=iv(E),_.forEach(function(R,U){!(X.isUndefined(R)||R===null)&&e.append(u===!0?sv([E],U,l):u===null?E:E+"[]",h(R))}),!1}return uh(w)?!0:(e.append(sv(C,E,l),h(w)),!1)}const y=[],b=Object.assign(ZD,{defaultVisitor:m,convertValue:h,isVisitable:uh});function v(w,E){if(!X.isUndefined(w)){if(y.indexOf(w)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(w),X.forEach(w,function(_,L){(!(X.isUndefined(_)||_===null)&&a.call(e,_,X.isString(L)?L.trim():L,E,b))===!0&&v(_,E?E.concat(L):[L])}),y.pop()}}if(!X.isObject(t))throw new TypeError("data must be an object");return v(t),e}function av(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function ch(t,e){this._pairs=[],t&&uc(t,this,e)}const ov=ch.prototype;ov.append=function(e,n){this._pairs.push([e,n])},ov.toString=function(e){const n=e?function(i){return e.call(this,i,av)}:av;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function JD(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lv(t,e,n){if(!e)return t;const i=n&&n.encode||JD;X.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let l;if(a?l=a(e,n):l=X.isURLSearchParams(e)?e.toString():new ch(e,n).toString(i),l){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class uv{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,function(i){i!==null&&e(i)})}}const cv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},WD={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ch,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},fh=typeof window<"u"&&typeof document<"u",dh=typeof navigator=="object"&&navigator||void 0,tM=fh&&(!dh||["ReactNative","NativeScript","NS"].indexOf(dh.product)<0),eM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nM=fh&&window.location.href||"http://localhost",Qe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fh,hasStandardBrowserEnv:tM,hasStandardBrowserWebWorkerEnv:eM,navigator:dh,origin:nM},Symbol.toStringTag,{value:"Module"})),...WD};function rM(t,e){return uc(t,new Qe.classes.URLSearchParams,{visitor:function(n,i,a,l){return Qe.isNode&&X.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}function iM(t){return X.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function sM(t){const e={},n=Object.keys(t);let i;const a=n.length;let l;for(i=0;i<a;i++)l=n[i],e[l]=t[l];return e}function fv(t){function e(n,i,a,l){let u=n[l++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),d=l>=n.length;return u=!u&&X.isArray(a)?a.length:u,d?(X.hasOwnProp(a,u)?a[u]=[a[u],i]:a[u]=i,!f):((!a[u]||!X.isObject(a[u]))&&(a[u]=[]),e(n,i,a[u],l)&&X.isArray(a[u])&&(a[u]=sM(a[u])),!f)}if(X.isFormData(t)&&X.isFunction(t.entries)){const n={};return X.forEachEntry(t,(i,a)=>{e(iM(i),a,n,0)}),n}return null}function aM(t,e,n){if(X.isString(t))try{return(e||JSON.parse)(t),X.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const nl={transitional:cv,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=X.isObject(e);if(l&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return a?JSON.stringify(fv(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let f;if(l){if(i.indexOf("application/x-www-form-urlencoded")>-1)return rM(e,this.formSerializer).toString();if((f=X.isFileList(e))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return uc(f?{"files[]":e}:e,d&&new d,this.formSerializer)}}return l||a?(n.setContentType("application/json",!1),aM(e)):e}],transformResponse:[function(e){const n=this.transitional||nl.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(i&&!this.responseType||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(f){if(u)throw f.name==="SyntaxError"?kt.from(f,kt.ERR_BAD_RESPONSE,this,null,this.response):f}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],t=>{nl.headers[t]={}});const oM=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lM=t=>{const e={};let n,i,a;return t&&t.split(`
`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim(),!(!n||e[n]&&oM[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},dv=Symbol("internals");function rl(t){return t&&String(t).trim().toLowerCase()}function cc(t){return t===!1||t==null?t:X.isArray(t)?t.map(cc):String(t)}function uM(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const cM=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hh(t,e,n,i,a){if(X.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!X.isString(e)){if(X.isString(i))return e.indexOf(i)!==-1;if(X.isRegExp(i))return i.test(e)}}function fM(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function dM(t,e){const n=X.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(a,l,u){return this[i].call(this,e,a,l,u)},configurable:!0})})}let cn=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(f,d,h){const m=rl(d);if(!m)throw new Error("header name must be a non-empty string");const y=X.findKey(a,m);(!y||a[y]===void 0||h===!0||h===void 0&&a[y]!==!1)&&(a[y||d]=cc(f))}const u=(f,d)=>X.forEach(f,(h,m)=>l(h,m,d));if(X.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(X.isString(e)&&(e=e.trim())&&!cM(e))u(lM(e),n);else if(X.isObject(e)&&X.isIterable(e)){let f={},d,h;for(const m of e){if(!X.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[h=m[0]]=(d=f[h])?X.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}u(f,n)}else e!=null&&l(n,e,i);return this}get(e,n){if(e=rl(e),e){const i=X.findKey(this,e);if(i){const a=this[i];if(!n)return a;if(n===!0)return uM(a);if(X.isFunction(n))return n.call(this,a,i);if(X.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=rl(e),e){const i=X.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||hh(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(u){if(u=rl(u),u){const f=X.findKey(i,u);f&&(!n||hh(i,i[f],f,n))&&(delete i[f],a=!0)}}return X.isArray(e)?e.forEach(l):l(e),a}clear(e){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const l=n[i];(!e||hh(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return X.forEach(this,(a,l)=>{const u=X.findKey(i,l);if(u){n[u]=cc(a),delete n[l];return}const f=e?fM(l):String(l).trim();f!==l&&delete n[l],n[f]=cc(a),i[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return X.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&X.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[dv]=this[dv]={accessors:{}}).accessors,a=this.prototype;function l(u){const f=rl(u);i[f]||(dM(a,u),i[f]=!0)}return X.isArray(e)?e.forEach(l):l(e),this}};cn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(cn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),X.freezeMethods(cn);function ph(t,e){const n=this||nl,i=e||n,a=cn.from(i.headers);let l=i.data;return X.forEach(t,function(f){l=f.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function hv(t){return!!(t&&t.__CANCEL__)}function pa(t,e,n){kt.call(this,t??"canceled",kt.ERR_CANCELED,e,n),this.name="CanceledError"}X.inherits(pa,kt,{__CANCEL__:!0});function pv(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new kt("Request failed with status code "+n.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function hM(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pM(t,e){t=t||10;const n=new Array(t),i=new Array(t);let a=0,l=0,u;return e=e!==void 0?e:1e3,function(d){const h=Date.now(),m=i[l];u||(u=h),n[a]=d,i[a]=h;let y=l,b=0;for(;y!==a;)b+=n[y++],y=y%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),h-u<e)return;const v=m&&h-m;return v?Math.round(b*1e3/v):void 0}}function mM(t,e){let n=0,i=1e3/e,a,l;const u=(h,m=Date.now())=>{n=m,a=null,l&&(clearTimeout(l),l=null),t(...h)};return[(...h)=>{const m=Date.now(),y=m-n;y>=i?u(h,m):(a=h,l||(l=setTimeout(()=>{l=null,u(a)},i-y)))},()=>a&&u(a)]}const fc=(t,e,n=3)=>{let i=0;const a=pM(50,250);return mM(l=>{const u=l.loaded,f=l.lengthComputable?l.total:void 0,d=u-i,h=a(d),m=u<=f;i=u;const y={loaded:u,total:f,progress:f?u/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&m?(f-u)/h:void 0,event:l,lengthComputable:f!=null,[e?"download":"upload"]:!0};t(y)},n)},mv=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},gv=t=>(...e)=>X.asap(()=>t(...e)),gM=Qe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Qe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,yM=Qe.hasStandardBrowserEnv?{write(t,e,n,i,a,l,u){if(typeof document>"u")return;const f=[`${t}=${encodeURIComponent(e)}`];X.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),X.isString(i)&&f.push(`path=${i}`),X.isString(a)&&f.push(`domain=${a}`),l===!0&&f.push("secure"),X.isString(u)&&f.push(`SameSite=${u}`),document.cookie=f.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function bM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function vM(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function yv(t,e,n){let i=!bM(e);return t&&(i||n==!1)?vM(t,e):e}const bv=t=>t instanceof cn?{...t}:t;function ys(t,e){e=e||{};const n={};function i(h,m,y,b){return X.isPlainObject(h)&&X.isPlainObject(m)?X.merge.call({caseless:b},h,m):X.isPlainObject(m)?X.merge({},m):X.isArray(m)?m.slice():m}function a(h,m,y,b){if(X.isUndefined(m)){if(!X.isUndefined(h))return i(void 0,h,y,b)}else return i(h,m,y,b)}function l(h,m){if(!X.isUndefined(m))return i(void 0,m)}function u(h,m){if(X.isUndefined(m)){if(!X.isUndefined(h))return i(void 0,h)}else return i(void 0,m)}function f(h,m,y){if(y in e)return i(h,m);if(y in t)return i(void 0,h)}const d={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,m,y)=>a(bv(h),bv(m),y,!0)};return X.forEach(Object.keys({...t,...e}),function(m){const y=d[m]||a,b=y(t[m],e[m],m);X.isUndefined(b)&&y!==f||(n[m]=b)}),n}const vv=t=>{const e=ys({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:l,headers:u,auth:f}=e;if(e.headers=u=cn.from(u),e.url=lv(yv(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),X.isFormData(n)){if(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(X.isFunction(n.getHeaders)){const d=n.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([m,y])=>{h.includes(m.toLowerCase())&&u.set(m,y)})}}if(Qe.hasStandardBrowserEnv&&(i&&X.isFunction(i)&&(i=i(e)),i||i!==!1&&gM(e.url))){const d=a&&l&&yM.read(l);d&&u.set(a,d)}return e},xM=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,i){const a=vv(t);let l=a.data;const u=cn.from(a.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=a,m,y,b,v,w;function E(){v&&v(),w&&w(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function _(){if(!C)return;const R=cn.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),G={data:!f||f==="text"||f==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:R,config:t,request:C};pv(function(q){n(q),E()},function(q){i(q),E()},G),C=null}"onloadend"in C?C.onloadend=_:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(_)},C.onabort=function(){C&&(i(new kt("Request aborted",kt.ECONNABORTED,t,C)),C=null)},C.onerror=function(U){const G=U&&U.message?U.message:"Network Error",z=new kt(G,kt.ERR_NETWORK,t,C);z.event=U||null,i(z),C=null},C.ontimeout=function(){let U=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const G=a.transitional||cv;a.timeoutErrorMessage&&(U=a.timeoutErrorMessage),i(new kt(U,G.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,t,C)),C=null},l===void 0&&u.setContentType(null),"setRequestHeader"in C&&X.forEach(u.toJSON(),function(U,G){C.setRequestHeader(G,U)}),X.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),f&&f!=="json"&&(C.responseType=a.responseType),h&&([b,w]=fc(h,!0),C.addEventListener("progress",b)),d&&C.upload&&([y,v]=fc(d),C.upload.addEventListener("progress",y),C.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(m=R=>{C&&(i(!R||R.type?new pa(null,t,C):R),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const L=hM(a.url);if(L&&Qe.protocols.indexOf(L)===-1){i(new kt("Unsupported protocol "+L+":",kt.ERR_BAD_REQUEST,t));return}C.send(l||null)})},wM=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,a;const l=function(h){if(!a){a=!0,f();const m=h instanceof Error?h:this.reason;i.abort(m instanceof kt?m:new pa(m instanceof Error?m.message:m))}};let u=e&&setTimeout(()=>{u=null,l(new kt(`timeout ${e} of ms exceeded`,kt.ETIMEDOUT))},e);const f=()=>{t&&(u&&clearTimeout(u),u=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(l):h.removeEventListener("abort",l)}),t=null)};t.forEach(h=>h.addEventListener("abort",l));const{signal:d}=i;return d.unsubscribe=()=>X.asap(f),d}},SM=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,a;for(;i<n;)a=i+e,yield t.slice(i,a),i=a},EM=async function*(t,e){for await(const n of TM(t))yield*SM(n,e)},TM=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},xv=(t,e,n,i)=>{const a=EM(t,e);let l=0,u,f=d=>{u||(u=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:h,value:m}=await a.next();if(h){f(),d.close();return}let y=m.byteLength;if(n){let b=l+=y;n(b)}d.enqueue(new Uint8Array(m))}catch(h){throw f(h),h}},cancel(d){return f(d),a.return()}},{highWaterMark:2})},wv=64*1024,{isFunction:dc}=X,CM=(({Request:t,Response:e})=>({Request:t,Response:e}))(X.global),{ReadableStream:Sv,TextEncoder:Ev}=X.global,Tv=(t,...e)=>{try{return!!t(...e)}catch{return!1}},_M=t=>{t=X.merge.call({skipUndefined:!0},CM,t);const{fetch:e,Request:n,Response:i}=t,a=e?dc(e):typeof fetch=="function",l=dc(n),u=dc(i);if(!a)return!1;const f=a&&dc(Sv),d=a&&(typeof Ev=="function"?(w=>E=>w.encode(E))(new Ev):async w=>new Uint8Array(await new n(w).arrayBuffer())),h=l&&f&&Tv(()=>{let w=!1;const E=new n(Qe.origin,{body:new Sv,method:"POST",get duplex(){return w=!0,"half"}}).headers.has("Content-Type");return w&&!E}),m=u&&f&&Tv(()=>X.isReadableStream(new i("").body)),y={stream:m&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!y[w]&&(y[w]=(E,C)=>{let _=E&&E[w];if(_)return _.call(E);throw new kt(`Response type '${w}' is not supported`,kt.ERR_NOT_SUPPORT,C)})});const b=async w=>{if(w==null)return 0;if(X.isBlob(w))return w.size;if(X.isSpecCompliantForm(w))return(await new n(Qe.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(X.isArrayBufferView(w)||X.isArrayBuffer(w))return w.byteLength;if(X.isURLSearchParams(w)&&(w=w+""),X.isString(w))return(await d(w)).byteLength},v=async(w,E)=>{const C=X.toFiniteNumber(w.getContentLength());return C??b(E)};return async w=>{let{url:E,method:C,data:_,signal:L,cancelToken:R,timeout:U,onDownloadProgress:G,onUploadProgress:z,responseType:q,headers:M,withCredentials:P="same-origin",fetchOptions:K}=vv(w),nt=e||fetch;q=q?(q+"").toLowerCase():"text";let st=wM([L,R&&R.toAbortSignal()],U),ft=null;const at=st&&st.unsubscribe&&(()=>{st.unsubscribe()});let it;try{if(z&&h&&C!=="get"&&C!=="head"&&(it=await v(M,_))!==0){let xt=new n(E,{method:"POST",body:_,duplex:"half"}),D;if(X.isFormData(_)&&(D=xt.headers.get("content-type"))&&M.setContentType(D),xt.body){const[T,J]=mv(it,fc(gv(z)));_=xv(xt.body,wv,T,J)}}X.isString(P)||(P=P?"include":"omit");const Q=l&&"credentials"in n.prototype,Y={...K,signal:st,method:C.toUpperCase(),headers:M.normalize().toJSON(),body:_,duplex:"half",credentials:Q?P:void 0};ft=l&&new n(E,Y);let F=await(l?nt(ft,K):nt(E,Y));const gt=m&&(q==="stream"||q==="response");if(m&&(G||gt&&at)){const xt={};["status","statusText","headers"].forEach(ot=>{xt[ot]=F[ot]});const D=X.toFiniteNumber(F.headers.get("content-length")),[T,J]=G&&mv(D,fc(gv(G),!0))||[];F=new i(xv(F.body,wv,T,()=>{J&&J(),at&&at()}),xt)}q=q||"text";let O=await y[X.findKey(y,q)||"text"](F,w);return!gt&&at&&at(),await new Promise((xt,D)=>{pv(xt,D,{data:O,headers:cn.from(F.headers),status:F.status,statusText:F.statusText,config:w,request:ft})})}catch(Q){throw at&&at(),Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)?Object.assign(new kt("Network Error",kt.ERR_NETWORK,w,ft),{cause:Q.cause||Q}):kt.from(Q,Q&&Q.code,w,ft)}}},AM=new Map,Cv=t=>{let e=t&&t.env||{};const{fetch:n,Request:i,Response:a}=e,l=[i,a,n];let u=l.length,f=u,d,h,m=AM;for(;f--;)d=l[f],h=m.get(d),h===void 0&&m.set(d,h=f?new Map:_M(e)),m=h;return h};Cv();const mh={http:XD,xhr:xM,fetch:{get:Cv}};X.forEach(mh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const _v=t=>`- ${t}`,RM=t=>X.isFunction(t)||t===null||t===!1;function OM(t,e){t=X.isArray(t)?t:[t];const{length:n}=t;let i,a;const l={};for(let u=0;u<n;u++){i=t[u];let f;if(a=i,!RM(i)&&(a=mh[(f=String(i)).toLowerCase()],a===void 0))throw new kt(`Unknown adapter '${f}'`);if(a&&(X.isFunction(a)||(a=a.get(e))))break;l[f||"#"+u]=a}if(!a){const u=Object.entries(l).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=n?u.length>1?`since :
`+u.map(_v).join(`
`):" "+_v(u[0]):"as no adapter specified";throw new kt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a}const Av={getAdapter:OM,adapters:mh};function gh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new pa(null,t)}function Rv(t){return gh(t),t.headers=cn.from(t.headers),t.data=ph.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Av.getAdapter(t.adapter||nl.adapter,t)(t).then(function(i){return gh(t),i.data=ph.call(t,t.transformResponse,i),i.headers=cn.from(i.headers),i},function(i){return hv(i)||(gh(t),i&&i.response&&(i.response.data=ph.call(t,t.transformResponse,i.response),i.response.headers=cn.from(i.response.headers))),Promise.reject(i)})}const Ov="1.13.2",hc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hc[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const kv={};hc.transitional=function(e,n,i){function a(l,u){return"[Axios v"+Ov+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,f)=>{if(e===!1)throw new kt(a(u," has been removed"+(n?" in "+n:"")),kt.ERR_DEPRECATED);return n&&!kv[u]&&(kv[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,u,f):!0}},hc.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function kM(t,e,n){if(typeof t!="object")throw new kt("options must be an object",kt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],u=e[l];if(u){const f=t[l],d=f===void 0||u(f,l,t);if(d!==!0)throw new kt("option "+l+" must be "+d,kt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new kt("Unknown option "+l,kt.ERR_BAD_OPTION)}}const pc={assertOptions:kM,validators:hc},vr=pc.validators;let bs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new uv,response:new uv}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?l&&!String(i.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+l):i.stack=l}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ys(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:l}=n;i!==void 0&&pc.assertOptions(i,{silentJSONParsing:vr.transitional(vr.boolean),forcedJSONParsing:vr.transitional(vr.boolean),clarifyTimeoutError:vr.transitional(vr.boolean)},!1),a!=null&&(X.isFunction(a)?n.paramsSerializer={serialize:a}:pc.assertOptions(a,{encode:vr.function,serialize:vr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),pc.assertOptions(n,{baseUrl:vr.spelling("baseURL"),withXsrfToken:vr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&X.merge(l.common,l[n.method]);l&&X.forEach(["delete","get","head","post","put","patch","common"],w=>{delete l[w]}),n.headers=cn.concat(u,l);const f=[];let d=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(d=d&&E.synchronous,f.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let m,y=0,b;if(!d){const w=[Rv.bind(this),void 0];for(w.unshift(...f),w.push(...h),b=w.length,m=Promise.resolve(n);y<b;)m=m.then(w[y++],w[y++]);return m}b=f.length;let v=n;for(;y<b;){const w=f[y++],E=f[y++];try{v=w(v)}catch(C){E.call(this,C);break}}try{m=Rv.call(this,v)}catch(w){return Promise.reject(w)}for(y=0,b=h.length;y<b;)m=m.then(h[y++],h[y++]);return m}getUri(e){e=ys(this.defaults,e);const n=yv(e.baseURL,e.url,e.allowAbsoluteUrls);return lv(n,e.params,e.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(e){bs.prototype[e]=function(n,i){return this.request(ys(i||{},{method:e,url:n,data:(i||{}).data}))}}),X.forEach(["post","put","patch"],function(e){function n(i){return function(l,u,f){return this.request(ys(f||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}bs.prototype[e]=n(),bs.prototype[e+"Form"]=n(!0)});let DM=class jO{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const u=new Promise(f=>{i.subscribe(f),l=f}).then(a);return u.cancel=function(){i.unsubscribe(l)},u},e(function(l,u,f){i.reason||(i.reason=new pa(l,u,f),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new jO(function(a){e=a}),cancel:e}}};function MM(t){return function(n){return t.apply(null,n)}}function NM(t){return X.isObject(t)&&t.isAxiosError===!0}const yh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yh).forEach(([t,e])=>{yh[e]=t});function Dv(t){const e=new bs(t),n=Yb(bs.prototype.request,e);return X.extend(n,bs.prototype,e,{allOwnKeys:!0}),X.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return Dv(ys(t,a))},n}const me=Dv(nl);me.Axios=bs,me.CanceledError=pa,me.CancelToken=DM,me.isCancel=hv,me.VERSION=Ov,me.toFormData=uc,me.AxiosError=kt,me.Cancel=me.CanceledError,me.all=function(e){return Promise.all(e)},me.spread=MM,me.isAxiosError=NM,me.mergeConfig=ys,me.AxiosHeaders=cn,me.formToJSON=t=>fv(X.isHTMLForm(t)?new FormData(t):t),me.getAdapter=Av.getAdapter,me.HttpStatusCode=yh,me.default=me;const{Axios:T7,AxiosError:C7,CanceledError:_7,isCancel:A7,CancelToken:R7,VERSION:O7,all:k7,Cancel:D7,isAxiosError:M7,spread:N7,toFormData:L7,AxiosHeaders:j7,HttpStatusCode:z7,formToJSON:B7,getAdapter:U7,mergeConfig:I7}=me;var bh,Mv;function LM(){return Mv||(Mv=1,bh=typeof self=="object"?self.FormData:window.FormData),bh}var jM=LM();const Nv=Ut(jM);class il extends Error{constructor(n,i,a){super(a);Wt(this,"url");Wt(this,"status");Wt(this,"statusText");Wt(this,"body");Wt(this,"request");this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=n}}class zM extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class BM{constructor(e){yt(this,Dr);yt(this,Mr);yt(this,cr);yt(this,Bi);yt(this,Hs);yt(this,io);yt(this,Ui);ut(this,Dr,!1),ut(this,Mr,!1),ut(this,cr,!1),ut(this,Bi,[]),ut(this,Hs,new Promise((n,i)=>{ut(this,io,n),ut(this,Ui,i);const a=f=>{A(this,Dr)||A(this,Mr)||A(this,cr)||(ut(this,Dr,!0),A(this,io)&&A(this,io).call(this,f))},l=f=>{A(this,Dr)||A(this,Mr)||A(this,cr)||(ut(this,Mr,!0),A(this,Ui)&&A(this,Ui).call(this,f))},u=f=>{A(this,Dr)||A(this,Mr)||A(this,cr)||A(this,Bi).push(f)};return Object.defineProperty(u,"isResolved",{get:()=>A(this,Dr)}),Object.defineProperty(u,"isRejected",{get:()=>A(this,Mr)}),Object.defineProperty(u,"isCancelled",{get:()=>A(this,cr)}),e(a,l,u)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,n){return A(this,Hs).then(e,n)}catch(e){return A(this,Hs).catch(e)}finally(e){return A(this,Hs).finally(e)}cancel(){if(!(A(this,Dr)||A(this,Mr)||A(this,cr))){if(ut(this,cr,!0),A(this,Bi).length)try{for(const e of A(this,Bi))e()}catch(e){console.warn("Cancellation threw an error",e);return}A(this,Bi).length=0,A(this,Ui)&&A(this,Ui).call(this,new zM("Request aborted"))}}get isCancelled(){return A(this,cr)}}Dr=new WeakMap,Mr=new WeakMap,cr=new WeakMap,Bi=new WeakMap,Hs=new WeakMap,io=new WeakMap,Ui=new WeakMap;const vh=t=>t!=null,mc=t=>typeof t=="string",xh=t=>mc(t)&&t!=="",Lv=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),UM=t=>t instanceof Nv,IM=t=>t>=200&&t<300,PM=t=>{try{return btoa(t)}catch{return Buffer.from(t).toString("base64")}},qM=t=>{const e=[],n=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},i=(a,l)=>{vh(l)&&(Array.isArray(l)?l.forEach(u=>{i(a,u)}):typeof l=="object"?Object.entries(l).forEach(([u,f])=>{i(`${a}[${u}]`,f)}):n(a,l))};return Object.entries(t).forEach(([a,l])=>{i(a,l)}),e.length>0?`?${e.join("&")}`:""},FM=(t,e)=>{const n=t.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,u)=>{var f;return(f=e.path)!=null&&f.hasOwnProperty(u)?n(String(e.path[u])):l}),a=`${t.BASE}${i}`;return e.query?`${a}${qM(e.query)}`:a},VM=t=>{if(t.formData){const e=new Nv,n=(i,a)=>{mc(a)||Lv(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(t.formData).filter(([i,a])=>vh(a)).forEach(([i,a])=>{Array.isArray(a)?a.forEach(l=>n(i,l)):n(i,a)}),e}},gc=async(t,e)=>typeof e=="function"?e(t):e,HM=async(t,e,n)=>{const[i,a,l,u]=await Promise.all([gc(e,t.TOKEN),gc(e,t.USERNAME),gc(e,t.PASSWORD),gc(e,t.HEADERS)]),f=typeof(n==null?void 0:n.getHeaders)=="function"&&(n==null?void 0:n.getHeaders())||{},d=Object.entries({Accept:"application/json",...u,...e.headers,...f}).filter(([h,m])=>vh(m)).reduce((h,[m,y])=>({...h,[m]:String(y)}),{});if(xh(i)&&(d.Authorization=`Bearer ${i}`),xh(a)&&xh(l)){const h=PM(`${a}:${l}`);d.Authorization=`Basic ${h}`}return e.body!==void 0&&(e.mediaType?d["Content-Type"]=e.mediaType:Lv(e.body)?d["Content-Type"]=e.body.type||"application/octet-stream":mc(e.body)?d["Content-Type"]="text/plain":UM(e.body)||(d["Content-Type"]="application/json")),d},GM=t=>{if(t.body)return t.body},YM=async(t,e,n,i,a,l,u,f)=>{const d=me.CancelToken.source(),h={url:n,headers:l,data:i??a,method:e.method,withCredentials:t.WITH_CREDENTIALS,withXSRFToken:t.CREDENTIALS==="include"?t.WITH_CREDENTIALS:!1,cancelToken:d.token};u(()=>d.cancel("The user aborted a request."));try{return await f.request(h)}catch(m){const y=m;if(y.response)return y.response;throw m}},KM=(t,e)=>{if(e){const n=t.headers[e];if(mc(n))return n}},$M=t=>{if(t.status!==204)return t.data},XM=(t,e)=>{const i={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...t.errors}[e.status];if(i)throw new il(t,e,i);if(!e.ok){const a=e.status??"unknown",l=e.statusText??"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new il(t,e,`Generic Error: status: ${a}; status text: ${l}; body: ${u}`)}},jv=(t,e,n=me)=>new BM(async(i,a,l)=>{try{const u=FM(t,e),f=VM(e),d=GM(e),h=await HM(t,e,f);if(!l.isCancelled){const m=await YM(t,e,u,d,f,h,l,n),y=$M(m),b=KM(m,e.responseHeader),v={url:u,ok:IM(m.status),status:m.status,statusText:m.statusText,body:b??y};XM(e,v),i(v.body)}}catch(u){a(u)}});class QM extends Gb{constructor(e){super(e)}request(e){return jv(this.config,e)}}class ZM{constructor(e){this.httpRequest=e}adminChatSessionsControllerGetById({id:e}){return this.httpRequest.request({method:"GET",url:"/chat-sessions/admin/{id}",path:{id:e}})}adminChatSessionsControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/chat-sessions/admin/{id}",path:{id:e},errors:{403:"Access denied",404:"Chat session not found"}})}adminChatSessionsControllerGetByTenantId({id:e,page:n=1,limit:i=10}){return this.httpRequest.request({method:"GET",url:"/chat-sessions/admin/byTenantId/{id}",path:{id:e},query:{page:n,limit:i}})}adminChatSessionsControllerGenerateShareLink({id:e}){return this.httpRequest.request({method:"POST",url:"/chat-sessions/admin/{id}/share",path:{id:e}})}adminChatSessionsControllerRevokeShareLink({id:e}){return this.httpRequest.request({method:"DELETE",url:"/chat-sessions/admin/{id}/share",path:{id:e}})}}class JM{constructor(e){this.httpRequest=e}adminFlowDefinitionsControllerCreate({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/flow-definitions",path:{tenantId:e},body:n,mediaType:"application/json",errors:{409:"Code name already exists"}})}adminFlowDefinitionsControllerFindAll({tenantId:e}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/flow-definitions",path:{tenantId:e}})}adminFlowDefinitionsControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-definitions/{id}",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-definitions/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Flow definition not found",409:"Code name already exists"}})}adminFlowDefinitionsControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-definitions/{id}",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerPublish({id:e}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/publish",path:{id:e},errors:{404:"Flow definition not found",422:"Flow validation failed"}})}adminFlowDefinitionsControllerUnpublish({id:e}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/unpublish",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerArchive({id:e}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/archive",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerDuplicateToTenant({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/duplicate",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Flow definition not found",409:"Code name already exists on target tenant"}})}adminFlowDefinitionsControllerCreateNode({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/nodes",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Flow definition not found",409:"Conflict (e.g., duplicate START node)"}})}adminFlowDefinitionsControllerFindNodes({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-definitions/{id}/nodes",path:{id:e}})}adminFlowDefinitionsControllerFindNode({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-nodes/{id}",path:{id:e},errors:{404:"Node not found"}})}adminFlowDefinitionsControllerUpdateNode({id:e,requestBody:n}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-nodes/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Node not found"}})}adminFlowDefinitionsControllerRemoveNode({id:e}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-nodes/{id}",path:{id:e},errors:{404:"Node not found"}})}adminFlowDefinitionsControllerCreateTransition({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-nodes/{id}/transitions",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid transition (e.g., from END node)",404:"Node not found"}})}adminFlowDefinitionsControllerFindTransitions({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/{id}/transitions",path:{id:e}})}adminFlowDefinitionsControllerFindTransition({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-transitions/{id}",path:{id:e},errors:{404:"Transition not found"}})}adminFlowDefinitionsControllerUpdateTransition({id:e,requestBody:n}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-transitions/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid update (e.g., to START node)",404:"Transition not found"}})}adminFlowDefinitionsControllerRemoveTransition({id:e}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-transitions/{id}",path:{id:e},errors:{404:"Transition not found"}})}adminFlowDefinitionsControllerCreateCategory({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-nodes/{id}/categories",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid (e.g., node is not a CLASSIFY type)",404:"Node not found"}})}adminFlowDefinitionsControllerUpdateCategory({id:e,nodeId:n,requestBody:i}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-nodes/{nodeId}/categories/{id}",path:{id:e,nodeId:n},body:i,mediaType:"application/json",errors:{404:"Category not found"}})}adminFlowDefinitionsControllerRemoveCategory({id:e,nodeId:n}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-nodes/{nodeId}/categories/{id}",path:{id:e,nodeId:n},errors:{404:"Category not found"}})}adminFlowDefinitionsControllerCreateCondition({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-nodes/{id}/conditions",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid (e.g., node is not an IFELSE type)",404:"Node not found"}})}adminFlowDefinitionsControllerUpdateCondition({id:e,nodeId:n,requestBody:i}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-nodes/{nodeId}/conditions/{id}",path:{id:e,nodeId:n},body:i,mediaType:"application/json",errors:{404:"Condition not found"}})}adminFlowDefinitionsControllerRemoveCondition({id:e,nodeId:n}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-nodes/{nodeId}/conditions/{id}",path:{id:e,nodeId:n},errors:{404:"Condition not found"}})}}class WM{constructor(e){this.httpRequest=e}adminTenantsControllerSetProductAgent({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/admin/tenants/{id}/product-agent",path:{id:e},body:n,mediaType:"application/json"})}adminTenantsControllerGetProductAgent({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{id}/product-agent",path:{id:e},errors:{404:"Tenant not found or no product agent set."}})}adminTenantsControllerUpdateTierSettings({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/admin/tenants/{id}/tier-settings",path:{id:e},body:n,mediaType:"application/json"})}adminTenantsControllerGetTierLimits({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{id}/tier-limits",path:{id:e}})}}class tN{constructor(e){this.httpRequest=e}agentsControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/agents/{id}",path:{id:e},errors:{401:"Unauthorized.",404:"Agent not found."}})}agentsControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/agents/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized.",404:"Agent not found."}})}agentsControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/agents/{id}",path:{id:e},errors:{401:"Unauthorized.",404:"Agent not found."}})}}class eN{constructor(e){this.httpRequest=e}agentTemplatesControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/agent-templates",body:e,mediaType:"application/json"})}agentTemplatesControllerFindAll(){return this.httpRequest.request({method:"GET",url:"/agent-templates"})}agentTemplatesControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/agent-templates/{id}",path:{id:e},body:n,mediaType:"application/json"})}agentTemplatesControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/agent-templates/{id}/private",path:{id:e}})}agentTemplatesControllerGetAgentTemplateTools({id:e}){return this.httpRequest.request({method:"GET",url:"/agent-templates/{id}/tools",path:{id:e}})}agentTemplatesControllerAddTool({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/agent-templates/{id}/tools",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized."}})}agentTemplatesControllerRemoveTool({id:e,requestBody:n}){return this.httpRequest.request({method:"DELETE",url:"/agent-templates/{id}/tools",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized."}})}}class nN{constructor(e){this.httpRequest=e}agentToolsControllerGetAvailableTools(){return this.httpRequest.request({method:"GET",url:"/agent-tools"})}}class rN{constructor(e){this.httpRequest=e}appControllerGetHello(){return this.httpRequest.request({method:"GET",url:"/"})}}class iN{constructor(e){this.httpRequest=e}authControllerLogin({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/email/login",body:e,mediaType:"application/json"})}authControllerRefresh(){return this.httpRequest.request({method:"POST",url:"/auth/refresh"})}authControllerLogout(){return this.httpRequest.request({method:"POST",url:"/auth/logout"})}authControllerMe(){return this.httpRequest.request({method:"GET",url:"/auth/me"})}authControllerUpdateMe({requestBody:e}){return this.httpRequest.request({method:"PUT",url:"/auth/me",body:e,mediaType:"application/json"})}authControllerForgotPassword({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/forgot/password",body:e,mediaType:"application/json"})}authControllerResetPassword({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/reset/password",body:e,mediaType:"application/json"})}authControllerRegisterFromInvitation({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/register-from-invitation",body:e,mediaType:"application/json",errors:{400:"Bad request - invitation already accepted or invalid data",404:"Tenant invitation not found",409:"User with this email already exists"}})}}class sN{constructor(e){this.httpRequest=e}chatSessionsControllerGetByShareToken({shareToken:e}){return this.httpRequest.request({method:"GET",url:"/chat-sessions/shared/{shareToken}",path:{shareToken:e}})}chatSessionsControllerGetAiResponse({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/chat-sessions",body:e,mediaType:"application/json"})}chatSessionsControllerInit({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/chat-sessions/init",body:e,mediaType:"application/json"})}chatSessionsControllerGetBySession(){return this.httpRequest.request({method:"GET",url:"/chat-sessions/current"})}chatSessionsControllerPutCurrent({requestBody:e}){return this.httpRequest.request({method:"PUT",url:"/chat-sessions/current",body:e,mediaType:"application/json"})}chatSessionsControllerResolveFromMessageTemplates({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/chat-sessions/resolveFromMessageTemplates",body:e,mediaType:"application/json"})}chatSessionsControllerGetUnusedMessageTemplates(){return this.httpRequest.request({method:"GET",url:"/chat-sessions/unusedMessageTemplates"})}}class aN{constructor(e){this.httpRequest=e}externalApiControllerGetUnprocessedLeadsV1({includeShareLinks:e=!1}){return this.httpRequest.request({method:"GET",url:"/v1/leads/unprocessed/tenant/{id}",query:{includeShareLinks:e}})}externalApiControllerMarkLeadAsProcessedV1({id:e}){return this.httpRequest.request({method:"POST",url:"/v1/leads/{id}/markAsProcessed",path:{id:e},errors:{403:"Access to this lead denied.",404:"Lead not found."}})}}class oN{constructor(e){this.httpRequest=e}fileControllerUpload(){return this.httpRequest.request({method:"POST",url:"/files/upload"})}fileControllerGetMetadata({id:e}){return this.httpRequest.request({method:"GET",url:"/files/{id}/metadata",path:{id:e}})}fileControllerDownloadFile({id:e}){return this.httpRequest.request({method:"GET",url:"/files/{id}/download",path:{id:e}})}}class lN{constructor(e){this.httpRequest=e}flowToolsControllerListTools(){return this.httpRequest.request({method:"GET",url:"/admin/flow-tools"})}}class uN{constructor(e){this.httpRequest=e}documentControllerUploadText({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/documents/upload-text",path:{tenantId:e},body:n,mediaType:"application/json"})}documentControllerUploadPdf({tenantId:e,formData:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/documents/upload-pdf",path:{tenantId:e},formData:n,mediaType:"multipart/form-data"})}documentControllerFindAll({tenantId:e,sourceType:n}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/knowledge-base/documents",path:{tenantId:e},query:{sourceType:n}})}documentControllerFindOne({tenantId:e,id:n}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}",path:{tenantId:e,id:n}})}documentControllerUpdate({tenantId:e,id:n,requestBody:i}){return this.httpRequest.request({method:"PATCH",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}",path:{tenantId:e,id:n},body:i,mediaType:"application/json"})}documentControllerRemove({tenantId:e,id:n}){return this.httpRequest.request({method:"DELETE",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}",path:{tenantId:e,id:n}})}documentControllerSyncFaq({tenantId:e}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/faq/sync",path:{tenantId:e}})}documentControllerSync({tenantId:e,id:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}/sync",path:{tenantId:e,id:n}})}documentControllerReindex({tenantId:e,id:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}/reindex",path:{tenantId:e,id:n}})}webCrawlControllerStartCrawl({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/crawl",path:{tenantId:e},body:n,mediaType:"application/json"})}webCrawlControllerListCrawlJobs({tenantId:e}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/knowledge-base/crawl-jobs",path:{tenantId:e}})}webCrawlControllerGetCrawlJob({tenantId:e,id:n}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/knowledge-base/crawl-jobs/{id}",path:{tenantId:e,id:n}})}webCrawlControllerDeleteCrawlJob({tenantId:e,id:n}){return this.httpRequest.request({method:"DELETE",url:"/admin/tenants/{tenantId}/knowledge-base/crawl-jobs/{id}",path:{tenantId:e,id:n}})}webCrawlControllerUpdateUrls({tenantId:e,id:n,requestBody:i}){return this.httpRequest.request({method:"PATCH",url:"/admin/tenants/{tenantId}/knowledge-base/crawl-jobs/{id}/urls",path:{tenantId:e,id:n},body:i,mediaType:"application/json"})}webCrawlControllerScrapeSelectedPages({tenantId:e,id:n,requestBody:i}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/crawl-jobs/{id}/scrape",path:{tenantId:e,id:n},body:i,mediaType:"application/json"})}webCrawlControllerReCrawl({tenantId:e,id:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/crawl-jobs/{id}/recrawl",path:{tenantId:e,id:n}})}webCrawlControllerReMap({tenantId:e,id:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/crawl-jobs/{id}/remap",path:{tenantId:e,id:n}})}}class cN{constructor(e){this.httpRequest=e}productsControllerDuplicate({id:e}){return this.httpRequest.request({method:"POST",url:"/products/{id}/duplicate",path:{id:e}})}productsControllerCreate({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/products/tenant/{tenantId}",path:{tenantId:e},body:n,mediaType:"application/json"})}productsControllerFindAll({tenantId:e}){return this.httpRequest.request({method:"GET",url:"/products/tenant/{tenantId}",path:{tenantId:e}})}productsControllerGetProductByDetailUrl({tenantId:e,detailUrl:n}){return this.httpRequest.request({method:"GET",url:"/products/public/tenant/{tenantId}/by-detail-url",path:{tenantId:e},query:{detailUrl:n}})}productsControllerFindOne({tenantId:e,id:n}){return this.httpRequest.request({method:"GET",url:"/products/tenant/{tenantId}/{id}",path:{tenantId:e,id:n}})}productsControllerUpdate({tenantId:e,id:n,requestBody:i}){return this.httpRequest.request({method:"PATCH",url:"/products/tenant/{tenantId}/{id}",path:{tenantId:e,id:n},body:i,mediaType:"application/json"})}productsControllerRemove({tenantId:e,id:n}){return this.httpRequest.request({method:"DELETE",url:"/products/tenant/{tenantId}/{id}",path:{tenantId:e,id:n}})}}class fN{constructor(e){this.httpRequest=e}profileLinksControllerFindAll({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/profile-links",path:{id:e}})}profileLinksControllerCreate({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/profile-links",path:{id:e},body:n,mediaType:"application/json"})}profileLinksControllerUpdate({linkId:e,id:n,requestBody:i}){return this.httpRequest.request({method:"PATCH",url:"/tenants/{id}/profile-links/{linkId}",path:{linkId:e,id:n},body:i,mediaType:"application/json"})}profileLinksControllerDelete({linkId:e,id:n}){return this.httpRequest.request({method:"DELETE",url:"/tenants/{id}/profile-links/{linkId}",path:{linkId:e,id:n}})}profileLinksControllerReorder({id:e,requestBody:n}){return this.httpRequest.request({method:"PUT",url:"/tenants/{id}/profile-links/order",path:{id:e},body:n,mediaType:"application/json"})}}class dN{constructor(e){this.httpRequest=e}promptBlocksControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/prompt-blocks",body:e,mediaType:"application/json",errors:{400:"Bad request.",401:"Unauthorized.",403:"Forbidden. System admin access required.",409:"A prompt block with this name already exists."}})}promptBlocksControllerFindAll(){return this.httpRequest.request({method:"GET",url:"/prompt-blocks",errors:{401:"Unauthorized.",403:"Forbidden. System admin access required."}})}promptBlocksControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/prompt-blocks/{id}",path:{id:e},errors:{401:"Unauthorized.",403:"Forbidden. System admin access required.",404:"Prompt block not found."}})}promptBlocksControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/prompt-blocks/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad request.",401:"Unauthorized.",403:"Forbidden. System admin access required.",404:"Prompt block not found.",409:"A prompt block with this name already exists."}})}promptBlocksControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/prompt-blocks/{id}",path:{id:e},errors:{401:"Unauthorized.",403:"Forbidden. System admin access required.",404:"Prompt block not found."}})}}class hN{constructor(e){this.httpRequest=e}questionAnswersControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/question-answers",body:e,mediaType:"application/json",errors:{400:"Bad Request.",404:"Tenant not found."}})}questionAnswersControllerFindByTenantId({id:e}){return this.httpRequest.request({method:"GET",url:"/question-answers/tenant/{id}",path:{id:e}})}questionAnswersControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/question-answers/{id}",path:{id:e},errors:{404:"Question-answer not found."}})}questionAnswersControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/question-answers/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Question-answer not found."}})}questionAnswersControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/question-answers/{id}",path:{id:e},errors:{404:"Question-answer not found."}})}}class pN{constructor(e){this.httpRequest=e}statisticsControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/statistics",body:e,mediaType:"application/json"})}statisticsControllerGetAggregatedStats({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/statistics/tenants/{id}/aggregated",path:{id:e},body:n,mediaType:"application/json"})}statisticsControllerGetByChatSession({tenantId:e,chatSessionId:n}){return this.httpRequest.request({method:"GET",url:"/statistics/tenants/{tenantId}/chat-sessions",path:{tenantId:e},query:{chatSessionId:n}})}}class mN{constructor(e){this.httpRequest=e}tenantApiKeysControllerList({tenantId:e,includeRevoked:n}){return this.httpRequest.request({method:"GET",url:"/tenant-api-keys/tenant/{tenantId}/api-keys",path:{tenantId:e},query:{includeRevoked:n}})}tenantApiKeysControllerCreate({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenant-api-keys/tenant/{tenantId}/api-keys",path:{tenantId:e},body:n,mediaType:"application/json"})}tenantApiKeysControllerRevoke({tenantId:e,keyId:n}){return this.httpRequest.request({method:"DELETE",url:"/tenant-api-keys/tenant/{tenantId}/api-keys/{keyId}",path:{tenantId:e,keyId:n}})}}class gN{constructor(e){this.httpRequest=e}tenantInvitationsControllerGetTenantInvitation({id:e}){return this.httpRequest.request({method:"GET",url:"/tenant-invitations/{id}",path:{id:e},errors:{404:"Tenant invitation not found"}})}tenantInvitationsControllerAcceptTenantInvitation({id:e}){return this.httpRequest.request({method:"POST",url:"/tenant-invitations/accept/{id}",path:{id:e},errors:{400:"Bad request - invitation already accepted or invalid data",404:"Tenant invitation not found or user not found",409:"Conflict - invitation already accepted "}})}}class yN{constructor(e){this.httpRequest=e}tenantsControllerGetByTenantCode({tenantCode:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{tenantCode}",path:{tenantCode:e}})}tenantsControllerGetByIdAdmin({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/admin/{id}",path:{id:e}})}tenantsControllerUpdateByTenantId({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenants/{id}",path:{id:e},body:n,mediaType:"application/json"})}tenantsControllerDeleteTenant({id:e}){return this.httpRequest.request({method:"DELETE",url:"/tenants/{id}",path:{id:e},errors:{401:"Unauthorized.",403:"Forbidden - Admin access required.",404:"Tenant not found."}})}tenantsControllerCreateAgent({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/agents",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request.",401:"Unauthorized.",404:"Tenant not found."}})}tenantsControllerFindAgentsByTenantId({id:e,isActive:n}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/agents",path:{id:e},query:{isActive:n},errors:{401:"Unauthorized.",404:"Tenant not found."}})}tenantsControllerSetDefaultAgent({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenants/{id}/default-agent",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request.",401:"Unauthorized.",404:"Tenant or Agent not found."}})}tenantsControllerGetDefaultAgent({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/default-agent",path:{id:e},errors:{401:"Unauthorized.",404:"Tenant not found or no default agent set."}})}tenantsControllerSetDefaultFlowDefinition({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenants/{id}/default-flow-definition",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized.",404:"Tenant or Flow definition not found."}})}tenantsControllerDuplicateTenant({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/duplicate",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request - Tenant code already exists or invalid data.",401:"Unauthorized.",404:"Source tenant not found."}})}tenantsControllerGetTenantUsersByTenantId({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/tenantUsers",path:{id:e},errors:{401:"Unauthorized.",404:"Tenant not found."}})}tenantsControllerCreateTenantInvitation({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/invitations",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized.",403:"Forbidden - Admin access required.",404:"Tenant not found.",409:"Conflict - Invitation already exists for this email."}})}tenantsControllerGetCoinBalance({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/coin-balance",path:{id:e}})}tenantsControllerGetCoinTransactions({id:e,page:n=1,limit:i=10}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/coin-transactions",path:{id:e},query:{page:n,limit:i}})}tenantsControllerCreateCoinTransaction({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/coin-transactions",path:{id:e},body:n,mediaType:"application/json"})}tenantsControllerEnableCoinSystem({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/coin-system/enable",path:{id:e},body:n,mediaType:"application/json"})}tenantsControllerDisableCoinSystem({id:e}){return this.httpRequest.request({method:"DELETE",url:"/tenants/{id}/coin-system",path:{id:e}})}}class bN{constructor(e){this.httpRequest=e}tenantUsersControllerGetMyTenantUsers(){return this.httpRequest.request({method:"GET",url:"/tenant-users/my"})}tenantUsersControllerUpdateTenantUser({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenant-users/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request - Cannot change role of last owner.",401:"Unauthorized.",403:"Forbidden - Owner access required.",404:"Tenant user not found."}})}tenantUsersControllerDeleteTenantUser({id:e}){return this.httpRequest.request({method:"DELETE",url:"/tenant-users/{id}",path:{id:e},errors:{400:"Bad Request - Cannot delete last owner.",401:"Unauthorized.",403:"Forbidden - Owner access required.",404:"Tenant user not found."}})}}class vN{constructor(e,n=QM){Wt(this,"adminChatSessions");Wt(this,"adminFlowDefinitions");Wt(this,"adminTenants");Wt(this,"agents");Wt(this,"agentTemplates");Wt(this,"agentTools");Wt(this,"app");Wt(this,"auth");Wt(this,"chatSessions");Wt(this,"externalApi");Wt(this,"file");Wt(this,"flowTools");Wt(this,"knowledgeBase");Wt(this,"products");Wt(this,"profileLinks");Wt(this,"promptBlocks");Wt(this,"questionAnswers");Wt(this,"statistics");Wt(this,"tenantApiKeys");Wt(this,"tenantInvitations");Wt(this,"tenants");Wt(this,"tenantUsers");Wt(this,"request");this.request=new n({BASE:(e==null?void 0:e.BASE)??"",VERSION:(e==null?void 0:e.VERSION)??"1.0",WITH_CREDENTIALS:(e==null?void 0:e.WITH_CREDENTIALS)??!1,CREDENTIALS:(e==null?void 0:e.CREDENTIALS)??"include",TOKEN:e==null?void 0:e.TOKEN,USERNAME:e==null?void 0:e.USERNAME,PASSWORD:e==null?void 0:e.PASSWORD,HEADERS:e==null?void 0:e.HEADERS,ENCODE_PATH:e==null?void 0:e.ENCODE_PATH}),this.adminChatSessions=new ZM(this.request),this.adminFlowDefinitions=new JM(this.request),this.adminTenants=new WM(this.request),this.agents=new tN(this.request),this.agentTemplates=new eN(this.request),this.agentTools=new nN(this.request),this.app=new rN(this.request),this.auth=new iN(this.request),this.chatSessions=new sN(this.request),this.externalApi=new aN(this.request),this.file=new oN(this.request),this.flowTools=new lN(this.request),this.knowledgeBase=new uN(this.request),this.products=new cN(this.request),this.profileLinks=new fN(this.request),this.promptBlocks=new dN(this.request),this.questionAnswers=new hN(this.request),this.statistics=new pN(this.request),this.tenantApiKeys=new mN(this.request),this.tenantInvitations=new gN(this.request),this.tenants=new yN(this.request),this.tenantUsers=new bN(this.request)}}var zv;(t=>{(e=>{e.STRING="string",e.VERIFICATION_CODE="verificationCode",e.DATE="date",e.CODE="code"})(t.inputType||(t.inputType={}))})(zv||(zv={}));var Bv=(t=>(t.TEXT="TEXT",t.OPTIONS_SELECT="OPTIONS_SELECT",t.MESSAGE_TEMPLATE="MESSAGE_TEMPLATE",t.CODE_INPUT="CODE_INPUT",t.CONTACT_SAVED_INFOBOX="CONTACT_SAVED_INFOBOX",t))(Bv||{}),sr=(t=>(t.USER="user",t.ASSISTANT="assistant",t))(sr||{}),sl=(t=>(t.FULL="FULL",t.FLOW_ONLY="FLOW_ONLY",t))(sl||{}),yc=(t=>(t.STYLE1="STYLE1",t.STYLE2="STYLE2",t))(yc||{}),Uv;(t=>{(e=>{e.STRING="string",e.NUMBER="number",e.BOOLEAN="boolean",e.ARRAY="array",e.OBJECT="object"})(t.type||(t.type={})),(e=>{e.STRING="string",e.NUMBER="number",e.BOOLEAN="boolean",e.OBJECT="object"})(t.itemType||(t.itemType={}))})(Uv||(Uv={}));var wh=(t=>(t.NONE="NONE",t.MESSAGE_TEMPLATES="MESSAGE_TEMPLATES",t.ACTION_BUTTONS="ACTION_BUTTONS",t))(wh||{});const xN=t=>{var e;return((e=t==null?void 0:t.response)==null?void 0:e.status)||(t==null?void 0:t.status)||0},Iv=t=>![400,403,409,422,404,401].includes(xN(t)),wN=new Wk({defaultOptions:{queries:{retry:!1,throwOnError:Iv},mutations:{retry:!1,throwOnError:Iv}}}),SN=B.createContext(null),Sh={didCatch:!1,error:null};class EN extends B.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Sh}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:l,reason:"imperative-api"}),this.setState(Sh)}}componentDidCatch(e,n){var i,a;(i=(a=this.props).onError)===null||i===void 0||i.call(a,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:a}=this.props;if(i&&n.error!==null&&TN(e.resetKeys,a)){var l,u;(l=(u=this.props).onReset)===null||l===void 0||l.call(u,{next:a,prev:e.resetKeys,reason:"keys"}),this.setState(Sh)}}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:a}=this.props,{didCatch:l,error:u}=this.state;let f=e;if(l){const d={error:u,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")f=n(d);else if(i)f=B.createElement(i,d);else if(a!==void 0)f=a;else throw u}return B.createElement(SN.Provider,{value:{didCatch:l,error:u,resetErrorBoundary:this.resetErrorBoundary}},f)}}function TN(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,i)=>!Object.is(n,e[i]))}const Mt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,re=globalThis,vs="10.29.0";function bc(){return vc(re),re}function vc(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||vs,e[vs]=e[vs]||{}}function ma(t,e,n=re){const i=n.__SENTRY__=n.__SENTRY__||{},a=i[vs]=i[vs]||{};return a[t]||(a[t]=e())}const CN=["debug","info","warn","error","log","assert","trace"],_N="Sentry Logger ",xc={};function ga(t){if(!("console"in re))return t();const e=re.console,n={},i=Object.keys(xc);i.forEach(a=>{const l=xc[a];n[a]=e[a],e[a]=l});try{return t()}finally{i.forEach(a=>{e[a]=n[a]})}}function AN(){Th().enabled=!0}function RN(){Th().enabled=!1}function Pv(){return Th().enabled}function ON(...t){Eh("log",...t)}function kN(...t){Eh("warn",...t)}function DN(...t){Eh("error",...t)}function Eh(t,...e){Mt&&Pv()&&ga(()=>{re.console[t](`${_N}[${t}]:`,...e)})}function Th(){return Mt?ma("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Ct={enable:AN,disable:RN,isEnabled:Pv,log:ON,warn:kN,error:DN},qv=50,xs="?",Fv=/\(error: (.*)\)/,Vv=/captureMessage|captureException/;function Hv(...t){const e=t.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0,a=0)=>{const l=[],u=n.split(`
`);for(let f=i;f<u.length;f++){let d=u[f];d.length>1024&&(d=d.slice(0,1024));const h=Fv.test(d)?d.replace(Fv,"$1"):d;if(!h.match(/\S*Error: /)){for(const m of e){const y=m(h);if(y){l.push(y);break}}if(l.length>=qv+a)break}}return NN(l.slice(a))}}function MN(t){return Array.isArray(t)?Hv(...t):t}function NN(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(wc(e).function||"")&&e.pop(),e.reverse(),Vv.test(wc(e).function||"")&&(e.pop(),Vv.test(wc(e).function||"")&&e.pop()),e.slice(0,qv).map(n=>({...n,filename:n.filename||wc(e).filename,function:n.function||xs}))}function wc(t){return t[t.length-1]||{}}const Ch="<anonymous>";function gi(t){try{return!t||typeof t!="function"?Ch:t.name||Ch}catch{return Ch}}function Gv(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(i=>{i.stacktrace.frames&&n.push(...i.stacktrace.frames)}),n}catch{return}}}function Yv(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const Sc={},Kv={};function ws(t,e){Sc[t]=Sc[t]||[],Sc[t].push(e)}function Ss(t,e){if(!Kv[t]){Kv[t]=!0;try{e()}catch(n){Mt&&Ct.error(`Error while instrumenting ${t}`,n)}}}function ar(t,e){const n=t&&Sc[t];if(n)for(const i of n)try{i(e)}catch(a){Mt&&Ct.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${gi(i)}
Error:`,a)}}let _h=null;function LN(t){const e="error";ws(e,t),Ss(e,jN)}function jN(){_h=re.onerror,re.onerror=function(t,e,n,i,a){return ar("error",{column:i,error:a,line:n,msg:t,url:e}),_h?_h.apply(this,arguments):!1},re.onerror.__SENTRY_INSTRUMENTED__=!0}let Ah=null;function zN(t){const e="unhandledrejection";ws(e,t),Ss(e,BN)}function BN(){Ah=re.onunhandledrejection,re.onunhandledrejection=function(t){return ar("unhandledrejection",t),Ah?Ah.apply(this,arguments):!0},re.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const $v=Object.prototype.toString;function Rh(t){switch($v.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return yi(t,Error)}}function ya(t,e){return $v.call(t)===`[object ${e}]`}function Xv(t){return ya(t,"ErrorEvent")}function Qv(t){return ya(t,"DOMError")}function UN(t){return ya(t,"DOMException")}function Br(t){return ya(t,"String")}function Oh(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Ec(t){return t===null||Oh(t)||typeof t!="object"&&typeof t!="function"}function al(t){return ya(t,"Object")}function Tc(t){return typeof Event<"u"&&yi(t,Event)}function IN(t){return typeof Element<"u"&&yi(t,Element)}function PN(t){return ya(t,"RegExp")}function ol(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function qN(t){return al(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function yi(t,e){try{return t instanceof e}catch{return!1}}function Zv(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function FN(t){return typeof Request<"u"&&yi(t,Request)}const kh=re,VN=80;function Jv(t,e={}){if(!t)return"<unknown>";try{let n=t;const i=5,a=[];let l=0,u=0;const f=" > ",d=f.length;let h;const m=Array.isArray(e)?e:e.keyAttrs,y=!Array.isArray(e)&&e.maxStringLength||VN;for(;n&&l++<i&&(h=HN(n,m),!(h==="html"||l>1&&u+a.length*d+h.length>=y));)a.push(h),u+=h.length,n=n.parentNode;return a.reverse().join(f)}catch{return"<unknown>"}}function HN(t,e){const n=t,i=[];if(!(n!=null&&n.tagName))return"";if(kh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const a=e!=null&&e.length?e.filter(u=>n.getAttribute(u)).map(u=>[u,n.getAttribute(u)]):null;if(a!=null&&a.length)a.forEach(u=>{i.push(`[${u[0]}="${u[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const u=n.className;if(u&&Br(u)){const f=u.split(/\s+/);for(const d of f)i.push(`.${d}`)}}const l=["aria-label","type","name","title","alt"];for(const u of l){const f=n.getAttribute(u);f&&i.push(`[${u}="${f}"]`)}return i.join("")}function Dh(){try{return kh.document.location.href}catch{return""}}function GN(t){if(!kh.HTMLElement)return null;let e=t;const n=5;for(let i=0;i<n;i++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function An(t,e,n){if(!(e in t))return;const i=t[e];if(typeof i!="function")return;const a=n(i);typeof a=="function"&&Wv(a,i);try{t[e]=a}catch{Mt&&Ct.log(`Failed to replace method "${e}" in object`,t)}}function Es(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Mt&&Ct.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Wv(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Es(t,"__sentry_original__",e)}catch{}}function Mh(t){return t.__sentry_original__}function tx(t){if(Rh(t))return{message:t.message,name:t.name,stack:t.stack,...nx(t)};if(Tc(t)){const e={type:t.type,target:ex(t.target),currentTarget:ex(t.currentTarget),...nx(t)};return typeof CustomEvent<"u"&&yi(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function ex(t){try{return IN(t)?Jv(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function nx(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function YN(t){const e=Object.keys(tx(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}function Nh(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function rx(t,e){if(!Array.isArray(t))return"";const n=[];for(let i=0;i<t.length;i++){const a=t[i];try{Zv(a)?n.push(Yv(a)):n.push(String(a))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Cc(t,e,n=!1){return Br(t)?PN(e)?e.test(t):Br(e)?n?t===e:t.includes(e):!1:!1}function _c(t,e=[],n=!1){return e.some(i=>Cc(t,i,n))}function KN(){const t=re;return t.crypto||t.msCrypto}let Lh;function $N(){return Math.random()*16}function Un(t=KN()){try{if(t!=null&&t.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return Lh||(Lh="10000000100040008000"+1e11),Lh.replace(/[018]/g,e=>(e^($N()&15)>>e/4).toString(16))}function ix(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function Ts(t){const{message:e,event_id:n}=t;if(e)return e;const i=ix(t);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function jh(t,e,n){const i=t.exception=t.exception||{},a=i.values=i.values||[],l=a[0]=a[0]||{};l.value||(l.value=e||""),l.type||(l.type="Error")}function ba(t,e){const n=ix(t);if(!n)return;const i={type:"generic",handled:!0},a=n.mechanism;if(n.mechanism={...i,...a,...e},e&&"data"in e){const l={...a==null?void 0:a.data,...e.data};n.mechanism.data=l}}function sx(t){if(XN(t))return!0;try{Es(t,"__sentry_captured__",!0)}catch{}return!1}function XN(t){try{return t.__sentry_captured__}catch{}}const ax=1e3;function ll(){return Date.now()/ax}function QN(){const{performance:t}=re;if(!(t!=null&&t.now)||!t.timeOrigin)return ll;const e=t.timeOrigin;return()=>(e+t.now())/ax}let ox;function Ur(){return(ox??(ox=QN()))()}function ZN(t){const e=Ur(),n={sid:Un(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>WN(n)};return t&&va(n,t),n}function va(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ur(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Un()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function JN(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),va(t,n)}function WN(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function ul(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const i={...t};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=ul(i[a],e[a],n-1));return i}function lx(){return Un()}function ux(){return Un().substring(16)}const zh="_sentrySpan";function cx(t,e){e?Es(t,zh,e):delete t[zh]}function fx(t){return t[zh]}const tL=100;class xr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:lx(),sampleRand:Math.random()}}clone(){const e=new xr;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,cx(e,fx(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&va(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,i=n instanceof xr?n.getScopeData():al(n)?e:void 0,{tags:a,attributes:l,extra:u,user:f,contexts:d,level:h,fingerprint:m=[],propagationContext:y}=i||{};return this._tags={...this._tags,...a},this._attributes={...this._attributes,...l},this._extra={...this._extra,...u},this._contexts={...this._contexts,...d},f&&Object.keys(f).length&&(this._user=f),h&&(this._level=h),m.length&&(this._fingerprint=m),y&&(this._propagationContext=y),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,cx(this,void 0),this._attachments=[],this.setPropagationContext({traceId:lx(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){var l;const i=typeof n=="number"?n:tL;if(i<=0)return this;const a={timestamp:ll(),...e,message:e.message?Nh(e.message,2048):e.message};return this._breadcrumbs.push(a),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),(l=this._client)==null||l.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:fx(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ul(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const i=(n==null?void 0:n.event_id)||Un();if(!this._client)return Mt&&Ct.warn("No client configured on scope - will not capture exception!"),i;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...n,event_id:i},this),i}captureMessage(e,n,i){const a=(i==null?void 0:i.event_id)||Un();if(!this._client)return Mt&&Ct.warn("No client configured on scope - will not capture message!"),a;const l=(i==null?void 0:i.syntheticException)??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:l,...i,event_id:a},this),a}captureEvent(e,n){const i=(n==null?void 0:n.event_id)||Un();return this._client?(this._client.captureEvent(e,{...n,event_id:i},this),i):(Mt&&Ct.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function eL(){return ma("defaultCurrentScope",()=>new xr)}function nL(){return ma("defaultIsolationScope",()=>new xr)}class rL{constructor(e,n){let i;e?i=e:i=new xr;let a;n?a=n:a=new xr,this._stack=[{scope:i}],this._isolationScope=a}withScope(e){const n=this._pushScope();let i;try{i=e(n)}catch(a){throw this._popScope(),a}return ol(i)?i.then(a=>(this._popScope(),a),a=>{throw this._popScope(),a}):(this._popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function xa(){const t=bc(),e=vc(t);return e.stack=e.stack||new rL(eL(),nL())}function iL(t){return xa().withScope(t)}function sL(t,e){const n=xa();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function dx(t){return xa().withScope(()=>t(xa().getIsolationScope()))}function aL(){return{withIsolationScope:dx,withScope:iL,withSetScope:sL,withSetIsolationScope:(t,e)=>dx(e),getCurrentScope:()=>xa().getScope(),getIsolationScope:()=>xa().getIsolationScope()}}function Bh(t){const e=vc(t);return e.acs?e.acs:aL()}function bi(){const t=bc();return Bh(t).getCurrentScope()}function wa(){const t=bc();return Bh(t).getIsolationScope()}function oL(){return ma("globalScope",()=>new xr)}function lL(...t){const e=bc(),n=Bh(e);if(t.length===2){const[i,a]=t;return i?n.withSetScope(i,a):n.withScope(a)}return n.withScope(t[0])}function en(){return bi().getClient()}function uL(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:a}=e,l={trace_id:n,span_id:a||ux()};return i&&(l.parent_span_id=i),l}const cL="sentry.source",fL="sentry.sample_rate",dL="sentry.previous_trace_sample_rate",hL="sentry.op",pL="sentry.origin",hx="sentry.profile_id",px="sentry.exclusive_time",mL=0,gL=1,yL="_sentryScope",bL="_sentryIsolationScope";function vL(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function mx(t){const e=t;return{scope:e[yL],isolationScope:vL(e[bL])}}const xL="sentry-",wL=/^sentry-/;function SL(t){const e=EL(t);if(!e)return;const n=Object.entries(e).reduce((i,[a,l])=>{if(a.match(wL)){const u=a.slice(xL.length);i[u]=l}return i},{});if(Object.keys(n).length>0)return n}function EL(t){if(!(!t||!Br(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const i=gx(n);return Object.entries(i).forEach(([a,l])=>{e[a]=l}),e},{}):gx(t)}function gx(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const i=e.slice(0,n),a=e.slice(n+1);return[i,a].map(l=>{try{return decodeURIComponent(l.trim())}catch{return}})}).reduce((e,[n,i])=>(n&&i&&(e[n]=i),e),{})}const TL=/^o(\d+)\./,CL=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _L(t){return t==="http"||t==="https"}function cl(t,e=!1){const{host:n,path:i,pass:a,port:l,projectId:u,protocol:f,publicKey:d}=t;return`${f}://${d}${e&&a?`:${a}`:""}@${n}${l?`:${l}`:""}/${i&&`${i}/`}${u}`}function AL(t){const e=CL.exec(t);if(!e){ga(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,i,a="",l="",u="",f=""]=e.slice(1);let d="",h=f;const m=h.split("/");if(m.length>1&&(d=m.slice(0,-1).join("/"),h=m.pop()),h){const y=h.match(/^\d+/);y&&(h=y[0])}return yx({host:l,pass:a,path:d,projectId:h,port:u,protocol:n,publicKey:i})}function yx(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function RL(t){if(!Mt)return!0;const{port:e,projectId:n,protocol:i}=t;return["protocol","publicKey","host","projectId"].find(u=>t[u]?!1:(Ct.error(`Invalid Sentry Dsn: ${u} missing`),!0))?!1:n.match(/^\d+$/)?_L(i)?e&&isNaN(parseInt(e,10))?(Ct.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Ct.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(Ct.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function OL(t){const e=t.match(TL);return e==null?void 0:e[1]}function kL(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let i;return e.orgId?i=String(e.orgId):n&&(i=OL(n)),i}function DL(t){const e=typeof t=="string"?AL(t):yx(t);if(!(!e||!RL(e)))return e}function ML(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const bx=1;let vx=!1;function NL(t){const{spanId:e,traceId:n,isRemote:i}=t.spanContext(),a=i?e:Uh(t).parent_span_id,l=mx(t).scope,u=i?(l==null?void 0:l.getPropagationContext().propagationSpanId)||ux():e;return{parent_span_id:a,span_id:u,trace_id:n}}function LL(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:i,...a},attributes:l})=>({span_id:e,trace_id:n,sampled:i===bx,attributes:l,...a}))}function xx(t){return typeof t=="number"?wx(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?wx(t.getTime()):Ur()}function wx(t){return t>9999999999?t/1e3:t}function Uh(t){var i;if(zL(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(jL(t)){const{attributes:a,startTime:l,name:u,endTime:f,status:d,links:h}=t,m="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(i=t.parentSpanContext)==null?void 0:i.spanId:void 0;return{span_id:e,trace_id:n,data:a,description:u,parent_span_id:m,start_timestamp:xx(l),timestamp:xx(f)||void 0,status:UL(d),op:a[hL],origin:a[pL],links:LL(h)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function jL(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function zL(t){return typeof t.getSpanJSON=="function"}function BL(t){const{traceFlags:e}=t.spanContext();return e===bx}function UL(t){if(!(!t||t.code===mL))return t.code===gL?"ok":t.message||"internal_error"}const IL="_sentryRootSpan";function Sx(t){return t[IL]||t}function Ex(){vx||(ga(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),vx=!0)}function PL(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=(n=en())==null?void 0:n.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Tx(t){Ct.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Cx(t,e){if(!(e!=null&&e.length)||!t.description)return!1;for(const n of e){if(FL(n)){if(Cc(t.description,n))return Mt&&Tx(t),!0;continue}if(!n.name&&!n.op)continue;const i=n.name?Cc(t.description,n.name):!0,a=n.op?t.op&&Cc(t.op,n.op):!0;if(i&&a)return Mt&&Tx(t),!0}return!1}function qL(t,e){const n=e.parent_span_id,i=e.span_id;if(n)for(const a of t)a.parent_span_id===i&&(a.parent_span_id=n)}function FL(t){return typeof t=="string"||t instanceof RegExp}const Ih="production",VL="_frozenDsc";function _x(t,e){const n=e.getOptions(),{publicKey:i}=e.getDsn()||{},a={environment:n.environment||Ih,release:n.release,public_key:i,trace_id:t,org_id:kL(e)};return e.emit("createDsc",a),a}function HL(t,e){const n=e.getPropagationContext();return n.dsc||_x(n.traceId,t)}function GL(t){var w;const e=en();if(!e)return{};const n=Sx(t),i=Uh(n),a=i.data,l=n.spanContext().traceState,u=(l==null?void 0:l.get("sentry.sample_rate"))??a[fL]??a[dL];function f(E){return(typeof u=="number"||typeof u=="string")&&(E.sample_rate=`${u}`),E}const d=n[VL];if(d)return f(d);const h=l==null?void 0:l.get("sentry.dsc"),m=h&&SL(h);if(m)return f(m);const y=_x(t.spanContext().traceId,e),b=a[cL],v=i.description;return b!=="url"&&v&&(y.transaction=v),PL()&&(y.sampled=String(BL(n)),y.sample_rand=(l==null?void 0:l.get("sentry.sample_rand"))??((w=mx(n).scope)==null?void 0:w.getPropagationContext().sampleRand.toString())),f(y),e.emit("createDsc",y,n),y}function Ir(t,e=100,n=1/0){try{return Ph("",t,e,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function Ax(t,e=3,n=100*1024){const i=Ir(t,e);return XL(i)>n?Ax(t,e-1,n):i}function Ph(t,e,n=1/0,i=1/0,a=QL()){const[l,u]=a;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const f=YL(t,e);if(!f.startsWith("[object "))return f;if(e.__sentry_skip_normalization__)return e;const d=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(d===0)return f.replace("object ","");if(l(e))return"[Circular ~]";const h=e;if(h&&typeof h.toJSON=="function")try{const v=h.toJSON();return Ph("",v,d-1,i,a)}catch{}const m=Array.isArray(e)?[]:{};let y=0;const b=tx(e);for(const v in b){if(!Object.prototype.hasOwnProperty.call(b,v))continue;if(y>=i){m[v]="[MaxProperties ~]";break}const w=b[v];m[v]=Ph(v,w,d-1,i,a),y++}return u(e),m}function YL(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Zv(e))return Yv(e);if(qN(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${gi(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=KL(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function KL(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function $L(t){return~-encodeURI(t).split(/%..|./).length}function XL(t){return $L(JSON.stringify(t))}function QL(){const t=new WeakSet;function e(i){return t.has(i)?!0:(t.add(i),!1)}function n(i){t.delete(i)}return[e,n]}function Sa(t,e=[]){return[t,e]}function ZL(t,e){const[n,i]=t;return[n,[...i,e]]}function Rx(t,e){const n=t[1];for(const i of n){const a=i[0].type;if(e(i,a))return!0}return!1}function qh(t){const e=vc(re);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function JL(t){const[e,n]=t;let i=JSON.stringify(e);function a(l){typeof i=="string"?i=typeof l=="string"?i+l:[qh(i),l]:i.push(typeof l=="string"?qh(l):l)}for(const l of n){const[u,f]=l;if(a(`
${JSON.stringify(u)}
`),typeof f=="string"||f instanceof Uint8Array)a(f);else{let d;try{d=JSON.stringify(f)}catch{d=JSON.stringify(Ir(f))}a(d)}}return typeof i=="string"?i:WL(i)}function WL(t){const e=t.reduce((a,l)=>a+l.length,0),n=new Uint8Array(e);let i=0;for(const a of t)n.set(a,i),i+=a.length;return n}function t4(t){const e=typeof t.data=="string"?qh(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const e4={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Ox(t){return e4[t]}function kx(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function n4(t,e,n,i){var l;const a=(l=t.sdkProcessingMetadata)==null?void 0:l.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&i&&{dsn:cl(i)},...a&&{trace:a}}}function r4(t,e){var i,a,l,u;if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...((i=t.sdk)==null?void 0:i.integrations)||[],...e.integrations||[]],packages:[...((a=t.sdk)==null?void 0:a.packages)||[],...e.packages||[]],settings:(l=t.sdk)!=null&&l.settings||e.settings?{...(u=t.sdk)==null?void 0:u.settings,...e.settings}:void 0},t}function i4(t,e,n,i){const a=kx(n),l={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!i&&e&&{dsn:cl(e)}},u="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Sa(l,[u])}function s4(t,e,n,i){const a=kx(n),l=t.type&&t.type!=="replay_event"?t.type:"event";r4(t,n==null?void 0:n.sdk);const u=n4(t,a,i,e);return delete t.sdkProcessingMetadata,Sa(u,[[{type:l},t]])}const Fh=0,Dx=1,Mx=2;function Ac(t){return new fl(e=>{e(t)})}function Vh(t){return new fl((e,n)=>{n(t)})}class fl{constructor(e){this._state=Fh,this._handlers=[],this._runExecutor(e)}then(e,n){return new fl((i,a)=>{this._handlers.push([!1,l=>{if(!e)i(l);else try{i(e(l))}catch(u){a(u)}},l=>{if(!n)a(l);else try{i(n(l))}catch(u){a(u)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new fl((n,i)=>{let a,l;return this.then(u=>{l=!1,a=u,e&&e()},u=>{l=!0,a=u,e&&e()}).then(()=>{if(l){i(a);return}n(a)})})}_executeHandlers(){if(this._state===Fh)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Dx&&n[1](this._value),this._state===Mx&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(l,u)=>{if(this._state===Fh){if(ol(u)){u.then(i,a);return}this._state=l,this._value=u,this._executeHandlers()}},i=l=>{n(Dx,l)},a=l=>{n(Mx,l)};try{e(i,a)}catch(l){a(l)}}}function a4(t,e,n,i=0){try{const a=Hh(e,n,t,i);return ol(a)?a:Ac(a)}catch(a){return Vh(a)}}function Hh(t,e,n,i){const a=n[i];if(!t||!a)return t;const l=a({...t},e);return Mt&&l===null&&Ct.log(`Event processor "${a.id||"?"}" dropped event`),ol(l)?l.then(u=>Hh(u,e,n,i+1)):Hh(l,e,n,i+1)}function o4(t,e){const{fingerprint:n,span:i,breadcrumbs:a,sdkProcessingMetadata:l}=e;l4(t,e),i&&f4(t,i),d4(t,n),u4(t,a),c4(t,l)}function Nx(t,e){const{extra:n,tags:i,user:a,contexts:l,level:u,sdkProcessingMetadata:f,breadcrumbs:d,fingerprint:h,eventProcessors:m,attachments:y,propagationContext:b,transactionName:v,span:w}=e;Rc(t,"extra",n),Rc(t,"tags",i),Rc(t,"user",a),Rc(t,"contexts",l),t.sdkProcessingMetadata=ul(t.sdkProcessingMetadata,f,2),u&&(t.level=u),v&&(t.transactionName=v),w&&(t.span=w),d.length&&(t.breadcrumbs=[...t.breadcrumbs,...d]),h.length&&(t.fingerprint=[...t.fingerprint,...h]),m.length&&(t.eventProcessors=[...t.eventProcessors,...m]),y.length&&(t.attachments=[...t.attachments,...y]),t.propagationContext={...t.propagationContext,...b}}function Rc(t,e,n){t[e]=ul(t[e],n,1)}function l4(t,e){const{extra:n,tags:i,user:a,contexts:l,level:u,transactionName:f}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(i).length&&(t.tags={...i,...t.tags}),Object.keys(a).length&&(t.user={...a,...t.user}),Object.keys(l).length&&(t.contexts={...l,...t.contexts}),u&&(t.level=u),f&&t.type!=="transaction"&&(t.transaction=f)}function u4(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function c4(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function f4(t,e){t.contexts={trace:NL(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:GL(e),...t.sdkProcessingMetadata};const n=Sx(e),i=Uh(n).description;i&&!t.transaction&&t.type==="transaction"&&(t.transaction=i)}function d4(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}let Pr,Lx,jx,vi;function h4(t){const e=re._sentryDebugIds,n=re._debugIds;if(!e&&!n)return{};const i=e?Object.keys(e):[],a=n?Object.keys(n):[];if(vi&&i.length===Lx&&a.length===jx)return vi;Lx=i.length,jx=a.length,vi={},Pr||(Pr={});const l=(u,f)=>{for(const d of u){const h=f[d],m=Pr==null?void 0:Pr[d];if(m&&vi&&h)vi[m[0]]=h,Pr&&(Pr[d]=[m[0],h]);else if(h){const y=t(d);for(let b=y.length-1;b>=0;b--){const v=y[b],w=v==null?void 0:v.filename;if(w&&vi&&Pr){vi[w]=h,Pr[d]=[w,h];break}}}}};return e&&l(i,e),n&&l(a,n),vi}function p4(t,e,n,i,a,l){const{normalizeDepth:u=3,normalizeMaxBreadth:f=1e3}=t,d={...e,event_id:e.event_id||n.event_id||Un(),timestamp:e.timestamp||ll()},h=n.integrations||t.integrations.map(C=>C.name);m4(d,t),b4(d,h),a&&a.emit("applyFrameMetadata",e),e.type===void 0&&g4(d,t.stackParser);const m=x4(i,n.captureContext);n.mechanism&&ba(d,n.mechanism);const y=a?a.getEventProcessors():[],b=oL().getScopeData();if(l){const C=l.getScopeData();Nx(b,C)}if(m){const C=m.getScopeData();Nx(b,C)}const v=[...n.attachments||[],...b.attachments];v.length&&(n.attachments=v),o4(d,b);const w=[...y,...b.eventProcessors];return a4(w,d,n).then(C=>(C&&y4(C),typeof u=="number"&&u>0?v4(C,u,f):C))}function m4(t,e){var f,d;const{environment:n,release:i,dist:a,maxValueLength:l}=e;t.environment=t.environment||n||Ih,!t.release&&i&&(t.release=i),!t.dist&&a&&(t.dist=a);const u=t.request;u!=null&&u.url&&l&&(u.url=Nh(u.url,l)),l&&((d=(f=t.exception)==null?void 0:f.values)==null||d.forEach(h=>{h.value&&(h.value=Nh(h.value,l))}))}function g4(t,e){var i,a;const n=h4(e);(a=(i=t.exception)==null?void 0:i.values)==null||a.forEach(l=>{var u,f;(f=(u=l.stacktrace)==null?void 0:u.frames)==null||f.forEach(d=>{d.filename&&(d.debug_id=n[d.filename])})})}function y4(t){var i,a;const e={};if((a=(i=t.exception)==null?void 0:i.values)==null||a.forEach(l=>{var u,f;(f=(u=l.stacktrace)==null?void 0:u.frames)==null||f.forEach(d=>{d.debug_id&&(d.abs_path?e[d.abs_path]=d.debug_id:d.filename&&(e[d.filename]=d.debug_id),delete d.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([l,u])=>{n.push({type:"sourcemap",code_file:l,debug_id:u})})}function b4(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function v4(t,e,n){var a,l;if(!t)return null;const i={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(u=>({...u,...u.data&&{data:Ir(u.data,e,n)}}))},...t.user&&{user:Ir(t.user,e,n)},...t.contexts&&{contexts:Ir(t.contexts,e,n)},...t.extra&&{extra:Ir(t.extra,e,n)}};return(a=t.contexts)!=null&&a.trace&&i.contexts&&(i.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(i.contexts.trace.data=Ir(t.contexts.trace.data,e,n))),t.spans&&(i.spans=t.spans.map(u=>({...u,...u.data&&{data:Ir(u.data,e,n)}}))),(l=t.contexts)!=null&&l.flags&&i.contexts&&(i.contexts.flags=Ir(t.contexts.flags,3,n)),i}function x4(t,e){if(!e)return t;const n=t?t.clone():new xr;return n.update(e),n}function w4(t){if(t)return S4(t)?{captureContext:t}:T4(t)?{captureContext:t}:t}function S4(t){return t instanceof xr||typeof t=="function"}const E4=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function T4(t){return Object.keys(t).some(e=>E4.includes(e))}function Oc(t,e){return bi().captureException(t,w4(e))}function zx(t,e){return bi().captureEvent(t,e)}function C4(t,e){wa().setContext(t,e)}function Bx(t){const e=wa(),n=bi(),{userAgent:i}=re.navigator||{},a=ZN({user:n.getUser()||e.getUser(),...i&&{userAgent:i},...t}),l=e.getSession();return(l==null?void 0:l.status)==="ok"&&va(l,{status:"exited"}),Ux(),e.setSession(a),a}function Ux(){const t=wa(),n=bi().getSession()||t.getSession();n&&JN(n),Ix(),t.setSession()}function Ix(){const t=wa(),e=en(),n=t.getSession();n&&e&&e.captureSession(n)}function Px(t=!1){if(t){Ux();return}Ix()}const _4="7";function A4(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function R4(t){return`${A4(t)}${t.projectId}/envelope/`}function O4(t,e){const n={sentry_version:_4};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function k4(t,e,n){return e||`${R4(t)}?${O4(t,n)}`}const qx=[];function D4(t){const e={};return t.forEach(n=>{const{name:i}=n,a=e[i];a&&!a.isDefaultInstance&&n.isDefaultInstance||(e[i]=n)}),Object.values(e)}function M4(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(a=>{a.isDefaultInstance=!0});let i;if(Array.isArray(n))i=[...e,...n];else if(typeof n=="function"){const a=n(e);i=Array.isArray(a)?a:[a]}else i=e;return D4(i)}function N4(t,e){const n={};return e.forEach(i=>{i&&Vx(t,i,n)}),n}function Fx(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function Vx(t,e,n){if(n[e.name]){Mt&&Ct.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!qx.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),qx.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const i=e.preprocessEvent.bind(e);t.on("preprocessEvent",(a,l)=>i(a,l,t))}if(typeof e.processEvent=="function"){const i=e.processEvent.bind(e),a=Object.assign((l,u)=>i(l,u,t),{id:e.name});t.addEventProcessor(a)}Mt&&Ct.log(`Integration installed: ${e.name}`)}function P7(t){return t}function L4(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function j4(t,e,n,i){const a={};return e!=null&&e.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),n&&i&&(a.dsn=cl(i)),Sa(a,[L4(t)])}function Hx(t,e){const n=e??z4(t)??[];if(n.length===0)return;const i=t.getOptions(),a=j4(n,i._metadata,i.tunnel,t.getDsn());Gx().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(a)}function z4(t){return Gx().get(t)}function Gx(){return ma("clientToLogBufferMap",()=>new WeakMap)}function B4(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function U4(t,e,n,i){const a={};return e!=null&&e.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),n&&i&&(a.dsn=cl(i)),Sa(a,[B4(t)])}function Yx(t,e){const n=e??I4(t)??[];if(n.length===0)return;const i=t.getOptions(),a=U4(n,i._metadata,i.tunnel,t.getDsn());Kx().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(a)}function I4(t){return Kx().get(t)}function Kx(){return ma("clientToMetricBufferMap",()=>new WeakMap)}const Gh=Symbol.for("SentryBufferFullError");function Yh(t=100){const e=new Set;function n(){return e.size<t}function i(u){e.delete(u)}function a(u){if(!n())return Vh(Gh);const f=u();return e.add(f),f.then(()=>i(f),()=>i(f)),f}function l(u){if(!e.size)return Ac(!0);const f=Promise.allSettled(Array.from(e)).then(()=>!0);if(!u)return f;const d=[f,new Promise(h=>setTimeout(()=>h(!1),u))];return Promise.race(d)}return{get $(){return Array.from(e)},add:a,drain:l}}const P4=60*1e3;function q4(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${t}`);return isNaN(i)?P4:i-e}function F4(t,e){return t[e]||t.all||0}function V4(t,e,n=Date.now()){return F4(t,e)>n}function H4(t,{statusCode:e,headers:n},i=Date.now()){const a={...t},l=n==null?void 0:n["x-sentry-rate-limits"],u=n==null?void 0:n["retry-after"];if(l)for(const f of l.trim().split(",")){const[d,h,,,m]=f.split(":",5),y=parseInt(d,10),b=(isNaN(y)?60:y)*1e3;if(!h)a.all=i+b;else for(const v of h.split(";"))v==="metric_bucket"?(!m||m.split(";").includes("custom"))&&(a[v]=i+b):a[v]=i+b}else u?a.all=i+q4(u,i):e===429&&(a.all=i+60*1e3);return a}const $x=64;function G4(t,e,n=Yh(t.bufferSize||$x)){let i={};const a=u=>n.drain(u);function l(u){const f=[];if(Rx(u,(y,b)=>{const v=Ox(b);V4(i,v)?t.recordDroppedEvent("ratelimit_backoff",v):f.push(y)}),f.length===0)return Promise.resolve({});const d=Sa(u[0],f),h=y=>{Rx(d,(b,v)=>{t.recordDroppedEvent(y,Ox(v))})},m=()=>e({body:JL(d)}).then(y=>(y.statusCode!==void 0&&(y.statusCode<200||y.statusCode>=300)&&Mt&&Ct.warn(`Sentry responded with status code ${y.statusCode} to sent event.`),i=H4(i,y),y),y=>{throw h("network_error"),Mt&&Ct.error("Encountered error running transport request:",y),y});return n.add(m).then(y=>y,y=>{if(y===Gh)return Mt&&Ct.error("Skipped sending event because buffer is full."),h("queue_overflow"),Promise.resolve({});throw y})}return{send:l,flush:a}}function Y4(t,e,n){const i=[{type:"client_report"},{timestamp:ll(),discarded_events:t}];return Sa(e?{dsn:e}:{},[i])}function Xx(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n!=null&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function K4(t){var d;const{trace_id:e,parent_span_id:n,span_id:i,status:a,origin:l,data:u,op:f}=((d=t.contexts)==null?void 0:d.trace)??{};return{data:u??{},description:t.transaction,op:f,parent_span_id:n,span_id:i??"",start_timestamp:t.start_timestamp??0,status:a,timestamp:t.timestamp,trace_id:e??"",origin:l,profile_id:u==null?void 0:u[hx],exclusive_time:u==null?void 0:u[px],measurements:t.measurements,is_segment:!0}}function $4(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[hx]:t.profile_id},...t.exclusive_time&&{[px]:t.exclusive_time}}}},measurements:t.measurements}}const Qx="Not capturing exception because it's already been captured.",Zx="Discarded session because of missing or non-string release",Jx=Symbol.for("SentryInternalError"),Wx=Symbol.for("SentryDoNotSendEventError"),X4=5e3;function kc(t){return{message:t,[Jx]:!0}}function Kh(t){return{message:t,[Wx]:!0}}function tw(t){return!!t&&typeof t=="object"&&Jx in t}function ew(t){return!!t&&typeof t=="object"&&Wx in t}function nw(t,e,n,i,a){let l=0,u,f=!1;t.on(n,()=>{l=0,clearTimeout(u),f=!1}),t.on(e,d=>{l+=i(d),l>=8e5?a(t):f||(f=!0,u=setTimeout(()=>{a(t)},X4))}),t.on("flush",()=>{a(t)})}class Q4{constructor(e){var i,a,l;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Yh(((i=e.transportOptions)==null?void 0:i.bufferSize)??$x),e.dsn?this._dsn=DL(e.dsn):Mt&&Ct.warn("No DSN provided, client will not send events."),this._dsn){const u=k4(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:u})}this._options.enableLogs=this._options.enableLogs??((a=this._options._experiments)==null?void 0:a.enableLogs),this._options.enableLogs&&nw(this,"afterCaptureLog","flushLogs",t5,Hx),(this._options.enableMetrics??((l=this._options._experiments)==null?void 0:l.enableMetrics)??!0)&&nw(this,"afterCaptureMetric","flushMetrics",W4,Yx)}captureException(e,n,i){const a=Un();if(sx(e))return Mt&&Ct.log(Qx),a;const l={event_id:a,...n};return this._process(()=>this.eventFromException(e,l).then(u=>this._captureEvent(u,l,i)).then(u=>u),"error"),l.event_id}captureMessage(e,n,i,a){const l={event_id:Un(),...i},u=Oh(e)?e:String(e),f=Ec(e),d=f?this.eventFromMessage(u,n,l):this.eventFromException(e,l);return this._process(()=>d.then(h=>this._captureEvent(h,l,a)),f?"unknown":"error"),l.event_id}captureEvent(e,n,i){const a=Un();if(n!=null&&n.originalException&&sx(n.originalException))return Mt&&Ct.log(Qx),a;const l={event_id:a,...n},u=e.sdkProcessingMetadata||{},f=u.capturedSpanScope,d=u.capturedSpanIsolationScope,h=rw(e.type);return this._process(()=>this._captureEvent(e,l,f||i,d),h),l.event_id}captureSession(e){this.sendSession(e),va(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const n=this._transport;if(!n)return!0;this.emit("flush");const i=await this._isClientDoneProcessing(e),a=await n.flush(e);return i&&a}async close(e){const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];Vx(this,e,this._integrations),n||Fx(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let i=s4(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])i=ZL(i,t4(a));this.sendEnvelope(i).then(a=>this.emit("afterSendEvent",e,a))}sendSession(e){const{release:n,environment:i=Ih}=this._options;if("aggregates"in e){const l=e.attrs||{};if(!l.release&&!n){Mt&&Ct.warn(Zx);return}l.release=l.release||n,l.environment=l.environment||i,e.attrs=l}else{if(!e.release&&!n){Mt&&Ct.warn(Zx);return}e.release=e.release||n,e.environment=e.environment||i}this.emit("beforeSendSession",e);const a=i4(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(a)}recordDroppedEvent(e,n,i=1){if(this._options.sendClientReports){const a=`${e}:${n}`;Mt&&Ct.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}on(e,n){const i=this._hooks[e]=this._hooks[e]||new Set,a=(...l)=>n(...l);return i.add(a),()=>{i.delete(a)}}emit(e,...n){const i=this._hooks[e];i&&i.forEach(a=>a(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(n){return Mt&&Ct.error("Error while sending envelope:",n),{}}return Mt&&Ct.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=N4(this,e),Fx(this,e)}_updateSessionFromEvent(e,n){var d,h;let i=n.level==="fatal",a=!1;const l=(d=n.exception)==null?void 0:d.values;if(l){a=!0,i=!1;for(const m of l)if(((h=m.mechanism)==null?void 0:h.handled)===!1){i=!0;break}}const u=e.status==="ok";(u&&e.errors===0||u&&i)&&(va(e,{...i&&{status:"crashed"},errors:e.errors||Number(a||i)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(i=>setTimeout(i,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,i,a){const l=this.getOptions(),u=Object.keys(this._integrations);return!n.integrations&&(u!=null&&u.length)&&(n.integrations=u),this.emit("preprocessEvent",e,n),e.type||a.setLastEventId(e.event_id||n.event_id),p4(l,e,n,i,this,a).then(f=>{if(f===null)return f;this.emit("postprocessEvent",f,n),f.contexts={trace:uL(i),...f.contexts};const d=HL(this,i);return f.sdkProcessingMetadata={dynamicSamplingContext:d,...f.sdkProcessingMetadata},f})}_captureEvent(e,n={},i=bi(),a=wa()){return Mt&&$h(e)&&Ct.log(`Captured error event \`${Xx(e)[0]||"<unknown>"}\``),this._processEvent(e,n,i,a).then(l=>l.event_id,l=>{Mt&&(ew(l)?Ct.log(l.message):tw(l)?Ct.warn(l.message):Ct.warn(l))})}_processEvent(e,n,i,a){const l=this.getOptions(),{sampleRate:u}=l,f=iw(e),d=$h(e),m=`before send for type \`${e.type||"error"}\``,y=typeof u>"u"?void 0:ML(u);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error"),Vh(Kh(`Discarding event because it's not included in the random sample (sampling rate = ${u})`));const b=rw(e.type);return this._prepareEvent(e,n,i,a).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",b),Kh("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;const E=J4(this,l,v,n);return Z4(E,m)}).then(v=>{var C;if(v===null){if(this.recordDroppedEvent("before_send",b),f){const L=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",L)}throw Kh(`${m} returned \`null\`, will not send event.`)}const w=i.getSession()||a.getSession();if(d&&w&&this._updateSessionFromEvent(w,v),f){const _=((C=v.sdkProcessingMetadata)==null?void 0:C.spanCountBeforeProcessing)||0,L=v.spans?v.spans.length:0,R=_-L;R>0&&this.recordDroppedEvent("before_send","span",R)}const E=v.transaction_info;if(f&&E&&v.transaction!==e.transaction){const _="custom";v.transaction_info={...E,source:_}}return this.sendEvent(v,n),v}).then(null,v=>{throw ew(v)||tw(v)?v:(this.captureException(v,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:v}),kc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${v}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(i=>(this._numProcessing--,i),i=>(this._numProcessing--,i===Gh&&this.recordDroppedEvent("queue_overflow",n),i))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,i])=>{const[a,l]=n.split(":");return{reason:a,category:l,quantity:i}})}_flushOutcomes(){Mt&&Ct.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Mt&&Ct.log("No outcomes to send");return}if(!this._dsn){Mt&&Ct.log("No dsn provided, will not send outcomes");return}Mt&&Ct.log("Sending outcomes:",e);const n=Y4(e,this._options.tunnel&&cl(this._dsn));this.sendEnvelope(n)}}function rw(t){return t==="replay_event"?"replay":t||"error"}function Z4(t,e){const n=`${e} must return \`null\` or a valid event.`;if(ol(t))return t.then(i=>{if(!al(i)&&i!==null)throw kc(n);return i},i=>{throw kc(`${e} rejected with ${i}`)});if(!al(t)&&t!==null)throw kc(n);return t}function J4(t,e,n,i){const{beforeSend:a,beforeSendTransaction:l,beforeSendSpan:u,ignoreSpans:f}=e;let d=n;if($h(d)&&a)return a(d,i);if(iw(d)){if(u||f){const h=K4(d);if(f!=null&&f.length&&Cx(h,f))return null;if(u){const m=u(h);m?d=ul(n,$4(m)):Ex()}if(d.spans){const m=[],y=d.spans;for(const v of y){if(f!=null&&f.length&&Cx(v,f)){qL(y,v);continue}if(u){const w=u(v);w?m.push(w):(Ex(),m.push(v))}else m.push(v)}const b=d.spans.length-m.length;b&&t.recordDroppedEvent("before_send","span",b),d.spans=m}}if(l){if(d.spans){const h=d.spans.length;d.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:h}}return l(d,i)}}return d}function $h(t){return t.type===void 0}function iw(t){return t.type==="transaction"}function W4(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+sw(t.attributes)}function t5(t){let e=0;return t.message&&(e+=t.message.length*2),e+sw(t.attributes)}function sw(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*aw(n[0]):Ec(n)?e+=aw(n):e+=100}),e}function aw(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function e5(t,e){e.debug===!0&&(Mt?Ct.enable():ga(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),bi().update(e.initialScope);const i=new t(e);return n5(i),i.init(),i}function n5(t){bi().setClient(t)}function Xh(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",i=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:i,relative:e[5]+n+i}}function r5(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function ow(t,e,n=[e],i="npm"){const a=t._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${e}`,packages:n.map(l=>({name:`${i}:@sentry/${l}`,version:vs})),version:vs}),t._metadata=a}const i5=100;function Cs(t,e){const n=en(),i=wa();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:l=i5}=n.getOptions();if(l<=0)return;const f={timestamp:ll(),...t},d=a?ga(()=>a(f,e)):f;d!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",d,e),i.addBreadcrumb(d,l))}let lw;const s5="FunctionToString",uw=new WeakMap,a5=(()=>({name:s5,setupOnce(){lw=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Mh(this),n=uw.has(en())&&e!==void 0?e:this;return lw.apply(n,t)}}catch{}},setup(t){uw.set(t,!0)}})),o5=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],l5="EventFilters",u5=(t={})=>{let e;return{name:l5,setup(n){const i=n.getOptions();e=cw(t,i)},processEvent(n,i,a){if(!e){const l=a.getOptions();e=cw(t,l)}return f5(n,e)?null:n}}},c5=((t={})=>({...u5(t),name:"InboundFilters"}));function cw(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:o5],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function f5(t,e){if(t.type){if(t.type==="transaction"&&h5(t,e.ignoreTransactions))return Mt&&Ct.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Ts(t)}`),!0}else{if(d5(t,e.ignoreErrors))return Mt&&Ct.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Ts(t)}`),!0;if(y5(t))return Mt&&Ct.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Ts(t)}`),!0;if(p5(t,e.denyUrls))return Mt&&Ct.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Ts(t)}.
Url: ${Dc(t)}`),!0;if(!m5(t,e.allowUrls))return Mt&&Ct.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Ts(t)}.
Url: ${Dc(t)}`),!0}return!1}function d5(t,e){return e!=null&&e.length?Xx(t).some(n=>_c(n,e)):!1}function h5(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?_c(n,e):!1}function p5(t,e){if(!(e!=null&&e.length))return!1;const n=Dc(t);return n?_c(n,e):!1}function m5(t,e){if(!(e!=null&&e.length))return!0;const n=Dc(t);return n?_c(n,e):!0}function g5(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Dc(t){var e,n;try{const i=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(l=>{var u,f,d;return((u=l.mechanism)==null?void 0:u.parent_id)===void 0&&((d=(f=l.stacktrace)==null?void 0:f.frames)==null?void 0:d.length)}),a=(n=i==null?void 0:i.stacktrace)==null?void 0:n.frames;return a?g5(a):null}catch{return Mt&&Ct.error(`Cannot extract url for event ${Ts(t)}`),null}}function y5(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(i=>i.stacktrace||i.type&&i.type!=="Error"||i.value):!1}function b5(t,e,n,i,a,l){var f;if(!((f=a.exception)!=null&&f.values)||!l||!yi(l.originalException,Error))return;const u=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;u&&(a.exception.values=Qh(t,e,i,l.originalException,n,a.exception.values,u,0))}function Qh(t,e,n,i,a,l,u,f){if(l.length>=n+1)return l;let d=[...l];if(yi(i[a],Error)){fw(u,f);const h=t(e,i[a]),m=d.length;dw(h,a,m,f),d=Qh(t,e,n,i[a],a,[h,...d],h,m)}return Array.isArray(i.errors)&&i.errors.forEach((h,m)=>{if(yi(h,Error)){fw(u,f);const y=t(e,h),b=d.length;dw(y,`errors[${m}]`,b,f),d=Qh(t,e,n,h,a,[y,...d],y,b)}}),d}function fw(t,e){t.mechanism={handled:!0,type:"auto.core.linked_errors",...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function dw(t,e,n,i){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:i}}function v5(t){const e="console";ws(e,t),Ss(e,x5)}function x5(){"console"in re&&CN.forEach(function(t){t in re.console&&An(re.console,t,function(e){return xc[t]=e,function(...n){ar("console",{args:n,level:t});const a=xc[t];a==null||a.apply(re.console,n)}})})}function w5(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const S5="Dedupe",E5=(()=>{let t;return{name:S5,processEvent(e){if(e.type)return e;try{if(T5(e,t))return Mt&&Ct.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}});function T5(t,e){return e?!!(C5(t,e)||_5(t,e)):!1}function C5(t,e){const n=t.message,i=e.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!pw(t,e)||!hw(t,e))}function _5(t,e){const n=mw(e),i=mw(t);return!(!n||!i||n.type!==i.type||n.value!==i.value||!pw(t,e)||!hw(t,e))}function hw(t,e){let n=Gv(t),i=Gv(e);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(let a=0;a<i.length;a++){const l=i[a],u=n[a];if(l.filename!==u.filename||l.lineno!==u.lineno||l.colno!==u.colno||l.function!==u.function)return!1}return!0}function pw(t,e){let n=t.fingerprint,i=e.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}}function mw(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function gw(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const dl=re;function A5(){return"history"in dl&&!!dl.history}function R5(){if(!("fetch"in dl))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Zh(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function O5(){var n;if(typeof EdgeRuntime=="string")return!0;if(!R5())return!1;if(Zh(dl.fetch))return!0;let t=!1;const e=dl.document;if(e&&typeof e.createElement=="function")try{const i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i),(n=i.contentWindow)!=null&&n.fetch&&(t=Zh(i.contentWindow.fetch)),e.head.removeChild(i)}catch(i){Mt&&Ct.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return t}function k5(t,e){const n="fetch";ws(n,t),Ss(n,()=>D5(void 0,e))}function D5(t,e=!1){e&&!O5()||An(re,"fetch",function(n){return function(...i){const a=new Error,{method:l,url:u}=M5(i),f={args:i,fetchData:{method:l,url:u},startTimestamp:Ur()*1e3,virtualError:a,headers:N5(i)};return ar("fetch",{...f}),n.apply(re,i).then(async d=>(ar("fetch",{...f,endTimestamp:Ur()*1e3,response:d}),d),d=>{if(ar("fetch",{...f,endTimestamp:Ur()*1e3,error:d}),Rh(d)&&d.stack===void 0&&(d.stack=a.stack,Es(d,"framesToPop",1)),d instanceof TypeError&&(d.message==="Failed to fetch"||d.message==="Load failed"||d.message==="NetworkError when attempting to fetch resource."))try{const h=new URL(f.fetchData.url);d.message=`${d.message} (${h.host})`}catch{}throw d})}})}function Jh(t,e){return!!t&&typeof t=="object"&&!!t[e]}function yw(t){return typeof t=="string"?t:t?Jh(t,"url")?t.url:t.toString?t.toString():"":""}function M5(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,i]=t;return{url:yw(n),method:Jh(i,"method")?String(i.method).toUpperCase():"GET"}}const e=t[0];return{url:yw(e),method:Jh(e,"method")?String(e.method).toUpperCase():"GET"}}function N5(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(FN(e))return new Headers(e.headers)}catch{}}function L5(){return"npm"}const Ee=re;let Wh=0;function bw(){return Wh>0}function j5(){Wh++,setTimeout(()=>{Wh--})}function Ea(t,e={}){function n(a){return typeof a=="function"}if(!n(t))return t;try{const a=t.__sentry_wrapped__;if(a)return typeof a=="function"?a:t;if(Mh(t))return t}catch{return t}const i=function(...a){try{const l=a.map(u=>Ea(u,e));return t.apply(this,l)}catch(l){throw j5(),lL(u=>{u.addEventProcessor(f=>(e.mechanism&&(jh(f,void 0),ba(f,e.mechanism)),f.extra={...f.extra,arguments:a},f)),Oc(l)}),l}};try{for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=t[a])}catch{}Wv(i,t),Es(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return t.name}})}catch{}return i}function z5(){const t=Dh(),{referrer:e}=Ee.document||{},{userAgent:n}=Ee.navigator||{},i={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:i}}function tp(t,e){const n=np(t,e),i={type:q5(e),value:F5(e)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function B5(t,e,n,i){const a=en(),l=a==null?void 0:a.getOptions().normalizeDepth,u=K5(e),f={__serialized__:Ax(e,l)};if(u)return{exception:{values:[tp(t,u)]},extra:f};const d={exception:{values:[{type:Tc(e)?e.constructor.name:i?"UnhandledRejection":"Error",value:G5(e,{isUnhandledRejection:i})}]},extra:f};if(n){const h=np(t,n);h.length&&(d.exception.values[0].stacktrace={frames:h})}return d}function ep(t,e){return{exception:{values:[tp(t,e)]}}}function np(t,e){const n=e.stacktrace||e.stack||"",i=I5(e),a=P5(e);try{return t(n,i,a)}catch{}return[]}const U5=/Minified React error #\d+;/i;function I5(t){return t&&U5.test(t.message)?1:0}function P5(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function vw(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function q5(t){const e=t==null?void 0:t.name;return!e&&vw(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function F5(t){const e=t==null?void 0:t.message;return vw(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function V5(t,e,n,i){const a=(n==null?void 0:n.syntheticException)||void 0,l=rp(t,e,a,i);return ba(l),l.level="error",n!=null&&n.event_id&&(l.event_id=n.event_id),Ac(l)}function H5(t,e,n="info",i,a){const l=(i==null?void 0:i.syntheticException)||void 0,u=ip(t,e,l,a);return u.level=n,i!=null&&i.event_id&&(u.event_id=i.event_id),Ac(u)}function rp(t,e,n,i,a){let l;if(Xv(e)&&e.error)return ep(t,e.error);if(Qv(e)||UN(e)){const u=e;if("stack"in e)l=ep(t,e);else{const f=u.name||(Qv(u)?"DOMError":"DOMException"),d=u.message?`${f}: ${u.message}`:f;l=ip(t,d,n,i),jh(l,d)}return"code"in u&&(l.tags={...l.tags,"DOMException.code":`${u.code}`}),l}return Rh(e)?ep(t,e):al(e)||Tc(e)?(l=B5(t,e,n,a),ba(l,{synthetic:!0}),l):(l=ip(t,e,n,i),jh(l,`${e}`),ba(l,{synthetic:!0}),l)}function ip(t,e,n,i){const a={};if(i&&n){const l=np(t,n);l.length&&(a.exception={values:[{value:e,stacktrace:{frames:l}}]}),ba(a,{synthetic:!0})}if(Oh(e)){const{__sentry_template_string__:l,__sentry_template_values__:u}=e;return a.logentry={message:l,params:u},a}return a.message=e,a}function G5(t,{isUnhandledRejection:e}){const n=YN(t),i=e?"promise rejection":"exception";return Xv(t)?`Event \`ErrorEvent\` captured as ${i} with message \`${t.message}\``:Tc(t)?`Event \`${Y5(t)}\` (type=${t.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function Y5(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function K5(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}class $5 extends Q4{constructor(e){var m;const n=X5(e),i=Ee.SENTRY_SDK_SOURCE||L5();ow(n,"browser",["browser"],i),(m=n._metadata)!=null&&m.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:a,sendClientReports:l,enableLogs:u,_experiments:f,enableMetrics:d}=this._options,h=d??(f==null?void 0:f.enableMetrics)??!0;Ee.document&&(l||u||h)&&Ee.document.addEventListener("visibilitychange",()=>{Ee.document.visibilityState==="hidden"&&(l&&this._flushOutcomes(),u&&Hx(this),h&&Yx(this))}),a&&this.on("beforeSendSession",r5)}eventFromException(e,n){return V5(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",i){return H5(this._options.stackParser,e,n,i,this._options.attachStacktrace)}_prepareEvent(e,n,i,a){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,i,a)}}function X5(t){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=Ee.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const Q5=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,nn=re,Z5=1e3;let xw,sp,ap;function J5(t){ws("dom",t),Ss("dom",W5)}function W5(){if(!nn.document)return;const t=ar.bind(null,"dom"),e=ww(t,!0);nn.document.addEventListener("click",e,!1),nn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var l,u;const a=(l=nn[n])==null?void 0:l.prototype;(u=a==null?void 0:a.hasOwnProperty)!=null&&u.call(a,"addEventListener")&&(An(a,"addEventListener",function(f){return function(d,h,m){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},b=y[d]=y[d]||{refCount:0};if(!b.handler){const v=ww(t);b.handler=v,f.call(this,d,v,m)}b.refCount++}catch{}return f.call(this,d,h,m)}}),An(a,"removeEventListener",function(f){return function(d,h,m){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__||{},b=y[d];b&&(b.refCount--,b.refCount<=0&&(f.call(this,d,b.handler,m),b.handler=void 0,delete y[d]),Object.keys(y).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return f.call(this,d,h,m)}}))})}function tj(t){if(t.type!==sp)return!1;try{if(!t.target||t.target._sentryId!==ap)return!1}catch{}return!0}function ej(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function ww(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const i=nj(n);if(ej(n.type,i))return;Es(n,"_sentryCaptured",!0),i&&!i._sentryId&&Es(i,"_sentryId",Un());const a=n.type==="keypress"?"input":n.type;tj(n)||(t({event:n,name:a,global:e}),sp=n.type,ap=i?i._sentryId:void 0),clearTimeout(xw),xw=nn.setTimeout(()=>{ap=void 0,sp=void 0},Z5)}}function nj(t){try{return t.target}catch{return null}}let Mc;function Sw(t){const e="history";ws(e,t),Ss(e,rj)}function rj(){if(nn.addEventListener("popstate",()=>{const e=nn.location.href,n=Mc;if(Mc=e,n===e)return;ar("history",{from:n,to:e})}),!A5())return;function t(e){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const a=Mc,l=ij(String(i));if(Mc=l,a===l)return e.apply(this,n);ar("history",{from:a,to:l})}return e.apply(this,n)}}An(nn.history,"pushState",t),An(nn.history,"replaceState",t)}function ij(t){try{return new URL(t,nn.location.origin).toString()}catch{return t}}const Nc={};function sj(t){const e=Nc[t];if(e)return e;let n=nn[t];if(Zh(n))return Nc[t]=n.bind(nn);const i=nn.document;if(i&&typeof i.createElement=="function")try{const a=i.createElement("iframe");a.hidden=!0,i.head.appendChild(a);const l=a.contentWindow;l!=null&&l[t]&&(n=l[t]),i.head.removeChild(a)}catch(a){Q5&&Ct.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,a)}return n&&(Nc[t]=n.bind(nn))}function aj(t){Nc[t]=void 0}const hl="__sentry_xhr_v3__";function oj(t){ws("xhr",t),Ss("xhr",lj)}function lj(){if(!nn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,i){const a=new Error,l=Ur()*1e3,u=Br(i[0])?i[0].toUpperCase():void 0,f=uj(i[1]);if(!u||!f)return e.apply(n,i);n[hl]={method:u,url:f,request_headers:{}},u==="POST"&&f.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const d=()=>{const h=n[hl];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const m={endTimestamp:Ur()*1e3,startTimestamp:l,xhr:n,virtualError:a};ar("xhr",m)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,m,y){return d(),h.apply(m,y)}}):n.addEventListener("readystatechange",d),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,m,y){const[b,v]=y,w=m[hl];return w&&Br(b)&&Br(v)&&(w.request_headers[b.toLowerCase()]=v),h.apply(m,y)}}),e.apply(n,i)}}),t.send=new Proxy(t.send,{apply(e,n,i){const a=n[hl];if(!a)return e.apply(n,i);i[0]!==void 0&&(a.body=i[0]);const l={startTimestamp:Ur()*1e3,xhr:n};return ar("xhr",l),e.apply(n,i)}})}function uj(t){if(Br(t))return t;try{return t.toString()}catch{}}const cj=40;function fj(t,e=sj("fetch")){let n=0,i=0;async function a(l){const u=l.body.length;n+=u,i++;const f={body:l.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&i<15,...t.fetchOptions};try{const d=await e(t.url,f);return{statusCode:d.status,headers:{"x-sentry-rate-limits":d.headers.get("X-Sentry-Rate-Limits"),"retry-after":d.headers.get("Retry-After")}}}catch(d){throw aj("fetch"),d}finally{n-=u,i--}}return G4(t,a,Yh(t.bufferSize||cj))}const Lc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,dj=30,hj=50;function op(t,e,n,i){const a={filename:t,function:e==="<anonymous>"?xs:e,in_app:!0};return n!==void 0&&(a.lineno=n),i!==void 0&&(a.colno=i),a}const pj=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,mj=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gj=/\((\S*)(?::(\d+))(?::(\d+))\)/,yj=/at (.+?) ?\(data:(.+?),/,bj=[dj,t=>{const e=t.match(yj);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=pj.exec(t);if(n){const[,a,l,u]=n;return op(a,xs,+l,+u)}const i=mj.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){const f=gj.exec(i[2]);f&&(i[2]=f[1],i[3]=f[2],i[4]=f[3])}const[l,u]=Ew(i[1]||xs,i[2]);return op(u,l,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],vj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,wj=Hv(...[bj,[hj,t=>{const e=vj.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const l=xj.exec(e[3]);l&&(e[1]=e[1]||"eval",e[3]=l[1],e[4]=l[2],e[5]="")}let i=e[3],a=e[1]||xs;return[a,i]=Ew(a,i),op(i,a,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),Ew=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,i=t.indexOf("safari-web-extension")!==-1;return n||i?[t.indexOf("@")!==-1?t.split("@")[0]:xs,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},jc=1024,Sj="Breadcrumbs",Ej=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Sj,setup(n){e.console&&v5(_j(n)),e.dom&&J5(Cj(n,e.dom)),e.xhr&&oj(Aj(n)),e.fetch&&k5(Rj(n)),e.history&&Sw(Oj(n)),e.sentry&&n.on("beforeSendEvent",Tj(n))}}});function Tj(t){return function(n){en()===t&&Cs({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ts(n)},{event:n})}}function Cj(t,e){return function(i){if(en()!==t)return;let a,l,u=typeof e=="object"?e.serializeAttribute:void 0,f=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;f&&f>jc&&(Lc&&Ct.warn(`\`dom.maxStringLength\` cannot exceed ${jc}, but a value of ${f} was configured. Sentry will use ${jc} instead.`),f=jc),typeof u=="string"&&(u=[u]);try{const h=i.event,m=kj(h)?h.target:h;a=Jv(m,{keyAttrs:u,maxStringLength:f}),l=GN(m)}catch{a="<unknown>"}if(a.length===0)return;const d={category:`ui.${i.name}`,message:a};l&&(d.data={"ui.component_name":l}),Cs(d,{event:i.event,name:i.name,global:i.global})}}function _j(t){return function(n){if(en()!==t)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:w5(n.level),message:rx(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${rx(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;Cs(i,{input:n.args,level:n.level})}}function Aj(t){return function(n){if(en()!==t)return;const{startTimestamp:i,endTimestamp:a}=n,l=n.xhr[hl];if(!i||!a||!l)return;const{method:u,url:f,status_code:d,body:h}=l,m={method:u,url:f,status_code:d},y={xhr:n.xhr,input:h,startTimestamp:i,endTimestamp:a},b={category:"xhr",data:m,type:"http",level:gw(d)};t.emit("beforeOutgoingRequestBreadcrumb",b,y),Cs(b,y)}}function Rj(t){return function(n){if(en()!==t)return;const{startTimestamp:i,endTimestamp:a}=n;if(a&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const l=n.fetchData,u={data:n.error,input:n.args,startTimestamp:i,endTimestamp:a},f={category:"fetch",data:l,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",f,u),Cs(f,u)}else{const l=n.response,u={...n.fetchData,status_code:l==null?void 0:l.status};n.fetchData.request_body_size,n.fetchData.response_body_size,l==null||l.status;const f={input:n.args,response:l,startTimestamp:i,endTimestamp:a},d={category:"fetch",data:u,type:"http",level:gw(u.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",d,f),Cs(d,f)}}}function Oj(t){return function(n){if(en()!==t)return;let i=n.from,a=n.to;const l=Xh(Ee.location.href);let u=i?Xh(i):void 0;const f=Xh(a);u!=null&&u.path||(u=l),l.protocol===f.protocol&&l.host===f.host&&(a=f.relative),l.protocol===u.protocol&&l.host===u.host&&(i=u.relative),Cs({category:"navigation",data:{from:i,to:a}})}}function kj(t){return!!t&&!!t.target}const Dj=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Mj="BrowserApiErrors",Nj=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:Mj,setupOnce(){e.setTimeout&&An(Ee,"setTimeout",Tw),e.setInterval&&An(Ee,"setInterval",Tw),e.requestAnimationFrame&&An(Ee,"requestAnimationFrame",Lj),e.XMLHttpRequest&&"XMLHttpRequest"in Ee&&An(XMLHttpRequest.prototype,"send",jj);const n=e.eventTarget;n&&(Array.isArray(n)?n:Dj).forEach(a=>zj(a,e))}}});function Tw(t){return function(...e){const n=e[0];return e[0]=Ea(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${gi(t)}`}}),t.apply(this,e)}}function Lj(t){return function(e){return t.apply(this,[Ea(e,{mechanism:{data:{handler:gi(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function jj(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(a=>{a in n&&typeof n[a]=="function"&&An(n,a,function(l){const u={mechanism:{data:{handler:gi(l)},handled:!1,type:`auto.browser.browserapierrors.xhr.${a}`}},f=Mh(l);return f&&(u.mechanism.data.handler=gi(f)),Ea(l,u)})}),t.apply(this,e)}}function zj(t,e){var a,l;const i=(a=Ee[t])==null?void 0:a.prototype;(l=i==null?void 0:i.hasOwnProperty)!=null&&l.call(i,"addEventListener")&&(An(i,"addEventListener",function(u){return function(f,d,h){try{Bj(d)&&(d.handleEvent=Ea(d.handleEvent,{mechanism:{data:{handler:gi(d),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&Uj(this,f,d),u.apply(this,[f,Ea(d,{mechanism:{data:{handler:gi(d),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),h])}}),An(i,"removeEventListener",function(u){return function(f,d,h){try{const m=d.__sentry_wrapped__;m&&u.call(this,f,m,h)}catch{}return u.call(this,f,d,h)}}))}function Bj(t){return typeof t.handleEvent=="function"}function Uj(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const Ij=()=>({name:"BrowserSession",setupOnce(){if(typeof Ee.document>"u"){Lc&&Ct.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Bx({ignoreDuration:!0}),Px(),Sw(({from:t,to:e})=>{t!==void 0&&t!==e&&(Bx({ignoreDuration:!0}),Px())})}}),Pj="GlobalHandlers",qj=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Pj,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Fj(n),Cw("onerror")),e.onunhandledrejection&&(Vj(n),Cw("onunhandledrejection"))}}});function Fj(t){LN(e=>{const{stackParser:n,attachStacktrace:i}=_w();if(en()!==t||bw())return;const{msg:a,url:l,line:u,column:f,error:d}=e,h=Yj(rp(n,d||a,void 0,i,!1),l,u,f);h.level="error",zx(h,{originalException:d,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Vj(t){zN(e=>{const{stackParser:n,attachStacktrace:i}=_w();if(en()!==t||bw())return;const a=Hj(e),l=Ec(a)?Gj(a):rp(n,a,void 0,i,!0);l.level="error",zx(l,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Hj(t){if(Ec(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Gj(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Yj(t,e,n,i){const a=t.exception=t.exception||{},l=a.values=a.values||[],u=l[0]=l[0]||{},f=u.stacktrace=u.stacktrace||{},d=f.frames=f.frames||[],h=i,m=n,y=Kj(e)??Dh();return d.length===0&&d.push({colno:h,filename:y,function:xs,in_app:!0,lineno:m}),t}function Cw(t){Lc&&Ct.log(`Global Handler attached: ${t}`)}function _w(){const t=en();return(t==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Kj(t){if(!(!Br(t)||t.length===0)){if(t.startsWith("data:")){const e=t.match(/^data:([^;]+)/),n=e?e[1]:"text/javascript",i=t.includes("base64,");return`<data:${n}${i?",base64":""}>`}return t}}const $j=()=>({name:"HttpContext",preprocessEvent(t){var i;if(!Ee.navigator&&!Ee.location&&!Ee.document)return;const e=z5(),n={...e.headers,...(i=t.request)==null?void 0:i.headers};t.request={...e,...t.request,headers:n}}}),Xj="cause",Qj=5,Zj="LinkedErrors",Jj=((t={})=>{const e=t.limit||Qj,n=t.key||Xj;return{name:Zj,preprocessEvent(i,a,l){const u=l.getOptions();b5(tp,u.stackParser,n,e,i,a)}}});function Wj(){return tz()?(Lc&&ga(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function tz(){var l;if(typeof Ee.window>"u")return!1;const t=Ee;if(t.nw)return!1;const e=t.chrome||t.browser;if(!((l=e==null?void 0:e.runtime)!=null&&l.id))return!1;const n=Dh(),i=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Ee===Ee.top&&i.some(u=>n.startsWith(`${u}://`)))}function ez(t){return[c5(),a5(),Nj(),Ej(),qj(),Jj(),E5(),$j(),Ij()]}function nz(t={}){const e=!t.skipBrowserExtensionCheck&&Wj();let n=t.defaultIntegrations==null?ez():t.defaultIntegrations;const i={...t,enabled:e?!1:t.enabled,stackParser:MN(t.stackParser||wj),integrations:M4({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||fj};return e5($5,i)}function rz(t){const e={...t};return ow(e,"react"),C4("react",{version:B.version}),nz(e)}const iz=({children:t})=>{const{reset:e}=Vb();return N.jsx(EN,{onReset:e,fallback:N.jsx(N.Fragment,{}),onError:n=>{Oc(n,{tags:{embed:!0}})},children:t})},pl={APP_URL:"https://fe.chatbot.bezvabot.cz",BASE_URL:"https://be.chatbot.bezvabot.cz"},_s=me.create({baseURL:pl.BASE_URL,withCredentials:!0});class sz extends Gb{constructor(n){super(n);Wt(this,"axiosInstance",_s)}request(n){return jv(this.config,n,this.axiosInstance)}}const xi=new vN({BASE:pl.BASE_URL,WITH_CREDENTIALS:!0},sz),Aw=t=>{let e;const n=new Set,i=(h,m)=>{const y=typeof h=="function"?h(e):h;if(!Object.is(y,e)){const b=e;e=m??(typeof y!="object"||y===null)?y:Object.assign({},e,y),n.forEach(v=>v(e,b))}},a=()=>e,f={setState:i,getState:a,getInitialState:()=>d,subscribe:h=>(n.add(h),()=>n.delete(h))},d=e=t(i,a,f);return f},az=(t=>t?Aw(t):Aw),oz=t=>t;function lz(t,e=oz){const n=Zo.useSyncExternalStore(t.subscribe,Zo.useCallback(()=>e(t.getState()),[t,e]),Zo.useCallback(()=>e(t.getInitialState()),[t,e]));return Zo.useDebugValue(n),n}const Rw=t=>{const e=az(t),n=i=>lz(e,i);return Object.assign(n,e),n},Ow=(t=>t?Rw(t):Rw);function kw(t,e){let n;try{n=t()}catch{return}return{getItem:a=>{var l;const u=d=>d===null?null:JSON.parse(d,void 0),f=(l=n.getItem(a))!=null?l:null;return f instanceof Promise?f.then(u):u(f)},setItem:(a,l)=>n.setItem(a,JSON.stringify(l,void 0)),removeItem:a=>n.removeItem(a)}}const lp=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(i){return lp(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return lp(i)(n)}}}},ml=Ow(((t,e)=>(n,i,a)=>{let l={storage:kw(()=>localStorage),partialize:E=>E,version:0,merge:(E,C)=>({...C,...E}),...e},u=!1;const f=new Set,d=new Set;let h=l.storage;if(!h)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...E)},i,a);const m=()=>{const E=l.partialize({...i()});return h.setItem(l.name,{state:E,version:l.version})},y=a.setState;a.setState=(E,C)=>(y(E,C),m());const b=t((...E)=>(n(...E),m()),i,a);a.getInitialState=()=>b;let v;const w=()=>{var E,C;if(!h)return;u=!1,f.forEach(L=>{var R;return L((R=i())!=null?R:b)});const _=((C=l.onRehydrateStorage)==null?void 0:C.call(l,(E=i())!=null?E:b))||void 0;return lp(h.getItem.bind(h))(l.name).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==l.version){if(l.migrate){const R=l.migrate(L.state,L.version);return R instanceof Promise?R.then(U=>[!0,U]):[!0,R]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,L.state];return[!1,void 0]}).then(L=>{var R;const[U,G]=L;if(v=l.merge(G,(R=i())!=null?R:b),n(v,!0),U)return m()}).then(()=>{_==null||_(v,void 0),v=i(),u=!0,d.forEach(L=>L(v))}).catch(L=>{_==null||_(void 0,L)})};return a.persist={setOptions:E=>{l={...l,...E},E.storage&&(h=E.storage)},clearStorage:()=>{h==null||h.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>w(),hasHydrated:()=>u,onHydrate:E=>(f.add(E),()=>{f.delete(E)}),onFinishHydration:E=>(d.add(E),()=>{d.delete(E)})},l.skipHydration||w(),v||b})(t=>({data:void 0,setSession:e=>t({data:e})}),{name:"bezvabot-session-store",storage:kw(()=>localStorage),partialize:t=>{if(!t.data)return{setSession:t.setSession};const{...e}=t.data;return{data:e,setSession:t.setSession}}})),Dw=Ow((t,e)=>({data:void 0,actions:{setTenantCode:n=>t(()=>({tenantCode:n})),getTenantCode:()=>e().tenantCode}}));function zc(){const t=Dw(n=>n.tenantCode),e=new URLSearchParams(window.location.search);return t||e.get("tenantCode")}function Mw(){const[t,e]=B.useState(!1);B.useEffect(()=>{if(typeof window>"u")return;const a=new URLSearchParams(window.location.search).get("bezvabot-debug");e(a==="true")},[]);const n=B.useCallback(i=>{if(typeof window>"u")return;const a=new URL(window.location.href);a.searchParams.set("bezvabot-debug",String(i)),window.history.replaceState({},"",a);try{localStorage.removeItem("bezvabot-session-store")}catch(l){console.warn("Nepodařilo se smazat localStorage položku:",l)}window.location.reload()},[]);return{isDebugMode:t,setIsDebugMode:n}}const uz=()=>ic({mutationKey:["statsEventCreate"],mutationFn:async t=>xi.statistics.statisticsControllerCreate(t)}),gl=()=>{const t=zc(),{mutate:e}=uz(),{isDebugMode:n}=Mw();return{fireEvent:(a,l={})=>{n||e({requestBody:{eventType:a,tenantCode:t,properties:{...l,source:window.location.href}}})}}},Nw=t=>({role:sr.USER,messageBlocks:[{type:Bv.TEXT,content:{text:t},order:0}]}),Lw=(t,e)=>{t.setQueryData(["chat"],n=>({...n,messages:[...(n==null?void 0:n.messages)??[],e]}))},jw=(t,e)=>{t.setQueryData(["chat"],n=>({...n,messages:e}))},zw=(t,e)=>{e&&t.setQueryData(["chat"],e)},cz=()=>{const t=zc(),e=fa(),n=ml(l=>l.setSession),{isDebugMode:i}=Mw(),{fireEvent:a}=gl();return ic({mutationKey:["chat-session-init"],mutationFn:async()=>xi.chatSessions.chatSessionsControllerInit({requestBody:{tenantCode:t,isDebugMode:i}}),onSuccess:l=>{e.invalidateQueries({queryKey:["chat"]}),n({token:l.token}),a("fe.chatSession.init")}})},Bw=()=>{const{fireEvent:t}=gl(),e=B.useRef(!1),n=rc({queryKey:["chat"],queryFn:async()=>xi.chatSessions.chatSessionsControllerPutCurrent({requestBody:{currentPageUrl:window.location.href}}),staleTime:6e4});return B.useEffect(()=>{!e.current&&n.isSuccess&&(e.current=!0,t("fe.chatSession.loaded"))},[n.isSuccess,t]),n},fz=()=>{const t=fa();return ic({mutationKey:["resolve-from-message-templates"],mutationFn:async e=>xi.chatSessions.chatSessionsControllerResolveFromMessageTemplates({requestBody:{messageTemplateId:e.messageTemplateId}}),onMutate:async e=>{await t.cancelQueries({queryKey:["chat"]}),await t.cancelQueries({queryKey:["unused-message-templates"]});const n=t.getQueryData(["chat"]),i=t.getQueryData(["unused-message-templates"]);return Lw(t,Nw(e.content)),t.setQueryData(["unused-message-templates"],(a=[])=>a.filter(l=>l.id!==e.messageTemplateId)),{previousData:n,previousTemplates:i}},onSuccess:e=>{jw(t,e)},onError:(e,n,i)=>{if(zw(t,i==null?void 0:i.previousData),i!=null&&i.previousTemplates&&t.setQueryData(["unused-message-templates"],i.previousTemplates),e instanceof il&&e.status===410){t.invalidateQueries({queryKey:["chat"]});return}Oc(e,{tags:{embed:!0}})}})},dz=()=>({...rc({queryKey:["unused-message-templates"],queryFn:async()=>xi.chatSessions.chatSessionsControllerGetUnusedMessageTemplates(),staleTime:6e4})}),hz=()=>{const t=fa();return ic({mutationKey:["send-message"],mutationFn:async e=>xi.chatSessions.chatSessionsControllerGetAiResponse({requestBody:e}),onMutate:async e=>{await t.cancelQueries({queryKey:["chat"]});const n=t.getQueryData(["chat"]);return Lw(t,Nw(e.message)),{previousData:n}},onSuccess:e=>{jw(t,e),t.invalidateQueries({queryKey:["chat"]})},onError:(e,n,i)=>{if(zw(t,i==null?void 0:i.previousData),e instanceof il&&e.status===410){t.invalidateQueries({queryKey:["chat"]});return}Oc(e,{tags:{embed:!0}})}})},wr=()=>{const t=zc(),{fireEvent:e}=gl();return{...rc({queryKey:["tenant",t],queryFn:async()=>{const i=await xi.tenants.tenantsControllerGetByTenantCode({tenantCode:t});return e("fe.tenant.loaded"),i},staleTime:1/0})}};function pz(){const{data:t,isLoading:e}=wr();return B.useEffect(()=>{const n=document.getElementById("chatbot-widget-container"),i=document.getElementById("bezvabot-container");t!=null&&t.chatbotThemeVariables&&n&&Object.entries(t.chatbotThemeVariables).forEach(([a,l])=>{n.style.setProperty(a,l)}),t!=null&&t.chatbotThemeVariables&&i&&Object.entries(t.chatbotThemeVariables).forEach(([a,l])=>{i.style.setProperty(a,l)})},[t==null?void 0:t.chatbotThemeVariables]),{isLoading:e}}let up=null,cp=[];function Uw(t){cp.push(t)}function Iw(t){cp.forEach(e=>e(t)),cp=[]}const mz=({children:t})=>{const{mutateAsync:e}=cz(),n=ml(u=>{var f;return(f=u.data)==null?void 0:f.token}),{data:i,isLoading:a}=wr(),{isLoading:l}=pz();return B.useEffect(()=>{const u=_s.interceptors.request.use(h=>{var y;const m=(y=ml.getState().data)==null?void 0:y.token;return m&&(h.headers=h.headers||{},h.headers.Authorization=`Bearer ${m}`),h},h=>Promise.reject(h)),f=async h=>{var v,w;const m=(v=h.response)==null?void 0:v.status,y=h.config;return!y||((w=y.url)==null?void 0:w.includes("/init"))||m!==401||y._retry?Promise.reject(h):(y._retry=!0,up?new Promise((E,C)=>{Uw(_=>{if(!_)return C(h);y.headers=y.headers||{},y.headers.Authorization=`Bearer ${_}`,E(_s(y))})}):(up=(async()=>{var E;try{await e();const C=((E=ml.getState().data)==null?void 0:E.token)??null;Iw(C)}catch(C){throw Iw(null),C}finally{up=null}})(),new Promise((E,C)=>{Uw(_=>{if(!_)return C(h);y.headers=y.headers||{},y.headers.Authorization=`Bearer ${_}`,E(_s(y))})})))},d=_s.interceptors.response.use(h=>h,f);return()=>{_s.interceptors.request.eject(u),_s.interceptors.response.eject(d)}},[e,n]),!i||a||l?null:t},gz=({tenantCode:t,children:e})=>{const n=Dw(a=>a.actions.setTenantCode),i=zc();return B.useEffect(()=>{n(t)},[t,n]),i?e:null},yz=(t,e=!0)=>({...rc({queryKey:["product",t],queryFn:async()=>xi.products.productsControllerGetProductByDetailUrl(t),staleTime:1/0,enabled:!!t&&e})});function Pw(){const{data:t}=wr();return yz(t?{tenantId:t.id,detailUrl:window.location.href}:void 0,t==null?void 0:t.productEnabled)}function qw(t){return t<0?0:t>1?1:t}function bz(){var l;if(typeof window>"u")return 0;const t=document.documentElement,e=window.scrollY??t.scrollTop??0,n=t.scrollHeight??((l=document.body)==null?void 0:l.scrollHeight)??0,i=t.clientHeight??window.innerHeight??0,a=n-i;return a<=0?1:qw(e/a)}function Fw({storageKey:t,enabled:e=!0,delayMs:n,onFire:i,cancelRef:a,cooldownMs:l,scrollRatio:u,coordinateAcrossTabs:f=!0}){const d=B.useRef(null),h=B.useRef(i);h.current=i;const m=B.useRef(!1),y=`${t}_last_shown_at`,b=`${t}_scheduled_at`,v=typeof u=="number"&&!Number.isNaN(u)?qw(u):null,w=()=>{d.current&&(clearTimeout(d.current),d.current=null)},E=()=>{try{typeof window<"u"&&(window.localStorage.setItem(y,String(Date.now())),window.localStorage.removeItem(b))}catch{}m.current=!0,w()},C=()=>{try{typeof window<"u"&&window.localStorage.removeItem(b)}catch{}w()},_=()=>{if(!(typeof l=="number"&&l>0))return!1;try{const P=typeof window<"u"?window.localStorage.getItem(y):null,K=P?parseInt(P,10):NaN;return Number.isFinite(K)&&Date.now()-K<l}catch{return!1}},L=()=>{try{if(typeof window>"u")return null;const P=window.localStorage.getItem(b),K=P?parseInt(P,10):NaN;return Number.isFinite(K)?K:null}catch{return null}},R=()=>{const P=L();if(P!=null)return P;const K=Date.now();try{typeof window<"u"&&window.localStorage.setItem(b,String(K))}catch{}return K},U=()=>{try{typeof window<"u"&&(window.localStorage.setItem(y,String(Date.now())),window.localStorage.removeItem(b))}catch{}},G=()=>{if(!(typeof n=="number"&&n>=0))return!1;const P=L();return P==null?!1:Date.now()-P>=n},z=()=>v==null?!1:bz()>=v,q=()=>{!e||m.current||a!=null&&a.current||_()||!(G()||z())||(m.current=!0,U(),w(),h.current())},M=()=>{if(!e||m.current||!(typeof n=="number"&&n>=0)||_())return;const P=R(),K=Math.max(0,n-(Date.now()-P));w(),d.current=setTimeout(()=>{q()},K)};return B.useEffect(()=>{if(m.current=!1,!e){C();return}return M(),q(),()=>w()},[e,t,n,l,v]),B.useEffect(()=>{if(typeof window>"u"||!e||v==null)return;let P=null;const K=()=>{P==null&&(P=window.requestAnimationFrame(()=>{P=null,q()}))};return window.addEventListener("scroll",K,{passive:!0}),window.addEventListener("resize",K),q(),()=>{P!=null&&window.cancelAnimationFrame(P),window.removeEventListener("scroll",K),window.removeEventListener("resize",K)}},[e,v,t,l,n]),B.useEffect(()=>{if(!f||typeof window>"u")return;const P=K=>{(K.key===y||K.key===b)&&(M(),q())};return window.addEventListener("storage",P),()=>window.removeEventListener("storage",P)},[e,t,n,l,v,f]),{blockForCooldown:E,clearSchedule:C,reschedule:M}}var In=(t=>(t.WELCOME_NOTIFICATION="WELCOME_NOTIFICATION",t.PRODUCT_DETAIL_NOTIFICATION="PRODUCT_DETAIL_NOTIFICATION",t.CHAT_OPENED="CHAT_OPENED",t.CHAT_CLOSED="CHAT_CLOSED",t))(In||{});const vz=1440*60*1e3,xz="welcome_notification",wz="product_notification",Sz=()=>{var _,L;const{data:t}=wr(),[e,n]=B.useState("CHAT_CLOSED"),i=B.useRef(!1),[a,l]=B.useState(void 0),[u,f]=B.useState(void 0),{fireEvent:d}=gl(),{data:h}=Pw();Fw({delayMs:(t==null?void 0:t.welcomeNotificationDelayMs)??null,cancelRef:i,onFire:()=>{C("WELCOME_NOTIFICATION");try{new Audio("/notification.mp3").play().catch(()=>{})}catch{}},coordinateAcrossTabs:!1,cooldownMs:vz,storageKey:xz,enabled:!(h!=null&&h.notificationSettings)}),Fw({delayMs:(_=h==null?void 0:h.notificationSettings)==null?void 0:_.notificationDelayMs,scrollRatio:(L=h==null?void 0:h.notificationSettings)==null?void 0:L.notificationShowAfterScrollRatio,cancelRef:i,onFire:()=>{C("PRODUCT_DETAIL_NOTIFICATION");try{new Audio("/notification.mp3").play().catch(()=>{})}catch{}},coordinateAcrossTabs:!1,storageKey:wz,enabled:!!(h!=null&&h.notificationSettings)});const m=R=>{l(R),d("fe.chat.welcomeMessage.message-template.click",{messageTemplate:R}),C("CHAT_OPENED")},y=R=>{const{label:U,icon:G}=R;f((G?G+" ":"")+U),C("CHAT_OPENED")},b=R=>{d("fe.chat.welcomeMessage.action-button.click",{actionButton:R}),y(R)},v=R=>{d("fe.chat.productNotification.action-button.click",{actionButton:R}),y(R)},w=()=>l(void 0),E=()=>f(void 0),C=R=>{if(R==="CHAT_OPENED"){i.current=!0;try{typeof window<"u"&&(localStorage.setItem("welcome_notification_last_shown_at",String(Date.now())),localStorage.removeItem("welcome_notification_scheduled_at"))}catch{}}n(R),d("fe.chat.state.change",{state:R})};return B.useEffect(()=>{},[t==null?void 0:t.welcomeNotificationDelayMs]),{chatState:e,onChatStateChange:C,onInitMessageTemplateSelect:m,selectedInitMessageTemplate:a,clearInitMessageTemplateSelect:w,initUserTextMessage:u,clearInitUserMessage:E,onWelcomeMessageActionButtonSelect:b,onProductNotificationButtonSelect:v}},Ez=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},Tz=(t,e)=>({classGroupId:t,validator:e}),Vw=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Bc="-",Hw=[],Cz="arbitrary..",_z=t=>{const e=Rz(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Az(u);const f=u.split(Bc),d=f[0]===""&&f.length>1?1:0;return Gw(f,d,e)},getConflictingClassGroupIds:(u,f)=>{if(f){const d=i[u],h=n[u];return d?h?Ez(h,d):d:h||Hw}return n[u]||Hw}}},Gw=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const h=Gw(t,e+1,l);if(h)return h}const u=n.validators;if(u===null)return;const f=e===0?t.join(Bc):t.slice(e).join(Bc),d=u.length;for(let h=0;h<d;h++){const m=u[h];if(m.validator(f))return m.classGroupId}},Az=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?Cz+i:void 0})(),Rz=t=>{const{theme:e,classGroups:n}=t;return Oz(n,e)},Oz=(t,e)=>{const n=Vw();for(const i in t){const a=t[i];fp(a,n,i,e)}return n},fp=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const u=t[l];kz(u,e,n,i)}},kz=(t,e,n,i)=>{if(typeof t=="string"){Dz(t,e,n);return}if(typeof t=="function"){Mz(t,e,n,i);return}Nz(t,e,n,i)},Dz=(t,e,n)=>{const i=t===""?e:Yw(e,t);i.classGroupId=n},Mz=(t,e,n,i)=>{if(Lz(t)){fp(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(Tz(n,t))},Nz=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let u=0;u<l;u++){const[f,d]=a[u];fp(d,Yw(e,f),n,i)}},Yw=(t,e)=>{let n=t;const i=e.split(Bc),a=i.length;for(let l=0;l<a;l++){const u=i[l];let f=n.nextPart.get(u);f||(f=Vw(),n.nextPart.set(u,f)),n=f}return n},Lz=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,jz=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const a=(l,u)=>{n[l]=u,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in n?n[l]=u:a(l,u)}}},dp="!",Kw=":",zz=[],$w=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),Bz=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const l=[];let u=0,f=0,d=0,h;const m=a.length;for(let E=0;E<m;E++){const C=a[E];if(u===0&&f===0){if(C===Kw){l.push(a.slice(d,E)),d=E+1;continue}if(C==="/"){h=E;continue}}C==="["?u++:C==="]"?u--:C==="("?f++:C===")"&&f--}const y=l.length===0?a:a.slice(d);let b=y,v=!1;y.endsWith(dp)?(b=y.slice(0,-1),v=!0):y.startsWith(dp)&&(b=y.slice(1),v=!0);const w=h&&h>d?h-d:void 0;return $w(l,v,b,w)};if(e){const a=e+Kw,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):$w(zz,!1,u,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},Uz=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let l=0;l<n.length;l++){const u=n[l],f=u[0]==="[",d=e.has(u);f||d?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},Iz=t=>({cache:jz(t.cacheSize),parseClassName:Bz(t),sortModifiers:Uz(t),..._z(t)}),Pz=/\s+/,qz=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,u=[],f=t.trim().split(Pz);let d="";for(let h=f.length-1;h>=0;h-=1){const m=f[h],{isExternal:y,modifiers:b,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:E}=n(m);if(y){d=m+(d.length>0?" "+d:d);continue}let C=!!E,_=i(C?w.substring(0,E):w);if(!_){if(!C){d=m+(d.length>0?" "+d:d);continue}if(_=i(w),!_){d=m+(d.length>0?" "+d:d);continue}C=!1}const L=b.length===0?"":b.length===1?b[0]:l(b).join(":"),R=v?L+dp:L,U=R+_;if(u.indexOf(U)>-1)continue;u.push(U);const G=a(_,C);for(let z=0;z<G.length;++z){const q=G[z];u.push(R+q)}d=m+(d.length>0?" "+d:d)}return d},Fz=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=Xw(n))&&(a&&(a+=" "),a+=i);return a},Xw=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=Xw(t[i]))&&(n&&(n+=" "),n+=e);return n},Vz=(t,...e)=>{let n,i,a,l;const u=d=>{const h=e.reduce((m,y)=>y(m),t());return n=Iz(h),i=n.cache.get,a=n.cache.set,l=f,f(d)},f=d=>{const h=i(d);if(h)return h;const m=qz(d,n);return a(d,m),m};return l=u,(...d)=>l(Fz(...d))},Hz=[],je=t=>{const e=n=>n[t]||Hz;return e.isThemeGetter=!0,e},Qw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gz=/^\d+\/\d+$/,Yz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kz=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ta=t=>Gz.test(t),Bt=t=>!!t&&!Number.isNaN(Number(t)),wi=t=>!!t&&Number.isInteger(Number(t)),hp=t=>t.endsWith("%")&&Bt(t.slice(0,-1)),qr=t=>Yz.test(t),Zz=()=>!0,Jz=t=>Kz.test(t)&&!$z.test(t),Jw=()=>!1,Wz=t=>Xz.test(t),t3=t=>Qz.test(t),e3=t=>!pt(t)&&!mt(t),n3=t=>Ca(t,rS,Jw),pt=t=>Qw.test(t),As=t=>Ca(t,iS,Jz),pp=t=>Ca(t,o3,Bt),Ww=t=>Ca(t,eS,Jw),r3=t=>Ca(t,nS,t3),Uc=t=>Ca(t,sS,Wz),mt=t=>Zw.test(t),yl=t=>_a(t,iS),i3=t=>_a(t,l3),tS=t=>_a(t,eS),s3=t=>_a(t,rS),a3=t=>_a(t,nS),Ic=t=>_a(t,sS,!0),Ca=(t,e,n)=>{const i=Qw.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},_a=(t,e,n=!1)=>{const i=Zw.exec(t);return i?i[1]?e(i[1]):n:!1},eS=t=>t==="position"||t==="percentage",nS=t=>t==="image"||t==="url",rS=t=>t==="length"||t==="size"||t==="bg-size",iS=t=>t==="length",o3=t=>t==="number",l3=t=>t==="family-name",sS=t=>t==="shadow",ge=Vz(()=>{const t=je("color"),e=je("font"),n=je("text"),i=je("font-weight"),a=je("tracking"),l=je("leading"),u=je("breakpoint"),f=je("container"),d=je("spacing"),h=je("radius"),m=je("shadow"),y=je("inset-shadow"),b=je("text-shadow"),v=je("drop-shadow"),w=je("blur"),E=je("perspective"),C=je("aspect"),_=je("ease"),L=je("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...U(),mt,pt],z=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],M=()=>[mt,pt,d],P=()=>[Ta,"full","auto",...M()],K=()=>[wi,"none","subgrid",mt,pt],nt=()=>["auto",{span:["full",wi,mt,pt]},wi,mt,pt],st=()=>[wi,"auto",mt,pt],ft=()=>["auto","min","max","fr",mt,pt],at=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],it=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...M()],Y=()=>[Ta,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],F=()=>[t,mt,pt],gt=()=>[...U(),tS,Ww,{position:[mt,pt]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xt=()=>["auto","cover","contain",s3,n3,{size:[mt,pt]}],D=()=>[hp,yl,As],T=()=>["","none","full",h,mt,pt],J=()=>["",Bt,yl,As],ot=()=>["solid","dashed","dotted","double"],vt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],dt=()=>[Bt,hp,tS,Ww],wt=()=>["","none",w,mt,pt],Gt=()=>["none",Bt,mt,pt],qt=()=>["none",Bt,mt,pt],Ve=()=>[Bt,mt,pt],yn=()=>[Ta,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qr],breakpoint:[qr],color:[Zz],container:[qr],"drop-shadow":[qr],ease:["in","out","in-out"],font:[e3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qr],shadow:[qr],spacing:["px",Bt],text:[qr],"text-shadow":[qr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ta,pt,mt,C]}],container:["container"],columns:[{columns:[Bt,pt,mt,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[wi,"auto",mt,pt]}],basis:[{basis:[Ta,"full","auto",f,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Bt,Ta,"auto","initial","none",pt]}],grow:[{grow:["",Bt,mt,pt]}],shrink:[{shrink:["",Bt,mt,pt]}],order:[{order:[wi,"first","last","none",mt,pt]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:nt()}],"col-start":[{"col-start":st()}],"col-end":[{"col-end":st()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:nt()}],"row-start":[{"row-start":st()}],"row-end":[{"row-end":st()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ft()}],"auto-rows":[{"auto-rows":ft()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...at(),"normal"]}],"justify-items":[{"justify-items":[...it(),"normal"]}],"justify-self":[{"justify-self":["auto",...it()]}],"align-content":[{content:["normal",...at()]}],"align-items":[{items:[...it(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...it(),{baseline:["","last"]}]}],"place-content":[{"place-content":at()}],"place-items":[{"place-items":[...it(),"baseline"]}],"place-self":[{"place-self":["auto",...it()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[f,"screen",...Y()]}],"min-w":[{"min-w":[f,"screen","none",...Y()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,yl,As]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,mt,pp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hp,pt]}],"font-family":[{font:[i3,pt,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,mt,pt]}],"line-clamp":[{"line-clamp":[Bt,"none",mt,pp]}],leading:[{leading:[l,...M()]}],"list-image":[{"list-image":["none",mt,pt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",mt,pt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ot(),"wavy"]}],"text-decoration-thickness":[{decoration:[Bt,"from-font","auto",mt,As]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Bt,"auto",mt,pt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",mt,pt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",mt,pt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:gt()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:xt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wi,mt,pt],radial:["",mt,pt],conic:[wi,mt,pt]},a3,r3]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ot(),"hidden","none"]}],"divide-style":[{divide:[...ot(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ot(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Bt,mt,pt]}],"outline-w":[{outline:["",Bt,yl,As]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",m,Ic,Uc]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",y,Ic,Uc]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Bt,As]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",b,Ic,Uc]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Bt,mt,pt]}],"mix-blend":[{"mix-blend":[...vt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":vt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":dt()}],"mask-image-linear-to-pos":[{"mask-linear-to":dt()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":dt()}],"mask-image-t-to-pos":[{"mask-t-to":dt()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":dt()}],"mask-image-r-to-pos":[{"mask-r-to":dt()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":dt()}],"mask-image-b-to-pos":[{"mask-b-to":dt()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":dt()}],"mask-image-l-to-pos":[{"mask-l-to":dt()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":dt()}],"mask-image-x-to-pos":[{"mask-x-to":dt()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":dt()}],"mask-image-y-to-pos":[{"mask-y-to":dt()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[mt,pt]}],"mask-image-radial-from-pos":[{"mask-radial-from":dt()}],"mask-image-radial-to-pos":[{"mask-radial-to":dt()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[Bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":dt()}],"mask-image-conic-to-pos":[{"mask-conic-to":dt()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:gt()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:xt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",mt,pt]}],filter:[{filter:["","none",mt,pt]}],blur:[{blur:wt()}],brightness:[{brightness:[Bt,mt,pt]}],contrast:[{contrast:[Bt,mt,pt]}],"drop-shadow":[{"drop-shadow":["","none",v,Ic,Uc]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Bt,mt,pt]}],"hue-rotate":[{"hue-rotate":[Bt,mt,pt]}],invert:[{invert:["",Bt,mt,pt]}],saturate:[{saturate:[Bt,mt,pt]}],sepia:[{sepia:["",Bt,mt,pt]}],"backdrop-filter":[{"backdrop-filter":["","none",mt,pt]}],"backdrop-blur":[{"backdrop-blur":wt()}],"backdrop-brightness":[{"backdrop-brightness":[Bt,mt,pt]}],"backdrop-contrast":[{"backdrop-contrast":[Bt,mt,pt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Bt,mt,pt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Bt,mt,pt]}],"backdrop-invert":[{"backdrop-invert":["",Bt,mt,pt]}],"backdrop-opacity":[{"backdrop-opacity":[Bt,mt,pt]}],"backdrop-saturate":[{"backdrop-saturate":[Bt,mt,pt]}],"backdrop-sepia":[{"backdrop-sepia":["",Bt,mt,pt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",mt,pt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Bt,"initial",mt,pt]}],ease:[{ease:["linear","initial",_,mt,pt]}],delay:[{delay:[Bt,mt,pt]}],animate:[{animate:["none",L,mt,pt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,mt,pt]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Gt()}],"rotate-x":[{"rotate-x":Gt()}],"rotate-y":[{"rotate-y":Gt()}],"rotate-z":[{"rotate-z":Gt()}],scale:[{scale:qt()}],"scale-x":[{"scale-x":qt()}],"scale-y":[{"scale-y":qt()}],"scale-z":[{"scale-z":qt()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[mt,pt,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yn()}],"translate-x":[{"translate-x":yn()}],"translate-y":[{"translate-y":yn()}],"translate-z":[{"translate-z":yn()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",mt,pt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",mt,pt]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Bt,yl,As,pp]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),u3={xs:"w-6 h-6",sm:"w-8 h-8",mds:"w-9 h-9",md:"w-15 h-15",lg:"w-16 h-16",xl:"w-24 h-24"},bl=({size:t="md",isOnline:e=!1,className:n=""})=>{const{data:i}=wr(),a=i!=null&&i.chatbotProfilePhoto?pl.BASE_URL+i.chatbotProfilePhoto.url:pl.APP_URL+"/avatar.jpg",l=u3[t];return N.jsxs("div",{className:ge(n),children:[N.jsx("img",{src:a,alt:"Avatar",className:ge("rounded-full border border-gray-300 bg-white object-cover",l)}),e&&N.jsx("span",{className:"absolute top-1 right-0 block h-3 w-3 rounded-full bg-green-500"})]})},Pc=({variant:t="filled",color:e="primary",size:n="medium",icon:i,children:a,loading:l,disabled:u,className:f,iconRight:d,...h})=>{const m="rounded-full focus:outline-none text-nowrap flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed text-center transition animate-bounceInContent active:scale-[0.99] cursor-pointer",y={filled:{primary:"bg-primary-500 text-white hover:bg-primary-600 font-bold shadow shadow-primary-500/50 shadow shadow-inner ",secondary:"bg-gray-500 text-white hover:bg-gray-600 font-bold shadow shadow-gray-500/50 shadow shadow-inner ",neutral:"bg-neutral-500 text-white hover:bg-neutral-600 font-bold shadow shadow-neutral-500/50 shadow shadow-inner ",error:"bg-red-500 text-white hover:bg-red-600 font-bold shadow shadow-red-500/50",success:"bg-green-500 text-white hover:bg-green-600 font-bold shadow shadow-green-500/50 shadow shadow-inner "},outlined:{primary:"border border-primary-500 text-primary-500 hover:bg-primary-100",secondary:"border border-gray-500 text-gray-500 hover:bg-gray-100",neutral:"border border-neutral-500 text-neutral-500 hover:bg-neutral-100",error:"border border-red-500 text-red-500 hover:bg-red-100",success:"border border-green-500 text-green-500 hover:bg-green-100"},plain:{primary:"text-primary-500 hover:bg-primary-100 px-2 py-1 rounded-full font-bold",secondary:"text-gray-500 hover:bg-gray-100 px-2 py-1 rounded-full font-bold",neutral:"text-neutral-500 hover:bg-neutral-100 px-2 py-1 rounded-full font-bold",error:"text-red-500 hover:bg-red-100 px-2 py-1 rounded-full font-bold",success:"text-green-500 hover:bg-green-100 px-2 py-1 rounded-full font-bold"},light:{primary:"bg-primary-100 text-primary-400 hover:bg-primary-200 font-bold shadow shadow-primary-100/50",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200 font-bold shadow shadow-gray-100/50",neutral:"bg-neutral-200 text-neutral-700 hover:bg-neutral-200 font-bold shadow shadow-neutral-200/50",error:"bg-red-100 text-red-700 hover:bg-red-200 font-bold shadow shadow-red-100/50",success:"bg-green-100 text-green-700 hover:bg-green-200 font-bold shadow shadow-green-100/50"}},b={small:"px-2 py-1 text-sm",medium:"px-4 py-2 text-[15px]",large:"px-6 py-3 text-lg"},v={small:"w-4 h-4",medium:"w-5 h-5",large:"w-6 h-6"};return N.jsxs("button",{className:ge(m,y[t][e],b[n],f),disabled:u||l,...h,children:[l?N.jsx("span",{className:ge("animate-spin",v[n]),children:"🔄"}):i&&N.jsx("span",{className:ge(v[n]),children:i}),a,d&&N.jsx("span",{className:ge(v[n]),children:d})]})};function c3({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const f3=B.forwardRef(c3);function d3({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const aS=B.forwardRef(d3);function h3({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const Aa=B.forwardRef(h3);function p3({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"}))}const m3=B.forwardRef(p3);function g3({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{fillRule:"evenodd",d:"M13.836 2.477a.75.75 0 0 1 .75.75v3.182a.75.75 0 0 1-.75.75h-3.182a.75.75 0 0 1 0-1.5h1.37l-.84-.841a4.5 4.5 0 0 0-7.08.932.75.75 0 0 1-1.3-.75 6 6 0 0 1 9.44-1.242l.842.84V3.227a.75.75 0 0 1 .75-.75Zm-.911 7.5A.75.75 0 0 1 13.199 11a6 6 0 0 1-9.44 1.241l-.84-.84v1.371a.75.75 0 0 1-1.5 0V9.591a.75.75 0 0 1 .75-.75H5.35a.75.75 0 0 1 0 1.5H3.98l.841.841a4.5 4.5 0 0 0 7.08-.932.75.75 0 0 1 1.025-.273Z",clipRule:"evenodd"}))}const y3=B.forwardRef(g3);function b3({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const v3=B.forwardRef(b3);function x3({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{d:"M2 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM12.5 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}const w3=B.forwardRef(x3),mp=B.createContext({});function qc(t){const e=B.useRef(null);return e.current===null&&(e.current=t()),e.current}const gp=typeof window<"u",yp=gp?B.useLayoutEffect:B.useEffect,Fc=B.createContext(null);function bp(t,e){t.indexOf(e)===-1&&t.push(e)}function vp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Fr=(t,e,n)=>n>e?e:n<t?t:n;let xp=()=>{};const Vr={},oS=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function lS(t){return typeof t=="object"&&t!==null}const uS=t=>/^0[^.\s]+$/u.test(t);function wp(t){let e;return()=>(e===void 0&&(e=t()),e)}const Pn=t=>t,S3=(t,e)=>n=>e(t(n)),vl=(...t)=>t.reduce(S3),xl=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class Sp{constructor(){this.subscriptions=[]}add(e){return bp(this.subscriptions,e),()=>vp(this.subscriptions,e)}notify(e,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,n,i);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sr=t=>t*1e3,qn=t=>t/1e3;function cS(t,e){return e?t*(1e3/e):0}const fS=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,E3=1e-7,T3=12;function C3(t,e,n,i,a){let l,u,f=0;do u=e+(n-e)/2,l=fS(u,i,a)-t,l>0?n=u:e=u;while(Math.abs(l)>E3&&++f<T3);return u}function wl(t,e,n,i){if(t===e&&n===i)return Pn;const a=l=>C3(l,0,1,t,n);return l=>l===0||l===1?l:fS(a(l),e,i)}const dS=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,hS=t=>e=>1-t(1-e),pS=wl(.33,1.53,.69,.99),Ep=hS(pS),mS=dS(Ep),gS=t=>(t*=2)<1?.5*Ep(t):.5*(2-Math.pow(2,-10*(t-1))),Tp=t=>1-Math.sin(Math.acos(t)),yS=hS(Tp),bS=dS(Tp),_3=wl(.42,0,1,1),A3=wl(0,0,.58,1),vS=wl(.42,0,.58,1),R3=t=>Array.isArray(t)&&typeof t[0]!="number",xS=t=>Array.isArray(t)&&typeof t[0]=="number",O3={linear:Pn,easeIn:_3,easeInOut:vS,easeOut:A3,circIn:Tp,circInOut:bS,circOut:yS,backIn:Ep,backInOut:mS,backOut:pS,anticipate:gS},k3=t=>typeof t=="string",wS=t=>{if(xS(t)){xp(t.length===4);const[e,n,i,a]=t;return wl(e,n,i,a)}else if(k3(t))return O3[t];return t},Vc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function D3(t,e){let n=new Set,i=new Set,a=!1,l=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function d(m){u.has(m)&&(h.schedule(m),t()),m(f)}const h={schedule:(m,y=!1,b=!1)=>{const w=b&&a?n:i;return y&&u.add(m),w.has(m)||w.add(m),m},cancel:m=>{i.delete(m),u.delete(m)},process:m=>{if(f=m,a){l=!0;return}a=!0,[n,i]=[i,n],n.forEach(d),n.clear(),a=!1,l&&(l=!1,h.process(m))}};return h}const M3=40;function SS(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Vc.reduce((R,U)=>(R[U]=D3(l),R),{}),{setup:f,read:d,resolveKeyframes:h,preUpdate:m,update:y,preRender:b,render:v,postRender:w}=u,E=()=>{const R=Vr.useManualTiming?a.timestamp:performance.now();n=!1,Vr.useManualTiming||(a.delta=i?1e3/60:Math.max(Math.min(R-a.timestamp,M3),1)),a.timestamp=R,a.isProcessing=!0,f.process(a),d.process(a),h.process(a),m.process(a),y.process(a),b.process(a),v.process(a),w.process(a),a.isProcessing=!1,n&&e&&(i=!1,t(E))},C=()=>{n=!0,i=!0,a.isProcessing||t(E)};return{schedule:Vc.reduce((R,U)=>{const G=u[U];return R[U]=(z,q=!1,M=!1)=>(n||C(),G.schedule(z,q,M)),R},{}),cancel:R=>{for(let U=0;U<Vc.length;U++)u[Vc[U]].cancel(R)},state:a,steps:u}}const{schedule:he,cancel:Si,state:Fe,steps:Cp}=SS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pn,!0);let Hc;function N3(){Hc=void 0}const fn={now:()=>(Hc===void 0&&fn.set(Fe.isProcessing||Vr.useManualTiming?Fe.timestamp:performance.now()),Hc),set:t=>{Hc=t,queueMicrotask(N3)}},ES=t=>e=>typeof e=="string"&&e.startsWith(t),_p=ES("--"),L3=ES("var(--"),Ap=t=>L3(t)?j3.test(t.split("/*")[0].trim()):!1,j3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ra={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Sl={...Ra,transform:t=>Fr(0,1,t)},Gc={...Ra,default:1},El=t=>Math.round(t*1e5)/1e5,Rp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z3(t){return t==null}const B3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Op=(t,e)=>n=>!!(typeof n=="string"&&B3.test(n)&&n.startsWith(t)||e&&!z3(n)&&Object.prototype.hasOwnProperty.call(n,e)),TS=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,f]=i.match(Rp);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},U3=t=>Fr(0,255,t),kp={...Ra,transform:t=>Math.round(U3(t))},Rs={test:Op("rgb","red"),parse:TS("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+kp.transform(t)+", "+kp.transform(e)+", "+kp.transform(n)+", "+El(Sl.transform(i))+")"};function I3(t){let e="",n="",i="",a="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const Dp={test:Op("#"),parse:I3,transform:Rs.transform},Tl=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ei=Tl("deg"),Er=Tl("%"),Tt=Tl("px"),P3=Tl("vh"),q3=Tl("vw"),CS={...Er,parse:t=>Er.parse(t)/100,transform:t=>Er.transform(t*100)},Oa={test:Op("hsl","hue"),parse:TS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Er.transform(El(e))+", "+Er.transform(El(n))+", "+El(Sl.transform(i))+")"},Ae={test:t=>Rs.test(t)||Dp.test(t)||Oa.test(t),parse:t=>Rs.test(t)?Rs.parse(t):Oa.test(t)?Oa.parse(t):Dp.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Rs.transform(t):Oa.transform(t),getAnimatableNone:t=>{const e=Ae.parse(t);return e.alpha=0,Ae.transform(e)}},F3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function V3(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Rp))==null?void 0:e.length)||0)+(((n=t.match(F3))==null?void 0:n.length)||0)>0}const _S="number",AS="color",H3="var",G3="var(",RS="${}",Y3=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Cl(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const f=e.replace(Y3,d=>(Ae.test(d)?(i.color.push(l),a.push(AS),n.push(Ae.parse(d))):d.startsWith(G3)?(i.var.push(l),a.push(H3),n.push(d)):(i.number.push(l),a.push(_S),n.push(parseFloat(d))),++l,RS)).split(RS);return{values:n,split:f,indexes:i,types:a}}function OS(t){return Cl(t).values}function kS(t){const{split:e,types:n}=Cl(t),i=e.length;return a=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],a[u]!==void 0){const f=n[u];f===_S?l+=El(a[u]):f===AS?l+=Ae.transform(a[u]):l+=a[u]}return l}}const K3=t=>typeof t=="number"?0:Ae.test(t)?Ae.getAnimatableNone(t):t;function $3(t){const e=OS(t);return kS(t)(e.map(K3))}const Ti={test:V3,parse:OS,createTransformer:kS,getAnimatableNone:$3};function Mp(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function X3({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,l=0,u=0;if(!e)a=l=u=n;else{const f=n<.5?n*(1+e):n+e-n*e,d=2*n-f;a=Mp(d,f,t+1/3),l=Mp(d,f,t),u=Mp(d,f,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Yc(t,e){return n=>n>0?e:t}const ye=(t,e,n)=>t+(e-t)*n,Np=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},Q3=[Dp,Rs,Oa],Z3=t=>Q3.find(e=>e.test(t));function DS(t){const e=Z3(t);if(!e)return!1;let n=e.parse(t);return e===Oa&&(n=X3(n)),n}const MS=(t,e)=>{const n=DS(t),i=DS(e);if(!n||!i)return Yc(t,e);const a={...n};return l=>(a.red=Np(n.red,i.red,l),a.green=Np(n.green,i.green,l),a.blue=Np(n.blue,i.blue,l),a.alpha=ye(n.alpha,i.alpha,l),Rs.transform(a))},Lp=new Set(["none","hidden"]);function J3(t,e){return Lp.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function W3(t,e){return n=>ye(t,e,n)}function jp(t){return typeof t=="number"?W3:typeof t=="string"?Ap(t)?Yc:Ae.test(t)?MS:nB:Array.isArray(t)?NS:typeof t=="object"?Ae.test(t)?MS:tB:Yc}function NS(t,e){const n=[...t],i=n.length,a=t.map((l,u)=>jp(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function tB(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=jp(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function eB(t,e){const n=[],i={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){const l=e.types[a],u=t.indexes[l][i[l]],f=t.values[u]??0;n[a]=f,i[l]++}return n}const nB=(t,e)=>{const n=Ti.createTransformer(e),i=Cl(t),a=Cl(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Lp.has(t)&&!a.values.length||Lp.has(e)&&!i.values.length?J3(t,e):vl(NS(eB(i,a),a.values),n):Yc(t,e)};function LS(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ye(t,e,n):jp(t)(t,e)}const rB=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>he.update(e,n),stop:()=>Si(e),now:()=>Fe.isProcessing?Fe.timestamp:fn.now()}},jS=(t,e,n=10)=>{let i="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)i+=Math.round(t(l/(a-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Kc=2e4;function zp(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Kc;)e+=n,i=t.next(e);return e>=Kc?1/0:e}function iB(t,e=100,n){const i=n({...t,keyframes:[0,e]}),a=Math.min(zp(i),Kc);return{type:"keyframes",ease:l=>i.next(a*l).value/e,duration:qn(a)}}const sB=5;function zS(t,e,n){const i=Math.max(e-sB,0);return cS(n-t(i),e-i)}const be={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Bp=.001;function aB({duration:t=be.duration,bounce:e=be.bounce,velocity:n=be.velocity,mass:i=be.mass}){let a,l,u=1-e;u=Fr(be.minDamping,be.maxDamping,u),t=Fr(be.minDuration,be.maxDuration,qn(t)),u<1?(a=h=>{const m=h*u,y=m*t,b=m-n,v=Up(h,u),w=Math.exp(-y);return Bp-b/v*w},l=h=>{const y=h*u*t,b=y*n+n,v=Math.pow(u,2)*Math.pow(h,2)*t,w=Math.exp(-y),E=Up(Math.pow(h,2),u);return(-a(h)+Bp>0?-1:1)*((b-v)*w)/E}):(a=h=>{const m=Math.exp(-h*t),y=(h-n)*t+1;return-Bp+m*y},l=h=>{const m=Math.exp(-h*t),y=(n-h)*(t*t);return m*y});const f=5/t,d=lB(a,l,f);if(t=Sr(t),isNaN(d))return{stiffness:be.stiffness,damping:be.damping,duration:t};{const h=Math.pow(d,2)*i;return{stiffness:h,damping:u*2*Math.sqrt(i*h),duration:t}}}const oB=12;function lB(t,e,n){let i=n;for(let a=1;a<oB;a++)i=i-t(i)/e(i);return i}function Up(t,e){return t*Math.sqrt(1-e*e)}const uB=["duration","bounce"],cB=["stiffness","damping","mass"];function BS(t,e){return e.some(n=>t[n]!==void 0)}function fB(t){let e={velocity:be.velocity,stiffness:be.stiffness,damping:be.damping,mass:be.mass,isResolvedFromDuration:!1,...t};if(!BS(t,cB)&&BS(t,uB))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*Fr(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:be.mass,stiffness:a,damping:l}}else{const n=aB(t);e={...e,...n,mass:be.mass},e.isResolvedFromDuration=!0}return e}function $c(t=be.visualDuration,e=be.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],f={done:!1,value:l},{stiffness:d,damping:h,mass:m,duration:y,velocity:b,isResolvedFromDuration:v}=fB({...n,velocity:-qn(n.velocity||0)}),w=b||0,E=h/(2*Math.sqrt(d*m)),C=u-l,_=qn(Math.sqrt(d/m)),L=Math.abs(C)<5;i||(i=L?be.restSpeed.granular:be.restSpeed.default),a||(a=L?be.restDelta.granular:be.restDelta.default);let R;if(E<1){const G=Up(_,E);R=z=>{const q=Math.exp(-E*_*z);return u-q*((w+E*_*C)/G*Math.sin(G*z)+C*Math.cos(G*z))}}else if(E===1)R=G=>u-Math.exp(-_*G)*(C+(w+_*C)*G);else{const G=_*Math.sqrt(E*E-1);R=z=>{const q=Math.exp(-E*_*z),M=Math.min(G*z,300);return u-q*((w+E*_*C)*Math.sinh(M)+G*C*Math.cosh(M))/G}}const U={calculatedDuration:v&&y||null,next:G=>{const z=R(G);if(v)f.done=G>=y;else{let q=G===0?w:0;E<1&&(q=G===0?Sr(w):zS(R,G,z));const M=Math.abs(q)<=i,P=Math.abs(u-z)<=a;f.done=M&&P}return f.value=f.done?u:z,f},toString:()=>{const G=Math.min(zp(U),Kc),z=jS(q=>U.next(G*q).value,G,30);return G+"ms "+z},toTransition:()=>{}};return U}$c.applyToOptions=t=>{const e=iB(t,100,$c);return t.ease=e.ease,t.duration=Sr(e.duration),t.type="keyframes",t};function Ip({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:f,max:d,restDelta:h=.5,restSpeed:m}){const y=t[0],b={done:!1,value:y},v=M=>f!==void 0&&M<f||d!==void 0&&M>d,w=M=>f===void 0?d:d===void 0||Math.abs(f-M)<Math.abs(d-M)?f:d;let E=n*e;const C=y+E,_=u===void 0?C:u(C);_!==C&&(E=_-y);const L=M=>-E*Math.exp(-M/i),R=M=>_+L(M),U=M=>{const P=L(M),K=R(M);b.done=Math.abs(P)<=h,b.value=b.done?_:K};let G,z;const q=M=>{v(b.value)&&(G=M,z=$c({keyframes:[b.value,w(b.value)],velocity:zS(R,M,b.value),damping:a,stiffness:l,restDelta:h,restSpeed:m}))};return q(0),{calculatedDuration:null,next:M=>{let P=!1;return!z&&G===void 0&&(P=!0,U(M),q(M)),G!==void 0&&M>=G?z.next(M-G):(!P&&U(M),b)}}}function dB(t,e,n){const i=[],a=n||Vr.mix||LS,l=t.length-1;for(let u=0;u<l;u++){let f=a(t[u],t[u+1]);if(e){const d=Array.isArray(e)?e[u]||Pn:e;f=vl(d,f)}i.push(f)}return i}function hB(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(xp(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const f=dB(e,i,a),d=f.length,h=m=>{if(u&&m<t[0])return e[0];let y=0;if(d>1)for(;y<t.length-2&&!(m<t[y+1]);y++);const b=xl(t[y],t[y+1],m);return f[y](b)};return n?m=>h(Fr(t[0],t[l-1],m)):h}function pB(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=xl(0,e,i);t.push(ye(n,1,a))}}function mB(t){const e=[0];return pB(e,t.length-1),e}function gB(t,e){return t.map(n=>n*e)}function yB(t,e){return t.map(()=>e||vS).splice(0,t.length-1)}function _l({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=R3(i)?i.map(wS):wS(i),l={done:!1,value:e[0]},u=gB(n&&n.length===e.length?n:mB(e),t),f=hB(u,e,{ease:Array.isArray(a)?a:yB(e,a)});return{calculatedDuration:t,next:d=>(l.value=f(d),l.done=d>=t,l)}}const bB=t=>t!==null;function Pp(t,{repeat:e,repeatType:n="loop"},i,a=1){const l=t.filter(bB),f=a<0||e&&n!=="loop"&&e%2===1?0:l.length-1;return!f||i===void 0?l[f]:i}const vB={decay:Ip,inertia:Ip,tween:_l,keyframes:_l,spring:$c};function US(t){typeof t.type=="string"&&(t.type=vB[t.type])}class qp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const xB=t=>t/100;class Fp extends qp{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,a;const{motionValue:n}=this.options;n&&n.updatedAt!==fn.now()&&this.tick(fn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(i=this.options).onStop)==null||a.call(i))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;US(e);const{type:n=_l,repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=e;let{keyframes:f}=e;const d=n||_l;d!==_l&&typeof f[0]!="number"&&(this.mixKeyframes=vl(xB,LS(f[0],f[1])),f=[0,100]);const h=d({...e,keyframes:f});l==="mirror"&&(this.mirroredGenerator=d({...e,keyframes:[...f].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=zp(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(i+1)-a,this.generator=h}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:a,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:f,calculatedDuration:d}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:m,repeat:y,repeatType:b,repeatDelay:v,type:w,onUpdate:E,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?_<0:_>a;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let R=this.currentTime,U=i;if(y){const M=Math.min(this.currentTime,a)/f;let P=Math.floor(M),K=M%1;!K&&M>=1&&(K=1),K===1&&P--,P=Math.min(P,y+1),!!(P%2)&&(b==="reverse"?(K=1-K,v&&(K-=v/f)):b==="mirror"&&(U=u)),R=Fr(0,1,K)*f}const G=L?{done:!1,value:m[0]}:U.next(R);l&&(G.value=l(G.value));let{done:z}=G;!L&&d!==null&&(z=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return q&&w!==Ip&&(G.value=Pp(m,this.options,C,this.speed)),E&&E(G.value),q&&this.finish(),G}then(e,n){return this.finished.then(e,n)}get duration(){return qn(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+qn(e)}get time(){return qn(this.currentTime)}set time(e){var n;e=Sr(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(fn.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=qn(this.currentTime))}play(){var a,l;if(this.isStopped)return;const{driver:e=rB,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(l=(a=this.options).onPlay)==null||l.call(a);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(fn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function wB(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Os=t=>t*180/Math.PI,Vp=t=>{const e=Os(Math.atan2(t[1],t[0]));return Hp(e)},SB={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Vp,rotateZ:Vp,skewX:t=>Os(Math.atan(t[1])),skewY:t=>Os(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Hp=t=>(t=t%360,t<0&&(t+=360),t),IS=Vp,PS=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),qS=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),EB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:PS,scaleY:qS,scale:t=>(PS(t)+qS(t))/2,rotateX:t=>Hp(Os(Math.atan2(t[6],t[5]))),rotateY:t=>Hp(Os(Math.atan2(-t[2],t[0]))),rotateZ:IS,rotate:IS,skewX:t=>Os(Math.atan(t[4])),skewY:t=>Os(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Gp(t){return t.includes("scale")?1:0}function Yp(t,e){if(!t||t==="none")return Gp(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,a;if(n)i=EB,a=n;else{const f=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=SB,a=f}if(!a)return Gp(e);const l=i[e],u=a[1].split(",").map(CB);return typeof l=="function"?l(u):u[l]}const TB=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Yp(n,e)};function CB(t){return parseFloat(t.trim())}const ka=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Da=new Set(ka),FS=t=>t===Ra||t===Tt,_B=new Set(["x","y","z"]),AB=ka.filter(t=>!_B.has(t));function RB(t){const e=[];return AB.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const ks={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Yp(e,"x"),y:(t,{transform:e})=>Yp(e,"y")};ks.translateX=ks.x,ks.translateY=ks.y;const Ds=new Set;let Kp=!1,$p=!1,Xp=!1;function VS(){if($p){const t=Array.from(Ds).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const a=RB(i);a.length&&(n.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([l,u])=>{var f;(f=i.getValue(l))==null||f.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}$p=!1,Kp=!1,Ds.forEach(t=>t.complete(Xp)),Ds.clear()}function HS(){Ds.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&($p=!0)})}function OB(){Xp=!0,HS(),VS(),Xp=!1}class Qp{constructor(e,n,i,a,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Ds.add(this),Kp||(Kp=!0,he.read(HS),he.resolveKeyframes(VS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:a}=this;if(e[0]===null){const l=a==null?void 0:a.get(),u=e[e.length-1];if(l!==void 0)e[0]=l;else if(i&&n){const f=i.readValue(n,u);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=u),a&&l===void 0&&a.set(e[0])}wB(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ds.delete(this)}cancel(){this.state==="scheduled"&&(Ds.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kB=t=>t.startsWith("--");function DB(t,e,n){kB(e)?t.style.setProperty(e,n):t.style[e]=n}const MB=wp(()=>window.ScrollTimeline!==void 0),NB={};function LB(t,e){const n=wp(t);return()=>NB[e]??n()}const GS=LB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Al=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,YS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Al([0,.65,.55,1]),circOut:Al([.55,0,1,.45]),backIn:Al([.31,.01,.66,-.59]),backOut:Al([.33,1.53,.69,.99])};function KS(t,e){if(t)return typeof t=="function"?GS()?jS(t,e):"ease-out":xS(t)?Al(t):Array.isArray(t)?t.map(n=>KS(n,e)||YS.easeOut):YS[t]}function jB(t,e,n,{delay:i=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:f="easeOut",times:d}={},h=void 0){const m={[e]:n};d&&(m.offset=d);const y=KS(f,a);Array.isArray(y)&&(m.easing=y);const b={delay:i,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),t.animate(m,b)}function $S(t){return typeof t=="function"&&"applyToOptions"in t}function zB({type:t,...e}){return $S(t)&&GS()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class BB extends qp{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:i,keyframes:a,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:f,onComplete:d}=e;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=e,xp(typeof e.type!="string");const h=zB(e);this.animation=jB(n,i,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const m=Pp(a,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(m):DB(n,i,m),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,i;const e=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return qn(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+qn(e)}get time(){return qn(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Sr(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&MB()?(this.animation.timeline=e,Pn):n(this)}}const XS={anticipate:gS,backInOut:mS,circInOut:bS};function UB(t){return t in XS}function IB(t){typeof t.ease=="string"&&UB(t.ease)&&(t.ease=XS[t.ease])}const QS=10;class PB extends BB{constructor(e){IB(e),US(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:a,element:l,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const f=new Fp({...u,autoplay:!1}),d=Sr(this.finishedTime??this.time);n.setWithVelocity(f.sample(d-QS).value,f.sample(d).value,QS),f.stop()}}const ZS=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ti.test(t)||t==="0")&&!t.startsWith("url("));function qB(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function FB(t,e,n,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=ZS(a,e),f=ZS(l,e);return!u||!f?!1:qB(t)||(n==="spring"||$S(n))&&i}function Zp(t){t.duration=0,t.type="keyframes"}const VB=new Set(["opacity","clipPath","filter","transform"]),HB=wp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function GB(t){var m;const{motionValue:e,name:n,repeatDelay:i,repeatType:a,damping:l,type:u}=t;if(!(((m=e==null?void 0:e.owner)==null?void 0:m.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=e.owner.getProps();return HB()&&n&&VB.has(n)&&(n!=="transform"||!h)&&!d&&!i&&a!=="mirror"&&l!==0&&u!=="inertia"}const YB=40;class KB extends qp{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",keyframes:f,name:d,motionValue:h,element:m,...y}){var w;super(),this.stop=()=>{var E,C;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=fn.now();const b={autoplay:e,delay:n,type:i,repeat:a,repeatDelay:l,repeatType:u,name:d,motionValue:h,element:m,...y},v=(m==null?void 0:m.KeyframeResolver)||Qp;this.keyframeResolver=new v(f,(E,C,_)=>this.onKeyframesResolved(E,C,b,!_),d,h,m),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(e,n,i,a){this.keyframeResolver=void 0;const{name:l,type:u,velocity:f,delay:d,isHandoff:h,onUpdate:m}=i;this.resolvedAt=fn.now(),FB(e,l,u,f)||((Vr.instantAnimations||!d)&&(m==null||m(Pp(e,i,n))),e[0]=e[e.length-1],Zp(i),i.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>YB?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},v=!h&&GB(b)?new PB({...b,element:b.motionValue.owner.current}):new Fp(b);v.finished.then(()=>this.notifyFinished()).catch(Pn),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),OB()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const $B=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XB(t){const e=$B.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function JS(t,e,n=1){const[i,a]=XB(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return oS(u)?parseFloat(u):u}return Ap(a)?JS(a,e,n+1):a}function Jp(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const WS=new Set(["width","height","top","left","right","bottom",...ka]),QB={test:t=>t==="auto",parse:t=>t},t1=t=>e=>e.test(t),e1=[Ra,Tt,Er,Ei,q3,P3,QB],n1=t=>e1.find(t1(t));function ZB(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||uS(t):!0}const JB=new Set(["brightness","contrast","saturate","opacity"]);function WB(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Rp)||[];if(!i)return t;const a=n.replace(i,"");let l=JB.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const tU=/\b([a-z-]*)\(.*?\)/gu,Wp={...Ti,getAnimatableNone:t=>{const e=t.match(tU);return e?e.map(WB).join(" "):t}},r1={...Ra,transform:Math.round},tm={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...{rotate:Ei,rotateX:Ei,rotateY:Ei,rotateZ:Ei,scale:Gc,scaleX:Gc,scaleY:Gc,scaleZ:Gc,skew:Ei,skewX:Ei,skewY:Ei,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:Sl,originX:CS,originY:CS,originZ:Tt},zIndex:r1,fillOpacity:Sl,strokeOpacity:Sl,numOctaves:r1},eU={...tm,color:Ae,backgroundColor:Ae,outlineColor:Ae,fill:Ae,stroke:Ae,borderColor:Ae,borderTopColor:Ae,borderRightColor:Ae,borderBottomColor:Ae,borderLeftColor:Ae,filter:Wp,WebkitFilter:Wp},i1=t=>eU[t];function s1(t,e){let n=i1(t);return n!==Wp&&(n=Ti),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const nU=new Set(["auto","none","0"]);function rU(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!nU.has(l)&&Cl(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=s1(n,a)}class iU extends Qp{constructor(e,n,i,a,l){super(e,n,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let h=e[d];if(typeof h=="string"&&(h=h.trim(),Ap(h))){const m=JS(h,n.current);m!==void 0&&(e[d]=m),d===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!WS.has(i)||e.length!==2)return;const[a,l]=e,u=n1(a),f=n1(l);if(u!==f)if(FS(u)&&FS(f))for(let d=0;d<e.length;d++){const h=e[d];typeof h=="string"&&(e[d]=parseFloat(h))}else ks[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let a=0;a<e.length;a++)(e[a]===null||ZB(e[a]))&&i.push(a);i.length&&rU(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ks[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var f;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const a=e.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=i.length-1,u=i[l];i[l]=ks[n](e.measureViewportBox(),window.getComputedStyle(e.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(f=this.removedTransforms)!=null&&f.length&&this.removedTransforms.forEach(([d,h])=>{e.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function a1(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const a=document.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}const o1=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function l1(t){return lS(t)&&"offsetHeight"in t}const u1=30,sU=t=>!isNaN(parseFloat(t));class aU{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var l;const a=fn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=fn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=sU(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sp);const i=this.events[e].add(n);return e==="change"?()=>{i(),he.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>u1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,u1);return cS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ma(t,e){return new aU(t,e)}const{schedule:em}=SS(queueMicrotask,!1),or={x:!1,y:!1};function c1(){return or.x||or.y}function oU(t){return t==="x"||t==="y"?or[t]?null:(or[t]=!0,()=>{or[t]=!1}):or.x||or.y?null:(or.x=or.y=!0,()=>{or.x=or.y=!1})}function f1(t,e){const n=a1(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function d1(t){return!(t.pointerType==="touch"||c1())}function lU(t,e,n={}){const[i,a,l]=f1(t,n),u=f=>{if(!d1(f))return;const{target:d}=f,h=e(d,f);if(typeof h!="function"||!d)return;const m=y=>{d1(y)&&(h(y),d.removeEventListener("pointerleave",m))};d.addEventListener("pointerleave",m,a)};return i.forEach(f=>{f.addEventListener("pointerenter",u,a)}),l}const h1=(t,e)=>e?t===e?!0:h1(t,e.parentElement):!1,nm=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,uU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cU(t){return uU.has(t.tagName)||t.tabIndex!==-1}const Xc=new WeakSet;function p1(t){return e=>{e.key==="Enter"&&t(e)}}function rm(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const fU=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=p1(()=>{if(Xc.has(n))return;rm(n,"down");const a=p1(()=>{rm(n,"up")}),l=()=>rm(n,"cancel");n.addEventListener("keyup",a,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function m1(t){return nm(t)&&!c1()}function dU(t,e,n={}){const[i,a,l]=f1(t,n),u=f=>{const d=f.currentTarget;if(!m1(f))return;Xc.add(d);const h=e(d,f),m=(v,w)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),Xc.has(d)&&Xc.delete(d),m1(v)&&typeof h=="function"&&h(v,{success:w})},y=v=>{m(v,d===window||d===document||n.useGlobalTarget||h1(d,v.target))},b=v=>{m(v,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",b,a)};return i.forEach(f=>{(n.useGlobalTarget?window:f).addEventListener("pointerdown",u,a),l1(f)&&(f.addEventListener("focus",h=>fU(h,a)),!cU(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),l}function g1(t){return lS(t)&&"ownerSVGElement"in t}function hU(t){return g1(t)&&t.tagName==="svg"}const Ze=t=>!!(t&&t.getVelocity),pU=[...e1,Ae,Ti],mU=t=>pU.find(t1(t)),im=B.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function y1(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function gU(...t){return e=>{let n=!1;const i=t.map(a=>{const l=y1(a,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():y1(t[a],null)}}}}function yU(...t){return B.useCallback(gU(...t),t)}class bU extends B.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=n.offsetParent,a=l1(i)&&i.offsetWidth||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=a-l.width-l.left}return null}componentDidUpdate(){}render(){return this.props.children}}function vU({children:t,isPresent:e,anchorX:n,root:i}){const a=B.useId(),l=B.useRef(null),u=B.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=B.useContext(im),d=yU(l,t==null?void 0:t.ref);return B.useInsertionEffect(()=>{const{width:h,height:m,top:y,left:b,right:v}=u.current;if(e||!l.current||!h||!m)return;const w=n==="left"?`left: ${b}`:`right: ${v}`;l.current.dataset.motionPopId=a;const E=document.createElement("style");f&&(E.nonce=f);const C=i??document.head;return C.appendChild(E),E.sheet&&E.sheet.insertRule(`
          [data-motion-pop-id="${a}"] {
            position: absolute !important;
            width: ${h}px !important;
            height: ${m}px !important;
            ${w}px !important;
            top: ${y}px !important;
          }
        `),()=>{C.contains(E)&&C.removeChild(E)}},[e]),N.jsx(bU,{isPresent:e,childRef:l,sizeRef:u,children:B.cloneElement(t,{ref:d})})}const xU=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:l,mode:u,anchorX:f,root:d})=>{const h=qc(wU),m=B.useId();let y=!0,b=B.useMemo(()=>(y=!1,{id:m,initial:e,isPresent:n,custom:a,onExitComplete:v=>{h.set(v,!0);for(const w of h.values())if(!w)return;i&&i()},register:v=>(h.set(v,!1),()=>h.delete(v))}),[n,h,i]);return l&&y&&(b={...b}),B.useMemo(()=>{h.forEach((v,w)=>h.set(w,!1))},[n]),B.useEffect(()=>{!n&&!h.size&&i&&i()},[n]),u==="popLayout"&&(t=N.jsx(vU,{isPresent:n,anchorX:f,root:d,children:t})),N.jsx(Fc.Provider,{value:b,children:t})};function wU(){return new Map}function b1(t=!0){const e=B.useContext(Fc);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=e,l=B.useId();B.useEffect(()=>{if(t)return a(l)},[t]);const u=B.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const Qc=t=>t.key||"";function v1(t){const e=[];return B.Children.forEach(t,n=>{B.isValidElement(n)&&e.push(n)}),e}const Rl=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync",propagate:u=!1,anchorX:f="left",root:d})=>{const[h,m]=b1(u),y=B.useMemo(()=>v1(t),[t]),b=u&&!h?[]:y.map(Qc),v=B.useRef(!0),w=B.useRef(y),E=qc(()=>new Map),[C,_]=B.useState(y),[L,R]=B.useState(y);yp(()=>{v.current=!1,w.current=y;for(let z=0;z<L.length;z++){const q=Qc(L[z]);b.includes(q)?E.delete(q):E.get(q)!==!0&&E.set(q,!1)}},[L,b.length,b.join("-")]);const U=[];if(y!==C){let z=[...y];for(let q=0;q<L.length;q++){const M=L[q],P=Qc(M);b.includes(P)||(z.splice(q,0,M),U.push(M))}return l==="wait"&&U.length&&(z=U),R(v1(z)),_(y),null}const{forceRender:G}=B.useContext(mp);return N.jsx(N.Fragment,{children:L.map(z=>{const q=Qc(z),M=u&&!h?!1:y===L||b.includes(q),P=()=>{if(E.has(q))E.set(q,!0);else return;let K=!0;E.forEach(nt=>{nt||(K=!1)}),K&&(G==null||G(),R(w.current),u&&(m==null||m()),i&&i())};return N.jsx(xU,{isPresent:M,initial:!v.current||n?void 0:!1,custom:e,presenceAffectsLayout:a,mode:l,root:d,onExitComplete:M?void 0:P,anchorX:f,children:z},q)})})},x1=B.createContext({strict:!1}),w1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Na={};for(const t in w1)Na[t]={isEnabled:e=>w1[t].some(n=>!!e[n])};function SU(t){for(const e in t)Na[e]={...Na[e],...t[e]}}const EU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Zc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||EU.has(t)}let S1=t=>!Zc(t);function TU(t){typeof t=="function"&&(S1=e=>e.startsWith("on")?!Zc(e):t(e))}try{TU(require("@emotion/is-prop-valid").default)}catch{}function CU(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(S1(a)||n===!0&&Zc(a)||!e&&!Zc(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}const Jc=B.createContext({});function Wc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ol(t){return typeof t=="string"||Array.isArray(t)}const sm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],am=["initial",...sm];function tf(t){return Wc(t.animate)||am.some(e=>Ol(t[e]))}function E1(t){return!!(tf(t)||t.variants)}function _U(t,e){if(tf(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ol(n)?n:void 0,animate:Ol(i)?i:void 0}}return t.inherit!==!1?e:{}}function AU(t){const{initial:e,animate:n}=_U(t,B.useContext(Jc));return B.useMemo(()=>({initial:e,animate:n}),[T1(e),T1(n)])}function T1(t){return Array.isArray(t)?t.join(" "):t}const kl={};function RU(t){for(const e in t)kl[e]=t[e],_p(e)&&(kl[e].isCSSVariable=!0)}function C1(t,{layout:e,layoutId:n}){return Da.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!kl[t]||t==="opacity")}const OU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kU=ka.length;function DU(t,e,n){let i="",a=!0;for(let l=0;l<kU;l++){const u=ka[l],f=t[u];if(f===void 0)continue;let d=!0;if(typeof f=="number"?d=f===(u.startsWith("scale")?1:0):d=parseFloat(f)===0,!d||n){const h=o1(f,tm[u]);if(!d){a=!1;const m=OU[u]||u;i+=`${m}(${h}) `}n&&(e[u]=h)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function om(t,e,n){const{style:i,vars:a,transformOrigin:l}=t;let u=!1,f=!1;for(const d in e){const h=e[d];if(Da.has(d)){u=!0;continue}else if(_p(d)){a[d]=h;continue}else{const m=o1(h,tm[d]);d.startsWith("origin")?(f=!0,l[d]=m):i[d]=m}}if(e.transform||(u||n?i.transform=DU(e,t.transform,n):i.transform&&(i.transform="none")),f){const{originX:d="50%",originY:h="50%",originZ:m=0}=l;i.transformOrigin=`${d} ${h} ${m}`}}const lm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _1(t,e,n){for(const i in e)!Ze(e[i])&&!C1(i,n)&&(t[i]=e[i])}function MU({transformTemplate:t},e){return B.useMemo(()=>{const n=lm();return om(n,e,t),Object.assign({},n.vars,n.style)},[e])}function NU(t,e){const n=t.style||{},i={};return _1(i,n,t),Object.assign(i,MU(t,e)),i}function LU(t,e){const n={},i=NU(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const jU={offset:"stroke-dashoffset",array:"stroke-dasharray"},zU={offset:"strokeDashoffset",array:"strokeDasharray"};function BU(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?jU:zU;t[l.offset]=Tt.transform(-i);const u=Tt.transform(e),f=Tt.transform(n);t[l.array]=`${u} ${f}`}function A1(t,{attrX:e,attrY:n,attrScale:i,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...f},d,h,m){if(om(t,f,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:y,style:b}=t;y.transform&&(b.transform=y.transform,delete y.transform),(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete y.transformBox),e!==void 0&&(y.x=e),n!==void 0&&(y.y=n),i!==void 0&&(y.scale=i),a!==void 0&&BU(y,a,l,u,!1)}const R1=()=>({...lm(),attrs:{}}),O1=t=>typeof t=="string"&&t.toLowerCase()==="svg";function UU(t,e,n,i){const a=B.useMemo(()=>{const l=R1();return A1(l,e,O1(i),t.transformTemplate,t.style),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};_1(l,t.style,t),a.style={...l,...a.style}}return a}const IU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function um(t){return typeof t!="string"||t.includes("-")?!1:!!(IU.indexOf(t)>-1||/[A-Z]/u.test(t))}function PU(t,e,n,{latestValues:i},a,l=!1){const f=(um(t)?UU:LU)(e,i,a,t),d=CU(e,typeof t=="string",l),h=t!==B.Fragment?{...d,...f,ref:n}:{},{children:m}=e,y=B.useMemo(()=>Ze(m)?m.get():m,[m]);return B.createElement(t,{...h,children:y})}function k1(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function cm(t,e,n,i){if(typeof e=="function"){const[a,l]=k1(i);e=e(n!==void 0?n:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=k1(i);e=e(n!==void 0?n:t.custom,a,l)}return e}function ef(t){return Ze(t)?t.get():t}function qU({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,a){return{latestValues:FU(n,i,a,t),renderState:e()}}function FU(t,e,n,i){const a={},l=i(t,{});for(const b in l)a[b]=ef(l[b]);let{initial:u,animate:f}=t;const d=tf(t),h=E1(t);e&&h&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),f===void 0&&(f=e.animate));let m=n?n.initial===!1:!1;m=m||u===!1;const y=m?f:u;if(y&&typeof y!="boolean"&&!Wc(y)){const b=Array.isArray(y)?y:[y];for(let v=0;v<b.length;v++){const w=cm(t,b[v]);if(w){const{transitionEnd:E,transition:C,..._}=w;for(const L in _){let R=_[L];if(Array.isArray(R)){const U=m?R.length-1:0;R=R[U]}R!==null&&(a[L]=R)}for(const L in E)a[L]=E[L]}}}return a}const D1=t=>(e,n)=>{const i=B.useContext(Jc),a=B.useContext(Fc),l=()=>qU(t,e,i,a);return n?l():qc(l)};function fm(t,e,n){var l;const{style:i}=t,a={};for(const u in i)(Ze(i[u])||e.style&&Ze(e.style[u])||C1(u,t)||((l=n==null?void 0:n.getValue(u))==null?void 0:l.liveStyle)!==void 0)&&(a[u]=i[u]);return a}const VU=D1({scrapeMotionValuesFromProps:fm,createRenderState:lm});function M1(t,e,n){const i=fm(t,e,n);for(const a in t)if(Ze(t[a])||Ze(e[a])){const l=ka.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}const HU=D1({scrapeMotionValuesFromProps:M1,createRenderState:R1}),GU=Symbol.for("motionComponentSymbol");function La(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function YU(t,e,n){return B.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):La(n)&&(n.current=i))},[e])}const dm=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N1="data-"+dm("framerAppearId"),L1=B.createContext({});function KU(t,e,n,i,a){var E,C;const{visualElement:l}=B.useContext(Jc),u=B.useContext(x1),f=B.useContext(Fc),d=B.useContext(im).reducedMotion,h=B.useRef(null);i=i||u.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,y=B.useContext(L1);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&$U(h.current,n,a,y);const b=B.useRef(!1);B.useInsertionEffect(()=>{m&&b.current&&m.update(n,f)});const v=n[N1],w=B.useRef(!!v&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,v))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,v)));return yp(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),w.current&&m.animationState&&m.animationState.animateChanges())}),B.useEffect(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,v)}),w.current=!1),m.enteringChildren=void 0)}),m}function $U(t,e,n,i){const{layoutId:a,layout:l,drag:u,dragConstraints:f,layoutScroll:d,layoutRoot:h,layoutCrossfade:m}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:j1(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||f&&La(f),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:d,layoutRoot:h})}function j1(t){if(t)return t.options.allowProjection!==!1?t.projection:j1(t.parent)}function hm(t,{forwardMotionProps:e=!1}={},n,i){n&&SU(n);const a=um(t)?HU:VU;function l(f,d){let h;const m={...B.useContext(im),...f,layoutId:XU(f)},{isStatic:y}=m,b=AU(f),v=a(f,y);if(!y&&gp){QU();const w=ZU(m);h=w.MeasureLayout,b.visualElement=KU(t,v,m,i,w.ProjectionNode)}return N.jsxs(Jc.Provider,{value:b,children:[h&&b.visualElement?N.jsx(h,{visualElement:b.visualElement,...m}):null,PU(t,f,YU(v,b.visualElement,d),v,y,e)]})}l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const u=B.forwardRef(l);return u[GU]=t,u}function XU({layoutId:t}){const e=B.useContext(mp).id;return e&&t!==void 0?e+"-"+t:t}function QU(t,e){B.useContext(x1).strict}function ZU(t){const{drag:e,layout:n}=Na;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function JU(t,e){if(typeof Proxy>"u")return hm;const n=new Map,i=(l,u)=>hm(l,u,t,e),a=(l,u)=>i(l,u);return new Proxy(a,{get:(l,u)=>u==="create"?i:(n.has(u)||n.set(u,hm(u,void 0,t,e)),n.get(u))})}function z1({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function WU({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function tI(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function pm(t){return t===void 0||t===1}function mm({scale:t,scaleX:e,scaleY:n}){return!pm(t)||!pm(e)||!pm(n)}function Ms(t){return mm(t)||B1(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function B1(t){return U1(t.x)||U1(t.y)}function U1(t){return t&&t!=="0%"}function nf(t,e,n){const i=t-n,a=e*i;return n+a}function I1(t,e,n,i,a){return a!==void 0&&(t=nf(t,a,i)),nf(t,n,i)+e}function gm(t,e=0,n=1,i,a){t.min=I1(t.min,e,n,i,a),t.max=I1(t.max,e,n,i,a)}function P1(t,{x:e,y:n}){gm(t.x,e.translate,e.scale,e.originPoint),gm(t.y,n.translate,n.scale,n.originPoint)}const q1=.999999999999,F1=1.0000000000001;function eI(t,e,n,i=!1){const a=n.length;if(!a)return;e.x=e.y=1;let l,u;for(let f=0;f<a;f++){l=n[f],u=l.projectionDelta;const{visualElement:d}=l.options;d&&d.props.style&&d.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&za(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,P1(t,u)),i&&Ms(l.latestValues)&&za(t,l.latestValues))}e.x<F1&&e.x>q1&&(e.x=1),e.y<F1&&e.y>q1&&(e.y=1)}function ja(t,e){t.min=t.min+e,t.max=t.max+e}function V1(t,e,n,i,a=.5){const l=ye(t.min,t.max,a);gm(t,e,n,l,i)}function za(t,e){V1(t.x,e.x,e.scaleX,e.scale,e.originX),V1(t.y,e.y,e.scaleY,e.scale,e.originY)}function H1(t,e){return z1(tI(t.getBoundingClientRect(),e))}function nI(t,e,n){const i=H1(t,n),{scroll:a}=e;return a&&(ja(i.x,a.offset.x),ja(i.y,a.offset.y)),i}const G1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ba=()=>({x:G1(),y:G1()}),Y1=()=>({min:0,max:0}),Te=()=>({x:Y1(),y:Y1()}),ym={current:null},K1={current:!1};function rI(){if(K1.current=!0,!!gp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ym.current=t.matches;t.addEventListener("change",e),e()}else ym.current=!1}const iI=new WeakMap;function sI(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Ze(a))t.addValue(i,a);else if(Ze(l))t.addValue(i,Ma(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=t.getStaticValue(i);t.addValue(i,Ma(u!==void 0?u:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const $1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class aI{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=fn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,he.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=u;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=tf(n),this.isVariantNode=E1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...y}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in y){const v=y[b];d[b]!==void 0&&Ze(v)&&v.set(d[b])}}mount(e){var n;this.current=e,iI.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,a)=>this.bindToMotionValue(a,i)),K1.current||rI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ym.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Si(this.notifyUpdate),Si(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Da.has(e);i&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",u=>{this.latestValues[e]=u,this.props.onUpdate&&he.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Na){const n=Na[e];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<$1.length;i++){const a=$1[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=e[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=sI(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Ma(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(oS(i)||uS(i))?i=parseFloat(i):!mU(i)&&Ti.test(n)&&(i=s1(e,n)),this.setBaseTarget(e,Ze(i)?i.get():i)),Ze(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var l;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const u=cm(this.props,n,(l=this.presenceContext)==null?void 0:l.custom);u&&(i=u[e])}if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!Ze(a)?a:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sp),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){em.render(this.render)}}class X1 extends aI{constructor(){super(...arguments),this.KeyframeResolver=iU}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ze(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Q1(t,{style:e,vars:n},i,a){const l=t.style;let u;for(u in e)l[u]=e[u];a==null||a.applyProjectionStyles(l,i);for(u in n)l.setProperty(u,n[u])}function oI(t){return window.getComputedStyle(t)}class lI extends X1{constructor(){super(...arguments),this.type="html",this.renderInstance=Q1}readValueFromInstance(e,n){var i;if(Da.has(n))return(i=this.projection)!=null&&i.isProjecting?Gp(n):TB(e,n);{const a=oI(e),l=(_p(n)?a.getPropertyValue(n):a[n])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(e,{transformPagePoint:n}){return H1(e,n)}build(e,n,i){om(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return fm(e,n,i)}}const Z1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function uI(t,e,n,i){Q1(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(Z1.has(a)?a:dm(a),e.attrs[a])}class cI extends X1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Da.has(n)){const i=i1(n);return i&&i.default||0}return n=Z1.has(n)?n:dm(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return M1(e,n,i)}build(e,n,i){A1(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,a){uI(e,n,i,a)}mount(e){this.isSVGTag=O1(e.tagName),super.mount(e)}}const fI=(t,e)=>um(t)?new cI(e):new lI(e,{allowProjection:t!==B.Fragment});function Ua(t,e,n){const i=t.getProps();return cm(i,e,n!==void 0?n:i.custom,t)}const bm=t=>Array.isArray(t);function dI(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ma(n))}function hI(t){return bm(t)?t[t.length-1]||0:t}function vm(t,e){const n=Ua(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const f=hI(l[u]);dI(t,u,f)}}function pI(t){return!!(Ze(t)&&t.add)}function xm(t,e){const n=t.getValue("willChange");if(pI(n))return n.add(e);if(!n&&Vr.WillChange){const i=new Vr.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function J1(t){return t.props[N1]}const mI=t=>t!==null;function gI(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(mI),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return a[l]}const yI={type:"spring",stiffness:500,damping:25,restSpeed:10},bI=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),vI={type:"keyframes",duration:.8},xI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wI=(t,{keyframes:e})=>e.length>2?vI:Da.has(t)?t.startsWith("scale")?bI(e[1]):yI:xI;function SI({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:f,from:d,elapsed:h,...m}){return!!Object.keys(m).length}const wm=(t,e,n,i={},a,l)=>u=>{const f=Jp(i,t)||{},d=f.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Sr(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-h,onUpdate:b=>{e.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:l?void 0:a};SI(f)||Object.assign(m,wI(t,m)),m.duration&&(m.duration=Sr(m.duration)),m.repeatDelay&&(m.repeatDelay=Sr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Zp(m),m.delay===0&&(y=!0)),(Vr.instantAnimations||Vr.skipAnimations)&&(y=!0,Zp(m),m.delay=0),m.allowFlatten=!f.type&&!f.ease,y&&!l&&e.get()!==void 0){const b=gI(m.keyframes,f);if(b!==void 0){he.update(()=>{m.onUpdate(b),m.onComplete()});return}}return f.isSync?new Fp(m):new KB(m)};function EI({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function W1(t,e,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:l=t.getDefaultTransition(),transitionEnd:u,...f}=e;i&&(l=i);const d=[],h=a&&t.animationState&&t.animationState.getState()[a];for(const m in f){const y=t.getValue(m,t.latestValues[m]??null),b=f[m];if(b===void 0||h&&EI(h,m))continue;const v={delay:n,...Jp(l||{},m)},w=y.get();if(w!==void 0&&!y.isAnimating&&!Array.isArray(b)&&b===w&&!v.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const _=J1(t);if(_){const L=window.MotionHandoffAnimation(_,m,he);L!==null&&(v.startTime=L,E=!0)}}xm(t,m),y.start(wm(m,y,b,t.shouldReduceMotion&&WS.has(m)?{type:!1}:v,t,E));const C=y.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{he.update(()=>{u&&vm(t,u)})}),d}function tE(t,e,n,i=0,a=1){const l=Array.from(t).sort((h,m)=>h.sortNodePosition(m)).indexOf(e),u=t.size,f=(u-1)*i;return typeof n=="function"?n(l,u):a===1?l*i:f-l*i}function Sm(t,e,n={}){var d;const i=Ua(t,e,n.type==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const l=i?()=>Promise.all(W1(t,i,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:b}=a;return TI(t,e,h,m,y,b,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,m]=f==="beforeChildren"?[l,u]:[u,l];return h().then(()=>m())}else return Promise.all([l(),u(n.delay)])}function TI(t,e,n=0,i=0,a=0,l=1,u){const f=[];for(const d of t.variantChildren)d.notify("AnimationStart",e),f.push(Sm(d,e,{...u,delay:n+(typeof i=="function"?0:i)+tE(t.variantChildren,d,i,a,l)}).then(()=>d.notify("AnimationComplete",e)));return Promise.all(f)}function eE(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>Sm(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=Sm(t,e,n);else{const a=typeof e=="function"?Ua(t,e,n.custom):e;i=Promise.all(W1(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function nE(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const CI=am.length;function rE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?rE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<CI;n++){const i=am[n],a=t.props[i];(Ol(a)||a===!1)&&(e[i]=a)}return e}const _I=[...sm].reverse(),AI=sm.length;function RI(t){return e=>Promise.all(e.map(({animation:n,options:i})=>eE(t,n,i)))}function OI(t){let e=RI(t),n=iE(),i=!0;const a=d=>(h,m)=>{var b;const y=Ua(t,m,d==="exit"?(b=t.presenceContext)==null?void 0:b.custom:void 0);if(y){const{transition:v,transitionEnd:w,...E}=y;h={...h,...E,...w}}return h};function l(d){e=d(t)}function u(d){const{props:h}=t,m=rE(t.parent)||{},y=[],b=new Set;let v={},w=1/0;for(let C=0;C<AI;C++){const _=_I[C],L=n[_],R=h[_]!==void 0?h[_]:m[_],U=Ol(R),G=_===d?L.isActive:null;G===!1&&(w=C);let z=R===m[_]&&R!==h[_]&&U;if(z&&i&&t.manuallyAnimateOnMount&&(z=!1),L.protectedKeys={...v},!L.isActive&&G===null||!R&&!L.prevProp||Wc(R)||typeof R=="boolean")continue;const q=kI(L.prevProp,R);let M=q||_===d&&L.isActive&&!z&&U||C>w&&U,P=!1;const K=Array.isArray(R)?R:[R];let nt=K.reduce(a(_),{});G===!1&&(nt={});const{prevResolvedValues:st={}}=L,ft={...st,...nt},at=Y=>{M=!0,b.has(Y)&&(P=!0,b.delete(Y)),L.needsAnimating[Y]=!0;const F=t.getValue(Y);F&&(F.liveStyle=!1)};for(const Y in ft){const F=nt[Y],gt=st[Y];if(v.hasOwnProperty(Y))continue;let O=!1;bm(F)&&bm(gt)?O=!nE(F,gt):O=F!==gt,O?F!=null?at(Y):b.add(Y):F!==void 0&&b.has(Y)?at(Y):L.protectedKeys[Y]=!0}L.prevProp=R,L.prevResolvedValues=nt,L.isActive&&(v={...v,...nt}),i&&t.blockInitialAnimation&&(M=!1);const it=z&&q;M&&(!it||P)&&y.push(...K.map(Y=>{const F={type:_};if(typeof Y=="string"&&i&&!it&&t.manuallyAnimateOnMount&&t.parent){const{parent:gt}=t,O=Ua(gt,Y);if(gt.enteringChildren&&O){const{delayChildren:xt}=O.transition||{};F.delay=tE(gt.enteringChildren,t,xt)}}return{animation:Y,options:F}}))}if(b.size){const C={};if(typeof h.initial!="boolean"){const _=Ua(t,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(C.transition=_.transition)}b.forEach(_=>{const L=t.getBaseTarget(_),R=t.getValue(_);R&&(R.liveStyle=!0),C[_]=L??null}),y.push({animation:C})}let E=!!y.length;return i&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(E=!1),i=!1,E?e(y):Promise.resolve()}function f(d,h){var y;if(n[d].isActive===h)return Promise.resolve();(y=t.variantChildren)==null||y.forEach(b=>{var v;return(v=b.animationState)==null?void 0:v.setActive(d,h)}),n[d].isActive=h;const m=u(d);for(const b in n)n[b].protectedKeys={};return m}return{animateChanges:u,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=iE()}}}function kI(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!nE(e,t):!1}function Ns(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iE(){return{animate:Ns(!0),whileInView:Ns(),whileHover:Ns(),whileTap:Ns(),whileDrag:Ns(),whileFocus:Ns(),exit:Ns()}}class Ci{constructor(e){this.isMounted=!1,this.node=e}update(){}}class DI extends Ci{constructor(e){super(e),e.animationState||(e.animationState=OI(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Wc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let MI=0;class NI extends Ci{constructor(){super(...arguments),this.id=MI++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);n&&!e&&a.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const LI={animation:{Feature:DI},exit:{Feature:NI}};function Dl(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Ml(t){return{point:{x:t.pageX,y:t.pageY}}}const jI=t=>e=>nm(e)&&t(e,Ml(e));function Nl(t,e,n,i){return Dl(t,e,jI(n),i)}const sE=1e-4,zI=1-sE,BI=1+sE,aE=.01,UI=0-aE,II=0+aE;function rn(t){return t.max-t.min}function PI(t,e,n){return Math.abs(t-e)<=n}function oE(t,e,n,i=.5){t.origin=i,t.originPoint=ye(e.min,e.max,t.origin),t.scale=rn(n)/rn(e),t.translate=ye(n.min,n.max,t.origin)-t.originPoint,(t.scale>=zI&&t.scale<=BI||isNaN(t.scale))&&(t.scale=1),(t.translate>=UI&&t.translate<=II||isNaN(t.translate))&&(t.translate=0)}function Ll(t,e,n,i){oE(t.x,e.x,n.x,i?i.originX:void 0),oE(t.y,e.y,n.y,i?i.originY:void 0)}function lE(t,e,n){t.min=n.min+e.min,t.max=t.min+rn(e)}function qI(t,e,n){lE(t.x,e.x,n.x),lE(t.y,e.y,n.y)}function uE(t,e,n){t.min=e.min-n.min,t.max=t.min+rn(e)}function jl(t,e,n){uE(t.x,e.x,n.x),uE(t.y,e.y,n.y)}function Fn(t){return[t("x"),t("y")]}const cE=({current:t})=>t?t.ownerDocument.defaultView:null,fE=(t,e)=>Math.abs(t-e);function FI(t,e){const n=fE(t.x,e.x),i=fE(t.y,e.y);return Math.sqrt(n**2+i**2)}class dE{constructor(e,n,{transformPagePoint:i,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Tm(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,w=FI(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!w)return;const{point:E}=b,{timestamp:C}=Fe;this.history.push({...E,timestamp:C});const{onStart:_,onMove:L}=this.handlers;v||(_&&_(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,b)},this.handlePointerMove=(b,v)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=Em(v,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(b,v)=>{this.end();const{onEnd:w,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Tm(b.type==="pointercancel"?this.lastMoveEventInfo:Em(v,this.transformPagePoint),this.history);this.startEvent&&w&&w(b,_),E&&E(b,_)},!nm(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=a||window;const f=Ml(e),d=Em(f,this.transformPagePoint),{point:h}=d,{timestamp:m}=Fe;this.history=[{...h,timestamp:m}];const{onSessionStart:y}=n;y&&y(e,Tm(d,this.history)),this.removeListeners=vl(Nl(this.contextWindow,"pointermove",this.handlePointerMove),Nl(this.contextWindow,"pointerup",this.handlePointerUp),Nl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Si(this.updatePoint)}}function Em(t,e){return e?{point:e(t.point)}:t}function hE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Tm({point:t},e){return{point:t,delta:hE(t,pE(e)),offset:hE(t,VI(e)),velocity:HI(e,.1)}}function VI(t){return t[0]}function pE(t){return t[t.length-1]}function HI(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=pE(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>Sr(e)));)n--;if(!i)return{x:0,y:0};const l=qn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function GI(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?ye(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?ye(n,t,i.max):Math.min(t,n)),t}function mE(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function YI(t,{top:e,left:n,bottom:i,right:a}){return{x:mE(t.x,n,a),y:mE(t.y,e,i)}}function gE(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function KI(t,e){return{x:gE(t.x,e.x),y:gE(t.y,e.y)}}function $I(t,e){let n=.5;const i=rn(t),a=rn(e);return a>i?n=xl(e.min,e.max-i,t.min):i>a&&(n=xl(t.min,t.max-a,e.min)),Fr(0,1,n)}function XI(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Cm=.35;function QI(t=Cm){return t===!1?t=0:t===!0&&(t=Cm),{x:yE(t,"left","right"),y:yE(t,"top","bottom")}}function yE(t,e,n){return{min:bE(t,e),max:bE(t,n)}}function bE(t,e){return typeof t=="number"?t:t[e]||0}const ZI=new WeakMap;class JI{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=y=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ml(y).point)},u=(y,b)=>{const{drag:v,dragPropagation:w,onDragStart:E}=this.getProps();if(v&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=oU(v),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fn(_=>{let L=this.getAxisMotionValue(_).get()||0;if(Er.test(L)){const{projection:R}=this.visualElement;if(R&&R.layout){const U=R.layout.layoutBox[_];U&&(L=rn(U)*(parseFloat(L)/100))}}this.originPoint[_]=L}),E&&he.postRender(()=>E(y,b)),xm(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},f=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b;const{dragPropagation:v,dragDirectionLock:w,onDirectionLock:E,onDrag:C}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:_}=b;if(w&&this.currentDirection===null){this.currentDirection=WI(_),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",b.point,_),this.updateAxis("y",b.point,_),this.visualElement.render(),C&&C(y,b)},d=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b,this.stop(y,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Fn(y=>{var b;return this.getAnimationState(y)==="paused"&&((b=this.getAxisMotionValue(y).animation)==null?void 0:b.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new dE(e,{onSessionStart:l,onStart:u,onMove:f,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:i,contextWindow:cE(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,a=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!i)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&he.postRender(()=>f(i,a))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:a}=this.getProps();if(!i||!rf(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=GI(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var l;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(l=this.visualElement.projection)==null?void 0:l.layout,a=this.constraints;e&&La(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=YI(i.layoutBox,e):this.constraints=!1,this.elastic=QI(n),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Fn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=XI(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!La(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=nI(i,a.root,this.visualElement.getTransformPagePoint());let u=KI(a.layout.layoutBox,l);if(n){const f=n(WU(u));this.hasMutatedConstraints=!!f,f&&(u=z1(f))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),d=this.constraints||{},h=Fn(m=>{if(!rf(m,n,this.currentDirection))return;let y=d&&d[m]||{};u&&(y={min:0,max:0});const b=a?200:1e6,v=a?40:1e7,w={type:"inertia",velocity:i?e[m]:0,bounceStiffness:b,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(m,w)});return Promise.all(h).then(f)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return xm(this.visualElement,e),i.start(wm(e,i,0,n,this.visualElement,!1))}stopAnimation(){Fn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Fn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Fn(n=>{const{drag:i}=this.getProps();if(!rf(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:f}=a.layout.layoutBox[n];l.set(e[n]-ye(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!La(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Fn(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const d=f.get();a[u]=$I({min:d,max:d},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Fn(u=>{if(!rf(u,e,null))return;const f=this.getAxisMotionValue(u),{min:d,max:h}=this.constraints[u];f.set(ye(d,h,a[u]))})}addListeners(){if(!this.visualElement.current)return;ZI.set(this.visualElement,this);const e=this.visualElement.current,n=Nl(e,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();La(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),he.read(i);const u=Dl(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Fn(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=d[m].translate,y.set(y.get()+d[m].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),f&&f()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=Cm,dragMomentum:f=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f}}}function rf(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function WI(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class tP extends Ci{constructor(e){super(e),this.removeGroupControls=Pn,this.removeListeners=Pn,this.controls=new JI(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pn}unmount(){this.removeGroupControls(),this.removeListeners()}}const vE=t=>(e,n)=>{t&&he.postRender(()=>t(e,n))};class eP extends Ci{constructor(){super(...arguments),this.removePointerDownListener=Pn}onPointerDown(e){this.session=new dE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:vE(e),onStart:vE(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&he.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Nl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const sf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xE(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const zl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Tt.test(t))t=parseFloat(t);else return t;const n=xE(t,e.target.x),i=xE(t,e.target.y);return`${n}% ${i}%`}},nP={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,a=Ti.parse(t);if(a.length>5)return i;const l=Ti.createTransformer(t),u=typeof a[0]!="number"?1:0,f=n.x.scale*e.x,d=n.y.scale*e.y;a[0+u]/=f,a[1+u]/=d;const h=ye(f,d,.5);return typeof a[2+u]=="number"&&(a[2+u]/=h),typeof a[3+u]=="number"&&(a[3+u]/=h),l(a)}};let _m=!1;class rP extends B.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;RU(iP),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),_m&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),sf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,{projection:u}=i;return u&&(u.isPresent=l,_m=!0,a||e.layoutDependency!==n||n===void 0||e.isPresent!==l?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||he.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),em.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=e;_m=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function wE(t){const[e,n]=b1(),i=B.useContext(mp);return N.jsx(rP,{...t,layoutGroup:i,switchLayoutGroup:B.useContext(L1),isPresent:e,safeToRemove:n})}const iP={borderRadius:{...zl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zl,borderTopRightRadius:zl,borderBottomLeftRadius:zl,borderBottomRightRadius:zl,boxShadow:nP};function sP(t,e,n){const i=Ze(t)?t:Ma(t);return i.start(wm("",i,e,n)),i.animation}const aP=(t,e)=>t.depth-e.depth;class oP{constructor(){this.children=[],this.isDirty=!1}add(e){bp(this.children,e),this.isDirty=!0}remove(e){vp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(aP),this.isDirty=!1,this.children.forEach(e)}}function lP(t,e){const n=fn.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(Si(i),t(l-e))};return he.setup(i,!0),()=>Si(i)}const SE=["TopLeft","TopRight","BottomLeft","BottomRight"],uP=SE.length,EE=t=>typeof t=="string"?parseFloat(t):t,TE=t=>typeof t=="number"||Tt.test(t);function cP(t,e,n,i,a,l){a?(t.opacity=ye(0,n.opacity??1,fP(i)),t.opacityExit=ye(e.opacity??1,0,dP(i))):l&&(t.opacity=ye(e.opacity??1,n.opacity??1,i));for(let u=0;u<uP;u++){const f=`border${SE[u]}Radius`;let d=CE(e,f),h=CE(n,f);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||TE(d)===TE(h)?(t[f]=Math.max(ye(EE(d),EE(h),i),0),(Er.test(h)||Er.test(d))&&(t[f]+="%")):t[f]=h}(e.rotate||n.rotate)&&(t.rotate=ye(e.rotate||0,n.rotate||0,i))}function CE(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const fP=_E(0,.5,yS),dP=_E(.5,.95,Pn);function _E(t,e,n){return i=>i<t?0:i>e?1:n(xl(t,e,i))}function AE(t,e){t.min=e.min,t.max=e.max}function Vn(t,e){AE(t.x,e.x),AE(t.y,e.y)}function RE(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function OE(t,e,n,i,a){return t-=e,t=nf(t,1/n,i),a!==void 0&&(t=nf(t,1/a,i)),t}function hP(t,e=0,n=1,i=.5,a,l=t,u=t){if(Er.test(e)&&(e=parseFloat(e),e=ye(u.min,u.max,e/100)-u.min),typeof e!="number")return;let f=ye(l.min,l.max,i);t===l&&(f-=e),t.min=OE(t.min,e,n,f,a),t.max=OE(t.max,e,n,f,a)}function kE(t,e,[n,i,a],l,u){hP(t,e[n],e[i],e[a],e.scale,l,u)}const pP=["x","scaleX","originX"],mP=["y","scaleY","originY"];function DE(t,e,n,i){kE(t.x,e,pP,n?n.x:void 0,i?i.x:void 0),kE(t.y,e,mP,n?n.y:void 0,i?i.y:void 0)}function ME(t){return t.translate===0&&t.scale===1}function NE(t){return ME(t.x)&&ME(t.y)}function LE(t,e){return t.min===e.min&&t.max===e.max}function gP(t,e){return LE(t.x,e.x)&&LE(t.y,e.y)}function jE(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function zE(t,e){return jE(t.x,e.x)&&jE(t.y,e.y)}function BE(t){return rn(t.x)/rn(t.y)}function UE(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class yP{constructor(){this.members=[]}add(e){bp(this.members,e),e.scheduleRender()}remove(e){if(vp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(a=>e===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bP(t,e,n){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((a||l||u)&&(i=`translate3d(${a}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:y,rotateY:b,skewX:v,skewY:w}=n;h&&(i=`perspective(${h}px) ${i}`),m&&(i+=`rotate(${m}deg) `),y&&(i+=`rotateX(${y}deg) `),b&&(i+=`rotateY(${b}deg) `),v&&(i+=`skewX(${v}deg) `),w&&(i+=`skewY(${w}deg) `)}const f=t.x.scale*e.x,d=t.y.scale*e.y;return(f!==1||d!==1)&&(i+=`scale(${f}, ${d})`),i||"none"}const Am=["","X","Y","Z"],vP=1e3;let xP=0;function Rm(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function IE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=J1(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",he,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&IE(i)}function PE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},f=e==null?void 0:e()){this.id=xP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(EP),this.nodes.forEach(AP),this.nodes.forEach(RP),this.nodes.forEach(TP)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new oP)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Sp),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const d=this.eventHandlers.get(u);d&&d.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=g1(u)&&!hU(u),this.instance=u;const{layoutId:f,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||f)&&(this.isLayoutDirty=!0),t){let m,y=0;const b=()=>this.root.updateBlockedByResize=!1;he.read(()=>{y=window.innerWidth}),t(u,()=>{const v=window.innerWidth;v!==y&&(y=v,this.root.updateBlockedByResize=!0,m&&m(),m=lP(b,250),sf.hasAnimatedSinceResize&&(sf.hasAnimatedSinceResize=!1,this.nodes.forEach(VE)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:b,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||NP,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=h.getProps(),_=!this.targetLayout||!zE(this.targetLayout,v),L=!y&&b;if(this.options.layoutRoot||this.resumeFrom||L||y&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Jp(w,"layout"),onPlay:E,onComplete:C};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(m,L)}else y||VE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Si(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(OP),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&IE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:d}=this.options;if(f===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(FE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_P),this.nodes.forEach(wP),this.nodes.forEach(SP)):this.nodes.forEach(FE),this.clearAllSnapshots();const f=fn.now();Fe.delta=Fr(0,1e3/60,f-Fe.timestamp),Fe.timestamp=f,Fe.isProcessing=!0,Cp.update.process(Fe),Cp.preRender.process(Fe),Cp.render.process(Fe),Fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,em.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(CP),this.sharedNodes.forEach(kP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,he.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){he.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!rn(this.snapshot.measuredBox.x)&&!rn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f&&this.instance){const d=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!NE(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;u&&this.instance&&(f||Ms(this.latestValues)||m)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let d=this.removeElementScroll(f);return u&&(d=this.removeTransform(d)),LP(d),{animationId:this.root.animationId,measuredBox:f,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:u}=this.options;if(!u)return Te();const f=u.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(jP))){const{scroll:m}=this.root;m&&(ja(f.x,m.offset.x),ja(f.y,m.offset.y))}return f}removeElementScroll(u){var d;const f=Te();if(Vn(f,u),(d=this.scroll)!=null&&d.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:y,options:b}=m;m!==this.root&&y&&b.layoutScroll&&(y.wasRoot&&Vn(f,u),ja(f.x,y.offset.x),ja(f.y,y.offset.y))}return f}applyTransform(u,f=!1){const d=Te();Vn(d,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];!f&&m.options.layoutScroll&&m.scroll&&m!==m.root&&za(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ms(m.latestValues)&&za(d,m.latestValues)}return Ms(this.latestValues)&&za(d,this.latestValues),d}removeTransform(u){const f=Te();Vn(f,u);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!Ms(h.latestValues))continue;mm(h.latestValues)&&h.updateSnapshot();const m=Te(),y=h.measurePageBox();Vn(m,y),DE(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Ms(this.latestValues)&&DE(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var b;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==f;if(!(u||d&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!(!this.layout||!(m||y))){if(this.resolvedRelativeTargetAt=Fe.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),jl(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Te(),this.targetWithTransforms=Te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vn(this.target,this.layout.layoutBox),P1(this.target,this.targetDelta)):Vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),jl(this.relativeTargetOrigin,this.target,v.target),Vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||mm(this.parent.latestValues)||B1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var w;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(d=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Fe.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Vn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;eI(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Te());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(RE(this.prevProjectionDelta.x,this.projectionDelta.x),RE(this.prevProjectionDelta.y,this.projectionDelta.y)),Ll(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!UE(this.projectionDelta.x,this.prevProjectionDelta.x)||!UE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var f;if((f=this.options.visualElement)==null||f.scheduleRender(),u){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ba(),this.projectionDelta=Ba(),this.projectionDeltaWithTransform=Ba()}setAnimationOrigin(u,f=!1){const d=this.snapshot,h=d?d.latestValues:{},m={...this.latestValues},y=Ba();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=Te(),v=d?d.source:void 0,w=this.layout?this.layout.source:void 0,E=v!==w,C=this.getStack(),_=!C||C.members.length<=1,L=!!(E&&!_&&this.options.crossfade===!0&&!this.path.some(MP));this.animationProgress=0;let R;this.mixTargetDelta=U=>{const G=U/1e3;HE(y.x,u.x,G),HE(y.y,u.y,G),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jl(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),DP(this.relativeTarget,this.relativeTargetOrigin,b,G),R&&gP(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Te()),Vn(R,this.relativeTarget)),E&&(this.animationValues=m,cP(m,h,this.latestValues,G,L,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var f,d,h;this.notifyListeners("animationStart"),(f=this.currentAnimation)==null||f.stop(),(h=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||h.stop(),this.pendingAnimation&&(Si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{sf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ma(0)),this.currentAnimation=sP(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),u.onUpdate&&u.onUpdate(m)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:d,layout:h,latestValues:m}=u;if(!(!f||!d||!h)){if(this!==u&&this.layout&&h&&XE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||Te();const y=rn(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const b=rn(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+b}Vn(f,d),za(f,m),Ll(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new yP),this.sharedNodes.get(u).add(f);const h=f.options.initialPromotionConfig;f.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var f;const{layoutId:u}=this.options;return u?((f=this.getStack())==null?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:u}=this.options;return u?(f=this.getStack())==null?void 0:f.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(f=!0),!f)return;const h={};d.z&&Rm("z",u,h,this.animationValues);for(let m=0;m<Am.length;m++)Rm(`rotate${Am[m]}`,u,h,this.animationValues),Rm(`skew${Am[m]}`,u,h,this.animationValues);u.render();for(const m in h)u.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);u.scheduleRender()}applyProjectionStyles(u,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=ef(f==null?void 0:f.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=ef(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!Ms(this.latestValues)&&(u.transform=d?d({},""):"none",this.hasProjected=!1);return}u.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let y=bP(this.projectionDeltaWithTransform,this.treeScale,m);d&&(y=d(m,y)),u.transform=y;const{x:b,y:v}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${v.origin*100}% 0`,h.animationValues?u.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const w in kl){if(m[w]===void 0)continue;const{correct:E,applyTo:C,isCSSVariable:_}=kl[w],L=y==="none"?m[w]:E(m[w],h);if(C){const R=C.length;for(let U=0;U<R;U++)u[C[U]]=L}else _?this.options.visualElement.renderState.vars[w]=L:u[w]=L}this.options.layoutId&&(u.pointerEvents=h===this?ef(f==null?void 0:f.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var f;return(f=u.currentAnimation)==null?void 0:f.stop()}),this.root.nodes.forEach(qE),this.root.sharedNodes.clear()}}}function wP(t){t.updateLayout()}function SP(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,u=e.source!==t.layout.source;l==="size"?Fn(y=>{const b=u?e.measuredBox[y]:e.layoutBox[y],v=rn(b);b.min=i[y].min,b.max=b.min+v}):XE(l,e.layoutBox,i)&&Fn(y=>{const b=u?e.measuredBox[y]:e.layoutBox[y],v=rn(i[y]);b.max=b.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+v)});const f=Ba();Ll(f,i,e.layoutBox);const d=Ba();u?Ll(d,t.applyTransform(a,!0),e.measuredBox):Ll(d,i,e.layoutBox);const h=!NE(f);let m=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:b,layout:v}=y;if(b&&v){const w=Te();jl(w,e.layoutBox,b.layoutBox);const E=Te();jl(E,i,v.layoutBox),zE(w,E)||(m=!0),y.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=w,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:d,layoutDelta:f,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function EP(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function TP(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function CP(t){t.clearSnapshot()}function qE(t){t.clearMeasurements()}function FE(t){t.isLayoutDirty=!1}function _P(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function VE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function AP(t){t.resolveTargetDelta()}function RP(t){t.calcProjection()}function OP(t){t.resetSkewAndRotation()}function kP(t){t.removeLeadSnapshot()}function HE(t,e,n){t.translate=ye(e.translate,0,n),t.scale=ye(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function GE(t,e,n,i){t.min=ye(e.min,n.min,i),t.max=ye(e.max,n.max,i)}function DP(t,e,n,i){GE(t.x,e.x,n.x,i),GE(t.y,e.y,n.y,i)}function MP(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const NP={duration:.45,ease:[.4,0,.1,1]},YE=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),KE=YE("applewebkit/")&&!YE("chrome/")?Math.round:Pn;function $E(t){t.min=KE(t.min),t.max=KE(t.max)}function LP(t){$E(t.x),$E(t.y)}function XE(t,e,n){return t==="position"||t==="preserve-aspect"&&!PI(BE(e),BE(n),.2)}function jP(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const zP=PE({attachResizeListener:(t,e)=>Dl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Om={current:void 0},QE=PE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Om.current){const t=new zP({});t.mount(window),t.setOptions({layoutScroll:!0}),Om.current=t}return Om.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),BP={pan:{Feature:eP},drag:{Feature:tP,ProjectionNode:QE,MeasureLayout:wE}};function ZE(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=i[a];l&&he.postRender(()=>l(e,Ml(e)))}class UP extends Ci{mount(){const{current:e}=this.node;e&&(this.unmount=lU(e,(n,i)=>(ZE(this.node,i,"Start"),a=>ZE(this.node,a,"End"))))}unmount(){}}class IP extends Ci{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vl(Dl(this.node.current,"focus",()=>this.onFocus()),Dl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function JE(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=i[a];l&&he.postRender(()=>l(e,Ml(e)))}class PP extends Ci{mount(){const{current:e}=this.node;e&&(this.unmount=dU(e,(n,i)=>(JE(this.node,i,"Start"),(a,{success:l})=>JE(this.node,a,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const km=new WeakMap,Dm=new WeakMap,qP=t=>{const e=km.get(t.target);e&&e(t)},FP=t=>{t.forEach(qP)};function VP({root:t,...e}){const n=t||document;Dm.has(n)||Dm.set(n,{});const i=Dm.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(FP,{root:t,...e})),i[a]}function HP(t,e,n){const i=VP(e);return km.set(t,n),i.observe(t),()=>{km.delete(t),i.unobserve(t)}}const GP={some:0,all:1};class YP extends Ci{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:GP[a]},f=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),b=h?m:y;b&&b(d)};return HP(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(KP(e,n))&&this.startObserver()}unmount(){}}function KP({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const $P={...LI,...{inView:{Feature:YP},tap:{Feature:PP},focus:{Feature:IP},hover:{Feature:UP}},...BP,...{layout:{ProjectionNode:QE,MeasureLayout:wE}}},Hn=JU($P,fI);function XP(t){t.values.forEach(e=>e.stop())}function Mm(t,e){[...e].reverse().forEach(i=>{const a=t.getVariant(i);a&&vm(t,a),t.variantChildren&&t.variantChildren.forEach(l=>{Mm(l,e)})})}function QP(t,e){if(Array.isArray(e))return Mm(t,e);if(typeof e=="string")return Mm(t,[e]);vm(t,e)}function ZP(){const t=new Set,e={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,i){const a=[];return t.forEach(l=>{a.push(eE(l,n,{transitionOverride:i}))}),Promise.all(a)},set(n){return t.forEach(i=>{QP(i,n)})},stop(){t.forEach(n=>{XP(n)})},mount(){return()=>{e.stop()}}};return e}function JP(){const t=qc(ZP);return yp(t.mount,[]),t}const WP=JP,tq={some:0,all:1};function eq(t,e,{root:n,margin:i,amount:a="some"}={}){const l=a1(t),u=new WeakMap,f=h=>{h.forEach(m=>{const y=u.get(m.target);if(m.isIntersecting!==!!y)if(m.isIntersecting){const b=e(m.target,m);typeof b=="function"?u.set(m.target,b):d.unobserve(m.target)}else typeof y=="function"&&(y(m),u.delete(m.target))})},d=new IntersectionObserver(f,{root:n,rootMargin:i,threshold:typeof a=="number"?a:tq[a]});return l.forEach(h=>d.observe(h)),()=>d.disconnect()}function nq(t,{root:e,margin:n,amount:i,once:a=!1,initial:l=!1}={}){const[u,f]=B.useState(l);return B.useEffect(()=>{if(!t.current||a&&u)return;const d=()=>(f(!0),a?void 0:()=>f(!1)),h={root:e&&e.current||void 0,margin:n,amount:i};return eq(t.current,d,h)},[e,t,n,a,i]),u}const Ia=({variant:t="filled",color:e="primary",size:n="medium",icon:i,loading:a,disabled:l,className:u,children:f,...d})=>{const h="rounded-md focus:outline-none aspect-square  flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",m={filled:{primary:"bg-primary-500 text-white hover:bg-primary-600",secondary:"bg-gray-500 text-white hover:bg-gray-600",error:"bg-red-500 text-white hover:bg-red-600",success:"bg-green-500 text-white hover:bg-green-600",neutral:"bg-neutral-500 text-white hover:bg-neutral-600"},outlined:{primary:"border border-primary-500 text-primary-500 hover:bg-primary-100",secondary:"border border-gray-500 text-gray-500 hover:bg-gray-100",error:"border border-red-500 text-red-500 hover:bg-red-100",success:"border border-green-500 text-green-500 hover:bg-green-100",neutral:"border border-neutral-500 text-neutral-500 hover:bg-neutral-100"},plain:{primary:"text-primary-500 hover:bg-primary-100",secondary:"text-gray-500 hover:bg-gray-100",error:"text-red-500 hover:bg-red-100",success:"text-green-500 hover:bg-green-100",neutral:"text-neutral-500 hover:text-primary-600"},light:{primary:"bg-primary-100 text-primary-400 hover:bg-primary-200",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200",error:"bg-red-100 text-red-700 hover:bg-red-200",success:"bg-green-100 text-green-700 hover:bg-green-200",neutral:"bg-neutral-100 text-neutral-700 hover:bg-neutral-200"}},y={xs:"w-6 h-6 ",small:"w-8 h-8 ",medium:"w-9 h-9",large:"w-10 h-10",xl:"w-1 h-11"},b={xs:"w-6 h-6",small:"w-7 h-7",medium:"w-8 h-8 ",large:"w-9 h-9",xl:"w-10 h-10"};return N.jsxs("button",{className:ge(h,m[t][e],y[n],u),disabled:l||a,...d,children:[a?N.jsx("span",{className:ge("animate-spin",b[n]),children:"🔄"}):N.jsx("span",{className:ge(b[n]),children:i}),f]})};function rq({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const iq=B.forwardRef(rq);function sq({title:t,titleId:e,...n},i){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?B.createElement("title",{id:e},t):null,B.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Nm=B.forwardRef(sq),WE=({messageTemplates:t,onClick:e,size:n="md"})=>{const i="message-template  border-primary-600 text-primary-600 hover:bg-primary-100 cursor-pointer rounded-lg border bg-white transition",a=n==="sm"?"p-0.5 px-1.5 text-sm":"p-1 px-2 text-left font-medium";return N.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t==null?void 0:t.map(l=>N.jsx("button",{className:`${i} ${a}`,onClick:()=>e==null?void 0:e(l),children:l.content},l.id))})};function iG(){}function sG(){}function aq(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const oq=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lq=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uq={};function tT(t,e){return(uq.jsx?lq:oq).test(t)}const cq=/[ \t\n\f\r]/g;function fq(t){return typeof t=="object"?t.type==="text"?eT(t.value):!1:eT(t)}function eT(t){return t.replace(cq,"")===""}class Bl{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}}Bl.prototype.normal={},Bl.prototype.property={},Bl.prototype.space=void 0;function nT(t,e){const n={},i={};for(const a of t)Object.assign(n,a.property),Object.assign(i,a.normal);return new Bl(n,i,e)}function Lm(t){return t.toLowerCase()}class dn{constructor(e,n){this.attribute=n,this.property=e}}dn.prototype.attribute="",dn.prototype.booleanish=!1,dn.prototype.boolean=!1,dn.prototype.commaOrSpaceSeparated=!1,dn.prototype.commaSeparated=!1,dn.prototype.defined=!1,dn.prototype.mustUseProperty=!1,dn.prototype.number=!1,dn.prototype.overloadedBoolean=!1,dn.prototype.property="",dn.prototype.spaceSeparated=!1,dn.prototype.space=void 0;let dq=0;const Nt=Ls(),Re=Ls(),jm=Ls(),lt=Ls(),le=Ls(),Pa=Ls(),Rn=Ls();function Ls(){return 2**++dq}const zm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Nt,booleanish:Re,commaOrSpaceSeparated:Rn,commaSeparated:Pa,number:lt,overloadedBoolean:jm,spaceSeparated:le},Symbol.toStringTag,{value:"Module"})),Bm=Object.keys(zm);class Um extends dn{constructor(e,n,i,a){let l=-1;if(super(e,n),rT(this,"space",a),typeof i=="number")for(;++l<Bm.length;){const u=Bm[l];rT(this,Bm[l],(i&zm[u])===zm[u])}}}Um.prototype.defined=!0;function rT(t,e,n){n&&(t[e]=n)}function qa(t){const e={},n={};for(const[i,a]of Object.entries(t.properties)){const l=new Um(i,t.transform(t.attributes||{},i),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),e[i]=l,n[Lm(i)]=i,n[Lm(l.attribute)]=i}return new Bl(e,n,t.space)}const iT=qa({properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:lt,ariaColIndex:lt,ariaColSpan:lt,ariaControls:le,ariaCurrent:null,ariaDescribedBy:le,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:le,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:le,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:le,ariaLevel:lt,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:le,ariaPlaceholder:null,ariaPosInSet:lt,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:le,ariaRowCount:lt,ariaRowIndex:lt,ariaRowSpan:lt,ariaSelected:Re,ariaSetSize:lt,ariaSort:null,ariaValueMax:lt,ariaValueMin:lt,ariaValueNow:lt,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function sT(t,e){return e in t?t[e]:e}function aT(t,e){return sT(t,e.toLowerCase())}const hq=qa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pa,acceptCharset:le,accessKey:le,action:null,allow:null,allowFullScreen:Nt,allowPaymentRequest:Nt,allowUserMedia:Nt,alt:null,as:null,async:Nt,autoCapitalize:null,autoComplete:le,autoFocus:Nt,autoPlay:Nt,blocking:le,capture:null,charSet:null,checked:Nt,cite:null,className:le,cols:lt,colSpan:null,content:null,contentEditable:Re,controls:Nt,controlsList:le,coords:lt|Pa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Nt,defer:Nt,dir:null,dirName:null,disabled:Nt,download:jm,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Nt,formTarget:null,headers:le,height:lt,hidden:jm,high:lt,href:null,hrefLang:null,htmlFor:le,httpEquiv:le,id:null,imageSizes:null,imageSrcSet:null,inert:Nt,inputMode:null,integrity:null,is:null,isMap:Nt,itemId:null,itemProp:le,itemRef:le,itemScope:Nt,itemType:le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Nt,low:lt,manifest:null,max:null,maxLength:lt,media:null,method:null,min:null,minLength:lt,multiple:Nt,muted:Nt,name:null,nonce:null,noModule:Nt,noValidate:Nt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Nt,optimum:lt,pattern:null,ping:le,placeholder:null,playsInline:Nt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Nt,referrerPolicy:null,rel:le,required:Nt,reversed:Nt,rows:lt,rowSpan:lt,sandbox:le,scope:null,scoped:Nt,seamless:Nt,selected:Nt,shadowRootClonable:Nt,shadowRootDelegatesFocus:Nt,shadowRootMode:null,shape:null,size:lt,sizes:null,slot:null,span:lt,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:lt,step:null,style:null,tabIndex:lt,target:null,title:null,translate:null,type:null,typeMustMatch:Nt,useMap:null,value:Re,width:lt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:le,axis:null,background:null,bgColor:null,border:lt,borderColor:null,bottomMargin:lt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Nt,declare:Nt,event:null,face:null,frame:null,frameBorder:null,hSpace:lt,leftMargin:lt,link:null,longDesc:null,lowSrc:null,marginHeight:lt,marginWidth:lt,noResize:Nt,noHref:Nt,noShade:Nt,noWrap:Nt,object:null,profile:null,prompt:null,rev:null,rightMargin:lt,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:lt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:lt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Nt,disableRemotePlayback:Nt,prefix:null,property:null,results:lt,security:null,unselectable:null},space:"html",transform:aT}),pq=qa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Rn,accentHeight:lt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:lt,amplitude:lt,arabicForm:null,ascent:lt,attributeName:null,attributeType:null,azimuth:lt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:lt,by:null,calcMode:null,capHeight:lt,className:le,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:lt,diffuseConstant:lt,direction:null,display:null,dur:null,divisor:lt,dominantBaseline:null,download:Nt,dx:null,dy:null,edgeMode:null,editable:null,elevation:lt,enableBackground:null,end:null,event:null,exponent:lt,externalResourcesRequired:null,fill:null,fillOpacity:lt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pa,g2:Pa,glyphName:Pa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:lt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:lt,horizOriginX:lt,horizOriginY:lt,id:null,ideographic:lt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:lt,k:lt,k1:lt,k2:lt,k3:lt,k4:lt,kernelMatrix:Rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:lt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:lt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:lt,overlineThickness:lt,paintOrder:null,panose1:null,path:null,pathLength:lt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:lt,pointsAtY:lt,pointsAtZ:lt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rn,rev:Rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rn,requiredFeatures:Rn,requiredFonts:Rn,requiredFormats:Rn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:lt,specularExponent:lt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:lt,strikethroughThickness:lt,string:null,stroke:null,strokeDashArray:Rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:lt,strokeOpacity:lt,strokeWidth:null,style:null,surfaceScale:lt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rn,tabIndex:lt,tableValues:null,target:null,targetX:lt,targetY:lt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:lt,underlineThickness:lt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:lt,values:null,vAlphabetic:lt,vMathematical:lt,vectorEffect:null,vHanging:lt,vIdeographic:lt,version:null,vertAdvY:lt,vertOriginX:lt,vertOriginY:lt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:lt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sT}),oT=qa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),lT=qa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:aT}),uT=qa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),mq={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},gq=/[A-Z]/g,cT=/-[a-z]/g,yq=/^data[-\w.:]+$/i;function bq(t,e){const n=Lm(e);let i=e,a=dn;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&yq.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace(cT,xq);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!cT.test(l)){let u=l.replace(gq,vq);u.charAt(0)!=="-"&&(u="-"+u),e="data"+u}}a=Um}return new a(i,e)}function vq(t){return"-"+t.toLowerCase()}function xq(t){return t.charAt(1).toUpperCase()}const wq=nT([iT,hq,oT,lT,uT],"html"),Im=nT([iT,pq,oT,lT,uT],"svg");function Sq(t){return t.join(" ").trim()}var Fa={},Pm,fT;function Eq(){if(fT)return Pm;fT=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
`,h="/",m="*",y="",b="comment",v="declaration";function w(C,_){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];_=_||{};var L=1,R=1;function U(at){var it=at.match(e);it&&(L+=it.length);var Q=at.lastIndexOf(d);R=~Q?at.length-Q:R+at.length}function G(){var at={line:L,column:R};return function(it){return it.position=new z(at),P(),it}}function z(at){this.start=at,this.end={line:L,column:R},this.source=_.source}z.prototype.content=C;function q(at){var it=new Error(_.source+":"+L+":"+R+": "+at);if(it.reason=at,it.filename=_.source,it.line=L,it.column=R,it.source=C,!_.silent)throw it}function M(at){var it=at.exec(C);if(it){var Q=it[0];return U(Q),C=C.slice(Q.length),it}}function P(){M(n)}function K(at){var it;for(at=at||[];it=nt();)it!==!1&&at.push(it);return at}function nt(){var at=G();if(!(h!=C.charAt(0)||m!=C.charAt(1))){for(var it=2;y!=C.charAt(it)&&(m!=C.charAt(it)||h!=C.charAt(it+1));)++it;if(it+=2,y===C.charAt(it-1))return q("End of comment missing");var Q=C.slice(2,it-2);return R+=2,U(Q),C=C.slice(it),R+=2,at({type:b,comment:Q})}}function st(){var at=G(),it=M(i);if(it){if(nt(),!M(a))return q("property missing ':'");var Q=M(l),Y=at({type:v,property:E(it[0].replace(t,y)),value:Q?E(Q[0].replace(t,y)):y});return M(u),Y}}function ft(){var at=[];K(at);for(var it;it=st();)it!==!1&&(at.push(it),K(at));return at}return P(),ft()}function E(C){return C?C.replace(f,y):y}return Pm=w,Pm}var dT;function Tq(){if(dT)return Fa;dT=1;var t=Fa&&Fa.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.default=n;const e=t(Eq());function n(i,a){let l=null;if(!i||typeof i!="string")return l;const u=(0,e.default)(i),f=typeof a=="function";return u.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:m}=d;f?a(h,m,d):m&&(l=l||{},l[h]=m)}),l}return Fa}var Ul={},hT;function Cq(){if(hT)return Ul;hT=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(h){return!h||n.test(h)||t.test(h)},u=function(h,m){return m.toUpperCase()},f=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(a,f):h=h.replace(i,f),h.replace(e,u))};return Ul.camelCase=d,Ul}var Il,pT;function _q(){if(pT)return Il;pT=1;var t=Il&&Il.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},e=t(Tq()),n=Cq();function i(a,l){var u={};return!a||typeof a!="string"||(0,e.default)(a,function(f,d){f&&d&&(u[(0,n.camelCase)(f,l)]=d)}),u}return i.default=i,Il=i,Il}var Aq=_q();const Rq=Ut(Aq),mT=gT("end"),qm=gT("start");function gT(t){return e;function e(n){const i=n&&n.position&&n.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Oq(t){const e=qm(t),n=mT(t);if(e&&n)return{start:e,end:n}}function Pl(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?yT(t.position):"start"in t||"end"in t?yT(t):"line"in t||"column"in t?Fm(t):""}function Fm(t){return bT(t&&t.line)+":"+bT(t&&t.column)}function yT(t){return Fm(t&&t.start)+"-"+Fm(t&&t.end)}function bT(t){return t&&typeof t=="number"?t:1}class Je extends Error{constructor(e,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof e=="string"?a=e:!l.cause&&e&&(u=!0,a=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?l.ruleId=i:(l.source=i.slice(0,d),l.ruleId=i.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const f=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=f?f.line:void 0,this.name=Pl(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const Vm={}.hasOwnProperty,kq=new Map,Dq=/[A-Z]/g,Mq=new Set(["table","tbody","thead","tfoot","tr"]),Nq=new Set(["td","th"]),vT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Lq(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let i;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Fq(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=qq(n,e.jsx,e.jsxs)}const a={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Im:wq,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=xT(a,t,void 0);return l&&typeof l!="string"?l:a.create(t,a.Fragment,{children:l||void 0},void 0)}function xT(t,e,n){if(e.type==="element")return jq(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return zq(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Uq(t,e,n);if(e.type==="mdxjsEsm")return Bq(t,e);if(e.type==="root")return Iq(t,e,n);if(e.type==="text")return Pq(t,e)}function jq(t,e,n){const i=t.schema;let a=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Im,t.schema=a),t.ancestors.push(e);const l=ST(t,e.tagName,!1),u=Vq(t,e);let f=Gm(t,e);return Mq.has(e.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!fq(d):!0})),wT(t,u,l,e),Hm(u,f),t.ancestors.pop(),t.schema=i,t.create(e,l,u,n)}function zq(t,e){if(e.data&&e.data.estree&&t.evaluater){const i=e.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}ql(t,e.position)}function Bq(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);ql(t,e.position)}function Uq(t,e,n){const i=t.schema;let a=i;e.name==="svg"&&i.space==="html"&&(a=Im,t.schema=a),t.ancestors.push(e);const l=e.name===null?t.Fragment:ST(t,e.name,!0),u=Hq(t,e),f=Gm(t,e);return wT(t,u,l,e),Hm(u,f),t.ancestors.pop(),t.schema=i,t.create(e,l,u,n)}function Iq(t,e,n){const i={};return Hm(i,Gm(t,e)),t.create(e,t.Fragment,i,n)}function Pq(t,e){return e.value}function wT(t,e,n,i){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=i)}function Hm(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function qq(t,e,n){return i;function i(a,l,u,f){const h=Array.isArray(u.children)?n:e;return f?h(l,u,f):h(l,u)}}function Fq(t,e){return n;function n(i,a,l,u){const f=Array.isArray(l.children),d=qm(i);return e(a,l,u,f,{columnNumber:d?d.column-1:void 0,fileName:t,lineNumber:d?d.line:void 0},void 0)}}function Vq(t,e){const n={};let i,a;for(a in e.properties)if(a!=="children"&&Vm.call(e.properties,a)){const l=Gq(t,a,e.properties[a]);if(l){const[u,f]=l;t.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&Nq.has(e.tagName)?i=f:n[u]=f}}if(i){const l=n.style||(n.style={});l[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Hq(t,e){const n={};for(const i of e.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const l=i.data.estree.body[0];l.type;const u=l.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,t.evaluater.evaluateExpression(f.argument))}else ql(t,e.position);else{const a=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const f=i.value.data.estree.body[0];f.type,l=t.evaluater.evaluateExpression(f.expression)}else ql(t,e.position);else l=i.value===null?!0:i.value;n[a]=l}return n}function Gm(t,e){const n=[];let i=-1;const a=t.passKeys?new Map:kq;for(;++i<e.children.length;){const l=e.children[i];let u;if(t.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const h=a.get(d)||0;u=d+"-"+h,a.set(d,h+1)}}const f=xT(t,l,u);f!==void 0&&n.push(f)}return n}function Gq(t,e,n){const i=bq(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?aq(n):Sq(n)),i.property==="style"){let a=typeof n=="object"?n:Yq(t,String(n));return t.stylePropertyNameCase==="css"&&(a=Kq(a)),["style",a]}return[t.elementAttributeNameCase==="react"&&i.space?mq[i.property]||i.property:i.attribute,n]}}function Yq(t,e){try{return Rq(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const i=n,a=new Je("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=vT+"#cannot-parse-style-attribute",a}}function ST(t,e,n){let i;if(!n)i={type:"Literal",value:e};else if(e.includes(".")){const a=e.split(".");let l=-1,u;for(;++l<a.length;){const f=tT(a[l])?{type:"Identifier",name:a[l]}:{type:"Literal",value:a[l]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(l&&f.type==="Literal"),optional:!1}:f}i=u}else i=tT(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){const a=i.value;return Vm.call(t.components,a)?t.components[a]:a}if(t.evaluater)return t.evaluater.evaluateExpression(i);ql(t)}function ql(t,e){const n=new Je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=vT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Kq(t){const e={};let n;for(n in t)Vm.call(t,n)&&(e[$q(n)]=t[n]);return e}function $q(t){let e=t.replace(Dq,Xq);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function Xq(t){return"-"+t.toLowerCase()}const Ym={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Qq={};function Zq(t,e){const n=Qq,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ET(t,i,a)}function ET(t,e,n){if(Jq(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return TT(t.children,e,n)}return Array.isArray(t)?TT(t,e,n):""}function TT(t,e,n){const i=[];let a=-1;for(;++a<t.length;)i[a]=ET(t[a],e,n);return i.join("")}function Jq(t){return!!(t&&typeof t=="object")}const CT=document.createElement("i");function Km(t){const e="&"+t+";";CT.innerHTML=e;const n=CT.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Tr(t,e,n,i){const a=t.length;let l=0,u;if(e<0?e=-e>a?0:a+e:e=e>a?a:e,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(e,n),t.splice(...u);else for(n&&t.splice(e,n);l<i.length;)u=i.slice(l,l+1e4),u.unshift(e,0),t.splice(...u),l+=1e4,e+=1e4}function Gn(t,e){return t.length>0?(Tr(t,t.length,0,e),t):e}const _T={}.hasOwnProperty;function Wq(t){const e={};let n=-1;for(;++n<t.length;)t6(e,t[n]);return e}function t6(t,e){let n;for(n in e){const a=(_T.call(t,n)?t[n]:void 0)||(t[n]={}),l=e[n];let u;if(l)for(u in l){_T.call(a,u)||(a[u]=[]);const f=l[u];e6(a[u],Array.isArray(f)?f:f?[f]:[])}}}function e6(t,e){let n=-1;const i=[];for(;++n<e.length;)(e[n].add==="after"?t:i).push(e[n]);Tr(t,0,0,i)}function AT(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Va(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Cr=_i(/[A-Za-z]/),On=_i(/[\dA-Za-z]/),n6=_i(/[#-'*+\--9=?A-Z^-~]/);function $m(t){return t!==null&&(t<32||t===127)}const Xm=_i(/\d/),r6=_i(/[\dA-Fa-f]/),i6=_i(/[!-/:-@[-`{-~]/);function _t(t){return t!==null&&t<-2}function hn(t){return t!==null&&(t<0||t===32)}function Qt(t){return t===-2||t===-1||t===32}const s6=_i(new RegExp("\\p{P}|\\p{S}","u")),a6=_i(/\s/);function _i(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Ha(t){const e=[];let n=-1,i=0,a=0;for(;++n<t.length;){const l=t.charCodeAt(n);let u="";if(l===37&&On(t.charCodeAt(n+1))&&On(t.charCodeAt(n+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const f=t.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(u=String.fromCharCode(l,f),a=1):u="�"}else u=String.fromCharCode(l);u&&(e.push(t.slice(i,n),encodeURIComponent(u)),i=n+a+1,u=""),a&&(n+=a,a=0)}return e.join("")+t.slice(i)}function ue(t,e,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return Qt(d)?(t.enter(n),f(d)):e(d)}function f(d){return Qt(d)&&l++<a?(t.consume(d),f):(t.exit(n),e(d))}}const o6={tokenize:l6};function l6(t){const e=t.attempt(this.parser.constructs.contentInitial,i,a);let n;return e;function i(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),ue(t,e,"linePrefix")}function a(f){return t.enter("paragraph"),l(f)}function l(f){const d=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(f)}function u(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return _t(f)?(t.consume(f),t.exit("chunkText"),l):(t.consume(f),u)}}const u6={tokenize:c6},RT={tokenize:f6};function c6(t){const e=this,n=[];let i=0,a,l,u;return f;function f(R){if(i<n.length){const U=n[i];return e.containerState=U[1],t.attempt(U[0].continuation,d,h)(R)}return h(R)}function d(R){if(i++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,a&&L();const U=e.events.length;let G=U,z;for(;G--;)if(e.events[G][0]==="exit"&&e.events[G][1].type==="chunkFlow"){z=e.events[G][1].end;break}_(i);let q=U;for(;q<e.events.length;)e.events[q][1].end={...z},q++;return Tr(e.events,G+1,0,e.events.slice(U)),e.events.length=q,h(R)}return f(R)}function h(R){if(i===n.length){if(!a)return b(R);if(a.currentConstruct&&a.currentConstruct.concrete)return w(R);e.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(RT,m,y)(R)}function m(R){return a&&L(),_(i),b(R)}function y(R){return e.parser.lazy[e.now().line]=i!==n.length,u=e.now().offset,w(R)}function b(R){return e.containerState={},t.attempt(RT,v,w)(R)}function v(R){return i++,n.push([e.currentConstruct,e.containerState]),b(R)}function w(R){if(R===null){a&&L(),_(0),t.consume(R);return}return a=a||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:l}),E(R)}function E(R){if(R===null){C(t.exit("chunkFlow"),!0),_(0),t.consume(R);return}return _t(R)?(t.consume(R),C(t.exit("chunkFlow")),i=0,e.interrupt=void 0,f):(t.consume(R),E)}function C(R,U){const G=e.sliceStream(R);if(U&&G.push(null),R.previous=l,l&&(l.next=R),l=R,a.defineSkip(R.start),a.write(G),e.parser.lazy[R.start.line]){let z=a.events.length;for(;z--;)if(a.events[z][1].start.offset<u&&(!a.events[z][1].end||a.events[z][1].end.offset>u))return;const q=e.events.length;let M=q,P,K;for(;M--;)if(e.events[M][0]==="exit"&&e.events[M][1].type==="chunkFlow"){if(P){K=e.events[M][1].end;break}P=!0}for(_(i),z=q;z<e.events.length;)e.events[z][1].end={...K},z++;Tr(e.events,M+1,0,e.events.slice(q)),e.events.length=z}}function _(R){let U=n.length;for(;U-- >R;){const G=n[U];e.containerState=G[1],G[0].exit.call(e,t)}n.length=R}function L(){a.write([null]),l=void 0,a=void 0,e.containerState._closeFlow=void 0}}function f6(t,e,n){return ue(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function OT(t){if(t===null||hn(t)||a6(t))return 1;if(s6(t))return 2}function Qm(t,e,n){const i=[];let a=-1;for(;++a<t.length;){const l=t[a].resolveAll;l&&!i.includes(l)&&(e=l(e,n),i.push(l))}return e}const Zm={name:"attention",resolveAll:d6,tokenize:h6};function d6(t,e){let n=-1,i,a,l,u,f,d,h,m;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(i=n;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&e.sliceSerialize(t[i][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[i][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;d=t[i][1].end.offset-t[i][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const y={...t[i][1].end},b={...t[n][1].start};kT(y,-d),kT(b,d),u={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...t[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:b},l={type:d>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},t[i][1].end={...u.start},t[n][1].start={...f.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=Gn(h,[["enter",t[i][1],e],["exit",t[i][1],e]])),h=Gn(h,[["enter",a,e],["enter",u,e],["exit",u,e],["enter",l,e]]),h=Gn(h,Qm(e.parser.constructs.insideSpan.null,t.slice(i+1,n),e)),h=Gn(h,[["exit",l,e],["enter",f,e],["exit",f,e],["exit",a,e]]),t[n][1].end.offset-t[n][1].start.offset?(m=2,h=Gn(h,[["enter",t[n][1],e],["exit",t[n][1],e]])):m=0,Tr(t,i-1,n-i+3,h),n=i+h.length-m-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function h6(t,e){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=OT(i);let l;return u;function u(d){return l=d,t.enter("attentionSequence"),f(d)}function f(d){if(d===l)return t.consume(d),f;const h=t.exit("attentionSequence"),m=OT(d),y=!m||m===2&&a||n.includes(d),b=!a||a===2&&m||n.includes(i);return h._open=!!(l===42?y:y&&(a||!b)),h._close=!!(l===42?b:b&&(m||!y)),e(d)}}function kT(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const p6={name:"autolink",tokenize:m6};function m6(t,e,n){let i=0;return a;function a(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),l}function l(v){return Cr(v)?(t.consume(v),u):v===64?n(v):h(v)}function u(v){return v===43||v===45||v===46||On(v)?(i=1,f(v)):h(v)}function f(v){return v===58?(t.consume(v),i=0,d):(v===43||v===45||v===46||On(v))&&i++<32?(t.consume(v),f):(i=0,h(v))}function d(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),e):v===null||v===32||v===60||$m(v)?n(v):(t.consume(v),d)}function h(v){return v===64?(t.consume(v),m):n6(v)?(t.consume(v),h):n(v)}function m(v){return On(v)?y(v):n(v)}function y(v){return v===46?(t.consume(v),i=0,m):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),e):b(v)}function b(v){if((v===45||On(v))&&i++<63){const w=v===45?b:y;return t.consume(v),w}return n(v)}}const af={partial:!0,tokenize:g6};function g6(t,e,n){return i;function i(l){return Qt(l)?ue(t,a,"linePrefix")(l):a(l)}function a(l){return l===null||_t(l)?e(l):n(l)}}const DT={continuation:{tokenize:b6},exit:v6,name:"blockQuote",tokenize:y6};function y6(t,e,n){const i=this;return a;function a(u){if(u===62){const f=i.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(u),t.exit("blockQuoteMarker"),l}return n(u)}function l(u){return Qt(u)?(t.enter("blockQuotePrefixWhitespace"),t.consume(u),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(u))}}function b6(t,e,n){const i=this;return a;function a(u){return Qt(u)?ue(t,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return t.attempt(DT,e,n)(u)}}function v6(t){t.exit("blockQuote")}const MT={name:"characterEscape",tokenize:x6};function x6(t,e,n){return i;function i(l){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(l),t.exit("escapeMarker"),a}function a(l){return i6(l)?(t.enter("characterEscapeValue"),t.consume(l),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(l)}}const NT={name:"characterReference",tokenize:w6};function w6(t,e,n){const i=this;let a=0,l,u;return f;function f(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),d}function d(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),l=31,u=On,m(y))}function h(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),l=6,u=r6,m):(t.enter("characterReferenceValue"),l=7,u=Xm,m(y))}function m(y){if(y===59&&a){const b=t.exit("characterReferenceValue");return u===On&&!Km(i.sliceSerialize(b))?n(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return u(y)&&a++<l?(t.consume(y),m):n(y)}}const LT={partial:!0,tokenize:E6},jT={concrete:!0,name:"codeFenced",tokenize:S6};function S6(t,e,n){const i=this,a={partial:!0,tokenize:G};let l=0,u=0,f;return d;function d(z){return h(z)}function h(z){const q=i.events[i.events.length-1];return l=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,f=z,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m(z)}function m(z){return z===f?(u++,t.consume(z),m):u<3?n(z):(t.exit("codeFencedFenceSequence"),Qt(z)?ue(t,y,"whitespace")(z):y(z))}function y(z){return z===null||_t(z)?(t.exit("codeFencedFence"),i.interrupt?e(z):t.check(LT,E,U)(z)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),b(z))}function b(z){return z===null||_t(z)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(z)):Qt(z)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ue(t,v,"whitespace")(z)):z===96&&z===f?n(z):(t.consume(z),b)}function v(z){return z===null||_t(z)?y(z):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(z))}function w(z){return z===null||_t(z)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(z)):z===96&&z===f?n(z):(t.consume(z),w)}function E(z){return t.attempt(a,U,C)(z)}function C(z){return t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),_}function _(z){return l>0&&Qt(z)?ue(t,L,"linePrefix",l+1)(z):L(z)}function L(z){return z===null||_t(z)?t.check(LT,E,U)(z):(t.enter("codeFlowValue"),R(z))}function R(z){return z===null||_t(z)?(t.exit("codeFlowValue"),L(z)):(t.consume(z),R)}function U(z){return t.exit("codeFenced"),e(z)}function G(z,q,M){let P=0;return K;function K(it){return z.enter("lineEnding"),z.consume(it),z.exit("lineEnding"),nt}function nt(it){return z.enter("codeFencedFence"),Qt(it)?ue(z,st,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(it):st(it)}function st(it){return it===f?(z.enter("codeFencedFenceSequence"),ft(it)):M(it)}function ft(it){return it===f?(P++,z.consume(it),ft):P>=u?(z.exit("codeFencedFenceSequence"),Qt(it)?ue(z,at,"whitespace")(it):at(it)):M(it)}function at(it){return it===null||_t(it)?(z.exit("codeFencedFence"),q(it)):M(it)}}}function E6(t,e,n){const i=this;return a;function a(u){return u===null?n(u):(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),l)}function l(u){return i.parser.lazy[i.now().line]?n(u):e(u)}}const Jm={name:"codeIndented",tokenize:C6},T6={partial:!0,tokenize:_6};function C6(t,e,n){const i=this;return a;function a(h){return t.enter("codeIndented"),ue(t,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?d(h):_t(h)?t.attempt(T6,u,d)(h):(t.enter("codeFlowValue"),f(h))}function f(h){return h===null||_t(h)?(t.exit("codeFlowValue"),u(h)):(t.consume(h),f)}function d(h){return t.exit("codeIndented"),e(h)}}function _6(t,e,n){const i=this;return a;function a(u){return i.parser.lazy[i.now().line]?n(u):_t(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),a):ue(t,l,"linePrefix",5)(u)}function l(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?e(u):_t(u)?a(u):n(u)}}const A6={name:"codeText",previous:O6,resolve:R6,tokenize:k6};function R6(t){let e=t.length-4,n=3,i,a;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=n;++i<e;)if(t[i][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(i=n-1,e++;++i<=e;)a===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(a=i):(i===e||t[i][1].type==="lineEnding")&&(t[a][1].type="codeTextData",i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),e-=i-a-2,i=a+2),a=void 0);return t}function O6(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function k6(t,e,n){let i=0,a,l;return u;function u(y){return t.enter("codeText"),t.enter("codeTextSequence"),f(y)}function f(y){return y===96?(t.consume(y),i++,f):(t.exit("codeTextSequence"),d(y))}function d(y){return y===null?n(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),d):y===96?(l=t.enter("codeTextSequence"),a=0,m(y)):_t(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),d):(t.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||_t(y)?(t.exit("codeTextData"),d(y)):(t.consume(y),h)}function m(y){return y===96?(t.consume(y),a++,m):a===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(y)):(l.type="codeTextData",h(y))}}class D6{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(e,i):e>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(e,n,i){const a=n||0;this.setCursor(Math.trunc(e));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&Fl(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Fl(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Fl(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Fl(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Fl(this.left,n.reverse())}}}function Fl(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function zT(t){const e={};let n=-1,i,a,l,u,f,d,h;const m=new D6(t);for(;++n<m.length;){for(;n in e;)n=e[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(e,M6(m,n)),n=e[n],h=!0);else if(i[1]._container){for(l=n,a=void 0;l--;)if(u=m.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;a&&(i[1].end={...m.get(a)[1].start},f=m.slice(a,n),f.unshift(i),m.splice(a,n-a+1,f))}}return Tr(t,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function M6(t,e){const n=t.get(e)[1],i=t.get(e)[2];let a=e-1;const l=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,d=[],h={};let m,y,b=-1,v=n,w=0,E=0;const C=[E];for(;v;){for(;t.get(++a)[1]!==v;);l.push(a),v._tokenizer||(m=i.sliceStream(v),v.next||m.push(null),y&&u.defineSkip(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=n;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(E=b+1,C.push(E),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):C.pop(),b=C.length;b--;){const _=f.slice(C[b],C[b+1]),L=l.pop();d.push([L,L+_.length-1]),t.splice(L,2,_)}for(d.reverse(),b=-1;++b<d.length;)h[w+d[b][0]]=w+d[b][1],w+=d[b][1]-d[b][0]-1;return h}const N6={resolve:j6,tokenize:z6},L6={partial:!0,tokenize:B6};function j6(t){return zT(t),t}function z6(t,e){let n;return i;function i(f){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),a(f)}function a(f){return f===null?l(f):_t(f)?t.check(L6,u,l)(f):(t.consume(f),a)}function l(f){return t.exit("chunkContent"),t.exit("content"),e(f)}function u(f){return t.consume(f),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function B6(t,e,n){const i=this;return a;function a(u){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),ue(t,l,"linePrefix")}function l(u){if(u===null||_t(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?e(u):t.interrupt(i.parser.constructs.flow,n,e)(u)}}function BT(t,e,n,i,a,l,u,f,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return y;function y(_){return _===60?(t.enter(i),t.enter(a),t.enter(l),t.consume(_),t.exit(l),b):_===null||_===32||_===41||$m(_)?n(_):(t.enter(i),t.enter(u),t.enter(f),t.enter("chunkString",{contentType:"string"}),E(_))}function b(_){return _===62?(t.enter(l),t.consume(_),t.exit(l),t.exit(a),t.exit(i),e):(t.enter(f),t.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===62?(t.exit("chunkString"),t.exit(f),b(_)):_===null||_===60||_t(_)?n(_):(t.consume(_),_===92?w:v)}function w(_){return _===60||_===62||_===92?(t.consume(_),v):v(_)}function E(_){return!m&&(_===null||_===41||hn(_))?(t.exit("chunkString"),t.exit(f),t.exit(u),t.exit(i),e(_)):m<h&&_===40?(t.consume(_),m++,E):_===41?(t.consume(_),m--,E):_===null||_===32||_===40||$m(_)?n(_):(t.consume(_),_===92?C:E)}function C(_){return _===40||_===41||_===92?(t.consume(_),E):E(_)}}function UT(t,e,n,i,a,l){const u=this;let f=0,d;return h;function h(v){return t.enter(i),t.enter(a),t.consume(v),t.exit(a),t.enter(l),m}function m(v){return f>999||v===null||v===91||v===93&&!d||v===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(v):v===93?(t.exit(l),t.enter(a),t.consume(v),t.exit(a),t.exit(i),e):_t(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),m):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||_t(v)||f++>999?(t.exit("chunkString"),m(v)):(t.consume(v),d||(d=!Qt(v)),v===92?b:y)}function b(v){return v===91||v===92||v===93?(t.consume(v),f++,y):y(v)}}function IT(t,e,n,i,a,l){let u;return f;function f(b){return b===34||b===39||b===40?(t.enter(i),t.enter(a),t.consume(b),t.exit(a),u=b===40?41:b,d):n(b)}function d(b){return b===u?(t.enter(a),t.consume(b),t.exit(a),t.exit(i),e):(t.enter(l),h(b))}function h(b){return b===u?(t.exit(l),d(u)):b===null?n(b):_t(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),ue(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===u||b===null||_t(b)?(t.exit("chunkString"),h(b)):(t.consume(b),b===92?y:m)}function y(b){return b===u||b===92?(t.consume(b),m):m(b)}}function Vl(t,e){let n;return i;function i(a){return _t(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n=!0,i):Qt(a)?ue(t,i,n?"linePrefix":"lineSuffix")(a):e(a)}}const U6={name:"definition",tokenize:P6},I6={partial:!0,tokenize:q6};function P6(t,e,n){const i=this;let a;return l;function l(v){return t.enter("definition"),u(v)}function u(v){return UT.call(i,t,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return a=Va(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),d):n(v)}function d(v){return hn(v)?Vl(t,h)(v):h(v)}function h(v){return BT(t,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function m(v){return t.attempt(I6,y,y)(v)}function y(v){return Qt(v)?ue(t,b,"whitespace")(v):b(v)}function b(v){return v===null||_t(v)?(t.exit("definition"),i.parser.defined.push(a),e(v)):n(v)}}function q6(t,e,n){return i;function i(f){return hn(f)?Vl(t,a)(f):n(f)}function a(f){return IT(t,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return Qt(f)?ue(t,u,"whitespace")(f):u(f)}function u(f){return f===null||_t(f)?e(f):n(f)}}const F6={name:"hardBreakEscape",tokenize:V6};function V6(t,e,n){return i;function i(l){return t.enter("hardBreakEscape"),t.consume(l),a}function a(l){return _t(l)?(t.exit("hardBreakEscape"),e(l)):n(l)}}const H6={name:"headingAtx",resolve:G6,tokenize:Y6};function G6(t,e){let n=t.length-2,i=3,a,l;return t[i][1].type==="whitespace"&&(i+=2),n-2>i&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&t[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(a={type:"atxHeadingText",start:t[i][1].start,end:t[n][1].end},l={type:"chunkText",start:t[i][1].start,end:t[n][1].end,contentType:"text"},Tr(t,i,n-i+1,[["enter",a,e],["enter",l,e],["exit",l,e],["exit",a,e]])),t}function Y6(t,e,n){let i=0;return a;function a(m){return t.enter("atxHeading"),l(m)}function l(m){return t.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&i++<6?(t.consume(m),u):m===null||hn(m)?(t.exit("atxHeadingSequence"),f(m)):n(m)}function f(m){return m===35?(t.enter("atxHeadingSequence"),d(m)):m===null||_t(m)?(t.exit("atxHeading"),e(m)):Qt(m)?ue(t,f,"whitespace")(m):(t.enter("atxHeadingText"),h(m))}function d(m){return m===35?(t.consume(m),d):(t.exit("atxHeadingSequence"),f(m))}function h(m){return m===null||m===35||hn(m)?(t.exit("atxHeadingText"),f(m)):(t.consume(m),h)}}const K6=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],PT=["pre","script","style","textarea"],$6={concrete:!0,name:"htmlFlow",resolveTo:Z6,tokenize:J6},X6={partial:!0,tokenize:tF},Q6={partial:!0,tokenize:W6};function Z6(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function J6(t,e,n){const i=this;let a,l,u,f,d;return h;function h(T){return m(T)}function m(T){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(T),y}function y(T){return T===33?(t.consume(T),b):T===47?(t.consume(T),l=!0,E):T===63?(t.consume(T),a=3,i.interrupt?e:O):Cr(T)?(t.consume(T),u=String.fromCharCode(T),C):n(T)}function b(T){return T===45?(t.consume(T),a=2,v):T===91?(t.consume(T),a=5,f=0,w):Cr(T)?(t.consume(T),a=4,i.interrupt?e:O):n(T)}function v(T){return T===45?(t.consume(T),i.interrupt?e:O):n(T)}function w(T){const J="CDATA[";return T===J.charCodeAt(f++)?(t.consume(T),f===J.length?i.interrupt?e:st:w):n(T)}function E(T){return Cr(T)?(t.consume(T),u=String.fromCharCode(T),C):n(T)}function C(T){if(T===null||T===47||T===62||hn(T)){const J=T===47,ot=u.toLowerCase();return!J&&!l&&PT.includes(ot)?(a=1,i.interrupt?e(T):st(T)):K6.includes(u.toLowerCase())?(a=6,J?(t.consume(T),_):i.interrupt?e(T):st(T)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(T):l?L(T):R(T))}return T===45||On(T)?(t.consume(T),u+=String.fromCharCode(T),C):n(T)}function _(T){return T===62?(t.consume(T),i.interrupt?e:st):n(T)}function L(T){return Qt(T)?(t.consume(T),L):K(T)}function R(T){return T===47?(t.consume(T),K):T===58||T===95||Cr(T)?(t.consume(T),U):Qt(T)?(t.consume(T),R):K(T)}function U(T){return T===45||T===46||T===58||T===95||On(T)?(t.consume(T),U):G(T)}function G(T){return T===61?(t.consume(T),z):Qt(T)?(t.consume(T),G):R(T)}function z(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(t.consume(T),d=T,q):Qt(T)?(t.consume(T),z):M(T)}function q(T){return T===d?(t.consume(T),d=null,P):T===null||_t(T)?n(T):(t.consume(T),q)}function M(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||hn(T)?G(T):(t.consume(T),M)}function P(T){return T===47||T===62||Qt(T)?R(T):n(T)}function K(T){return T===62?(t.consume(T),nt):n(T)}function nt(T){return T===null||_t(T)?st(T):Qt(T)?(t.consume(T),nt):n(T)}function st(T){return T===45&&a===2?(t.consume(T),Q):T===60&&a===1?(t.consume(T),Y):T===62&&a===4?(t.consume(T),xt):T===63&&a===3?(t.consume(T),O):T===93&&a===5?(t.consume(T),gt):_t(T)&&(a===6||a===7)?(t.exit("htmlFlowData"),t.check(X6,D,ft)(T)):T===null||_t(T)?(t.exit("htmlFlowData"),ft(T)):(t.consume(T),st)}function ft(T){return t.check(Q6,at,D)(T)}function at(T){return t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),it}function it(T){return T===null||_t(T)?ft(T):(t.enter("htmlFlowData"),st(T))}function Q(T){return T===45?(t.consume(T),O):st(T)}function Y(T){return T===47?(t.consume(T),u="",F):st(T)}function F(T){if(T===62){const J=u.toLowerCase();return PT.includes(J)?(t.consume(T),xt):st(T)}return Cr(T)&&u.length<8?(t.consume(T),u+=String.fromCharCode(T),F):st(T)}function gt(T){return T===93?(t.consume(T),O):st(T)}function O(T){return T===62?(t.consume(T),xt):T===45&&a===2?(t.consume(T),O):st(T)}function xt(T){return T===null||_t(T)?(t.exit("htmlFlowData"),D(T)):(t.consume(T),xt)}function D(T){return t.exit("htmlFlow"),e(T)}}function W6(t,e,n){const i=this;return a;function a(u){return _t(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),l):n(u)}function l(u){return i.parser.lazy[i.now().line]?n(u):e(u)}}function tF(t,e,n){return i;function i(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),t.attempt(af,e,n)}}const eF={name:"htmlText",tokenize:nF};function nF(t,e,n){const i=this;let a,l,u;return f;function f(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),d}function d(O){return O===33?(t.consume(O),h):O===47?(t.consume(O),G):O===63?(t.consume(O),R):Cr(O)?(t.consume(O),M):n(O)}function h(O){return O===45?(t.consume(O),m):O===91?(t.consume(O),l=0,w):Cr(O)?(t.consume(O),L):n(O)}function m(O){return O===45?(t.consume(O),v):n(O)}function y(O){return O===null?n(O):O===45?(t.consume(O),b):_t(O)?(u=y,Y(O)):(t.consume(O),y)}function b(O){return O===45?(t.consume(O),v):y(O)}function v(O){return O===62?Q(O):O===45?b(O):y(O)}function w(O){const xt="CDATA[";return O===xt.charCodeAt(l++)?(t.consume(O),l===xt.length?E:w):n(O)}function E(O){return O===null?n(O):O===93?(t.consume(O),C):_t(O)?(u=E,Y(O)):(t.consume(O),E)}function C(O){return O===93?(t.consume(O),_):E(O)}function _(O){return O===62?Q(O):O===93?(t.consume(O),_):E(O)}function L(O){return O===null||O===62?Q(O):_t(O)?(u=L,Y(O)):(t.consume(O),L)}function R(O){return O===null?n(O):O===63?(t.consume(O),U):_t(O)?(u=R,Y(O)):(t.consume(O),R)}function U(O){return O===62?Q(O):R(O)}function G(O){return Cr(O)?(t.consume(O),z):n(O)}function z(O){return O===45||On(O)?(t.consume(O),z):q(O)}function q(O){return _t(O)?(u=q,Y(O)):Qt(O)?(t.consume(O),q):Q(O)}function M(O){return O===45||On(O)?(t.consume(O),M):O===47||O===62||hn(O)?P(O):n(O)}function P(O){return O===47?(t.consume(O),Q):O===58||O===95||Cr(O)?(t.consume(O),K):_t(O)?(u=P,Y(O)):Qt(O)?(t.consume(O),P):Q(O)}function K(O){return O===45||O===46||O===58||O===95||On(O)?(t.consume(O),K):nt(O)}function nt(O){return O===61?(t.consume(O),st):_t(O)?(u=nt,Y(O)):Qt(O)?(t.consume(O),nt):P(O)}function st(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(t.consume(O),a=O,ft):_t(O)?(u=st,Y(O)):Qt(O)?(t.consume(O),st):(t.consume(O),at)}function ft(O){return O===a?(t.consume(O),a=void 0,it):O===null?n(O):_t(O)?(u=ft,Y(O)):(t.consume(O),ft)}function at(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||hn(O)?P(O):(t.consume(O),at)}function it(O){return O===47||O===62||hn(O)?P(O):n(O)}function Q(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),e):n(O)}function Y(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),F}function F(O){return Qt(O)?ue(t,gt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):gt(O)}function gt(O){return t.enter("htmlTextData"),u(O)}}const Wm={name:"labelEnd",resolveAll:aF,resolveTo:oF,tokenize:lF},rF={tokenize:uF},iF={tokenize:cF},sF={tokenize:fF};function aF(t){let e=-1;const n=[];for(;++e<t.length;){const i=t[e][1];if(n.push(t[e]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",e+=a}}return t.length!==n.length&&Tr(t,0,t.length,n),t}function oF(t,e){let n=t.length,i=0,a,l,u,f;for(;n--;)if(a=t[n][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;t[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(t[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(u=n);const d={type:t[l][1].type==="labelLink"?"link":"image",start:{...t[l][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[l][1].start},end:{...t[u][1].end}},m={type:"labelText",start:{...t[l+i+2][1].end},end:{...t[u-2][1].start}};return f=[["enter",d,e],["enter",h,e]],f=Gn(f,t.slice(l+1,l+i+3)),f=Gn(f,[["enter",m,e]]),f=Gn(f,Qm(e.parser.constructs.insideSpan.null,t.slice(l+i+4,u-3),e)),f=Gn(f,[["exit",m,e],t[u-2],t[u-1],["exit",h,e]]),f=Gn(f,t.slice(u+1)),f=Gn(f,[["exit",d,e]]),Tr(t,l,t.length,f),t}function lF(t,e,n){const i=this;let a=i.events.length,l,u;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){l=i.events[a][1];break}return f;function f(b){return l?l._inactive?y(b):(u=i.parser.defined.includes(Va(i.sliceSerialize({start:l.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(b),t.exit("labelMarker"),t.exit("labelEnd"),d):n(b)}function d(b){return b===40?t.attempt(rF,m,u?m:y)(b):b===91?t.attempt(iF,m,u?h:y)(b):u?m(b):y(b)}function h(b){return t.attempt(sF,m,y)(b)}function m(b){return e(b)}function y(b){return l._balanced=!0,n(b)}}function uF(t,e,n){return i;function i(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),a}function a(y){return hn(y)?Vl(t,l)(y):l(y)}function l(y){return y===41?m(y):BT(t,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function u(y){return hn(y)?Vl(t,d)(y):m(y)}function f(y){return n(y)}function d(y){return y===34||y===39||y===40?IT(t,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return hn(y)?Vl(t,m)(y):m(y)}function m(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),e):n(y)}}function cF(t,e,n){const i=this;return a;function a(f){return UT.call(i,t,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return i.parser.defined.includes(Va(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(f):n(f)}function u(f){return n(f)}}function fF(t,e,n){return i;function i(l){return t.enter("reference"),t.enter("referenceMarker"),t.consume(l),t.exit("referenceMarker"),a}function a(l){return l===93?(t.enter("referenceMarker"),t.consume(l),t.exit("referenceMarker"),t.exit("reference"),e):n(l)}}const dF={name:"labelStartImage",resolveAll:Wm.resolveAll,tokenize:hF};function hF(t,e,n){const i=this;return a;function a(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),l}function l(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):e(f)}}const pF={name:"labelStartLink",resolveAll:Wm.resolveAll,tokenize:mF};function mF(t,e,n){const i=this;return a;function a(u){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(u),t.exit("labelMarker"),t.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):e(u)}}const tg={name:"lineEnding",tokenize:gF};function gF(t,e){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ue(t,e,"linePrefix")}}const of={name:"thematicBreak",tokenize:yF};function yF(t,e,n){let i=0,a;return l;function l(h){return t.enter("thematicBreak"),u(h)}function u(h){return a=h,f(h)}function f(h){return h===a?(t.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||_t(h))?(t.exit("thematicBreak"),e(h)):n(h)}function d(h){return h===a?(t.consume(h),i++,d):(t.exit("thematicBreakSequence"),Qt(h)?ue(t,f,"whitespace")(h):f(h))}}const pn={continuation:{tokenize:wF},exit:EF,name:"list",tokenize:xF},bF={partial:!0,tokenize:TF},vF={partial:!0,tokenize:SF};function xF(t,e,n){const i=this,a=i.events[i.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return f;function f(v){const w=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:Xm(v)){if(i.containerState.type||(i.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(of,n,h)(v):h(v);if(!i.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),d(v)}return n(v)}function d(v){return Xm(v)&&++u<10?(t.consume(v),d):(!i.interrupt||u<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),h(v)):n(v)}function h(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,t.check(af,i.interrupt?n:m,t.attempt(bF,b,y))}function m(v){return i.containerState.initialBlankLine=!0,l++,b(v)}function y(v){return Qt(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),b):n(v)}function b(v){return i.containerState.size=l+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(v)}}function wF(t,e,n){const i=this;return i.containerState._closeFlow=void 0,t.check(af,a,l);function a(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ue(t,e,"listItemIndent",i.containerState.size+1)(f)}function l(f){return i.containerState.furtherBlankLines||!Qt(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(vF,e,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,ue(t,t.attempt(pn,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function SF(t,e,n){const i=this;return ue(t,a,"listItemIndent",i.containerState.size+1);function a(l){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?e(l):n(l)}}function EF(t){t.exit(this.containerState.type)}function TF(t,e,n){const i=this;return ue(t,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const u=i.events[i.events.length-1];return!Qt(l)&&u&&u[1].type==="listItemPrefixWhitespace"?e(l):n(l)}}const qT={name:"setextUnderline",resolveTo:CF,tokenize:_F};function CF(t,e){let n=t.length,i,a,l;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){i=n;break}t[n][1].type==="paragraph"&&(a=n)}else t[n][1].type==="content"&&t.splice(n,1),!l&&t[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[a][1].type="setextHeadingText",l?(t.splice(a,0,["enter",u,e]),t.splice(l+1,0,["exit",t[i][1],e]),t[i][1].end={...t[l][1].end}):t[i][1]=u,t.push(["exit",u,e]),t}function _F(t,e,n){const i=this;let a;return l;function l(h){let m=i.events.length,y;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){y=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(t.enter("setextHeadingLine"),a=h,u(h)):n(h)}function u(h){return t.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===a?(t.consume(h),f):(t.exit("setextHeadingLineSequence"),Qt(h)?ue(t,d,"lineSuffix")(h):d(h))}function d(h){return h===null||_t(h)?(t.exit("setextHeadingLine"),e(h)):n(h)}}const AF={tokenize:RF};function RF(t){const e=this,n=t.attempt(af,i,t.attempt(this.parser.constructs.flowInitial,a,ue(t,t.attempt(this.parser.constructs.flow,a,t.attempt(N6,a)),"linePrefix")));return n;function i(l){if(l===null){t.consume(l);return}return t.enter("lineEndingBlank"),t.consume(l),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function a(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const OF={resolveAll:VT()},kF=FT("string"),DF=FT("text");function FT(t){return{resolveAll:VT(t==="text"?MF:void 0),tokenize:e};function e(n){const i=this,a=this.parser.constructs[t],l=n.attempt(a,u,f);return u;function u(m){return h(m)?l(m):f(m)}function f(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const y=a[m];let b=-1;if(y)for(;++b<y.length;){const v=y[b];if(!v.previous||v.previous.call(i,i.previous))return!0}return!1}}}function VT(t){return e;function e(n,i){let a=-1,l;for(;++a<=n.length;)l===void 0?n[a]&&n[a][1].type==="data"&&(l=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==l+2&&(n[l][1].end=n[a-1][1].end,n.splice(l+2,a-l-2),a=l+2),l=void 0);return t?t(n,i):n}}function MF(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const i=t[n-1][1],a=e.sliceStream(i);let l=a.length,u=-1,f=0,d;for(;l--;){const h=a[l];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(h===-2)d=!0,f++;else if(h!==-1){l++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(f=0),f){const h={type:n===t.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(t.splice(n,0,["enter",h,e],["exit",h,e]),n+=2)}n++}return t}const NF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:U6},disable:{null:[]},document:{42:pn,43:pn,45:pn,48:pn,49:pn,50:pn,51:pn,52:pn,53:pn,54:pn,55:pn,56:pn,57:pn,62:DT},flow:{35:H6,42:of,45:[qT,of],60:$6,61:qT,95:of,96:jT,126:jT},flowInitial:{[-2]:Jm,[-1]:Jm,32:Jm},insideSpan:{null:[Zm,OF]},string:{38:NT,92:MT},text:{[-5]:tg,[-4]:tg,[-3]:tg,33:dF,38:NT,42:Zm,60:[p6,eF],91:pF,92:[F6,MT],93:Wm,95:Zm,96:A6}},Symbol.toStringTag,{value:"Module"}));function LF(t,e,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},l=[];let u=[],f=[];const d={attempt:q(G),check:q(z),consume:L,enter:R,exit:U,interrupt:q(z,{interrupt:!0})},h={code:null,containerState:{},defineSkip:E,events:[],now:w,parser:t,previous:null,sliceSerialize:b,sliceStream:v,write:y};let m=e.tokenize.call(h,d);return e.resolveAll&&l.push(e),h;function y(nt){return u=Gn(u,nt),C(),u[u.length-1]!==null?[]:(M(e,0),h.events=Qm(l,h.events,h),h.events)}function b(nt,st){return zF(v(nt),st)}function v(nt){return jF(u,nt)}function w(){const{_bufferIndex:nt,_index:st,line:ft,column:at,offset:it}=i;return{_bufferIndex:nt,_index:st,line:ft,column:at,offset:it}}function E(nt){a[nt.line]=nt.column,K()}function C(){let nt;for(;i._index<u.length;){const st=u[i._index];if(typeof st=="string")for(nt=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===nt&&i._bufferIndex<st.length;)_(st.charCodeAt(i._bufferIndex));else _(st)}}function _(nt){m=m(nt)}function L(nt){_t(nt)?(i.line++,i.column=1,i.offset+=nt===-3?2:1,K()):nt!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=nt}function R(nt,st){const ft=st||{};return ft.type=nt,ft.start=w(),h.events.push(["enter",ft,h]),f.push(ft),ft}function U(nt){const st=f.pop();return st.end=w(),h.events.push(["exit",st,h]),st}function G(nt,st){M(nt,st.from)}function z(nt,st){st.restore()}function q(nt,st){return ft;function ft(at,it,Q){let Y,F,gt,O;return Array.isArray(at)?D(at):"tokenize"in at?D([at]):xt(at);function xt(vt){return dt;function dt(wt){const Gt=wt!==null&&vt[wt],qt=wt!==null&&vt.null,Ve=[...Array.isArray(Gt)?Gt:Gt?[Gt]:[],...Array.isArray(qt)?qt:qt?[qt]:[]];return D(Ve)(wt)}}function D(vt){return Y=vt,F=0,vt.length===0?Q:T(vt[F])}function T(vt){return dt;function dt(wt){return O=P(),gt=vt,vt.partial||(h.currentConstruct=vt),vt.name&&h.parser.constructs.disable.null.includes(vt.name)?ot():vt.tokenize.call(st?Object.assign(Object.create(h),st):h,d,J,ot)(wt)}}function J(vt){return nt(gt,O),it}function ot(vt){return O.restore(),++F<Y.length?T(Y[F]):Q}}}function M(nt,st){nt.resolveAll&&!l.includes(nt)&&l.push(nt),nt.resolve&&Tr(h.events,st,h.events.length-st,nt.resolve(h.events.slice(st),h)),nt.resolveTo&&(h.events=nt.resolveTo(h.events,h))}function P(){const nt=w(),st=h.previous,ft=h.currentConstruct,at=h.events.length,it=Array.from(f);return{from:at,restore:Q};function Q(){i=nt,h.previous=st,h.currentConstruct=ft,h.events.length=at,f=it,K()}}function K(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function jF(t,e){const n=e.start._index,i=e.start._bufferIndex,a=e.end._index,l=e.end._bufferIndex;let u;if(n===a)u=[t[n].slice(i,l)];else{if(u=t.slice(n,a),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}l>0&&u.push(t[a].slice(0,l))}return u}function zF(t,e){let n=-1;const i=[];let a;for(;++n<t.length;){const l=t[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=e?" ":"	";break}case-1:{if(!e&&a)continue;u=" ";break}default:u=String.fromCharCode(l)}a=l===-2,i.push(u)}return i.join("")}function BF(t){const i={constructs:Wq([NF,...(t||{}).extensions||[]]),content:a(o6),defined:[],document:a(u6),flow:a(AF),lazy:{},string:a(kF),text:a(DF)};return i;function a(l){return u;function u(f){return LF(i,l,f)}}}function UF(t){for(;!zT(t););return t}const HT=/[\0\t\n\r]/g;function IF(){let t=1,e="",n=!0,i;return a;function a(l,u,f){const d=[];let h,m,y,b,v;for(l=e+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),y=0,e="",n&&(l.charCodeAt(0)===65279&&y++,n=void 0);y<l.length;){if(HT.lastIndex=y,h=HT.exec(l),b=h&&h.index!==void 0?h.index:l.length,v=l.charCodeAt(b),!h){e=l.slice(y);break}if(v===10&&y===b&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),y<b&&(d.push(l.slice(y,b)),t+=b-y),v){case 0:{d.push(65533),t++;break}case 9:{for(m=Math.ceil(t/4)*4,d.push(-2);t++<m;)d.push(-1);break}case 10:{d.push(-4),t=1;break}default:i=!0,t=1}y=b+1}return f&&(i&&d.push(-5),e&&d.push(e),d.push(null)),d}}const PF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qF(t){return t.replace(PF,FF)}function FF(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),l=a===120||a===88;return AT(n.slice(l?2:1),l?16:10)}return Km(n)||t}const GT={}.hasOwnProperty;function VF(t,e,n){return typeof e!="string"&&(n=e,e=void 0),HF(n)(UF(BF(n).document().write(IF()(t,e,!0))))}function HF(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Wl),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Kn),blockQuote:l(qt),characterEscape:P,characterReference:P,codeFenced:l(Ve),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(Ve,u),codeText:l(yn,u),codeTextData:P,data:P,codeFlowValue:P,definition:l(We),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(bn),hardBreakEscape:l(Ii),hardBreakTrailing:l(Ii),htmlFlow:l(so,u),htmlFlowData:P,htmlText:l(so,u),htmlTextData:P,image:l(vg),label:u,link:l(Wl),listItem:l(tu),listItemValue:b,listOrdered:l(ao,y),listUnordered:l(ao),paragraph:l(eu),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Kn),strong:l(xg),thematicBreak:l(on)},exit:{atxHeading:d(),atxHeadingSequence:G,autolink:d(),autolinkEmail:Gt,autolinkProtocol:wt,blockQuote:d(),characterEscapeValue:K,characterReferenceMarkerHexadecimal:ot,characterReferenceMarkerNumeric:ot,characterReferenceValue:vt,characterReference:dt,codeFenced:d(C),codeFencedFence:E,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:K,codeIndented:d(_),codeText:d(it),codeTextData:K,data:K,definition:d(),definitionDestinationString:U,definitionLabelString:L,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(st),hardBreakTrailing:d(st),htmlFlow:d(ft),htmlFlowData:K,htmlText:d(at),htmlTextData:K,image:d(Y),label:gt,labelText:F,lineEnding:nt,link:d(Q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:J,resourceDestinationString:O,resourceTitleString:xt,resource:D,setextHeading:d(M),setextHeadingLineSequence:q,setextHeadingText:z,strong:d(),thematicBreak:d()}};YT(e,(t||{}).mdastExtensions||[]);const n={};return i;function i(tt){let ct={type:"root",children:[]};const Rt={stack:[ct],tokenStack:[],config:e,enter:f,exit:h,buffer:u,resume:m,data:n},jt=[];let te=-1;for(;++te<tt.length;)if(tt[te][1].type==="listOrdered"||tt[te][1].type==="listUnordered")if(tt[te][0]==="enter")jt.push(te);else{const vn=jt.pop();te=a(tt,vn,te)}for(te=-1;++te<tt.length;){const vn=e[tt[te][0]];GT.call(vn,tt[te][1].type)&&vn[tt[te][1].type].call(Object.assign({sliceSerialize:tt[te][2].sliceSerialize},Rt),tt[te][1])}if(Rt.tokenStack.length>0){const vn=Rt.tokenStack[Rt.tokenStack.length-1];(vn[1]||KT).call(Rt,void 0,vn[0])}for(ct.position={start:Ai(tt.length>0?tt[0][1].start:{line:1,column:1,offset:0}),end:Ai(tt.length>0?tt[tt.length-2][1].end:{line:1,column:1,offset:0})},te=-1;++te<e.transforms.length;)ct=e.transforms[te](ct)||ct;return ct}function a(tt,ct,Rt){let jt=ct-1,te=-1,vn=!1,Xr,fr,dr,ze;for(;++jt<=Rt;){const xe=tt[jt];switch(xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xe[0]==="enter"?te++:te--,ze=void 0;break}case"lineEndingBlank":{xe[0]==="enter"&&(Xr&&!ze&&!te&&!dr&&(dr=jt),ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ze=void 0}if(!te&&xe[0]==="enter"&&xe[1].type==="listItemPrefix"||te===-1&&xe[0]==="exit"&&(xe[1].type==="listUnordered"||xe[1].type==="listOrdered")){if(Xr){let Oe=jt;for(fr=void 0;Oe--;){const hr=tt[Oe];if(hr[1].type==="lineEnding"||hr[1].type==="lineEndingBlank"){if(hr[0]==="exit")continue;fr&&(tt[fr][1].type="lineEndingBlank",vn=!0),hr[1].type="lineEnding",fr=Oe}else if(!(hr[1].type==="linePrefix"||hr[1].type==="blockQuotePrefix"||hr[1].type==="blockQuotePrefixWhitespace"||hr[1].type==="blockQuoteMarker"||hr[1].type==="listItemIndent"))break}dr&&(!fr||dr<fr)&&(Xr._spread=!0),Xr.end=Object.assign({},fr?tt[fr][1].start:xe[1].end),tt.splice(fr||jt,0,["exit",Xr,xe[2]]),jt++,Rt++}if(xe[1].type==="listItemPrefix"){const Oe={type:"listItem",_spread:!1,start:Object.assign({},xe[1].start),end:void 0};Xr=Oe,tt.splice(jt,0,["enter",Oe,xe[2]]),jt++,Rt++,dr=void 0,ze=!0}}}return tt[ct][1]._spread=vn,Rt}function l(tt,ct){return Rt;function Rt(jt){f.call(this,tt(jt),jt),ct&&ct.call(this,jt)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(tt,ct,Rt){this.stack[this.stack.length-1].children.push(tt),this.stack.push(tt),this.tokenStack.push([ct,Rt||void 0]),tt.position={start:Ai(ct.start),end:void 0}}function d(tt){return ct;function ct(Rt){tt&&tt.call(this,Rt),h.call(this,Rt)}}function h(tt,ct){const Rt=this.stack.pop(),jt=this.tokenStack.pop();if(jt)jt[0].type!==tt.type&&(ct?ct.call(this,tt,jt[0]):(jt[1]||KT).call(this,tt,jt[0]));else throw new Error("Cannot close `"+tt.type+"` ("+Pl({start:tt.start,end:tt.end})+"): it’s not open");Rt.position.end=Ai(tt.end)}function m(){return Zq(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(tt){if(this.data.expectingFirstListItemValue){const ct=this.stack[this.stack.length-2];ct.start=Number.parseInt(this.sliceSerialize(tt),10),this.data.expectingFirstListItemValue=void 0}}function v(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.lang=tt}function w(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.meta=tt}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.value=tt.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.value=tt.replace(/(\r?\n|\r)$/g,"")}function L(tt){const ct=this.resume(),Rt=this.stack[this.stack.length-1];Rt.label=ct,Rt.identifier=Va(this.sliceSerialize(tt)).toLowerCase()}function R(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.title=tt}function U(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.url=tt}function G(tt){const ct=this.stack[this.stack.length-1];if(!ct.depth){const Rt=this.sliceSerialize(tt).length;ct.depth=Rt}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function q(tt){const ct=this.stack[this.stack.length-1];ct.depth=this.sliceSerialize(tt).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function P(tt){const Rt=this.stack[this.stack.length-1].children;let jt=Rt[Rt.length-1];(!jt||jt.type!=="text")&&(jt=wg(),jt.position={start:Ai(tt.start),end:void 0},Rt.push(jt)),this.stack.push(jt)}function K(tt){const ct=this.stack.pop();ct.value+=this.sliceSerialize(tt),ct.position.end=Ai(tt.end)}function nt(tt){const ct=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Rt=ct.children[ct.children.length-1];Rt.position.end=Ai(tt.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(ct.type)&&(P.call(this,tt),K.call(this,tt))}function st(){this.data.atHardBreak=!0}function ft(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.value=tt}function at(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.value=tt}function it(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.value=tt}function Q(){const tt=this.stack[this.stack.length-1];if(this.data.inReference){const ct=this.data.referenceType||"shortcut";tt.type+="Reference",tt.referenceType=ct,delete tt.url,delete tt.title}else delete tt.identifier,delete tt.label;this.data.referenceType=void 0}function Y(){const tt=this.stack[this.stack.length-1];if(this.data.inReference){const ct=this.data.referenceType||"shortcut";tt.type+="Reference",tt.referenceType=ct,delete tt.url,delete tt.title}else delete tt.identifier,delete tt.label;this.data.referenceType=void 0}function F(tt){const ct=this.sliceSerialize(tt),Rt=this.stack[this.stack.length-2];Rt.label=qF(ct),Rt.identifier=Va(ct).toLowerCase()}function gt(){const tt=this.stack[this.stack.length-1],ct=this.resume(),Rt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Rt.type==="link"){const jt=tt.children;Rt.children=jt}else Rt.alt=ct}function O(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.url=tt}function xt(){const tt=this.resume(),ct=this.stack[this.stack.length-1];ct.title=tt}function D(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function J(tt){const ct=this.resume(),Rt=this.stack[this.stack.length-1];Rt.label=ct,Rt.identifier=Va(this.sliceSerialize(tt)).toLowerCase(),this.data.referenceType="full"}function ot(tt){this.data.characterReferenceType=tt.type}function vt(tt){const ct=this.sliceSerialize(tt),Rt=this.data.characterReferenceType;let jt;Rt?(jt=AT(ct,Rt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):jt=Km(ct);const te=this.stack[this.stack.length-1];te.value+=jt}function dt(tt){const ct=this.stack.pop();ct.position.end=Ai(tt.end)}function wt(tt){K.call(this,tt);const ct=this.stack[this.stack.length-1];ct.url=this.sliceSerialize(tt)}function Gt(tt){K.call(this,tt);const ct=this.stack[this.stack.length-1];ct.url="mailto:"+this.sliceSerialize(tt)}function qt(){return{type:"blockquote",children:[]}}function Ve(){return{type:"code",lang:null,meta:null,value:""}}function yn(){return{type:"inlineCode",value:""}}function We(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bn(){return{type:"emphasis",children:[]}}function Kn(){return{type:"heading",depth:0,children:[]}}function Ii(){return{type:"break"}}function so(){return{type:"html",value:""}}function vg(){return{type:"image",title:null,url:"",alt:null}}function Wl(){return{type:"link",title:null,url:"",children:[]}}function ao(tt){return{type:"list",ordered:tt.type==="listOrdered",start:null,spread:tt._spread,children:[]}}function tu(tt){return{type:"listItem",spread:tt._spread,checked:null,children:[]}}function eu(){return{type:"paragraph",children:[]}}function xg(){return{type:"strong",children:[]}}function wg(){return{type:"text",value:""}}function on(){return{type:"thematicBreak"}}}function Ai(t){return{line:t.line,column:t.column,offset:t.offset}}function YT(t,e){let n=-1;for(;++n<e.length;){const i=e[n];Array.isArray(i)?YT(t,i):GF(t,i)}}function GF(t,e){let n;for(n in e)if(GT.call(e,n))switch(n){case"canContainEols":{const i=e[n];i&&t[n].push(...i);break}case"transforms":{const i=e[n];i&&t[n].push(...i);break}case"enter":case"exit":{const i=e[n];i&&Object.assign(t[n],i);break}}}function KT(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Pl({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Pl({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Pl({start:e.start,end:e.end})+") is still open")}function YF(t){const e=this;e.parser=n;function n(i){return VF(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function KF(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function $F(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
`}]}function XF(t,e){const n=e.value?e.value+`
`:"",i={},a=e.lang?e.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return e.meta&&(l.data={meta:e.meta}),t.patch(e,l),l=t.applyData(e,l),l={type:"element",tagName:"pre",properties:{},children:[l]},t.patch(e,l),l}function QF(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function ZF(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function JF(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),a=Ha(i.toLowerCase()),l=t.footnoteOrder.indexOf(i);let u,f=t.footnoteCounts.get(i);f===void 0?(f=0,t.footnoteOrder.push(i),u=t.footnoteOrder.length):u=l+1,f+=1,t.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};t.patch(e,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return t.patch(e,h),t.applyData(e,h)}function WF(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function tV(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function $T(t,e){const n=e.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const a=t.all(e),l=a[0];l&&l.type==="text"?l.value="["+l.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=i:a.push({type:"text",value:i}),a}function eV(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return $T(t,e);const a={src:Ha(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const l={type:"element",tagName:"img",properties:a,children:[]};return t.patch(e,l),t.applyData(e,l)}function nV(t,e){const n={src:Ha(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,i),t.applyData(e,i)}function rV(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,i),t.applyData(e,i)}function iV(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return $T(t,e);const a={href:Ha(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const l={type:"element",tagName:"a",properties:a,children:t.all(e)};return t.patch(e,l),t.applyData(e,l)}function sV(t,e){const n={href:Ha(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function aV(t,e,n){const i=t.all(e),a=n?oV(n):XT(e),l={},u=[];if(typeof e.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(a||f!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!a?u.push(...m.children):u.push(m)}const d=i[i.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
`});const h={type:"element",tagName:"li",properties:l,children:u};return t.patch(e,h),t.applyData(e,h)}function oV(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let i=-1;for(;!e&&++i<n.length;)e=XT(n[i])}return e}function XT(t){const e=t.spread;return e??t.children.length>1}function lV(t,e){const n={},i=t.all(e);let a=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++a<i.length;){const u=i[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(i,!0)};return t.patch(e,l),t.applyData(e,l)}function uV(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function cV(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function fV(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function dV(t,e){const n=t.all(e),i=n.shift(),a=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(e.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},f=qm(e.children[1]),d=mT(e.children[e.children.length-1]);f&&d&&(u.position={start:f,end:d}),a.push(u)}const l={type:"element",tagName:"table",properties:{},children:t.wrap(a,!0)};return t.patch(e,l),t.applyData(e,l)}function hV(t,e,n){const i=n?n.children:void 0,l=(i?i.indexOf(e):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:e.children.length;let d=-1;const h=[];for(;++d<f;){const y=e.children[d],b={},v=u?u[d]:void 0;v&&(b.align=v);let w={type:"element",tagName:l,properties:b,children:[]};y&&(w.children=t.all(y),t.patch(y,w),w=t.applyData(y,w)),h.push(w)}const m={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(e,m),t.applyData(e,m)}function pV(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const QT=9,ZT=32;function mV(t){const e=String(t),n=/\r?\n|\r/g;let i=n.exec(e),a=0;const l=[];for(;i;)l.push(JT(e.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(e);return l.push(JT(e.slice(a),a>0,!1)),l.join("")}function JT(t,e,n){let i=0,a=t.length;if(e){let l=t.codePointAt(i);for(;l===QT||l===ZT;)i++,l=t.codePointAt(i)}if(n){let l=t.codePointAt(a-1);for(;l===QT||l===ZT;)a--,l=t.codePointAt(a-1)}return a>i?t.slice(i,a):""}function gV(t,e){const n={type:"text",value:mV(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function yV(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const bV={blockquote:KF,break:$F,code:XF,delete:QF,emphasis:ZF,footnoteReference:JF,heading:WF,html:tV,imageReference:eV,image:nV,inlineCode:rV,linkReference:iV,link:sV,listItem:aV,list:lV,paragraph:uV,root:cV,strong:fV,table:dV,tableCell:pV,tableRow:hV,text:gV,thematicBreak:yV,toml:lf,yaml:lf,definition:lf,footnoteDefinition:lf};function lf(){}const WT=-1,uf=0,Hl=1,cf=2,eg=3,ng=4,rg=5,ig=6,tC=7,eC=8,nC=typeof self=="object"?self:globalThis,vV=(t,e)=>{const n=(a,l)=>(t.set(l,a),a),i=a=>{if(t.has(a))return t.get(a);const[l,u]=e[a];switch(l){case uf:case WT:return n(u,a);case Hl:{const f=n([],a);for(const d of u)f.push(i(d));return f}case cf:{const f=n({},a);for(const[d,h]of u)f[i(d)]=i(h);return f}case eg:return n(new Date(u),a);case ng:{const{source:f,flags:d}=u;return n(new RegExp(f,d),a)}case rg:{const f=n(new Map,a);for(const[d,h]of u)f.set(i(d),i(h));return f}case ig:{const f=n(new Set,a);for(const d of u)f.add(i(d));return f}case tC:{const{name:f,message:d}=u;return n(new nC[f](d),a)}case eC:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new nC[l](u),a)};return i},rC=t=>vV(new Map,t)(0),Ga="",{toString:xV}={},{keys:wV}=Object,Gl=t=>{const e=typeof t;if(e!=="object"||!t)return[uf,e];const n=xV.call(t).slice(8,-1);switch(n){case"Array":return[Hl,Ga];case"Object":return[cf,Ga];case"Date":return[eg,Ga];case"RegExp":return[ng,Ga];case"Map":return[rg,Ga];case"Set":return[ig,Ga];case"DataView":return[Hl,n]}return n.includes("Array")?[Hl,n]:n.includes("Error")?[tC,n]:[cf,n]},ff=([t,e])=>t===uf&&(e==="function"||e==="symbol"),SV=(t,e,n,i)=>{const a=(u,f)=>{const d=i.push(u)-1;return n.set(f,d),d},l=u=>{if(n.has(u))return n.get(u);let[f,d]=Gl(u);switch(f){case uf:{let m=u;switch(d){case"bigint":f=eC,m=u.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([WT],u)}return a([f,m],u)}case Hl:{if(d){let b=u;return d==="DataView"?b=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(u)),a([d,[...b]],u)}const m=[],y=a([f,m],u);for(const b of u)m.push(l(b));return y}case cf:{if(d)switch(d){case"BigInt":return a([d,u.toString()],u);case"Boolean":case"Number":case"String":return a([d,u.valueOf()],u)}if(e&&"toJSON"in u)return l(u.toJSON());const m=[],y=a([f,m],u);for(const b of wV(u))(t||!ff(Gl(u[b])))&&m.push([l(b),l(u[b])]);return y}case eg:return a([f,u.toISOString()],u);case ng:{const{source:m,flags:y}=u;return a([f,{source:m,flags:y}],u)}case rg:{const m=[],y=a([f,m],u);for(const[b,v]of u)(t||!(ff(Gl(b))||ff(Gl(v))))&&m.push([l(b),l(v)]);return y}case ig:{const m=[],y=a([f,m],u);for(const b of u)(t||!ff(Gl(b)))&&m.push(l(b));return y}}const{message:h}=u;return a([f,{name:d,message:h}],u)};return l},iC=(t,{json:e,lossy:n}={})=>{const i=[];return SV(!(e||n),!!e,new Map,i)(t),i},df=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?rC(iC(t,e)):structuredClone(t):(t,e)=>rC(iC(t,e));function EV(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function TV(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function CV(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||EV,i=t.options.footnoteBackLabel||TV,a=t.options.footnoteLabel||"Footnotes",l=t.options.footnoteLabelTagName||"h2",u=t.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[d]);if(!h)continue;const m=t.all(h),y=String(h.identifier).toUpperCase(),b=Ha(y.toLowerCase());let v=0;const w=[],E=t.footnoteCounts.get(y);for(;E!==void 0&&++v<=E;){w.length>0&&w.push({type:"text",value:" "});let L=typeof n=="string"?n:n(d,v);typeof L=="string"&&(L={type:"text",value:L}),w.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+b+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,v),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const C=m[m.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const L=C.children[C.children.length-1];L&&L.type==="text"?L.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...w)}else m.push(...w);const _={type:"element",tagName:"li",properties:{id:e+"fn-"+b},children:t.wrap(m,!0)};t.patch(h,_),f.push(_)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...df(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(f,!0)},{type:"text",value:`
`}]}}const sC=(function(t){if(t==null)return OV;if(typeof t=="function")return hf(t);if(typeof t=="object")return Array.isArray(t)?_V(t):AV(t);if(typeof t=="string")return RV(t);throw new Error("Expected function, string, or object as test")});function _V(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=sC(t[n]);return hf(i);function i(...a){let l=-1;for(;++l<e.length;)if(e[l].apply(this,a))return!0;return!1}}function AV(t){const e=t;return hf(n);function n(i){const a=i;let l;for(l in t)if(a[l]!==e[l])return!1;return!0}}function RV(t){return hf(e);function e(n){return n&&n.type===t}}function hf(t){return e;function e(n,i,a){return!!(kV(n)&&t.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function OV(){return!0}function kV(t){return t!==null&&typeof t=="object"&&"type"in t}function mG(t){return t}const aC=[],DV=!0,oC=!1,MV="skip";function NV(t,e,n,i){let a;typeof e=="function"&&typeof n!="function"?(i=n,n=e):a=e;const l=sC(a),u=i?-1:1;f(t,void 0,[])();function f(d,h,m){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(v?"<"+v+">":""))+")"})}return b;function b(){let v=aC,w,E,C;if((!e||l(d,h,m[m.length-1]||void 0))&&(v=LV(n(d,m)),v[0]===oC))return v;if("children"in d&&d.children){const _=d;if(_.children&&v[0]!==MV)for(E=(i?_.children.length:-1)+u,C=m.concat(_);E>-1&&E<_.children.length;){const L=_.children[E];if(w=f(L,E,C)(),w[0]===oC)return w;E=typeof w[1]=="number"?w[1]:E+u}}return v}}}function LV(t){return Array.isArray(t)?t:typeof t=="number"?[DV,t]:t==null?aC:[t]}function lC(t,e,n,i){let a,l,u;typeof e=="function"&&typeof n!="function"?(l=void 0,u=e,a=n):(l=e,u=n,a=i),NV(t,l,f,a);function f(d,h){const m=h[h.length-1],y=m?m.children.indexOf(d):void 0;return u(d,y,m)}}const sg={}.hasOwnProperty,jV={};function zV(t,e){const n=e||jV,i=new Map,a=new Map,l=new Map,u={...bV,...n.handlers},f={all:h,applyData:UV,definitionById:i,footnoteById:a,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:BV,wrap:PV};return lC(t,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:a,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),f;function d(m,y){const b=m.type,v=f.handlers[b];if(sg.call(f.handlers,b)&&v)return v(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in m){const{children:E,...C}=m,_=df(C);return _.children=f.all(m),_}return df(m)}return(f.options.unknownHandler||IV)(f,m,y)}function h(m){const y=[];if("children"in m){const b=m.children;let v=-1;for(;++v<b.length;){const w=f.one(b[v],m);if(w){if(v&&b[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=uC(w.value)),!Array.isArray(w)&&w.type==="element")){const E=w.children[0];E&&E.type==="text"&&(E.value=uC(E.value))}Array.isArray(w)?y.push(...w):y.push(w)}}}return y}}function BV(t,e){t.position&&(e.position=Oq(t))}function UV(t,e){let n=e;if(t&&t.data){const i=t.data.hName,a=t.data.hChildren,l=t.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,df(l)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function IV(t,e){const n=e.data||{},i="value"in e&&!(sg.call(n,"hProperties")||sg.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function PV(t,e){const n=[];let i=-1;for(e&&n.push({type:"text",value:`
`});++i<t.length;)i&&n.push({type:"text",value:`
`}),n.push(t[i]);return e&&t.length>0&&n.push({type:"text",value:`
`}),n}function uC(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function cC(t,e){const n=zV(t,e),i=n.one(t,void 0),a=CV(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&l.children.push({type:"text",value:`
`},a),l}function qV(t,e){return t&&"run"in t?async function(n,i){const a=cC(n,{file:i,...e});await t.run(a,i)}:function(n,i){return cC(n,{file:i,...t||e})}}function fC(t){if(t)throw t}var ag,dC;function FV(){if(dC)return ag;dC=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},l=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var m=t.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||t.call(h,b)},u=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},f=function(h,m){if(m==="__proto__")if(t.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return ag=function d(){var h,m,y,b,v,w,E=arguments[0],C=1,_=arguments.length,L=!1;for(typeof E=="boolean"&&(L=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});C<_;++C)if(h=arguments[C],h!=null)for(m in h)y=f(E,m),b=f(h,m),E!==b&&(L&&b&&(l(b)||(v=a(b)))?(v?(v=!1,w=y&&a(y)?y:[]):w=y&&l(y)?y:{},u(E,{name:m,newValue:d(L,w,b)})):typeof b<"u"&&u(E,{name:m,newValue:b}));return E},ag}var VV=FV();const og=Ut(VV);function lg(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function HV(){const t=[],e={run:n,use:i};return e;function n(...a){let l=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...a);function f(d,...h){const m=t[++l];let y=-1;if(d){u(d);return}for(;++y<a.length;)(h[y]===null||h[y]===void 0)&&(h[y]=a[y]);a=h,m?GV(m,f)(...h):u(null,...h)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return t.push(a),e}}function GV(t,e){let n;return i;function i(...u){const f=t.length>u.length;let d;f&&u.push(a);try{d=t.apply(this,u)}catch(h){const m=h;if(f&&n)throw m;return a(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(l,a):d instanceof Error?a(d):l(d))}function a(u,...f){n||(n=!0,e(u,...f))}function l(u){a(null,u)}}const _r={basename:YV,dirname:KV,extname:$V,join:XV,sep:"/"};function YV(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Yl(t);let n=0,i=-1,a=t.length,l;if(e===void 0||e.length===0||e.length>t.length){for(;a--;)if(t.codePointAt(a)===47){if(l){n=a+1;break}}else i<0&&(l=!0,i=a+1);return i<0?"":t.slice(n,i)}if(e===t)return"";let u=-1,f=e.length-1;for(;a--;)if(t.codePointAt(a)===47){if(l){n=a+1;break}}else u<0&&(l=!0,u=a+1),f>-1&&(t.codePointAt(a)===e.codePointAt(f--)?f<0&&(i=a):(f=-1,i=u));return n===i?i=u:i<0&&(i=t.length),t.slice(n,i)}function KV(t){if(Yl(t),t.length===0)return".";let e=-1,n=t.length,i;for(;--n;)if(t.codePointAt(n)===47){if(i){e=n;break}}else i||(i=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function $V(t){Yl(t);let e=t.length,n=-1,i=0,a=-1,l=0,u;for(;e--;){const f=t.codePointAt(e);if(f===47){if(u){i=e+1;break}continue}n<0&&(u=!0,n=e+1),f===46?a<0?a=e:l!==1&&(l=1):a>-1&&(l=-1)}return a<0||n<0||l===0||l===1&&a===n-1&&a===i+1?"":t.slice(a,n)}function XV(...t){let e=-1,n;for(;++e<t.length;)Yl(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":QV(n)}function QV(t){Yl(t);const e=t.codePointAt(0)===47;let n=ZV(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function ZV(t,e){let n="",i=0,a=-1,l=0,u=-1,f,d;for(;++u<=t.length;){if(u<t.length)f=t.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(a===u-1||l===1))if(a!==u-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),a=u,l=0;continue}}else if(n.length>0){n="",i=0,a=u,l=0;continue}}e&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+t.slice(a+1,u):n=t.slice(a+1,u),i=u-a-1;a=u,l=0}else f===46&&l>-1?l++:l=-1}return n}function Yl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const JV={cwd:WV};function WV(){return"/"}function ug(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function tH(t){if(typeof t=="string")t=new URL(t);else if(!ug(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return eH(t)}function eH(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const i=e.codePointAt(n+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(e)}const cg=["history","path","basename","stem","extname","dirname"];class hC{constructor(e){let n;e?ug(e)?n={path:e}:typeof e=="string"||nH(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":JV.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<cg.length;){const l=cg[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let a;for(a in n)cg.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?_r.basename(this.path):void 0}set basename(e){dg(e,"basename"),fg(e,"basename"),this.path=_r.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?_r.dirname(this.path):void 0}set dirname(e){pC(this.basename,"dirname"),this.path=_r.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?_r.extname(this.path):void 0}set extname(e){if(fg(e,"extname"),pC(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_r.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ug(e)&&(e=tH(e)),dg(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?_r.basename(this.path,this.extname):void 0}set stem(e){dg(e,"stem"),fg(e,"stem"),this.path=_r.join(this.dirname||"",e+(this.extname||""))}fail(e,n,i){const a=this.message(e,n,i);throw a.fatal=!0,a}info(e,n,i){const a=this.message(e,n,i);return a.fatal=void 0,a}message(e,n,i){const a=new Je(e,n,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function fg(t,e){if(t&&t.includes(_r.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+_r.sep+"`")}function dg(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function pC(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function nH(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const rH=(function(t){const i=this.constructor.prototype,a=i[t],l=function(){return a.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),iH={}.hasOwnProperty;class hg extends rH{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=HV()}copy(){const e=new hg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];e.use(...i)}return e.data(og(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(gg("data",this.frozen),this.namespace[e]=n,this):iH.call(this.namespace,e)&&this.namespace[e]||void 0:e?(gg("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=n.call(e,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=pf(e),i=this.parser||this.Parser;return pg("parse",i),i(String(n),n)}process(e,n){const i=this;return this.freeze(),pg("process",this.parser||this.Parser),mg("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(l,u){const f=pf(e),d=i.parse(f);i.run(d,f,function(m,y,b){if(m||!y||!b)return h(m);const v=y,w=i.stringify(v,b);oH(w)?b.value=w:b.result=w,h(m,b)});function h(m,y){m||!y?u(m):l?l(y):n(void 0,y)}}}processSync(e){let n=!1,i;return this.freeze(),pg("processSync",this.parser||this.Parser),mg("processSync",this.compiler||this.Compiler),this.process(e,a),gC("processSync","process",n),i;function a(l,u){n=!0,fC(l),i=u}}run(e,n,i){mC(e),this.freeze();const a=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(u,f){const d=pf(n);a.run(e,d,h);function h(m,y,b){const v=y||e;m?f(m):u?u(v):i(void 0,v,b)}}}runSync(e,n){let i=!1,a;return this.run(e,n,l),gC("runSync","run",i),a;function l(u,f){fC(u),a=f,i=!0}}stringify(e,n){this.freeze();const i=pf(n),a=this.compiler||this.Compiler;return mg("stringify",a),mC(e),a(e,i)}use(e,...n){const i=this.attachers,a=this.namespace;if(gg("use",this.frozen),e!=null)if(typeof e=="function")d(e,n);else if(typeof e=="object")Array.isArray(e)?f(e):u(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function l(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;d(m,y)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(a.settings=og(!0,a.settings,h.settings))}function f(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];l(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===h){b=y;break}if(b===-1)i.push([h,...m]);else if(m.length>0){let[v,...w]=m;const E=i[b][1];lg(E)&&lg(v)&&(v=og(!0,E,v)),i[b]=[h,v,...w]}}}}const sH=new hg().freeze();function pg(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function mg(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function gg(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mC(t){if(!lg(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function gC(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function pf(t){return aH(t)?t:new hC(t)}function aH(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function oH(t){return typeof t=="string"||lH(t)}function lH(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const uH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yC=[],bC={allowDangerousHtml:!0},cH=/^(https?|ircs?|mailto|xmpp)$/i,fH=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vC(t){const e=dH(t),n=hH(t);return pH(e.runSync(e.parse(n),n),t)}function dH(t){const e=t.rehypePlugins||yC,n=t.remarkPlugins||yC,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...bC}:bC;return sH().use(YF).use(n).use(qV,i).use(e)}function hH(t){const e=t.children||"",n=new hC;return typeof e=="string"&&(n.value=e),n}function pH(t,e){const n=e.allowedElements,i=e.allowElement,a=e.components,l=e.disallowedElements,u=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||mH;for(const m of fH)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+uH+m.id,void 0);return lC(t,h),Lq(t,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return u?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let v;for(v in Ym)if(Object.hasOwn(Ym,v)&&Object.hasOwn(m.properties,v)){const w=m.properties[v],E=Ym[v];(E===null||E.includes(m.tagName))&&(m.properties[v]=d(String(w||""),v,m))}}if(m.type==="element"){let v=n?!n.includes(m.tagName):l?l.includes(m.tagName):!1;if(!v&&i&&typeof y=="number"&&(v=!i(m,y,b)),v&&b&&typeof y=="number")return f&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}}function mH(t){const e=t.indexOf(":"),n=t.indexOf("?"),i=t.indexOf("#"),a=t.indexOf("/");return e===-1||a!==-1&&e>a||n!==-1&&e>n||i!==-1&&e>i||cH.test(t.slice(0,e))?t:""}const gH=({onClick:t,buttons:e})=>N.jsx("div",{className:"flex gap-2 px-1",children:e==null?void 0:e.map(n=>N.jsxs("button",{className:"action-button border-primary-500 text-primary-600 hover:bg-primary-500 flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 rounded-xl border-1 bg-white p-2 shadow transition hover:text-white",onClick:()=>t==null?void 0:t(n),children:[N.jsx("span",{className:"flex flex-col text-3xl",children:n.icon}),N.jsx("div",{className:"font-semibold",children:n.label})]},n.id))}),yH=({isOpen:t,onClose:e,onMessageTemplateSelect:n,onChatStart:i,onActionButtonSelect:a})=>{const{data:l}=wr(),u=B.useRef(null),[f,d]=B.useState(!1),[h,m]=B.useState(!1),{t:y}=br(),b=()=>{const w=u.current;if(!w)return;m(w.scrollHeight>w.clientHeight);const E=w.scrollTop+w.clientHeight>=w.scrollHeight-20;d(E)};B.useEffect(()=>{b()},[l==null?void 0:l.agentInitMessage]);const v=()=>{const w=u.current;w&&(d(!0),w.scrollTo({top:w.scrollHeight,behavior:"smooth"}),setTimeout(b,16))};return N.jsx(Rl,{children:t&&N.jsxs(Hn.div,{initial:{opacity:0,y:30,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:30,scale:.95},transition:{duration:.3,ease:"easeOut"},className:"chat-welcome-message-notification bg-primary-50 fixed right-4 bottom-22 z-[100010] flex max-w-[320px] flex-col gap-2 rounded-2xl p-5 px-4 shadow-xl select-none",children:[N.jsxs("div",{className:"flex justify-between",children:[N.jsxs("div",{className:"text-primary-600 flex items-center gap-3",children:[N.jsx(bl,{className:"transition hover:scale-[1.1]",size:"mds"}),N.jsx("span",{className:"chat-welcome-message-notification-header text-[17px] font-bold",children:l==null?void 0:l.chatbotName})]}),N.jsx(Ia,{onClick:e,icon:N.jsx(Nm,{}),variant:"plain",color:"neutral",size:"small"})]}),N.jsxs("div",{className:"relative",children:[N.jsx("div",{ref:u,onScroll:b,className:"scroll-hidden scroll-smooth-ios max-h-[150px] overflow-y-scroll pr-2",children:N.jsx(vC,{children:l==null?void 0:l.agentInitMessage})}),h&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:`chat-welcome-message-notification-gradient from-primary-50 pointer-events-none absolute bottom-0 left-0 h-8 w-full bg-gradient-to-t to-transparent transition-opacity duration-300 ${f?"opacity-0":"opacity-100"}`}),N.jsx(Hn.button,{onClick:v,initial:{opacity:0,y:10},animate:{opacity:f?0:1,y:f?10:0},transition:{duration:.2},className:"text-primary-600 chat-welcome-message-notification-slider-button bg-primary-100 absolute bottom-2 left-1/2 -translate-x-1/2 cursor-pointer rounded-full p-1 shadow-md hover:bg-gray-100",children:N.jsx(v3,{className:"h-4 w-4"})})]})]}),(l==null?void 0:l.chatbotMode)!==sl.FLOW_ONLY&&(l==null?void 0:l.messageTemplates)&&l.welcomeNotificationActionsMode===wh.MESSAGE_TEMPLATES&&N.jsx(WE,{messageTemplates:l==null?void 0:l.messageTemplates,size:"sm",onClick:n}),(l==null?void 0:l.chatbotMode)!==sl.FLOW_ONLY&&(l==null?void 0:l.actionButtons)&&l.welcomeNotificationActionsMode===wh.ACTION_BUTTONS&&N.jsx(gH,{buttons:l==null?void 0:l.actionButtons,size:"sm",onClick:a}),N.jsx(Pc,{iconRight:N.jsx(Aa,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:i,children:y("startChatButton")})]},"chat-welcome")})},bH={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:20,transition:{duration:.1}}},vH={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.1}}},xC={shake:{rotate:[0,-5,5,-4,4,-2,2,0],transition:{duration:.6}}},xH=({onClick:t,hideTitle:e})=>{const{data:n}=wr(),i=WP();return B.useEffect(()=>{if(n!=null&&n.animateThumbnail){const a=setInterval(()=>{i.start("shake")},5e3);return()=>clearInterval(a)}},[i,n]),N.jsxs(N.Fragment,{children:[N.jsx(Rl,{children:!e&&N.jsx(Hn.div,{className:"fixed right-15 bottom-11 z-100000 flex",initial:"hidden",animate:"visible",exit:"exit",style:{bottom:(n==null?void 0:n.chatbotBubbleBottomOffset)||void 0},children:N.jsx(Hn.div,{animate:i,variants:xC,children:N.jsxs(Hn.button,{className:ge("bg-primary-100 text-primary-600 chat-thumbnail flex h-fit max-w-[300px] cursor-pointer flex-col gap-1 rounded-3xl p-3 px-4 text-left shadow-lg",(n==null?void 0:n.thumbnailStyle)===yc.STYLE2&&"text-center"),variants:vH,onClick:t,children:[(n==null?void 0:n.thumbnailStyle)===yc.STYLE1&&N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"text-xs",children:n==null?void 0:n.chatbotThumbnailTitle}),N.jsx("span",{className:"text-sm font-semibold",children:n==null?void 0:n.chatbotThumbnailSubtitle})]}),(n==null?void 0:n.thumbnailStyle)===yc.STYLE2&&N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"text-xl font-semibold",children:n==null?void 0:n.chatbotThumbnailTitle}),N.jsx("span",{className:"bg-primary-600 chat-thumbnail-2-button w-full rounded-xl p-2 font-medium text-white",children:n==null?void 0:n.chatbotThumbnailSubtitle})]})]})})})}),N.jsx(Hn.div,{className:"fixed right-4 bottom-4 z-100000",initial:"hidden",animate:"visible",exit:"exit",style:{bottom:n!=null&&n.chatbotBubbleBottomOffset?(n==null?void 0:n.chatbotBubbleBottomOffset)-24:void 0},children:N.jsx(Hn.button,{className:"cursor-pointer",variants:bH,onClick:t,children:N.jsx(Hn.div,{animate:i,variants:xC,children:N.jsx(bl,{isOnline:!0,className:"transition hover:scale-[1.1]",size:"md"})})})})]})},wH={default:"text-gray-700 hover:bg-gray-100",error:"text-red-600 hover:bg-red-100",success:"text-green-600 hover:bg-green-100",warning:"text-yellow-600 hover:bg-yellow-100",info:"text-blue-600 hover:bg-blue-100"};function SH({children:t,items:e,gap:n=5,width:i=208,anchor:a="bottom-start",className:l,itemClassName:u}){const[f,d]=B.useState(!1),h=B.useRef(null);B.useEffect(()=>{const y=v=>{setTimeout(()=>{h.current&&!h.current.contains(v.target)&&d(!1)},0)},b=v=>{v.key==="Escape"&&d(!1)};return document.addEventListener("click",y),document.addEventListener("keydown",b),()=>{document.removeEventListener("click",y),document.removeEventListener("keydown",b)}},[]);const m=a==="bottom-end"?"right-0":"left-0";return N.jsxs("div",{className:"relative inline-block",ref:h,children:[N.jsx("div",{className:ge("cursor-pointer",l),onClick:y=>{y.stopPropagation(),d(b=>!b)},children:t}),f&&N.jsx("div",{className:ge("absolute z-50 mt-1 rounded-xl border border-gray-200 bg-white p-1 shadow-sm transition duration-100 ease-out",m),style:{marginTop:n,width:i},children:e.map((y,b)=>N.jsx("div",{children:y.customContent?y.customContent:N.jsxs("button",{onClick:v=>{var w;v.stopPropagation(),(w=y.onClick)==null||w.call(y),d(!1)},className:ge("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-1.5 py-1.5 text-left",wH[y.variant||"default"],u),children:[y.icon&&N.jsx("span",{className:"size-4",children:y.icon}),N.jsx("span",{className:"text-sm font-medium",children:y.label}),N.jsx("span",{className:"text-sm font-medium",children:y.content}),y.shortcut&&N.jsx("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline",children:y.shortcut})]})},b))})]})}const EH=({onClose:t,onNewChat:e,hideClose:n,hideContextMenuButton:i,mode:a})=>{const{t:l}=br(),{data:u}=wr(),f=a===Ar.PAGE,d=()=>f?null:N.jsxs("div",{className:"chat-header-avatar-shadow flex w-fit items-center gap-2 rounded-full bg-white p-1 px-2 pr-3 font-medium whitespace-nowrap",children:[N.jsx(bl,{size:"xs"}),N.jsx("span",{children:u==null?void 0:u.chatbotName})]});return N.jsxs("div",{className:"flex w-full justify-between p-4",children:[N.jsx("div",{className:"flex-1 shrink-1",children:!i&&N.jsx(SH,{items:[{content:l("headerDropdown.reloadChat"),icon:N.jsx(y3,{}),onClick:e}],gap:-5,children:N.jsx(Ia,{icon:N.jsx(w3,{}),variant:"plain",color:"neutral",size:"small"})})}),d(),N.jsx("div",{className:"flex flex-1 shrink-1 justify-end",children:!n&&N.jsx(Ia,{onClick:t,icon:N.jsx(Nm,{}),variant:"plain",color:"neutral",size:"small"})})]})},TH=({className:t})=>{const{t:e}=br();return N.jsxs("a",{className:ge("flex items-center justify-center gap-1",t),href:"https://bezvabot.cz",target:"_blank",style:{textDecoration:"none"},children:[N.jsx("span",{className:"text-xs font-bold text-gray-400",children:e("poweredByBezvabot")}),N.jsx("img",{src:`${pl.APP_URL}/bezvabot-logo.png`,alt:"Bezvabot logo",className:"h-5"})]})},CH=()=>{const[t,e]=B.useState(navigator.onLine);return B.useEffect(()=>{const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n),window.addEventListener("offline",i),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}},[]),t},_H=({message:t,className:e})=>N.jsxs("div",{className:ge("flex w-full items-center justify-center gap-2 bg-red-400 py-1 text-center text-sm font-bold text-white",e),children:[N.jsx(aS,{className:"w-5 stroke-[3]"}),t]}),wC=t=>{const e=t.getHours().toString().padStart(2,"0"),n=t.getMinutes().toString().padStart(2,"0");return`${e}:${n}`},AH=(t,e)=>t.toLocaleDateString("cs",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\s/g,"");function RH(t){return Date.now()-t.getTime()>864e5}const mf=({children:t,role:e,createdAt:n,hideAvatar:i})=>{const{data:a}=wr(),l=B.useRef(null),u=nq(l,{once:!0}),f=B.useMemo(()=>{if(n)return RH(n)?N.jsxs(N.Fragment,{children:[AH(n)," ",wC(n)]}):wC(n)},[n]);return N.jsxs(Hn.div,{ref:l,initial:{opacity:0,y:10},animate:u?{opacity:1,y:0}:{},transition:{duration:.25,ease:"easeOut"},className:ge("flex flex-col items-start gap-1",e===sr.USER&&"items-end"),children:[!i&&N.jsx("div",{className:"text-left text-sm font-medium",children:e===sr.ASSISTANT&&(a==null?void 0:a.chatbotName)}),N.jsxs("div",{className:ge("flex w-[90%] flex-row items-start gap-2",e===sr.USER&&"justify-end"),children:[e===sr.ASSISTANT&&!i&&N.jsx(bl,{size:"sm",className:"shrink-0"}),N.jsxs("div",{className:ge("flex flex-col",i&&"ml-10"),children:[t,N.jsx("div",{className:"mt-1 text-right text-xs",children:f})]})]})]})},OH=({role:t,createdAt:e,content:n})=>n?N.jsx(mf,{role:t,createdAt:e,children:N.jsx("div",{className:ge("chat-text-message bg-primary-100 min-h-11 w-fit rounded-3xl rounded-br-3xl px-3.5 py-3 text-[15px] text-gray-900",t===sr.USER&&"chat-text-message-user rounded-br-none bg-[#E7E7E7]",t===sr.ASSISTANT&&"rounded-tl-none"),style:{overflowWrap:"anywhere"},children:N.jsx(vC,{children:n})})}):null,kH=({options:t,onClick:e,isMultiSelect:n})=>{const[i,a]=B.useState([]),{t:l}=br(),u=d=>{if(!n){e(d);return}a(h=>h.includes(d.value)?h.filter(m=>m!==d.value):[...h,d.value])},f=t.filter(d=>i.includes(d.value));return N.jsx(mf,{role:sr.ASSISTANT,hideAvatar:!0,children:N.jsxs("div",{className:"flex flex-col gap-4",children:[N.jsx("div",{className:"grid auto-rows-fr grid-cols-3 gap-3",children:t.map(d=>{const h=i.includes(d.value);return N.jsxs("button",{className:ge("flex cursor-pointer flex-col items-center justify-center gap-1 rounded-xl border p-2 shadow transition",h?"border-primary-500 bg-primary-400 text-white":"border-primary-500 text-primary-600 hover:bg-primary-500 bg-white hover:text-white"),onClick:()=>u(d),children:[N.jsx("span",{className:"flex text-3xl",children:d.emoji}),N.jsx("div",{className:"text-sm font-semibold",children:d.label})]},d.value)})}),n&&N.jsx("div",{className:"flex justify-end",children:N.jsxs("button",{type:"submit",className:"bg-primary-500 hover:bg-primary-400 text-sx flex h-12 w-full cursor-pointer items-center justify-center gap-3 rounded-xl border border-transparent px-4 text-white transition disabled:opacity-50",disabled:f.length===0,onClick:()=>e(f),children:[l("common.confirm"),N.jsx(Aa,{className:"h-5 w-5"})]})})]})})},gf=t=>t.replace(/\D/g,""),DH=({length:t=4,value:e,onChange:n,onComplete:i,autoFocus:a=!0,disabled:l=!1,className:u="",inputClassName:f="",onSubmit:d})=>{const h=typeof e=="string",[m,y]=B.useState("".padEnd(t," ")),b=B.useMemo(()=>(h?gf(e):m).slice(0,t).padEnd(t," "),[h,e,m,t]),v=B.useRef([]);B.useEffect(()=>{a&&v.current[0]&&(v.current[0].focus(),v.current[0].select())},[a]);const w=B.useMemo(()=>b.replace(/ /g,""),[b]),E=w.length===t;B.useEffect(()=>{n==null||n(w),E&&(i==null||i(w))},[w,E,n,i]);const C=(q,M)=>{const P=b.split("");P[q]=M||" ";const K=P.join("");h?n==null||n(K.replace(/ /g,"")):y(K)},_=q=>{const M=v.current[q];M&&(M.focus(),M.select())},L=(q,M)=>{var ft;if(l)return;const P=M.target.value,K=gf(P);if(K.length===0){C(q," ");return}const nt=K.slice(0,t-q).split("");for(let at=0;at<nt.length;at++)C(q+at,nt[at]);const st=Math.min(q+nt.length,t-1);_(st),q+nt.length>=t&&((ft=v.current[t-1])==null||ft.blur())},R=(q,M)=>{var K;if(l)return;const P=M.key;if(P==="Backspace"){M.preventDefault(),b[q]!==" "?(C(q," "),_(q)):q>0&&(C(q-1," "),_(q-1));return}if(P==="ArrowLeft"&&q>0){M.preventDefault(),_(q-1);return}if(P==="ArrowRight"&&q<t-1){M.preventDefault(),_(q+1);return}if(P.length===1){const nt=gf(P);nt&&(M.preventDefault(),C(q,nt),q<t-1?_(q+1):(K=v.current[q])==null||K.blur())}},U=(q,M)=>{var ft;if(l)return;const P=M.clipboardData.getData("text"),K=gf(P);if(!K)return;M.preventDefault();const nt=K.slice(0,t-q).split("");for(let at=0;at<nt.length;at++)C(q+at,nt[at]);const st=Math.min(q+nt.length-1,t-1);st<t-1?_(st+1):(ft=v.current[st])==null||ft.blur()},G=q=>M=>{v.current[q]=M},z=q=>{q.preventDefault(),!(!E||l)&&(d==null||d(w))};return N.jsxs("form",{onSubmit:z,className:`flex items-center gap-3 ${u}`,children:[N.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:t}).map((q,M)=>N.jsx("input",{ref:G(M),type:"text",inputMode:"numeric",pattern:"\\d*",autoComplete:"one-time-code","aria-label":`Ověřovací kód – znak ${M+1} z ${t}`,className:["h-14 w-12 text-center text-2xl font-semibold","border-primary-600 rounded-2xl border","focus:ring-primary-700 focus:ring-2 focus:ring-offset-1 focus:outline-none","disabled:opacity-50","caret-transparent",f].join(" "),maxLength:1,value:b[M]===" "?"":b[M],onChange:P=>L(M,P),onKeyDown:P=>R(M,P),onPaste:P=>U(M,P),disabled:l},M))}),E&&N.jsx("button",{type:"submit",className:"bg-primary-600 hover:bg-primary-500 h-12 cursor-pointer rounded-xl border border-transparent px-4 font-medium text-white transition disabled:opacity-50",disabled:l,children:N.jsx(Aa,{className:"h-5 w-5"})})]})},MH=({type:t,onSubmit:e})=>N.jsx(mf,{role:sr.ASSISTANT,hideAvatar:!0,children:t==="verificationCode"&&N.jsx(DH,{onSubmit:e})}),NH=({createdAt:t})=>{const{t:e}=br();return N.jsx(mf,{role:sr.ASSISTANT,createdAt:t,children:N.jsxs("div",{className:"flex min-w-[300px] flex-col items-center justify-center gap-2 rounded-3xl border border-solid border-gray-400 p-4 text-center",children:[N.jsx("div",{className:"rounded-full bg-green-300 p-2",children:N.jsx(iq,{className:"w-5"})}),N.jsxs("div",{className:"flex flex-col gap-1",children:[N.jsx("h2",{className:"font-medium",children:e("contactSavedWidget.title")}),N.jsx("p",{className:"text-xs font-semibold text-gray-400",children:e("contactSavedWidget.subtitle")})]})]})})},SC={chatMessage:{maxLength:300}},LH=({onSubmit:t,isLoading:e,input:n,onInputChange:i,onStop:a,autoFocus:l})=>{const{t:u}=br(),f=d=>{d.preventDefault(),!e&&t(d)};return N.jsxs("div",{children:[N.jsxs("form",{className:"relative flex h-fit items-center justify-between gap-2 rounded-full border border-solid border-gray-300 bg-white px-5 py-[13px] pr-[12px]",onSubmit:f,children:[N.jsx("input",{className:"w-full resize-none overflow-y-auto transition placeholder:text-gray-400 focus:outline-none",placeholder:u("chatMessageInputForm.placeholder"),value:n,onChange:i,autoFocus:l}),e?N.jsx(Ia,{icon:N.jsx(m3,{}),variant:"plain",type:"button",onClick:d=>{d.preventDefault(),a==null||a()},size:"xs",color:"neutral"}):N.jsx(Ia,{icon:N.jsx(Aa,{}),variant:"plain",type:"submit",size:"xs",color:"neutral"})]}),N.jsx("div",{className:"mt-2 mr-2 flex justify-end",children:N.jsxs("span",{className:ge("text-xs",n.length>SC.chatMessage.maxLength&&"text-red-600"),children:[n.length,"/",SC.chatMessage.maxLength]})})]})},jH=({onReload:t,isReloadPending:e})=>{const{t:n}=br();return N.jsx("div",{className:"absolute flex h-full w-full items-center justify-center bg-[#ffffffef]",children:N.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 text-center",children:[N.jsx(aS,{className:"text-primary-600 w-24 stroke-[1]"}),N.jsx("div",{className:"text-primary-600 text-lg font-bold",children:n("errors.general.title")}),N.jsx("div",{className:"text-primary-600 text-md max-w-[190px]",children:n("errors.general.description")}),N.jsx(Pc,{variant:"light",className:"mt-4",onClick:t,loading:e,children:n("errors.general.buttonReload")})]})})},zH=({mode:t})=>{const{data:e,error:n,isLoading:i}=Bw(),a=ml(P=>P.setSession),l=fa(),[u,f]=B.useState(""),{fireEvent:d}=gl(),{mutate:h,isPending:m}=fz(),{data:y}=dz(),{mutate:b,isPending:v,error:w}=hz(),E=(e==null?void 0:e.messages)??[],C=!!(e!=null&&e.closedAt),_=v||m,L=_,R=P=>P instanceof il&&P.status===410,U=n&&!R(n)||w&&!R(w),G=()=>{a(void 0),l.invalidateQueries({queryKey:[]})},z=P=>{C||(E.length===1&&t===Ar.PAGE&&d("fe.chat.page.first-message-sent"),b({message:P}))},q=P=>{P.preventDefault(),!C&&(z(u),d("fe.chat.message.sent"),f(""))},M=B.useCallback(P=>{C||(h({messageTemplateId:P.id,content:P.content}),d("fe.chat.message-template.sent",{messageTemplate:P}))},[h,d,C]);return{messages:E,onNewChat:G,isSubmittingMessage:_,isError:U,isChatLoading:i,isSessionClosed:C,chatSession:e,handleSubmit:q,input:u,setInput:f,sendMessageTemplate:M,unusedMessageTemplates:y,sendMessage:z,isLoadingMessage:L}},EC=["typingIndicator.a","typingIndicator.b","typingIndicator.c","typingIndicator.d"],BH=["0ms","150ms","300ms"],UH=1e3,IH=3e3,PH=(t,e)=>{let n=t;for(;n===t;)n=Math.floor(Math.random()*e);return n},qH=({className:t})=>{const{t:e}=br(),n=B.useMemo(()=>EC,[]),[i,a]=B.useState(()=>Math.floor(Math.random()*EC.length)),[l,u]=B.useState(!1);return B.useEffect(()=>{const f=setTimeout(()=>u(!0),UH);return()=>clearTimeout(f)},[]),B.useEffect(()=>{if(!l)return;const f=setInterval(()=>{a(d=>PH(d,n.length))},IH);return()=>clearInterval(f)},[l,n.length]),N.jsxs("div",{className:"flex items-center",children:[N.jsx(bl,{size:"xs"}),N.jsx("div",{className:ge("typing-indicator flex w-fit items-center gap-1 p-4",t),children:BH.map(f=>N.jsx("span",{className:"typing-dot",style:{animationDelay:f}},f))}),l&&N.jsx("div",{className:"relative h-5 overflow-hidden",children:N.jsx(Rl,{mode:"wait",children:N.jsx(Hn.span,{initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35,ease:"easeOut"},className:"block text-sm whitespace-nowrap text-gray-500",children:e(n[i])},n[i])})})]})},FH=({options:t,onClick:e,size:n="md"})=>{const i="message-template  border-primary-600 text-primary-600 hover:bg-primary-100 cursor-pointer rounded-lg border bg-white transition",a=n==="sm"?"p-0.5 px-1.5 text-sm":"p-1 px-2 text-left font-medium";return N.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t==null?void 0:t.map(l=>N.jsx("button",{className:`${i} ${a}`,onClick:()=>e==null?void 0:e(l),children:l},l))})};var Ar=(t=>(t.BUBBLE="BUBBLE",t.PAGE="PAGE",t.FULLSCREEN="FULLSCREEN",t))(Ar||{});const TC=B.forwardRef(({mode:t="BUBBLE",showContextMenuButton:e=!0,onClose:n,initiallySelectedMessageTemplate:i,clearInitMessageTemplateSelect:a,initUserTextMessage:l,clearInitUserTextMessage:u,setMode:f,showStartChatButton:d,hideHeader:h,hideLogo:m,autoFocusInput:y,scrollToTop:b,className:v},w)=>{const E=CH(),{t:C}=br(),{data:_}=wr(),L=B.useRef(null),{messages:R,onNewChat:U,isSubmittingMessage:G,isError:z,isChatLoading:q,input:M,handleSubmit:P,sendMessageTemplate:K,unusedMessageTemplates:nt,sendMessage:st,setInput:ft,isLoadingMessage:at,isSessionClosed:it,chatSession:Q}=zH({mode:t}),Y=()=>{var J;(J=L==null?void 0:L.current)==null||J.scrollTo({top:0,behavior:"smooth"})};B.useEffect(()=>{i&&!q&&(K(i),a==null||a())},[i,q,K,a]),B.useEffect(()=>{l&&!q&&(st(l),u==null||u())},[l,q,st,u]);const F=B.useRef(!1),gt=()=>{const J=L.current;J&&(J.scrollTop=-J.scrollHeight)};B.useEffect(()=>{if(b&&!F.current&&R.length>0){F.current=!0,gt(),setTimeout(gt,400);return}Y(),setTimeout(Y,400)},[R.length,b]);const O=B.useMemo(()=>{const J=R[R.length-1];return J?J.messageBlocks.some(ot=>ot.type==="OPTIONS_SELECT"||ot.type==="CODE_INPUT"||ot.type==="MESSAGE_TEMPLATE"):!1},[R]),xt=B.useRef(!1);G||(xt.current=O);const D=(_==null?void 0:_.chatbotMode)===sl.FLOW_ONLY&&(O||G&&xt.current),T=B.useMemo(()=>{if(!(Q!=null&&Q.showMessageTemplates))return!0;const J=R[R.length-1];return J?J.messageBlocks.some(ot=>ot.type==="OPTIONS_SELECT"||ot.type==="CODE_INPUT"||ot.type==="MESSAGE_TEMPLATE"):!1},[R,Q]);return N.jsxs("div",{ref:w,className:ge("flex w-full flex-col justify-between overflow-hidden bg-gray-100",t==="BUBBLE"&&"chat-shadow mr-4 mb-4 h-[75vh] w-[440px] rounded-3xl",t==="PAGE"&&"bg-transparent",t==="FULLSCREEN"&&"z-[100001] h-[100dvh] w-screen",v),children:[!h&&t!=="PAGE"&&N.jsxs("div",{children:[N.jsx(EH,{onClose:()=>{n==null||n()},onNewChat:U,hideClose:!n,hideContextMenuButton:!e,mode:t}),!E&&N.jsx(_H,{message:C("errors.offline")})]}),N.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden",children:[t==="PAGE"&&N.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-8 bg-gradient-to-b from-slate-50 to-transparent"}),N.jsx("div",{className:"scroll-hidden flex flex-1 grow flex-col-reverse overflow-hidden overflow-y-auto px-5 py-4 will-change-transform",ref:L,children:N.jsxs("div",{className:"flex grow flex-col gap-3",children:[R.map((J,ot)=>{const vt=[...J.messageBlocks].sort((wt,Gt)=>wt.order-Gt.order),dt=ot===R.length-1;return N.jsx(Zo.Fragment,{children:vt.map((wt,Gt)=>{var qt,Ve,yn;if(wt.type==="TEXT")return N.jsx(OH,{role:J.role,content:wt.content.text},`${ot}-${Gt}`);if(wt.type==="OPTIONS_SELECT"&&dt){const We=wt.content;return N.jsx(kH,{options:We.options.map(bn=>({label:bn.label,value:bn.value,emoji:bn.emoji})),isMultiSelect:We.multiSelect??!1,onClick:bn=>{const Kn=Array.isArray(bn)?bn:[bn];st(Kn.map(Ii=>Ii.label).join(", "))}},`${ot}-${Gt}`)}if(wt.type==="CODE_INPUT"&&dt){const We=wt.content;return N.jsx(MH,{type:We.inputType,onSubmit:bn=>st(bn)},`${ot}-${Gt}`)}if(wt.type==="CONTACT_SAVED_INFOBOX"){const We=wt.content;return N.jsx(NH,{fullName:(qt=We.contactInfo)==null?void 0:qt.fullName,email:(Ve=We.contactInfo)==null?void 0:Ve.email,phoneNumber:(yn=We.contactInfo)==null?void 0:yn.phoneNumber},`${ot}-${Gt}`)}if(wt.type==="MESSAGE_TEMPLATE"&&dt){const We=wt.content;return N.jsx(FH,{options:We.options,onClick:st},`${ot}-${Gt}`)}return null})},ot)}),at&&N.jsx(qH,{}),!at&&nt&&!G&&!T&&!it&&(_==null?void 0:_.chatbotMode)!==sl.FLOW_ONLY&&N.jsx(WE,{messageTemplates:nt,onClick:K})]})}),N.jsxs("div",{className:"flex flex-col p-4 px-4",children:[t==="PAGE"&&!it&&N.jsxs("button",{onClick:U,className:"mb-1 flex w-fit cursor-pointer items-center gap-1 text-[11px] text-gray-400 hover:text-gray-600",children:[N.jsx(f3,{className:"h-3 w-3"}),C("headerDropdown.reloadChat")]}),d&&N.jsx(Pc,{iconRight:N.jsx(Aa,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:()=>f==null?void 0:f("FULLSCREEN"),children:C("startChatButton")}),!d&&!it&&!D&&N.jsx(LH,{onSubmit:J=>{P(J)},input:M,onInputChange:J=>ft(J.target.value),isLoading:G,autoFocus:y}),it&&N.jsx("div",{className:"mb-1 flex items-center justify-center rounded-full border border-gray-300 bg-white px-5 py-[13px] text-sm text-gray-400",children:C("chatSessionClosed")}),!m&&!(_!=null&&_.chatbotHideLogo)&&N.jsx(TH,{className:it?"mt-0":"-mt-3"})]}),z&&N.jsx(jH,{onReload:U,isReloadPending:q})]})]})}),Kl={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},yf=["xs","sm","md","lg","xl","2xl"];function CC(t){return t>=Kl["2xl"]?"2xl":t>=Kl.xl?"xl":t>=Kl.lg?"lg":t>=Kl.md?"md":t>=Kl.sm?"sm":"xs"}function VH(){const[t,e]=B.useState(()=>CC(window.innerWidth));return B.useEffect(()=>{const a=()=>{e(CC(window.innerWidth))};return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),{breakpoint:t,isAtOrAbove:a=>yf.indexOf(t)>=yf.indexOf(a),isBelow:a=>yf.indexOf(t)<yf.indexOf(a)}}const HH=({onClick:t,buttons:e})=>N.jsx("div",{className:"flex gap-2 px-1",children:e==null?void 0:e.map(n=>N.jsxs("button",{className:"action-button border-primary-500 text-primary-600 hover:bg-primary-500 flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 rounded-xl border-1 bg-white p-2 shadow transition hover:text-white",onClick:()=>t==null?void 0:t(n),children:[N.jsx("span",{className:"flex flex-col text-3xl",children:n.icon}),N.jsx("div",{className:"font-semibold",children:n.label})]},n.label))}),GH=({isOpen:t,onClose:e,onChatStart:n,onActionButtonSelect:i})=>{var u,f;const{data:a}=Pw(),{t:l}=br();return N.jsx(Rl,{children:t&&N.jsxs(Hn.div,{initial:{opacity:0,y:30,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:30,scale:.95},transition:{duration:.3,ease:"easeOut"},className:"chat-welcome-message-notification bg-primary-50 fixed right-4 bottom-22 z-[100010] flex max-w-[320px] flex-col gap-2 rounded-2xl p-5 px-4 shadow-xl select-none",children:[N.jsxs("div",{className:"flex justify-between",children:[N.jsx("span",{className:"chat-welcome-message-notification-header -mr-6 text-center text-[17px] font-bold",children:(u=a==null?void 0:a.notificationSettings)==null?void 0:u.notificationHeading}),N.jsx(Ia,{onClick:e,icon:N.jsx(Nm,{}),variant:"plain",color:"neutral",size:"small"})]}),N.jsxs("div",{className:"overflow-hidden rounded-xl bg-white",children:[(a==null?void 0:a.productImageUrl)&&N.jsx("img",{src:a==null?void 0:a.productImageUrl,className:"h-36 w-full object-cover"}),N.jsx("div",{className:"chat-welcome-message-notification-header p-4 text-center font-bold",children:a==null?void 0:a.name})]}),N.jsx(HH,{buttons:(f=a==null?void 0:a.notificationSettings)==null?void 0:f.buttons,onClick:i,size:"sm"}),N.jsx(Pc,{iconRight:N.jsx(Aa,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:n,children:l("startChatButton")})]},"chat-welcome")})},YH={hidden:{opacity:0,y:200},visible:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:20,transition:{duration:.2}}},KH=()=>{const{isBelow:t}=VH(),{onChatStateChange:e,chatState:n,onInitMessageTemplateSelect:i,selectedInitMessageTemplate:a,clearInitMessageTemplateSelect:l,onProductNotificationButtonSelect:u,onWelcomeMessageActionButtonSelect:f,initUserTextMessage:d,clearInitUserMessage:h}=Sz();return N.jsxs(N.Fragment,{children:[N.jsx(yH,{isOpen:n===In.WELCOME_NOTIFICATION,onClose:()=>e(In.CHAT_CLOSED),onMessageTemplateSelect:i,onChatStart:()=>e(In.CHAT_OPENED),onActionButtonSelect:f}),N.jsx(GH,{isOpen:n===In.PRODUCT_DETAIL_NOTIFICATION,onClose:()=>e(In.CHAT_CLOSED),onChatStart:()=>e(In.CHAT_OPENED),onActionButtonSelect:u}),N.jsxs(Rl,{mode:"wait",initial:!1,children:[n!==In.CHAT_OPENED&&N.jsx(xH,{onClick:()=>e(In.CHAT_OPENED),hideTitle:n!==In.CHAT_CLOSED},"thumbnail"),n===In.CHAT_OPENED&&N.jsx(Hn.div,{initial:"hidden",animate:"visible",exit:"exit",variants:YH,className:"fixed right-0 bottom-0 z-[100000]",children:N.jsx(TC,{onClose:()=>e(In.CHAT_CLOSED),initiallySelectedMessageTemplate:a,clearInitMessageTemplateSelect:l,initUserTextMessage:d,clearInitUserTextMessage:h,mode:t("md")?Ar.FULLSCREEN:Ar.BUBBLE},"chat")})]})]})};var $H=Q0();const XH=350,QH=()=>{const[t,e]=B.useState(Ar.PAGE),[n,i]=B.useState(!1),a=B.useRef(null);return B.useEffect(()=>{if(!a.current)return;const l=a.current,u=d=>{i(d<XH&&t===Ar.PAGE)},f=new ResizeObserver(d=>{for(const h of d)u(h.contentRect.width)});return u(l.offsetWidth),f.observe(l),()=>f.disconnect()},[t]),N.jsx(TC,{ref:a,mode:t,showStartChatButton:n,showContextMenuButton:!n,setMode:e,onClose:t===Ar.PAGE?void 0:()=>e(Ar.PAGE),className:t===Ar.FULLSCREEN?"fixed right-0 bottom-0":void 0})},ZH=({children:t})=>{const{data:e}=Bw();return e?t:null};function JH({tenantCode:t,externalMountEl:e,containerOnly:n}){return N.jsx(iz,{children:N.jsx(gz,{tenantCode:t,children:N.jsx(tD,{client:wN,children:N.jsx(mz,{children:N.jsxs(ZH,{children:[!n&&N.jsx(KH,{}),e?$H.createPortal(N.jsx(QH,{}),e):null]})})})})})}const yg='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-50:oklch(98.4% .003 247.858);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-2xl:42rem;--text-xs:12px;--text-xs--line-height:calc(1/.75);--text-sm:14px;--text-sm--line-height:calc(1.25/.875);--text-lg:18px;--text-lg--line-height:calc(1.75/1.125);--text-xl:20px;--text-xl--line-height:calc(1.75/1.25);--text-2xl:24px;--text-2xl--line-height:calc(2/1.5);--text-3xl:30px;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-50:#f0f7ff;--color-primary-100:#e0eefe;--color-primary-200:#b9ddfe;--color-primary-300:#7cc3fd;--color-primary-400:#36a5fa;--color-primary-500:#0c8aeb;--color-primary-600:#006cca;--color-primary-700:#0155a3;--spacing-0:0px;--spacing-0\\.5:2px;--spacing-1:4px;--spacing-1\\.5:6px;--spacing-2:8px;--spacing-3:12px;--spacing-3\\.5:14px;--spacing-4:16px;--spacing-5:20px;--spacing-6:24px;--spacing-7:28px;--spacing-8:32px;--spacing-9:36px;--spacing-10:40px;--spacing-11:44px;--spacing-12:48px;--spacing-14:56px;--spacing-15:60px;--spacing-16:64px;--spacing-24:96px;--spacing-36:144px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.-inset-1\\.5{inset:calc(var(--spacing-1\\.5)*-1)}.inset-0{inset:var(--spacing-0)}.inset-x-0{inset-inline:var(--spacing-0)}.start-50{inset-inline-start:calc(var(--spacing)*50)}.top-0{top:var(--spacing-0)}.top-1{top:var(--spacing-1)}.top-50{top:calc(var(--spacing)*50)}.right-0{right:var(--spacing-0)}.right-4{right:var(--spacing-4)}.right-15{right:var(--spacing-15)}.bottom-0{bottom:var(--spacing-0)}.bottom-2{bottom:var(--spacing-2)}.bottom-4{bottom:var(--spacing-4)}.bottom-11{bottom:var(--spacing-11)}.bottom-22{bottom:calc(var(--spacing)*22)}.left-0{left:var(--spacing-0)}.left-1\\/2{left:50%}.-z-10{z-index:-10}.z-10{z-index:10}.z-50{z-index:50}.z-100000,.z-\\[100000\\]{z-index:100000}.z-\\[100001\\]{z-index:100001}.z-\\[100010\\]{z-index:100010}.col-4{grid-column:4}.col-12{grid-column:12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:var(--spacing-0)}.mx-1{margin-inline:var(--spacing-1)}.mx-2{margin-inline:var(--spacing-2)}.mx-auto{margin-inline:auto}.ms-1{margin-inline-start:var(--spacing-1)}.ms-2{margin-inline-start:var(--spacing-2)}.ms-3{margin-inline-start:var(--spacing-3)}.ms-4{margin-inline-start:var(--spacing-4)}.ms-auto{margin-inline-start:auto}.me-0{margin-inline-end:var(--spacing-0)}.me-2{margin-inline-end:var(--spacing-2)}.me-3{margin-inline-end:var(--spacing-3)}.me-4{margin-inline-end:var(--spacing-4)}.-mt-3{margin-top:calc(var(--spacing-3)*-1)}.mt-0{margin-top:var(--spacing-0)}.mt-1{margin-top:var(--spacing-1)}.mt-2{margin-top:var(--spacing-2)}.mt-4{margin-top:var(--spacing-4)}.mt-5{margin-top:var(--spacing-5)}.mt-6{margin-top:var(--spacing-6)}.-mr-6{margin-right:calc(var(--spacing-6)*-1)}.mr-2{margin-right:var(--spacing-2)}.mr-4{margin-right:var(--spacing-4)}.mb-0{margin-bottom:var(--spacing-0)}.mb-1{margin-bottom:var(--spacing-1)}.mb-2{margin-bottom:var(--spacing-2)}.mb-3{margin-bottom:var(--spacing-3)}.mb-4{margin-bottom:var(--spacing-4)}.mb-5{margin-bottom:var(--spacing-5)}.mb-6{margin-bottom:var(--spacing-6)}.ml-10{margin-left:var(--spacing-10)}.ml-auto{margin-left:auto}.\\!grid{display:grid!important}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.size-4{width:var(--spacing-4);height:var(--spacing-4)}.h-3{height:var(--spacing-3)}.h-3\\.5{height:var(--spacing-3\\.5)}.h-4{height:var(--spacing-4)}.h-5{height:var(--spacing-5)}.h-6{height:var(--spacing-6)}.h-7{height:var(--spacing-7)}.h-8{height:var(--spacing-8)}.h-9{height:var(--spacing-9)}.h-10{height:var(--spacing-10)}.h-11{height:var(--spacing-11)}.h-12{height:var(--spacing-12)}.h-14{height:var(--spacing-14)}.h-15{height:var(--spacing-15)}.h-16{height:var(--spacing-16)}.h-24{height:var(--spacing-24)}.h-36{height:var(--spacing-36)}.h-100{height:calc(var(--spacing)*100)}.h-\\[75vh\\]{height:75vh}.h-\\[100dvh\\],.h-dvh{height:100dvh}.h-fit{height:fit-content}.h-full{height:100%}.max-h-\\[150px\\]{max-height:150px}.min-h-0{min-height:var(--spacing-0)}.min-h-11{min-height:var(--spacing-11)}.min-h-screen{min-height:100vh}.w-1{width:var(--spacing-1)}.w-3{width:var(--spacing-3)}.w-3\\.5{width:var(--spacing-3\\.5)}.w-4{width:var(--spacing-4)}.w-5{width:var(--spacing-5)}.w-6{width:var(--spacing-6)}.w-7{width:var(--spacing-7)}.w-8{width:var(--spacing-8)}.w-9{width:var(--spacing-9)}.w-10{width:var(--spacing-10)}.w-11{width:var(--spacing-11)}.w-12{width:var(--spacing-12)}.w-15{width:var(--spacing-15)}.w-16{width:var(--spacing-16)}.w-24{width:var(--spacing-24)}.w-46{width:calc(var(--spacing)*46)}.w-100{width:calc(var(--spacing)*100)}.w-\\[90\\%\\]{width:90%}.w-\\[440px\\]{width:440px}.w-fit{width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[190px\\]{max-width:190px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[320px\\]{max-width:320px}.max-w-\\[600px\\]{max-width:600px}.max-w-md{max-width:var(--container-md)}.min-w-\\[300px\\]{min-width:300px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.shrink-1{flex-shrink:1}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-1{--tw-translate-x:var(--spacing-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-6{--tw-translate-x:var(--spacing-6);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing-1)}.gap-1\\.5{gap:var(--spacing-1\\.5)}.gap-2{gap:var(--spacing-2)}.gap-3{gap:var(--spacing-3)}.gap-4{gap:var(--spacing-4)}.\\!overflow-visible{overflow:visible!important}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-tl-none{border-top-left-radius:0}.rounded-br-3xl{border-bottom-right-radius:var(--radius-3xl)}.rounded-br-none{border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-1{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-5{border-style:var(--tw-border-style);border-width:5px}.border-solid{--tw-border-style:solid;border-style:solid}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab,red,red)){.border-gray-200\\/80{border-color:color-mix(in oklab,var(--color-gray-200)80%,transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-green-500{border-color:var(--color-green-500)}.border-neutral-500{border-color:var(--color-neutral-500)}.border-primary-500{border-color:var(--color-primary-500)}.border-primary-600{border-color:var(--color-primary-600)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.bg-\\[\\#E7E7E7\\]{background-color:#e7e7e7}.bg-\\[\\#ffffffef\\]{background-color:#ffffffef}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-300{background-color:var(--color-green-300)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-500{background-color:var(--color-neutral-500)}.bg-primary-50{background-color:var(--color-primary-50)}.bg-primary-100{background-color:var(--color-primary-100)}.bg-primary-200\\/60{background-color:#b9ddfe99}@supports (color:color-mix(in lab,red,red)){.bg-primary-200\\/60{background-color:color-mix(in oklab,var(--color-primary-200)60%,transparent)}}.bg-primary-400{background-color:var(--color-primary-400)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-600{background-color:var(--color-primary-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-white\\/60{background-color:color-mix(in oklab,var(--color-white)60%,transparent)}}.bg-white\\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/70{background-color:color-mix(in oklab,var(--color-white)70%,transparent)}}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-primary-50{--tw-gradient-from:var(--color-primary-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-slate-50{--tw-gradient-from:var(--color-slate-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-\\[1\\]{stroke-width:1px}.stroke-\\[3\\]{stroke-width:3px}.object-cover{object-fit:cover}.p-0{padding:var(--spacing-0)}.p-0\\.5{padding:var(--spacing-0\\.5)}.p-1{padding:var(--spacing-1)}.p-2{padding:var(--spacing-2)}.p-3{padding:var(--spacing-3)}.p-4{padding:var(--spacing-4)}.p-5{padding:var(--spacing-5)}.px-0{padding-inline:var(--spacing-0)}.px-1{padding-inline:var(--spacing-1)}.px-1\\.5{padding-inline:var(--spacing-1\\.5)}.px-2{padding-inline:var(--spacing-2)}.px-3{padding-inline:var(--spacing-3)}.px-3\\.5{padding-inline:var(--spacing-3\\.5)}.px-4{padding-inline:var(--spacing-4)}.px-5{padding-inline:var(--spacing-5)}.px-6{padding-inline:var(--spacing-6)}.py-1{padding-block:var(--spacing-1)}.py-1\\.5{padding-block:var(--spacing-1\\.5)}.py-2{padding-block:var(--spacing-2)}.py-3{padding-block:var(--spacing-3)}.py-4{padding-block:var(--spacing-4)}.py-5{padding-block:var(--spacing-5)}.py-\\[13px\\]{padding-block:13px}.ps-3{padding-inline-start:var(--spacing-3)}.pe-3{padding-inline-end:var(--spacing-3)}.pt-0{padding-top:var(--spacing-0)}.pt-2{padding-top:var(--spacing-2)}.pt-3{padding-top:var(--spacing-3)}.pt-4{padding-top:var(--spacing-4)}.pt-5{padding-top:var(--spacing-5)}.pt-6{padding-top:var(--spacing-6)}.pt-8{padding-top:var(--spacing-8)}.pr-2{padding-right:var(--spacing-2)}.pr-3{padding-right:var(--spacing-3)}.pr-\\[12px\\]{padding-right:12px}.\\!pb-6{padding-bottom:var(--spacing-6)!important}.pb-1{padding-bottom:var(--spacing-1)}.pb-2{padding-bottom:var(--spacing-2)}.pb-5{padding-bottom:var(--spacing-5)}.pb-6{padding-bottom:var(--spacing-6)}.pl-1\\.5{padding-left:var(--spacing-1\\.5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.text-\\[15px\\]{font-size:15px}.text-\\[17px\\]{font-size:17px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab,red,red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-blue-600{color:var(--color-blue-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-700{color:var(--color-neutral-700)}.text-primary-400{color:var(--color-primary-400)}.text-primary-500{color:var(--color-primary-500)}.text-primary-600{color:var(--color-primary-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.caret-transparent{caret-color:#0000}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-gray-100\\/50{--tw-shadow-color:#f3f4f680}@supports (color:color-mix(in lab,red,red)){.shadow-gray-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-gray-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-gray-500\\/50{--tw-shadow-color:#6a728280}@supports (color:color-mix(in lab,red,red)){.shadow-gray-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-gray-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-green-100\\/50{--tw-shadow-color:#dcfce780}@supports (color:color-mix(in lab,red,red)){.shadow-green-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-green-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-green-500\\/50{--tw-shadow-color:#00c75880}@supports (color:color-mix(in lab,red,red)){.shadow-green-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-green-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-neutral-200\\/50{--tw-shadow-color:#e5e5e580}@supports (color:color-mix(in lab,red,red)){.shadow-neutral-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-neutral-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-neutral-500\\/50{--tw-shadow-color:#73737380}@supports (color:color-mix(in lab,red,red)){.shadow-neutral-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-neutral-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-primary-100\\/50{--tw-shadow-color:#e0eefe80}@supports (color:color-mix(in lab,red,red)){.shadow-primary-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-primary-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-primary-500\\/50{--tw-shadow-color:#0c8aeb80}@supports (color:color-mix(in lab,red,red)){.shadow-primary-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-primary-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-red-100\\/50{--tw-shadow-color:#ffe2e280}@supports (color:color-mix(in lab,red,red)){.shadow-red-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-red-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-red-500\\/50{--tw-shadow-color:#fb2c3680}@supports (color:color-mix(in lab,red,red)){.shadow-red-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-red-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.blur-md{--tw-blur:blur(var(--blur-md));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:inline:is(:where(.group):hover *){display:inline}.group-hover\\:bg-primary-100:is(:where(.group):hover *){background-color:var(--color-primary-100)}.group-hover\\:text-gray-900:is(:where(.group):hover *){color:var(--color-gray-900)}}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}@media(hover:hover){.hover\\:-translate-y-0\\.5:hover{--tw-translate-y:calc(var(--spacing-0\\.5)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\\:scale-\\[1\\.1\\]:hover{scale:1.1}.hover\\:border-primary-300:hover{border-color:var(--color-primary-300)}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:bg-green-100:hover{background-color:var(--color-green-100)}.hover\\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\\:bg-neutral-600:hover{background-color:var(--color-neutral-600)}.hover\\:bg-primary-100:hover{background-color:var(--color-primary-100)}.hover\\:bg-primary-200:hover{background-color:var(--color-primary-200)}.hover\\:bg-primary-400:hover{background-color:var(--color-primary-400)}.hover\\:bg-primary-500:hover{background-color:var(--color-primary-500)}.hover\\:bg-primary-600:hover{background-color:var(--color-primary-600)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:bg-yellow-100:hover{background-color:var(--color-yellow-100)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-primary-600:hover{color:var(--color-primary-600)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-primary-700:focus{--tw-ring-color:var(--color-primary-700)}.focus\\:ring-offset-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-\\[0\\.97\\]:active{scale:.97}.active\\:scale-\\[0\\.99\\]:active{scale:.99}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:mx-0{margin-inline:var(--spacing-0)}.sm\\:block{display:block}.sm\\:h-16{height:var(--spacing-16)}.sm\\:px-4{padding-inline:var(--spacing-4)}.sm\\:py-2{padding-block:var(--spacing-2)}.sm\\:py-4{padding-block:var(--spacing-4)}.sm\\:py-6{padding-block:var(--spacing-6)}.sm\\:pt-6{padding-top:var(--spacing-6)}.sm\\:pt-10{padding-top:var(--spacing-10)}.sm\\:pb-4{padding-bottom:var(--spacing-4)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}}.shadow-reset{color:#1f2937;font-variant:normal;letter-spacing:normal;word-spacing:normal;text-align:left;text-indent:0;text-transform:none;text-shadow:none;white-space:normal;visibility:visible;cursor:default;-moz-tab-size:4;tab-size:4;-webkit-text-size-adjust:100%;direction:ltr;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:1.5}*{font-family:Inter,sans-serif}.scroll-hidden{-ms-overflow-style:none;scrollbar-width:none}.scroll-hidden::-webkit-scrollbar{display:none}.scroll-gutter-stable{scrollbar-gutter:stable both-edges}.scroll-smooth-ios{-webkit-overflow-scrolling:touch}.chat-shadow{box-shadow:0 0 42px -11px #42445a}.chat-header-avatar-shadow{box-shadow:0 2px 7.9px 2px #42445a24}.chat-thumbnail{background-color:var(--chat-thumbnail-bg,var(--color-primary-100));color:var(--chat-thumbnail-text,var(--color-primary-600))}.chat-text-message{background-color:var(--chat-text-message-bg,var(--color-primary-100));color:var(--chat-text-message-text,var(--color-gray-800))}.chat-text-message-user{background-color:var(--chat-text-message-user-bg,#e7e7e7);color:var(--chat-text-message-user-text,var(--color-gray-800))}.typing-dot{height:var(--spacing-1);width:var(--spacing-1);background-color:var(--color-gray-500);background-color:var(--typing-dot,var(--color-gray-500));border-radius:3.40282e38px;animation:.8s ease-in-out infinite typing-dot}.message-template{border-color:var(--message-template-border,var(--color-primary-600));color:var(--message-template-text,var(--color-primary-600))}.message-template:hover{background-color:var(--chat-text-message-bg-hover,var(--color-primary-100));color:var(--message-template-text-hover,var(--color-primary-600))}.action-button{border-color:var(--action-button-border,var(--color-primary-500));background-color:var(--action-button-bg,var(--color-white));color:var(--action-button-text,var(--color-primary-600))}.action-button:hover{background-color:var(--action-button-bg-hover,var(--color-primary-100));color:var(--action-button-text-hover,var(--color-primary-600))}.chat-welcome-message-notification{background-color:var(--chat-welcome-message-notification-bg,var(--color-primary-50));color:var(--chat-welcome-message-notification-text,var(--color-gray-800))}.chat-welcome-message-notification-header{color:var(--chat-welcome-message-notification-header-text,var(--color-primary-600))}.chat-welcome-message-notification-button{background-color:var(--chat-welcome-message-notification-button-bg,var(--color-primary-500));color:var(--chat-welcome-message-notification-button-text,#fff)}.chat-welcome-message-notification-gradient{background-image:linear-gradient(to top,var(--chat-welcome-message-notification-bg,var(--color-primary-50)),transparent)}.chat-welcome-message-notification-slider-button{background-color:var(--chat-welcome-message-notification-slider-button-bg,var(--color-primary-100));color:var(--chat-welcome-message-notification-slider-button,var(--color-primary-600))}.chat-thumbnail-2-button{background-color:var(--chat-thumbnail-2-button-bg,var(--color-primary-600));color:var(--chat-thumbnail-2-text,var(--color-white))}.border,.border-0,.border-1,.border-4,.border-5{--tw-border-style:solid}@keyframes typing-dot{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-6px)}}p:not(:last-child){margin-bottom:.5rem}ul,ol{margin-bottom:.5rem;padding-left:1.25rem}ul{list-style-type:disc}ol{list-style-type:decimal}li{margin-bottom:.25rem}a{text-decoration:underline}.profile-page-gradient{opacity:.3;background:radial-gradient(ellipse at 50% 0%,var(--color-primary-100)0%,transparent 60%)}.profile-links-swiper .swiper-pagination{bottom:0!important}.profile-links-swiper .swiper-pagination-bullet{background:var(--color-primary-300);opacity:.4;width:6px;height:6px;transition:all .2s}.profile-links-swiper .swiper-pagination-bullet-active{opacity:1;background:var(--color-primary-600);border-radius:3px;width:16px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';rz({dsn:"https://0a3c25c0b2fc31d86dc455e092b4b019@o4510499205218304.ingest.de.sentry.io/4510499206332496",sendDefaultPii:!0,beforeSend(t){return(t.tags||{}).embed?t:null}});function WH(t={}){var m;const e="chatbot-widget-container";if(document.getElementById(e))return;const n=document.createElement("div");n.id=e,document.body.appendChild(n);const i=n.attachShadow({mode:"open"}),a=document.createElement("style");a.textContent=yg,i.appendChild(a);const l=document.createElement("div");l.className="shadow-reset",i.appendChild(l);let u=null,f=!1;const d=document.getElementById("bezvabot-container-only")||document.getElementById("bezvabot-container");if(d){f=d.id==="bezvabot-container-only";const y=(m=d.attachShadow)==null?void 0:m.call(d,{mode:"open"});if(y){const b=document.createElement("style");b.textContent=yg,y.appendChild(b);const v=document.createElement("div");v.className="shadow-reset",v.style="max-height:100%; display:flex; height:100%;",y.appendChild(v),u=v}else{const b=document.createElement("style");b.textContent=yg,d.appendChild(b);const v=document.createElement("div");d.appendChild(v),u=v}}VO.createRoot(l).render(N.jsx(JH,{tenantCode:t.tenantCode,externalMountEl:u,containerOnly:f}))}window.ChatbotWidget={init:WH}})();
