@sampleapp.ai/sdk 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chat-bar/typing-textarea.js +144 -0
- package/dist/components/chat-bar/voice-button/voice-icon.js +129 -0
- package/dist/components/chat-bar/voice-button.js +42 -0
- package/dist/components/chat-bar/voice-overlay.js +190 -0
- package/dist/components/chat-bar.js +546 -0
- package/dist/components/ui/button.js +141 -0
- package/dist/components/ui/card.js +77 -0
- package/dist/components/ui/textarea.js +68 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.es.js +6610 -25717
- package/dist/index.js +4 -1
- package/dist/index.umd.js +131 -2
- package/dist/themes.js +189 -0
- package/package.json +5 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function($e,ga){typeof exports=="object"&&typeof module<"u"?ga(exports):typeof define=="function"&&define.amd?define(["exports"],ga):($e=typeof globalThis<"u"?globalThis:$e||self,ga($e.SampleApp={}))})(this,(function($e){"use strict";function ga(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ur={exports:{}},ot={},tf;function ig(){if(tf)return ot;tf=1;/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function A(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,K={};function Z(T,b,O){this.props=T,this.context=b,this.refs=K,this.updater=O||w}Z.prototype.isReactComponent={},Z.prototype.setState=function(T,b){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,b,"setState")},Z.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Q(){}Q.prototype=Z.prototype;function q(T,b,O){this.props=T,this.context=b,this.refs=K,this.updater=O||w}var G=q.prototype=new Q;G.constructor=q,L(G,Z.prototype),G.isPureReactComponent=!0;var I=Array.isArray,Y={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function et(T,b,O,V,H,J){return O=J.ref,{$$typeof:a,type:T,key:b,ref:O!==void 0?O:null,props:J}}function W(T,b){return et(T.type,b,void 0,void 0,void 0,T.props)}function gt(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function St(T){var b={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(O){return b[O]})}var vt=/\/+/g;function xt(T,b){return typeof T=="object"&&T!==null&&T.key!=null?St(""+T.key):b.toString(36)}function Vt(){}function Kt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Vt,Vt):(T.status="pending",T.then(function(b){T.status==="pending"&&(T.status="fulfilled",T.value=b)},function(b){T.status==="pending"&&(T.status="rejected",T.reason=b)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Dt(T,b,O,V,H){var J=typeof T;(J==="undefined"||J==="boolean")&&(T=null);var k=!1;if(T===null)k=!0;else switch(J){case"bigint":case"string":case"number":k=!0;break;case"object":switch(T.$$typeof){case a:case l:k=!0;break;case g:return k=T._init,Dt(k(T._payload),b,O,V,H)}}if(k)return H=H(T),k=V===""?"."+xt(T,0):V,I(H)?(O="",k!=null&&(O=k.replace(vt,"$&/")+"/"),Dt(H,b,O,"",function(bt){return bt})):H!=null&&(gt(H)&&(H=W(H,O+(H.key==null||T&&T.key===H.key?"":(""+H.key).replace(vt,"$&/")+"/")+k)),b.push(H)),1;k=0;var yt=V===""?".":V+":";if(I(T))for(var rt=0;rt<T.length;rt++)V=T[rt],J=yt+xt(V,rt),k+=Dt(V,b,O,J,H);else if(rt=A(T),typeof rt=="function")for(T=rt.call(T),rt=0;!(V=T.next()).done;)V=V.value,J=yt+xt(V,rt++),k+=Dt(V,b,O,J,H);else if(J==="object"){if(typeof T.then=="function")return Dt(Kt(T),b,O,V,H);throw b=String(T),Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.")}return k}function z(T,b,O){if(T==null)return T;var V=[],H=0;return Dt(T,V,"","",function(J){return b.call(O,J,H++)}),V}function j(T){if(T._status===-1){var b=T._result;b=b(),b.then(function(O){(T._status===0||T._status===-1)&&(T._status=1,T._result=O)},function(O){(T._status===0||T._status===-1)&&(T._status=2,T._result=O)}),T._status===-1&&(T._status=0,T._result=b)}if(T._status===1)return T._result.default;throw T._result}var P=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(b))return}console.error(T)};function at(){}return ot.Children={map:z,forEach:function(T,b,O){z(T,function(){b.apply(this,arguments)},O)},count:function(T){var b=0;return z(T,function(){b++}),b},toArray:function(T){return z(T,function(b){return b})||[]},only:function(T){if(!gt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ot.Component=Z,ot.Fragment=r,ot.Profiler=c,ot.PureComponent=q,ot.StrictMode=u,ot.Suspense=m,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ot.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Y.H.useMemoCache(T)}},ot.cache=function(T){return function(){return T.apply(null,arguments)}},ot.cloneElement=function(T,b,O){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var V=L({},T.props),H=T.key,J=void 0;if(b!=null)for(k in b.ref!==void 0&&(J=void 0),b.key!==void 0&&(H=""+b.key),b)!F.call(b,k)||k==="key"||k==="__self"||k==="__source"||k==="ref"&&b.ref===void 0||(V[k]=b[k]);var k=arguments.length-2;if(k===1)V.children=O;else if(1<k){for(var yt=Array(k),rt=0;rt<k;rt++)yt[rt]=arguments[rt+2];V.children=yt}return et(T.type,H,void 0,void 0,J,V)},ot.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},ot.createElement=function(T,b,O){var V,H={},J=null;if(b!=null)for(V in b.key!==void 0&&(J=""+b.key),b)F.call(b,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(H[V]=b[V]);var k=arguments.length-2;if(k===1)H.children=O;else if(1<k){for(var yt=Array(k),rt=0;rt<k;rt++)yt[rt]=arguments[rt+2];H.children=yt}if(T&&T.defaultProps)for(V in k=T.defaultProps,k)H[V]===void 0&&(H[V]=k[V]);return et(T,J,void 0,void 0,null,H)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(T){return{$$typeof:y,render:T}},ot.isValidElement=gt,ot.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:j}},ot.memo=function(T,b){return{$$typeof:p,type:T,compare:b===void 0?null:b}},ot.startTransition=function(T){var b=Y.T,O={};Y.T=O;try{var V=T(),H=Y.S;H!==null&&H(O,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(at,P)}catch(J){P(J)}finally{Y.T=b}},ot.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ot.use=function(T){return Y.H.use(T)},ot.useActionState=function(T,b,O){return Y.H.useActionState(T,b,O)},ot.useCallback=function(T,b){return Y.H.useCallback(T,b)},ot.useContext=function(T){return Y.H.useContext(T)},ot.useDebugValue=function(){},ot.useDeferredValue=function(T,b){return Y.H.useDeferredValue(T,b)},ot.useEffect=function(T,b,O){var V=Y.H;if(typeof O=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return V.useEffect(T,b)},ot.useId=function(){return Y.H.useId()},ot.useImperativeHandle=function(T,b,O){return Y.H.useImperativeHandle(T,b,O)},ot.useInsertionEffect=function(T,b){return Y.H.useInsertionEffect(T,b)},ot.useLayoutEffect=function(T,b){return Y.H.useLayoutEffect(T,b)},ot.useMemo=function(T,b){return Y.H.useMemo(T,b)},ot.useOptimistic=function(T,b){return Y.H.useOptimistic(T,b)},ot.useReducer=function(T,b,O){return Y.H.useReducer(T,b,O)},ot.useRef=function(T){return Y.H.useRef(T)},ot.useState=function(T){return Y.H.useState(T)},ot.useSyncExternalStore=function(T,b,O){return Y.H.useSyncExternalStore(T,b,O)},ot.useTransition=function(){return Y.H.useTransition()},ot.version="19.1.1",ot}var ef;function or(){return ef||(ef=1,ur.exports=ig()),ur.exports}var pt=or();const nf=ga(pt);var cr={exports:{}},mi={},fr={exports:{}},dr={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var af;function lg(){return af||(af=1,(function(a){function l(z,j){var P=z.length;z.push(j);t:for(;0<P;){var at=P-1>>>1,T=z[at];if(0<c(T,j))z[at]=j,z[P]=T,P=at;else break t}}function r(z){return z.length===0?null:z[0]}function u(z){if(z.length===0)return null;var j=z[0],P=z.pop();if(P!==j){z[0]=P;t:for(var at=0,T=z.length,b=T>>>1;at<b;){var O=2*(at+1)-1,V=z[O],H=O+1,J=z[H];if(0>c(V,P))H<T&&0>c(J,V)?(z[at]=J,z[H]=P,at=H):(z[at]=V,z[O]=P,at=O);else if(H<T&&0>c(J,P))z[at]=J,z[H]=P,at=H;else break t}}return j}function c(z,j){var P=z.sortIndex-j.sortIndex;return P!==0?P:z.id-j.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var f=Date,y=f.now();a.unstable_now=function(){return f.now()-y}}var m=[],p=[],g=1,x=null,A=3,w=!1,L=!1,K=!1,Z=!1,Q=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function I(z){for(var j=r(p);j!==null;){if(j.callback===null)u(p);else if(j.startTime<=z)u(p),j.sortIndex=j.expirationTime,l(m,j);else break;j=r(p)}}function Y(z){if(K=!1,I(z),!L)if(r(m)!==null)L=!0,F||(F=!0,xt());else{var j=r(p);j!==null&&Dt(Y,j.startTime-z)}}var F=!1,et=-1,W=5,gt=-1;function St(){return Z?!0:!(a.unstable_now()-gt<W)}function vt(){if(Z=!1,F){var z=a.unstable_now();gt=z;var j=!0;try{t:{L=!1,K&&(K=!1,q(et),et=-1),w=!0;var P=A;try{e:{for(I(z),x=r(m);x!==null&&!(x.expirationTime>z&&St());){var at=x.callback;if(typeof at=="function"){x.callback=null,A=x.priorityLevel;var T=at(x.expirationTime<=z);if(z=a.unstable_now(),typeof T=="function"){x.callback=T,I(z),j=!0;break e}x===r(m)&&u(m),I(z)}else u(m);x=r(m)}if(x!==null)j=!0;else{var b=r(p);b!==null&&Dt(Y,b.startTime-z),j=!1}}break t}finally{x=null,A=P,w=!1}j=void 0}}finally{j?xt():F=!1}}}var xt;if(typeof G=="function")xt=function(){G(vt)};else if(typeof MessageChannel<"u"){var Vt=new MessageChannel,Kt=Vt.port2;Vt.port1.onmessage=vt,xt=function(){Kt.postMessage(null)}}else xt=function(){Q(vt,0)};function Dt(z,j){et=Q(function(){z(a.unstable_now())},j)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(z){z.callback=null},a.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<z?Math.floor(1e3/z):5},a.unstable_getCurrentPriorityLevel=function(){return A},a.unstable_next=function(z){switch(A){case 1:case 2:case 3:var j=3;break;default:j=A}var P=A;A=j;try{return z()}finally{A=P}},a.unstable_requestPaint=function(){Z=!0},a.unstable_runWithPriority=function(z,j){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var P=A;A=z;try{return j()}finally{A=P}},a.unstable_scheduleCallback=function(z,j,P){var at=a.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?at+P:at):P=at,z){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=P+T,z={id:g++,callback:j,priorityLevel:z,startTime:P,expirationTime:T,sortIndex:-1},P>at?(z.sortIndex=P,l(p,z),r(m)===null&&z===r(p)&&(K?(q(et),et=-1):K=!0,Dt(Y,P-at))):(z.sortIndex=T,l(m,z),L||w||(L=!0,F||(F=!0,xt()))),z},a.unstable_shouldYield=St,a.unstable_wrapCallback=function(z){var j=A;return function(){var P=A;A=j;try{return z.apply(this,arguments)}finally{A=P}}}})(dr)),dr}var lf;function sg(){return lf||(lf=1,fr.exports=lg()),fr.exports}var hr={exports:{}},se={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var sf;function rg(){if(sf)return se;sf=1;var a=or();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(m,p,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:m,containerInfo:p,implementation:g}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,se.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return h(m,p,null,g)},se.flushSync=function(m){var p=f.T,g=u.p;try{if(f.T=null,u.p=2,m)return m()}finally{f.T=p,u.p=g,u.d.f()}},se.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(m,p))},se.prefetchDNS=function(m){typeof m=="string"&&u.d.D(m)},se.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,x=y(g,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?u.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:A,fetchPriority:w}):g==="script"&&u.d.X(m,{crossOrigin:x,integrity:A,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},se.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=y(p.as,p.crossOrigin);u.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(m)},se.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,x=y(g,p.crossOrigin);u.d.L(m,g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},se.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=y(p.as,p.crossOrigin);u.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(m)},se.requestFormReset=function(m){u.d.r(m)},se.unstable_batchedUpdates=function(m,p){return m(p)},se.useFormState=function(m,p,g){return f.H.useFormState(m,p,g)},se.useFormStatus=function(){return f.H.useHostTransitionStatus()},se.version="19.1.1",se}var rf;function ug(){if(rf)return hr.exports;rf=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),hr.exports=rg(),hr.exports}var uf;function og(){if(uf)return mi;uf=1;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom-client.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var a=sg(),l=or(),r=ug();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(h(t)!==t)throw Error(u(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,i=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return y(s),t;if(o===i)return y(s),e;o=o.sibling}throw Error(u(188))}if(n.return!==i.return)n=s,i=o;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,i=o;break}if(v===i){d=!0,i=s,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,i=s;break}if(v===i){d=!0,i=o,n=s;break}v=v.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==i)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function p(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=p(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),gt=Symbol.for("react.activity"),St=Symbol.for("react.memo_cache_sentinel"),vt=Symbol.iterator;function xt(t){return t===null||typeof t!="object"?null:(t=vt&&t[vt]||t["@@iterator"],typeof t=="function"?t:null)}var Vt=Symbol.for("react.client.reference");function Kt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Vt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case Z:return"Profiler";case K:return"StrictMode";case Y:return"Suspense";case F:return"SuspenseList";case gt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case G:return(t.displayName||"Context")+".Provider";case q:return(t._context.displayName||"Context")+".Consumer";case I:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return e=t.displayName||null,e!==null?e:Kt(t.type)||"Memo";case W:e=t._payload,t=t._init;try{return Kt(t(e))}catch{}}return null}var Dt=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},at=[],T=-1;function b(t){return{current:t}}function O(t){0>T||(t.current=at[T],at[T]=null,T--)}function V(t,e){T++,at[T]=t.current,t.current=e}var H=b(null),J=b(null),k=b(null),yt=b(null);function rt(t,e){switch(V(k,e),V(J,t),V(H,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?w0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=w0(e),t=z0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}O(H),V(H,t)}function bt(){O(H),O(J),O(k)}function ne(t){t.memoizedState!==null&&V(yt,t);var e=H.current,n=z0(e,t.type);e!==n&&(V(J,t),V(H,n))}function $n(t){J.current===t&&(O(H),O(J)),yt.current===t&&(O(yt),Rl._currentValue=P)}var Hu=Object.prototype.hasOwnProperty,Yu=a.unstable_scheduleCallback,qu=a.unstable_cancelCallback,yx=a.unstable_shouldYield,gx=a.unstable_requestPaint,Qe=a.unstable_now,vx=a.unstable_getCurrentPriorityLevel,dm=a.unstable_ImmediatePriority,hm=a.unstable_UserBlockingPriority,Pl=a.unstable_NormalPriority,bx=a.unstable_LowPriority,mm=a.unstable_IdlePriority,Sx=a.log,xx=a.unstable_setDisableYieldValue,Bi=null,ve=null;function Tn(t){if(typeof Sx=="function"&&xx(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(Bi,t)}catch{}}var be=Math.clz32?Math.clz32:Ex,Tx=Math.log,Ax=Math.LN2;function Ex(t){return t>>>=0,t===0?32:31-(Tx(t)/Ax|0)|0}var Jl=256,Fl=4194304;function In(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Wl(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,o=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var v=i&134217727;return v!==0?(i=v&~o,i!==0?s=In(i):(d&=v,d!==0?s=In(d):n||(n=v&~t,n!==0&&(s=In(n))))):(v=i&~o,v!==0?s=In(v):d!==0?s=In(d):n||(n=i&~t,n!==0&&(s=In(n)))),s===0?0:e!==0&&e!==s&&(e&o)===0&&(o=s&-s,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:s}function Ui(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Mx(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pm(){var t=Jl;return Jl<<=1,(Jl&4194048)===0&&(Jl=256),t}function ym(){var t=Fl;return Fl<<=1,(Fl&62914560)===0&&(Fl=4194304),t}function Gu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ji(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Rx(t,e,n,i,s,o){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,S=t.expirationTimes,D=t.hiddenUpdates;for(n=d&~n;0<n;){var B=31-be(n),N=1<<B;v[B]=0,S[B]=-1;var C=D[B];if(C!==null)for(D[B]=null,B=0;B<C.length;B++){var _=C[B];_!==null&&(_.lane&=-536870913)}n&=~N}i!==0&&gm(t,i,0),o!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=o&~(d&~e))}function gm(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-be(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&4194090}function vm(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-be(n),s=1<<i;s&e|t[i]&e&&(t[i]|=e),n&=~s}}function Xu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ku(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function bm(){var t=j.p;return t!==0?t:(t=window.event,t===void 0?32:$0(t.type))}function Dx(t,e){var n=j.p;try{return j.p=t,e()}finally{j.p=n}}var An=Math.random().toString(36).slice(2),ue="__reactFiber$"+An,he="__reactProps$"+An,Oa="__reactContainer$"+An,Ku="__reactEvents$"+An,Cx="__reactListeners$"+An,Ox="__reactHandles$"+An,Sm="__reactResources$"+An,Ni="__reactMarker$"+An;function Qu(t){delete t[ue],delete t[he],delete t[Ku],delete t[Cx],delete t[Ox]}function _a(t){var e=t[ue];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Oa]||n[ue]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=N0(t);t!==null;){if(n=t[ue])return n;t=N0(t)}return e}t=n,n=t.parentNode}return null}function Va(t){if(t=t[ue]||t[Oa]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Li(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function wa(t){var e=t[Sm];return e||(e=t[Sm]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Ni]=!0}var xm=new Set,Tm={};function ta(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(Tm[t]=e,t=0;t<e.length;t++)xm.add(e[t])}var _x=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]*$"),Am={},Em={};function Vx(t){return Hu.call(Em,t)?!0:Hu.call(Am,t)?!1:_x.test(t)?Em[t]=!0:(Am[t]=!0,!1)}function $l(t,e,n){if(Vx(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Il(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function nn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}var Zu,Mm;function Ba(t){if(Zu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Zu=e&&e[1]||"",Mm=-1<n.stack.indexOf(`
|
|
34
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
+
`+Zu+t+Mm}var Pu=!1;function Ju(t,e){if(!t||Pu)return"";Pu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(_){var C=_}Reflect.construct(t,[],N)}else{try{N.call()}catch(_){C=_}t.call(N.prototype)}}else{try{throw Error()}catch(_){C=_}(N=t())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(_){if(_&&C&&typeof _.stack=="string")return[_.stack,C.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var S=d.split(`
|
|
36
|
+
`),D=v.split(`
|
|
37
|
+
`);for(s=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;s<D.length&&!D[s].includes("DetermineComponentFrameRoot");)s++;if(i===S.length||s===D.length)for(i=S.length-1,s=D.length-1;1<=i&&0<=s&&S[i]!==D[s];)s--;for(;1<=i&&0<=s;i--,s--)if(S[i]!==D[s]){if(i!==1||s!==1)do if(i--,s--,0>s||S[i]!==D[s]){var B=`
|
|
38
|
+
`+S[i].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=i&&0<=s);break}}}finally{Pu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ba(n):""}function wx(t){switch(t.tag){case 26:case 27:case 5:return Ba(t.type);case 16:return Ba("Lazy");case 13:return Ba("Suspense");case 19:return Ba("SuspenseList");case 0:case 15:return Ju(t.type,!1);case 11:return Ju(t.type.render,!1);case 1:return Ju(t.type,!0);case 31:return Ba("Activity");default:return""}}function Rm(t){try{var e="";do e+=wx(t),t=t.return;while(t);return e}catch(n){return`
|
|
39
|
+
Error generating stack: `+n.message+`
|
|
40
|
+
`+n.stack}}function _e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Dm(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function zx(t){var e=Dm(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(d){i=""+d,o.call(this,d)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(d){i=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ts(t){t._valueTracker||(t._valueTracker=zx(t))}function Cm(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Dm(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function es(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Bx=/[\n"\\]/g;function Ve(t){return t.replace(Bx,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Fu(t,e,n,i,s,o,d,v){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+_e(e)):t.value!==""+_e(e)&&(t.value=""+_e(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Wu(t,d,_e(e)):n!=null?Wu(t,d,_e(n)):i!=null&&t.removeAttribute("value"),s==null&&o!=null&&(t.defaultChecked=!!o),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+_e(v):t.removeAttribute("name")}function Om(t,e,n,i,s,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null))return;n=n!=null?""+_e(n):"",e=e!=null?""+_e(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=v?t.checked:!!i,t.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d)}function Wu(t,e,n){e==="number"&&es(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ua(t,e,n,i){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&i&&(t[n].defaultSelected=!0)}else{for(n=""+_e(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,i&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function _m(t,e,n){if(e!=null&&(e=""+_e(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+_e(n):""}function Vm(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(u(92));if(Dt(i)){if(1<i.length)throw Error(u(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=_e(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i)}function ja(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ux=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 wm(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||Ux.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function zm(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var s in e)i=e[s],e.hasOwnProperty(s)&&n[s]!==i&&wm(t,s,i)}else for(var o in e)e.hasOwnProperty(o)&&wm(t,o,e[o])}function $u(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jx=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"]]),Nx=/^[\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 ns(t){return Nx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Iu=null;function to(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Na=null,La=null;function Bm(t){var e=Va(t);if(e&&(t=e.stateNode)){var n=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Fu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ve(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var s=i[he]||null;if(!s)throw Error(u(90));Fu(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Cm(i)}break t;case"textarea":_m(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ua(t,!!n.multiple,e,!1)}}}var eo=!1;function Um(t,e,n){if(eo)return t(e,n);eo=!0;try{var i=t(e);return i}finally{if(eo=!1,(Na!==null||La!==null)&&(qs(),Na&&(e=Na,t=La,La=Na=null,Bm(e),t)))for(e=0;e<t.length;e++)Bm(t[e])}}function Hi(t,e){var n=t.stateNode;if(n===null)return null;var i=n[he]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),no=!1;if(an)try{var Yi={};Object.defineProperty(Yi,"passive",{get:function(){no=!0}}),window.addEventListener("test",Yi,Yi),window.removeEventListener("test",Yi,Yi)}catch{no=!1}var En=null,ao=null,as=null;function jm(){if(as)return as;var t,e=ao,n=e.length,i,s="value"in En?En.value:En.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var d=n-t;for(i=1;i<=d&&e[n-i]===s[o-i];i++);return as=s.slice(t,1<i?1-i:void 0)}function is(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ls(){return!0}function Nm(){return!1}function me(t){function e(n,i,s,o,d){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ls:Nm,this.isPropagationStopped=Nm,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),e}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ss=me(ea),qi=g({},ea,{view:0,detail:0}),Lx=me(qi),io,lo,Gi,rs=g({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ro,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gi&&(Gi&&t.type==="mousemove"?(io=t.screenX-Gi.screenX,lo=t.screenY-Gi.screenY):lo=io=0,Gi=t),io)},movementY:function(t){return"movementY"in t?t.movementY:lo}}),Lm=me(rs),Hx=g({},rs,{dataTransfer:0}),Yx=me(Hx),qx=g({},qi,{relatedTarget:0}),so=me(qx),Gx=g({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),Xx=me(Gx),kx=g({},ea,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kx=me(kx),Qx=g({},ea,{data:0}),Hm=me(Qx),Zx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Px={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"},Jx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Jx[t])?!!e[t]:!1}function ro(){return Fx}var Wx=g({},qi,{key:function(t){if(t.key){var e=Zx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=is(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Px[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ro,charCode:function(t){return t.type==="keypress"?is(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?is(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),$x=me(Wx),Ix=g({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ym=me(Ix),tT=g({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ro}),eT=me(tT),nT=g({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),aT=me(nT),iT=g({},rs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),lT=me(iT),sT=g({},ea,{newState:0,oldState:0}),rT=me(sT),uT=[9,13,27,32],uo=an&&"CompositionEvent"in window,Xi=null;an&&"documentMode"in document&&(Xi=document.documentMode);var oT=an&&"TextEvent"in window&&!Xi,qm=an&&(!uo||Xi&&8<Xi&&11>=Xi),Gm=" ",Xm=!1;function km(t,e){switch(t){case"keyup":return uT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Km(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ha=!1;function cT(t,e){switch(t){case"compositionend":return Km(e);case"keypress":return e.which!==32?null:(Xm=!0,Gm);case"textInput":return t=e.data,t===Gm&&Xm?null:t;default:return null}}function fT(t,e){if(Ha)return t==="compositionend"||!uo&&km(t,e)?(t=jm(),as=ao=En=null,Ha=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return qm&&e.locale!=="ko"?null:e.data;default:return null}}var dT={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 Qm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!dT[t.type]:e==="textarea"}function Zm(t,e,n,i){Na?La?La.push(i):La=[i]:Na=i,e=Zs(e,"onChange"),0<e.length&&(n=new ss("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var ki=null,Ki=null;function hT(t){D0(t,0)}function us(t){var e=Li(t);if(Cm(e))return t}function Pm(t,e){if(t==="change")return e}var Jm=!1;if(an){var oo;if(an){var co="oninput"in document;if(!co){var Fm=document.createElement("div");Fm.setAttribute("oninput","return;"),co=typeof Fm.oninput=="function"}oo=co}else oo=!1;Jm=oo&&(!document.documentMode||9<document.documentMode)}function Wm(){ki&&(ki.detachEvent("onpropertychange",$m),Ki=ki=null)}function $m(t){if(t.propertyName==="value"&&us(Ki)){var e=[];Zm(e,Ki,t,to(t)),Um(hT,e)}}function mT(t,e,n){t==="focusin"?(Wm(),ki=e,Ki=n,ki.attachEvent("onpropertychange",$m)):t==="focusout"&&Wm()}function pT(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return us(Ki)}function yT(t,e){if(t==="click")return us(e)}function gT(t,e){if(t==="input"||t==="change")return us(e)}function vT(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Se=typeof Object.is=="function"?Object.is:vT;function Qi(t,e){if(Se(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!Hu.call(e,s)||!Se(t[s],e[s]))return!1}return!0}function Im(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function tp(t,e){var n=Im(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Im(n)}}function ep(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ep(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function np(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=es(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=es(t.document)}return e}function fo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var bT=an&&"documentMode"in document&&11>=document.documentMode,Ya=null,ho=null,Zi=null,mo=!1;function ap(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mo||Ya==null||Ya!==es(i)||(i=Ya,"selectionStart"in i&&fo(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Zi&&Qi(Zi,i)||(Zi=i,i=Zs(ho,"onSelect"),0<i.length&&(e=new ss("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Ya)))}function na(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var qa={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionrun:na("Transition","TransitionRun"),transitionstart:na("Transition","TransitionStart"),transitioncancel:na("Transition","TransitionCancel"),transitionend:na("Transition","TransitionEnd")},po={},ip={};an&&(ip=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function aa(t){if(po[t])return po[t];if(!qa[t])return t;var e=qa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ip)return po[t]=e[n];return t}var lp=aa("animationend"),sp=aa("animationiteration"),rp=aa("animationstart"),ST=aa("transitionrun"),xT=aa("transitionstart"),TT=aa("transitioncancel"),up=aa("transitionend"),op=new Map,yo="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(" ");yo.push("scrollEnd");function Ye(t,e){op.set(t,e),ta(e,[t])}var cp=new WeakMap;function we(t,e){if(typeof t=="object"&&t!==null){var n=cp.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Rm(e)},cp.set(t,e),e)}return{value:t,source:e,stack:Rm(e)}}var ze=[],Ga=0,go=0;function os(){for(var t=Ga,e=go=Ga=0;e<t;){var n=ze[e];ze[e++]=null;var i=ze[e];ze[e++]=null;var s=ze[e];ze[e++]=null;var o=ze[e];if(ze[e++]=null,i!==null&&s!==null){var d=i.pending;d===null?s.next=s:(s.next=d.next,d.next=s),i.pending=s}o!==0&&fp(n,s,o)}}function cs(t,e,n,i){ze[Ga++]=t,ze[Ga++]=e,ze[Ga++]=n,ze[Ga++]=i,go|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function vo(t,e,n,i){return cs(t,e,n,i),fs(t)}function Xa(t,e){return cs(t,null,null,e),fs(t)}function fp(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var s=!1,o=t.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(s=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,s&&e!==null&&(s=31-be(n),t=o.hiddenUpdates,i=t[s],i===null?t[s]=[e]:i.push(e),e.lane=n|536870912),o):null}function fs(t){if(50<vl)throw vl=0,Ec=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ka={};function AT(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xe(t,e,n,i){return new AT(t,e,n,i)}function bo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ln(t,e){var n=t.alternate;return n===null?(n=xe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function dp(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ds(t,e,n,i,s,o){var d=0;if(i=t,typeof t=="function")bo(t)&&(d=1);else if(typeof t=="string")d=MA(t,n,H.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case gt:return t=xe(31,n,e,s),t.elementType=gt,t.lanes=o,t;case L:return ia(n.children,s,o,e);case K:d=8,s|=24;break;case Z:return t=xe(12,n,e,s|2),t.elementType=Z,t.lanes=o,t;case Y:return t=xe(13,n,e,s),t.elementType=Y,t.lanes=o,t;case F:return t=xe(19,n,e,s),t.elementType=F,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Q:case G:d=10;break t;case q:d=9;break t;case I:d=11;break t;case et:d=14;break t;case W:d=16,i=null;break t}d=29,n=Error(u(130,t===null?"null":typeof t,"")),i=null}return e=xe(d,n,e,s),e.elementType=t,e.type=i,e.lanes=o,e}function ia(t,e,n,i){return t=xe(7,t,i,e),t.lanes=n,t}function So(t,e,n){return t=xe(6,t,null,e),t.lanes=n,t}function xo(t,e,n){return e=xe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ka=[],Qa=0,hs=null,ms=0,Be=[],Ue=0,la=null,sn=1,rn="";function sa(t,e){Ka[Qa++]=ms,Ka[Qa++]=hs,hs=t,ms=e}function hp(t,e,n){Be[Ue++]=sn,Be[Ue++]=rn,Be[Ue++]=la,la=t;var i=sn;t=rn;var s=32-be(i)-1;i&=~(1<<s),n+=1;var o=32-be(e)+s;if(30<o){var d=s-s%5;o=(i&(1<<d)-1).toString(32),i>>=d,s-=d,sn=1<<32-be(e)+s|n<<s|i,rn=o+t}else sn=1<<o|n<<s|i,rn=t}function To(t){t.return!==null&&(sa(t,1),hp(t,1,0))}function Ao(t){for(;t===hs;)hs=Ka[--Qa],Ka[Qa]=null,ms=Ka[--Qa],Ka[Qa]=null;for(;t===la;)la=Be[--Ue],Be[Ue]=null,rn=Be[--Ue],Be[Ue]=null,sn=Be[--Ue],Be[Ue]=null}var fe=null,Ht=null,Et=!1,ra=null,Ze=!1,Eo=Error(u(519));function ua(t){var e=Error(u(418,""));throw Fi(we(e,t)),Eo}function mp(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[ue]=t,e[he]=i,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<Sl.length;n++)mt(Sl[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),Om(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),ts(e);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),Vm(e,i.value,i.defaultValue,i.children),ts(e)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||V0(e.textContent,n)?(i.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),i.onScroll!=null&&mt("scroll",e),i.onScrollEnd!=null&&mt("scrollend",e),i.onClick!=null&&(e.onclick=Ps),e=!0):e=!1,e||ua(t)}function pp(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:fe=fe.return}}function Pi(t){if(t!==fe)return!1;if(!Et)return pp(t),Et=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Yc(t.type,t.memoizedProps)),n=!n),n&&Ht&&ua(t),pp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){Ht=Ge(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}Ht=null}}else e===27?(e=Ht,Yn(t.type)?(t=kc,kc=null,Ht=t):Ht=e):Ht=fe?Ge(t.stateNode.nextSibling):null;return!0}function Ji(){Ht=fe=null,Et=!1}function yp(){var t=ra;return t!==null&&(ge===null?ge=t:ge.push.apply(ge,t),ra=null),t}function Fi(t){ra===null?ra=[t]:ra.push(t)}var Mo=b(null),oa=null,un=null;function Mn(t,e,n){V(Mo,e._currentValue),e._currentValue=n}function on(t){t._currentValue=Mo.current,O(Mo)}function Ro(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Do(t,e,n,i){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){var d=s.child;o=o.firstContext;t:for(;o!==null;){var v=o;o=s;for(var S=0;S<e.length;S++)if(v.context===e[S]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Ro(o.return,n,t),i||(d=null);break t}o=v.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(u(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Ro(d,n,t),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===t){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function Wi(t,e,n,i){t=null;for(var s=e,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=s.type;Se(s.pendingProps.value,d.value)||(t!==null?t.push(v):t=[v])}}else if(s===yt.current){if(d=s.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Rl):t=[Rl])}s=s.return}t!==null&&Do(e,t,n,i),e.flags|=262144}function ps(t){for(t=t.firstContext;t!==null;){if(!Se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ca(t){oa=t,un=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return gp(oa,t)}function ys(t,e){return oa===null&&ca(t),gp(t,e)}function gp(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},un===null){if(t===null)throw Error(u(308));un=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else un=un.next=e;return n}var ET=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},MT=a.unstable_scheduleCallback,RT=a.unstable_NormalPriority,Pt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Co(){return{controller:new ET,data:new Map,refCount:0}}function $i(t){t.refCount--,t.refCount===0&&MT(RT,function(){t.controller.abort()})}var Ii=null,Oo=0,Za=0,Pa=null;function DT(t,e){if(Ii===null){var n=Ii=[];Oo=0,Za=Vc(),Pa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Oo++,e.then(vp,vp),e}function vp(){if(--Oo===0&&Ii!==null){Pa!==null&&(Pa.status="fulfilled");var t=Ii;Ii=null,Za=0,Pa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function CT(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var bp=z.S;z.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&DT(t,e),bp!==null&&bp(t,e)};var fa=b(null);function _o(){var t=fa.current;return t!==null?t:zt.pooledCache}function gs(t,e){e===null?V(fa,fa.current):V(fa,e.pool)}function Sp(){var t=_o();return t===null?null:{parent:Pt._currentValue,pool:t}}var tl=Error(u(460)),xp=Error(u(474)),vs=Error(u(542)),Vo={then:function(){}};function Tp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function bs(){}function Ap(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(bs,bs),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Mp(t),t;default:if(typeof e.status=="string")e.then(bs,bs);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=i}},function(i){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Mp(t),t}throw el=e,tl}}var el=null;function Ep(){if(el===null)throw Error(u(459));var t=el;return el=null,t}function Mp(t){if(t===tl||t===vs)throw Error(u(483))}var Rn=!1;function wo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Mt&2)!==0){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,e=fs(t),fp(t,null,n),e}return cs(t,i,e,n),fs(t)}function nl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,vm(t,n)}}function Bo(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?s=o=e:o=o.next=e}else s=o=e;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Uo=!1;function al(){if(Uo){var t=Pa;if(t!==null)throw t}}function il(t,e,n,i){Uo=!1;var s=t.updateQueue;Rn=!1;var o=s.firstBaseUpdate,d=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var S=v,D=S.next;S.next=null,d===null?o=D:d.next=D,d=S;var B=t.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==d&&(v===null?B.firstBaseUpdate=D:v.next=D,B.lastBaseUpdate=S))}if(o!==null){var N=s.baseState;d=0,B=D=S=null,v=o;do{var C=v.lane&-536870913,_=C!==v.lane;if(_?(Tt&C)===C:(i&C)===C){C!==0&&C===Za&&(Uo=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var ut=t,it=v;C=e;var _t=n;switch(it.tag){case 1:if(ut=it.payload,typeof ut=="function"){N=ut.call(_t,N,C);break t}N=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=it.payload,C=typeof ut=="function"?ut.call(_t,N,C):ut,C==null)break t;N=g({},N,C);break t;case 2:Rn=!0}}C=v.callback,C!==null&&(t.flags|=64,_&&(t.flags|=8192),_=s.callbacks,_===null?s.callbacks=[C]:_.push(C))}else _={lane:C,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(D=B=_,S=N):B=B.next=_,d|=C;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;_=v,v=_.next,_.next=null,s.lastBaseUpdate=_,s.shared.pending=null}}while(!0);B===null&&(S=N),s.baseState=S,s.firstBaseUpdate=D,s.lastBaseUpdate=B,o===null&&(s.shared.lanes=0),jn|=d,t.lanes=d,t.memoizedState=N}}function Rp(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Dp(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Rp(n[t],e)}var Ja=b(null),Ss=b(0);function Cp(t,e){t=yn,V(Ss,t),V(Ja,e),yn=t|e.baseLanes}function jo(){V(Ss,yn),V(Ja,Ja.current)}function No(){yn=Ss.current,O(Ja),O(Ss)}var On=0,ct=null,Ct=null,Qt=null,xs=!1,Fa=!1,da=!1,Ts=0,ll=0,Wa=null,OT=0;function Gt(){throw Error(u(321))}function Lo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Se(t[n],e[n]))return!1;return!0}function Ho(t,e,n,i,s,o){return On=o,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?fy:dy,da=!1,o=n(i,s),da=!1,Fa&&(o=_p(e,n,i,s)),Op(t),o}function Op(t){z.H=Cs;var e=Ct!==null&&Ct.next!==null;if(On=0,Qt=Ct=ct=null,xs=!1,ll=0,Wa=null,e)throw Error(u(300));t===null||Wt||(t=t.dependencies,t!==null&&ps(t)&&(Wt=!0))}function _p(t,e,n,i){ct=t;var s=0;do{if(Fa&&(Wa=null),ll=0,Fa=!1,25<=s)throw Error(u(301));if(s+=1,Qt=Ct=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}z.H=jT,o=e(n,i)}while(Fa);return o}function _T(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?sl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ct.flags|=1024),e}function Yo(){var t=Ts!==0;return Ts=0,t}function qo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Go(t){if(xs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}xs=!1}On=0,Qt=Ct=ct=null,Fa=!1,ll=Ts=0,Wa=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Zt(){if(Ct===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Qt===null?ct.memoizedState:Qt.next;if(e!==null)Qt=e,Ct=t;else{if(t===null)throw ct.alternate===null?Error(u(467)):Error(u(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function Xo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(t){var e=ll;return ll+=1,Wa===null&&(Wa=[]),t=Ap(Wa,t,e),e=ct,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?fy:dy),t}function As(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return sl(t);if(t.$$typeof===G)return oe(t)}throw Error(u(438,String(t)))}function ko(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=ct.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Xo(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=St;return e.index++,n}function cn(t,e){return typeof e=="function"?e(t):e}function Es(t){var e=Zt();return Ko(e,Ct,t)}function Ko(t,e,n){var i=t.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=n;var s=t.baseQueue,o=i.pending;if(o!==null){if(s!==null){var d=s.next;s.next=o.next,o.next=d}e.baseQueue=s=o,i.pending=null}if(o=t.baseState,s===null)t.memoizedState=o;else{e=s.next;var v=d=null,S=null,D=e,B=!1;do{var N=D.lane&-536870913;if(N!==D.lane?(Tt&N)===N:(On&N)===N){var C=D.revertLane;if(C===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),N===Za&&(B=!0);else if((On&C)===C){D=D.next,C===Za&&(B=!0);continue}else N={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(v=S=N,d=o):S=S.next=N,ct.lanes|=C,jn|=C;N=D.action,da&&n(o,N),o=D.hasEagerState?D.eagerState:n(o,N)}else C={lane:N,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(v=S=C,d=o):S=S.next=C,ct.lanes|=N,jn|=N;D=D.next}while(D!==null&&D!==e);if(S===null?d=o:S.next=v,!Se(o,t.memoizedState)&&(Wt=!0,B&&(n=Pa,n!==null)))throw n;t.memoizedState=o,t.baseState=d,t.baseQueue=S,i.lastRenderedState=o}return s===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function Qo(t){var e=Zt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var i=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do o=t(o,d.action),d=d.next;while(d!==s);Se(o,e.memoizedState)||(Wt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function Vp(t,e,n){var i=ct,s=Zt(),o=Et;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=e();var d=!Se((Ct||s).memoizedState,n);d&&(s.memoizedState=n,Wt=!0),s=s.queue;var v=Bp.bind(null,i,s,t);if(rl(2048,8,v,[t]),s.getSnapshot!==e||d||Qt!==null&&Qt.memoizedState.tag&1){if(i.flags|=2048,$a(9,Ms(),zp.bind(null,i,s,n,e),null),zt===null)throw Error(u(349));o||(On&124)!==0||wp(i,e,n)}return n}function wp(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Xo(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function zp(t,e,n,i){e.value=n,e.getSnapshot=i,Up(e)&&jp(t)}function Bp(t,e,n){return n(function(){Up(e)&&jp(t)})}function Up(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Se(t,n)}catch{return!0}}function jp(t){var e=Xa(t,2);e!==null&&Re(e,t,2)}function Zo(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),da){Tn(!0);try{n()}finally{Tn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:t},e}function Np(t,e,n,i){return t.baseState=n,Ko(t,Ct,typeof i=="function"?i:cn)}function VT(t,e,n,i,s){if(Ds(t))throw Error(u(485));if(t=e.action,t!==null){var o={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};z.T!==null?n(!0):o.isTransition=!1,i(o),n=e.pending,n===null?(o.next=e.pending=o,Lp(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Lp(t,e){var n=e.action,i=e.payload,s=t.state;if(e.isTransition){var o=z.T,d={};z.T=d;try{var v=n(s,i),S=z.S;S!==null&&S(d,v),Hp(t,e,v)}catch(D){Po(t,e,D)}finally{z.T=o}}else try{o=n(s,i),Hp(t,e,o)}catch(D){Po(t,e,D)}}function Hp(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Yp(t,e,i)},function(i){return Po(t,e,i)}):Yp(t,e,n)}function Yp(t,e,n){e.status="fulfilled",e.value=n,qp(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Lp(t,n)))}function Po(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,qp(e),e=e.next;while(e!==i)}t.action=null}function qp(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Gp(t,e){return e}function Xp(t,e){if(Et){var n=zt.formState;if(n!==null){t:{var i=ct;if(Et){if(Ht){e:{for(var s=Ht,o=Ze;s.nodeType!==8;){if(!o){s=null;break e}if(s=Ge(s.nextSibling),s===null){s=null;break e}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Ht=Ge(s.nextSibling),i=s.data==="F!";break t}}ua(i)}i=!1}i&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:e},n.queue=i,n=uy.bind(null,ct,i),i.dispatch=n,i=Zo(!1),o=Io.bind(null,ct,!1,i.queue),i=pe(),s={state:e,dispatch:null,action:t,pending:null},i.queue=s,n=VT.bind(null,ct,s,o,n),s.dispatch=n,i.memoizedState=t,[e,n,!1]}function kp(t){var e=Zt();return Kp(e,Ct,t)}function Kp(t,e,n){if(e=Ko(t,e,Gp)[0],t=Es(cn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=sl(e)}catch(d){throw d===tl?vs:d}else i=e;e=Zt();var s=e.queue,o=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,$a(9,Ms(),wT.bind(null,s,n),null)),[i,o,t]}function wT(t,e){t.action=e}function Qp(t){var e=Zt(),n=Ct;if(n!==null)return Kp(e,n,t);Zt(),e=e.memoizedState,n=Zt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function $a(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Xo(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Ms(){return{destroy:void 0,resource:void 0}}function Zp(){return Zt().memoizedState}function Rs(t,e,n,i){var s=pe();i=i===void 0?null:i,ct.flags|=t,s.memoizedState=$a(1|e,Ms(),n,i)}function rl(t,e,n,i){var s=Zt();i=i===void 0?null:i;var o=s.memoizedState.inst;Ct!==null&&i!==null&&Lo(i,Ct.memoizedState.deps)?s.memoizedState=$a(e,o,n,i):(ct.flags|=t,s.memoizedState=$a(1|e,o,n,i))}function Pp(t,e){Rs(8390656,8,t,e)}function Jp(t,e){rl(2048,8,t,e)}function Fp(t,e){return rl(4,2,t,e)}function Wp(t,e){return rl(4,4,t,e)}function $p(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ip(t,e,n){n=n!=null?n.concat([t]):null,rl(4,4,$p.bind(null,e,t),n)}function Jo(){}function ty(t,e){var n=Zt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&Lo(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function ey(t,e){var n=Zt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&Lo(e,i[1]))return i[0];if(i=t(),da){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[i,e],i}function Fo(t,e,n){return n===void 0||(On&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=i0(),ct.lanes|=t,jn|=t,n)}function ny(t,e,n,i){return Se(n,e)?n:Ja.current!==null?(t=Fo(t,n,i),Se(t,e)||(Wt=!0),t):(On&42)===0?(Wt=!0,t.memoizedState=n):(t=i0(),ct.lanes|=t,jn|=t,e)}function ay(t,e,n,i,s){var o=j.p;j.p=o!==0&&8>o?o:8;var d=z.T,v={};z.T=v,Io(t,!1,e,n);try{var S=s(),D=z.S;if(D!==null&&D(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var B=CT(S,i);ul(t,e,B,Me(t))}else ul(t,e,i,Me(t))}catch(N){ul(t,e,{then:function(){},status:"rejected",reason:N},Me())}finally{j.p=o,z.T=d}}function zT(){}function Wo(t,e,n,i){if(t.tag!==5)throw Error(u(476));var s=iy(t).queue;ay(t,s,e,P,n===null?zT:function(){return ly(t),n(i)})}function iy(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:P},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ly(t){var e=iy(t).next.queue;ul(t,e,{},Me())}function $o(){return oe(Rl)}function sy(){return Zt().memoizedState}function ry(){return Zt().memoizedState}function BT(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Me();t=Dn(n);var i=Cn(e,t,n);i!==null&&(Re(i,e,n),nl(i,e,n)),e={cache:Co()},t.payload=e;return}e=e.return}}function UT(t,e,n){var i=Me();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ds(t)?oy(e,n):(n=vo(t,e,n,i),n!==null&&(Re(n,t,i),cy(n,e,i)))}function uy(t,e,n){var i=Me();ul(t,e,n,i)}function ul(t,e,n,i){var s={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ds(t))oy(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var d=e.lastRenderedState,v=o(d,n);if(s.hasEagerState=!0,s.eagerState=v,Se(v,d))return cs(t,e,s,0),zt===null&&os(),!1}catch{}finally{}if(n=vo(t,e,s,i),n!==null)return Re(n,t,i),cy(n,e,i),!0}return!1}function Io(t,e,n,i){if(i={lane:2,revertLane:Vc(),action:i,hasEagerState:!1,eagerState:null,next:null},Ds(t)){if(e)throw Error(u(479))}else e=vo(t,n,i,2),e!==null&&Re(e,t,2)}function Ds(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function oy(t,e){Fa=xs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function cy(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,vm(t,n)}}var Cs={readContext:oe,use:As,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt},fy={readContext:oe,use:As,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:Pp,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Rs(4194308,4,$p.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Rs(4194308,4,t,e)},useInsertionEffect:function(t,e){Rs(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var i=t();if(da){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=pe();if(n!==void 0){var s=n(e);if(da){Tn(!0);try{n(e)}finally{Tn(!1)}}}else s=e;return i.memoizedState=i.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},i.queue=t,t=t.dispatch=UT.bind(null,ct,t),[i.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Zo(t);var e=t.queue,n=uy.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Jo,useDeferredValue:function(t,e){var n=pe();return Fo(n,t,e)},useTransition:function(){var t=Zo(!1);return t=ay.bind(null,ct,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=ct,s=pe();if(Et){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),zt===null)throw Error(u(349));(Tt&124)!==0||wp(i,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,Pp(Bp.bind(null,i,o,t),[t]),i.flags|=2048,$a(9,Ms(),zp.bind(null,i,o,n,e),null),n},useId:function(){var t=pe(),e=zt.identifierPrefix;if(Et){var n=rn,i=sn;n=(i&~(1<<32-be(i)-1)).toString(32)+n,e="«"+e+"R"+n,n=Ts++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=OT++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:$o,useFormState:Xp,useActionState:Xp,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Io.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:ko,useCacheRefresh:function(){return pe().memoizedState=BT.bind(null,ct)}},dy={readContext:oe,use:As,useCallback:ty,useContext:oe,useEffect:Jp,useImperativeHandle:Ip,useInsertionEffect:Fp,useLayoutEffect:Wp,useMemo:ey,useReducer:Es,useRef:Zp,useState:function(){return Es(cn)},useDebugValue:Jo,useDeferredValue:function(t,e){var n=Zt();return ny(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Es(cn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:sl(t),e]},useSyncExternalStore:Vp,useId:sy,useHostTransitionStatus:$o,useFormState:kp,useActionState:kp,useOptimistic:function(t,e){var n=Zt();return Np(n,Ct,t,e)},useMemoCache:ko,useCacheRefresh:ry},jT={readContext:oe,use:As,useCallback:ty,useContext:oe,useEffect:Jp,useImperativeHandle:Ip,useInsertionEffect:Fp,useLayoutEffect:Wp,useMemo:ey,useReducer:Qo,useRef:Zp,useState:function(){return Qo(cn)},useDebugValue:Jo,useDeferredValue:function(t,e){var n=Zt();return Ct===null?Fo(n,t,e):ny(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Qo(cn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:sl(t),e]},useSyncExternalStore:Vp,useId:sy,useHostTransitionStatus:$o,useFormState:Qp,useActionState:Qp,useOptimistic:function(t,e){var n=Zt();return Ct!==null?Np(n,Ct,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ko,useCacheRefresh:ry},Ia=null,ol=0;function Os(t){var e=ol;return ol+=1,Ia===null&&(Ia=[]),Ap(Ia,t,e)}function cl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function _s(t,e){throw e.$$typeof===x?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hy(t){var e=t._init;return e(t._payload)}function my(t){function e(M,E){if(t){var R=M.deletions;R===null?(M.deletions=[E],M.flags|=16):R.push(E)}}function n(M,E){if(!t)return null;for(;E!==null;)e(M,E),E=E.sibling;return null}function i(M){for(var E=new Map;M!==null;)M.key!==null?E.set(M.key,M):E.set(M.index,M),M=M.sibling;return E}function s(M,E){return M=ln(M,E),M.index=0,M.sibling=null,M}function o(M,E,R){return M.index=R,t?(R=M.alternate,R!==null?(R=R.index,R<E?(M.flags|=67108866,E):R):(M.flags|=67108866,E)):(M.flags|=1048576,E)}function d(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function v(M,E,R,U){return E===null||E.tag!==6?(E=So(R,M.mode,U),E.return=M,E):(E=s(E,R),E.return=M,E)}function S(M,E,R,U){var tt=R.type;return tt===L?B(M,E,R.props.children,U,R.key):E!==null&&(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===W&&hy(tt)===E.type)?(E=s(E,R.props),cl(E,R),E.return=M,E):(E=ds(R.type,R.key,R.props,null,M.mode,U),cl(E,R),E.return=M,E)}function D(M,E,R,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==R.containerInfo||E.stateNode.implementation!==R.implementation?(E=xo(R,M.mode,U),E.return=M,E):(E=s(E,R.children||[]),E.return=M,E)}function B(M,E,R,U,tt){return E===null||E.tag!==7?(E=ia(R,M.mode,U,tt),E.return=M,E):(E=s(E,R),E.return=M,E)}function N(M,E,R){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=So(""+E,M.mode,R),E.return=M,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case A:return R=ds(E.type,E.key,E.props,null,M.mode,R),cl(R,E),R.return=M,R;case w:return E=xo(E,M.mode,R),E.return=M,E;case W:var U=E._init;return E=U(E._payload),N(M,E,R)}if(Dt(E)||xt(E))return E=ia(E,M.mode,R,null),E.return=M,E;if(typeof E.then=="function")return N(M,Os(E),R);if(E.$$typeof===G)return N(M,ys(M,E),R);_s(M,E)}return null}function C(M,E,R,U){var tt=E!==null?E.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return tt!==null?null:v(M,E,""+R,U);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case A:return R.key===tt?S(M,E,R,U):null;case w:return R.key===tt?D(M,E,R,U):null;case W:return tt=R._init,R=tt(R._payload),C(M,E,R,U)}if(Dt(R)||xt(R))return tt!==null?null:B(M,E,R,U,null);if(typeof R.then=="function")return C(M,E,Os(R),U);if(R.$$typeof===G)return C(M,E,ys(M,R),U);_s(M,R)}return null}function _(M,E,R,U,tt){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return M=M.get(R)||null,v(E,M,""+U,tt);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case A:return M=M.get(U.key===null?R:U.key)||null,S(E,M,U,tt);case w:return M=M.get(U.key===null?R:U.key)||null,D(E,M,U,tt);case W:var dt=U._init;return U=dt(U._payload),_(M,E,R,U,tt)}if(Dt(U)||xt(U))return M=M.get(R)||null,B(E,M,U,tt,null);if(typeof U.then=="function")return _(M,E,R,Os(U),tt);if(U.$$typeof===G)return _(M,E,R,ys(E,U),tt);_s(E,U)}return null}function ut(M,E,R,U){for(var tt=null,dt=null,nt=E,lt=E=0,It=null;nt!==null&<<R.length;lt++){nt.index>lt?(It=nt,nt=null):It=nt.sibling;var At=C(M,nt,R[lt],U);if(At===null){nt===null&&(nt=It);break}t&&nt&&At.alternate===null&&e(M,nt),E=o(At,E,lt),dt===null?tt=At:dt.sibling=At,dt=At,nt=It}if(lt===R.length)return n(M,nt),Et&&sa(M,lt),tt;if(nt===null){for(;lt<R.length;lt++)nt=N(M,R[lt],U),nt!==null&&(E=o(nt,E,lt),dt===null?tt=nt:dt.sibling=nt,dt=nt);return Et&&sa(M,lt),tt}for(nt=i(nt);lt<R.length;lt++)It=_(nt,M,lt,R[lt],U),It!==null&&(t&&It.alternate!==null&&nt.delete(It.key===null?lt:It.key),E=o(It,E,lt),dt===null?tt=It:dt.sibling=It,dt=It);return t&&nt.forEach(function(Kn){return e(M,Kn)}),Et&&sa(M,lt),tt}function it(M,E,R,U){if(R==null)throw Error(u(151));for(var tt=null,dt=null,nt=E,lt=E=0,It=null,At=R.next();nt!==null&&!At.done;lt++,At=R.next()){nt.index>lt?(It=nt,nt=null):It=nt.sibling;var Kn=C(M,nt,At.value,U);if(Kn===null){nt===null&&(nt=It);break}t&&nt&&Kn.alternate===null&&e(M,nt),E=o(Kn,E,lt),dt===null?tt=Kn:dt.sibling=Kn,dt=Kn,nt=It}if(At.done)return n(M,nt),Et&&sa(M,lt),tt;if(nt===null){for(;!At.done;lt++,At=R.next())At=N(M,At.value,U),At!==null&&(E=o(At,E,lt),dt===null?tt=At:dt.sibling=At,dt=At);return Et&&sa(M,lt),tt}for(nt=i(nt);!At.done;lt++,At=R.next())At=_(nt,M,lt,At.value,U),At!==null&&(t&&At.alternate!==null&&nt.delete(At.key===null?lt:At.key),E=o(At,E,lt),dt===null?tt=At:dt.sibling=At,dt=At);return t&&nt.forEach(function(NA){return e(M,NA)}),Et&&sa(M,lt),tt}function _t(M,E,R,U){if(typeof R=="object"&&R!==null&&R.type===L&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case A:t:{for(var tt=R.key;E!==null;){if(E.key===tt){if(tt=R.type,tt===L){if(E.tag===7){n(M,E.sibling),U=s(E,R.props.children),U.return=M,M=U;break t}}else if(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===W&&hy(tt)===E.type){n(M,E.sibling),U=s(E,R.props),cl(U,R),U.return=M,M=U;break t}n(M,E);break}else e(M,E);E=E.sibling}R.type===L?(U=ia(R.props.children,M.mode,U,R.key),U.return=M,M=U):(U=ds(R.type,R.key,R.props,null,M.mode,U),cl(U,R),U.return=M,M=U)}return d(M);case w:t:{for(tt=R.key;E!==null;){if(E.key===tt)if(E.tag===4&&E.stateNode.containerInfo===R.containerInfo&&E.stateNode.implementation===R.implementation){n(M,E.sibling),U=s(E,R.children||[]),U.return=M,M=U;break t}else{n(M,E);break}else e(M,E);E=E.sibling}U=xo(R,M.mode,U),U.return=M,M=U}return d(M);case W:return tt=R._init,R=tt(R._payload),_t(M,E,R,U)}if(Dt(R))return ut(M,E,R,U);if(xt(R)){if(tt=xt(R),typeof tt!="function")throw Error(u(150));return R=tt.call(R),it(M,E,R,U)}if(typeof R.then=="function")return _t(M,E,Os(R),U);if(R.$$typeof===G)return _t(M,E,ys(M,R),U);_s(M,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,E!==null&&E.tag===6?(n(M,E.sibling),U=s(E,R),U.return=M,M=U):(n(M,E),U=So(R,M.mode,U),U.return=M,M=U),d(M)):n(M,E)}return function(M,E,R,U){try{ol=0;var tt=_t(M,E,R,U);return Ia=null,tt}catch(nt){if(nt===tl||nt===vs)throw nt;var dt=xe(29,nt,null,M.mode);return dt.lanes=U,dt.return=M,dt}finally{}}}var ti=my(!0),py=my(!1),je=b(null),Pe=null;function _n(t){var e=t.alternate;V(Jt,Jt.current&1),V(je,t),Pe===null&&(e===null||Ja.current!==null||e.memoizedState!==null)&&(Pe=t)}function yy(t){if(t.tag===22){if(V(Jt,Jt.current),V(je,t),Pe===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Pe=t)}}else Vn()}function Vn(){V(Jt,Jt.current),V(je,je.current)}function fn(t){O(je),Pe===t&&(Pe=null),O(Jt)}var Jt=b(0);function Vs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Xc(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function tc(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ec={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Me(),s=Dn(i);s.payload=e,n!=null&&(s.callback=n),e=Cn(t,s,i),e!==null&&(Re(e,t,i),nl(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Me(),s=Dn(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Cn(t,s,i),e!==null&&(Re(e,t,i),nl(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Me(),i=Dn(n);i.tag=2,e!=null&&(i.callback=e),e=Cn(t,i,n),e!==null&&(Re(e,t,n),nl(e,t,n))}};function gy(t,e,n,i,s,o,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,o,d):e.prototype&&e.prototype.isPureReactComponent?!Qi(n,i)||!Qi(s,o):!0}function vy(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&ec.enqueueReplaceState(e,e.state,null)}function ha(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}var ws=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}console.error(t)};function by(t){ws(t)}function Sy(t){console.error(t)}function xy(t){ws(t)}function zs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Ty(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function nc(t,e,n){return n=Dn(n),n.tag=3,n.payload={element:null},n.callback=function(){zs(t,e)},n}function Ay(t){return t=Dn(t),t.tag=3,t}function Ey(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=i.value;t.payload=function(){return s(o)},t.callback=function(){Ty(e,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Ty(e,n,i),typeof s!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function NT(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Wi(e,n,s,!0),n=je.current,n!==null){switch(n.tag){case 13:return Pe===null?Rc():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===Vo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Cc(t,i,s)),!1;case 22:return n.flags|=65536,i===Vo?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Cc(t,i,s)),!1}throw Error(u(435,n.tag))}return Cc(t,i,s),Rc(),!1}if(Et)return e=je.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==Eo&&(t=Error(u(422),{cause:i}),Fi(we(t,n)))):(i!==Eo&&(e=Error(u(423),{cause:i}),Fi(we(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=we(i,n),s=nc(t.stateNode,i,s),Bo(t,s),Yt!==4&&(Yt=2)),!1;var o=Error(u(520),{cause:i});if(o=we(o,n),gl===null?gl=[o]:gl.push(o),Yt!==4&&(Yt=2),e===null)return!0;i=we(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=nc(n.stateNode,i,t),Bo(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Nn===null||!Nn.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Ay(s),Ey(s,t,n,i),Bo(n,s),!1}n=n.return}while(n!==null);return!1}var My=Error(u(461)),Wt=!1;function ae(t,e,n,i){e.child=t===null?py(e,null,n,i):ti(e,t.child,n,i)}function Ry(t,e,n,i,s){n=n.render;var o=e.ref;if("ref"in i){var d={};for(var v in i)v!=="ref"&&(d[v]=i[v])}else d=i;return ca(e),i=Ho(t,e,n,d,o,s),v=Yo(),t!==null&&!Wt?(qo(t,e,s),dn(t,e,s)):(Et&&v&&To(e),e.flags|=1,ae(t,e,i,s),e.child)}function Dy(t,e,n,i,s){if(t===null){var o=n.type;return typeof o=="function"&&!bo(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Cy(t,e,o,i,s)):(t=ds(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!cc(t,s)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:Qi,n(d,i)&&t.ref===e.ref)return dn(t,e,s)}return e.flags|=1,t=ln(o,i),t.ref=e.ref,t.return=e,e.child=t}function Cy(t,e,n,i,s){if(t!==null){var o=t.memoizedProps;if(Qi(o,i)&&t.ref===e.ref)if(Wt=!1,e.pendingProps=i=o,cc(t,s))(t.flags&131072)!==0&&(Wt=!0);else return e.lanes=t.lanes,dn(t,e,s)}return ac(t,e,n,i,s)}function Oy(t,e,n){var i=e.pendingProps,s=i.children,o=t!==null?t.memoizedState:null;if(i.mode==="hidden"){if((e.flags&128)!==0){if(i=o!==null?o.baseLanes|n:n,t!==null){for(s=e.child=t.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;e.childLanes=o&~i}else e.childLanes=0,e.child=null;return _y(t,e,i,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&gs(e,o!==null?o.cachePool:null),o!==null?Cp(e,o):jo(),yy(e);else return e.lanes=e.childLanes=536870912,_y(t,e,o!==null?o.baseLanes|n:n,n)}else o!==null?(gs(e,o.cachePool),Cp(e,o),Vn(),e.memoizedState=null):(t!==null&&gs(e,null),jo(),Vn());return ae(t,e,s,n),e.child}function _y(t,e,n,i){var s=_o();return s=s===null?null:{parent:Pt._currentValue,pool:s},e.memoizedState={baseLanes:n,cachePool:s},t!==null&&gs(e,null),jo(),yy(e),t!==null&&Wi(t,e,i,!0),null}function Bs(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ac(t,e,n,i,s){return ca(e),n=Ho(t,e,n,i,void 0,s),i=Yo(),t!==null&&!Wt?(qo(t,e,s),dn(t,e,s)):(Et&&i&&To(e),e.flags|=1,ae(t,e,n,s),e.child)}function Vy(t,e,n,i,s,o){return ca(e),e.updateQueue=null,n=_p(e,i,n,s),Op(t),i=Yo(),t!==null&&!Wt?(qo(t,e,o),dn(t,e,o)):(Et&&i&&To(e),e.flags|=1,ae(t,e,n,o),e.child)}function wy(t,e,n,i,s){if(ca(e),e.stateNode===null){var o=ka,d=n.contextType;typeof d=="object"&&d!==null&&(o=oe(d)),o=new n(i,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ec,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=i,o.state=e.memoizedState,o.refs={},wo(e),d=n.contextType,o.context=typeof d=="object"&&d!==null?oe(d):ka,o.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(tc(e,n,d,i),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&ec.enqueueReplaceState(o,o.state,null),il(e,i,o,s),al(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){o=e.stateNode;var v=e.memoizedProps,S=ha(n,v);o.props=S;var D=o.context,B=n.contextType;d=ka,typeof B=="object"&&B!==null&&(d=oe(B));var N=n.getDerivedStateFromProps;B=typeof N=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,B||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||D!==d)&&vy(e,o,i,d),Rn=!1;var C=e.memoizedState;o.state=C,il(e,i,o,s),al(),D=e.memoizedState,v||C!==D||Rn?(typeof N=="function"&&(tc(e,n,N,i),D=e.memoizedState),(S=Rn||gy(e,n,S,i,C,D,d))?(B||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=D),o.props=i,o.state=D,o.context=d,i=S):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,zo(t,e),d=e.memoizedProps,B=ha(n,d),o.props=B,N=e.pendingProps,C=o.context,D=n.contextType,S=ka,typeof D=="object"&&D!==null&&(S=oe(D)),v=n.getDerivedStateFromProps,(D=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==N||C!==S)&&vy(e,o,i,S),Rn=!1,C=e.memoizedState,o.state=C,il(e,i,o,s),al();var _=e.memoizedState;d!==N||C!==_||Rn||t!==null&&t.dependencies!==null&&ps(t.dependencies)?(typeof v=="function"&&(tc(e,n,v,i),_=e.memoizedState),(B=Rn||gy(e,n,B,i,C,_,S)||t!==null&&t.dependencies!==null&&ps(t.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,_,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,_,S)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=_),o.props=i,o.state=_,o.context=S,i=B):(typeof o.componentDidUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),i=!1)}return o=i,Bs(t,e),i=(e.flags&128)!==0,o||i?(o=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&i?(e.child=ti(e,t.child,null,s),e.child=ti(e,null,n,s)):ae(t,e,n,s),e.memoizedState=o.state,t=e.child):t=dn(t,e,s),t}function zy(t,e,n,i){return Ji(),e.flags|=256,ae(t,e,n,i),e.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(t){return{baseLanes:t,cachePool:Sp()}}function sc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ne),t}function By(t,e,n){var i=e.pendingProps,s=!1,o=(e.flags&128)!==0,d;if((d=o)||(d=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),d&&(s=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Et){if(s?_n(e):Vn(),Et){var v=Ht,S;if(S=v){t:{for(S=v,v=Ze;S.nodeType!==8;){if(!v){v=null;break t}if(S=Ge(S.nextSibling),S===null){v=null;break t}}v=S}v!==null?(e.memoizedState={dehydrated:v,treeContext:la!==null?{id:sn,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},S=xe(18,null,null,0),S.stateNode=v,S.return=e,e.child=S,fe=e,Ht=null,S=!0):S=!1}S||ua(e)}if(v=e.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Xc(v)?e.lanes=32:e.lanes=536870912,null;fn(e)}return v=i.children,i=i.fallback,s?(Vn(),s=e.mode,v=Us({mode:"hidden",children:v},s),i=ia(i,s,n,null),v.return=e,i.return=e,v.sibling=i,e.child=v,s=e.child,s.memoizedState=lc(n),s.childLanes=sc(t,d,n),e.memoizedState=ic,i):(_n(e),rc(e,v))}if(S=t.memoizedState,S!==null&&(v=S.dehydrated,v!==null)){if(o)e.flags&256?(_n(e),e.flags&=-257,e=uc(t,e,n)):e.memoizedState!==null?(Vn(),e.child=t.child,e.flags|=128,e=null):(Vn(),s=i.fallback,v=e.mode,i=Us({mode:"visible",children:i.children},v),s=ia(s,v,n,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,ti(e,t.child,null,n),i=e.child,i.memoizedState=lc(n),i.childLanes=sc(t,d,n),e.memoizedState=ic,e=s);else if(_n(e),Xc(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var D=d.dgst;d=D,i=Error(u(419)),i.stack="",i.digest=d,Fi({value:i,source:null,stack:null}),e=uc(t,e,n)}else if(Wt||Wi(t,e,n,!1),d=(n&t.childLanes)!==0,Wt||d){if(d=zt,d!==null&&(i=n&-n,i=(i&42)!==0?1:Xu(i),i=(i&(d.suspendedLanes|n))!==0?0:i,i!==0&&i!==S.retryLane))throw S.retryLane=i,Xa(t,i),Re(d,t,i),My;v.data==="$?"||Rc(),e=uc(t,e,n)}else v.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Ht=Ge(v.nextSibling),fe=e,Et=!0,ra=null,Ze=!1,t!==null&&(Be[Ue++]=sn,Be[Ue++]=rn,Be[Ue++]=la,sn=t.id,rn=t.overflow,la=e),e=rc(e,i.children),e.flags|=4096);return e}return s?(Vn(),s=i.fallback,v=e.mode,S=t.child,D=S.sibling,i=ln(S,{mode:"hidden",children:i.children}),i.subtreeFlags=S.subtreeFlags&65011712,D!==null?s=ln(D,s):(s=ia(s,v,n,null),s.flags|=2),s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,v=t.child.memoizedState,v===null?v=lc(n):(S=v.cachePool,S!==null?(D=Pt._currentValue,S=S.parent!==D?{parent:D,pool:D}:S):S=Sp(),v={baseLanes:v.baseLanes|n,cachePool:S}),s.memoizedState=v,s.childLanes=sc(t,d,n),e.memoizedState=ic,i):(_n(e),n=t.child,t=n.sibling,n=ln(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=n,e.memoizedState=null,n)}function rc(t,e){return e=Us({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Us(t,e){return t=xe(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function uc(t,e,n){return ti(e,t.child,null,n),t=rc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Uy(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Ro(t.return,e,n)}function oc(t,e,n,i,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=s)}function jy(t,e,n){var i=e.pendingProps,s=i.revealOrder,o=i.tail;if(ae(t,e,i.children,n),i=Jt.current,(i&2)!==0)i=i&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Uy(t,n,e);else if(t.tag===19)Uy(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}switch(V(Jt,i),s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&Vs(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),oc(e,!1,s,n,o);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Vs(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}oc(e,!0,n,null,o);break;case"together":oc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function dn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),jn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Wi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function cc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ps(t)))}function LT(t,e,n){switch(e.tag){case 3:rt(e,e.stateNode.containerInfo),Mn(e,Pt,t.memoizedState.cache),Ji();break;case 27:case 5:ne(e);break;case 4:rt(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(_n(e),e.flags|=128,null):(n&e.child.childLanes)!==0?By(t,e,n):(_n(e),t=dn(t,e,n),t!==null?t.sibling:null);_n(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Wi(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return jy(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),V(Jt,Jt.current),i)break;return null;case 22:case 23:return e.lanes=0,Oy(t,e,n);case 24:Mn(e,Pt,t.memoizedState.cache)}return dn(t,e,n)}function Ny(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Wt=!0;else{if(!cc(t,n)&&(e.flags&128)===0)return Wt=!1,LT(t,e,n);Wt=(t.flags&131072)!==0}else Wt=!1,Et&&(e.flags&1048576)!==0&&hp(e,ms,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var i=e.elementType,s=i._init;if(i=s(i._payload),e.type=i,typeof i=="function")bo(i)?(t=ha(i,t),e.tag=1,e=wy(null,e,i,t,n)):(e.tag=0,e=ac(null,e,i,t,n));else{if(i!=null){if(s=i.$$typeof,s===I){e.tag=11,e=Ry(null,e,i,t,n);break t}else if(s===et){e.tag=14,e=Dy(null,e,i,t,n);break t}}throw e=Kt(i)||i,Error(u(306,e,""))}}return e;case 0:return ac(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=ha(i,e.pendingProps),wy(t,e,i,s,n);case 3:t:{if(rt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));i=e.pendingProps;var o=e.memoizedState;s=o.element,zo(t,e),il(e,i,null,n);var d=e.memoizedState;if(i=d.cache,Mn(e,Pt,i),i!==o.cache&&Do(e,[Pt],n,!0),al(),i=d.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=zy(t,e,i,n);break t}else if(i!==s){s=we(Error(u(424)),e),Fi(s),e=zy(t,e,i,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ht=Ge(t.firstChild),fe=e,Et=!0,ra=null,Ze=!0,n=py(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ji(),i===s){e=dn(t,e,n);break t}ae(t,e,i,n)}e=e.child}return e;case 26:return Bs(t,e),t===null?(n=q0(e.type,null,e.pendingProps,null))?e.memoizedState=n:Et||(n=e.type,t=e.pendingProps,i=Js(k.current).createElement(n),i[ue]=e,i[he]=t,le(i,n,t),Ft(i),e.stateNode=i):e.memoizedState=q0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ne(e),t===null&&Et&&(i=e.stateNode=L0(e.type,e.pendingProps,k.current),fe=e,Ze=!0,s=Ht,Yn(e.type)?(kc=s,Ht=Ge(i.firstChild)):Ht=s),ae(t,e,e.pendingProps.children,n),Bs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Et&&((s=i=Ht)&&(i=dA(i,e.type,e.pendingProps,Ze),i!==null?(e.stateNode=i,fe=e,Ht=Ge(i.firstChild),Ze=!1,s=!0):s=!1),s||ua(e)),ne(e),s=e.type,o=e.pendingProps,d=t!==null?t.memoizedProps:null,i=o.children,Yc(s,o)?i=null:d!==null&&Yc(s,d)&&(e.flags|=32),e.memoizedState!==null&&(s=Ho(t,e,_T,null,null,n),Rl._currentValue=s),Bs(t,e),ae(t,e,i,n),e.child;case 6:return t===null&&Et&&((t=n=Ht)&&(n=hA(n,e.pendingProps,Ze),n!==null?(e.stateNode=n,fe=e,Ht=null,t=!0):t=!1),t||ua(e)),null;case 13:return By(t,e,n);case 4:return rt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=ti(e,null,i,n):ae(t,e,i,n),e.child;case 11:return Ry(t,e,e.type,e.pendingProps,n);case 7:return ae(t,e,e.pendingProps,n),e.child;case 8:return ae(t,e,e.pendingProps.children,n),e.child;case 12:return ae(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,Mn(e,e.type,i.value),ae(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,ca(e),s=oe(s),i=i(s),e.flags|=1,ae(t,e,i,n),e.child;case 14:return Dy(t,e,e.type,e.pendingProps,n);case 15:return Cy(t,e,e.type,e.pendingProps,n);case 19:return jy(t,e,n);case 31:return i=e.pendingProps,n=e.mode,i={mode:i.mode,children:i.children},t===null?(n=Us(i,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=ln(t.child,i),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return Oy(t,e,n);case 24:return ca(e),i=oe(Pt),t===null?(s=_o(),s===null&&(s=zt,o=Co(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),e.memoizedState={parent:i,cache:s},wo(e),Mn(e,Pt,s)):((t.lanes&n)!==0&&(zo(t,e),il(e,null,null,n),al()),s=t.memoizedState,o=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Mn(e,Pt,i)):(i=o.cache,Mn(e,Pt,i),i!==s.cache&&Do(e,[Pt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function hn(t){t.flags|=4}function Ly(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Q0(e)){if(e=je.current,e!==null&&((Tt&4194048)===Tt?Pe!==null:(Tt&62914560)!==Tt&&(Tt&536870912)===0||e!==Pe))throw el=Vo,xp;t.flags|=8192}}function js(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ym():536870912,t.lanes|=e,ii|=e)}function fl(t,e){if(!Et)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function HT(t,e,n){var i=e.pendingProps;switch(Ao(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),on(Pt),bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Pi(e)?hn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,yp())),Nt(e),null;case 26:return n=e.memoizedState,t===null?(hn(e),n!==null?(Nt(e),Ly(e,n)):(Nt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(hn(e),Nt(e),Ly(e,n)):(Nt(e),e.flags&=-16777217):(t.memoizedProps!==i&&hn(e),Nt(e),e.flags&=-16777217),null;case 27:$n(e),n=k.current;var s=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==i&&hn(e);else{if(!i){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}t=H.current,Pi(e)?mp(e):(t=L0(s,i,n),e.stateNode=t,hn(e))}return Nt(e),null;case 5:if($n(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&hn(e);else{if(!i){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}if(t=H.current,Pi(e))mp(e);else{switch(s=Js(k.current),t){case 1:t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof i.is=="string"?s.createElement("select",{is:i.is}):s.createElement("select"),i.multiple?t.multiple=!0:i.size&&(t.size=i.size);break;default:t=typeof i.is=="string"?s.createElement(n,{is:i.is}):s.createElement(n)}}t[ue]=e,t[he]=i;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=t;t:switch(le(t,n,i),n){case"button":case"input":case"select":case"textarea":t=!!i.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&hn(e)}}return Nt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&hn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(u(166));if(t=k.current,Pi(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,s=fe,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}t[ue]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||V0(t.nodeValue,n)),t||ua(e)}else t=Js(t).createTextNode(i),t[ue]=e,e.stateNode=t}return Nt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Pi(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(u(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ue]=e}else Ji(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),s=!1}else s=yp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(fn(e),e):(fn(e),null)}if(fn(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=i!==null,t=t!==null&&t.memoizedState!==null,n){i=e.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool);var o=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),js(e,e.updateQueue),Nt(e),null;case 4:return bt(),t===null&&Uc(e.stateNode.containerInfo),Nt(e),null;case 10:return on(e.type),Nt(e),null;case 19:if(O(Jt),s=e.memoizedState,s===null)return Nt(e),null;if(i=(e.flags&128)!==0,o=s.rendering,o===null)if(i)fl(s,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=Vs(t),o!==null){for(e.flags|=128,fl(s,!1),t=o.updateQueue,e.updateQueue=t,js(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)dp(n,t),n=n.sibling;return V(Jt,Jt.current&1|2),e.child}t=t.sibling}s.tail!==null&&Qe()>Hs&&(e.flags|=128,i=!0,fl(s,!1),e.lanes=4194304)}else{if(!i)if(t=Vs(o),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,js(e,t),fl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Et)return Nt(e),null}else 2*Qe()-s.renderingStartTime>Hs&&n!==536870912&&(e.flags|=128,i=!0,fl(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(t=s.last,t!==null?t.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Qe(),e.sibling=null,t=Jt.current,V(Jt,i?t&1|2:t&1),e):(Nt(e),null);case 22:case 23:return fn(e),No(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&js(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&O(fa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),on(Pt),Nt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function YT(t,e){switch(Ao(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return on(Pt),bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $n(e),null;case 13:if(fn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Ji()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return O(Jt),null;case 4:return bt(),null;case 10:return on(e.type),null;case 22:case 23:return fn(e),No(),t!==null&&O(fa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return on(Pt),null;case 25:return null;default:return null}}function Hy(t,e){switch(Ao(e),e.tag){case 3:on(Pt),bt();break;case 26:case 27:case 5:$n(e);break;case 4:bt();break;case 13:fn(e);break;case 19:O(Jt);break;case 10:on(e.type);break;case 22:case 23:fn(e),No(),t!==null&&O(fa);break;case 24:on(Pt)}}function dl(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){i=void 0;var o=n.create,d=n.inst;i=o(),d.destroy=i}n=n.next}while(n!==s)}}catch(v){wt(e,e.return,v)}}function wn(t,e,n){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var o=s.next;i=o;do{if((i.tag&t)===t){var d=i.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,s=e;var S=n,D=v;try{D()}catch(B){wt(s,S,B)}}}i=i.next}while(i!==o)}}catch(B){wt(e,e.return,B)}}function Yy(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Dp(e,n)}catch(i){wt(t,t.return,i)}}}function qy(t,e,n){n.props=ha(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){wt(t,e,i)}}function hl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){wt(t,e,s)}}function Je(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){wt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){wt(t,e,s)}else n.current=null}function Gy(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){wt(t,t.return,s)}}function fc(t,e,n){try{var i=t.stateNode;rA(i,t.type,n,e),i[he]=e}catch(s){wt(t,t.return,s)}}function Xy(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yn(t.type)||t.tag===4}function dc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Xy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hc(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ps));else if(i!==4&&(i===27&&Yn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(hc(t,e,n),t=t.sibling;t!==null;)hc(t,e,n),t=t.sibling}function Ns(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&Yn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ns(t,e,n),t=t.sibling;t!==null;)Ns(t,e,n),t=t.sibling}function ky(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);le(e,i,n),e[ue]=t,e[he]=n}catch(o){wt(t,t.return,o)}}var mn=!1,Xt=!1,mc=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,$t=null;function qT(t,e){if(t=t.containerInfo,Lc=er,t=np(t),fo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var d=0,v=-1,S=-1,D=0,B=0,N=t,C=null;e:for(;;){for(var _;N!==n||s!==0&&N.nodeType!==3||(v=d+s),N!==o||i!==0&&N.nodeType!==3||(S=d+i),N.nodeType===3&&(d+=N.nodeValue.length),(_=N.firstChild)!==null;)C=N,N=_;for(;;){if(N===t)break e;if(C===n&&++D===s&&(v=d),C===o&&++B===i&&(S=d),(_=N.nextSibling)!==null)break;N=C,C=N.parentNode}N=_}n=v===-1||S===-1?null:{start:v,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hc={focusedElem:t,selectionRange:n},er=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,o=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,s=o.memoizedProps,o=o.memoizedState,i=n.stateNode;try{var ut=ha(n.type,s,n.elementType===n.type);t=i.getSnapshotBeforeUpdate(ut,o),i.__reactInternalSnapshotBeforeUpdate=t}catch(it){wt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Gc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Gc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function Qy(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:zn(t,n),i&4&&dl(5,n);break;case 1:if(zn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){wt(n,n.return,d)}else{var s=ha(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){wt(n,n.return,d)}}i&64&&Yy(n),i&512&&hl(n,n.return);break;case 3:if(zn(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Dp(t,e)}catch(d){wt(n,n.return,d)}}break;case 27:e===null&&i&4&&ky(n);case 26:case 5:zn(t,n),e===null&&i&4&&Gy(n),i&512&&hl(n,n.return);break;case 12:zn(t,n);break;case 13:zn(t,n),i&4&&Jy(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=FT.bind(null,n),mA(t,n))));break;case 22:if(i=n.memoizedState!==null||mn,!i){e=e!==null&&e.memoizedState!==null||Xt,s=mn;var o=Xt;mn=i,(Xt=e)&&!o?Bn(t,n,(n.subtreeFlags&8772)!==0):zn(t,n),mn=s,Xt=o}break;case 30:break;default:zn(t,n)}}function Zy(t){var e=t.alternate;e!==null&&(t.alternate=null,Zy(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Qu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,ye=!1;function pn(t,e,n){for(n=n.child;n!==null;)Py(t,e,n),n=n.sibling}function Py(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(Bi,n)}catch{}switch(n.tag){case 26:Xt||Je(n,e),pn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xt||Je(n,e);var i=Ut,s=ye;Yn(n.type)&&(Ut=n.stateNode,ye=!1),pn(t,e,n),Tl(n.stateNode),Ut=i,ye=s;break;case 5:Xt||Je(n,e);case 6:if(i=Ut,s=ye,Ut=null,pn(t,e,n),Ut=i,ye=s,Ut!==null)if(ye)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(o){wt(n,e,o)}else try{Ut.removeChild(n.stateNode)}catch(o){wt(n,e,o)}break;case 18:Ut!==null&&(ye?(t=Ut,j0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),_l(t)):j0(Ut,n.stateNode));break;case 4:i=Ut,s=ye,Ut=n.stateNode.containerInfo,ye=!0,pn(t,e,n),Ut=i,ye=s;break;case 0:case 11:case 14:case 15:Xt||wn(2,n,e),Xt||wn(4,n,e),pn(t,e,n);break;case 1:Xt||(Je(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&qy(n,e,i)),pn(t,e,n);break;case 21:pn(t,e,n);break;case 22:Xt=(i=Xt)||n.memoizedState!==null,pn(t,e,n),Xt=i;break;default:pn(t,e,n)}}function Jy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_l(t)}catch(n){wt(e,e.return,n)}}function GT(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ky),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ky),e;default:throw Error(u(435,t.tag))}}function pc(t,e){var n=GT(t);e.forEach(function(i){var s=WT.bind(null,t,i);n.has(i)||(n.add(i),i.then(s,s))})}function Te(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],o=t,d=e,v=d;t:for(;v!==null;){switch(v.tag){case 27:if(Yn(v.type)){Ut=v.stateNode,ye=!1;break t}break;case 5:Ut=v.stateNode,ye=!1;break t;case 3:case 4:Ut=v.stateNode.containerInfo,ye=!0;break t}v=v.return}if(Ut===null)throw Error(u(160));Py(o,d,s),Ut=null,ye=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Fy(e,t),e=e.sibling}var qe=null;function Fy(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Te(e,t),Ae(t),i&4&&(wn(3,t,t.return),dl(3,t),wn(5,t,t.return));break;case 1:Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),i&64&&mn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=qe;if(Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),i&4){var o=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(i){case"title":o=s.getElementsByTagName("title")[0],(!o||o[Ni]||o[ue]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(i),s.head.insertBefore(o,s.querySelector("head > title"))),le(o,i,n),o[ue]=t,Ft(o),i=o;break t;case"link":var d=k0("link","href",s).get(i+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break e}}o=s.createElement(i),le(o,i,n),s.head.appendChild(o);break;case"meta":if(d=k0("meta","content",s).get(i+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break e}}o=s.createElement(i),le(o,i,n),s.head.appendChild(o);break;default:throw Error(u(468,i))}o[ue]=t,Ft(o),i=o}t.stateNode=i}else K0(s,t.type,t.stateNode);else t.stateNode=X0(s,i,t.memoizedProps);else o!==i?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,i===null?K0(s,t.type,t.stateNode):X0(s,i,t.memoizedProps)):i===null&&t.stateNode!==null&&fc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),n!==null&&i&4&&fc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),t.flags&32){s=t.stateNode;try{ja(s,"")}catch(_){wt(t,t.return,_)}}i&4&&t.stateNode!=null&&(s=t.memoizedProps,fc(t,s,n!==null?n.memoizedProps:s)),i&1024&&(mc=!0);break;case 6:if(Te(e,t),Ae(t),i&4){if(t.stateNode===null)throw Error(u(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(_){wt(t,t.return,_)}}break;case 3:if($s=null,s=qe,qe=Fs(e.containerInfo),Te(e,t),qe=s,Ae(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{_l(e.containerInfo)}catch(_){wt(t,t.return,_)}mc&&(mc=!1,Wy(t));break;case 4:i=qe,qe=Fs(t.stateNode.containerInfo),Te(e,t),Ae(t),qe=i;break;case 12:Te(e,t),Ae(t);break;case 13:Te(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(xc=Qe()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,pc(t,i)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,D=mn,B=Xt;if(mn=D||s,Xt=B||S,Te(e,t),Xt=B,mn=D,Ae(t),i&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||mn||Xt||ma(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(o=S.stateNode,s)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=S.stateNode;var N=S.memoizedProps.style,C=N!=null&&N.hasOwnProperty("display")?N.display:null;v.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(_){wt(S,S.return,_)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(_){wt(S,S.return,_)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,pc(t,n))));break;case 19:Te(e,t),Ae(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,pc(t,i)));break;case 30:break;case 21:break;default:Te(e,t),Ae(t)}}function Ae(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(Xy(i)){n=i;break}i=i.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=dc(t);Ns(t,o,s);break;case 5:var d=n.stateNode;n.flags&32&&(ja(d,""),n.flags&=-33);var v=dc(t);Ns(t,v,d);break;case 3:case 4:var S=n.stateNode.containerInfo,D=dc(t);hc(t,D,S);break;default:throw Error(u(161))}}catch(B){wt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Wy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Wy(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function zn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Qy(t,e.alternate,e),e=e.sibling}function ma(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:wn(4,e,e.return),ma(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&qy(e,e.return,n),ma(e);break;case 27:Tl(e.stateNode);case 26:case 5:Je(e,e.return),ma(e);break;case 22:e.memoizedState===null&&ma(e);break;case 30:ma(e);break;default:ma(e)}t=t.sibling}}function Bn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,s=t,o=e,d=o.flags;switch(o.tag){case 0:case 11:case 15:Bn(s,o,n),dl(4,o);break;case 1:if(Bn(s,o,n),i=o,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){wt(i,i.return,D)}if(i=o,s=i.updateQueue,s!==null){var v=i.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)Rp(S[s],v)}catch(D){wt(i,i.return,D)}}n&&d&64&&Yy(o),hl(o,o.return);break;case 27:ky(o);case 26:case 5:Bn(s,o,n),n&&i===null&&d&4&&Gy(o),hl(o,o.return);break;case 12:Bn(s,o,n);break;case 13:Bn(s,o,n),n&&d&4&&Jy(s,o);break;case 22:o.memoizedState===null&&Bn(s,o,n),hl(o,o.return);break;case 30:break;default:Bn(s,o,n)}e=e.sibling}}function yc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&$i(n))}function gc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$i(t))}function Fe(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$y(t,e,n,i),e=e.sibling}function $y(t,e,n,i){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,n,i),s&2048&&dl(9,e);break;case 1:Fe(t,e,n,i);break;case 3:Fe(t,e,n,i),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$i(t)));break;case 12:if(s&2048){Fe(t,e,n,i),t=e.stateNode;try{var o=e.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){wt(e,e.return,S)}}else Fe(t,e,n,i);break;case 13:Fe(t,e,n,i);break;case 23:break;case 22:o=e.stateNode,d=e.alternate,e.memoizedState!==null?o._visibility&2?Fe(t,e,n,i):ml(t,e):o._visibility&2?Fe(t,e,n,i):(o._visibility|=2,ei(t,e,n,i,(e.subtreeFlags&10256)!==0)),s&2048&&yc(d,e);break;case 24:Fe(t,e,n,i),s&2048&&gc(e.alternate,e);break;default:Fe(t,e,n,i)}}function ei(t,e,n,i,s){for(s=s&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var o=t,d=e,v=n,S=i,D=d.flags;switch(d.tag){case 0:case 11:case 15:ei(o,d,v,S,s),dl(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?ei(o,d,v,S,s):ml(o,d):(B._visibility|=2,ei(o,d,v,S,s)),s&&D&2048&&yc(d.alternate,d);break;case 24:ei(o,d,v,S,s),s&&D&2048&&gc(d.alternate,d);break;default:ei(o,d,v,S,s)}e=e.sibling}}function ml(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,s=i.flags;switch(i.tag){case 22:ml(n,i),s&2048&&yc(i.alternate,i);break;case 24:ml(n,i),s&2048&&gc(i.alternate,i);break;default:ml(n,i)}e=e.sibling}}var pl=8192;function ni(t){if(t.subtreeFlags&pl)for(t=t.child;t!==null;)Iy(t),t=t.sibling}function Iy(t){switch(t.tag){case 26:ni(t),t.flags&pl&&t.memoizedState!==null&&DA(qe,t.memoizedState,t.memoizedProps);break;case 5:ni(t);break;case 3:case 4:var e=qe;qe=Fs(t.stateNode.containerInfo),ni(t),qe=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=pl,pl=16777216,ni(t),pl=e):ni(t));break;default:ni(t)}}function t0(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function yl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];$t=i,n0(i,t)}t0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)e0(t),t=t.sibling}function e0(t){switch(t.tag){case 0:case 11:case 15:yl(t),t.flags&2048&&wn(9,t,t.return);break;case 3:yl(t);break;case 12:yl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ls(t)):yl(t);break;default:yl(t)}}function Ls(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];$t=i,n0(i,t)}t0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wn(8,e,e.return),Ls(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ls(e));break;default:Ls(e)}t=t.sibling}}function n0(t,e){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:wn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:$i(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,$t=i;else t:for(n=t;$t!==null;){i=$t;var s=i.sibling,o=i.return;if(Zy(i),i===n){$t=null;break t}if(s!==null){s.return=o,$t=s;break t}$t=o}}}var XT={getCacheForType:function(t){var e=oe(Pt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},kT=typeof WeakMap=="function"?WeakMap:Map,Mt=0,zt=null,ht=null,Tt=0,Rt=0,Ee=null,Un=!1,ai=!1,vc=!1,yn=0,Yt=0,jn=0,pa=0,bc=0,Ne=0,ii=0,gl=null,ge=null,Sc=!1,xc=0,Hs=1/0,Ys=null,Nn=null,ie=0,Ln=null,li=null,si=0,Tc=0,Ac=null,a0=null,vl=0,Ec=null;function Me(){if((Mt&2)!==0&&Tt!==0)return Tt&-Tt;if(z.T!==null){var t=Za;return t!==0?t:Vc()}return bm()}function i0(){Ne===0&&(Ne=(Tt&536870912)===0||Et?pm():536870912);var t=je.current;return t!==null&&(t.flags|=32),Ne}function Re(t,e,n){(t===zt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(ri(t,0),Hn(t,Tt,Ne,!1)),ji(t,n),((Mt&2)===0||t!==zt)&&(t===zt&&((Mt&2)===0&&(pa|=n),Yt===4&&Hn(t,Tt,Ne,!1)),We(t))}function l0(t,e,n){if((Mt&6)!==0)throw Error(u(327));var i=!n&&(e&124)===0&&(e&t.expiredLanes)===0||Ui(t,e),s=i?ZT(t,e):Dc(t,e,!0),o=i;do{if(s===0){ai&&!i&&Hn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!KT(n)){s=Dc(t,e,!1),o=!1;continue}if(s===2){if(o=e,t.errorRecoveryDisabledLanes&o)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var v=t;s=gl;var S=v.current.memoizedState.isDehydrated;if(S&&(ri(v,d).flags|=256),d=Dc(v,d,!1),d!==2){if(vc&&!S){v.errorRecoveryDisabledLanes|=o,pa|=o,s=4;break t}o=ge,ge=s,o!==null&&(ge===null?ge=o:ge.push.apply(ge,o))}s=d}if(o=!1,s!==2)continue}}if(s===1){ri(t,0),Hn(t,e,0,!0);break}t:{switch(i=t,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Hn(i,e,Ne,!Un);break t;case 2:ge=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(s=xc+300-Qe(),10<s)){if(Hn(i,e,Ne,!Un),Wl(i,0,!0)!==0)break t;i.timeoutHandle=B0(s0.bind(null,i,n,ge,Ys,Sc,e,Ne,pa,ii,Un,o,2,-0,0),s);break t}s0(i,n,ge,Ys,Sc,e,Ne,pa,ii,Un,o,0,-0,0)}}break}while(!0);We(t)}function s0(t,e,n,i,s,o,d,v,S,D,B,N,C,_){if(t.timeoutHandle=-1,N=e.subtreeFlags,(N&8192||(N&16785408)===16785408)&&(Ml={stylesheets:null,count:0,unsuspend:RA},Iy(e),N=CA(),N!==null)){t.cancelPendingCommit=N(h0.bind(null,t,e,o,n,i,s,d,v,S,B,1,C,_)),Hn(t,o,d,!D);return}h0(t,e,o,n,i,s,d,v,S)}function KT(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var s=n[i],o=s.getSnapshot;s=s.value;try{if(!Se(o(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Hn(t,e,n,i){e&=~bc,e&=~pa,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var s=e;0<s;){var o=31-be(s),d=1<<o;i[o]=-1,s&=~d}n!==0&&gm(t,n,e)}function qs(){return(Mt&6)===0?(bl(0),!1):!0}function Mc(){if(ht!==null){if(Rt===0)var t=ht.return;else t=ht,un=oa=null,Go(t),Ia=null,ol=0,t=ht;for(;t!==null;)Hy(t.alternate,t),t=t.return;ht=null}}function ri(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,oA(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Mc(),zt=t,ht=n=ln(t.current,null),Tt=e,Rt=0,Ee=null,Un=!1,ai=Ui(t,e),vc=!1,ii=Ne=bc=pa=jn=Yt=0,ge=gl=null,Sc=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var s=31-be(i),o=1<<s;e|=t[s],i&=~o}return yn=e,os(),n}function r0(t,e){ct=null,z.H=Cs,e===tl||e===vs?(e=Ep(),Rt=3):e===xp?(e=Ep(),Rt=4):Rt=e===My?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ee=e,ht===null&&(Yt=1,zs(t,we(e,t.current)))}function u0(){var t=z.H;return z.H=Cs,t===null?Cs:t}function o0(){var t=z.A;return z.A=XT,t}function Rc(){Yt=4,Un||(Tt&4194048)!==Tt&&je.current!==null||(ai=!0),(jn&134217727)===0&&(pa&134217727)===0||zt===null||Hn(zt,Tt,Ne,!1)}function Dc(t,e,n){var i=Mt;Mt|=2;var s=u0(),o=o0();(zt!==t||Tt!==e)&&(Ys=null,ri(t,e)),e=!1;var d=Yt;t:do try{if(Rt!==0&&ht!==null){var v=ht,S=Ee;switch(Rt){case 8:Mc(),d=6;break t;case 3:case 2:case 9:case 6:je.current===null&&(e=!0);var D=Rt;if(Rt=0,Ee=null,ui(t,v,S,D),n&&ai){d=0;break t}break;default:D=Rt,Rt=0,Ee=null,ui(t,v,S,D)}}QT(),d=Yt;break}catch(B){r0(t,B)}while(!0);return e&&t.shellSuspendCounter++,un=oa=null,Mt=i,z.H=s,z.A=o,ht===null&&(zt=null,Tt=0,os()),d}function QT(){for(;ht!==null;)c0(ht)}function ZT(t,e){var n=Mt;Mt|=2;var i=u0(),s=o0();zt!==t||Tt!==e?(Ys=null,Hs=Qe()+500,ri(t,e)):ai=Ui(t,e);t:do try{if(Rt!==0&&ht!==null){e=ht;var o=Ee;e:switch(Rt){case 1:Rt=0,Ee=null,ui(t,e,o,1);break;case 2:case 9:if(Tp(o)){Rt=0,Ee=null,f0(e);break}e=function(){Rt!==2&&Rt!==9||zt!==t||(Rt=7),We(t)},o.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:Tp(o)?(Rt=0,Ee=null,f0(e)):(Rt=0,Ee=null,ui(t,e,o,7));break;case 5:var d=null;switch(ht.tag){case 26:d=ht.memoizedState;case 5:case 27:var v=ht;if(!d||Q0(d)){Rt=0,Ee=null;var S=v.sibling;if(S!==null)ht=S;else{var D=v.return;D!==null?(ht=D,Gs(D)):ht=null}break e}}Rt=0,Ee=null,ui(t,e,o,5);break;case 6:Rt=0,Ee=null,ui(t,e,o,6);break;case 8:Mc(),Yt=6;break t;default:throw Error(u(462))}}PT();break}catch(B){r0(t,B)}while(!0);return un=oa=null,z.H=i,z.A=s,Mt=n,ht!==null?0:(zt=null,Tt=0,os(),Yt)}function PT(){for(;ht!==null&&!yx();)c0(ht)}function c0(t){var e=Ny(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?Gs(t):ht=e}function f0(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Vy(n,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=Vy(n,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:Go(e);default:Hy(n,e),e=ht=dp(e,yn),e=Ny(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?Gs(t):ht=e}function ui(t,e,n,i){un=oa=null,Go(e),Ia=null,ol=0;var s=e.return;try{if(NT(t,s,e,n,Tt)){Yt=1,zs(t,we(n,t.current)),ht=null;return}}catch(o){if(s!==null)throw ht=s,o;Yt=1,zs(t,we(n,t.current)),ht=null;return}e.flags&32768?(Et||i===1?t=!0:ai||(Tt&536870912)!==0?t=!1:(Un=t=!0,(i===2||i===9||i===3||i===6)&&(i=je.current,i!==null&&i.tag===13&&(i.flags|=16384))),d0(e,t)):Gs(e)}function Gs(t){var e=t;do{if((e.flags&32768)!==0){d0(e,Un);return}t=e.return;var n=HT(e.alternate,e,yn);if(n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);Yt===0&&(Yt=5)}function d0(t,e){do{var n=YT(t.alternate,t);if(n!==null){n.flags&=32767,ht=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=n}while(t!==null);Yt=6,ht=null}function h0(t,e,n,i,s,o,d,v,S){t.cancelPendingCommit=null;do Xs();while(ie!==0);if((Mt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(o=e.lanes|e.childLanes,o|=go,Rx(t,n,o,d,v,S),t===zt&&(ht=zt=null,Tt=0),li=e,Ln=t,si=n,Tc=o,Ac=s,a0=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,$T(Pl,function(){return v0(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=z.T,z.T=null,s=j.p,j.p=2,d=Mt,Mt|=4;try{qT(t,e,n)}finally{Mt=d,j.p=s,z.T=i}}ie=1,m0(),p0(),y0()}}function m0(){if(ie===1){ie=0;var t=Ln,e=li,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var i=j.p;j.p=2;var s=Mt;Mt|=4;try{Fy(e,t);var o=Hc,d=np(t.containerInfo),v=o.focusedElem,S=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&ep(v.ownerDocument.documentElement,v)){if(S!==null&&fo(v)){var D=S.start,B=S.end;if(B===void 0&&(B=D),"selectionStart"in v)v.selectionStart=D,v.selectionEnd=Math.min(B,v.value.length);else{var N=v.ownerDocument||document,C=N&&N.defaultView||window;if(C.getSelection){var _=C.getSelection(),ut=v.textContent.length,it=Math.min(S.start,ut),_t=S.end===void 0?it:Math.min(S.end,ut);!_.extend&&it>_t&&(d=_t,_t=it,it=d);var M=tp(v,it),E=tp(v,_t);if(M&&E&&(_.rangeCount!==1||_.anchorNode!==M.node||_.anchorOffset!==M.offset||_.focusNode!==E.node||_.focusOffset!==E.offset)){var R=N.createRange();R.setStart(M.node,M.offset),_.removeAllRanges(),it>_t?(_.addRange(R),_.extend(E.node,E.offset)):(R.setEnd(E.node,E.offset),_.addRange(R))}}}}for(N=[],_=v;_=_.parentNode;)_.nodeType===1&&N.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<N.length;v++){var U=N[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}er=!!Lc,Hc=Lc=null}finally{Mt=s,j.p=i,z.T=n}}t.current=e,ie=2}}function p0(){if(ie===2){ie=0;var t=Ln,e=li,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var i=j.p;j.p=2;var s=Mt;Mt|=4;try{Qy(t,e.alternate,e)}finally{Mt=s,j.p=i,z.T=n}}ie=3}}function y0(){if(ie===4||ie===3){ie=0,gx();var t=Ln,e=li,n=si,i=a0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ie=5:(ie=0,li=Ln=null,g0(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Nn=null),ku(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(Bi,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=z.T,s=j.p,j.p=2,z.T=null;try{for(var o=t.onRecoverableError,d=0;d<i.length;d++){var v=i[d];o(v.value,{componentStack:v.stack})}}finally{z.T=e,j.p=s}}(si&3)!==0&&Xs(),We(t),s=t.pendingLanes,(n&4194090)!==0&&(s&42)!==0?t===Ec?vl++:(vl=0,Ec=t):vl=0,bl(0)}}function g0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,$i(e)))}function Xs(t){return m0(),p0(),y0(),v0()}function v0(){if(ie!==5)return!1;var t=Ln,e=Tc;Tc=0;var n=ku(si),i=z.T,s=j.p;try{j.p=32>n?32:n,z.T=null,n=Ac,Ac=null;var o=Ln,d=si;if(ie=0,li=Ln=null,si=0,(Mt&6)!==0)throw Error(u(331));var v=Mt;if(Mt|=4,e0(o.current),$y(o,o.current,d,n),Mt=v,bl(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(Bi,o)}catch{}return!0}finally{j.p=s,z.T=i,g0(t,e)}}function b0(t,e,n){e=we(n,e),e=nc(t.stateNode,e,2),t=Cn(t,e,2),t!==null&&(ji(t,2),We(t))}function wt(t,e,n){if(t.tag===3)b0(t,t,n);else for(;e!==null;){if(e.tag===3){b0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Nn===null||!Nn.has(i))){t=we(n,t),n=Ay(2),i=Cn(e,n,2),i!==null&&(Ey(n,i,e,t),ji(i,2),We(i));break}}e=e.return}}function Cc(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new kT;var s=new Set;i.set(e,s)}else s=i.get(e),s===void 0&&(s=new Set,i.set(e,s));s.has(n)||(vc=!0,s.add(n),t=JT.bind(null,t,e,n),e.then(t,t))}function JT(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(Tt&n)===n&&(Yt===4||Yt===3&&(Tt&62914560)===Tt&&300>Qe()-xc?(Mt&2)===0&&ri(t,0):bc|=n,ii===Tt&&(ii=0)),We(t)}function S0(t,e){e===0&&(e=ym()),t=Xa(t,e),t!==null&&(ji(t,e),We(t))}function FT(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),S0(t,n)}function WT(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(e),S0(t,n)}function $T(t,e){return Yu(t,e)}var ks=null,oi=null,Oc=!1,Ks=!1,_c=!1,ya=0;function We(t){t!==oi&&t.next===null&&(oi===null?ks=oi=t:oi=oi.next=t),Ks=!0,Oc||(Oc=!0,tA())}function bl(t,e){if(!_c&&Ks){_c=!0;do for(var n=!1,i=ks;i!==null;){if(t!==0){var s=i.pendingLanes;if(s===0)var o=0;else{var d=i.suspendedLanes,v=i.pingedLanes;o=(1<<31-be(42|t)+1)-1,o&=s&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,E0(i,o))}else o=Tt,o=Wl(i,i===zt?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Ui(i,o)||(n=!0,E0(i,o));i=i.next}while(n);_c=!1}}function IT(){x0()}function x0(){Ks=Oc=!1;var t=0;ya!==0&&(uA()&&(t=ya),ya=0);for(var e=Qe(),n=null,i=ks;i!==null;){var s=i.next,o=T0(i,e);o===0?(i.next=null,n===null?ks=s:n.next=s,s===null&&(oi=n)):(n=i,(t!==0||(o&3)!==0)&&(Ks=!0)),i=s}bl(t)}function T0(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var d=31-be(o),v=1<<d,S=s[d];S===-1?((v&n)===0||(v&i)!==0)&&(s[d]=Mx(v,e)):S<=e&&(t.expiredLanes|=v),o&=~v}if(e=zt,n=Tt,n=Wl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&qu(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ui(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&qu(i),ku(n)){case 2:case 8:n=hm;break;case 32:n=Pl;break;case 268435456:n=mm;break;default:n=Pl}return i=A0.bind(null,t),n=Yu(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&qu(i),t.callbackPriority=2,t.callbackNode=null,2}function A0(t,e){if(ie!==0&&ie!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Xs()&&t.callbackNode!==n)return null;var i=Tt;return i=Wl(t,t===zt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(l0(t,i,e),T0(t,Qe()),t.callbackNode!=null&&t.callbackNode===n?A0.bind(null,t):null)}function E0(t,e){if(Xs())return null;l0(t,e,!0)}function tA(){cA(function(){(Mt&6)!==0?Yu(dm,IT):x0()})}function Vc(){return ya===0&&(ya=pm()),ya}function M0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ns(""+t)}function R0(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function eA(t,e,n,i,s){if(e==="submit"&&n&&n.stateNode===s){var o=M0((s[he]||null).action),d=i.submitter;d&&(e=(e=d[he]||null)?M0(e.formAction):d.getAttribute("formAction"),e!==null&&(o=e,d=null));var v=new ss("action","action",null,i,s);t.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ya!==0){var S=d?R0(s,d):new FormData(s);Wo(n,{pending:!0,data:S,method:s.method,action:o},null,S)}}else typeof o=="function"&&(v.preventDefault(),S=d?R0(s,d):new FormData(s),Wo(n,{pending:!0,data:S,method:s.method,action:o},o,S))},currentTarget:s}]})}}for(var wc=0;wc<yo.length;wc++){var zc=yo[wc],nA=zc.toLowerCase(),aA=zc[0].toUpperCase()+zc.slice(1);Ye(nA,"on"+aA)}Ye(lp,"onAnimationEnd"),Ye(sp,"onAnimationIteration"),Ye(rp,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(ST,"onTransitionRun"),Ye(xT,"onTransitionStart"),Ye(TT,"onTransitionCancel"),Ye(up,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sl="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(" "),iA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sl));function D0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],s=i.event;i=i.listeners;t:{var o=void 0;if(e)for(var d=i.length-1;0<=d;d--){var v=i[d],S=v.instance,D=v.currentTarget;if(v=v.listener,S!==o&&s.isPropagationStopped())break t;o=v,s.currentTarget=D;try{o(s)}catch(B){ws(B)}s.currentTarget=null,o=S}else for(d=0;d<i.length;d++){if(v=i[d],S=v.instance,D=v.currentTarget,v=v.listener,S!==o&&s.isPropagationStopped())break t;o=v,s.currentTarget=D;try{o(s)}catch(B){ws(B)}s.currentTarget=null,o=S}}}}function mt(t,e){var n=e[Ku];n===void 0&&(n=e[Ku]=new Set);var i=t+"__bubble";n.has(i)||(C0(e,t,2,!1),n.add(i))}function Bc(t,e,n){var i=0;e&&(i|=4),C0(n,t,i,e)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Uc(t){if(!t[Qs]){t[Qs]=!0,xm.forEach(function(n){n!=="selectionchange"&&(iA.has(n)||Bc(n,!1,t),Bc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qs]||(e[Qs]=!0,Bc("selectionchange",!1,e))}}function C0(t,e,n,i){switch($0(e)){case 2:var s=VA;break;case 8:s=wA;break;default:s=Jc}n=s.bind(null,e,n,t),s=void 0,!no||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),i?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function jc(t,e,n,i,s){var o=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var v=i.stateNode.containerInfo;if(v===s)break;if(d===4)for(d=i.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;v!==null;){if(d=_a(v),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){i=o=d;continue t}v=v.parentNode}}i=i.return}Um(function(){var D=o,B=to(n),N=[];t:{var C=op.get(t);if(C!==void 0){var _=ss,ut=t;switch(t){case"keypress":if(is(n)===0)break t;case"keydown":case"keyup":_=$x;break;case"focusin":ut="focus",_=so;break;case"focusout":ut="blur",_=so;break;case"beforeblur":case"afterblur":_=so;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Lm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Yx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=eT;break;case lp:case sp:case rp:_=Xx;break;case up:_=aT;break;case"scroll":case"scrollend":_=Lx;break;case"wheel":_=lT;break;case"copy":case"cut":case"paste":_=Kx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ym;break;case"toggle":case"beforetoggle":_=rT}var it=(e&4)!==0,_t=!it&&(t==="scroll"||t==="scrollend"),M=it?C!==null?C+"Capture":null:C;it=[];for(var E=D,R;E!==null;){var U=E;if(R=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||R===null||M===null||(U=Hi(E,M),U!=null&&it.push(xl(E,U,R))),_t)break;E=E.return}0<it.length&&(C=new _(C,ut,null,n,B),N.push({event:C,listeners:it}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",C&&n!==Iu&&(ut=n.relatedTarget||n.fromElement)&&(_a(ut)||ut[Oa]))break t;if((_||C)&&(C=B.window===B?B:(C=B.ownerDocument)?C.defaultView||C.parentWindow:window,_?(ut=n.relatedTarget||n.toElement,_=D,ut=ut?_a(ut):null,ut!==null&&(_t=h(ut),it=ut.tag,ut!==_t||it!==5&&it!==27&&it!==6)&&(ut=null)):(_=null,ut=D),_!==ut)){if(it=Lm,U="onMouseLeave",M="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(it=Ym,U="onPointerLeave",M="onPointerEnter",E="pointer"),_t=_==null?C:Li(_),R=ut==null?C:Li(ut),C=new it(U,E+"leave",_,n,B),C.target=_t,C.relatedTarget=R,U=null,_a(B)===D&&(it=new it(M,E+"enter",ut,n,B),it.target=R,it.relatedTarget=_t,U=it),_t=U,_&&ut)e:{for(it=_,M=ut,E=0,R=it;R;R=ci(R))E++;for(R=0,U=M;U;U=ci(U))R++;for(;0<E-R;)it=ci(it),E--;for(;0<R-E;)M=ci(M),R--;for(;E--;){if(it===M||M!==null&&it===M.alternate)break e;it=ci(it),M=ci(M)}it=null}else it=null;_!==null&&O0(N,C,_,it,!1),ut!==null&&_t!==null&&O0(N,_t,ut,it,!0)}}t:{if(C=D?Li(D):window,_=C.nodeName&&C.nodeName.toLowerCase(),_==="select"||_==="input"&&C.type==="file")var tt=Pm;else if(Qm(C))if(Jm)tt=gT;else{tt=pT;var dt=mT}else _=C.nodeName,!_||_.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?D&&$u(D.elementType)&&(tt=Pm):tt=yT;if(tt&&(tt=tt(t,D))){Zm(N,tt,n,B);break t}dt&&dt(t,C,D),t==="focusout"&&D&&C.type==="number"&&D.memoizedProps.value!=null&&Wu(C,"number",C.value)}switch(dt=D?Li(D):window,t){case"focusin":(Qm(dt)||dt.contentEditable==="true")&&(Ya=dt,ho=D,Zi=null);break;case"focusout":Zi=ho=Ya=null;break;case"mousedown":mo=!0;break;case"contextmenu":case"mouseup":case"dragend":mo=!1,ap(N,n,B);break;case"selectionchange":if(bT)break;case"keydown":case"keyup":ap(N,n,B)}var nt;if(uo)t:{switch(t){case"compositionstart":var lt="onCompositionStart";break t;case"compositionend":lt="onCompositionEnd";break t;case"compositionupdate":lt="onCompositionUpdate";break t}lt=void 0}else Ha?km(t,n)&&(lt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(lt="onCompositionStart");lt&&(qm&&n.locale!=="ko"&&(Ha||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Ha&&(nt=jm()):(En=B,ao="value"in En?En.value:En.textContent,Ha=!0)),dt=Zs(D,lt),0<dt.length&&(lt=new Hm(lt,t,null,n,B),N.push({event:lt,listeners:dt}),nt?lt.data=nt:(nt=Km(n),nt!==null&&(lt.data=nt)))),(nt=oT?cT(t,n):fT(t,n))&&(lt=Zs(D,"onBeforeInput"),0<lt.length&&(dt=new Hm("onBeforeInput","beforeinput",null,n,B),N.push({event:dt,listeners:lt}),dt.data=nt)),eA(N,t,D,n,B)}D0(N,e)})}function xl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zs(t,e){for(var n=e+"Capture",i=[];t!==null;){var s=t,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=Hi(t,n),s!=null&&i.unshift(xl(t,s,o)),s=Hi(t,e),s!=null&&i.push(xl(t,s,o))),t.tag===3)return i;t=t.return}return[]}function ci(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function O0(t,e,n,i,s){for(var o=e._reactName,d=[];n!==null&&n!==i;){var v=n,S=v.alternate,D=v.stateNode;if(v=v.tag,S!==null&&S===i)break;v!==5&&v!==26&&v!==27||D===null||(S=D,s?(D=Hi(n,o),D!=null&&d.unshift(xl(n,D,S))):s||(D=Hi(n,o),D!=null&&d.push(xl(n,D,S)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var lA=/\r\n?/g,sA=/\u0000|\uFFFD/g;function _0(t){return(typeof t=="string"?t:""+t).replace(lA,`
|
|
41
|
+
`).replace(sA,"")}function V0(t,e){return e=_0(e),_0(t)===e}function Ps(){}function Ot(t,e,n,i,s,o){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||ja(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&ja(t,""+i);break;case"className":Il(t,"class",i);break;case"tabIndex":Il(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Il(t,n,i);break;case"style":zm(t,i,o);break;case"data":if(e!=="object"){Il(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=ns(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&Ot(t,e,"name",s.name,s,null),Ot(t,e,"formEncType",s.formEncType,s,null),Ot(t,e,"formMethod",s.formMethod,s,null),Ot(t,e,"formTarget",s.formTarget,s,null)):(Ot(t,e,"encType",s.encType,s,null),Ot(t,e,"method",s.method,s,null),Ot(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=ns(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Ps);break;case"onScroll":i!=null&&mt("scroll",t);break;case"onScrollEnd":i!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=ns(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":mt("beforetoggle",t),mt("toggle",t),$l(t,"popover",i);break;case"xlinkActuate":nn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":nn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":nn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":nn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":nn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":nn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":nn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":nn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":nn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":$l(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=jx.get(n)||n,$l(t,n,i))}}function Nc(t,e,n,i,s,o){switch(n){case"style":zm(t,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof i=="string"?ja(t,i):(typeof i=="number"||typeof i=="bigint")&&ja(t,""+i);break;case"onScroll":i!=null&&mt("scroll",t);break;case"onScrollEnd":i!=null&&mt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Ps);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tm.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),o=t[he]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,s),typeof i=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,s);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):$l(t,n,i)}}}function le(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var i=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,o,d,n,null)}}s&&Ot(t,e,"srcSet",n.srcSet,n,null),i&&Ot(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var v=o=d=s=null,S=null,D=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":s=B;break;case"type":d=B;break;case"checked":S=B;break;case"defaultChecked":D=B;break;case"value":o=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,e));break;default:Ot(t,e,i,B,n,null)}}Om(t,o,v,S,D,d,s,!1),ts(t);return;case"select":mt("invalid",t),i=d=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":i=v;default:Ot(t,e,s,v,n,null)}e=o,n=d,t.multiple=!!i,e!=null?Ua(t,!!i,e,!1):n!=null&&Ua(t,!!i,n,!0);return;case"textarea":mt("invalid",t),o=s=i=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":i=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ot(t,e,d,v,n,null)}Vm(t,i,s,o),ts(t);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(i=n[S],i!=null))switch(S){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ot(t,e,S,i,n,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(i=0;i<Sl.length;i++)mt(Sl[i],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(i=n[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,D,i,n,null)}return;default:if($u(e)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&Nc(t,e,B,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&Ot(t,e,v,i,n,null))}function rA(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,d=null,v=null,S=null,D=null,B=null;for(_ in n){var N=n[_];if(n.hasOwnProperty(_)&&N!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":S=N;default:i.hasOwnProperty(_)||Ot(t,e,_,null,i,N)}}for(var C in i){var _=i[C];if(N=n[C],i.hasOwnProperty(C)&&(_!=null||N!=null))switch(C){case"type":o=_;break;case"name":s=_;break;case"checked":D=_;break;case"defaultChecked":B=_;break;case"value":d=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:_!==N&&Ot(t,e,C,_,i,N)}}Fu(t,d,v,S,D,B,o,s);return;case"select":_=d=v=C=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":_=S;default:i.hasOwnProperty(o)||Ot(t,e,o,null,i,S)}for(s in i)if(o=i[s],S=n[s],i.hasOwnProperty(s)&&(o!=null||S!=null))switch(s){case"value":C=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==S&&Ot(t,e,s,o,i,S)}e=v,n=d,i=_,C!=null?Ua(t,!!n,C,!1):!!i!=!!n&&(e!=null?Ua(t,!!n,e,!0):Ua(t,!!n,n?[]:"",!1));return;case"textarea":_=C=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ot(t,e,v,null,i,s)}for(d in i)if(s=i[d],o=n[d],i.hasOwnProperty(d)&&(s!=null||o!=null))switch(d){case"value":C=s;break;case"defaultValue":_=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Ot(t,e,d,s,i,o)}_m(t,C,_);return;case"option":for(var ut in n)if(C=n[ut],n.hasOwnProperty(ut)&&C!=null&&!i.hasOwnProperty(ut))switch(ut){case"selected":t.selected=!1;break;default:Ot(t,e,ut,null,i,C)}for(S in i)if(C=i[S],_=n[S],i.hasOwnProperty(S)&&C!==_&&(C!=null||_!=null))switch(S){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Ot(t,e,S,C,i,_)}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 it in n)C=n[it],n.hasOwnProperty(it)&&C!=null&&!i.hasOwnProperty(it)&&Ot(t,e,it,null,i,C);for(D in i)if(C=i[D],_=n[D],i.hasOwnProperty(D)&&C!==_&&(C!=null||_!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(u(137,e));break;default:Ot(t,e,D,C,i,_)}return;default:if($u(e)){for(var _t in n)C=n[_t],n.hasOwnProperty(_t)&&C!==void 0&&!i.hasOwnProperty(_t)&&Nc(t,e,_t,void 0,i,C);for(B in i)C=i[B],_=n[B],!i.hasOwnProperty(B)||C===_||C===void 0&&_===void 0||Nc(t,e,B,C,i,_);return}}for(var M in n)C=n[M],n.hasOwnProperty(M)&&C!=null&&!i.hasOwnProperty(M)&&Ot(t,e,M,null,i,C);for(N in i)C=i[N],_=n[N],!i.hasOwnProperty(N)||C===_||C==null&&_==null||Ot(t,e,N,C,i,_)}var Lc=null,Hc=null;function Js(t){return t.nodeType===9?t:t.ownerDocument}function w0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function z0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Yc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var qc=null;function uA(){var t=window.event;return t&&t.type==="popstate"?t===qc?!1:(qc=t,!0):(qc=null,!1)}var B0=typeof setTimeout=="function"?setTimeout:void 0,oA=typeof clearTimeout=="function"?clearTimeout:void 0,U0=typeof Promise=="function"?Promise:void 0,cA=typeof queueMicrotask=="function"?queueMicrotask:typeof U0<"u"?function(t){return U0.resolve(null).then(t).catch(fA)}:B0;function fA(t){setTimeout(function(){throw t})}function Yn(t){return t==="head"}function j0(t,e){var n=e,i=0,s=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(0<i&&8>i){n=i;var d=t.ownerDocument;if(n&1&&Tl(d.documentElement),n&2&&Tl(d.body),n&4)for(n=d.head,Tl(n),d=n.firstChild;d;){var v=d.nextSibling,S=d.nodeName;d[Ni]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||n.removeChild(d),d=v}}if(s===0){t.removeChild(o),_l(e);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:i=n.charCodeAt(0)-48;else i=0;n=o}while(n);_l(e)}function Gc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Gc(n),Qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function dA(t,e,n,i){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[Ni])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function hA(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ge(t.nextSibling),t===null))return null;return t}function Xc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function mA(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var kc=null;function N0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function L0(t,e,n){switch(e=Js(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function Tl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Qu(t)}var Le=new Map,H0=new Set;function Fs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gn=j.d;j.d={f:pA,r:yA,D:gA,C:vA,L:bA,m:SA,X:TA,S:xA,M:AA};function pA(){var t=gn.f(),e=qs();return t||e}function yA(t){var e=Va(t);e!==null&&e.tag===5&&e.type==="form"?ly(e):gn.r(t)}var fi=typeof document>"u"?null:document;function Y0(t,e,n){var i=fi;if(i&&typeof e=="string"&&e){var s=Ve(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),H0.has(s)||(H0.add(s),t={rel:t,crossOrigin:n,href:e},i.querySelector(s)===null&&(e=i.createElement("link"),le(e,"link",t),Ft(e),i.head.appendChild(e)))}}function gA(t){gn.D(t),Y0("dns-prefetch",t,null)}function vA(t,e){gn.C(t,e),Y0("preconnect",t,e)}function bA(t,e,n){gn.L(t,e,n);var i=fi;if(i&&t&&e){var s='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ve(n.imageSizes)+'"]')):s+='[href="'+Ve(t)+'"]';var o=s;switch(e){case"style":o=di(t);break;case"script":o=hi(t)}Le.has(o)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Le.set(o,t),i.querySelector(s)!==null||e==="style"&&i.querySelector(Al(o))||e==="script"&&i.querySelector(El(o))||(e=i.createElement("link"),le(e,"link",t),Ft(e),i.head.appendChild(e)))}}function SA(t,e){gn.m(t,e);var n=fi;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ve(i)+'"][href="'+Ve(t)+'"]',o=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=hi(t)}if(!Le.has(o)&&(t=g({rel:"modulepreload",href:t},e),Le.set(o,t),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(El(o)))return}i=n.createElement("link"),le(i,"link",t),Ft(i),n.head.appendChild(i)}}}function xA(t,e,n){gn.S(t,e,n);var i=fi;if(i&&t){var s=wa(i).hoistableStyles,o=di(t);e=e||"default";var d=s.get(o);if(!d){var v={loading:0,preload:null};if(d=i.querySelector(Al(o)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Le.get(o))&&Kc(t,n);var S=d=i.createElement("link");Ft(S),le(S,"link",t),S._p=new Promise(function(D,B){S.onload=D,S.onerror=B}),S.addEventListener("load",function(){v.loading|=1}),S.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ws(d,e,i)}d={type:"stylesheet",instance:d,count:1,state:v},s.set(o,d)}}}function TA(t,e){gn.X(t,e);var n=fi;if(n&&t){var i=wa(n).hoistableScripts,s=hi(t),o=i.get(s);o||(o=n.querySelector(El(s)),o||(t=g({src:t,async:!0},e),(e=Le.get(s))&&Qc(t,e),o=n.createElement("script"),Ft(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function AA(t,e){gn.M(t,e);var n=fi;if(n&&t){var i=wa(n).hoistableScripts,s=hi(t),o=i.get(s);o||(o=n.querySelector(El(s)),o||(t=g({src:t,async:!0,type:"module"},e),(e=Le.get(s))&&Qc(t,e),o=n.createElement("script"),Ft(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function q0(t,e,n,i){var s=(s=k.current)?Fs(s):null;if(!s)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=di(n.href),n=wa(s).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=di(n.href);var o=wa(s).hoistableStyles,d=o.get(t);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,d),(o=s.querySelector(Al(t)))&&!o._p&&(d.instance=o,d.state.loading=5),Le.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Le.set(t,n),o||EA(s,t,n,d.state))),e&&i===null)throw Error(u(528,""));return d}if(e&&i!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=hi(n),n=wa(s).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function di(t){return'href="'+Ve(t)+'"'}function Al(t){return'link[rel="stylesheet"]['+t+"]"}function G0(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function EA(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),le(e,"link",n),Ft(e),t.head.appendChild(e))}function hi(t){return'[src="'+Ve(t)+'"]'}function El(t){return"script[async]"+t}function X0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ve(n.href)+'"]');if(i)return e.instance=i,Ft(i),i;var s=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Ft(i),le(i,"style",s),Ws(i,n.precedence,t),e.instance=i;case"stylesheet":s=di(n.href);var o=t.querySelector(Al(s));if(o)return e.state.loading|=4,e.instance=o,Ft(o),o;i=G0(n),(s=Le.get(s))&&Kc(i,s),o=(t.ownerDocument||t).createElement("link"),Ft(o);var d=o;return d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),le(o,"link",i),e.state.loading|=4,Ws(o,n.precedence,t),e.instance=o;case"script":return o=hi(n.src),(s=t.querySelector(El(o)))?(e.instance=s,Ft(s),s):(i=n,(s=Le.get(o))&&(i=g({},n),Qc(i,s)),t=t.ownerDocument||t,s=t.createElement("script"),Ft(s),le(s,"link",i),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,Ws(i,n.precedence,t));return e.instance}function Ws(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,o=s,d=0;d<i.length;d++){var v=i[d];if(v.dataset.precedence===e)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Kc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Qc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var $s=null;function k0(t,e,n){if($s===null){var i=new Map,s=$s=new Map;s.set(n,i)}else s=$s,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var o=n[s];if(!(o[Ni]||o[ue]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(e)||"";d=t+d;var v=i.get(d);v?v.push(o):i.set(d,[o])}}return i}function K0(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function MA(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Q0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ml=null;function RA(){}function DA(t,e,n){if(Ml===null)throw Error(u(475));var i=Ml;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var s=di(n.href),o=t.querySelector(Al(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(i.count++,i=Is.bind(i),t.then(i,i)),e.state.loading|=4,e.instance=o,Ft(o);return}o=t.ownerDocument||t,n=G0(n),(s=Le.get(s))&&Kc(n,s),o=o.createElement("link"),Ft(o);var d=o;d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),le(o,"link",n),e.instance=o}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(i.count++,e=Is.bind(i),t.addEventListener("load",e),t.addEventListener("error",e))}}function CA(){if(Ml===null)throw Error(u(475));var t=Ml;return t.stylesheets&&t.count===0&&Zc(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Zc(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function Is(){if(this.count--,this.count===0){if(this.stylesheets)Zc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var tr=null;function Zc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,tr=new Map,e.forEach(OA,t),tr=null,Is.call(t))}function OA(t,e){if(!(e.state.loading&4)){var n=tr.get(t);if(n)var i=n.get(null);else{n=new Map,tr.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var d=s[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),i=d)}i&&n.set(null,i)}s=e.instance,d=s.getAttribute("data-precedence"),o=n.get(d)||i,o===i&&n.set(null,s),n.set(d,s),this.count++,i=Is.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),o?o.parentNode.insertBefore(s,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var Rl={$$typeof:G,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function _A(t,e,n,i,s,o,d,v){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Z0(t,e,n,i,s,o,d,v,S,D,B,N){return t=new _A(t,e,n,d,v,S,D,N),e=1,o===!0&&(e|=24),o=xe(3,null,null,e),t.current=o,o.stateNode=t,e=Co(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:e},wo(o),t}function P0(t){return t?(t=ka,t):ka}function J0(t,e,n,i,s,o){s=P0(s),i.context===null?i.context=s:i.pendingContext=s,i=Dn(e),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Cn(t,i,e),n!==null&&(Re(n,t,e),nl(n,t,e))}function F0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Pc(t,e){F0(t,e),(t=t.alternate)&&F0(t,e)}function W0(t){if(t.tag===13){var e=Xa(t,67108864);e!==null&&Re(e,t,67108864),Pc(t,67108864)}}var er=!0;function VA(t,e,n,i){var s=z.T;z.T=null;var o=j.p;try{j.p=2,Jc(t,e,n,i)}finally{j.p=o,z.T=s}}function wA(t,e,n,i){var s=z.T;z.T=null;var o=j.p;try{j.p=8,Jc(t,e,n,i)}finally{j.p=o,z.T=s}}function Jc(t,e,n,i){if(er){var s=Fc(i);if(s===null)jc(t,e,i,nr,n),I0(t,i);else if(BA(s,t,e,n,i))i.stopPropagation();else if(I0(t,i),e&4&&-1<zA.indexOf(t)){for(;s!==null;){var o=Va(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=In(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var S=1<<31-be(d);v.entanglements[1]|=S,d&=~S}We(o),(Mt&6)===0&&(Hs=Qe()+500,bl(0))}}break;case 13:v=Xa(o,2),v!==null&&Re(v,o,2),qs(),Pc(o,2)}if(o=Fc(i),o===null&&jc(t,e,i,nr,n),o===s)break;s=o}s!==null&&i.stopPropagation()}else jc(t,e,i,null,n)}}function Fc(t){return t=to(t),Wc(t)}var nr=null;function Wc(t){if(nr=null,t=_a(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return nr=t,null}function $0(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(vx()){case dm:return 2;case hm:return 8;case Pl:case bx:return 32;case mm:return 268435456;default:return 32}default:return 32}}var $c=!1,qn=null,Gn=null,Xn=null,Dl=new Map,Cl=new Map,kn=[],zA="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 I0(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":Dl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(e.pointerId)}}function Ol(t,e,n,i,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Va(e),e!==null&&W0(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function BA(t,e,n,i,s){switch(e){case"focusin":return qn=Ol(qn,t,e,n,i,s),!0;case"dragenter":return Gn=Ol(Gn,t,e,n,i,s),!0;case"mouseover":return Xn=Ol(Xn,t,e,n,i,s),!0;case"pointerover":var o=s.pointerId;return Dl.set(o,Ol(Dl.get(o)||null,t,e,n,i,s)),!0;case"gotpointercapture":return o=s.pointerId,Cl.set(o,Ol(Cl.get(o)||null,t,e,n,i,s)),!0}return!1}function tg(t){var e=_a(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Dx(t.priority,function(){if(n.tag===13){var i=Me();i=Xu(i);var s=Xa(n,i);s!==null&&Re(s,n,i),Pc(n,i)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ar(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Fc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Iu=i,n.target.dispatchEvent(i),Iu=null}else return e=Va(n),e!==null&&W0(e),t.blockedOn=n,!1;e.shift()}return!0}function eg(t,e,n){ar(t)&&n.delete(e)}function UA(){$c=!1,qn!==null&&ar(qn)&&(qn=null),Gn!==null&&ar(Gn)&&(Gn=null),Xn!==null&&ar(Xn)&&(Xn=null),Dl.forEach(eg),Cl.forEach(eg)}function ir(t,e){t.blockedOn===e&&(t.blockedOn=null,$c||($c=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,UA)))}var lr=null;function ng(t){lr!==t&&(lr=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){lr===t&&(lr=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],s=t[e+2];if(typeof i!="function"){if(Wc(i||n)===null)continue;break}var o=Va(n);o!==null&&(t.splice(e,3),e-=3,Wo(o,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function _l(t){function e(S){return ir(S,t)}qn!==null&&ir(qn,t),Gn!==null&&ir(Gn,t),Xn!==null&&ir(Xn,t),Dl.forEach(e),Cl.forEach(e);for(var n=0;n<kn.length;n++){var i=kn[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<kn.length&&(n=kn[0],n.blockedOn===null);)tg(n),n.blockedOn===null&&kn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],o=n[i+1],d=s[he]||null;if(typeof o=="function")d||ng(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,d=o[he]||null)v=d.formAction;else if(Wc(s)!==null)continue}else v=d.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),ng(n)}}}function Ic(t){this._internalRoot=t}sr.prototype.render=Ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,i=Me();J0(n,i,t,e,null,null)},sr.prototype.unmount=Ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;J0(t.current,2,null,t,null,null),qs(),e[Oa]=null}};function sr(t){this._internalRoot=t}sr.prototype.unstable_scheduleHydration=function(t){if(t){var e=bm();t={blockedOn:null,target:t,priority:e};for(var n=0;n<kn.length&&e!==0&&e<kn[n].priority;n++);kn.splice(n,0,t),n===0&&tg(t)}};var ag=l.version;if(ag!=="19.1.1")throw Error(u(527,ag,"19.1.1"));j.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=m(e),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var jA={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rr.isDisabled&&rr.supportsFiber)try{Bi=rr.inject(jA),ve=rr}catch{}}return mi.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,i="",s=by,o=Sy,d=xy,v=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(v=e.unstable_transitionCallbacks)),e=Z0(t,1,!1,null,null,n,i,s,o,d,v,null),t[Oa]=e.current,Uc(t),new Ic(e)},mi.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var i=!1,s="",o=by,d=Sy,v=xy,S=null,D=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks),n.formState!==void 0&&(D=n.formState)),e=Z0(t,1,!0,e,n??null,i,s,o,d,v,S,D),e.context=P0(null),n=e.current,i=Me(),i=Xu(i),s=Dn(i),s.callback=null,Cn(n,s,i),n=i,e.current.lanes=n,ji(e,n),We(e),t[Oa]=e.current,Uc(t),new sr(e)},mi.version="19.1.1",mi}var of;function cg(){if(of)return cr.exports;of=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),cr.exports=og(),cr.exports}var fg=cg();const cf=ga(fg);var mr={exports:{}},pi={};/**
|
|
42
|
+
* @license React
|
|
43
|
+
* react-jsx-runtime.production.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/var ff;function dg(){if(ff)return pi;ff=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(u,c,h){var f=null;if(h!==void 0&&(f=""+h),c.key!==void 0&&(f=""+c.key),"key"in c){h={};for(var y in c)y!=="key"&&(h[y]=c[y])}else h=c;return c=h.ref,{$$typeof:a,type:u,key:f,ref:c!==void 0?c:null,props:h}}return pi.Fragment=l,pi.jsx=r,pi.jsxs=r,pi}var df;function hg(){return df||(df=1,mr.exports=dg()),mr.exports}var X=hg();const mg=({settings:a,onClick:l})=>{const[r,u]=pt.useState(!1),c=()=>{const h=new CustomEvent("chatButtonClick",{detail:{settings:a}});document.dispatchEvent(h),l?.()};return X.jsxs("button",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e3,backgroundColor:a.baseSettings.primaryBrandColor,color:"white",fontSize:"14px",fontWeight:"bold",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',padding:"15px 20px",border:"none",borderRadius:"50px",boxShadow:r?"0 6px 20px rgba(0,0,0,0.2)":"0 4px 12px rgba(0,0,0,0.15)",cursor:"pointer",transition:"all 0.2s ease-in-out",transform:r?"scale(1.05)":"scale(1)",display:"flex",alignItems:"center",gap:"8px",outline:"none",userSelect:"none"},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onClick:c,onFocus:()=>u(!0),onBlur:()=>u(!1),children:[a.aiChatSettings?.aiAssistantAvatar&&X.jsx("img",{src:a.aiChatSettings.aiAssistantAvatar,alt:"AI Assistant",style:{width:"20px",height:"20px",borderRadius:"50%",objectFit:"cover",flexShrink:0},onError:h=>{h.currentTarget.style.display="none"}}),"Ask AI"]})},pg=({settings:a,onClose:l})=>{const[r,u]=pt.useState(!0),[c,h]=pt.useState(""),f=()=>{u(!1),l?.()},y=m=>{h(m)};return pt.useEffect(()=>{const m=p=>{p.key==="Escape"&&f()};if(r)return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),pt.useEffect(()=>{if(r)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[r]),r?X.jsxs(X.Fragment,{children:[X.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(4px)",zIndex:999,animation:"fadeIn 0.2s ease-out"},onClick:f}),X.jsxs("div",{style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"16px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",zIndex:1e3,width:"90%",maxWidth:"500px",maxHeight:"80vh",overflow:"hidden",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',animation:"slideIn 0.3s ease-out"},onClick:m=>m.stopPropagation(),children:[X.jsxs("div",{style:{padding:"24px 24px 20px 24px",borderBottom:"1px solid #f1f5f9",display:"flex",justifyContent:"space-between",alignItems:"center",background:`linear-gradient(135deg, ${a.baseSettings.primaryBrandColor}10, ${a.baseSettings.primaryBrandColor}05)`},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[a.aiChatSettings?.aiAssistantAvatar&&X.jsx("img",{src:a.aiChatSettings.aiAssistantAvatar,alt:"AI Assistant",style:{width:"32px",height:"32px",borderRadius:"50%",objectFit:"cover"},onError:m=>{m.currentTarget.style.display="none"}}),X.jsx("h3",{style:{margin:0,color:a.baseSettings.primaryBrandColor,fontSize:"18px",fontWeight:"600",letterSpacing:"-0.025em"},children:a.baseSettings.organizationDisplayName})]}),X.jsx("button",{onClick:f,style:{background:"none",border:"none",fontSize:"20px",cursor:"pointer",color:"#64748b",padding:"8px",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease"},onMouseEnter:m=>{m.currentTarget.style.backgroundColor="#f1f5f9",m.currentTarget.style.color="#334155"},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="transparent",m.currentTarget.style.color="#64748b"},children:"×"})]}),X.jsxs("div",{style:{padding:"24px",maxHeight:"60vh",overflowY:"auto"},children:[X.jsxs("div",{style:{position:"relative",marginBottom:"24px"},children:[X.jsx("input",{type:"text",placeholder:"Ask a question...",value:c,onChange:m=>h(m.target.value),style:{width:"100%",padding:"14px 16px",border:"2px solid #e2e8f0",borderRadius:"12px",fontSize:"16px",fontFamily:"inherit",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease",backgroundColor:"#fafafa"},onFocus:m=>{m.currentTarget.style.borderColor=a.baseSettings.primaryBrandColor,m.currentTarget.style.backgroundColor="white"},onBlur:m=>{m.currentTarget.style.borderColor="#e2e8f0",m.currentTarget.style.backgroundColor="#fafafa"},autoFocus:!0}),X.jsx("button",{style:{position:"absolute",right:"8px",top:"50%",transform:"translateY(-50%)",backgroundColor:a.baseSettings.primaryBrandColor,color:"white",border:"none",borderRadius:"8px",padding:"8px 12px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"opacity 0.15s ease"},onMouseEnter:m=>{m.currentTarget.style.opacity="0.9"},onMouseLeave:m=>{m.currentTarget.style.opacity="1"},onClick:()=>{console.log("Search for:",c)},children:"Search"})]}),a.aiChatSettings?.exampleQuestions&&a.aiChatSettings.exampleQuestions.length>0&&X.jsxs("div",{children:[X.jsx("p",{style:{margin:"0 0 16px 0",fontWeight:"600",fontSize:"14px",color:"#475569",letterSpacing:"-0.025em"},children:"Popular questions:"}),X.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:a.aiChatSettings.exampleQuestions.map((m,p)=>X.jsx("button",{onClick:()=>y(m),style:{display:"block",width:"100%",padding:"12px 16px",border:"1px solid #e2e8f0",backgroundColor:"white",borderRadius:"10px",cursor:"pointer",textAlign:"left",fontSize:"14px",fontFamily:"inherit",color:"#334155",transition:"all 0.15s ease",lineHeight:"1.4"},onMouseEnter:g=>{g.currentTarget.style.backgroundColor="#f8fafc",g.currentTarget.style.borderColor=a.baseSettings.primaryBrandColor,g.currentTarget.style.transform="translateY(-1px)",g.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.1)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="white",g.currentTarget.style.borderColor="#e2e8f0",g.currentTarget.style.transform="translateY(0)",g.currentTarget.style.boxShadow="none"},children:m},p))})]})]})]}),X.jsx("style",{children:`
|
|
2
50
|
@keyframes fadeIn {
|
|
3
51
|
from { opacity: 0; }
|
|
4
52
|
to { opacity: 1; }
|
|
@@ -14,4 +62,85 @@
|
|
|
14
62
|
transform: translate(-50%, -50%) scale(1);
|
|
15
63
|
}
|
|
16
64
|
}
|
|
17
|
-
`})]}):null};
|
|
65
|
+
`})]}):null};var pr={exports:{}},ft={};/**
|
|
66
|
+
* @license React
|
|
67
|
+
* react.production.min.js
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license found in the
|
|
72
|
+
* LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/var hf;function yg(){if(hf)return ft;hf=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function A(b){return b===null||typeof b!="object"?null:(b=x&&b[x]||b["@@iterator"],typeof b=="function"?b:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,K={};function Z(b,O,V){this.props=b,this.context=O,this.refs=K,this.updater=V||w}Z.prototype.isReactComponent={},Z.prototype.setState=function(b,O){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,O,"setState")},Z.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function Q(){}Q.prototype=Z.prototype;function q(b,O,V){this.props=b,this.context=O,this.refs=K,this.updater=V||w}var G=q.prototype=new Q;G.constructor=q,L(G,Z.prototype),G.isPureReactComponent=!0;var I=Array.isArray,Y=Object.prototype.hasOwnProperty,F={current:null},et={key:!0,ref:!0,__self:!0,__source:!0};function W(b,O,V){var H,J={},k=null,yt=null;if(O!=null)for(H in O.ref!==void 0&&(yt=O.ref),O.key!==void 0&&(k=""+O.key),O)Y.call(O,H)&&!et.hasOwnProperty(H)&&(J[H]=O[H]);var rt=arguments.length-2;if(rt===1)J.children=V;else if(1<rt){for(var bt=Array(rt),ne=0;ne<rt;ne++)bt[ne]=arguments[ne+2];J.children=bt}if(b&&b.defaultProps)for(H in rt=b.defaultProps,rt)J[H]===void 0&&(J[H]=rt[H]);return{$$typeof:a,type:b,key:k,ref:yt,props:J,_owner:F.current}}function gt(b,O){return{$$typeof:a,type:b.type,key:O,ref:b.ref,props:b.props,_owner:b._owner}}function St(b){return typeof b=="object"&&b!==null&&b.$$typeof===a}function vt(b){var O={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(V){return O[V]})}var xt=/\/+/g;function Vt(b,O){return typeof b=="object"&&b!==null&&b.key!=null?vt(""+b.key):O.toString(36)}function Kt(b,O,V,H,J){var k=typeof b;(k==="undefined"||k==="boolean")&&(b=null);var yt=!1;if(b===null)yt=!0;else switch(k){case"string":case"number":yt=!0;break;case"object":switch(b.$$typeof){case a:case l:yt=!0}}if(yt)return yt=b,J=J(yt),b=H===""?"."+Vt(yt,0):H,I(J)?(V="",b!=null&&(V=b.replace(xt,"$&/")+"/"),Kt(J,O,V,"",function(ne){return ne})):J!=null&&(St(J)&&(J=gt(J,V+(!J.key||yt&&yt.key===J.key?"":(""+J.key).replace(xt,"$&/")+"/")+b)),O.push(J)),1;if(yt=0,H=H===""?".":H+":",I(b))for(var rt=0;rt<b.length;rt++){k=b[rt];var bt=H+Vt(k,rt);yt+=Kt(k,O,V,bt,J)}else if(bt=A(b),typeof bt=="function")for(b=bt.call(b),rt=0;!(k=b.next()).done;)k=k.value,bt=H+Vt(k,rt++),yt+=Kt(k,O,V,bt,J);else if(k==="object")throw O=String(b),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return yt}function Dt(b,O,V){if(b==null)return b;var H=[],J=0;return Kt(b,H,"","",function(k){return O.call(V,k,J++)}),H}function z(b){if(b._status===-1){var O=b._result;O=O(),O.then(function(V){(b._status===0||b._status===-1)&&(b._status=1,b._result=V)},function(V){(b._status===0||b._status===-1)&&(b._status=2,b._result=V)}),b._status===-1&&(b._status=0,b._result=O)}if(b._status===1)return b._result.default;throw b._result}var j={current:null},P={transition:null},at={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:P,ReactCurrentOwner:F};function T(){throw Error("act(...) is not supported in production builds of React.")}return ft.Children={map:Dt,forEach:function(b,O,V){Dt(b,function(){O.apply(this,arguments)},V)},count:function(b){var O=0;return Dt(b,function(){O++}),O},toArray:function(b){return Dt(b,function(O){return O})||[]},only:function(b){if(!St(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},ft.Component=Z,ft.Fragment=r,ft.Profiler=c,ft.PureComponent=q,ft.StrictMode=u,ft.Suspense=m,ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=at,ft.act=T,ft.cloneElement=function(b,O,V){if(b==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+b+".");var H=L({},b.props),J=b.key,k=b.ref,yt=b._owner;if(O!=null){if(O.ref!==void 0&&(k=O.ref,yt=F.current),O.key!==void 0&&(J=""+O.key),b.type&&b.type.defaultProps)var rt=b.type.defaultProps;for(bt in O)Y.call(O,bt)&&!et.hasOwnProperty(bt)&&(H[bt]=O[bt]===void 0&&rt!==void 0?rt[bt]:O[bt])}var bt=arguments.length-2;if(bt===1)H.children=V;else if(1<bt){rt=Array(bt);for(var ne=0;ne<bt;ne++)rt[ne]=arguments[ne+2];H.children=rt}return{$$typeof:a,type:b.type,key:J,ref:k,props:H,_owner:yt}},ft.createContext=function(b){return b={$$typeof:f,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},b.Provider={$$typeof:h,_context:b},b.Consumer=b},ft.createElement=W,ft.createFactory=function(b){var O=W.bind(null,b);return O.type=b,O},ft.createRef=function(){return{current:null}},ft.forwardRef=function(b){return{$$typeof:y,render:b}},ft.isValidElement=St,ft.lazy=function(b){return{$$typeof:g,_payload:{_status:-1,_result:b},_init:z}},ft.memo=function(b,O){return{$$typeof:p,type:b,compare:O===void 0?null:O}},ft.startTransition=function(b){var O=P.transition;P.transition={};try{b()}finally{P.transition=O}},ft.unstable_act=T,ft.useCallback=function(b,O){return j.current.useCallback(b,O)},ft.useContext=function(b){return j.current.useContext(b)},ft.useDebugValue=function(){},ft.useDeferredValue=function(b){return j.current.useDeferredValue(b)},ft.useEffect=function(b,O){return j.current.useEffect(b,O)},ft.useId=function(){return j.current.useId()},ft.useImperativeHandle=function(b,O,V){return j.current.useImperativeHandle(b,O,V)},ft.useInsertionEffect=function(b,O){return j.current.useInsertionEffect(b,O)},ft.useLayoutEffect=function(b,O){return j.current.useLayoutEffect(b,O)},ft.useMemo=function(b,O){return j.current.useMemo(b,O)},ft.useReducer=function(b,O,V){return j.current.useReducer(b,O,V)},ft.useRef=function(b){return j.current.useRef(b)},ft.useState=function(b){return j.current.useState(b)},ft.useSyncExternalStore=function(b,O,V){return j.current.useSyncExternalStore(b,O,V)},ft.useTransition=function(){return j.current.useTransition()},ft.version="18.3.1",ft}var mf;function pf(){return mf||(mf=1,pr.exports=yg()),pr.exports}var $=pf();/**
|
|
74
|
+
* @license lucide-react v0.544.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const gg=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vg=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,u)=>u?u.toUpperCase():r.toLowerCase()),yf=a=>{const l=vg(a);return l.charAt(0).toUpperCase()+l.slice(1)},gf=(...a)=>a.filter((l,r,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===r).join(" ").trim(),bg=a=>{for(const l in a)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
|
|
79
|
+
* @license lucide-react v0.544.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/var Sg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
84
|
+
* @license lucide-react v0.544.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const xg=$.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:c="",children:h,iconNode:f,...y},m)=>$.createElement("svg",{ref:m,...Sg,width:l,height:l,stroke:a,strokeWidth:u?Number(r)*24/Number(l):r,className:gf("lucide",c),...!h&&!bg(y)&&{"aria-hidden":"true"},...y},[...f.map(([p,g])=>$.createElement(p,g)),...Array.isArray(h)?h:[h]]));/**
|
|
89
|
+
* @license lucide-react v0.544.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const yr=(a,l)=>{const r=$.forwardRef(({className:u,...c},h)=>$.createElement(xg,{ref:h,iconNode:l,className:gf(`lucide-${gg(yf(a))}`,`lucide-${a}`,u),...c}));return r.displayName=yf(a),r};/**
|
|
94
|
+
* @license lucide-react v0.544.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const Tg=yr("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
99
|
+
* @license lucide-react v0.544.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const Ag=yr("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
104
|
+
* @license lucide-react v0.544.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const Eg=yr("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var gr={exports:{}},yi={};/**
|
|
109
|
+
* @license React
|
|
110
|
+
* react-jsx-runtime.production.min.js
|
|
111
|
+
*
|
|
112
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the MIT license found in the
|
|
115
|
+
* LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/var vf;function Mg(){if(vf)return yi;vf=1;var a=pf(),l=Symbol.for("react.element"),r=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function f(y,m,p){var g,x={},A=null,w=null;p!==void 0&&(A=""+p),m.key!==void 0&&(A=""+m.key),m.ref!==void 0&&(w=m.ref);for(g in m)u.call(m,g)&&!h.hasOwnProperty(g)&&(x[g]=m[g]);if(y&&y.defaultProps)for(g in m=y.defaultProps,m)x[g]===void 0&&(x[g]=m[g]);return{$$typeof:l,type:y,key:A,ref:w,props:x,_owner:c.current}}return yi.Fragment=r,yi.jsx=f,yi.jsxs=f,yi}var bf;function Rg(){return bf||(bf=1,gr.exports=Mg()),gr.exports}var Ie=Rg();const vr=$.createContext({});function br(a){const l=$.useRef(null);return l.current===null&&(l.current=a()),l.current}const Sr=typeof window<"u",Sf=Sr?$.useLayoutEffect:$.useEffect,Vl=$.createContext(null);function xr(a,l){a.indexOf(l)===-1&&a.push(l)}function Tr(a,l){const r=a.indexOf(l);r>-1&&a.splice(r,1)}const tn=(a,l,r)=>r>l?l:r<a?a:r;let Ar=()=>{};const en={},xf=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Tf(a){return typeof a=="object"&&a!==null}const Af=a=>/^0[^.\s]+$/u.test(a);function Er(a){let l;return()=>(l===void 0&&(l=a()),l)}const De=a=>a,Dg=(a,l)=>r=>l(a(r)),gi=(...a)=>a.reduce(Dg),vi=(a,l,r)=>{const u=l-a;return u===0?1:(r-a)/u};class Mr{constructor(){this.subscriptions=[]}add(l){return xr(this.subscriptions,l),()=>Tr(this.subscriptions,l)}notify(l,r,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,r,u);else for(let h=0;h<c;h++){const f=this.subscriptions[h];f&&f(l,r,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Xe=a=>a*1e3,ke=a=>a/1e3;function Ef(a,l){return l?a*(1e3/l):0}const Mf=(a,l,r)=>(((1-3*r+3*l)*a+(3*r-6*l))*a+3*l)*a,Cg=1e-7,Og=12;function _g(a,l,r,u,c){let h,f,y=0;do f=l+(r-l)/2,h=Mf(f,u,c)-a,h>0?r=f:l=f;while(Math.abs(h)>Cg&&++y<Og);return f}function bi(a,l,r,u){if(a===l&&r===u)return De;const c=h=>_g(h,0,1,a,r);return h=>h===0||h===1?h:Mf(c(h),l,u)}const Rf=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,Df=a=>l=>1-a(1-l),Cf=bi(.33,1.53,.69,.99),Rr=Df(Cf),Of=Rf(Rr),_f=a=>(a*=2)<1?.5*Rr(a):.5*(2-Math.pow(2,-10*(a-1))),Dr=a=>1-Math.sin(Math.acos(a)),Vf=Df(Dr),wf=Rf(Dr),Vg=bi(.42,0,1,1),wg=bi(0,0,.58,1),zf=bi(.42,0,.58,1),zg=a=>Array.isArray(a)&&typeof a[0]!="number",Bf=a=>Array.isArray(a)&&typeof a[0]=="number",Bg={linear:De,easeIn:Vg,easeInOut:zf,easeOut:wg,circIn:Dr,circInOut:wf,circOut:Vf,backIn:Rr,backInOut:Of,backOut:Cf,anticipate:_f},Ug=a=>typeof a=="string",Uf=a=>{if(Bf(a)){Ar(a.length===4);const[l,r,u,c]=a;return bi(l,r,u,c)}else if(Ug(a))return Bg[a];return a},wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jg(a,l){let r=new Set,u=new Set,c=!1,h=!1;const f=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function m(g){f.has(g)&&(p.schedule(g),a()),g(y)}const p={schedule:(g,x=!1,A=!1)=>{const L=A&&c?r:u;return x&&f.add(g),L.has(g)||L.add(g),g},cancel:g=>{u.delete(g),f.delete(g)},process:g=>{if(y=g,c){h=!0;return}c=!0,[r,u]=[u,r],r.forEach(m),r.clear(),c=!1,h&&(h=!1,p.process(g))}};return p}const Ng=40;function jf(a,l){let r=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>r=!0,f=wl.reduce((G,I)=>(G[I]=jg(h),G),{}),{setup:y,read:m,resolveKeyframes:p,preUpdate:g,update:x,preRender:A,render:w,postRender:L}=f,K=()=>{const G=en.useManualTiming?c.timestamp:performance.now();r=!1,en.useManualTiming||(c.delta=u?1e3/60:Math.max(Math.min(G-c.timestamp,Ng),1)),c.timestamp=G,c.isProcessing=!0,y.process(c),m.process(c),p.process(c),g.process(c),x.process(c),A.process(c),w.process(c),L.process(c),c.isProcessing=!1,r&&l&&(u=!1,a(K))},Z=()=>{r=!0,u=!0,c.isProcessing||a(K)};return{schedule:wl.reduce((G,I)=>{const Y=f[I];return G[I]=(F,et=!1,W=!1)=>(r||Z(),Y.schedule(F,et,W)),G},{}),cancel:G=>{for(let I=0;I<wl.length;I++)f[wl[I]].cancel(G)},state:c,steps:f}}const{schedule:Bt,cancel:vn,state:te,steps:Cr}=jf(typeof requestAnimationFrame<"u"?requestAnimationFrame:De,!0);let zl;function Lg(){zl=void 0}const de={now:()=>(zl===void 0&&de.set(te.isProcessing||en.useManualTiming?te.timestamp:performance.now()),zl),set:a=>{zl=a,queueMicrotask(Lg)}},Nf=a=>l=>typeof l=="string"&&l.startsWith(a),Or=Nf("--"),Hg=Nf("var(--"),_r=a=>Hg(a)?Yg.test(a.split("/*")[0].trim()):!1,Yg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,va={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Si={...va,transform:a=>tn(0,1,a)},Bl={...va,default:1},xi=a=>Math.round(a*1e5)/1e5,Vr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qg(a){return a==null}const Gg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wr=(a,l)=>r=>!!(typeof r=="string"&&Gg.test(r)&&r.startsWith(a)||l&&!qg(r)&&Object.prototype.hasOwnProperty.call(r,l)),Lf=(a,l,r)=>u=>{if(typeof u!="string")return u;const[c,h,f,y]=u.match(Vr);return{[a]:parseFloat(c),[l]:parseFloat(h),[r]:parseFloat(f),alpha:y!==void 0?parseFloat(y):1}},Xg=a=>tn(0,255,a),zr={...va,transform:a=>Math.round(Xg(a))},Qn={test:wr("rgb","red"),parse:Lf("red","green","blue"),transform:({red:a,green:l,blue:r,alpha:u=1})=>"rgba("+zr.transform(a)+", "+zr.transform(l)+", "+zr.transform(r)+", "+xi(Si.transform(u))+")"};function kg(a){let l="",r="",u="",c="";return a.length>5?(l=a.substring(1,3),r=a.substring(3,5),u=a.substring(5,7),c=a.substring(7,9)):(l=a.substring(1,2),r=a.substring(2,3),u=a.substring(3,4),c=a.substring(4,5),l+=l,r+=r,u+=u,c+=c),{red:parseInt(l,16),green:parseInt(r,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Br={test:wr("#"),parse:kg,transform:Qn.transform},Ti=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),bn=Ti("deg"),Ke=Ti("%"),st=Ti("px"),Kg=Ti("vh"),Qg=Ti("vw"),Hf={...Ke,parse:a=>Ke.parse(a)/100,transform:a=>Ke.transform(a*100)},ba={test:wr("hsl","hue"),parse:Lf("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:r,alpha:u=1})=>"hsla("+Math.round(a)+", "+Ke.transform(xi(l))+", "+Ke.transform(xi(r))+", "+xi(Si.transform(u))+")"},kt={test:a=>Qn.test(a)||Br.test(a)||ba.test(a),parse:a=>Qn.test(a)?Qn.parse(a):ba.test(a)?ba.parse(a):Br.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Qn.transform(a):ba.transform(a),getAnimatableNone:a=>{const l=kt.parse(a);return l.alpha=0,kt.transform(l)}},Zg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pg(a){return isNaN(a)&&typeof a=="string"&&(a.match(Vr)?.length||0)+(a.match(Zg)?.length||0)>0}const Yf="number",qf="color",Jg="var",Fg="var(",Gf="${}",Wg=/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 Ai(a){const l=a.toString(),r=[],u={color:[],number:[],var:[]},c=[];let h=0;const y=l.replace(Wg,m=>(kt.test(m)?(u.color.push(h),c.push(qf),r.push(kt.parse(m))):m.startsWith(Fg)?(u.var.push(h),c.push(Jg),r.push(m)):(u.number.push(h),c.push(Yf),r.push(parseFloat(m))),++h,Gf)).split(Gf);return{values:r,split:y,indexes:u,types:c}}function Xf(a){return Ai(a).values}function kf(a){const{split:l,types:r}=Ai(a),u=l.length;return c=>{let h="";for(let f=0;f<u;f++)if(h+=l[f],c[f]!==void 0){const y=r[f];y===Yf?h+=xi(c[f]):y===qf?h+=kt.transform(c[f]):h+=c[f]}return h}}const $g=a=>typeof a=="number"?0:kt.test(a)?kt.getAnimatableNone(a):a;function Ig(a){const l=Xf(a);return kf(a)(l.map($g))}const Sn={test:Pg,parse:Xf,createTransformer:kf,getAnimatableNone:Ig};function Ur(a,l,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?a+(l-a)*6*r:r<1/2?l:r<2/3?a+(l-a)*(2/3-r)*6:a}function tv({hue:a,saturation:l,lightness:r,alpha:u}){a/=360,l/=100,r/=100;let c=0,h=0,f=0;if(!l)c=h=f=r;else{const y=r<.5?r*(1+l):r+l-r*l,m=2*r-y;c=Ur(m,y,a+1/3),h=Ur(m,y,a),f=Ur(m,y,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:u}}function Ul(a,l){return r=>r>0?l:a}const jt=(a,l,r)=>a+(l-a)*r,jr=(a,l,r)=>{const u=a*a,c=r*(l*l-u)+u;return c<0?0:Math.sqrt(c)},ev=[Br,Qn,ba],nv=a=>ev.find(l=>l.test(a));function Kf(a){const l=nv(a);if(!l)return!1;let r=l.parse(a);return l===ba&&(r=tv(r)),r}const Qf=(a,l)=>{const r=Kf(a),u=Kf(l);if(!r||!u)return Ul(a,l);const c={...r};return h=>(c.red=jr(r.red,u.red,h),c.green=jr(r.green,u.green,h),c.blue=jr(r.blue,u.blue,h),c.alpha=jt(r.alpha,u.alpha,h),Qn.transform(c))},Nr=new Set(["none","hidden"]);function av(a,l){return Nr.has(a)?r=>r<=0?a:l:r=>r>=1?l:a}function iv(a,l){return r=>jt(a,l,r)}function Lr(a){return typeof a=="number"?iv:typeof a=="string"?_r(a)?Ul:kt.test(a)?Qf:rv:Array.isArray(a)?Zf:typeof a=="object"?kt.test(a)?Qf:lv:Ul}function Zf(a,l){const r=[...a],u=r.length,c=a.map((h,f)=>Lr(h)(h,l[f]));return h=>{for(let f=0;f<u;f++)r[f]=c[f](h);return r}}function lv(a,l){const r={...a,...l},u={};for(const c in r)a[c]!==void 0&&l[c]!==void 0&&(u[c]=Lr(a[c])(a[c],l[c]));return c=>{for(const h in u)r[h]=u[h](c);return r}}function sv(a,l){const r=[],u={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const h=l.types[c],f=a.indexes[h][u[h]],y=a.values[f]??0;r[c]=y,u[h]++}return r}const rv=(a,l)=>{const r=Sn.createTransformer(l),u=Ai(a),c=Ai(l);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Nr.has(a)&&!c.values.length||Nr.has(l)&&!u.values.length?av(a,l):gi(Zf(sv(u,c),c.values),r):Ul(a,l)};function Pf(a,l,r){return typeof a=="number"&&typeof l=="number"&&typeof r=="number"?jt(a,l,r):Lr(a)(a,l)}const uv=a=>{const l=({timestamp:r})=>a(r);return{start:(r=!0)=>Bt.update(l,r),stop:()=>vn(l),now:()=>te.isProcessing?te.timestamp:de.now()}},Jf=(a,l,r=10)=>{let u="";const c=Math.max(Math.round(l/r),2);for(let h=0;h<c;h++)u+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},jl=2e4;function Hr(a){let l=0;const r=50;let u=a.next(l);for(;!u.done&&l<jl;)l+=r,u=a.next(l);return l>=jl?1/0:l}function ov(a,l=100,r){const u=r({...a,keyframes:[0,l]}),c=Math.min(Hr(u),jl);return{type:"keyframes",ease:h=>u.next(c*h).value/l,duration:ke(c)}}const cv=5;function Ff(a,l,r){const u=Math.max(l-cv,0);return Ef(r-a(u),l-u)}const Lt={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},Yr=.001;function fv({duration:a=Lt.duration,bounce:l=Lt.bounce,velocity:r=Lt.velocity,mass:u=Lt.mass}){let c,h,f=1-l;f=tn(Lt.minDamping,Lt.maxDamping,f),a=tn(Lt.minDuration,Lt.maxDuration,ke(a)),f<1?(c=p=>{const g=p*f,x=g*a,A=g-r,w=qr(p,f),L=Math.exp(-x);return Yr-A/w*L},h=p=>{const x=p*f*a,A=x*r+r,w=Math.pow(f,2)*Math.pow(p,2)*a,L=Math.exp(-x),K=qr(Math.pow(p,2),f);return(-c(p)+Yr>0?-1:1)*((A-w)*L)/K}):(c=p=>{const g=Math.exp(-p*a),x=(p-r)*a+1;return-Yr+g*x},h=p=>{const g=Math.exp(-p*a),x=(r-p)*(a*a);return g*x});const y=5/a,m=hv(c,h,y);if(a=Xe(a),isNaN(m))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:a};{const p=Math.pow(m,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const dv=12;function hv(a,l,r){let u=r;for(let c=1;c<dv;c++)u=u-a(u)/l(u);return u}function qr(a,l){return a*Math.sqrt(1-l*l)}const mv=["duration","bounce"],pv=["stiffness","damping","mass"];function Wf(a,l){return l.some(r=>a[r]!==void 0)}function yv(a){let l={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...a};if(!Wf(a,pv)&&Wf(a,mv))if(a.visualDuration){const r=a.visualDuration,u=2*Math.PI/(r*1.2),c=u*u,h=2*tn(.05,1,1-(a.bounce||0))*Math.sqrt(c);l={...l,mass:Lt.mass,stiffness:c,damping:h}}else{const r=fv(a);l={...l,...r,mass:Lt.mass},l.isResolvedFromDuration=!0}return l}function Nl(a=Lt.visualDuration,l=Lt.bounce){const r=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:u,restDelta:c}=r;const h=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],y={done:!1,value:h},{stiffness:m,damping:p,mass:g,duration:x,velocity:A,isResolvedFromDuration:w}=yv({...r,velocity:-ke(r.velocity||0)}),L=A||0,K=p/(2*Math.sqrt(m*g)),Z=f-h,Q=ke(Math.sqrt(m/g)),q=Math.abs(Z)<5;u||(u=q?Lt.restSpeed.granular:Lt.restSpeed.default),c||(c=q?Lt.restDelta.granular:Lt.restDelta.default);let G;if(K<1){const Y=qr(Q,K);G=F=>{const et=Math.exp(-K*Q*F);return f-et*((L+K*Q*Z)/Y*Math.sin(Y*F)+Z*Math.cos(Y*F))}}else if(K===1)G=Y=>f-Math.exp(-Q*Y)*(Z+(L+Q*Z)*Y);else{const Y=Q*Math.sqrt(K*K-1);G=F=>{const et=Math.exp(-K*Q*F),W=Math.min(Y*F,300);return f-et*((L+K*Q*Z)*Math.sinh(W)+Y*Z*Math.cosh(W))/Y}}const I={calculatedDuration:w&&x||null,next:Y=>{const F=G(Y);if(w)y.done=Y>=x;else{let et=Y===0?L:0;K<1&&(et=Y===0?Xe(L):Ff(G,Y,F));const W=Math.abs(et)<=u,gt=Math.abs(f-F)<=c;y.done=W&>}return y.value=y.done?f:F,y},toString:()=>{const Y=Math.min(Hr(I),jl),F=Jf(et=>I.next(Y*et).value,Y,30);return Y+"ms "+F},toTransition:()=>{}};return I}Nl.applyToOptions=a=>{const l=ov(a,100,Nl);return a.ease=l.ease,a.duration=Xe(l.duration),a.type="keyframes",a};function Gr({keyframes:a,velocity:l=0,power:r=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:f,min:y,max:m,restDelta:p=.5,restSpeed:g}){const x=a[0],A={done:!1,value:x},w=W=>y!==void 0&&W<y||m!==void 0&&W>m,L=W=>y===void 0?m:m===void 0||Math.abs(y-W)<Math.abs(m-W)?y:m;let K=r*l;const Z=x+K,Q=f===void 0?Z:f(Z);Q!==Z&&(K=Q-x);const q=W=>-K*Math.exp(-W/u),G=W=>Q+q(W),I=W=>{const gt=q(W),St=G(W);A.done=Math.abs(gt)<=p,A.value=A.done?Q:St};let Y,F;const et=W=>{w(A.value)&&(Y=W,F=Nl({keyframes:[A.value,L(A.value)],velocity:Ff(G,W,A.value),damping:c,stiffness:h,restDelta:p,restSpeed:g}))};return et(0),{calculatedDuration:null,next:W=>{let gt=!1;return!F&&Y===void 0&&(gt=!0,I(W),et(W)),Y!==void 0&&W>=Y?F.next(W-Y):(!gt&&I(W),A)}}}function gv(a,l,r){const u=[],c=r||en.mix||Pf,h=a.length-1;for(let f=0;f<h;f++){let y=c(a[f],a[f+1]);if(l){const m=Array.isArray(l)?l[f]||De:l;y=gi(m,y)}u.push(y)}return u}function vv(a,l,{clamp:r=!0,ease:u,mixer:c}={}){const h=a.length;if(Ar(h===l.length),h===1)return()=>l[0];if(h===2&&l[0]===l[1])return()=>l[1];const f=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),l=[...l].reverse());const y=gv(l,u,c),m=y.length,p=g=>{if(f&&g<a[0])return l[0];let x=0;if(m>1)for(;x<a.length-2&&!(g<a[x+1]);x++);const A=vi(a[x],a[x+1],g);return y[x](A)};return r?g=>p(tn(a[0],a[h-1],g)):p}function bv(a,l){const r=a[a.length-1];for(let u=1;u<=l;u++){const c=vi(0,l,u);a.push(jt(r,1,c))}}function Sv(a){const l=[0];return bv(l,a.length-1),l}function xv(a,l){return a.map(r=>r*l)}function Tv(a,l){return a.map(()=>l||zf).splice(0,a.length-1)}function Ei({duration:a=300,keyframes:l,times:r,ease:u="easeInOut"}){const c=zg(u)?u.map(Uf):Uf(u),h={done:!1,value:l[0]},f=xv(r&&r.length===l.length?r:Sv(l),a),y=vv(f,l,{ease:Array.isArray(c)?c:Tv(l,c)});return{calculatedDuration:a,next:m=>(h.value=y(m),h.done=m>=a,h)}}const Av=a=>a!==null;function Xr(a,{repeat:l,repeatType:r="loop"},u,c=1){const h=a.filter(Av),y=c<0||l&&r!=="loop"&&l%2===1?0:h.length-1;return!y||u===void 0?h[y]:u}const Ev={decay:Gr,inertia:Gr,tween:Ei,keyframes:Ei,spring:Nl};function $f(a){typeof a.type=="string"&&(a.type=Ev[a.type])}class kr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,r){return this.finished.then(l,r)}}const Mv=a=>a/100;class Kr extends kr{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;$f(l);const{type:r=Ei,repeat:u=0,repeatDelay:c=0,repeatType:h,velocity:f=0}=l;let{keyframes:y}=l;const m=r||Ei;m!==Ei&&typeof y[0]!="number"&&(this.mixKeyframes=gi(Mv,Pf(y[0],y[1])),y=[0,100]);const p=m({...l,keyframes:y});h==="mirror"&&(this.mirroredGenerator=m({...l,keyframes:[...y].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=Hr(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=p}updateTime(l){const r=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(l,r=!1){const{generator:u,totalDuration:c,mixKeyframes:h,mirroredGenerator:f,resolvedDuration:y,calculatedDuration:m}=this;if(this.startTime===null)return u.next(0);const{delay:p=0,keyframes:g,repeat:x,repeatType:A,repeatDelay:w,type:L,onUpdate:K,finalKeyframe:Z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),r?this.currentTime=l:this.updateTime(l);const Q=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?Q<0:Q>c;this.currentTime=Math.max(Q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,I=u;if(x){const W=Math.min(this.currentTime,c)/y;let gt=Math.floor(W),St=W%1;!St&&W>=1&&(St=1),St===1&>--,gt=Math.min(gt,x+1),!!(gt%2)&&(A==="reverse"?(St=1-St,w&&(St-=w/y)):A==="mirror"&&(I=f)),G=tn(0,1,St)*y}const Y=q?{done:!1,value:g[0]}:I.next(G);h&&(Y.value=h(Y.value));let{done:F}=Y;!q&&m!==null&&(F=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const et=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return et&&L!==Gr&&(Y.value=Xr(g,this.options,Z,this.speed)),K&&K(Y.value),et&&this.finish(),Y}then(l,r){return this.finished.then(l,r)}get duration(){return ke(this.calculatedDuration)}get time(){return ke(this.currentTime)}set time(l){l=Xe(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(de.now());const r=this.playbackSpeed!==l;this.playbackSpeed=l,r&&(this.time=ke(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=uv,startTime:r}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=r??u),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(de.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function Rv(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const Zn=a=>a*180/Math.PI,Qr=a=>{const l=Zn(Math.atan2(a[1],a[0]));return Zr(l)},Dv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Qr,rotateZ:Qr,skewX:a=>Zn(Math.atan(a[1])),skewY:a=>Zn(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Zr=a=>(a=a%360,a<0&&(a+=360),a),If=Qr,td=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),ed=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Cv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:td,scaleY:ed,scale:a=>(td(a)+ed(a))/2,rotateX:a=>Zr(Zn(Math.atan2(a[6],a[5]))),rotateY:a=>Zr(Zn(Math.atan2(-a[2],a[0]))),rotateZ:If,rotate:If,skewX:a=>Zn(Math.atan(a[4])),skewY:a=>Zn(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Pr(a){return a.includes("scale")?1:0}function Jr(a,l){if(!a||a==="none")return Pr(l);const r=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(r)u=Cv,c=r;else{const y=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=Dv,c=y}if(!c)return Pr(l);const h=u[l],f=c[1].split(",").map(_v);return typeof h=="function"?h(f):f[h]}const Ov=(a,l)=>{const{transform:r="none"}=getComputedStyle(a);return Jr(r,l)};function _v(a){return parseFloat(a.trim())}const Sa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xa=new Set(Sa),nd=a=>a===va||a===st,Vv=new Set(["x","y","z"]),wv=Sa.filter(a=>!Vv.has(a));function zv(a){const l=[];return wv.forEach(r=>{const u=a.getValue(r);u!==void 0&&(l.push([r,u.get()]),u.set(r.startsWith("scale")?1:0))}),l}const Pn={width:({x:a},{paddingLeft:l="0",paddingRight:r="0"})=>a.max-a.min-parseFloat(l)-parseFloat(r),height:({y:a},{paddingTop:l="0",paddingBottom:r="0"})=>a.max-a.min-parseFloat(l)-parseFloat(r),top:(a,{top:l})=>parseFloat(l),left:(a,{left:l})=>parseFloat(l),bottom:({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),right:({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),x:(a,{transform:l})=>Jr(l,"x"),y:(a,{transform:l})=>Jr(l,"y")};Pn.translateX=Pn.x,Pn.translateY=Pn.y;const Jn=new Set;let Fr=!1,Wr=!1,$r=!1;function ad(){if(Wr){const a=Array.from(Jn).filter(u=>u.needsMeasurement),l=new Set(a.map(u=>u.element)),r=new Map;l.forEach(u=>{const c=zv(u);c.length&&(r.set(u,c),u.render())}),a.forEach(u=>u.measureInitialState()),l.forEach(u=>{u.render();const c=r.get(u);c&&c.forEach(([h,f])=>{u.getValue(h)?.set(f)})}),a.forEach(u=>u.measureEndState()),a.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}Wr=!1,Fr=!1,Jn.forEach(a=>a.complete($r)),Jn.clear()}function id(){Jn.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Wr=!0)})}function Bv(){$r=!0,id(),ad(),$r=!1}class Ir{constructor(l,r,u,c,h,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=r,this.name=u,this.motionValue=c,this.element=h,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Jn.add(this),Fr||(Fr=!0,Bt.read(id),Bt.resolveKeyframes(ad))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:r,element:u,motionValue:c}=this;if(l[0]===null){const h=c?.get(),f=l[l.length-1];if(h!==void 0)l[0]=h;else if(u&&r){const y=u.readValue(r,f);y!=null&&(l[0]=y)}l[0]===void 0&&(l[0]=f),c&&h===void 0&&c.set(l[0])}Rv(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Jn.delete(this)}cancel(){this.state==="scheduled"&&(Jn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Uv=a=>a.startsWith("--");function jv(a,l,r){Uv(l)?a.style.setProperty(l,r):a.style[l]=r}const Nv=Er(()=>window.ScrollTimeline!==void 0),Lv={};function Hv(a,l){const r=Er(a);return()=>Lv[l]??r()}const ld=Hv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mi=([a,l,r,u])=>`cubic-bezier(${a}, ${l}, ${r}, ${u})`,sd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mi([0,.65,.55,1]),circOut:Mi([.55,0,1,.45]),backIn:Mi([.31,.01,.66,-.59]),backOut:Mi([.33,1.53,.69,.99])};function rd(a,l){if(a)return typeof a=="function"?ld()?Jf(a,l):"ease-out":Bf(a)?Mi(a):Array.isArray(a)?a.map(r=>rd(r,l)||sd.easeOut):sd[a]}function Yv(a,l,r,{delay:u=0,duration:c=300,repeat:h=0,repeatType:f="loop",ease:y="easeOut",times:m}={},p=void 0){const g={[l]:r};m&&(g.offset=m);const x=rd(y,c);Array.isArray(x)&&(g.easing=x);const A={delay:u,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"};return p&&(A.pseudoElement=p),a.animate(g,A)}function ud(a){return typeof a=="function"&&"applyToOptions"in a}function qv({type:a,...l}){return ud(a)&&ld()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class Gv extends kr{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,!l)return;const{element:r,name:u,keyframes:c,pseudoElement:h,allowFlatten:f=!1,finalKeyframe:y,onComplete:m}=l;this.isPseudoElement=!!h,this.allowFlatten=f,this.options=l,Ar(typeof l.type!="string");const p=qv(l);this.animation=Yv(r,u,c,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const g=Xr(c,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(g):jv(r,u,g),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return ke(Number(l))}get time(){return ke(Number(this.animation.currentTime)||0)}set time(l){this.finishedTime=null,this.animation.currentTime=Xe(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(l){this.animation.startTime=l}attachTimeline({timeline:l,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&Nv()?(this.animation.timeline=l,De):r(this)}}const od={anticipate:_f,backInOut:Of,circInOut:wf};function Xv(a){return a in od}function kv(a){typeof a.ease=="string"&&Xv(a.ease)&&(a.ease=od[a.ease])}const cd=10;class Kv extends Gv{constructor(l){kv(l),$f(l),super(l),l.startTime&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:r,onUpdate:u,onComplete:c,element:h,...f}=this.options;if(!r)return;if(l!==void 0){r.set(l);return}const y=new Kr({...f,autoplay:!1}),m=Xe(this.finishedTime??this.time);r.setWithVelocity(y.sample(m-cd).value,y.sample(m).value,cd),y.stop()}}const fd=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Sn.test(a)||a==="0")&&!a.startsWith("url("));function Qv(a){const l=a[0];if(a.length===1)return!0;for(let r=0;r<a.length;r++)if(a[r]!==l)return!0}function Zv(a,l,r,u){const c=a[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const h=a[a.length-1],f=fd(c,l),y=fd(h,l);return!f||!y?!1:Qv(a)||(r==="spring"||ud(r))&&u}function tu(a){a.duration=0,a.type}const Pv=new Set(["opacity","clipPath","filter","transform"]),Jv=Er(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Fv(a){const{motionValue:l,name:r,repeatDelay:u,repeatType:c,damping:h,type:f}=a;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=l.owner.getProps();return Jv()&&r&&Pv.has(r)&&(r!=="transform"||!p)&&!m&&!u&&c!=="mirror"&&h!==0&&f!=="inertia"}const Wv=40;class $v extends kr{constructor({autoplay:l=!0,delay:r=0,type:u="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:f="loop",keyframes:y,name:m,motionValue:p,element:g,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=de.now();const A={autoplay:l,delay:r,type:u,repeat:c,repeatDelay:h,repeatType:f,name:m,motionValue:p,element:g,...x},w=g?.KeyframeResolver||Ir;this.keyframeResolver=new w(y,(L,K,Z)=>this.onKeyframesResolved(L,K,A,!Z),m,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,r,u,c){this.keyframeResolver=void 0;const{name:h,type:f,velocity:y,delay:m,isHandoff:p,onUpdate:g}=u;this.resolvedAt=de.now(),Zv(l,h,f,y)||((en.instantAnimations||!m)&&g?.(Xr(l,u,r)),l[0]=l[l.length-1],tu(u),u.repeat=0);const A={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Wv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...u,keyframes:l},w=!p&&Fv(A)?new Kv({...A,element:A.motionValue.owner.current}):new Kr(A);w.finished.then(()=>this.notifyFinished()).catch(De),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(l,r){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Bv()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Iv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t1(a){const l=Iv.exec(a);if(!l)return[,];const[,r,u,c]=l;return[`--${r??u}`,c]}function dd(a,l,r=1){const[u,c]=t1(a);if(!u)return;const h=window.getComputedStyle(l).getPropertyValue(u);if(h){const f=h.trim();return xf(f)?parseFloat(f):f}return _r(c)?dd(c,l,r+1):c}function eu(a,l){return a?.[l]??a?.default??a}const hd=new Set(["width","height","top","left","right","bottom",...Sa]),e1={test:a=>a==="auto",parse:a=>a},md=a=>l=>l.test(a),pd=[va,st,Ke,bn,Qg,Kg,e1],yd=a=>pd.find(md(a));function n1(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Af(a):!0}const a1=new Set(["brightness","contrast","saturate","opacity"]);function i1(a){const[l,r]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[u]=r.match(Vr)||[];if(!u)return a;const c=r.replace(u,"");let h=a1.has(l)?1:0;return u!==r&&(h*=100),l+"("+h+c+")"}const l1=/\b([a-z-]*)\(.*?\)/gu,nu={...Sn,getAnimatableNone:a=>{const l=a.match(l1);return l?l.map(i1).join(" "):a}},gd={...va,transform:Math.round},au={borderWidth:st,borderTopWidth:st,borderRightWidth:st,borderBottomWidth:st,borderLeftWidth:st,borderRadius:st,radius:st,borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomRightRadius:st,borderBottomLeftRadius:st,width:st,maxWidth:st,height:st,maxHeight:st,top:st,right:st,bottom:st,left:st,padding:st,paddingTop:st,paddingRight:st,paddingBottom:st,paddingLeft:st,margin:st,marginTop:st,marginRight:st,marginBottom:st,marginLeft:st,backgroundPositionX:st,backgroundPositionY:st,...{rotate:bn,rotateX:bn,rotateY:bn,rotateZ:bn,scale:Bl,scaleX:Bl,scaleY:Bl,scaleZ:Bl,skew:bn,skewX:bn,skewY:bn,distance:st,translateX:st,translateY:st,translateZ:st,x:st,y:st,z:st,perspective:st,transformPerspective:st,opacity:Si,originX:Hf,originY:Hf,originZ:st},zIndex:gd,fillOpacity:Si,strokeOpacity:Si,numOctaves:gd},s1={...au,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:nu,WebkitFilter:nu},vd=a=>s1[a];function bd(a,l){let r=vd(a);return r!==nu&&(r=Sn),r.getAnimatableNone?r.getAnimatableNone(l):void 0}const r1=new Set(["auto","none","0"]);function u1(a,l,r){let u=0,c;for(;u<a.length&&!c;){const h=a[u];typeof h=="string"&&!r1.has(h)&&Ai(h).values.length&&(c=a[u]),u++}if(c&&r)for(const h of l)a[h]=bd(r,c)}class o1 extends Ir{constructor(l,r,u,c,h){super(l,r,u,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:r,name:u}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<l.length;m++){let p=l[m];if(typeof p=="string"&&(p=p.trim(),_r(p))){const g=dd(p,r.current);g!==void 0&&(l[m]=g),m===l.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!hd.has(u)||l.length!==2)return;const[c,h]=l,f=yd(c),y=yd(h);if(f!==y)if(nd(f)&&nd(y))for(let m=0;m<l.length;m++){const p=l[m];typeof p=="string"&&(l[m]=parseFloat(p))}else Pn[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:r}=this,u=[];for(let c=0;c<l.length;c++)(l[c]===null||n1(l[c]))&&u.push(c);u.length&&u1(l,u,r)}measureInitialState(){const{element:l,unresolvedKeyframes:r,name:u}=this;if(!l||!l.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),r[0]=this.measuredOrigin;const c=r[r.length-1];c!==void 0&&l.getValue(u,c).jump(c,!1)}measureEndState(){const{element:l,name:r,unresolvedKeyframes:u}=this;if(!l||!l.current)return;const c=l.getValue(r);c&&c.jump(this.measuredOrigin,!1);const h=u.length-1,f=u[h];u[h]=Pn[r](l.measureViewportBox(),window.getComputedStyle(l.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([y,m])=>{l.getValue(y).set(m)}),this.resolveNoneKeyframes()}}function c1(a,l,r){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let u=document;const c=r?.[a]??u.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const Sd=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function xd(a){return Tf(a)&&"offsetHeight"in a}const Td=30,f1=a=>!isNaN(parseFloat(a));class d1{constructor(l,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const c=de.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=r.owner}setCurrent(l){this.current=l,this.updatedAt=de.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=f1(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,r){this.events[l]||(this.events[l]=new Mr);const u=this.events[l].add(r);return l==="change"?()=>{u(),Bt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,r){this.passiveEffect=l,this.stopPassiveEffect=r}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,r,u){this.set(r),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-u}jump(l,r=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Td)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Td);return Ef(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(l){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=l(r),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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ta(a,l){return new d1(a,l)}const{schedule:iu}=jf(queueMicrotask,!1),He={x:!1,y:!1};function Ad(){return He.x||He.y}function h1(a){return a==="x"||a==="y"?He[a]?null:(He[a]=!0,()=>{He[a]=!1}):He.x||He.y?null:(He.x=He.y=!0,()=>{He.x=He.y=!1})}function Ed(a,l){const r=c1(a),u=new AbortController,c={passive:!0,...l,signal:u.signal};return[r,c,()=>u.abort()]}function Md(a){return!(a.pointerType==="touch"||Ad())}function m1(a,l,r={}){const[u,c,h]=Ed(a,r),f=y=>{if(!Md(y))return;const{target:m}=y,p=l(m,y);if(typeof p!="function"||!m)return;const g=x=>{Md(x)&&(p(x),m.removeEventListener("pointerleave",g))};m.addEventListener("pointerleave",g,c)};return u.forEach(y=>{y.addEventListener("pointerenter",f,c)}),h}const Rd=(a,l)=>l?a===l?!0:Rd(a,l.parentElement):!1,lu=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,p1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function y1(a){return p1.has(a.tagName)||a.tabIndex!==-1}const Ll=new WeakSet;function Dd(a){return l=>{l.key==="Enter"&&a(l)}}function su(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const g1=(a,l)=>{const r=a.currentTarget;if(!r)return;const u=Dd(()=>{if(Ll.has(r))return;su(r,"down");const c=Dd(()=>{su(r,"up")}),h=()=>su(r,"cancel");r.addEventListener("keyup",c,l),r.addEventListener("blur",h,l)});r.addEventListener("keydown",u,l),r.addEventListener("blur",()=>r.removeEventListener("keydown",u),l)};function Cd(a){return lu(a)&&!Ad()}function v1(a,l,r={}){const[u,c,h]=Ed(a,r),f=y=>{const m=y.currentTarget;if(!Cd(y))return;Ll.add(m);const p=l(m,y),g=(w,L)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",A),Ll.has(m)&&Ll.delete(m),Cd(w)&&typeof p=="function"&&p(w,{success:L})},x=w=>{g(w,m===window||m===document||r.useGlobalTarget||Rd(m,w.target))},A=w=>{g(w,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",A,c)};return u.forEach(y=>{(r.useGlobalTarget?window:y).addEventListener("pointerdown",f,c),xd(y)&&(y.addEventListener("focus",p=>g1(p,c)),!y1(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),h}function Od(a){return Tf(a)&&"ownerSVGElement"in a}function b1(a){return Od(a)&&a.tagName==="svg"}const re=a=>!!(a&&a.getVelocity),S1=[...pd,kt,Sn],x1=a=>S1.find(md(a)),ru=$.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});class T1 extends $.Component{getSnapshotBeforeUpdate(l){const r=this.props.childRef.current;if(r&&l.isPresent&&!this.props.isPresent){const u=r.offsetParent,c=xd(u)&&u.offsetWidth||0,h=this.props.sizeRef.current;h.height=r.offsetHeight||0,h.width=r.offsetWidth||0,h.top=r.offsetTop,h.left=r.offsetLeft,h.right=c-h.width-h.left}return null}componentDidUpdate(){}render(){return this.props.children}}function A1({children:a,isPresent:l,anchorX:r,root:u}){const c=$.useId(),h=$.useRef(null),f=$.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:y}=$.useContext(ru);return $.useInsertionEffect(()=>{const{width:m,height:p,top:g,left:x,right:A}=f.current;if(l||!h.current||!m||!p)return;const w=r==="left"?`left: ${x}`:`right: ${A}`;h.current.dataset.motionPopId=c;const L=document.createElement("style");y&&(L.nonce=y);const K=u??document.head;return K.appendChild(L),L.sheet&&L.sheet.insertRule(`
|
|
117
|
+
[data-motion-pop-id="${c}"] {
|
|
118
|
+
position: absolute !important;
|
|
119
|
+
width: ${m}px !important;
|
|
120
|
+
height: ${p}px !important;
|
|
121
|
+
${w}px !important;
|
|
122
|
+
top: ${g}px !important;
|
|
123
|
+
}
|
|
124
|
+
`),()=>{K.contains(L)&&K.removeChild(L)}},[l]),Ie.jsx(T1,{isPresent:l,childRef:h,sizeRef:f,children:$.cloneElement(a,{ref:h})})}const E1=({children:a,initial:l,isPresent:r,onExitComplete:u,custom:c,presenceAffectsLayout:h,mode:f,anchorX:y,root:m})=>{const p=br(M1),g=$.useId();let x=!0,A=$.useMemo(()=>(x=!1,{id:g,initial:l,isPresent:r,custom:c,onExitComplete:w=>{p.set(w,!0);for(const L of p.values())if(!L)return;u&&u()},register:w=>(p.set(w,!1),()=>p.delete(w))}),[r,p,u]);return h&&x&&(A={...A}),$.useMemo(()=>{p.forEach((w,L)=>p.set(L,!1))},[r]),$.useEffect(()=>{!r&&!p.size&&u&&u()},[r]),f==="popLayout"&&(a=Ie.jsx(A1,{isPresent:r,anchorX:y,root:m,children:a})),Ie.jsx(Vl.Provider,{value:A,children:a})};function M1(){return new Map}function _d(a=!0){const l=$.useContext(Vl);if(l===null)return[!0,null];const{isPresent:r,onExitComplete:u,register:c}=l,h=$.useId();$.useEffect(()=>{if(a)return c(h)},[a]);const f=$.useCallback(()=>a&&u&&u(h),[h,u,a]);return!r&&u?[!1,f]:[!0]}const Hl=a=>a.key||"";function Vd(a){const l=[];return $.Children.forEach(a,r=>{$.isValidElement(r)&&l.push(r)}),l}const R1=({children:a,custom:l,initial:r=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:f=!1,anchorX:y="left",root:m})=>{const[p,g]=_d(f),x=$.useMemo(()=>Vd(a),[a]),A=f&&!p?[]:x.map(Hl),w=$.useRef(!0),L=$.useRef(x),K=br(()=>new Map),[Z,Q]=$.useState(x),[q,G]=$.useState(x);Sf(()=>{w.current=!1,L.current=x;for(let F=0;F<q.length;F++){const et=Hl(q[F]);A.includes(et)?K.delete(et):K.get(et)!==!0&&K.set(et,!1)}},[q,A.length,A.join("-")]);const I=[];if(x!==Z){let F=[...x];for(let et=0;et<q.length;et++){const W=q[et],gt=Hl(W);A.includes(gt)||(F.splice(et,0,W),I.push(W))}return h==="wait"&&I.length&&(F=I),G(Vd(F)),Q(x),null}const{forceRender:Y}=$.useContext(vr);return Ie.jsx(Ie.Fragment,{children:q.map(F=>{const et=Hl(F),W=f&&!p?!1:x===q||A.includes(et),gt=()=>{if(K.has(et))K.set(et,!0);else return;let St=!0;K.forEach(vt=>{vt||(St=!1)}),St&&(Y?.(),G(L.current),f&&g?.(),u&&u())};return Ie.jsx(E1,{isPresent:W,initial:!w.current||r?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:m,onExitComplete:W?void 0:gt,anchorX:y,children:F},et)})})},wd=$.createContext({strict:!1}),zd={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"]},Aa={};for(const a in zd)Aa[a]={isEnabled:l=>zd[a].some(r=>!!l[r])};function D1(a){for(const l in a)Aa[l]={...Aa[l],...a[l]}}const C1=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 Yl(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||C1.has(a)}let Bd=a=>!Yl(a);function O1(a){typeof a=="function"&&(Bd=l=>l.startsWith("on")?!Yl(l):a(l))}try{O1(require("@emotion/is-prop-valid").default)}catch{}function _1(a,l,r){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||(Bd(c)||r===!0&&Yl(c)||!l&&!Yl(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const ql=$.createContext({});function Gl(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Ri(a){return typeof a=="string"||Array.isArray(a)}const uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ou=["initial",...uu];function Xl(a){return Gl(a.animate)||ou.some(l=>Ri(a[l]))}function Ud(a){return!!(Xl(a)||a.variants)}function V1(a,l){if(Xl(a)){const{initial:r,animate:u}=a;return{initial:r===!1||Ri(r)?r:void 0,animate:Ri(u)?u:void 0}}return a.inherit!==!1?l:{}}function w1(a){const{initial:l,animate:r}=V1(a,$.useContext(ql));return $.useMemo(()=>({initial:l,animate:r}),[jd(l),jd(r)])}function jd(a){return Array.isArray(a)?a.join(" "):a}const Di={};function z1(a){for(const l in a)Di[l]=a[l],Or(l)&&(Di[l].isCSSVariable=!0)}function Nd(a,{layout:l,layoutId:r}){return xa.has(a)||a.startsWith("origin")||(l||r!==void 0)&&(!!Di[a]||a==="opacity")}const B1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U1=Sa.length;function j1(a,l,r){let u="",c=!0;for(let h=0;h<U1;h++){const f=Sa[h],y=a[f];if(y===void 0)continue;let m=!0;if(typeof y=="number"?m=y===(f.startsWith("scale")?1:0):m=parseFloat(y)===0,!m||r){const p=Sd(y,au[f]);if(!m){c=!1;const g=B1[f]||f;u+=`${g}(${p}) `}r&&(l[f]=p)}}return u=u.trim(),r?u=r(l,c?"":u):c&&(u="none"),u}function cu(a,l,r){const{style:u,vars:c,transformOrigin:h}=a;let f=!1,y=!1;for(const m in l){const p=l[m];if(xa.has(m)){f=!0;continue}else if(Or(m)){c[m]=p;continue}else{const g=Sd(p,au[m]);m.startsWith("origin")?(y=!0,h[m]=g):u[m]=g}}if(l.transform||(f||r?u.transform=j1(l,a.transform,r):u.transform&&(u.transform="none")),y){const{originX:m="50%",originY:p="50%",originZ:g=0}=h;u.transformOrigin=`${m} ${p} ${g}`}}const fu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ld(a,l,r){for(const u in l)!re(l[u])&&!Nd(u,r)&&(a[u]=l[u])}function N1({transformTemplate:a},l){return $.useMemo(()=>{const r=fu();return cu(r,l,a),Object.assign({},r.vars,r.style)},[l])}function L1(a,l){const r=a.style||{},u={};return Ld(u,r,a),Object.assign(u,N1(a,l)),u}function H1(a,l){const r={},u=L1(a,l);return a.drag&&a.dragListener!==!1&&(r.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(r.tabIndex=0),r.style=u,r}const Y1={offset:"stroke-dashoffset",array:"stroke-dasharray"},q1={offset:"strokeDashoffset",array:"strokeDasharray"};function G1(a,l,r=1,u=0,c=!0){a.pathLength=1;const h=c?Y1:q1;a[h.offset]=st.transform(-u);const f=st.transform(l),y=st.transform(r);a[h.array]=`${f} ${y}`}function Hd(a,{attrX:l,attrY:r,attrScale:u,pathLength:c,pathSpacing:h=1,pathOffset:f=0,...y},m,p,g){if(cu(a,y,p),m){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:A}=a;x.transform&&(A.transform=x.transform,delete x.transform),(A.transform||x.transformOrigin)&&(A.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),A.transform&&(A.transformBox=g?.transformBox??"fill-box",delete x.transformBox),l!==void 0&&(x.x=l),r!==void 0&&(x.y=r),u!==void 0&&(x.scale=u),c!==void 0&&G1(x,c,h,f,!1)}const Yd=()=>({...fu(),attrs:{}}),qd=a=>typeof a=="string"&&a.toLowerCase()==="svg";function X1(a,l,r,u){const c=$.useMemo(()=>{const h=Yd();return Hd(h,l,qd(u),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[l]);if(a.style){const h={};Ld(h,a.style,a),c.style={...h,...c.style}}return c}const k1=["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 du(a){return typeof a!="string"||a.includes("-")?!1:!!(k1.indexOf(a)>-1||/[A-Z]/u.test(a))}function K1(a,l,r,{latestValues:u},c,h=!1){const y=(du(a)?X1:H1)(l,u,c,a),m=_1(l,typeof a=="string",h),p=a!==$.Fragment?{...m,...y,ref:r}:{},{children:g}=l,x=$.useMemo(()=>re(g)?g.get():g,[g]);return $.createElement(a,{...p,children:x})}function Gd(a){const l=[{},{}];return a?.values.forEach((r,u)=>{l[0][u]=r.get(),l[1][u]=r.getVelocity()}),l}function hu(a,l,r,u){if(typeof l=="function"){const[c,h]=Gd(u);l=l(r!==void 0?r:a.custom,c,h)}if(typeof l=="string"&&(l=a.variants&&a.variants[l]),typeof l=="function"){const[c,h]=Gd(u);l=l(r!==void 0?r:a.custom,c,h)}return l}function kl(a){return re(a)?a.get():a}function Q1({scrapeMotionValuesFromProps:a,createRenderState:l},r,u,c){return{latestValues:Z1(r,u,c,a),renderState:l()}}function Z1(a,l,r,u){const c={},h=u(a,{});for(const A in h)c[A]=kl(h[A]);let{initial:f,animate:y}=a;const m=Xl(a),p=Ud(a);l&&p&&!m&&a.inherit!==!1&&(f===void 0&&(f=l.initial),y===void 0&&(y=l.animate));let g=r?r.initial===!1:!1;g=g||f===!1;const x=g?y:f;if(x&&typeof x!="boolean"&&!Gl(x)){const A=Array.isArray(x)?x:[x];for(let w=0;w<A.length;w++){const L=hu(a,A[w]);if(L){const{transitionEnd:K,transition:Z,...Q}=L;for(const q in Q){let G=Q[q];if(Array.isArray(G)){const I=g?G.length-1:0;G=G[I]}G!==null&&(c[q]=G)}for(const q in K)c[q]=K[q]}}}return c}const Xd=a=>(l,r)=>{const u=$.useContext(ql),c=$.useContext(Vl),h=()=>Q1(a,l,u,c);return r?h():br(h)};function mu(a,l,r){const{style:u}=a,c={};for(const h in u)(re(u[h])||l.style&&re(l.style[h])||Nd(h,a)||r?.getValue(h)?.liveStyle!==void 0)&&(c[h]=u[h]);return c}const P1=Xd({scrapeMotionValuesFromProps:mu,createRenderState:fu});function kd(a,l,r){const u=mu(a,l,r);for(const c in a)if(re(a[c])||re(l[c])){const h=Sa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[h]=a[c]}return u}const J1=Xd({scrapeMotionValuesFromProps:kd,createRenderState:Yd}),F1=Symbol.for("motionComponentSymbol");function Ea(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function W1(a,l,r){return $.useCallback(u=>{u&&a.onMount&&a.onMount(u),l&&(u?l.mount(u):l.unmount()),r&&(typeof r=="function"?r(u):Ea(r)&&(r.current=u))},[l])}const pu=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Kd="data-"+pu("framerAppearId"),Qd=$.createContext({});function $1(a,l,r,u,c){const{visualElement:h}=$.useContext(ql),f=$.useContext(wd),y=$.useContext(Vl),m=$.useContext(ru).reducedMotion,p=$.useRef(null);u=u||f.renderer,!p.current&&u&&(p.current=u(a,{visualState:l,parent:h,props:r,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:m}));const g=p.current,x=$.useContext(Qd);g&&!g.projection&&c&&(g.type==="html"||g.type==="svg")&&I1(p.current,r,c,x);const A=$.useRef(!1);$.useInsertionEffect(()=>{g&&A.current&&g.update(r,y)});const w=r[Kd],L=$.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return Sf(()=>{g&&(A.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),L.current&&g.animationState&&g.animationState.animateChanges())}),$.useEffect(()=>{g&&(!L.current&&g.animationState&&g.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),L.current=!1),g.enteringChildren=void 0)}),g}function I1(a,l,r,u){const{layoutId:c,layout:h,drag:f,dragConstraints:y,layoutScroll:m,layoutRoot:p,layoutCrossfade:g}=l;a.projection=new r(a.latestValues,l["data-framer-portal-id"]?void 0:Zd(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!f||y&&Ea(y),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:u,crossfade:g,layoutScroll:m,layoutRoot:p})}function Zd(a){if(a)return a.options.allowProjection!==!1?a.projection:Zd(a.parent)}function yu(a,{forwardMotionProps:l=!1}={},r,u){r&&D1(r);const c=du(a)?J1:P1;function h(y,m){let p;const g={...$.useContext(ru),...y,layoutId:tb(y)},{isStatic:x}=g,A=w1(y),w=c(y,x);if(!x&&Sr){eb();const L=nb(g);p=L.MeasureLayout,A.visualElement=$1(a,w,g,u,L.ProjectionNode)}return Ie.jsxs(ql.Provider,{value:A,children:[p&&A.visualElement?Ie.jsx(p,{visualElement:A.visualElement,...g}):null,K1(a,y,W1(w,A.visualElement,m),w,x,l)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=$.forwardRef(h);return f[F1]=a,f}function tb({layoutId:a}){const l=$.useContext(vr).id;return l&&a!==void 0?l+"-"+a:a}function eb(a,l){$.useContext(wd).strict}function nb(a){const{drag:l,layout:r}=Aa;if(!l&&!r)return{};const u={...l,...r};return{MeasureLayout:l?.isEnabled(a)||r?.isEnabled(a)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function ab(a,l){if(typeof Proxy>"u")return yu;const r=new Map,u=(h,f)=>yu(h,f,a,l),c=(h,f)=>u(h,f);return new Proxy(c,{get:(h,f)=>f==="create"?u:(r.has(f)||r.set(f,yu(f,void 0,a,l)),r.get(f))})}function Pd({top:a,left:l,right:r,bottom:u}){return{x:{min:l,max:r},y:{min:a,max:u}}}function ib({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function lb(a,l){if(!l)return a;const r=l({x:a.left,y:a.top}),u=l({x:a.right,y:a.bottom});return{top:r.y,left:r.x,bottom:u.y,right:u.x}}function gu(a){return a===void 0||a===1}function vu({scale:a,scaleX:l,scaleY:r}){return!gu(a)||!gu(l)||!gu(r)}function Fn(a){return vu(a)||Jd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Jd(a){return Fd(a.x)||Fd(a.y)}function Fd(a){return a&&a!=="0%"}function Kl(a,l,r){const u=a-r,c=l*u;return r+c}function Wd(a,l,r,u,c){return c!==void 0&&(a=Kl(a,c,u)),Kl(a,r,u)+l}function bu(a,l=0,r=1,u,c){a.min=Wd(a.min,l,r,u,c),a.max=Wd(a.max,l,r,u,c)}function $d(a,{x:l,y:r}){bu(a.x,l.translate,l.scale,l.originPoint),bu(a.y,r.translate,r.scale,r.originPoint)}const Id=.999999999999,th=1.0000000000001;function sb(a,l,r,u=!1){const c=r.length;if(!c)return;l.x=l.y=1;let h,f;for(let y=0;y<c;y++){h=r[y],f=h.projectionDelta;const{visualElement:m}=h.options;m&&m.props.style&&m.props.style.display==="contents"||(u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ra(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(l.x*=f.x.scale,l.y*=f.y.scale,$d(a,f)),u&&Fn(h.latestValues)&&Ra(a,h.latestValues))}l.x<th&&l.x>Id&&(l.x=1),l.y<th&&l.y>Id&&(l.y=1)}function Ma(a,l){a.min=a.min+l,a.max=a.max+l}function eh(a,l,r,u,c=.5){const h=jt(a.min,a.max,c);bu(a,l,r,h,u)}function Ra(a,l){eh(a.x,l.x,l.scaleX,l.scale,l.originX),eh(a.y,l.y,l.scaleY,l.scale,l.originY)}function nh(a,l){return Pd(lb(a.getBoundingClientRect(),l))}function rb(a,l,r){const u=nh(a,r),{scroll:c}=l;return c&&(Ma(u.x,c.offset.x),Ma(u.y,c.offset.y)),u}const ah=()=>({translate:0,scale:1,origin:0,originPoint:0}),Da=()=>({x:ah(),y:ah()}),ih=()=>({min:0,max:0}),qt=()=>({x:ih(),y:ih()}),Su={current:null},lh={current:!1};function ub(){if(lh.current=!0,!!Sr)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>Su.current=a.matches;a.addEventListener("change",l),l()}else Su.current=!1}const ob=new WeakMap;function cb(a,l,r){for(const u in l){const c=l[u],h=r[u];if(re(c))a.addValue(u,c);else if(re(h))a.addValue(u,Ta(c,{owner:a}));else if(h!==c)if(a.hasValue(u)){const f=a.getValue(u);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(u);a.addValue(u,Ta(f!==void 0?f:c,{owner:a}))}}for(const u in r)l[u]===void 0&&a.removeValue(u);return l}const sh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fb{scrapeMotionValuesFromProps(l,r,u){return{}}constructor({parent:l,props:r,presenceContext:u,reducedMotionConfig:c,blockInitialAnimation:h,visualState:f},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ir,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 A=de.now();this.renderScheduledAt<A&&(this.renderScheduledAt=A,Bt.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=f;this.latestValues=m,this.baseTarget={...m},this.initialValues=r.initial?{...m}:{},this.renderState=p,this.parent=l,this.props=r,this.presenceContext=u,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.options=y,this.blockInitialAnimation=!!h,this.isControllingVariants=Xl(r),this.isVariantNode=Ud(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(r,{},this);for(const A in x){const w=x[A];m[A]!==void 0&&re(w)&&w.set(m[A])}}mount(l){this.current=l,ob.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,u)=>this.bindToMotionValue(u,r)),lh.current||ub(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Su.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vn(this.notifyUpdate),vn(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const r=this.features[l];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,r){this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)();const u=xa.has(l);u&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",f=>{this.latestValues[l]=f,this.props.onUpdate&&Bt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,r)),this.valueSubscriptions.set(l,()=>{c(),h&&h(),r.owner&&r.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in Aa){const r=Aa[l];if(!r)continue;const{isEnabled:u,Feature:c}=r;if(!this.features[l]&&c&&u(this.props)&&(this.features[l]=new c(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,r){this.latestValues[l]=r}update(l,r){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let u=0;u<sh.length;u++){const c=sh[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,f=l[h];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=cb(this,this.scrapeMotionValuesFromProps(l,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]: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(l){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(l),()=>r.variantChildren.delete(l)}addValue(l,r){const u=this.values.get(l);r!==u&&(u&&this.removeValue(l),this.bindToMotionValue(l,r),this.values.set(l,r),this.latestValues[l]=r.get())}removeValue(l){this.values.delete(l);const r=this.valueSubscriptions.get(l);r&&(r(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,r){if(this.props.values&&this.props.values[l])return this.props.values[l];let u=this.values.get(l);return u===void 0&&r!==void 0&&(u=Ta(r===null?void 0:r,{owner:this}),this.addValue(l,u)),u}readValue(l,r){let u=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return u!=null&&(typeof u=="string"&&(xf(u)||Af(u))?u=parseFloat(u):!x1(u)&&Sn.test(r)&&(u=bd(l,r)),this.setBaseTarget(l,re(u)?u.get():u)),re(u)?u.get():u}setBaseTarget(l,r){this.baseTarget[l]=r}getBaseTarget(l){const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const h=hu(this.props,r,this.presenceContext?.custom);h&&(u=h[l])}if(r&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!re(c)?c:this.initialValues[l]!==void 0&&u===void 0?void 0:this.baseTarget[l]}on(l,r){return this.events[l]||(this.events[l]=new Mr),this.events[l].add(r)}notify(l,...r){this.events[l]&&this.events[l].notify(...r)}scheduleRenderMicrotask(){iu.render(this.render)}}class rh extends fb{constructor(){super(...arguments),this.KeyframeResolver=o1}sortInstanceNodePosition(l,r){return l.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(l,r){return l.style?l.style[r]:void 0}removeValueFromRenderState(l,{vars:r,style:u}){delete r[l],delete u[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;re(l)&&(this.childSubscription=l.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function uh(a,{style:l,vars:r},u,c){const h=a.style;let f;for(f in l)h[f]=l[f];c?.applyProjectionStyles(h,u);for(f in r)h.setProperty(f,r[f])}function db(a){return window.getComputedStyle(a)}class hb extends rh{constructor(){super(...arguments),this.type="html",this.renderInstance=uh}readValueFromInstance(l,r){if(xa.has(r))return this.projection?.isProjecting?Pr(r):Ov(l,r);{const u=db(l),c=(Or(r)?u.getPropertyValue(r):u[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:r}){return nh(l,r)}build(l,r,u){cu(l,r,u.transformTemplate)}scrapeMotionValuesFromProps(l,r,u){return mu(l,r,u)}}const oh=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 mb(a,l,r,u){uh(a,l,void 0,u);for(const c in l.attrs)a.setAttribute(oh.has(c)?c:pu(c),l.attrs[c])}class pb extends rh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(l,r){return l[r]}readValueFromInstance(l,r){if(xa.has(r)){const u=vd(r);return u&&u.default||0}return r=oh.has(r)?r:pu(r),l.getAttribute(r)}scrapeMotionValuesFromProps(l,r,u){return kd(l,r,u)}build(l,r,u){Hd(l,r,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(l,r,u,c){mb(l,r,u,c)}mount(l){this.isSVGTag=qd(l.tagName),super.mount(l)}}const yb=(a,l)=>du(a)?new pb(l):new hb(l,{allowProjection:a!==$.Fragment});function Ca(a,l,r){const u=a.getProps();return hu(u,l,r!==void 0?r:u.custom,a)}const xu=a=>Array.isArray(a);function gb(a,l,r){a.hasValue(l)?a.getValue(l).set(r):a.addValue(l,Ta(r))}function vb(a){return xu(a)?a[a.length-1]||0:a}function bb(a,l){const r=Ca(a,l);let{transitionEnd:u={},transition:c={},...h}=r||{};h={...h,...u};for(const f in h){const y=vb(h[f]);gb(a,f,y)}}function Sb(a){return!!(re(a)&&a.add)}function Tu(a,l){const r=a.getValue("willChange");if(Sb(r))return r.add(l);if(!r&&en.WillChange){const u=new en.WillChange("auto");a.addValue("willChange",u),u.add(l)}}function ch(a){return a.props[Kd]}const xb=a=>a!==null;function Tb(a,{repeat:l,repeatType:r="loop"},u){const c=a.filter(xb),h=l&&r!=="loop"&&l%2===1?0:c.length-1;return c[h]}const Ab={type:"spring",stiffness:500,damping:25,restSpeed:10},Eb=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),Mb={type:"keyframes",duration:.8},Rb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Db=(a,{keyframes:l})=>l.length>2?Mb:xa.has(a)?a.startsWith("scale")?Eb(l[1]):Ab:Rb;function Cb({when:a,delay:l,delayChildren:r,staggerChildren:u,staggerDirection:c,repeat:h,repeatType:f,repeatDelay:y,from:m,elapsed:p,...g}){return!!Object.keys(g).length}const Au=(a,l,r,u={},c,h)=>f=>{const y=eu(u,a)||{},m=y.delay||u.delay||0;let{elapsed:p=0}=u;p=p-Xe(m);const g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:l.getVelocity(),...y,delay:-p,onUpdate:A=>{l.set(A),y.onUpdate&&y.onUpdate(A)},onComplete:()=>{f(),y.onComplete&&y.onComplete()},name:a,motionValue:l,element:h?void 0:c};Cb(y)||Object.assign(g,Db(a,g)),g.duration&&(g.duration=Xe(g.duration)),g.repeatDelay&&(g.repeatDelay=Xe(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(tu(g),g.delay===0&&(x=!0)),(en.instantAnimations||en.skipAnimations)&&(x=!0,tu(g),g.delay=0),g.allowFlatten=!y.type&&!y.ease,x&&!h&&l.get()!==void 0){const A=Tb(g.keyframes,y);if(A!==void 0){Bt.update(()=>{g.onUpdate(A),g.onComplete()});return}}return y.isSync?new Kr(g):new $v(g)};function Ob({protectedKeys:a,needsAnimating:l},r){const u=a.hasOwnProperty(r)&&l[r]!==!0;return l[r]=!1,u}function fh(a,l,{delay:r=0,transitionOverride:u,type:c}={}){let{transition:h=a.getDefaultTransition(),transitionEnd:f,...y}=l;u&&(h=u);const m=[],p=c&&a.animationState&&a.animationState.getState()[c];for(const g in y){const x=a.getValue(g,a.latestValues[g]??null),A=y[g];if(A===void 0||p&&Ob(p,g))continue;const w={delay:r,...eu(h||{},g)},L=x.get();if(L!==void 0&&!x.isAnimating&&!Array.isArray(A)&&A===L&&!w.velocity)continue;let K=!1;if(window.MotionHandoffAnimation){const Q=ch(a);if(Q){const q=window.MotionHandoffAnimation(Q,g,Bt);q!==null&&(w.startTime=q,K=!0)}}Tu(a,g),x.start(Au(g,x,A,a.shouldReduceMotion&&hd.has(g)?{type:!1}:w,a,K));const Z=x.animation;Z&&m.push(Z)}return f&&Promise.all(m).then(()=>{Bt.update(()=>{f&&bb(a,f)})}),m}function dh(a,l,r,u=0,c=1){const h=Array.from(a).sort((p,g)=>p.sortNodePosition(g)).indexOf(l),f=a.size,y=(f-1)*u;return typeof r=="function"?r(h,f):c===1?h*u:y-h*u}function Eu(a,l,r={}){const u=Ca(a,l,r.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=u||{};r.transitionOverride&&(c=r.transitionOverride);const h=u?()=>Promise.all(fh(a,u,r)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:x}=c;return _b(a,l,m,p,g,x,r)}:()=>Promise.resolve(),{when:y}=c;if(y){const[m,p]=y==="beforeChildren"?[h,f]:[f,h];return m().then(()=>p())}else return Promise.all([h(),f(r.delay)])}function _b(a,l,r=0,u=0,c=0,h=1,f){const y=[];for(const m of a.variantChildren)m.notify("AnimationStart",l),y.push(Eu(m,l,{...f,delay:r+(typeof u=="function"?0:u)+dh(a.variantChildren,m,u,c,h)}).then(()=>m.notify("AnimationComplete",l)));return Promise.all(y)}function Vb(a,l,r={}){a.notify("AnimationStart",l);let u;if(Array.isArray(l)){const c=l.map(h=>Eu(a,h,r));u=Promise.all(c)}else if(typeof l=="string")u=Eu(a,l,r);else{const c=typeof l=="function"?Ca(a,l,r.custom):l;u=Promise.all(fh(a,c,r))}return u.then(()=>{a.notify("AnimationComplete",l)})}function hh(a,l){if(!Array.isArray(l))return!1;const r=l.length;if(r!==a.length)return!1;for(let u=0;u<r;u++)if(l[u]!==a[u])return!1;return!0}const wb=ou.length;function mh(a){if(!a)return;if(!a.isControllingVariants){const r=a.parent?mh(a.parent)||{}:{};return a.props.initial!==void 0&&(r.initial=a.props.initial),r}const l={};for(let r=0;r<wb;r++){const u=ou[r],c=a.props[u];(Ri(c)||c===!1)&&(l[u]=c)}return l}const zb=[...uu].reverse(),Bb=uu.length;function Ub(a){return l=>Promise.all(l.map(({animation:r,options:u})=>Vb(a,r,u)))}function jb(a){let l=Ub(a),r=ph(),u=!0;const c=m=>(p,g)=>{const x=Ca(a,g,m==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:A,transitionEnd:w,...L}=x;p={...p,...L,...w}}return p};function h(m){l=m(a)}function f(m){const{props:p}=a,g=mh(a.parent)||{},x=[],A=new Set;let w={},L=1/0;for(let Z=0;Z<Bb;Z++){const Q=zb[Z],q=r[Q],G=p[Q]!==void 0?p[Q]:g[Q],I=Ri(G),Y=Q===m?q.isActive:null;Y===!1&&(L=Z);let F=G===g[Q]&&G!==p[Q]&&I;if(F&&u&&a.manuallyAnimateOnMount&&(F=!1),q.protectedKeys={...w},!q.isActive&&Y===null||!G&&!q.prevProp||Gl(G)||typeof G=="boolean")continue;const et=Nb(q.prevProp,G);let W=et||Q===m&&q.isActive&&!F&&I||Z>L&&I,gt=!1;const St=Array.isArray(G)?G:[G];let vt=St.reduce(c(Q),{});Y===!1&&(vt={});const{prevResolvedValues:xt={}}=q,Vt={...xt,...vt},Kt=j=>{W=!0,A.has(j)&&(gt=!0,A.delete(j)),q.needsAnimating[j]=!0;const P=a.getValue(j);P&&(P.liveStyle=!1)};for(const j in Vt){const P=vt[j],at=xt[j];if(w.hasOwnProperty(j))continue;let T=!1;xu(P)&&xu(at)?T=!hh(P,at):T=P!==at,T?P!=null?Kt(j):A.add(j):P!==void 0&&A.has(j)?Kt(j):q.protectedKeys[j]=!0}q.prevProp=G,q.prevResolvedValues=vt,q.isActive&&(w={...w,...vt}),u&&a.blockInitialAnimation&&(W=!1);const Dt=F&&et;W&&(!Dt||gt)&&x.push(...St.map(j=>{const P={type:Q};if(typeof j=="string"&&u&&!Dt&&a.manuallyAnimateOnMount&&a.parent){const{parent:at}=a,T=Ca(at,j);if(at.enteringChildren&&T){const{delayChildren:b}=T.transition||{};P.delay=dh(at.enteringChildren,a,b)}}return{animation:j,options:P}}))}if(A.size){const Z={};if(typeof p.initial!="boolean"){const Q=Ca(a,Array.isArray(p.initial)?p.initial[0]:p.initial);Q&&Q.transition&&(Z.transition=Q.transition)}A.forEach(Q=>{const q=a.getBaseTarget(Q),G=a.getValue(Q);G&&(G.liveStyle=!0),Z[Q]=q??null}),x.push({animation:Z})}let K=!!x.length;return u&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(K=!1),u=!1,K?l(x):Promise.resolve()}function y(m,p){if(r[m].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(m,p)),r[m].isActive=p;const g=f(m);for(const x in r)r[x].protectedKeys={};return g}return{animateChanges:f,setActive:y,setAnimateFunction:h,getState:()=>r,reset:()=>{r=ph(),u=!0}}}function Nb(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!hh(l,a):!1}function Wn(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ph(){return{animate:Wn(!0),whileInView:Wn(),whileHover:Wn(),whileTap:Wn(),whileDrag:Wn(),whileFocus:Wn(),exit:Wn()}}class xn{constructor(l){this.isMounted=!1,this.node=l}update(){}}class Lb extends xn{constructor(l){super(l),l.animationState||(l.animationState=jb(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Gl(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:r}=this.node.prevProps||{};l!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Hb=0;class Yb extends xn{constructor(){super(...arguments),this.id=Hb++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:r}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===u)return;const c=this.node.animationState.setActive("exit",!l);r&&!l&&c.then(()=>{r(this.id)})}mount(){const{register:l,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const qb={animation:{Feature:Lb},exit:{Feature:Yb}};function Ci(a,l,r,u={passive:!0}){return a.addEventListener(l,r,u),()=>a.removeEventListener(l,r)}function Oi(a){return{point:{x:a.pageX,y:a.pageY}}}const Gb=a=>l=>lu(l)&&a(l,Oi(l));function _i(a,l,r,u){return Ci(a,l,Gb(r),u)}const yh=1e-4,Xb=1-yh,kb=1+yh,gh=.01,Kb=0-gh,Qb=0+gh;function ce(a){return a.max-a.min}function Zb(a,l,r){return Math.abs(a-l)<=r}function vh(a,l,r,u=.5){a.origin=u,a.originPoint=jt(l.min,l.max,a.origin),a.scale=ce(r)/ce(l),a.translate=jt(r.min,r.max,a.origin)-a.originPoint,(a.scale>=Xb&&a.scale<=kb||isNaN(a.scale))&&(a.scale=1),(a.translate>=Kb&&a.translate<=Qb||isNaN(a.translate))&&(a.translate=0)}function Vi(a,l,r,u){vh(a.x,l.x,r.x,u?u.originX:void 0),vh(a.y,l.y,r.y,u?u.originY:void 0)}function bh(a,l,r){a.min=r.min+l.min,a.max=a.min+ce(l)}function Pb(a,l,r){bh(a.x,l.x,r.x),bh(a.y,l.y,r.y)}function Sh(a,l,r){a.min=l.min-r.min,a.max=a.min+ce(l)}function wi(a,l,r){Sh(a.x,l.x,r.x),Sh(a.y,l.y,r.y)}function Ce(a){return[a("x"),a("y")]}const xh=({current:a})=>a?a.ownerDocument.defaultView:null,Th=(a,l)=>Math.abs(a-l);function Jb(a,l){const r=Th(a.x,l.x),u=Th(a.y,l.y);return Math.sqrt(r**2+u**2)}class Ah{constructor(l,r,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:f=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 A=Ru(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,L=Jb(A.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!L)return;const{point:K}=A,{timestamp:Z}=te;this.history.push({...K,timestamp:Z});const{onStart:Q,onMove:q}=this.handlers;w||(Q&&Q(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),q&&q(this.lastMoveEvent,A)},this.handlePointerMove=(A,w)=>{this.lastMoveEvent=A,this.lastMoveEventInfo=Mu(w,this.transformPagePoint),Bt.update(this.updatePoint,!0)},this.handlePointerUp=(A,w)=>{this.end();const{onEnd:L,onSessionEnd:K,resumeAnimation:Z}=this.handlers;if(this.dragSnapToOrigin&&Z&&Z(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Q=Ru(A.type==="pointercancel"?this.lastMoveEventInfo:Mu(w,this.transformPagePoint),this.history);this.startEvent&&L&&L(A,Q),K&&K(A,Q)},!lu(l))return;this.dragSnapToOrigin=h,this.handlers=r,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Oi(l),m=Mu(y,this.transformPagePoint),{point:p}=m,{timestamp:g}=te;this.history=[{...p,timestamp:g}];const{onSessionStart:x}=r;x&&x(l,Ru(m,this.history)),this.removeListeners=gi(_i(this.contextWindow,"pointermove",this.handlePointerMove),_i(this.contextWindow,"pointerup",this.handlePointerUp),_i(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),vn(this.updatePoint)}}function Mu(a,l){return l?{point:l(a.point)}:a}function Eh(a,l){return{x:a.x-l.x,y:a.y-l.y}}function Ru({point:a},l){return{point:a,delta:Eh(a,Mh(l)),offset:Eh(a,Fb(l)),velocity:Wb(l,.1)}}function Fb(a){return a[0]}function Mh(a){return a[a.length-1]}function Wb(a,l){if(a.length<2)return{x:0,y:0};let r=a.length-1,u=null;const c=Mh(a);for(;r>=0&&(u=a[r],!(c.timestamp-u.timestamp>Xe(l)));)r--;if(!u)return{x:0,y:0};const h=ke(c.timestamp-u.timestamp);if(h===0)return{x:0,y:0};const f={x:(c.x-u.x)/h,y:(c.y-u.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function $b(a,{min:l,max:r},u){return l!==void 0&&a<l?a=u?jt(l,a,u.min):Math.max(a,l):r!==void 0&&a>r&&(a=u?jt(r,a,u.max):Math.min(a,r)),a}function Rh(a,l,r){return{min:l!==void 0?a.min+l:void 0,max:r!==void 0?a.max+r-(a.max-a.min):void 0}}function Ib(a,{top:l,left:r,bottom:u,right:c}){return{x:Rh(a.x,r,c),y:Rh(a.y,l,u)}}function Dh(a,l){let r=l.min-a.min,u=l.max-a.max;return l.max-l.min<a.max-a.min&&([r,u]=[u,r]),{min:r,max:u}}function tS(a,l){return{x:Dh(a.x,l.x),y:Dh(a.y,l.y)}}function eS(a,l){let r=.5;const u=ce(a),c=ce(l);return c>u?r=vi(l.min,l.max-u,a.min):u>c&&(r=vi(a.min,a.max-c,l.min)),tn(0,1,r)}function nS(a,l){const r={};return l.min!==void 0&&(r.min=l.min-a.min),l.max!==void 0&&(r.max=l.max-a.min),r}const Du=.35;function aS(a=Du){return a===!1?a=0:a===!0&&(a=Du),{x:Ch(a,"left","right"),y:Ch(a,"top","bottom")}}function Ch(a,l,r){return{min:Oh(a,l),max:Oh(a,r)}}function Oh(a,l){return typeof a=="number"?a:a[l]||0}const iS=new WeakMap;class lS{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:r=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=x=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Oi(x).point)},f=(x,A)=>{const{drag:w,dragPropagation:L,onDragStart:K}=this.getProps();if(w&&!L&&(this.openDragLock&&this.openDragLock(),this.openDragLock=h1(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=A,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ce(Q=>{let q=this.getAxisMotionValue(Q).get()||0;if(Ke.test(q)){const{projection:G}=this.visualElement;if(G&&G.layout){const I=G.layout.layoutBox[Q];I&&(q=ce(I)*(parseFloat(q)/100))}}this.originPoint[Q]=q}),K&&Bt.postRender(()=>K(x,A)),Tu(this.visualElement,"transform");const{animationState:Z}=this.visualElement;Z&&Z.setActive("whileDrag",!0)},y=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A;const{dragPropagation:w,dragDirectionLock:L,onDirectionLock:K,onDrag:Z}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:Q}=A;if(L&&this.currentDirection===null){this.currentDirection=sS(Q),this.currentDirection!==null&&K&&K(this.currentDirection);return}this.updateAxis("x",A.point,Q),this.updateAxis("y",A.point,Q),this.visualElement.render(),Z&&Z(x,A)},m=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A,this.stop(x,A),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Ce(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Ah(l,{onSessionStart:h,onStart:f,onMove:y,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:u,contextWindow:xh(this.visualElement)})}stop(l,r){const u=l||this.latestPointerEvent,c=r||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!u)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:y}=this.getProps();y&&Bt.postRender(()=>y(u,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:r}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(l,r,u){const{drag:c}=this.getProps();if(!u||!Ql(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let f=this.originPoint[l]+u[l];this.constraints&&this.constraints[l]&&(f=$b(f,this.constraints[l],this.elastic[l])),h.set(f)}resolveConstraints(){const{dragConstraints:l,dragElastic:r}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&Ea(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&u?this.constraints=Ib(u.layoutBox,l):this.constraints=!1,this.elastic=aS(r),c!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&Ce(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=nS(u.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:r}=this.getProps();if(!l||!Ea(l))return!1;const u=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=rb(u,c.root,this.visualElement.getTransformPagePoint());let f=tS(c.layout.layoutBox,h);if(r){const y=r(ib(f));this.hasMutatedConstraints=!!y,y&&(f=Pd(y))}return f}startAnimation(l){const{drag:r,dragMomentum:u,dragElastic:c,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:y}=this.getProps(),m=this.constraints||{},p=Ce(g=>{if(!Ql(g,r,this.currentDirection))return;let x=m&&m[g]||{};f&&(x={min:0,max:0});const A=c?200:1e6,w=c?40:1e7,L={type:"inertia",velocity:u?l[g]:0,bounceStiffness:A,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...h,...x};return this.startAxisValueAnimation(g,L)});return Promise.all(p).then(y)}startAxisValueAnimation(l,r){const u=this.getAxisMotionValue(l);return Tu(this.visualElement,l),u.start(Au(l,u,0,r,this.visualElement,!1))}stopAnimation(){Ce(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){Ce(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const r=`_drag${l.toUpperCase()}`,u=this.visualElement.getProps(),c=u[r];return c||this.visualElement.getValue(l,(u.initial?u.initial[l]:void 0)||0)}snapToCursor(l){Ce(r=>{const{drag:u}=this.getProps();if(!Ql(r,u,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(r);if(c&&c.layout){const{min:f,max:y}=c.layout.layoutBox[r];h.set(l[r]-jt(f,y,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:r}=this.getProps(),{projection:u}=this.visualElement;if(!Ea(r)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ce(f=>{const y=this.getAxisMotionValue(f);if(y&&this.constraints!==!1){const m=y.get();c[f]=eS({min:m,max:m},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.resolveConstraints(),Ce(f=>{if(!Ql(f,l,null))return;const y=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];y.set(jt(m,p,c[f]))})}addListeners(){if(!this.visualElement.current)return;iS.set(this.visualElement,this);const l=this.visualElement.current,r=_i(l,"pointerdown",m=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(m)}),u=()=>{const{dragConstraints:m}=this.getProps();Ea(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",u);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Bt.read(u);const f=Ci(window,"resize",()=>this.scalePositionWithinConstraints()),y=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ce(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=m[g].translate,x.set(x.get()+m[g].translate))}),this.visualElement.render())}));return()=>{f(),r(),h(),y&&y()}}getProps(){const l=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:f=Du,dragMomentum:y=!0}=l;return{...l,drag:r,dragDirectionLock:u,dragPropagation:c,dragConstraints:h,dragElastic:f,dragMomentum:y}}}function Ql(a,l,r){return(l===!0||l===a)&&(r===null||r===a)}function sS(a,l=10){let r=null;return Math.abs(a.y)>l?r="y":Math.abs(a.x)>l&&(r="x"),r}class rS extends xn{constructor(l){super(l),this.removeGroupControls=De,this.removeListeners=De,this.controls=new lS(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}unmount(){this.removeGroupControls(),this.removeListeners()}}const _h=a=>(l,r)=>{a&&Bt.postRender(()=>a(l,r))};class uS extends xn{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(l){this.session=new Ah(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xh(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:r,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:_h(l),onStart:_h(r),onMove:u,onEnd:(h,f)=>{delete this.session,c&&Bt.postRender(()=>c(h,f))}}}mount(){this.removePointerDownListener=_i(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Vh(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const zi={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(st.test(a))a=parseFloat(a);else return a;const r=Vh(a,l.target.x),u=Vh(a,l.target.y);return`${r}% ${u}%`}},oS={correct:(a,{treeScale:l,projectionDelta:r})=>{const u=a,c=Sn.parse(a);if(c.length>5)return u;const h=Sn.createTransformer(a),f=typeof c[0]!="number"?1:0,y=r.x.scale*l.x,m=r.y.scale*l.y;c[0+f]/=y,c[1+f]/=m;const p=jt(y,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),h(c)}};let Cu=!1;class cS extends $.Component{componentDidMount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:u,layoutId:c}=this.props,{projection:h}=l;z1(fS),h&&(r.group&&r.group.add(h),u&&u.register&&c&&u.register(h),Cu&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),Zl.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:r,visualElement:u,drag:c,isPresent:h}=this.props,{projection:f}=u;return f&&(f.isPresent=h,Cu=!0,c||l.layoutDependency!==r||r===void 0||l.isPresent!==h?f.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?f.promote():f.relegate()||Bt.postRender(()=>{const y=f.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),iu.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:u}=this.props,{projection:c}=l;Cu=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function wh(a){const[l,r]=_d(),u=$.useContext(vr);return Ie.jsx(cS,{...a,layoutGroup:u,switchLayoutGroup:$.useContext(Qd),isPresent:l,safeToRemove:r})}const fS={borderRadius:{...zi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zi,borderTopRightRadius:zi,borderBottomLeftRadius:zi,borderBottomRightRadius:zi,boxShadow:oS};function dS(a,l,r){const u=re(a)?a:Ta(a);return u.start(Au("",u,l,r)),u.animation}const hS=(a,l)=>a.depth-l.depth;class mS{constructor(){this.children=[],this.isDirty=!1}add(l){xr(this.children,l),this.isDirty=!0}remove(l){Tr(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(hS),this.isDirty=!1,this.children.forEach(l)}}function pS(a,l){const r=de.now(),u=({timestamp:c})=>{const h=c-r;h>=l&&(vn(u),a(h-l))};return Bt.setup(u,!0),()=>vn(u)}const zh=["TopLeft","TopRight","BottomLeft","BottomRight"],yS=zh.length,Bh=a=>typeof a=="string"?parseFloat(a):a,Uh=a=>typeof a=="number"||st.test(a);function gS(a,l,r,u,c,h){c?(a.opacity=jt(0,r.opacity??1,vS(u)),a.opacityExit=jt(l.opacity??1,0,bS(u))):h&&(a.opacity=jt(l.opacity??1,r.opacity??1,u));for(let f=0;f<yS;f++){const y=`border${zh[f]}Radius`;let m=jh(l,y),p=jh(r,y);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Uh(m)===Uh(p)?(a[y]=Math.max(jt(Bh(m),Bh(p),u),0),(Ke.test(p)||Ke.test(m))&&(a[y]+="%")):a[y]=p}(l.rotate||r.rotate)&&(a.rotate=jt(l.rotate||0,r.rotate||0,u))}function jh(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const vS=Nh(0,.5,Vf),bS=Nh(.5,.95,De);function Nh(a,l,r){return u=>u<a?0:u>l?1:r(vi(a,l,u))}function Lh(a,l){a.min=l.min,a.max=l.max}function Oe(a,l){Lh(a.x,l.x),Lh(a.y,l.y)}function Hh(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}function Yh(a,l,r,u,c){return a-=l,a=Kl(a,1/r,u),c!==void 0&&(a=Kl(a,1/c,u)),a}function SS(a,l=0,r=1,u=.5,c,h=a,f=a){if(Ke.test(l)&&(l=parseFloat(l),l=jt(f.min,f.max,l/100)-f.min),typeof l!="number")return;let y=jt(h.min,h.max,u);a===h&&(y-=l),a.min=Yh(a.min,l,r,y,c),a.max=Yh(a.max,l,r,y,c)}function qh(a,l,[r,u,c],h,f){SS(a,l[r],l[u],l[c],l.scale,h,f)}const xS=["x","scaleX","originX"],TS=["y","scaleY","originY"];function Gh(a,l,r,u){qh(a.x,l,xS,r?r.x:void 0,u?u.x:void 0),qh(a.y,l,TS,r?r.y:void 0,u?u.y:void 0)}function Xh(a){return a.translate===0&&a.scale===1}function kh(a){return Xh(a.x)&&Xh(a.y)}function Kh(a,l){return a.min===l.min&&a.max===l.max}function AS(a,l){return Kh(a.x,l.x)&&Kh(a.y,l.y)}function Qh(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function Zh(a,l){return Qh(a.x,l.x)&&Qh(a.y,l.y)}function Ph(a){return ce(a.x)/ce(a.y)}function Jh(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}class ES{constructor(){this.members=[]}add(l){xr(this.members,l),l.scheduleRender()}remove(l){if(Tr(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(l){const r=this.members.findIndex(c=>l===c);if(r===0)return!1;let u;for(let c=r;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){u=h;break}}return u?(this.promote(u),!0):!1}promote(l,r){const u=this.lead;if(l!==u&&(this.prevLead=u,this.lead=l,l.show(),u)){u.instance&&u.scheduleRender(),l.scheduleRender(),l.resumeFrom=u,r&&(l.resumeFrom.preserveOpacity=!0),u.snapshot&&(l.snapshot=u.snapshot,l.snapshot.latestValues=u.animationValues||u.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0);const{crossfade:c}=l.options;c===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:r,resumingFrom:u}=l;r.onExitComplete&&r.onExitComplete(),u&&u.options.onExitComplete&&u.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function MS(a,l,r){let u="";const c=a.x.translate/l.x,h=a.y.translate/l.y,f=r?.z||0;if((c||h||f)&&(u=`translate3d(${c}px, ${h}px, ${f}px) `),(l.x!==1||l.y!==1)&&(u+=`scale(${1/l.x}, ${1/l.y}) `),r){const{transformPerspective:p,rotate:g,rotateX:x,rotateY:A,skewX:w,skewY:L}=r;p&&(u=`perspective(${p}px) ${u}`),g&&(u+=`rotate(${g}deg) `),x&&(u+=`rotateX(${x}deg) `),A&&(u+=`rotateY(${A}deg) `),w&&(u+=`skewX(${w}deg) `),L&&(u+=`skewY(${L}deg) `)}const y=a.x.scale*l.x,m=a.y.scale*l.y;return(y!==1||m!==1)&&(u+=`scale(${y}, ${m})`),u||"none"}const Ou=["","X","Y","Z"],RS=1e3;let DS=0;function _u(a,l,r,u){const{latestValues:c}=l;c[a]&&(r[a]=c[a],l.setStaticValue(a,0),u&&(u[a]=0))}function Fh(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const r=ch(l);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(r,"transform",Bt,!(c||h))}const{parent:u}=a;u&&!u.hasCheckedOptimisedAppear&&Fh(u)}function Wh({attachResizeListener:a,defaultParent:l,measureScroll:r,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},y=l?.()){this.id=DS++,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(_S),this.nodes.forEach(BS),this.nodes.forEach(US),this.nodes.forEach(VS)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new mS)}addEventListener(f,y){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Mr),this.eventHandlers.get(f).add(y)}notifyListeners(f,...y){const m=this.eventHandlers.get(f);m&&m.notify(...y)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Od(f)&&!b1(f),this.instance=f;const{layoutId:y,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||y)&&(this.isLayoutDirty=!0),a){let g,x=0;const A=()=>this.root.updateBlockedByResize=!1;Bt.read(()=>{x=window.innerWidth}),a(f,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,g&&g(),g=pS(A,250),Zl.hasAnimatedSinceResize&&(Zl.hasAnimatedSinceResize=!1,this.nodes.forEach(tm)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&p&&(y||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:A,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const L=this.options.transition||p.getDefaultTransition()||YS,{onLayoutAnimationStart:K,onLayoutAnimationComplete:Z}=p.getProps(),Q=!this.targetLayout||!Zh(this.targetLayout,w),q=!x&&A;if(this.options.layoutRoot||this.resumeFrom||q||x&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...eu(L,"layout"),onPlay:K,onComplete:Z};(p.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(g,q)}else x||tm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vn(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(jS),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:y,layout:m}=this.options;if(y===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($h);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ih);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zS),this.nodes.forEach(CS),this.nodes.forEach(OS)):this.nodes.forEach(Ih),this.clearAllSnapshots();const y=de.now();te.delta=tn(0,1e3/60,y-te.timestamp),te.timestamp=y,te.isProcessing=!0,Cr.update.process(te),Cr.preRender.process(te),Cr.render.process(te),te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,iu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wS),this.sharedNodes.forEach(NS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ce(this.snapshot.measuredBox.x)&&!ce(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(y=!1),y&&this.instance){const m=u(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!kh(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;f&&this.instance&&(y||Fn(this.latestValues)||g)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const y=this.measurePageBox();let m=this.removeElementScroll(y);return f&&(m=this.removeTransform(m)),qS(m),{animationId:this.root.animationId,measuredBox:y,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return qt();const y=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(GS))){const{scroll:p}=this.root;p&&(Ma(y.x,p.offset.x),Ma(y.y,p.offset.y))}return y}removeElementScroll(f){const y=qt();if(Oe(y,f),this.scroll?.wasRoot)return y;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:g,options:x}=p;p!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&Oe(y,f),Ma(y.x,g.offset.x),Ma(y.y,g.offset.y))}return y}applyTransform(f,y=!1){const m=qt();Oe(m,f);for(let p=0;p<this.path.length;p++){const g=this.path[p];!y&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Ra(m,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Fn(g.latestValues)&&Ra(m,g.latestValues)}return Fn(this.latestValues)&&Ra(m,this.latestValues),m}removeTransform(f){const y=qt();Oe(y,f);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!Fn(p.latestValues))continue;vu(p.latestValues)&&p.updateSnapshot();const g=qt(),x=p.measurePageBox();Oe(g,x),Gh(y,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return Fn(this.latestValues)&&Gh(y,this.latestValues),y}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==y;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=te.timestamp,!this.targetDelta&&!this.relativeTarget){const A=this.getClosestProjectingParent();A&&A.layout&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),wi(this.relativeTargetOrigin,this.layout.layoutBox,A.layout.layoutBox),Oe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Pb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oe(this.target,this.layout.layoutBox),$d(this.target,this.targetDelta)):Oe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const A=this.getClosestProjectingParent();A&&!!A.resumingFrom==!!this.resumingFrom&&!A.options.layoutScroll&&A.target&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),wi(this.relativeTargetOrigin,this.target,A.target),Oe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vu(this.parent.latestValues)||Jd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const f=this.getLead(),y=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===te.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Oe(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,A=this.treeScale.y;sb(this.layoutCorrected,this.treeScale,this.path,y),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=qt());const{target:w}=f;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hh(this.prevProjectionDelta.x,this.projectionDelta.x),Hh(this.prevProjectionDelta.y,this.projectionDelta.y)),Vi(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==A||!Jh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Da(),this.projectionDelta=Da(),this.projectionDeltaWithTransform=Da()}setAnimationOrigin(f,y=!1){const m=this.snapshot,p=m?m.latestValues:{},g={...this.latestValues},x=Da();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const A=qt(),w=m?m.source:void 0,L=this.layout?this.layout.source:void 0,K=w!==L,Z=this.getStack(),Q=!Z||Z.members.length<=1,q=!!(K&&!Q&&this.options.crossfade===!0&&!this.path.some(HS));this.animationProgress=0;let G;this.mixTargetDelta=I=>{const Y=I/1e3;em(x.x,f.x,Y),em(x.y,f.y,Y),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wi(A,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LS(this.relativeTarget,this.relativeTargetOrigin,A,Y),G&&AS(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=qt()),Oe(G,this.relativeTarget)),K&&(this.animationValues=g,gS(g,p,this.latestValues,Y,q,Q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bt.update(()=>{Zl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ta(0)),this.currentAnimation=dS(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(RS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:y,target:m,layout:p,latestValues:g}=f;if(!(!y||!m||!p)){if(this!==f&&this.layout&&p&&sm(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||qt();const x=ce(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+x;const A=ce(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+A}Oe(y,m),Ra(y,g),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,y,g)}}registerSharedNode(f,y){this.sharedNodes.has(f)||this.sharedNodes.set(f,new ES),this.sharedNodes.get(f).add(y);const p=y.options.initialPromotionConfig;y.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(y):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:y,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let y=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(y=!0),!y)return;const p={};m.z&&_u("z",f,p,this.animationValues);for(let g=0;g<Ou.length;g++)_u(`rotate${Ou[g]}`,f,p,this.animationValues),_u(`skew${Ou[g]}`,f,p,this.animationValues);f.render();for(const g in p)f.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);f.scheduleRender()}applyProjectionStyles(f,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=kl(y?.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=kl(y?.pointerEvents)||""),this.hasProjected&&!Fn(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=MS(this.projectionDeltaWithTransform,this.treeScale,g);m&&(x=m(g,x)),f.transform=x;const{x:A,y:w}=this.projectionDelta;f.transformOrigin=`${A.origin*100}% ${w.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const L in Di){if(g[L]===void 0)continue;const{correct:K,applyTo:Z,isCSSVariable:Q}=Di[L],q=x==="none"?g[L]:K(g[L],p);if(Z){const G=Z.length;for(let I=0;I<G;I++)f[Z[I]]=q}else Q?this.options.visualElement.renderState.vars[L]=q:f[L]=q}this.options.layoutId&&(f.pointerEvents=p===this?kl(y?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach($h),this.root.sharedNodes.clear()}}}function CS(a){a.updateLayout()}function OS(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=a.layout,{animationType:c}=a.options,h=l.source!==a.layout.source;c==="size"?Ce(g=>{const x=h?l.measuredBox[g]:l.layoutBox[g],A=ce(x);x.min=r[g].min,x.max=x.min+A}):sm(c,l.layoutBox,r)&&Ce(g=>{const x=h?l.measuredBox[g]:l.layoutBox[g],A=ce(r[g]);x.max=x.min+A,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[g].max=a.relativeTarget[g].min+A)});const f=Da();Vi(f,r,l.layoutBox);const y=Da();h?Vi(y,a.applyTransform(u,!0),l.measuredBox):Vi(y,r,l.layoutBox);const m=!kh(f);let p=!1;if(!a.resumeFrom){const g=a.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:A}=g;if(x&&A){const w=qt();wi(w,l.layoutBox,x.layoutBox);const L=qt();wi(L,r,A.layoutBox),Zh(w,L)||(p=!0),g.options.layoutRoot&&(a.relativeTarget=L,a.relativeTargetOrigin=w,a.relativeParent=g)}}}a.notifyListeners("didUpdate",{layout:r,snapshot:l,delta:y,layoutDelta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:r}=a.options;r&&r()}a.options.transition=void 0}function _S(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function VS(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function wS(a){a.clearSnapshot()}function $h(a){a.clearMeasurements()}function Ih(a){a.isLayoutDirty=!1}function zS(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function tm(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function BS(a){a.resolveTargetDelta()}function US(a){a.calcProjection()}function jS(a){a.resetSkewAndRotation()}function NS(a){a.removeLeadSnapshot()}function em(a,l,r){a.translate=jt(l.translate,0,r),a.scale=jt(l.scale,1,r),a.origin=l.origin,a.originPoint=l.originPoint}function nm(a,l,r,u){a.min=jt(l.min,r.min,u),a.max=jt(l.max,r.max,u)}function LS(a,l,r,u){nm(a.x,l.x,r.x,u),nm(a.y,l.y,r.y,u)}function HS(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const YS={duration:.45,ease:[.4,0,.1,1]},am=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),im=am("applewebkit/")&&!am("chrome/")?Math.round:De;function lm(a){a.min=im(a.min),a.max=im(a.max)}function qS(a){lm(a.x),lm(a.y)}function sm(a,l,r){return a==="position"||a==="preserve-aspect"&&!Zb(Ph(l),Ph(r),.2)}function GS(a){return a!==a.root&&a.scroll?.wasRoot}const XS=Wh({attachResizeListener:(a,l)=>Ci(a,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vu={current:void 0},rm=Wh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Vu.current){const a=new XS({});a.mount(window),a.setOptions({layoutScroll:!0}),Vu.current=a}return Vu.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),kS={pan:{Feature:uS},drag:{Feature:rS,ProjectionNode:rm,MeasureLayout:wh}};function um(a,l,r){const{props:u}=a;a.animationState&&u.whileHover&&a.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,h=u[c];h&&Bt.postRender(()=>h(l,Oi(l)))}class KS extends xn{mount(){const{current:l}=this.node;l&&(this.unmount=m1(l,(r,u)=>(um(this.node,u,"Start"),c=>um(this.node,c,"End"))))}unmount(){}}class QS extends xn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!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=gi(Ci(this.node.current,"focus",()=>this.onFocus()),Ci(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function om(a,l,r){const{props:u}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&u.whileTap&&a.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),h=u[c];h&&Bt.postRender(()=>h(l,Oi(l)))}class ZS extends xn{mount(){const{current:l}=this.node;l&&(this.unmount=v1(l,(r,u)=>(om(this.node,u,"Start"),(c,{success:h})=>om(this.node,c,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wu=new WeakMap,zu=new WeakMap,PS=a=>{const l=wu.get(a.target);l&&l(a)},JS=a=>{a.forEach(PS)};function FS({root:a,...l}){const r=a||document;zu.has(r)||zu.set(r,{});const u=zu.get(r),c=JSON.stringify(l);return u[c]||(u[c]=new IntersectionObserver(JS,{root:a,...l})),u[c]}function WS(a,l,r){const u=FS(l);return wu.set(a,r),u.observe(a),()=>{wu.delete(a),u.unobserve(a)}}const $S={some:0,all:1};class IS extends xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:r,margin:u,amount:c="some",once:h}=l,f={root:r?r.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:$S[c]},y=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,h&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),A=p?g:x;A&&A(m)};return WS(this.node.current,f,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:r}=this.node;["amount","margin","root"].some(tx(l,r))&&this.startObserver()}unmount(){}}function tx({viewport:a={}},{viewport:l={}}={}){return r=>a[r]!==l[r]}const ex={...qb,...{inView:{Feature:IS},tap:{Feature:ZS},focus:{Feature:QS},hover:{Feature:KS}},...kS,...{layout:{ProjectionNode:rm,MeasureLayout:wh}}},ee=ab(ex,yb),nx={display:"flex",minHeight:"60px",width:"100%",borderRadius:"6px",border:"1px solid #e2e8f0",backgroundColor:"transparent",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)",outline:"none",fontFamily:"inherit",resize:"vertical",transition:"border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out"},ax={borderColor:"#0f172a",boxShadow:"0 0 0 1px #0f172a"},ix="#64748b",Bu=pt.forwardRef(({style:a,onFocus:l,onBlur:r,...u},c)=>{const[h,f]=pt.useState(!1),y={...nx,...h?ax:{},...a,"--placeholder-color":ix};u.disabled&&(y.cursor="not-allowed",y.opacity=.5);const m=g=>{f(!0),l?.(g)},p=g=>{f(!1),r?.(g)};return X.jsxs(X.Fragment,{children:[X.jsx("style",{children:`
|
|
125
|
+
.textarea-with-placeholder::placeholder {
|
|
126
|
+
color: var(--placeholder-color);
|
|
127
|
+
}
|
|
128
|
+
`}),X.jsx("textarea",{className:"textarea-with-placeholder",style:y,ref:c,onFocus:m,onBlur:p,...u})]})});Bu.displayName="Textarea";const cm=pt.forwardRef(({texts:a,typingSpeed:l=30,deletingSpeed:r=15,delayAfterText:u=800,onSubmit:c,isStreaming:h=!1,className:f="",placeholderClassName:y="",value:m,onChange:p,onFocus:g,onBlur:x,onKeyDown:A,onPaste:w,placeholder:L,rows:K=1,...Z},Q)=>{const[q,G]=pt.useState(""),[I,Y]=pt.useState(!1),[F,et]=pt.useState(0),[W,gt]=pt.useState(!1),[St,vt]=pt.useState(!1),[xt,Vt]=pt.useState(!1),Kt=pt.useRef(null),Dt=Q||Kt,z=a[F],j=m===""||m===void 0;pt.useEffect(()=>{if(!j)return;let at;return W?(at=setTimeout(()=>{gt(!1),Vt(!0),vt(!0)},u),()=>clearTimeout(at)):xt?(at=setTimeout(()=>{vt(!1),setTimeout(()=>{Vt(!1),Y(!0)},300)},3e3),()=>clearTimeout(at)):(I?q===""?(Y(!1),et(T=>(T+1)%a.length)):at=setTimeout(()=>{G(T=>T.slice(0,-1))},r):q===z?gt(!0):at=setTimeout(()=>{G(z.slice(0,q.length+1))},l),()=>clearTimeout(at))},[q,I,F,W,xt,z,a,l,r,u,j]);const P=at=>{if(at.key==="Tab"&&j){at.preventDefault(),p?.({target:{value:z}});return}if(at.key==="Enter"){if(at.shiftKey||(at.preventDefault(),h))return;c?.(at)}A?.(at)};return X.jsxs("div",{style:{position:"relative",width:"100%"},children:[j&&X.jsx("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none",display:"flex",alignItems:"flex-start",paddingLeft:"4px",paddingRight:"4px",paddingTop:"0",paddingBottom:"0",marginTop:"4px"},children:X.jsxs("p",{style:{color:"#a1a1aa",fontWeight:"500",lineHeight:"1.5",...y?{}:{}},children:[q,X.jsx(R1,{children:St&&X.jsx(ee.span,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3},style:{fontSize:"12px",color:"#d1d5db",backgroundColor:"#27272a",paddingLeft:"6px",paddingRight:"6px",paddingTop:"2px",paddingBottom:"2px",borderRadius:"8px",border:"1px solid #3f3f46",alignItems:"center",marginLeft:"8px",display:"inline-flex",whiteSpace:"nowrap"},children:"Tab to select"})})]})}),X.jsx(Bu,{ref:Dt,placeholder:L,style:f?{}:{},value:m,onFocus:g,onBlur:x,onChange:p,onKeyDown:P,onPaste:w,rows:K,...Z})]})});cm.displayName="TypingTextarea";const lx={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",whiteSpace:"nowrap",borderRadius:"6px",fontSize:"14px",fontWeight:"500",transition:"colors 0.15s ease-in-out",outline:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},sx={default:{backgroundColor:"#0f172a",color:"#f8fafc",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},destructive:{backgroundColor:"#dc2626",color:"#fef2f2",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},outline:{border:"1px solid #e2e8f0",backgroundColor:"transparent",color:"#0f172a",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},secondary:{backgroundColor:"#f1f5f9",color:"#0f172a",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},ghost:{backgroundColor:"transparent",color:"#0f172a"},link:{backgroundColor:"transparent",color:"#0f172a",textDecoration:"underline",textUnderlineOffset:"4px"},ghostOutline:{border:"1px solid #f1f5f9",backgroundColor:"transparent",color:"#64748b",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"}},rx={default:{height:"36px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"8px",paddingBottom:"8px"},sm:{height:"32px",paddingLeft:"12px",paddingRight:"12px",fontSize:"12px"},lg:{height:"40px",paddingLeft:"32px",paddingRight:"32px"},icon:{height:"32px",width:"32px",padding:"0"}},ux=a=>{switch(a){case"default":return{backgroundColor:"#1e293b"};case"destructive":return{backgroundColor:"#b91c1c"};case"outline":return{backgroundColor:"#f1f5f9",color:"#0f172a"};case"secondary":return{backgroundColor:"#e2e8f0"};case"ghost":return{backgroundColor:"#f1f5f9",color:"#0f172a"};case"link":return{};case"ghostOutline":return{backgroundColor:"#f1f5f9",color:"#0f172a"};default:return{}}},Uu=pt.forwardRef(({variant:a="default",size:l="default",asChild:r=!1,style:u,onMouseEnter:c,onMouseLeave:h,...f},y)=>{const[m,p]=pt.useState(!1),g={...lx,...sx[a],...rx[l],...m?ux(a):{},...u};f.disabled&&(g.pointerEvents="none",g.opacity=.5);const x=w=>{p(!0),c?.(w)},A=w=>{p(!1),h?.(w)};return r&&console.warn("asChild prop is not supported in the inline CSS version of Button. Consider using a wrapper component instead."),X.jsx("button",{style:g,ref:y,onMouseEnter:x,onMouseLeave:A,...f})});Uu.displayName="Button";const ox=({isRecording:a,isTranscribing:l})=>l?X.jsx("div",{style:{position:"relative",width:"20px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},children:X.jsx(ee.div,{style:{width:"12px",height:"12px",border:"2px solid white",borderTop:"2px solid transparent",borderRadius:"50%"},animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})}):a?X.jsx("div",{style:{position:"relative",width:"20px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},children:X.jsx(ee.div,{style:{width:"12px",height:"12px",backgroundColor:"white",borderRadius:"2px"},animate:{scale:[1,.95,1]},transition:{duration:1,repeat:1/0,ease:"easeInOut"}})}):X.jsx("div",{style:{position:"relative",width:"20px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"2px"},children:[X.jsx(ee.div,{style:{width:"1.5px",height:"8px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.4,.8,.4],opacity:[.6,.9,.6]},transition:{duration:1.8,repeat:1/0,ease:"easeInOut",delay:0}}),X.jsx(ee.div,{style:{width:"1.5px",height:"12px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.5,1,.5],opacity:[.7,1,.7]},transition:{duration:2.1,repeat:1/0,ease:"easeInOut",delay:.2}}),X.jsx(ee.div,{style:{width:"1.5px",height:"16px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.6,1,.6],opacity:[.8,1,.8]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut",delay:.4}}),X.jsx(ee.div,{style:{width:"1.5px",height:"12px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.5,.9,.5],opacity:[.7,1,.7]},transition:{duration:1.9,repeat:1/0,ease:"easeInOut",delay:.6}}),X.jsx(ee.div,{style:{width:"1.5px",height:"8px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.4,.7,.4],opacity:[.6,.9,.6]},transition:{duration:2.2,repeat:1/0,ease:"easeInOut",delay:.8}})]})}),cx=({isRecording:a,isTranscribing:l,onVoiceRecording:r,playgroundUid:u,isLoggedIn:c=!1})=>X.jsx(Uu,{size:"sm",variant:"ghostOutline",style:{height:"32px",paddingLeft:"8px",paddingRight:"8px",fontSize:"12px",fontWeight:"500",transition:"all 0.2s ease-in-out",...a&&{backgroundColor:"#ef4444",borderColor:"#ef4444",boxShadow:"0 10px 15px -3px rgba(239, 68, 68, 0.25)",color:"white"},...l&&{backgroundColor:"#3b82f6",borderColor:"#3b82f6",boxShadow:"0 10px 15px -3px rgba(59, 130, 246, 0.25)",color:"white"}},onClick:()=>{c&&!l?r():c||(window.location.href="/sign-up")},disabled:l,children:X.jsx(ox,{isRecording:a,isTranscribing:l})}),fx=({isRecording:a,isTranscribing:l,onDismiss:r})=>a||l?X.jsx(ee.div,{style:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.2)"},onClick:l?void 0:r,children:X.jsx(ee.div,{style:{backdropFilter:"blur(4px)",borderRadius:"16px",padding:"32px",border:"1px solid",borderColor:"rgba(255, 255, 255, 0.15)",backgroundColor:"rgba(255, 255, 255, 0.12)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)"},onClick:c=>c.stopPropagation(),children:X.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"24px"},children:l?X.jsxs(X.Fragment,{children:[X.jsx(ee.div,{style:{width:"64px",height:"64px",border:"4px solid",borderColor:"rgba(255, 255, 255, 0.3)",borderTopColor:"white",borderRadius:"50%"},animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx("h3",{style:{fontSize:"20px",fontWeight:"600",marginBottom:"8px",color:"white"},children:"Just a sec..."}),X.jsx("p",{style:{color:"rgba(255, 255, 255, 0.7)"},children:"Let me write that down for you"})]})]}):X.jsxs(X.Fragment,{children:[X.jsx("div",{style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:"128px",height:"64px"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[X.jsx(ee.div,{style:{width:"8px",height:"32px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.4,.8,.4],opacity:[.6,.9,.6]},transition:{duration:1.8,repeat:1/0,ease:"easeInOut",delay:0}}),X.jsx(ee.div,{style:{width:"8px",height:"48px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.5,1,.5],opacity:[.7,1,.7]},transition:{duration:2.1,repeat:1/0,ease:"easeInOut",delay:.2}}),X.jsx(ee.div,{style:{width:"8px",height:"64px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.6,1,.6],opacity:[.8,1,.8]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut",delay:.4}}),X.jsx(ee.div,{style:{width:"8px",height:"48px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.5,.9,.5],opacity:[.7,1,.7]},transition:{duration:1.9,repeat:1/0,ease:"easeInOut",delay:.6}}),X.jsx(ee.div,{style:{width:"8px",height:"32px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.4,.7,.4],opacity:[.6,.9,.6]},transition:{duration:2.2,repeat:1/0,ease:"easeInOut",delay:.8}})]})}),X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx("h3",{style:{fontSize:"20px",fontWeight:"600",marginBottom:"8px",color:"white"},children:"I'm listening..."}),X.jsx("p",{style:{color:"rgba(255, 255, 255, 0.7)"},children:"Tell me what you'd like to build today"})]}),X.jsx(ee.button,{style:{paddingLeft:"24px",paddingRight:"24px",paddingTop:"12px",paddingBottom:"12px",backdropFilter:"blur(4px)",borderRadius:"12px",fontWeight:"500",transition:"all 0.15s ease",backgroundColor:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",cursor:"pointer"},onClick:r,whileHover:{scale:1.05},whileTap:{scale:.95},children:"Stop"})]})})})}):null,dx={ocean:{primary:"#1ca0fb",shadow:{light:"#dbeafe",dark:"#1e40af"},gradient:"radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent), radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent), radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent), radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316)",placeholderText:{light:"#60a5fa",dark:"#93c5fd"},tabHint:{text:{light:"#1e40af",dark:"#dbeafe"},bg:{light:"#eff6ff",dark:"#1e3a8a"},border:{light:"#bfdbfe",dark:"#1e40af"}}},autumn:{primary:"#f97316",shadow:{light:"#fed7aa",dark:"#c2410c"},gradient:"radial-gradient(circle farthest-side at 0 100%, #dc2626, transparent), radial-gradient(circle farthest-side at 100% 0, #f59e0b, transparent), radial-gradient(circle farthest-side at 100% 100%, #eab308, transparent), radial-gradient(circle farthest-side at 0 0, #f97316, #141316)",placeholderText:{light:"#fb923c",dark:"#fdba74"},tabHint:{text:{light:"#c2410c",dark:"#fed7aa"},bg:{light:"#fff7ed",dark:"#9a3412"},border:{light:"#fde68a",dark:"#c2410c"}}},mint:{primary:"#10b981",shadow:{light:"#a7f3d0",dark:"#047857"},gradient:"radial-gradient(circle farthest-side at 0 100%, #059669, transparent), radial-gradient(circle farthest-side at 100% 0, #06b6d4, transparent), radial-gradient(circle farthest-side at 100% 100%, #10b981, transparent), radial-gradient(circle farthest-side at 0 0, #14b8a6, #141316)",placeholderText:{light:"#34d399",dark:"#6ee7b7"},tabHint:{text:{light:"#047857",dark:"#a7f3d0"},bg:{light:"#ecfdf5",dark:"#064e3b"},border:{light:"#a7f3d0",dark:"#047857"}}},sunset:{primary:"#ec4899",shadow:{light:"#fce7f3",dark:"#be185d"},gradient:"radial-gradient(circle farthest-side at 0 100%, #f59e0b, transparent), radial-gradient(circle farthest-side at 100% 0, #ec4899, transparent), radial-gradient(circle farthest-side at 100% 100%, #f97316, transparent), radial-gradient(circle farthest-side at 0 0, #ef4444, #141316)",placeholderText:{light:"#f472b6",dark:"#f9a8d4"},tabHint:{text:{light:"#be185d",dark:"#fce7f3"},bg:{light:"#fdf2f8",dark:"#831843"},border:{light:"#fbcfe8",dark:"#be185d"}}},lavender:{primary:"#8b5cf6",shadow:{light:"#ddd6fe",dark:"#5b21b6"},gradient:"radial-gradient(circle farthest-side at 0 100%, #6366f1, transparent), radial-gradient(circle farthest-side at 100% 0, #a855f7, transparent), radial-gradient(circle farthest-side at 100% 100%, #ec4899, transparent), radial-gradient(circle farthest-side at 0 0, #8b5cf6, #141316)",placeholderText:{light:"#a78bfa",dark:"#c4b5fd"},tabHint:{text:{light:"#5b21b6",dark:"#ddd6fe"},bg:{light:"#f5f3ff",dark:"#4c1d95"},border:{light:"#ddd6fe",dark:"#5b21b6"}}},forest:{primary:"#16a34a",shadow:{light:"#bbf7d0",dark:"#15803d"},gradient:"radial-gradient(circle farthest-side at 0 100%, #059669, transparent), radial-gradient(circle farthest-side at 100% 0, #16a34a, transparent), radial-gradient(circle farthest-side at 100% 100%, #65a30d, transparent), radial-gradient(circle farthest-side at 0 0, #166534, #141316)",placeholderText:{light:"#4ade80",dark:"#86efac"},tabHint:{text:{light:"#15803d",dark:"#bbf7d0"},bg:{light:"#f0fdf4",dark:"#14532d"},border:{light:"#bbf7d0",dark:"#15803d"}}},coral:{primary:"#06b6d4",shadow:{light:"#a5f3fc",dark:"#0e7490"},gradient:"radial-gradient(circle farthest-side at 0 100%, #0891b2, transparent), radial-gradient(circle farthest-side at 100% 0, #06b6d4, transparent), radial-gradient(circle farthest-side at 100% 100%, #0d9488, transparent), radial-gradient(circle farthest-side at 0 0, #0284c7, #141316)",placeholderText:{light:"#22d3ee",dark:"#67e8f9"},tabHint:{text:{light:"#0e7490",dark:"#a5f3fc"},bg:{light:"#ecfeff",dark:"#164e63"},border:{light:"#a5f3fc",dark:"#0e7490"}}}},fm=a=>dx[a||"ocean"],hx=(a,l)=>a?fm(a):fm(),ju=({query:a,placeholder:l="Ask anything...",setQuery:r,onSubmit:u,isStreaming:c,height:h,hasPendingEnv:f,playgroundUid:y,hasTypingAnimation:m=!1,isSubmitting:p,onCancel:g,typingTexts:x=["Build me an AI chatbot application using OpenAI API","Build me an ecommerce website using Stripe API","Build me a price tracking tool using AgentQL API","Build me a movie recommendation system using Qdrant API","Build me a weather forecasting app using OpenWeather API","Build me a SMS notification system using Twilio API","Build me a travel booking platform using Skyscanner API"],shouldFocusOnMount:A=!0,showModelSelector:w=!0,projectUid:L,theme:K})=>{const[Z,Q]=pt.useState(!0),[q,G]=pt.useState(!1),[I,Y]=pt.useState(!1),[,F]=pt.useState(!1),[et,W]=pt.useState(null),[gt,St]=pt.useState(null),vt=pt.useRef(null),xt=pt.useRef([]);pt.useRef(null);const Vt=pt.useRef(null),[Kt,Dt]=pt.useState(!1),z=pt.useMemo(()=>hx(K),[K,y]);pt.useEffect(()=>{Dt(!0)},[]),pt.useEffect(()=>{A&&Vt.current&&Kt&&(Vt.current.focus(),Vt.current.select())},[Kt,A]);const j=()=>{Q(!0)},P=()=>{Q(!0)},at=()=>{const V=Vt.current;if(V){V.style.height="auto";const H=Math.min(V.scrollHeight,200);V.style.height=`${H}px`}};pt.useEffect(()=>{at()},[a]),pt.useEffect(()=>{const V=H=>{const J=(H.metaKey||H.ctrlKey)&&H.key==="/",k=(H.key==="Enter"||H.key==="Escape")&&(q||I);J?(H.preventDefault(),O()):k&&(H.preventDefault(),q&&!I&&O())};return document.addEventListener("keydown",V),()=>{document.removeEventListener("keydown",V)}},[q,I]),pt.useEffect(()=>()=>{et&&clearTimeout(et),vt.current&&q&&vt.current.stop(),F(!1)},[et,q]);const T=()=>{I||(q&&b(),F(!1))},b=async()=>{if(vt.current&&q)return G(!1),Y(!0),et&&(clearTimeout(et),W(null)),new Promise(V=>{if(vt.current){let H=!1,J;vt.current.ondataavailable=k=>{k.data.size>0&&(H=!0,xt.current.push(k.data))},vt.current.onstop=async()=>{J&&clearTimeout(J);try{if(!H||xt.current.length===0)throw new Error("No audio data recorded");const k=new Blob(xt.current,{type:"audio/wav"});if(k.size<1024)throw new Error("Audio recording too short");const yt=new FormData;yt.append("audio",k,"recording.wav");const rt=await fetch("/api/voice/transcribe",{method:"POST",body:yt});if(rt.ok){const{transcription:bt}=await rt.json();if(bt&&bt.trim()){const ne=a?`${a} ${bt}`:bt;r(ne.trim()),setTimeout(()=>{if(Vt.current){Vt.current.focus();const $n=Vt.current.value.length;Vt.current.setSelectionRange($n,$n)}},100)}}else throw new Error("Transcription failed")}catch(k){console.error("Transcription error:",k),k instanceof Error&&(k.message.includes("No audio data")||k.message.includes("too short"))}finally{xt.current=[],vt.current=null,St(null),Y(!1),F(!1),V()}},J=setTimeout(()=>{console.warn("MediaRecorder stop timeout, forcing cleanup"),xt.current=[],vt.current=null,St(null),Y(!1),F(!1),V()},5e3);try{vt.current.stop()}catch(k){console.error("Error stopping MediaRecorder:",k),J&&clearTimeout(J),xt.current=[],vt.current=null,St(null),Y(!1),F(!1),V()}}else St(null),Y(!1),F(!1),V()})},O=async()=>{if(!I)if(q)await b();else try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw new Error("Browser doesn't support microphone access");const V=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}}),H=new MediaRecorder(V,{mimeType:MediaRecorder.isTypeSupported("audio/webm")?"audio/webm":"audio/mp4"});vt.current=H,xt.current=[],H.ondataavailable=k=>{k.data.size>0&&xt.current.push(k.data)},H.start(200),G(!0),St(Date.now()),F(!0);const J=setTimeout(async()=>{await b()},6e4);W(J)}catch(V){console.error("Microphone access error:",V),V instanceof Error&&(V.name==="NotAllowedError"||V.name==="NotFoundError"||V.name==="NotReadableError"||V.name)}};return X.jsxs("div",{children:[X.jsx(fx,{isRecording:q,isTranscribing:I,onDismiss:T}),X.jsxs("div",{style:{position:"relative",padding:"2px",width:"100%",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"},children:[X.jsx("div",{style:{backgroundColor:z.shadow.dark,position:"absolute",top:"0",right:"0",bottom:"0",left:"0",borderRadius:"0.85rem",transition:"opacity 0.3s ease-in-out",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",opacity:"1",pointerEvents:"none"}}),X.jsx("div",{style:{background:z.gradient,backgroundSize:"400% 400%",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",borderRadius:"0.85rem",zIndex:1,filter:"blur(12px)",transition:"opacity 0.3s ease-in-out",pointerEvents:"none",opacity:Z?"0.8":"0.4",animation:"gradient-bg 5s ease infinite"}}),X.jsx("div",{style:{background:z.gradient,backgroundSize:"400% 400%",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",borderRadius:"0.85rem",zIndex:1,transition:"opacity 0.3s ease-in-out",pointerEvents:"none",opacity:Z?"1":"0.7",animation:"gradient-bg 5s ease infinite"}}),X.jsx("div",{style:{position:"relative",zIndex:10,borderRadius:"0.75rem",backgroundColor:"rgb(24, 24, 27)",width:"100%",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"},children:X.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[X.jsxs("div",{style:{position:"relative",display:"flex",paddingLeft:"8px",paddingRight:"8px",gap:"8px",paddingTop:"4px",paddingBottom:"4px"},children:[m&&x.length>0?X.jsx(cm,{texts:x,ref:Vt,style:{flex:1,width:"100%",border:"none",boxShadow:"none",outline:"none",paddingLeft:"4px",paddingRight:"4px",resize:"none",fontSize:"16px",overflow:"hidden",backgroundColor:"transparent",display:"block",paddingTop:"0",paddingBottom:"0",lineHeight:"1.5",overflowY:"auto",maxHeight:"192px",marginTop:"4px",color:"#f4f4f5",fontFamily:"inherit"},value:a,onFocus:j,onBlur:P,onChange:V=>r(V.target.value),onSubmit:V=>{if(q||I){V.preventDefault();return}u(V)},isStreaming:c,rows:1}):X.jsx(Bu,{ref:Vt,placeholder:l,style:{flex:1,width:"100%",border:"none",boxShadow:"none",outline:"none",paddingLeft:"4px",paddingRight:"4px",resize:"none",fontSize:"16px",overflow:"hidden",backgroundColor:"transparent",display:"block",paddingTop:"0",paddingBottom:"0",lineHeight:"1.5",overflowY:"auto",maxHeight:"192px",marginTop:"4px",color:"#f4f4f5",fontFamily:"inherit"},value:a,onFocus:j,onBlur:P,onChange:V=>r(V.target.value),onKeyDown:V=>{if(V.key==="Enter"){if(V.shiftKey||(V.preventDefault(),c))return;u(V)}},rows:1}),X.jsxs("div",{children:[X.jsx(cx,{isRecording:q,isTranscribing:I,onVoiceRecording:O,playgroundUid:y}),X.jsx(Uu,{style:{height:"32px",width:"32px",borderRadius:"6px"},disabled:a.length===0||p||f,variant:c?"outline":"default",onClick:V=>{c&&g?g():u(V)},children:p?X.jsx(Eg,{style:{height:"20px",width:"20px",animation:"spin 1s linear infinite"}}):c?X.jsx(Ag,{style:{height:"24px",width:"24px"}}):X.jsx(Tg,{style:{height:"20px",width:"20px"}})})]})]}),X.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"8px",paddingRight:"8px"},children:X.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:w&&X.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"}})})})]})}),X.jsx("style",{children:`
|
|
129
|
+
@keyframes gradient-bg {
|
|
130
|
+
0%,
|
|
131
|
+
100% {
|
|
132
|
+
background-position: 0% 50%;
|
|
133
|
+
}
|
|
134
|
+
50% {
|
|
135
|
+
background-position: 100% 50%;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@keyframes spin {
|
|
139
|
+
from {
|
|
140
|
+
transform: rotate(0deg);
|
|
141
|
+
}
|
|
142
|
+
to {
|
|
143
|
+
transform: rotate(360deg);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
`})]})]})};function mx(){const a=document.createElement("div");return a.id="sampleapp-button-"+Date.now(),document.body.appendChild(a),a}function Nu(a,l){const r=l||document.body,u=document.createElement("div");u.id="sampleapp-modal-"+Date.now(),r.appendChild(u);const c=cf.createRoot(u),h=nf.createElement(pg,{settings:a,onClose:()=>{c.unmount(),u.remove()}});return c.render(h),{unmount:()=>{c.unmount(),u.remove()},show:()=>{u.style.display="block"},hide:()=>{u.style.display="none"}}}function Lu(a,l){const r=l||mx(),u=cf.createRoot(r),c=nf.createElement(mg,{settings:a});return u.render(c),{unmount:()=>{u.unmount(),r.remove()}}}const px={ModalSearchAndChat:Nu,ChatButton:Lu,ChatBar:ju};typeof window<"u"&&(window.SampleApp={ModalSearchAndChat:Nu,ChatButton:Lu,ChatBar:ju}),$e.ChatBar=ju,$e.ChatButton=Lu,$e.ModalSearchAndChat=Nu,$e.default=px,Object.defineProperties($e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|