| (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(c){if(c.ep)return;c.ep=!0;const h=r(c);fetch(c.href,h)}})();function up(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Su={exports:{}},ll={}; |
| |
| |
| |
| |
| |
| |
| |
| var L0;function f5(){if(L0)return ll;L0=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,c,h){var f=null;if(h!==void 0&&(f=""+h),c.key!==void 0&&(f=""+c.key),"key"in c){h={};for(var m in c)m!=="key"&&(h[m]=c[m])}else h=c;return c=h.ref,{$$typeof:a,type:o,key:f,ref:c!==void 0?c:null,props:h}}return ll.Fragment=l,ll.jsx=r,ll.jsxs=r,ll}var q0;function d5(){return q0||(q0=1,Su.exports=f5()),Su.exports}var p=d5(),Tu={exports:{}},ft={}; |
| |
| |
| |
| |
| |
| |
| |
| var G0;function h5(){if(G0)return ft;G0=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,X={};function K(T,G,W){this.props=T,this.context=G,this.refs=X,this.updater=W||z}K.prototype.isReactComponent={},K.prototype.setState=function(T,G){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,G,"setState")},K.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function B(){}B.prototype=K.prototype;function Y(T,G,W){this.props=T,this.context=G,this.refs=X,this.updater=W||z}var R=Y.prototype=new B;R.constructor=Y,V(R,K.prototype),R.isPureReactComponent=!0;var k=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function F(T,G,W,P,nt,bt){return W=bt.ref,{$$typeof:a,type:T,key:G,ref:W!==void 0?W:null,props:bt}}function J(T,G){return F(T.type,G,void 0,void 0,void 0,T.props)}function ct(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function $(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return G[W]})}var ot=/\/+/g;function et(T,G){return typeof T=="object"&&T!==null&&T.key!=null?$(""+T.key):G.toString(36)}function Nt(){}function yt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Nt,Nt):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function lt(T,G,W,P,nt){var bt=typeof T;(bt==="undefined"||bt==="boolean")&&(T=null);var ut=!1;if(T===null)ut=!0;else switch(bt){case"bigint":case"string":case"number":ut=!0;break;case"object":switch(T.$$typeof){case a:case l:ut=!0;break;case x:return ut=T._init,lt(ut(T._payload),G,W,P,nt)}}if(ut)return nt=nt(T),ut=P===""?"."+et(T,0):P,k(nt)?(W="",ut!=null&&(W=ut.replace(ot,"$&/")+"/"),lt(nt,G,W,"",function(hn){return hn})):nt!=null&&(ct(nt)&&(nt=J(nt,W+(nt.key==null||T&&T.key===nt.key?"":(""+nt.key).replace(ot,"$&/")+"/")+ut)),G.push(nt)),1;ut=0;var me=P===""?".":P+":";if(k(T))for(var Ot=0;Ot<T.length;Ot++)P=T[Ot],bt=me+et(P,Ot),ut+=lt(P,G,W,bt,nt);else if(Ot=w(T),typeof Ot=="function")for(T=Ot.call(T),Ot=0;!(P=T.next()).done;)P=P.value,bt=me+et(P,Ot++),ut+=lt(P,G,W,bt,nt);else if(bt==="object"){if(typeof T.then=="function")return lt(yt(T),G,W,P,nt);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ut}function C(T,G,W){if(T==null)return T;var P=[],nt=0;return lt(T,P,"","",function(bt){return G.call(W,bt,nt++)}),P}function q(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var Q=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=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(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function ht(){}return ft.Children={map:C,forEach:function(T,G,W){C(T,function(){G.apply(this,arguments)},W)},count:function(T){var G=0;return C(T,function(){G++}),G},toArray:function(T){return C(T,function(G){return G})||[]},only:function(T){if(!ct(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ft.Component=K,ft.Fragment=r,ft.Profiler=c,ft.PureComponent=Y,ft.StrictMode=o,ft.Suspense=y,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ft.__COMPILER_RUNTIME={__proto__:null,c:function(T){return H.H.useMemoCache(T)}},ft.cache=function(T){return function(){return T.apply(null,arguments)}},ft.cloneElement=function(T,G,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var P=V({},T.props),nt=T.key,bt=void 0;if(G!=null)for(ut in G.ref!==void 0&&(bt=void 0),G.key!==void 0&&(nt=""+G.key),G)!Z.call(G,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&G.ref===void 0||(P[ut]=G[ut]);var ut=arguments.length-2;if(ut===1)P.children=W;else if(1<ut){for(var me=Array(ut),Ot=0;Ot<ut;Ot++)me[Ot]=arguments[Ot+2];P.children=me}return F(T.type,nt,void 0,void 0,bt,P)},ft.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},ft.createElement=function(T,G,W){var P,nt={},bt=null;if(G!=null)for(P in G.key!==void 0&&(bt=""+G.key),G)Z.call(G,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(nt[P]=G[P]);var ut=arguments.length-2;if(ut===1)nt.children=W;else if(1<ut){for(var me=Array(ut),Ot=0;Ot<ut;Ot++)me[Ot]=arguments[Ot+2];nt.children=me}if(T&&T.defaultProps)for(P in ut=T.defaultProps,ut)nt[P]===void 0&&(nt[P]=ut[P]);return F(T,bt,void 0,void 0,null,nt)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(T){return{$$typeof:m,render:T}},ft.isValidElement=ct,ft.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:q}},ft.memo=function(T,G){return{$$typeof:g,type:T,compare:G===void 0?null:G}},ft.startTransition=function(T){var G=H.T,W={};H.T=W;try{var P=T(),nt=H.S;nt!==null&&nt(W,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(ht,Q)}catch(bt){Q(bt)}finally{H.T=G}},ft.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ft.use=function(T){return H.H.use(T)},ft.useActionState=function(T,G,W){return H.H.useActionState(T,G,W)},ft.useCallback=function(T,G){return H.H.useCallback(T,G)},ft.useContext=function(T){return H.H.useContext(T)},ft.useDebugValue=function(){},ft.useDeferredValue=function(T,G){return H.H.useDeferredValue(T,G)},ft.useEffect=function(T,G,W){var P=H.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(T,G)},ft.useId=function(){return H.H.useId()},ft.useImperativeHandle=function(T,G,W){return H.H.useImperativeHandle(T,G,W)},ft.useInsertionEffect=function(T,G){return H.H.useInsertionEffect(T,G)},ft.useLayoutEffect=function(T,G){return H.H.useLayoutEffect(T,G)},ft.useMemo=function(T,G){return H.H.useMemo(T,G)},ft.useOptimistic=function(T,G){return H.H.useOptimistic(T,G)},ft.useReducer=function(T,G,W){return H.H.useReducer(T,G,W)},ft.useRef=function(T){return H.H.useRef(T)},ft.useState=function(T){return H.H.useState(T)},ft.useSyncExternalStore=function(T,G,W){return H.H.useSyncExternalStore(T,G,W)},ft.useTransition=function(){return H.H.useTransition()},ft.version="19.1.1",ft}var Y0;function fc(){return Y0||(Y0=1,Tu.exports=h5()),Tu.exports}var O=fc();const cp=up(O);var wu={exports:{}},sl={},Au={exports:{}},Mu={}; |
| |
| |
| |
| |
| |
| |
| |
| var X0;function m5(){return X0||(X0=1,(function(a){function l(C,q){var Q=C.length;C.push(q);t:for(;0<Q;){var ht=Q-1>>>1,T=C[ht];if(0<c(T,q))C[ht]=q,C[Q]=T,Q=ht;else break t}}function r(C){return C.length===0?null:C[0]}function o(C){if(C.length===0)return null;var q=C[0],Q=C.pop();if(Q!==q){C[0]=Q;t:for(var ht=0,T=C.length,G=T>>>1;ht<G;){var W=2*(ht+1)-1,P=C[W],nt=W+1,bt=C[nt];if(0>c(P,Q))nt<T&&0>c(bt,P)?(C[ht]=bt,C[nt]=Q,ht=nt):(C[ht]=P,C[W]=Q,ht=W);else if(nt<T&&0>c(bt,Q))C[ht]=bt,C[nt]=Q,ht=nt;else break t}}return q}function c(C,q){var Q=C.sortIndex-q.sortIndex;return Q!==0?Q:C.id-q.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,m=f.now();a.unstable_now=function(){return f.now()-m}}var y=[],g=[],x=1,b=null,w=3,z=!1,V=!1,X=!1,K=!1,B=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function k(C){for(var q=r(g);q!==null;){if(q.callback===null)o(g);else if(q.startTime<=C)o(g),q.sortIndex=q.expirationTime,l(y,q);else break;q=r(g)}}function H(C){if(X=!1,k(C),!V)if(r(y)!==null)V=!0,Z||(Z=!0,et());else{var q=r(g);q!==null&<(H,q.startTime-C)}}var Z=!1,F=-1,J=5,ct=-1;function $(){return K?!0:!(a.unstable_now()-ct<J)}function ot(){if(K=!1,Z){var C=a.unstable_now();ct=C;var q=!0;try{t:{V=!1,X&&(X=!1,Y(F),F=-1),z=!0;var Q=w;try{e:{for(k(C),b=r(y);b!==null&&!(b.expirationTime>C&&$());){var ht=b.callback;if(typeof ht=="function"){b.callback=null,w=b.priorityLevel;var T=ht(b.expirationTime<=C);if(C=a.unstable_now(),typeof T=="function"){b.callback=T,k(C),q=!0;break e}b===r(y)&&o(y),k(C)}else o(y);b=r(y)}if(b!==null)q=!0;else{var G=r(g);G!==null&<(H,G.startTime-C),q=!1}}break t}finally{b=null,w=Q,z=!1}q=void 0}}finally{q?et():Z=!1}}}var et;if(typeof R=="function")et=function(){R(ot)};else if(typeof MessageChannel<"u"){var Nt=new MessageChannel,yt=Nt.port2;Nt.port1.onmessage=ot,et=function(){yt.postMessage(null)}}else et=function(){B(ot,0)};function lt(C,q){F=B(function(){C(a.unstable_now())},q)}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(C){C.callback=null},a.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<C?Math.floor(1e3/C):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(C){switch(w){case 1:case 2:case 3:var q=3;break;default:q=w}var Q=w;w=q;try{return C()}finally{w=Q}},a.unstable_requestPaint=function(){K=!0},a.unstable_runWithPriority=function(C,q){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var Q=w;w=C;try{return q()}finally{w=Q}},a.unstable_scheduleCallback=function(C,q,Q){var ht=a.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ht+Q:ht):Q=ht,C){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=Q+T,C={id:x++,callback:q,priorityLevel:C,startTime:Q,expirationTime:T,sortIndex:-1},Q>ht?(C.sortIndex=Q,l(g,C),r(y)===null&&C===r(g)&&(X?(Y(F),F=-1):X=!0,lt(H,Q-ht))):(C.sortIndex=T,l(y,C),V||z||(V=!0,Z||(Z=!0,et()))),C},a.unstable_shouldYield=$,a.unstable_wrapCallback=function(C){var q=w;return function(){var Q=w;w=q;try{return C.apply(this,arguments)}finally{w=Q}}}})(Mu)),Mu}var k0;function p5(){return k0||(k0=1,Au.exports=m5()),Au.exports}var Eu={exports:{}},ie={}; |
| |
| |
| |
| |
| |
| |
| |
| var Q0;function g5(){if(Q0)return ie;Q0=1;var a=fc();function l(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={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(y,g,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:y,containerInfo:g,implementation:x}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ie.createPortal=function(y,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return h(y,g,null,x)},ie.flushSync=function(y){var g=f.T,x=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=g,o.p=x,o.d.f()}},ie.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(y,g))},ie.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},ie.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var x=g.as,b=m(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,z=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?o.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:z}):x==="script"&&o.d.X(y,{crossOrigin:b,integrity:w,fetchPriority:z,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ie.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);o.d.M(y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(y)},ie.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,b=m(x,g.crossOrigin);o.d.L(y,x,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ie.preloadModule=function(y,g){if(typeof y=="string")if(g){var x=m(g.as,g.crossOrigin);o.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(y)},ie.requestFormReset=function(y){o.d.r(y)},ie.unstable_batchedUpdates=function(y,g){return y(g)},ie.useFormState=function(y,g,x){return f.H.useFormState(y,g,x)},ie.useFormStatus=function(){return f.H.useHostTransitionStatus()},ie.version="19.1.1",ie}var K0;function y5(){if(K0)return Eu.exports;K0=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(),Eu.exports=g5(),Eu.exports} |
| |
| |
| |
| |
| |
| |
| |
| var Z0;function v5(){if(Z0)return sl;Z0=1;var a=p5(),l=fc(),r=y5();function o(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 m(t){if(h(t)!==t)throw Error(o(188))}function y(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,i=e;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return m(s),t;if(u===i)return m(s),e;u=u.sibling}throw Error(o(188))}if(n.return!==i.return)n=s,i=u;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,i=u;break}if(v===i){d=!0,i=s,n=u;break}v=v.sibling}if(!d){for(v=u.child;v;){if(v===n){d=!0,n=u,i=s;break}if(v===i){d=!0,i=u,n=s;break}v=v.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),Y=Symbol.for("react.consumer"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ct=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),ot=Symbol.iterator;function et(t){return t===null||typeof t!="object"?null:(t=ot&&t[ot]||t["@@iterator"],typeof t=="function"?t:null)}var Nt=Symbol.for("react.client.reference");function yt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Nt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case V:return"Fragment";case K:return"Profiler";case X:return"StrictMode";case H:return"Suspense";case Z:return"SuspenseList";case ct:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case z:return"Portal";case R:return(t.displayName||"Context")+".Provider";case Y:return(t._context.displayName||"Context")+".Consumer";case k:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return e=t.displayName||null,e!==null?e:yt(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return yt(t(e))}catch{}}return null}var lt=Array.isArray,C=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ht=[],T=-1;function G(t){return{current:t}}function W(t){0>T||(t.current=ht[T],ht[T]=null,T--)}function P(t,e){T++,ht[T]=t.current,t.current=e}var nt=G(null),bt=G(null),ut=G(null),me=G(null);function Ot(t,e){switch(P(ut,e),P(bt,t),P(nt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?h0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=h0(e),t=m0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}W(nt),P(nt,t)}function hn(){W(nt),W(bt),W(ut)}function lr(t){t.memoizedState!==null&&P(me,t);var e=nt.current,n=m0(e,t.type);e!==n&&(P(bt,t),P(nt,n))}function Ml(t){bt.current===t&&(W(nt),W(bt)),me.current===t&&(W(me),tl._currentValue=Q)}var sr=Object.prototype.hasOwnProperty,rr=a.unstable_scheduleCallback,or=a.unstable_cancelCallback,X1=a.unstable_shouldYield,k1=a.unstable_requestPaint,Ge=a.unstable_now,Q1=a.unstable_getCurrentPriorityLevel,Kc=a.unstable_ImmediatePriority,Zc=a.unstable_UserBlockingPriority,El=a.unstable_NormalPriority,K1=a.unstable_LowPriority,Pc=a.unstable_IdlePriority,Z1=a.log,P1=a.unstable_setDisableYieldValue,oi=null,pe=null;function mn(t){if(typeof Z1=="function"&&P1(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(oi,t)}catch{}}var ge=Math.clz32?Math.clz32:W1,J1=Math.log,F1=Math.LN2;function W1(t){return t>>>=0,t===0?32:31-(J1(t)/F1|0)|0}var jl=256,Dl=4194304;function Yn(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 Cl(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,u=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var v=i&134217727;return v!==0?(i=v&~u,i!==0?s=Yn(i):(d&=v,d!==0?s=Yn(d):n||(n=v&~t,n!==0&&(s=Yn(n))))):(v=i&~u,v!==0?s=Yn(v):d!==0?s=Yn(d):n||(n=i&~t,n!==0&&(s=Yn(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function ui(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function $1(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 Jc(){var t=jl;return jl<<=1,(jl&4194048)===0&&(jl=256),t}function Fc(){var t=Dl;return Dl<<=1,(Dl&62914560)===0&&(Dl=4194304),t}function ur(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ci(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function I1(t,e,n,i,s,u){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,j=t.hiddenUpdates;for(n=d&~n;0<n;){var _=31-ge(n),L=1<<_;v[_]=0,S[_]=-1;var D=j[_];if(D!==null)for(j[_]=null,_=0;_<D.length;_++){var N=D[_];N!==null&&(N.lane&=-536870913)}n&=~L}i!==0&&Wc(t,i,0),u!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=u&~(d&~e))}function Wc(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-ge(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&4194090}function $c(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-ge(n),s=1<<i;s&e|t[i]&e&&(t[i]|=e),n&=~s}}function cr(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 fr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ic(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:R0(t.type))}function tg(t,e){var n=q.p;try{return q.p=t,e()}finally{q.p=n}}var pn=Math.random().toString(36).slice(2),ne="__reactFiber$"+pn,oe="__reactProps$"+pn,da="__reactContainer$"+pn,dr="__reactEvents$"+pn,eg="__reactListeners$"+pn,ng="__reactHandles$"+pn,tf="__reactResources$"+pn,fi="__reactMarker$"+pn;function hr(t){delete t[ne],delete t[oe],delete t[dr],delete t[eg],delete t[ng]}function ha(t){var e=t[ne];if(e)return e;for(var n=t.parentNode;n;){if(e=n[da]||n[ne]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=v0(t);t!==null;){if(n=t[ne])return n;t=v0(t)}return e}t=n,n=t.parentNode}return null}function ma(t){if(t=t[ne]||t[da]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function di(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function pa(t){var e=t[tf];return e||(e=t[tf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[fi]=!0}var ef=new Set,nf={};function Xn(t,e){ga(t,e),ga(t+"Capture",e)}function ga(t,e){for(nf[t]=e,t=0;t<e.length;t++)ef.add(e[t])}var ag=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]*$"),af={},lf={};function ig(t){return sr.call(lf,t)?!0:sr.call(af,t)?!1:ag.test(t)?lf[t]=!0:(af[t]=!0,!1)}function Nl(t,e,n){if(ig(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 zl(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 Je(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 mr,sf;function ya(t){if(mr===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);mr=e&&e[1]||"",sf=-1<n.stack.indexOf(` |
| at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` |
| `+mr+t+sf}var pr=!1;function gr(t,e){if(!t||pr)return"";pr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(N){var D=N}Reflect.construct(t,[],L)}else{try{L.call()}catch(N){D=N}t.call(L.prototype)}}else{try{throw Error()}catch(N){D=N}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(N){if(N&&D&&typeof N.stack=="string")return[N.stack,D.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 u=i.DetermineComponentFrameRoot(),d=u[0],v=u[1];if(d&&v){var S=d.split(` |
| `),j=v.split(` |
| `);for(s=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;s<j.length&&!j[s].includes("DetermineComponentFrameRoot");)s++;if(i===S.length||s===j.length)for(i=S.length-1,s=j.length-1;1<=i&&0<=s&&S[i]!==j[s];)s--;for(;1<=i&&0<=s;i--,s--)if(S[i]!==j[s]){if(i!==1||s!==1)do if(i--,s--,0>s||S[i]!==j[s]){var _=` |
| `+S[i].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=i&&0<=s);break}}}finally{pr=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ya(n):""}function lg(t){switch(t.tag){case 26:case 27:case 5:return ya(t.type);case 16:return ya("Lazy");case 13:return ya("Suspense");case 19:return ya("SuspenseList");case 0:case 15:return gr(t.type,!1);case 11:return gr(t.type.render,!1);case 1:return gr(t.type,!0);case 31:return ya("Activity");default:return""}}function rf(t){try{var e="";do e+=lg(t),t=t.return;while(t);return e}catch(n){return` |
| Error generating stack: `+n.message+` |
| `+n.stack}}function Ae(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function of(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function sg(t){var e=of(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,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(d){i=""+d,u.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 Ol(t){t._valueTracker||(t._valueTracker=sg(t))}function uf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=of(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Rl(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 rg=/[\n"\\]/g;function Me(t){return t.replace(rg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yr(t,e,n,i,s,u,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=""+Ae(e)):t.value!==""+Ae(e)&&(t.value=""+Ae(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?vr(t,d,Ae(e)):n!=null?vr(t,d,Ae(n)):i!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Ae(v):t.removeAttribute("name")}function cf(t,e,n,i,s,u,d,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;n=n!=null?""+Ae(n):"",e=e!=null?""+Ae(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 vr(t,e,n){e==="number"&&Rl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function va(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=""+Ae(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 ff(t,e,n){if(e!=null&&(e=""+Ae(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ae(n):""}function df(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(o(92));if(lt(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Ae(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i)}function xa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var og=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 hf(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||og.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function mf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(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&&hf(t,s,i)}else for(var u in e)e.hasOwnProperty(u)&&hf(t,u,e[u])}function xr(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 ug=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"]]),cg=/^[\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 Vl(t){return cg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var br=null;function Sr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ba=null,Sa=null;function pf(t){var e=ma(t);if(e&&(t=e.stateNode)){var n=t[oe]||null;t:switch(t=e.stateNode,e.type){case"input":if(yr(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="'+Me(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var s=i[oe]||null;if(!s)throw Error(o(90));yr(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&&uf(i)}break t;case"textarea":ff(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&va(t,!!n.multiple,e,!1)}}}var Tr=!1;function gf(t,e,n){if(Tr)return t(e,n);Tr=!0;try{var i=t(e);return i}finally{if(Tr=!1,(ba!==null||Sa!==null)&&(xs(),ba&&(e=ba,t=Sa,Sa=ba=null,pf(e),t)))for(e=0;e<t.length;e++)pf(t[e])}}function hi(t,e){var n=t.stateNode;if(n===null)return null;var i=n[oe]||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(o(231,e,typeof n));return n}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wr=!1;if(Fe)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){wr=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{wr=!1}var gn=null,Ar=null,_l=null;function yf(){if(_l)return _l;var t,e=Ar,n=e.length,i,s="value"in gn?gn.value:gn.textContent,u=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[u-i];i++);return _l=s.slice(t,1<i?1-i:void 0)}function Bl(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 Ul(){return!0}function vf(){return!1}function ue(t){function e(n,i,s,u,d){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ul:vf,this.isPropagationStopped=vf,this}return x(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=Ul)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ul)},persist:function(){},isPersistent:Ul}),e}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hl=ue(kn),pi=x({},kn,{view:0,detail:0}),fg=ue(pi),Mr,Er,gi,Ll=x({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dr,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"?(Mr=t.screenX-gi.screenX,Er=t.screenY-gi.screenY):Er=Mr=0,gi=t),Mr)},movementY:function(t){return"movementY"in t?t.movementY:Er}}),xf=ue(Ll),dg=x({},Ll,{dataTransfer:0}),hg=ue(dg),mg=x({},pi,{relatedTarget:0}),jr=ue(mg),pg=x({},kn,{animationName:0,elapsedTime:0,pseudoElement:0}),gg=ue(pg),yg=x({},kn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vg=ue(yg),xg=x({},kn,{data:0}),bf=ue(xg),bg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sg={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"},Tg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wg(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Tg[t])?!!e[t]:!1}function Dr(){return wg}var Ag=x({},pi,{key:function(t){if(t.key){var e=bg[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Bl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Sg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dr,charCode:function(t){return t.type==="keypress"?Bl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Mg=ue(Ag),Eg=x({},Ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=ue(Eg),jg=x({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dr}),Dg=ue(jg),Cg=x({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ng=ue(Cg),zg=x({},Ll,{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}),Og=ue(zg),Rg=x({},kn,{newState:0,oldState:0}),Vg=ue(Rg),_g=[9,13,27,32],Cr=Fe&&"CompositionEvent"in window,yi=null;Fe&&"documentMode"in document&&(yi=document.documentMode);var Bg=Fe&&"TextEvent"in window&&!yi,Tf=Fe&&(!Cr||yi&&8<yi&&11>=yi),wf=" ",Af=!1;function Mf(t,e){switch(t){case"keyup":return _g.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ef(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ta=!1;function Ug(t,e){switch(t){case"compositionend":return Ef(e);case"keypress":return e.which!==32?null:(Af=!0,wf);case"textInput":return t=e.data,t===wf&&Af?null:t;default:return null}}function Hg(t,e){if(Ta)return t==="compositionend"||!Cr&&Mf(t,e)?(t=yf(),_l=Ar=gn=null,Ta=!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 Tf&&e.locale!=="ko"?null:e.data;default:return null}}var Lg={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 jf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Lg[t.type]:e==="textarea"}function Df(t,e,n,i){ba?Sa?Sa.push(i):Sa=[i]:ba=i,e=Ms(e,"onChange"),0<e.length&&(n=new Hl("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var vi=null,xi=null;function qg(t){o0(t,0)}function ql(t){var e=di(t);if(uf(e))return t}function Cf(t,e){if(t==="change")return e}var Nf=!1;if(Fe){var Nr;if(Fe){var zr="oninput"in document;if(!zr){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),zr=typeof zf.oninput=="function"}Nr=zr}else Nr=!1;Nf=Nr&&(!document.documentMode||9<document.documentMode)}function Of(){vi&&(vi.detachEvent("onpropertychange",Rf),xi=vi=null)}function Rf(t){if(t.propertyName==="value"&&ql(xi)){var e=[];Df(e,xi,t,Sr(t)),gf(qg,e)}}function Gg(t,e,n){t==="focusin"?(Of(),vi=e,xi=n,vi.attachEvent("onpropertychange",Rf)):t==="focusout"&&Of()}function Yg(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ql(xi)}function Xg(t,e){if(t==="click")return ql(e)}function kg(t,e){if(t==="input"||t==="change")return ql(e)}function Qg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ye=typeof Object.is=="function"?Object.is:Qg;function bi(t,e){if(ye(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(!sr.call(e,s)||!ye(t[s],e[s]))return!1}return!0}function Vf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _f(t,e){var n=Vf(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=Vf(n)}}function Bf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Bf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Uf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Rl(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=Rl(t.document)}return e}function Or(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 Kg=Fe&&"documentMode"in document&&11>=document.documentMode,wa=null,Rr=null,Si=null,Vr=!1;function Hf(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||wa==null||wa!==Rl(i)||(i=wa,"selectionStart"in i&&Or(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}),Si&&bi(Si,i)||(Si=i,i=Ms(Rr,"onSelect"),0<i.length&&(e=new Hl("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=wa)))}function Qn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Aa={animationend:Qn("Animation","AnimationEnd"),animationiteration:Qn("Animation","AnimationIteration"),animationstart:Qn("Animation","AnimationStart"),transitionrun:Qn("Transition","TransitionRun"),transitionstart:Qn("Transition","TransitionStart"),transitioncancel:Qn("Transition","TransitionCancel"),transitionend:Qn("Transition","TransitionEnd")},_r={},Lf={};Fe&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete Aa.animationend.animation,delete Aa.animationiteration.animation,delete Aa.animationstart.animation),"TransitionEvent"in window||delete Aa.transitionend.transition);function Kn(t){if(_r[t])return _r[t];if(!Aa[t])return t;var e=Aa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Lf)return _r[t]=e[n];return t}var qf=Kn("animationend"),Gf=Kn("animationiteration"),Yf=Kn("animationstart"),Zg=Kn("transitionrun"),Pg=Kn("transitionstart"),Jg=Kn("transitioncancel"),Xf=Kn("transitionend"),kf=new Map,Br="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(" ");Br.push("scrollEnd");function Ue(t,e){kf.set(t,e),Xn(e,[t])}var Qf=new WeakMap;function Ee(t,e){if(typeof t=="object"&&t!==null){var n=Qf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:rf(e)},Qf.set(t,e),e)}return{value:t,source:e,stack:rf(e)}}var je=[],Ma=0,Ur=0;function Gl(){for(var t=Ma,e=Ur=Ma=0;e<t;){var n=je[e];je[e++]=null;var i=je[e];je[e++]=null;var s=je[e];je[e++]=null;var u=je[e];if(je[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}u!==0&&Kf(n,s,u)}}function Yl(t,e,n,i){je[Ma++]=t,je[Ma++]=e,je[Ma++]=n,je[Ma++]=i,Ur|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Hr(t,e,n,i){return Yl(t,e,n,i),Xl(t)}function Ea(t,e){return Yl(t,null,null,e),Xl(t)}function Kf(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var s=!1,u=t.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(s=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,s&&e!==null&&(s=31-ge(n),t=u.hiddenUpdates,i=t[s],i===null?t[s]=[e]:i.push(e),e.lane=n|536870912),u):null}function Xl(t){if(50<Ki)throw Ki=0,Qo=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ja={};function Fg(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 ve(t,e,n,i){return new Fg(t,e,n,i)}function Lr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function We(t,e){var n=t.alternate;return n===null?(n=ve(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 Zf(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 kl(t,e,n,i,s,u){var d=0;if(i=t,typeof t=="function")Lr(t)&&(d=1);else if(typeof t=="string")d=$y(t,n,nt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ct:return t=ve(31,n,e,s),t.elementType=ct,t.lanes=u,t;case V:return Zn(n.children,s,u,e);case X:d=8,s|=24;break;case K:return t=ve(12,n,e,s|2),t.elementType=K,t.lanes=u,t;case H:return t=ve(13,n,e,s),t.elementType=H,t.lanes=u,t;case Z:return t=ve(19,n,e,s),t.elementType=Z,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case B:case R:d=10;break t;case Y:d=9;break t;case k:d=11;break t;case F:d=14;break t;case J:d=16,i=null;break t}d=29,n=Error(o(130,t===null?"null":typeof t,"")),i=null}return e=ve(d,n,e,s),e.elementType=t,e.type=i,e.lanes=u,e}function Zn(t,e,n,i){return t=ve(7,t,i,e),t.lanes=n,t}function qr(t,e,n){return t=ve(6,t,null,e),t.lanes=n,t}function Gr(t,e,n){return e=ve(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Da=[],Ca=0,Ql=null,Kl=0,De=[],Ce=0,Pn=null,$e=1,Ie="";function Jn(t,e){Da[Ca++]=Kl,Da[Ca++]=Ql,Ql=t,Kl=e}function Pf(t,e,n){De[Ce++]=$e,De[Ce++]=Ie,De[Ce++]=Pn,Pn=t;var i=$e;t=Ie;var s=32-ge(i)-1;i&=~(1<<s),n+=1;var u=32-ge(e)+s;if(30<u){var d=s-s%5;u=(i&(1<<d)-1).toString(32),i>>=d,s-=d,$e=1<<32-ge(e)+s|n<<s|i,Ie=u+t}else $e=1<<u|n<<s|i,Ie=t}function Yr(t){t.return!==null&&(Jn(t,1),Pf(t,1,0))}function Xr(t){for(;t===Ql;)Ql=Da[--Ca],Da[Ca]=null,Kl=Da[--Ca],Da[Ca]=null;for(;t===Pn;)Pn=De[--Ce],De[Ce]=null,Ie=De[--Ce],De[Ce]=null,$e=De[--Ce],De[Ce]=null}var se=null,Ut=null,Tt=!1,Fn=null,Ye=!1,kr=Error(o(519));function Wn(t){var e=Error(o(418,""));throw Ai(Ee(e,t)),kr}function Jf(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[ne]=t,e[oe]=i,n){case"dialog":gt("cancel",e),gt("close",e);break;case"iframe":case"object":case"embed":gt("load",e);break;case"video":case"audio":for(n=0;n<Pi.length;n++)gt(Pi[n],e);break;case"source":gt("error",e);break;case"img":case"image":case"link":gt("error",e),gt("load",e);break;case"details":gt("toggle",e);break;case"input":gt("invalid",e),cf(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),Ol(e);break;case"select":gt("invalid",e);break;case"textarea":gt("invalid",e),df(e,i.value,i.defaultValue,i.children),Ol(e)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||d0(e.textContent,n)?(i.popover!=null&&(gt("beforetoggle",e),gt("toggle",e)),i.onScroll!=null&>("scroll",e),i.onScrollEnd!=null&>("scrollend",e),i.onClick!=null&&(e.onclick=Es),e=!0):e=!1,e||Wn(t)}function Ff(t){for(se=t.return;se;)switch(se.tag){case 5:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:se=se.return}}function Ti(t){if(t!==se)return!1;if(!Tt)return Ff(t),Tt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ru(t.type,t.memoizedProps)),n=!n),n&&Ut&&Wn(t),Ff(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){Ut=Le(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}Ut=null}}else e===27?(e=Ut,On(t.type)?(t=fu,fu=null,Ut=t):Ut=e):Ut=se?Le(t.stateNode.nextSibling):null;return!0}function wi(){Ut=se=null,Tt=!1}function Wf(){var t=Fn;return t!==null&&(de===null?de=t:de.push.apply(de,t),Fn=null),t}function Ai(t){Fn===null?Fn=[t]:Fn.push(t)}var Qr=G(null),$n=null,tn=null;function yn(t,e,n){P(Qr,e._currentValue),e._currentValue=n}function en(t){t._currentValue=Qr.current,W(Qr)}function Kr(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 Zr(t,e,n,i){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){var d=s.child;u=u.firstContext;t:for(;u!==null;){var v=u;u=s;for(var S=0;S<e.length;S++)if(v.context===e[S]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),Kr(u.return,n,t),i||(d=null);break t}u=v.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(o(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),Kr(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 Mi(t,e,n,i){t=null;for(var s=e,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var v=s.type;ye(s.pendingProps.value,d.value)||(t!==null?t.push(v):t=[v])}}else if(s===me.current){if(d=s.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(tl):t=[tl])}s=s.return}t!==null&&Zr(e,t,n,i),e.flags|=262144}function Zl(t){for(t=t.firstContext;t!==null;){if(!ye(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function In(t){$n=t,tn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ae(t){return $f($n,t)}function Pl(t,e){return $n===null&&In(t),$f(t,e)}function $f(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},tn===null){if(t===null)throw Error(o(308));tn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else tn=tn.next=e;return n}var Wg=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()})}},$g=a.unstable_scheduleCallback,Ig=a.unstable_NormalPriority,Kt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pr(){return{controller:new Wg,data:new Map,refCount:0}}function Ei(t){t.refCount--,t.refCount===0&&$g(Ig,function(){t.controller.abort()})}var ji=null,Jr=0,Na=0,za=null;function ty(t,e){if(ji===null){var n=ji=[];Jr=0,Na=$o(),za={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Jr++,e.then(If,If),e}function If(){if(--Jr===0&&ji!==null){za!==null&&(za.status="fulfilled");var t=ji;ji=null,Na=0,za=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ey(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 td=C.S;C.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&ty(t,e),td!==null&&td(t,e)};var ta=G(null);function Fr(){var t=ta.current;return t!==null?t:zt.pooledCache}function Jl(t,e){e===null?P(ta,ta.current):P(ta,e.pool)}function ed(){var t=Fr();return t===null?null:{parent:Kt._currentValue,pool:t}}var Di=Error(o(460)),nd=Error(o(474)),Fl=Error(o(542)),Wr={then:function(){}};function ad(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Wl(){}function id(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Wl,Wl),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,sd(t),t;default:if(typeof e.status=="string")e.then(Wl,Wl);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(o(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,sd(t),t}throw Ci=e,Di}}var Ci=null;function ld(){if(Ci===null)throw Error(o(459));var t=Ci;return Ci=null,t}function sd(t){if(t===Di||t===Fl)throw Error(o(483))}var vn=!1;function $r(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ir(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 xn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bn(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(wt&2)!==0){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,e=Xl(t),Kf(t,null,n),e}return Yl(t,i,e,n),Xl(t)}function Ni(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,$c(t,n)}}function to(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:u,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 eo=!1;function zi(){if(eo){var t=za;if(t!==null)throw t}}function Oi(t,e,n,i){eo=!1;var s=t.updateQueue;vn=!1;var u=s.firstBaseUpdate,d=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var S=v,j=S.next;S.next=null,d===null?u=j:d.next=j,d=S;var _=t.alternate;_!==null&&(_=_.updateQueue,v=_.lastBaseUpdate,v!==d&&(v===null?_.firstBaseUpdate=j:v.next=j,_.lastBaseUpdate=S))}if(u!==null){var L=s.baseState;d=0,_=j=S=null,v=u;do{var D=v.lane&-536870913,N=D!==v.lane;if(N?(vt&D)===D:(i&D)===D){D!==0&&D===Na&&(eo=!0),_!==null&&(_=_.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var st=t,at=v;D=e;var Dt=n;switch(at.tag){case 1:if(st=at.payload,typeof st=="function"){L=st.call(Dt,L,D);break t}L=st;break t;case 3:st.flags=st.flags&-65537|128;case 0:if(st=at.payload,D=typeof st=="function"?st.call(Dt,L,D):st,D==null)break t;L=x({},L,D);break t;case 2:vn=!0}}D=v.callback,D!==null&&(t.flags|=64,N&&(t.flags|=8192),N=s.callbacks,N===null?s.callbacks=[D]:N.push(D))}else N={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},_===null?(j=_=N,S=L):_=_.next=N,d|=D;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;N=v,v=N.next,N.next=null,s.lastBaseUpdate=N,s.shared.pending=null}}while(!0);_===null&&(S=L),s.baseState=S,s.firstBaseUpdate=j,s.lastBaseUpdate=_,u===null&&(s.shared.lanes=0),Dn|=d,t.lanes=d,t.memoizedState=L}}function rd(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function od(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)rd(n[t],e)}var Oa=G(null),$l=G(0);function ud(t,e){t=un,P($l,t),P(Oa,e),un=t|e.baseLanes}function no(){P($l,un),P(Oa,Oa.current)}function ao(){un=$l.current,W(Oa),W($l)}var Sn=0,dt=null,Et=null,Xt=null,Il=!1,Ra=!1,ea=!1,ts=0,Ri=0,Va=null,ny=0;function qt(){throw Error(o(321))}function io(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ye(t[n],e[n]))return!1;return!0}function lo(t,e,n,i,s,u){return Sn=u,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,C.H=t===null||t.memoizedState===null?Kd:Zd,ea=!1,u=n(i,s),ea=!1,Ra&&(u=fd(e,n,i,s)),cd(t),u}function cd(t){C.H=ss;var e=Et!==null&&Et.next!==null;if(Sn=0,Xt=Et=dt=null,Il=!1,Ri=0,Va=null,e)throw Error(o(300));t===null||Jt||(t=t.dependencies,t!==null&&Zl(t)&&(Jt=!0))}function fd(t,e,n,i){dt=t;var s=0;do{if(Ra&&(Va=null),Ri=0,Ra=!1,25<=s)throw Error(o(301));if(s+=1,Xt=Et=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}C.H=uy,u=e(n,i)}while(Ra);return u}function ay(){var t=C.H,e=t.useState()[0];return e=typeof e.then=="function"?Vi(e):e,t=t.useState()[0],(Et!==null?Et.memoizedState:null)!==t&&(dt.flags|=1024),e}function so(){var t=ts!==0;return ts=0,t}function ro(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function oo(t){if(Il){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Il=!1}Sn=0,Xt=Et=dt=null,Ra=!1,Ri=ts=0,Va=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?dt.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function kt(){if(Et===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=Et.next;var e=Xt===null?dt.memoizedState:Xt.next;if(e!==null)Xt=e,Et=t;else{if(t===null)throw dt.alternate===null?Error(o(467)):Error(o(310));Et=t,t={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Xt===null?dt.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vi(t){var e=Ri;return Ri+=1,Va===null&&(Va=[]),t=id(Va,t,e),e=dt,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,C.H=e===null||e.memoizedState===null?Kd:Zd),t}function es(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Vi(t);if(t.$$typeof===R)return ae(t)}throw Error(o(438,String(t)))}function co(t){var e=null,n=dt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=dt.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=uo(),dt.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]=$;return e.index++,n}function nn(t,e){return typeof e=="function"?e(t):e}function ns(t){var e=kt();return fo(e,Et,t)}function fo(t,e,n){var i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var s=t.baseQueue,u=i.pending;if(u!==null){if(s!==null){var d=s.next;s.next=u.next,u.next=d}e.baseQueue=s=u,i.pending=null}if(u=t.baseState,s===null)t.memoizedState=u;else{e=s.next;var v=d=null,S=null,j=e,_=!1;do{var L=j.lane&-536870913;if(L!==j.lane?(vt&L)===L:(Sn&L)===L){var D=j.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),L===Na&&(_=!0);else if((Sn&D)===D){j=j.next,D===Na&&(_=!0);continue}else L={lane:0,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},S===null?(v=S=L,d=u):S=S.next=L,dt.lanes|=D,Dn|=D;L=j.action,ea&&n(u,L),u=j.hasEagerState?j.eagerState:n(u,L)}else D={lane:L,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},S===null?(v=S=D,d=u):S=S.next=D,dt.lanes|=L,Dn|=L;j=j.next}while(j!==null&&j!==e);if(S===null?d=u:S.next=v,!ye(u,t.memoizedState)&&(Jt=!0,_&&(n=za,n!==null)))throw n;t.memoizedState=u,t.baseState=d,t.baseQueue=S,i.lastRenderedState=u}return s===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function ho(t){var e=kt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var i=n.dispatch,s=n.pending,u=e.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do u=t(u,d.action),d=d.next;while(d!==s);ye(u,e.memoizedState)||(Jt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,i]}function dd(t,e,n){var i=dt,s=kt(),u=Tt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var d=!ye((Et||s).memoizedState,n);d&&(s.memoizedState=n,Jt=!0),s=s.queue;var v=pd.bind(null,i,s,t);if(_i(2048,8,v,[t]),s.getSnapshot!==e||d||Xt!==null&&Xt.memoizedState.tag&1){if(i.flags|=2048,_a(9,as(),md.bind(null,i,s,n,e),null),zt===null)throw Error(o(349));u||(Sn&124)!==0||hd(i,e,n)}return n}function hd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=dt.updateQueue,e===null?(e=uo(),dt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function md(t,e,n,i){e.value=n,e.getSnapshot=i,gd(e)&&yd(t)}function pd(t,e,n){return n(function(){gd(e)&&yd(t)})}function gd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ye(t,n)}catch{return!0}}function yd(t){var e=Ea(t,2);e!==null&&we(e,t,2)}function mo(t){var e=ce();if(typeof t=="function"){var n=t;if(t=n(),ea){mn(!0);try{n()}finally{mn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:t},e}function vd(t,e,n,i){return t.baseState=n,fo(t,Et,typeof i=="function"?i:nn)}function iy(t,e,n,i,s){if(ls(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};C.T!==null?n(!0):u.isTransition=!1,i(u),n=e.pending,n===null?(u.next=e.pending=u,xd(e,u)):(u.next=n.next,e.pending=n.next=u)}}function xd(t,e){var n=e.action,i=e.payload,s=t.state;if(e.isTransition){var u=C.T,d={};C.T=d;try{var v=n(s,i),S=C.S;S!==null&&S(d,v),bd(t,e,v)}catch(j){po(t,e,j)}finally{C.T=u}}else try{u=n(s,i),bd(t,e,u)}catch(j){po(t,e,j)}}function bd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Sd(t,e,i)},function(i){return po(t,e,i)}):Sd(t,e,n)}function Sd(t,e,n){e.status="fulfilled",e.value=n,Td(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,xd(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,Td(e),e=e.next;while(e!==i)}t.action=null}function Td(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function wd(t,e){return e}function Ad(t,e){if(Tt){var n=zt.formState;if(n!==null){t:{var i=dt;if(Tt){if(Ut){e:{for(var s=Ut,u=Ye;s.nodeType!==8;){if(!u){s=null;break e}if(s=Le(s.nextSibling),s===null){s=null;break e}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Ut=Le(s.nextSibling),i=s.data==="F!";break t}}Wn(i)}i=!1}i&&(e=n[0])}}return n=ce(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:e},n.queue=i,n=Xd.bind(null,dt,i),i.dispatch=n,i=mo(!1),u=bo.bind(null,dt,!1,i.queue),i=ce(),s={state:e,dispatch:null,action:t,pending:null},i.queue=s,n=iy.bind(null,dt,s,u,n),s.dispatch=n,i.memoizedState=t,[e,n,!1]}function Md(t){var e=kt();return Ed(e,Et,t)}function Ed(t,e,n){if(e=fo(t,e,wd)[0],t=ns(nn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Vi(e)}catch(d){throw d===Di?Fl:d}else i=e;e=kt();var s=e.queue,u=s.dispatch;return n!==e.memoizedState&&(dt.flags|=2048,_a(9,as(),ly.bind(null,s,n),null)),[i,u,t]}function ly(t,e){t.action=e}function jd(t){var e=kt(),n=Et;if(n!==null)return Ed(e,n,t);kt(),e=e.memoizedState,n=kt();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=dt.updateQueue,e===null&&(e=uo(),dt.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 as(){return{destroy:void 0,resource:void 0}}function Dd(){return kt().memoizedState}function is(t,e,n,i){var s=ce();i=i===void 0?null:i,dt.flags|=t,s.memoizedState=_a(1|e,as(),n,i)}function _i(t,e,n,i){var s=kt();i=i===void 0?null:i;var u=s.memoizedState.inst;Et!==null&&i!==null&&io(i,Et.memoizedState.deps)?s.memoizedState=_a(e,u,n,i):(dt.flags|=t,s.memoizedState=_a(1|e,u,n,i))}function Cd(t,e){is(8390656,8,t,e)}function Nd(t,e){_i(2048,8,t,e)}function zd(t,e){return _i(4,2,t,e)}function Od(t,e){return _i(4,4,t,e)}function Rd(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 Vd(t,e,n){n=n!=null?n.concat([t]):null,_i(4,4,Rd.bind(null,e,t),n)}function go(){}function _d(t,e){var n=kt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&io(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Bd(t,e){var n=kt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&io(e,i[1]))return i[0];if(i=t(),ea){mn(!0);try{t()}finally{mn(!1)}}return n.memoizedState=[i,e],i}function yo(t,e,n){return n===void 0||(Sn&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=Lh(),dt.lanes|=t,Dn|=t,n)}function Ud(t,e,n,i){return ye(n,e)?n:Oa.current!==null?(t=yo(t,n,i),ye(t,e)||(Jt=!0),t):(Sn&42)===0?(Jt=!0,t.memoizedState=n):(t=Lh(),dt.lanes|=t,Dn|=t,e)}function Hd(t,e,n,i,s){var u=q.p;q.p=u!==0&&8>u?u:8;var d=C.T,v={};C.T=v,bo(t,!1,e,n);try{var S=s(),j=C.S;if(j!==null&&j(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=ey(S,i);Bi(t,e,_,Te(t))}else Bi(t,e,i,Te(t))}catch(L){Bi(t,e,{then:function(){},status:"rejected",reason:L},Te())}finally{q.p=u,C.T=d}}function sy(){}function vo(t,e,n,i){if(t.tag!==5)throw Error(o(476));var s=Ld(t).queue;Hd(t,s,e,Q,n===null?sy:function(){return qd(t),n(i)})}function Ld(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:Q},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qd(t){var e=Ld(t).next.queue;Bi(t,e,{},Te())}function xo(){return ae(tl)}function Gd(){return kt().memoizedState}function Yd(){return kt().memoizedState}function ry(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Te();t=xn(n);var i=bn(e,t,n);i!==null&&(we(i,e,n),Ni(i,e,n)),e={cache:Pr()},t.payload=e;return}e=e.return}}function oy(t,e,n){var i=Te();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ls(t)?kd(e,n):(n=Hr(t,e,n,i),n!==null&&(we(n,t,i),Qd(n,e,i)))}function Xd(t,e,n){var i=Te();Bi(t,e,n,i)}function Bi(t,e,n,i){var s={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ls(t))kd(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var d=e.lastRenderedState,v=u(d,n);if(s.hasEagerState=!0,s.eagerState=v,ye(v,d))return Yl(t,e,s,0),zt===null&&Gl(),!1}catch{}finally{}if(n=Hr(t,e,s,i),n!==null)return we(n,t,i),Qd(n,e,i),!0}return!1}function bo(t,e,n,i){if(i={lane:2,revertLane:$o(),action:i,hasEagerState:!1,eagerState:null,next:null},ls(t)){if(e)throw Error(o(479))}else e=Hr(t,n,i,2),e!==null&&we(e,t,2)}function ls(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function kd(t,e){Ra=Il=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Qd(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,$c(t,n)}}var ss={readContext:ae,use:es,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt},Kd={readContext:ae,use:es,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:ae,useEffect:Cd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,is(4194308,4,Rd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return is(4194308,4,t,e)},useInsertionEffect:function(t,e){is(4,2,t,e)},useMemo:function(t,e){var n=ce();e=e===void 0?null:e;var i=t();if(ea){mn(!0);try{t()}finally{mn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=ce();if(n!==void 0){var s=n(e);if(ea){mn(!0);try{n(e)}finally{mn(!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=oy.bind(null,dt,t),[i.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=mo(t);var e=t.queue,n=Xd.bind(null,dt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:go,useDeferredValue:function(t,e){var n=ce();return yo(n,t,e)},useTransition:function(){var t=mo(!1);return t=Hd.bind(null,dt,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=dt,s=ce();if(Tt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(vt&124)!==0||hd(i,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,Cd(pd.bind(null,i,u,t),[t]),i.flags|=2048,_a(9,as(),md.bind(null,i,u,n,e),null),n},useId:function(){var t=ce(),e=zt.identifierPrefix;if(Tt){var n=Ie,i=$e;n=(i&~(1<<32-ge(i)-1)).toString(32)+n,e="«"+e+"R"+n,n=ts++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=ny++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:xo,useFormState:Ad,useActionState:Ad,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=bo.bind(null,dt,!0,n),n.dispatch=e,[t,e]},useMemoCache:co,useCacheRefresh:function(){return ce().memoizedState=ry.bind(null,dt)}},Zd={readContext:ae,use:es,useCallback:_d,useContext:ae,useEffect:Nd,useImperativeHandle:Vd,useInsertionEffect:zd,useLayoutEffect:Od,useMemo:Bd,useReducer:ns,useRef:Dd,useState:function(){return ns(nn)},useDebugValue:go,useDeferredValue:function(t,e){var n=kt();return Ud(n,Et.memoizedState,t,e)},useTransition:function(){var t=ns(nn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:Vi(t),e]},useSyncExternalStore:dd,useId:Gd,useHostTransitionStatus:xo,useFormState:Md,useActionState:Md,useOptimistic:function(t,e){var n=kt();return vd(n,Et,t,e)},useMemoCache:co,useCacheRefresh:Yd},uy={readContext:ae,use:es,useCallback:_d,useContext:ae,useEffect:Nd,useImperativeHandle:Vd,useInsertionEffect:zd,useLayoutEffect:Od,useMemo:Bd,useReducer:ho,useRef:Dd,useState:function(){return ho(nn)},useDebugValue:go,useDeferredValue:function(t,e){var n=kt();return Et===null?yo(n,t,e):Ud(n,Et.memoizedState,t,e)},useTransition:function(){var t=ho(nn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:Vi(t),e]},useSyncExternalStore:dd,useId:Gd,useHostTransitionStatus:xo,useFormState:jd,useActionState:jd,useOptimistic:function(t,e){var n=kt();return Et!==null?vd(n,Et,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:co,useCacheRefresh:Yd},Ba=null,Ui=0;function rs(t){var e=Ui;return Ui+=1,Ba===null&&(Ba=[]),id(Ba,t,e)}function Hi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function os(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Pd(t){var e=t._init;return e(t._payload)}function Jd(t){function e(M,A){if(t){var E=M.deletions;E===null?(M.deletions=[A],M.flags|=16):E.push(A)}}function n(M,A){if(!t)return null;for(;A!==null;)e(M,A),A=A.sibling;return null}function i(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function s(M,A){return M=We(M,A),M.index=0,M.sibling=null,M}function u(M,A,E){return M.index=E,t?(E=M.alternate,E!==null?(E=E.index,E<A?(M.flags|=67108866,A):E):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function d(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function v(M,A,E,U){return A===null||A.tag!==6?(A=qr(E,M.mode,U),A.return=M,A):(A=s(A,E),A.return=M,A)}function S(M,A,E,U){var I=E.type;return I===V?_(M,A,E.props.children,U,E.key):A!==null&&(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===J&&Pd(I)===A.type)?(A=s(A,E.props),Hi(A,E),A.return=M,A):(A=kl(E.type,E.key,E.props,null,M.mode,U),Hi(A,E),A.return=M,A)}function j(M,A,E,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==E.containerInfo||A.stateNode.implementation!==E.implementation?(A=Gr(E,M.mode,U),A.return=M,A):(A=s(A,E.children||[]),A.return=M,A)}function _(M,A,E,U,I){return A===null||A.tag!==7?(A=Zn(E,M.mode,U,I),A.return=M,A):(A=s(A,E),A.return=M,A)}function L(M,A,E){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=qr(""+A,M.mode,E),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case w:return E=kl(A.type,A.key,A.props,null,M.mode,E),Hi(E,A),E.return=M,E;case z:return A=Gr(A,M.mode,E),A.return=M,A;case J:var U=A._init;return A=U(A._payload),L(M,A,E)}if(lt(A)||et(A))return A=Zn(A,M.mode,E,null),A.return=M,A;if(typeof A.then=="function")return L(M,rs(A),E);if(A.$$typeof===R)return L(M,Pl(M,A),E);os(M,A)}return null}function D(M,A,E,U){var I=A!==null?A.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return I!==null?null:v(M,A,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case w:return E.key===I?S(M,A,E,U):null;case z:return E.key===I?j(M,A,E,U):null;case J:return I=E._init,E=I(E._payload),D(M,A,E,U)}if(lt(E)||et(E))return I!==null?null:_(M,A,E,U,null);if(typeof E.then=="function")return D(M,A,rs(E),U);if(E.$$typeof===R)return D(M,A,Pl(M,E),U);os(M,E)}return null}function N(M,A,E,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return M=M.get(E)||null,v(A,M,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return M=M.get(U.key===null?E:U.key)||null,S(A,M,U,I);case z:return M=M.get(U.key===null?E:U.key)||null,j(A,M,U,I);case J:var mt=U._init;return U=mt(U._payload),N(M,A,E,U,I)}if(lt(U)||et(U))return M=M.get(E)||null,_(A,M,U,I,null);if(typeof U.then=="function")return N(M,A,E,rs(U),I);if(U.$$typeof===R)return N(M,A,E,Pl(A,U),I);os(A,U)}return null}function st(M,A,E,U){for(var I=null,mt=null,tt=A,it=A=0,Wt=null;tt!==null&&it<E.length;it++){tt.index>it?(Wt=tt,tt=null):Wt=tt.sibling;var St=D(M,tt,E[it],U);if(St===null){tt===null&&(tt=Wt);break}t&&tt&&St.alternate===null&&e(M,tt),A=u(St,A,it),mt===null?I=St:mt.sibling=St,mt=St,tt=Wt}if(it===E.length)return n(M,tt),Tt&&Jn(M,it),I;if(tt===null){for(;it<E.length;it++)tt=L(M,E[it],U),tt!==null&&(A=u(tt,A,it),mt===null?I=tt:mt.sibling=tt,mt=tt);return Tt&&Jn(M,it),I}for(tt=i(tt);it<E.length;it++)Wt=N(tt,M,it,E[it],U),Wt!==null&&(t&&Wt.alternate!==null&&tt.delete(Wt.key===null?it:Wt.key),A=u(Wt,A,it),mt===null?I=Wt:mt.sibling=Wt,mt=Wt);return t&&tt.forEach(function(Un){return e(M,Un)}),Tt&&Jn(M,it),I}function at(M,A,E,U){if(E==null)throw Error(o(151));for(var I=null,mt=null,tt=A,it=A=0,Wt=null,St=E.next();tt!==null&&!St.done;it++,St=E.next()){tt.index>it?(Wt=tt,tt=null):Wt=tt.sibling;var Un=D(M,tt,St.value,U);if(Un===null){tt===null&&(tt=Wt);break}t&&tt&&Un.alternate===null&&e(M,tt),A=u(Un,A,it),mt===null?I=Un:mt.sibling=Un,mt=Un,tt=Wt}if(St.done)return n(M,tt),Tt&&Jn(M,it),I;if(tt===null){for(;!St.done;it++,St=E.next())St=L(M,St.value,U),St!==null&&(A=u(St,A,it),mt===null?I=St:mt.sibling=St,mt=St);return Tt&&Jn(M,it),I}for(tt=i(tt);!St.done;it++,St=E.next())St=N(tt,M,it,St.value,U),St!==null&&(t&&St.alternate!==null&&tt.delete(St.key===null?it:St.key),A=u(St,A,it),mt===null?I=St:mt.sibling=St,mt=St);return t&&tt.forEach(function(c5){return e(M,c5)}),Tt&&Jn(M,it),I}function Dt(M,A,E,U){if(typeof E=="object"&&E!==null&&E.type===V&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case w:t:{for(var I=E.key;A!==null;){if(A.key===I){if(I=E.type,I===V){if(A.tag===7){n(M,A.sibling),U=s(A,E.props.children),U.return=M,M=U;break t}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===J&&Pd(I)===A.type){n(M,A.sibling),U=s(A,E.props),Hi(U,E),U.return=M,M=U;break t}n(M,A);break}else e(M,A);A=A.sibling}E.type===V?(U=Zn(E.props.children,M.mode,U,E.key),U.return=M,M=U):(U=kl(E.type,E.key,E.props,null,M.mode,U),Hi(U,E),U.return=M,M=U)}return d(M);case z:t:{for(I=E.key;A!==null;){if(A.key===I)if(A.tag===4&&A.stateNode.containerInfo===E.containerInfo&&A.stateNode.implementation===E.implementation){n(M,A.sibling),U=s(A,E.children||[]),U.return=M,M=U;break t}else{n(M,A);break}else e(M,A);A=A.sibling}U=Gr(E,M.mode,U),U.return=M,M=U}return d(M);case J:return I=E._init,E=I(E._payload),Dt(M,A,E,U)}if(lt(E))return st(M,A,E,U);if(et(E)){if(I=et(E),typeof I!="function")throw Error(o(150));return E=I.call(E),at(M,A,E,U)}if(typeof E.then=="function")return Dt(M,A,rs(E),U);if(E.$$typeof===R)return Dt(M,A,Pl(M,E),U);os(M,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,A!==null&&A.tag===6?(n(M,A.sibling),U=s(A,E),U.return=M,M=U):(n(M,A),U=qr(E,M.mode,U),U.return=M,M=U),d(M)):n(M,A)}return function(M,A,E,U){try{Ui=0;var I=Dt(M,A,E,U);return Ba=null,I}catch(tt){if(tt===Di||tt===Fl)throw tt;var mt=ve(29,tt,null,M.mode);return mt.lanes=U,mt.return=M,mt}finally{}}}var Ua=Jd(!0),Fd=Jd(!1),Ne=G(null),Xe=null;function Tn(t){var e=t.alternate;P(Zt,Zt.current&1),P(Ne,t),Xe===null&&(e===null||Oa.current!==null||e.memoizedState!==null)&&(Xe=t)}function Wd(t){if(t.tag===22){if(P(Zt,Zt.current),P(Ne,t),Xe===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Xe=t)}}else wn()}function wn(){P(Zt,Zt.current),P(Ne,Ne.current)}function an(t){W(Ne),Xe===t&&(Xe=null),W(Zt)}var Zt=G(0);function us(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==="$?"||cu(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 So(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var To={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Te(),s=xn(i);s.payload=e,n!=null&&(s.callback=n),e=bn(t,s,i),e!==null&&(we(e,t,i),Ni(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Te(),s=xn(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=bn(t,s,i),e!==null&&(we(e,t,i),Ni(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),i=xn(n);i.tag=2,e!=null&&(i.callback=e),e=bn(t,i,n),e!==null&&(we(e,t,n),Ni(e,t,n))}};function $d(t,e,n,i,s,u,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,u,d):e.prototype&&e.prototype.isPureReactComponent?!bi(n,i)||!bi(s,u):!0}function Id(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&&To.enqueueReplaceState(e,e.state,null)}function na(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=x({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}var cs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function th(t){cs(t)}function eh(t){console.error(t)}function nh(t){cs(t)}function fs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function ah(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 wo(t,e,n){return n=xn(n),n.tag=3,n.payload={element:null},n.callback=function(){fs(t,e)},n}function ih(t){return t=xn(t),t.tag=3,t}function lh(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=i.value;t.payload=function(){return s(u)},t.callback=function(){ah(e,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){ah(e,n,i),typeof s!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function cy(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Mi(e,n,s,!0),n=Ne.current,n!==null){switch(n.tag){case 13:return Xe===null?Zo():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===Wr?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Jo(t,i,s)),!1;case 22:return n.flags|=65536,i===Wr?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)),Jo(t,i,s)),!1}throw Error(o(435,n.tag))}return Jo(t,i,s),Zo(),!1}if(Tt)return e=Ne.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==kr&&(t=Error(o(422),{cause:i}),Ai(Ee(t,n)))):(i!==kr&&(e=Error(o(423),{cause:i}),Ai(Ee(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=Ee(i,n),s=wo(t.stateNode,i,s),to(t,s),Ht!==4&&(Ht=2)),!1;var u=Error(o(520),{cause:i});if(u=Ee(u,n),Qi===null?Qi=[u]:Qi.push(u),Ht!==4&&(Ht=2),e===null)return!0;i=Ee(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=wo(n.stateNode,i,t),to(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Cn===null||!Cn.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=ih(s),lh(s,t,n,i),to(n,s),!1}n=n.return}while(n!==null);return!1}var sh=Error(o(461)),Jt=!1;function $t(t,e,n,i){e.child=t===null?Fd(e,null,n,i):Ua(e,t.child,n,i)}function rh(t,e,n,i,s){n=n.render;var u=e.ref;if("ref"in i){var d={};for(var v in i)v!=="ref"&&(d[v]=i[v])}else d=i;return In(e),i=lo(t,e,n,d,u,s),v=so(),t!==null&&!Jt?(ro(t,e,s),ln(t,e,s)):(Tt&&v&&Yr(e),e.flags|=1,$t(t,e,i,s),e.child)}function oh(t,e,n,i,s){if(t===null){var u=n.type;return typeof u=="function"&&!Lr(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,uh(t,e,u,i,s)):(t=kl(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!zo(t,s)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:bi,n(d,i)&&t.ref===e.ref)return ln(t,e,s)}return e.flags|=1,t=We(u,i),t.ref=e.ref,t.return=e,e.child=t}function uh(t,e,n,i,s){if(t!==null){var u=t.memoizedProps;if(bi(u,i)&&t.ref===e.ref)if(Jt=!1,e.pendingProps=i=u,zo(t,s))(t.flags&131072)!==0&&(Jt=!0);else return e.lanes=t.lanes,ln(t,e,s)}return Ao(t,e,n,i,s)}function ch(t,e,n){var i=e.pendingProps,s=i.children,u=t!==null?t.memoizedState:null;if(i.mode==="hidden"){if((e.flags&128)!==0){if(i=u!==null?u.baseLanes|n:n,t!==null){for(s=e.child=t.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;e.childLanes=u&~i}else e.childLanes=0,e.child=null;return fh(t,e,i,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Jl(e,u!==null?u.cachePool:null),u!==null?ud(e,u):no(),Wd(e);else return e.lanes=e.childLanes=536870912,fh(t,e,u!==null?u.baseLanes|n:n,n)}else u!==null?(Jl(e,u.cachePool),ud(e,u),wn(),e.memoizedState=null):(t!==null&&Jl(e,null),no(),wn());return $t(t,e,s,n),e.child}function fh(t,e,n,i){var s=Fr();return s=s===null?null:{parent:Kt._currentValue,pool:s},e.memoizedState={baseLanes:n,cachePool:s},t!==null&&Jl(e,null),no(),Wd(e),t!==null&&Mi(t,e,i,!0),null}function ds(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(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Ao(t,e,n,i,s){return In(e),n=lo(t,e,n,i,void 0,s),i=so(),t!==null&&!Jt?(ro(t,e,s),ln(t,e,s)):(Tt&&i&&Yr(e),e.flags|=1,$t(t,e,n,s),e.child)}function dh(t,e,n,i,s,u){return In(e),e.updateQueue=null,n=fd(e,i,n,s),cd(t),i=so(),t!==null&&!Jt?(ro(t,e,u),ln(t,e,u)):(Tt&&i&&Yr(e),e.flags|=1,$t(t,e,n,u),e.child)}function hh(t,e,n,i,s){if(In(e),e.stateNode===null){var u=ja,d=n.contextType;typeof d=="object"&&d!==null&&(u=ae(d)),u=new n(i,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=To,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=i,u.state=e.memoizedState,u.refs={},$r(e),d=n.contextType,u.context=typeof d=="object"&&d!==null?ae(d):ja,u.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(So(e,n,d,i),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&To.enqueueReplaceState(u,u.state,null),Oi(e,i,u,s),zi(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){u=e.stateNode;var v=e.memoizedProps,S=na(n,v);u.props=S;var j=u.context,_=n.contextType;d=ja,typeof _=="object"&&_!==null&&(d=ae(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||j!==d)&&Id(e,u,i,d),vn=!1;var D=e.memoizedState;u.state=D,Oi(e,i,u,s),zi(),j=e.memoizedState,v||D!==j||vn?(typeof L=="function"&&(So(e,n,L,i),j=e.memoizedState),(S=vn||$d(e,n,S,i,D,j,d))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=j),u.props=i,u.state=j,u.context=d,i=S):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{u=e.stateNode,Ir(t,e),d=e.memoizedProps,_=na(n,d),u.props=_,L=e.pendingProps,D=u.context,j=n.contextType,S=ja,typeof j=="object"&&j!==null&&(S=ae(j)),v=n.getDerivedStateFromProps,(j=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==L||D!==S)&&Id(e,u,i,S),vn=!1,D=e.memoizedState,u.state=D,Oi(e,i,u,s),zi();var N=e.memoizedState;d!==L||D!==N||vn||t!==null&&t.dependencies!==null&&Zl(t.dependencies)?(typeof v=="function"&&(So(e,n,v,i),N=e.memoizedState),(_=vn||$d(e,n,_,i,D,N,S)||t!==null&&t.dependencies!==null&&Zl(t.dependencies))?(j||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,N,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,N,S)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=N),u.props=i,u.state=N,u.context=S,i=_):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),i=!1)}return u=i,ds(t,e),i=(e.flags&128)!==0,u||i?(u=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&i?(e.child=Ua(e,t.child,null,s),e.child=Ua(e,null,n,s)):$t(t,e,n,s),e.memoizedState=u.state,t=e.child):t=ln(t,e,s),t}function mh(t,e,n,i){return wi(),e.flags|=256,$t(t,e,n,i),e.child}var Mo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Eo(t){return{baseLanes:t,cachePool:ed()}}function jo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=ze),t}function ph(t,e,n){var i=e.pendingProps,s=!1,u=(e.flags&128)!==0,d;if((d=u)||(d=t!==null&&t.memoizedState===null?!1:(Zt.current&2)!==0),d&&(s=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Tt){if(s?Tn(e):wn(),Tt){var v=Ut,S;if(S=v){t:{for(S=v,v=Ye;S.nodeType!==8;){if(!v){v=null;break t}if(S=Le(S.nextSibling),S===null){v=null;break t}}v=S}v!==null?(e.memoizedState={dehydrated:v,treeContext:Pn!==null?{id:$e,overflow:Ie}:null,retryLane:536870912,hydrationErrors:null},S=ve(18,null,null,0),S.stateNode=v,S.return=e,e.child=S,se=e,Ut=null,S=!0):S=!1}S||Wn(e)}if(v=e.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return cu(v)?e.lanes=32:e.lanes=536870912,null;an(e)}return v=i.children,i=i.fallback,s?(wn(),s=e.mode,v=hs({mode:"hidden",children:v},s),i=Zn(i,s,n,null),v.return=e,i.return=e,v.sibling=i,e.child=v,s=e.child,s.memoizedState=Eo(n),s.childLanes=jo(t,d,n),e.memoizedState=Mo,i):(Tn(e),Do(e,v))}if(S=t.memoizedState,S!==null&&(v=S.dehydrated,v!==null)){if(u)e.flags&256?(Tn(e),e.flags&=-257,e=Co(t,e,n)):e.memoizedState!==null?(wn(),e.child=t.child,e.flags|=128,e=null):(wn(),s=i.fallback,v=e.mode,i=hs({mode:"visible",children:i.children},v),s=Zn(s,v,n,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,Ua(e,t.child,null,n),i=e.child,i.memoizedState=Eo(n),i.childLanes=jo(t,d,n),e.memoizedState=Mo,e=s);else if(Tn(e),cu(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var j=d.dgst;d=j,i=Error(o(419)),i.stack="",i.digest=d,Ai({value:i,source:null,stack:null}),e=Co(t,e,n)}else if(Jt||Mi(t,e,n,!1),d=(n&t.childLanes)!==0,Jt||d){if(d=zt,d!==null&&(i=n&-n,i=(i&42)!==0?1:cr(i),i=(i&(d.suspendedLanes|n))!==0?0:i,i!==0&&i!==S.retryLane))throw S.retryLane=i,Ea(t,i),we(d,t,i),sh;v.data==="$?"||Zo(),e=Co(t,e,n)}else v.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Ut=Le(v.nextSibling),se=e,Tt=!0,Fn=null,Ye=!1,t!==null&&(De[Ce++]=$e,De[Ce++]=Ie,De[Ce++]=Pn,$e=t.id,Ie=t.overflow,Pn=e),e=Do(e,i.children),e.flags|=4096);return e}return s?(wn(),s=i.fallback,v=e.mode,S=t.child,j=S.sibling,i=We(S,{mode:"hidden",children:i.children}),i.subtreeFlags=S.subtreeFlags&65011712,j!==null?s=We(j,s):(s=Zn(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=Eo(n):(S=v.cachePool,S!==null?(j=Kt._currentValue,S=S.parent!==j?{parent:j,pool:j}:S):S=ed(),v={baseLanes:v.baseLanes|n,cachePool:S}),s.memoizedState=v,s.childLanes=jo(t,d,n),e.memoizedState=Mo,i):(Tn(e),n=t.child,t=n.sibling,n=We(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 Do(t,e){return e=hs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function hs(t,e){return t=ve(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Co(t,e,n){return Ua(e,t.child,null,n),t=Do(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function gh(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Kr(t.return,e,n)}function No(t,e,n,i,s){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=i,u.tail=n,u.tailMode=s)}function yh(t,e,n){var i=e.pendingProps,s=i.revealOrder,u=i.tail;if($t(t,e,i.children,n),i=Zt.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&&gh(t,n,e);else if(t.tag===19)gh(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(P(Zt,i),s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&us(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),No(e,!1,s,n,u);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&us(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}No(e,!0,n,null,u);break;case"together":No(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function ln(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Dn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Mi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=We(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=We(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Zl(t)))}function fy(t,e,n){switch(e.tag){case 3:Ot(e,e.stateNode.containerInfo),yn(e,Kt,t.memoizedState.cache),wi();break;case 27:case 5:lr(e);break;case 4:Ot(e,e.stateNode.containerInfo);break;case 10:yn(e,e.type,e.memoizedProps.value);break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(Tn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?ph(t,e,n):(Tn(e),t=ln(t,e,n),t!==null?t.sibling:null);Tn(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Mi(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return yh(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),P(Zt,Zt.current),i)break;return null;case 22:case 23:return e.lanes=0,ch(t,e,n);case 24:yn(e,Kt,t.memoizedState.cache)}return ln(t,e,n)}function vh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Jt=!0;else{if(!zo(t,n)&&(e.flags&128)===0)return Jt=!1,fy(t,e,n);Jt=(t.flags&131072)!==0}else Jt=!1,Tt&&(e.flags&1048576)!==0&&Pf(e,Kl,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")Lr(i)?(t=na(i,t),e.tag=1,e=hh(null,e,i,t,n)):(e.tag=0,e=Ao(null,e,i,t,n));else{if(i!=null){if(s=i.$$typeof,s===k){e.tag=11,e=rh(null,e,i,t,n);break t}else if(s===F){e.tag=14,e=oh(null,e,i,t,n);break t}}throw e=yt(i)||i,Error(o(306,e,""))}}return e;case 0:return Ao(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=na(i,e.pendingProps),hh(t,e,i,s,n);case 3:t:{if(Ot(e,e.stateNode.containerInfo),t===null)throw Error(o(387));i=e.pendingProps;var u=e.memoizedState;s=u.element,Ir(t,e),Oi(e,i,null,n);var d=e.memoizedState;if(i=d.cache,yn(e,Kt,i),i!==u.cache&&Zr(e,[Kt],n,!0),zi(),i=d.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=mh(t,e,i,n);break t}else if(i!==s){s=Ee(Error(o(424)),e),Ai(s),e=mh(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(Ut=Le(t.firstChild),se=e,Tt=!0,Fn=null,Ye=!0,n=Fd(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(wi(),i===s){e=ln(t,e,n);break t}$t(t,e,i,n)}e=e.child}return e;case 26:return ds(t,e),t===null?(n=T0(e.type,null,e.pendingProps,null))?e.memoizedState=n:Tt||(n=e.type,t=e.pendingProps,i=js(ut.current).createElement(n),i[ne]=e,i[oe]=t,te(i,n,t),Pt(i),e.stateNode=i):e.memoizedState=T0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return lr(e),t===null&&Tt&&(i=e.stateNode=x0(e.type,e.pendingProps,ut.current),se=e,Ye=!0,s=Ut,On(e.type)?(fu=s,Ut=Le(i.firstChild)):Ut=s),$t(t,e,e.pendingProps.children,n),ds(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Tt&&((s=i=Ut)&&(i=Ly(i,e.type,e.pendingProps,Ye),i!==null?(e.stateNode=i,se=e,Ut=Le(i.firstChild),Ye=!1,s=!0):s=!1),s||Wn(e)),lr(e),s=e.type,u=e.pendingProps,d=t!==null?t.memoizedProps:null,i=u.children,ru(s,u)?i=null:d!==null&&ru(s,d)&&(e.flags|=32),e.memoizedState!==null&&(s=lo(t,e,ay,null,null,n),tl._currentValue=s),ds(t,e),$t(t,e,i,n),e.child;case 6:return t===null&&Tt&&((t=n=Ut)&&(n=qy(n,e.pendingProps,Ye),n!==null?(e.stateNode=n,se=e,Ut=null,t=!0):t=!1),t||Wn(e)),null;case 13:return ph(t,e,n);case 4:return Ot(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Ua(e,null,i,n):$t(t,e,i,n),e.child;case 11:return rh(t,e,e.type,e.pendingProps,n);case 7:return $t(t,e,e.pendingProps,n),e.child;case 8:return $t(t,e,e.pendingProps.children,n),e.child;case 12:return $t(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,yn(e,e.type,i.value),$t(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,In(e),s=ae(s),i=i(s),e.flags|=1,$t(t,e,i,n),e.child;case 14:return oh(t,e,e.type,e.pendingProps,n);case 15:return uh(t,e,e.type,e.pendingProps,n);case 19:return yh(t,e,n);case 31:return i=e.pendingProps,n=e.mode,i={mode:i.mode,children:i.children},t===null?(n=hs(i,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=We(t.child,i),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return ch(t,e,n);case 24:return In(e),i=ae(Kt),t===null?(s=Fr(),s===null&&(s=zt,u=Pr(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),e.memoizedState={parent:i,cache:s},$r(e),yn(e,Kt,s)):((t.lanes&n)!==0&&(Ir(t,e),Oi(e,null,null,n),zi()),s=t.memoizedState,u=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),yn(e,Kt,i)):(i=u.cache,yn(e,Kt,i),i!==s.cache&&Zr(e,[Kt],n,!0))),$t(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function sn(t){t.flags|=4}function xh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!j0(e)){if(e=Ne.current,e!==null&&((vt&4194048)===vt?Xe!==null:(vt&62914560)!==vt&&(vt&536870912)===0||e!==Xe))throw Ci=Wr,nd;t.flags|=8192}}function ms(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Fc():536870912,t.lanes|=e,Ga|=e)}function Li(t,e){if(!Tt)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 _t(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 dy(t,e,n){var i=e.pendingProps;switch(Xr(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),en(Kt),hn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ti(e)?sn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wf())),_t(e),null;case 26:return n=e.memoizedState,t===null?(sn(e),n!==null?(_t(e),xh(e,n)):(_t(e),e.flags&=-16777217)):n?n!==t.memoizedState?(sn(e),_t(e),xh(e,n)):(_t(e),e.flags&=-16777217):(t.memoizedProps!==i&&sn(e),_t(e),e.flags&=-16777217),null;case 27:Ml(e),n=ut.current;var s=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==i&&sn(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return _t(e),null}t=nt.current,Ti(e)?Jf(e):(t=x0(s,i,n),e.stateNode=t,sn(e))}return _t(e),null;case 5:if(Ml(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&sn(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return _t(e),null}if(t=nt.current,Ti(e))Jf(e);else{switch(s=js(ut.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[ne]=e,t[oe]=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(te(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&&sn(e)}}return _t(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&sn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(o(166));if(t=ut.current,Ti(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,s=se,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}t[ne]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||d0(t.nodeValue,n)),t||Wn(e)}else t=js(t).createTextNode(i),t[ne]=e,e.stateNode=t}return _t(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Ti(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[ne]=e}else wi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),s=!1}else s=Wf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(an(e),e):(an(e),null)}if(an(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 u=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==s&&(i.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),ms(e,e.updateQueue),_t(e),null;case 4:return hn(),t===null&&nu(e.stateNode.containerInfo),_t(e),null;case 10:return en(e.type),_t(e),null;case 19:if(W(Zt),s=e.memoizedState,s===null)return _t(e),null;if(i=(e.flags&128)!==0,u=s.rendering,u===null)if(i)Li(s,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=us(t),u!==null){for(e.flags|=128,Li(s,!1),t=u.updateQueue,e.updateQueue=t,ms(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Zf(n,t),n=n.sibling;return P(Zt,Zt.current&1|2),e.child}t=t.sibling}s.tail!==null&&Ge()>ys&&(e.flags|=128,i=!0,Li(s,!1),e.lanes=4194304)}else{if(!i)if(t=us(u),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,ms(e,t),Li(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Tt)return _t(e),null}else 2*Ge()-s.renderingStartTime>ys&&n!==536870912&&(e.flags|=128,i=!0,Li(s,!1),e.lanes=4194304);s.isBackwards?(u.sibling=e.child,e.child=u):(t=s.last,t!==null?t.sibling=u:e.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Ge(),e.sibling=null,t=Zt.current,P(Zt,i?t&1|2:t&1),e):(_t(e),null);case 22:case 23:return an(e),ao(),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&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&ms(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&&W(ta),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),en(Kt),_t(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function hy(t,e){switch(Xr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return en(Kt),hn(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ml(e),null;case 13:if(an(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));wi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return W(Zt),null;case 4:return hn(),null;case 10:return en(e.type),null;case 22:case 23:return an(e),ao(),t!==null&&W(ta),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return en(Kt),null;case 25:return null;default:return null}}function bh(t,e){switch(Xr(e),e.tag){case 3:en(Kt),hn();break;case 26:case 27:case 5:Ml(e);break;case 4:hn();break;case 13:an(e);break;case 19:W(Zt);break;case 10:en(e.type);break;case 22:case 23:an(e),ao(),t!==null&&W(ta);break;case 24:en(Kt)}}function qi(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 u=n.create,d=n.inst;i=u(),d.destroy=i}n=n.next}while(n!==s)}}catch(v){Ct(e,e.return,v)}}function An(t,e,n){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var u=s.next;i=u;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,j=v;try{j()}catch(_){Ct(s,S,_)}}}i=i.next}while(i!==u)}}catch(_){Ct(e,e.return,_)}}function Sh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{od(e,n)}catch(i){Ct(t,t.return,i)}}}function Th(t,e,n){n.props=na(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Ct(t,e,i)}}function Gi(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){Ct(t,e,s)}}function ke(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){Ct(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){Ct(t,e,s)}else n.current=null}function wh(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){Ct(t,t.return,s)}}function Oo(t,e,n){try{var i=t.stateNode;Vy(i,t.type,n,e),i[oe]=e}catch(s){Ct(t,t.return,s)}}function Ah(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&On(t.type)||t.tag===4}function Ro(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ah(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&&On(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 Vo(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=Es));else if(i!==4&&(i===27&&On(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Vo(t,e,n),t=t.sibling;t!==null;)Vo(t,e,n),t=t.sibling}function ps(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&&On(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ps(t,e,n),t=t.sibling;t!==null;)ps(t,e,n),t=t.sibling}function Mh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);te(e,i,n),e[ne]=t,e[oe]=n}catch(u){Ct(t,t.return,u)}}var rn=!1,Gt=!1,_o=!1,Eh=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function my(t,e){if(t=t.containerInfo,lu=Rs,t=Uf(t),Or(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,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var d=0,v=-1,S=-1,j=0,_=0,L=t,D=null;e:for(;;){for(var N;L!==n||s!==0&&L.nodeType!==3||(v=d+s),L!==u||i!==0&&L.nodeType!==3||(S=d+i),L.nodeType===3&&(d+=L.nodeValue.length),(N=L.firstChild)!==null;)D=L,L=N;for(;;){if(L===t)break e;if(D===n&&++j===s&&(v=d),D===u&&++_===i&&(S=d),(N=L.nextSibling)!==null)break;L=D,D=L.parentNode}L=N}n=v===-1||S===-1?null:{start:v,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(su={focusedElem:t,selectionRange:n},Rs=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,s=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var st=na(n.type,s,n.elementType===n.type);t=i.getSnapshotBeforeUpdate(st,u),i.__reactInternalSnapshotBeforeUpdate=t}catch(at){Ct(n,n.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)uu(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":uu(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(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function jh(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Mn(t,n),i&4&&qi(5,n);break;case 1:if(Mn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){Ct(n,n.return,d)}else{var s=na(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Ct(n,n.return,d)}}i&64&&Sh(n),i&512&&Gi(n,n.return);break;case 3:if(Mn(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{od(t,e)}catch(d){Ct(n,n.return,d)}}break;case 27:e===null&&i&4&&Mh(n);case 26:case 5:Mn(t,n),e===null&&i&4&&wh(n),i&512&&Gi(n,n.return);break;case 12:Mn(t,n);break;case 13:Mn(t,n),i&4&&Nh(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=wy.bind(null,n),Gy(t,n))));break;case 22:if(i=n.memoizedState!==null||rn,!i){e=e!==null&&e.memoizedState!==null||Gt,s=rn;var u=Gt;rn=i,(Gt=e)&&!u?En(t,n,(n.subtreeFlags&8772)!==0):Mn(t,n),rn=s,Gt=u}break;case 30:break;default:Mn(t,n)}}function Dh(t){var e=t.alternate;e!==null&&(t.alternate=null,Dh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&hr(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 Rt=null,fe=!1;function on(t,e,n){for(n=n.child;n!==null;)Ch(t,e,n),n=n.sibling}function Ch(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(oi,n)}catch{}switch(n.tag){case 26:Gt||ke(n,e),on(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Gt||ke(n,e);var i=Rt,s=fe;On(n.type)&&(Rt=n.stateNode,fe=!1),on(t,e,n),Fi(n.stateNode),Rt=i,fe=s;break;case 5:Gt||ke(n,e);case 6:if(i=Rt,s=fe,Rt=null,on(t,e,n),Rt=i,fe=s,Rt!==null)if(fe)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(n.stateNode)}catch(u){Ct(n,e,u)}else try{Rt.removeChild(n.stateNode)}catch(u){Ct(n,e,u)}break;case 18:Rt!==null&&(fe?(t=Rt,y0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),il(t)):y0(Rt,n.stateNode));break;case 4:i=Rt,s=fe,Rt=n.stateNode.containerInfo,fe=!0,on(t,e,n),Rt=i,fe=s;break;case 0:case 11:case 14:case 15:Gt||An(2,n,e),Gt||An(4,n,e),on(t,e,n);break;case 1:Gt||(ke(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Th(n,e,i)),on(t,e,n);break;case 21:on(t,e,n);break;case 22:Gt=(i=Gt)||n.memoizedState!==null,on(t,e,n),Gt=i;break;default:on(t,e,n)}}function Nh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{il(t)}catch(n){Ct(e,e.return,n)}}function py(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Eh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Eh),e;default:throw Error(o(435,t.tag))}}function Bo(t,e){var n=py(t);e.forEach(function(i){var s=Ay.bind(null,t,i);n.has(i)||(n.add(i),i.then(s,s))})}function xe(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],u=t,d=e,v=d;t:for(;v!==null;){switch(v.tag){case 27:if(On(v.type)){Rt=v.stateNode,fe=!1;break t}break;case 5:Rt=v.stateNode,fe=!1;break t;case 3:case 4:Rt=v.stateNode.containerInfo,fe=!0;break t}v=v.return}if(Rt===null)throw Error(o(160));Ch(u,d,s),Rt=null,fe=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)zh(e,t),e=e.sibling}var He=null;function zh(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),be(t),i&4&&(An(3,t,t.return),qi(3,t),An(5,t,t.return));break;case 1:xe(e,t),be(t),i&512&&(Gt||n===null||ke(n,n.return)),i&64&&rn&&(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=He;if(xe(e,t),be(t),i&512&&(Gt||n===null||ke(n,n.return)),i&4){var u=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":u=s.getElementsByTagName("title")[0],(!u||u[fi]||u[ne]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(i),s.head.insertBefore(u,s.querySelector("head > title"))),te(u,i,n),u[ne]=t,Pt(u),i=u;break t;case"link":var d=M0("link","href",s).get(i+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(u=d[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break e}}u=s.createElement(i),te(u,i,n),s.head.appendChild(u);break;case"meta":if(d=M0("meta","content",s).get(i+(n.content||""))){for(v=0;v<d.length;v++)if(u=d[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break e}}u=s.createElement(i),te(u,i,n),s.head.appendChild(u);break;default:throw Error(o(468,i))}u[ne]=t,Pt(u),i=u}t.stateNode=i}else E0(s,t.type,t.stateNode);else t.stateNode=A0(s,i,t.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?E0(s,t.type,t.stateNode):A0(s,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Oo(t,t.memoizedProps,n.memoizedProps)}break;case 27:xe(e,t),be(t),i&512&&(Gt||n===null||ke(n,n.return)),n!==null&&i&4&&Oo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(xe(e,t),be(t),i&512&&(Gt||n===null||ke(n,n.return)),t.flags&32){s=t.stateNode;try{xa(s,"")}catch(N){Ct(t,t.return,N)}}i&4&&t.stateNode!=null&&(s=t.memoizedProps,Oo(t,s,n!==null?n.memoizedProps:s)),i&1024&&(_o=!0);break;case 6:if(xe(e,t),be(t),i&4){if(t.stateNode===null)throw Error(o(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(N){Ct(t,t.return,N)}}break;case 3:if(Ns=null,s=He,He=Ds(e.containerInfo),xe(e,t),He=s,be(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{il(e.containerInfo)}catch(N){Ct(t,t.return,N)}_o&&(_o=!1,Oh(t));break;case 4:i=He,He=Ds(t.stateNode.containerInfo),xe(e,t),be(t),He=i;break;case 12:xe(e,t),be(t);break;case 13:xe(e,t),be(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Yo=Ge()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Bo(t,i)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,j=rn,_=Gt;if(rn=j||s,Gt=_||S,xe(e,t),Gt=_,rn=j,be(t),i&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||rn||Gt||aa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(u=S.stateNode,s)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=S.stateNode;var L=S.memoizedProps.style,D=L!=null&&L.hasOwnProperty("display")?L.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(N){Ct(S,S.return,N)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(N){Ct(S,S.return,N)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;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,Bo(t,n))));break;case 19:xe(e,t),be(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,Bo(t,i)));break;case 30:break;case 21:break;default:xe(e,t),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(Ah(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,u=Ro(t);ps(t,u,s);break;case 5:var d=n.stateNode;n.flags&32&&(xa(d,""),n.flags&=-33);var v=Ro(t);ps(t,v,d);break;case 3:case 4:var S=n.stateNode.containerInfo,j=Ro(t);Vo(t,j,S);break;default:throw Error(o(161))}}catch(_){Ct(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Oh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Oh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)jh(t,e.alternate,e),e=e.sibling}function aa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:An(4,e,e.return),aa(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Th(e,e.return,n),aa(e);break;case 27:Fi(e.stateNode);case 26:case 5:ke(e,e.return),aa(e);break;case 22:e.memoizedState===null&&aa(e);break;case 30:aa(e);break;default:aa(e)}t=t.sibling}}function En(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,s=t,u=e,d=u.flags;switch(u.tag){case 0:case 11:case 15:En(s,u,n),qi(4,u);break;case 1:if(En(s,u,n),i=u,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(j){Ct(i,i.return,j)}if(i=u,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++)rd(S[s],v)}catch(j){Ct(i,i.return,j)}}n&&d&64&&Sh(u),Gi(u,u.return);break;case 27:Mh(u);case 26:case 5:En(s,u,n),n&&i===null&&d&4&&wh(u),Gi(u,u.return);break;case 12:En(s,u,n);break;case 13:En(s,u,n),n&&d&4&&Nh(s,u);break;case 22:u.memoizedState===null&&En(s,u,n),Gi(u,u.return);break;case 30:break;default:En(s,u,n)}e=e.sibling}}function Uo(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&&Ei(n))}function Ho(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ei(t))}function Qe(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rh(t,e,n,i),e=e.sibling}function Rh(t,e,n,i){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Qe(t,e,n,i),s&2048&&qi(9,e);break;case 1:Qe(t,e,n,i);break;case 3:Qe(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&&Ei(t)));break;case 12:if(s&2048){Qe(t,e,n,i),t=e.stateNode;try{var u=e.memoizedProps,d=u.id,v=u.onPostCommit;typeof v=="function"&&v(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Ct(e,e.return,S)}}else Qe(t,e,n,i);break;case 13:Qe(t,e,n,i);break;case 23:break;case 22:u=e.stateNode,d=e.alternate,e.memoizedState!==null?u._visibility&2?Qe(t,e,n,i):Yi(t,e):u._visibility&2?Qe(t,e,n,i):(u._visibility|=2,Ha(t,e,n,i,(e.subtreeFlags&10256)!==0)),s&2048&&Uo(d,e);break;case 24:Qe(t,e,n,i),s&2048&&Ho(e.alternate,e);break;default:Qe(t,e,n,i)}}function Ha(t,e,n,i,s){for(s=s&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,d=e,v=n,S=i,j=d.flags;switch(d.tag){case 0:case 11:case 15:Ha(u,d,v,S,s),qi(8,d);break;case 23:break;case 22:var _=d.stateNode;d.memoizedState!==null?_._visibility&2?Ha(u,d,v,S,s):Yi(u,d):(_._visibility|=2,Ha(u,d,v,S,s)),s&&j&2048&&Uo(d.alternate,d);break;case 24:Ha(u,d,v,S,s),s&&j&2048&&Ho(d.alternate,d);break;default:Ha(u,d,v,S,s)}e=e.sibling}}function Yi(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:Yi(n,i),s&2048&&Uo(i.alternate,i);break;case 24:Yi(n,i),s&2048&&Ho(i.alternate,i);break;default:Yi(n,i)}e=e.sibling}}var Xi=8192;function La(t){if(t.subtreeFlags&Xi)for(t=t.child;t!==null;)Vh(t),t=t.sibling}function Vh(t){switch(t.tag){case 26:La(t),t.flags&Xi&&t.memoizedState!==null&&t5(He,t.memoizedState,t.memoizedProps);break;case 5:La(t);break;case 3:case 4:var e=He;He=Ds(t.stateNode.containerInfo),La(t),He=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Xi,Xi=16777216,La(t),Xi=e):La(t));break;default:La(t)}}function _h(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 ki(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];Ft=i,Uh(i,t)}_h(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bh(t),t=t.sibling}function Bh(t){switch(t.tag){case 0:case 11:case 15:ki(t),t.flags&2048&&An(9,t,t.return);break;case 3:ki(t);break;case 12:ki(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,gs(t)):ki(t);break;default:ki(t)}}function gs(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];Ft=i,Uh(i,t)}_h(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:An(8,e,e.return),gs(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,gs(e));break;default:gs(e)}t=t.sibling}}function Uh(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:An(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:Ei(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Ft=i;else t:for(n=t;Ft!==null;){i=Ft;var s=i.sibling,u=i.return;if(Dh(i),i===n){Ft=null;break t}if(s!==null){s.return=u,Ft=s;break t}Ft=u}}}var gy={getCacheForType:function(t){var e=ae(Kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},yy=typeof WeakMap=="function"?WeakMap:Map,wt=0,zt=null,pt=null,vt=0,At=0,Se=null,jn=!1,qa=!1,Lo=!1,un=0,Ht=0,Dn=0,ia=0,qo=0,ze=0,Ga=0,Qi=null,de=null,Go=!1,Yo=0,ys=1/0,vs=null,Cn=null,It=0,Nn=null,Ya=null,Xa=0,Xo=0,ko=null,Hh=null,Ki=0,Qo=null;function Te(){if((wt&2)!==0&&vt!==0)return vt&-vt;if(C.T!==null){var t=Na;return t!==0?t:$o()}return Ic()}function Lh(){ze===0&&(ze=(vt&536870912)===0||Tt?Jc():536870912);var t=Ne.current;return t!==null&&(t.flags|=32),ze}function we(t,e,n){(t===zt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(ka(t,0),zn(t,vt,ze,!1)),ci(t,n),((wt&2)===0||t!==zt)&&(t===zt&&((wt&2)===0&&(ia|=n),Ht===4&&zn(t,vt,ze,!1)),Ke(t))}function qh(t,e,n){if((wt&6)!==0)throw Error(o(327));var i=!n&&(e&124)===0&&(e&t.expiredLanes)===0||ui(t,e),s=i?by(t,e):Po(t,e,!0),u=i;do{if(s===0){qa&&!i&&zn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!vy(n)){s=Po(t,e,!1),u=!1;continue}if(s===2){if(u=e,t.errorRecoveryDisabledLanes&u)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=Qi;var S=v.current.memoizedState.isDehydrated;if(S&&(ka(v,d).flags|=256),d=Po(v,d,!1),d!==2){if(Lo&&!S){v.errorRecoveryDisabledLanes|=u,ia|=u,s=4;break t}u=de,de=s,u!==null&&(de===null?de=u:de.push.apply(de,u))}s=d}if(u=!1,s!==2)continue}}if(s===1){ka(t,0),zn(t,e,0,!0);break}t:{switch(i=t,u=s,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:zn(i,e,ze,!jn);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=Yo+300-Ge(),10<s)){if(zn(i,e,ze,!jn),Cl(i,0,!0)!==0)break t;i.timeoutHandle=p0(Gh.bind(null,i,n,de,vs,Go,e,ze,ia,Ga,jn,u,2,-0,0),s);break t}Gh(i,n,de,vs,Go,e,ze,ia,Ga,jn,u,0,-0,0)}}break}while(!0);Ke(t)}function Gh(t,e,n,i,s,u,d,v,S,j,_,L,D,N){if(t.timeoutHandle=-1,L=e.subtreeFlags,(L&8192||(L&16785408)===16785408)&&(Ii={stylesheets:null,count:0,unsuspend:Iy},Vh(e),L=e5(),L!==null)){t.cancelPendingCommit=L(Ph.bind(null,t,e,u,n,i,s,d,v,S,_,1,D,N)),zn(t,u,d,!j);return}Ph(t,e,u,n,i,s,d,v,S)}function vy(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],u=s.getSnapshot;s=s.value;try{if(!ye(u(),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 zn(t,e,n,i){e&=~qo,e&=~ia,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var s=e;0<s;){var u=31-ge(s),d=1<<u;i[u]=-1,s&=~d}n!==0&&Wc(t,n,e)}function xs(){return(wt&6)===0?(Zi(0),!1):!0}function Ko(){if(pt!==null){if(At===0)var t=pt.return;else t=pt,tn=$n=null,oo(t),Ba=null,Ui=0,t=pt;for(;t!==null;)bh(t.alternate,t),t=t.return;pt=null}}function ka(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,By(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Ko(),zt=t,pt=n=We(t.current,null),vt=e,At=0,Se=null,jn=!1,qa=ui(t,e),Lo=!1,Ga=ze=qo=ia=Dn=Ht=0,de=Qi=null,Go=!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-ge(i),u=1<<s;e|=t[s],i&=~u}return un=e,Gl(),n}function Yh(t,e){dt=null,C.H=ss,e===Di||e===Fl?(e=ld(),At=3):e===nd?(e=ld(),At=4):At=e===sh?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,pt===null&&(Ht=1,fs(t,Ee(e,t.current)))}function Xh(){var t=C.H;return C.H=ss,t===null?ss:t}function kh(){var t=C.A;return C.A=gy,t}function Zo(){Ht=4,jn||(vt&4194048)!==vt&&Ne.current!==null||(qa=!0),(Dn&134217727)===0&&(ia&134217727)===0||zt===null||zn(zt,vt,ze,!1)}function Po(t,e,n){var i=wt;wt|=2;var s=Xh(),u=kh();(zt!==t||vt!==e)&&(vs=null,ka(t,e)),e=!1;var d=Ht;t:do try{if(At!==0&&pt!==null){var v=pt,S=Se;switch(At){case 8:Ko(),d=6;break t;case 3:case 2:case 9:case 6:Ne.current===null&&(e=!0);var j=At;if(At=0,Se=null,Qa(t,v,S,j),n&&qa){d=0;break t}break;default:j=At,At=0,Se=null,Qa(t,v,S,j)}}xy(),d=Ht;break}catch(_){Yh(t,_)}while(!0);return e&&t.shellSuspendCounter++,tn=$n=null,wt=i,C.H=s,C.A=u,pt===null&&(zt=null,vt=0,Gl()),d}function xy(){for(;pt!==null;)Qh(pt)}function by(t,e){var n=wt;wt|=2;var i=Xh(),s=kh();zt!==t||vt!==e?(vs=null,ys=Ge()+500,ka(t,e)):qa=ui(t,e);t:do try{if(At!==0&&pt!==null){e=pt;var u=Se;e:switch(At){case 1:At=0,Se=null,Qa(t,e,u,1);break;case 2:case 9:if(ad(u)){At=0,Se=null,Kh(e);break}e=function(){At!==2&&At!==9||zt!==t||(At=7),Ke(t)},u.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:ad(u)?(At=0,Se=null,Kh(e)):(At=0,Se=null,Qa(t,e,u,7));break;case 5:var d=null;switch(pt.tag){case 26:d=pt.memoizedState;case 5:case 27:var v=pt;if(!d||j0(d)){At=0,Se=null;var S=v.sibling;if(S!==null)pt=S;else{var j=v.return;j!==null?(pt=j,bs(j)):pt=null}break e}}At=0,Se=null,Qa(t,e,u,5);break;case 6:At=0,Se=null,Qa(t,e,u,6);break;case 8:Ko(),Ht=6;break t;default:throw Error(o(462))}}Sy();break}catch(_){Yh(t,_)}while(!0);return tn=$n=null,C.H=i,C.A=s,wt=n,pt!==null?0:(zt=null,vt=0,Gl(),Ht)}function Sy(){for(;pt!==null&&!X1();)Qh(pt)}function Qh(t){var e=vh(t.alternate,t,un);t.memoizedProps=t.pendingProps,e===null?bs(t):pt=e}function Kh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=dh(n,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=dh(n,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:oo(e);default:bh(n,e),e=pt=Zf(e,un),e=vh(n,e,un)}t.memoizedProps=t.pendingProps,e===null?bs(t):pt=e}function Qa(t,e,n,i){tn=$n=null,oo(e),Ba=null,Ui=0;var s=e.return;try{if(cy(t,s,e,n,vt)){Ht=1,fs(t,Ee(n,t.current)),pt=null;return}}catch(u){if(s!==null)throw pt=s,u;Ht=1,fs(t,Ee(n,t.current)),pt=null;return}e.flags&32768?(Tt||i===1?t=!0:qa||(vt&536870912)!==0?t=!1:(jn=t=!0,(i===2||i===9||i===3||i===6)&&(i=Ne.current,i!==null&&i.tag===13&&(i.flags|=16384))),Zh(e,t)):bs(e)}function bs(t){var e=t;do{if((e.flags&32768)!==0){Zh(e,jn);return}t=e.return;var n=dy(e.alternate,e,un);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);Ht===0&&(Ht=5)}function Zh(t,e){do{var n=hy(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);Ht=6,pt=null}function Ph(t,e,n,i,s,u,d,v,S){t.cancelPendingCommit=null;do Ss();while(It!==0);if((wt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Ur,I1(t,n,u,d,v,S),t===zt&&(pt=zt=null,vt=0),Ya=e,Nn=t,Xa=n,Xo=u,ko=s,Hh=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,My(El,function(){return Ih(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=C.T,C.T=null,s=q.p,q.p=2,d=wt,wt|=4;try{my(t,e,n)}finally{wt=d,q.p=s,C.T=i}}It=1,Jh(),Fh(),Wh()}}function Jh(){if(It===1){It=0;var t=Nn,e=Ya,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var i=q.p;q.p=2;var s=wt;wt|=4;try{zh(e,t);var u=su,d=Uf(t.containerInfo),v=u.focusedElem,S=u.selectionRange;if(d!==v&&v&&v.ownerDocument&&Bf(v.ownerDocument.documentElement,v)){if(S!==null&&Or(v)){var j=S.start,_=S.end;if(_===void 0&&(_=j),"selectionStart"in v)v.selectionStart=j,v.selectionEnd=Math.min(_,v.value.length);else{var L=v.ownerDocument||document,D=L&&L.defaultView||window;if(D.getSelection){var N=D.getSelection(),st=v.textContent.length,at=Math.min(S.start,st),Dt=S.end===void 0?at:Math.min(S.end,st);!N.extend&&at>Dt&&(d=Dt,Dt=at,at=d);var M=_f(v,at),A=_f(v,Dt);if(M&&A&&(N.rangeCount!==1||N.anchorNode!==M.node||N.anchorOffset!==M.offset||N.focusNode!==A.node||N.focusOffset!==A.offset)){var E=L.createRange();E.setStart(M.node,M.offset),N.removeAllRanges(),at>Dt?(N.addRange(E),N.extend(A.node,A.offset)):(E.setEnd(A.node,A.offset),N.addRange(E))}}}}for(L=[],N=v;N=N.parentNode;)N.nodeType===1&&L.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<L.length;v++){var U=L[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Rs=!!lu,su=lu=null}finally{wt=s,q.p=i,C.T=n}}t.current=e,It=2}}function Fh(){if(It===2){It=0;var t=Nn,e=Ya,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=C.T,C.T=null;var i=q.p;q.p=2;var s=wt;wt|=4;try{jh(t,e.alternate,e)}finally{wt=s,q.p=i,C.T=n}}It=3}}function Wh(){if(It===4||It===3){It=0,k1();var t=Nn,e=Ya,n=Xa,i=Hh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,Ya=Nn=null,$h(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Cn=null),fr(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(oi,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=C.T,s=q.p,q.p=2,C.T=null;try{for(var u=t.onRecoverableError,d=0;d<i.length;d++){var v=i[d];u(v.value,{componentStack:v.stack})}}finally{C.T=e,q.p=s}}(Xa&3)!==0&&Ss(),Ke(t),s=t.pendingLanes,(n&4194090)!==0&&(s&42)!==0?t===Qo?Ki++:(Ki=0,Qo=t):Ki=0,Zi(0)}}function $h(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ei(e)))}function Ss(t){return Jh(),Fh(),Wh(),Ih()}function Ih(){if(It!==5)return!1;var t=Nn,e=Xo;Xo=0;var n=fr(Xa),i=C.T,s=q.p;try{q.p=32>n?32:n,C.T=null,n=ko,ko=null;var u=Nn,d=Xa;if(It=0,Ya=Nn=null,Xa=0,(wt&6)!==0)throw Error(o(331));var v=wt;if(wt|=4,Bh(u.current),Rh(u,u.current,d,n),wt=v,Zi(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(oi,u)}catch{}return!0}finally{q.p=s,C.T=i,$h(t,e)}}function t0(t,e,n){e=Ee(n,e),e=wo(t.stateNode,e,2),t=bn(t,e,2),t!==null&&(ci(t,2),Ke(t))}function Ct(t,e,n){if(t.tag===3)t0(t,t,n);else for(;e!==null;){if(e.tag===3){t0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Cn===null||!Cn.has(i))){t=Ee(n,t),n=ih(2),i=bn(e,n,2),i!==null&&(lh(n,i,e,t),ci(i,2),Ke(i));break}}e=e.return}}function Jo(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new yy;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)||(Lo=!0,s.add(n),t=Ty.bind(null,t,e,n),e.then(t,t))}function Ty(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(vt&n)===n&&(Ht===4||Ht===3&&(vt&62914560)===vt&&300>Ge()-Yo?(wt&2)===0&&ka(t,0):qo|=n,Ga===vt&&(Ga=0)),Ke(t)}function e0(t,e){e===0&&(e=Fc()),t=Ea(t,e),t!==null&&(ci(t,e),Ke(t))}function wy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),e0(t,n)}function Ay(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(o(314))}i!==null&&i.delete(e),e0(t,n)}function My(t,e){return rr(t,e)}var Ts=null,Ka=null,Fo=!1,ws=!1,Wo=!1,la=0;function Ke(t){t!==Ka&&t.next===null&&(Ka===null?Ts=Ka=t:Ka=Ka.next=t),ws=!0,Fo||(Fo=!0,jy())}function Zi(t,e){if(!Wo&&ws){Wo=!0;do for(var n=!1,i=Ts;i!==null;){if(t!==0){var s=i.pendingLanes;if(s===0)var u=0;else{var d=i.suspendedLanes,v=i.pingedLanes;u=(1<<31-ge(42|t)+1)-1,u&=s&~(d&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,l0(i,u))}else u=vt,u=Cl(i,i===zt?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||ui(i,u)||(n=!0,l0(i,u));i=i.next}while(n);Wo=!1}}function Ey(){n0()}function n0(){ws=Fo=!1;var t=0;la!==0&&(_y()&&(t=la),la=0);for(var e=Ge(),n=null,i=Ts;i!==null;){var s=i.next,u=a0(i,e);u===0?(i.next=null,n===null?Ts=s:n.next=s,s===null&&(Ka=n)):(n=i,(t!==0||(u&3)!==0)&&(ws=!0)),i=s}Zi(t)}function a0(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var d=31-ge(u),v=1<<d,S=s[d];S===-1?((v&n)===0||(v&i)!==0)&&(s[d]=$1(v,e)):S<=e&&(t.expiredLanes|=v),u&=~v}if(e=zt,n=vt,n=Cl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&or(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&&or(i),fr(n)){case 2:case 8:n=Zc;break;case 32:n=El;break;case 268435456:n=Pc;break;default:n=El}return i=i0.bind(null,t),n=rr(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&or(i),t.callbackPriority=2,t.callbackNode=null,2}function i0(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ss()&&t.callbackNode!==n)return null;var i=vt;return i=Cl(t,t===zt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(qh(t,i,e),a0(t,Ge()),t.callbackNode!=null&&t.callbackNode===n?i0.bind(null,t):null)}function l0(t,e){if(Ss())return null;qh(t,e,!0)}function jy(){Uy(function(){(wt&6)!==0?rr(Kc,Ey):n0()})}function $o(){return la===0&&(la=Jc()),la}function s0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vl(""+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 Dy(t,e,n,i,s){if(e==="submit"&&n&&n.stateNode===s){var u=s0((s[oe]||null).action),d=i.submitter;d&&(e=(e=d[oe]||null)?s0(e.formAction):d.getAttribute("formAction"),e!==null&&(u=e,d=null));var v=new Hl("action","action",null,i,s);t.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(la!==0){var S=d?r0(s,d):new FormData(s);vo(n,{pending:!0,data:S,method:s.method,action:u},null,S)}}else typeof u=="function"&&(v.preventDefault(),S=d?r0(s,d):new FormData(s),vo(n,{pending:!0,data:S,method:s.method,action:u},u,S))},currentTarget:s}]})}}for(var Io=0;Io<Br.length;Io++){var tu=Br[Io],Cy=tu.toLowerCase(),Ny=tu[0].toUpperCase()+tu.slice(1);Ue(Cy,"on"+Ny)}Ue(qf,"onAnimationEnd"),Ue(Gf,"onAnimationIteration"),Ue(Yf,"onAnimationStart"),Ue("dblclick","onDoubleClick"),Ue("focusin","onFocus"),Ue("focusout","onBlur"),Ue(Zg,"onTransitionRun"),Ue(Pg,"onTransitionStart"),Ue(Jg,"onTransitionCancel"),Ue(Xf,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),Xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pi="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(" "),zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pi));function o0(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 u=void 0;if(e)for(var d=i.length-1;0<=d;d--){var v=i[d],S=v.instance,j=v.currentTarget;if(v=v.listener,S!==u&&s.isPropagationStopped())break t;u=v,s.currentTarget=j;try{u(s)}catch(_){cs(_)}s.currentTarget=null,u=S}else for(d=0;d<i.length;d++){if(v=i[d],S=v.instance,j=v.currentTarget,v=v.listener,S!==u&&s.isPropagationStopped())break t;u=v,s.currentTarget=j;try{u(s)}catch(_){cs(_)}s.currentTarget=null,u=S}}}}function gt(t,e){var n=e[dr];n===void 0&&(n=e[dr]=new Set);var i=t+"__bubble";n.has(i)||(u0(e,t,2,!1),n.add(i))}function eu(t,e,n){var i=0;e&&(i|=4),u0(n,t,i,e)}var As="_reactListening"+Math.random().toString(36).slice(2);function nu(t){if(!t[As]){t[As]=!0,ef.forEach(function(n){n!=="selectionchange"&&(zy.has(n)||eu(n,!1,t),eu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[As]||(e[As]=!0,eu("selectionchange",!1,e))}}function u0(t,e,n,i){switch(R0(e)){case 2:var s=i5;break;case 8:s=l5;break;default:s=gu}n=s.bind(null,e,n,t),s=void 0,!wr||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 au(t,e,n,i,s){var u=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=ha(v),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){i=u=d;continue t}v=v.parentNode}}i=i.return}gf(function(){var j=u,_=Sr(n),L=[];t:{var D=kf.get(t);if(D!==void 0){var N=Hl,st=t;switch(t){case"keypress":if(Bl(n)===0)break t;case"keydown":case"keyup":N=Mg;break;case"focusin":st="focus",N=jr;break;case"focusout":st="blur",N=jr;break;case"beforeblur":case"afterblur":N=jr;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":N=xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=hg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Dg;break;case qf:case Gf:case Yf:N=gg;break;case Xf:N=Ng;break;case"scroll":case"scrollend":N=fg;break;case"wheel":N=Og;break;case"copy":case"cut":case"paste":N=vg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Sf;break;case"toggle":case"beforetoggle":N=Vg}var at=(e&4)!==0,Dt=!at&&(t==="scroll"||t==="scrollend"),M=at?D!==null?D+"Capture":null:D;at=[];for(var A=j,E;A!==null;){var U=A;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||M===null||(U=hi(A,M),U!=null&&at.push(Ji(A,U,E))),Dt)break;A=A.return}0<at.length&&(D=new N(D,st,null,n,_),L.push({event:D,listeners:at}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",D&&n!==br&&(st=n.relatedTarget||n.fromElement)&&(ha(st)||st[da]))break t;if((N||D)&&(D=_.window===_?_:(D=_.ownerDocument)?D.defaultView||D.parentWindow:window,N?(st=n.relatedTarget||n.toElement,N=j,st=st?ha(st):null,st!==null&&(Dt=h(st),at=st.tag,st!==Dt||at!==5&&at!==27&&at!==6)&&(st=null)):(N=null,st=j),N!==st)){if(at=xf,U="onMouseLeave",M="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(at=Sf,U="onPointerLeave",M="onPointerEnter",A="pointer"),Dt=N==null?D:di(N),E=st==null?D:di(st),D=new at(U,A+"leave",N,n,_),D.target=Dt,D.relatedTarget=E,U=null,ha(_)===j&&(at=new at(M,A+"enter",st,n,_),at.target=E,at.relatedTarget=Dt,U=at),Dt=U,N&&st)e:{for(at=N,M=st,A=0,E=at;E;E=Za(E))A++;for(E=0,U=M;U;U=Za(U))E++;for(;0<A-E;)at=Za(at),A--;for(;0<E-A;)M=Za(M),E--;for(;A--;){if(at===M||M!==null&&at===M.alternate)break e;at=Za(at),M=Za(M)}at=null}else at=null;N!==null&&c0(L,D,N,at,!1),st!==null&&Dt!==null&&c0(L,Dt,st,at,!0)}}t:{if(D=j?di(j):window,N=D.nodeName&&D.nodeName.toLowerCase(),N==="select"||N==="input"&&D.type==="file")var I=Cf;else if(jf(D))if(Nf)I=kg;else{I=Yg;var mt=Gg}else N=D.nodeName,!N||N.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?j&&xr(j.elementType)&&(I=Cf):I=Xg;if(I&&(I=I(t,j))){Df(L,I,n,_);break t}mt&&mt(t,D,j),t==="focusout"&&j&&D.type==="number"&&j.memoizedProps.value!=null&&vr(D,"number",D.value)}switch(mt=j?di(j):window,t){case"focusin":(jf(mt)||mt.contentEditable==="true")&&(wa=mt,Rr=j,Si=null);break;case"focusout":Si=Rr=wa=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":Vr=!1,Hf(L,n,_);break;case"selectionchange":if(Kg)break;case"keydown":case"keyup":Hf(L,n,_)}var tt;if(Cr)t:{switch(t){case"compositionstart":var it="onCompositionStart";break t;case"compositionend":it="onCompositionEnd";break t;case"compositionupdate":it="onCompositionUpdate";break t}it=void 0}else Ta?Mf(t,n)&&(it="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(it="onCompositionStart");it&&(Tf&&n.locale!=="ko"&&(Ta||it!=="onCompositionStart"?it==="onCompositionEnd"&&Ta&&(tt=yf()):(gn=_,Ar="value"in gn?gn.value:gn.textContent,Ta=!0)),mt=Ms(j,it),0<mt.length&&(it=new bf(it,t,null,n,_),L.push({event:it,listeners:mt}),tt?it.data=tt:(tt=Ef(n),tt!==null&&(it.data=tt)))),(tt=Bg?Ug(t,n):Hg(t,n))&&(it=Ms(j,"onBeforeInput"),0<it.length&&(mt=new bf("onBeforeInput","beforeinput",null,n,_),L.push({event:mt,listeners:it}),mt.data=tt)),Dy(L,t,j,n,_)}o0(L,e)})}function Ji(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ms(t,e){for(var n=e+"Capture",i=[];t!==null;){var s=t,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=hi(t,n),s!=null&&i.unshift(Ji(t,s,u)),s=hi(t,e),s!=null&&i.push(Ji(t,s,u))),t.tag===3)return i;t=t.return}return[]}function Za(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function c0(t,e,n,i,s){for(var u=e._reactName,d=[];n!==null&&n!==i;){var v=n,S=v.alternate,j=v.stateNode;if(v=v.tag,S!==null&&S===i)break;v!==5&&v!==26&&v!==27||j===null||(S=j,s?(j=hi(n,u),j!=null&&d.unshift(Ji(n,j,S))):s||(j=hi(n,u),j!=null&&d.push(Ji(n,j,S)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var Oy=/\r\n?/g,Ry=/\u0000|\uFFFD/g;function f0(t){return(typeof t=="string"?t:""+t).replace(Oy,` |
| `).replace(Ry,"")}function d0(t,e){return e=f0(e),f0(t)===e}function Es(){}function jt(t,e,n,i,s,u){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||xa(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&xa(t,""+i);break;case"className":zl(t,"class",i);break;case"tabIndex":zl(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":zl(t,n,i);break;case"style":mf(t,i,u);break;case"data":if(e!=="object"){zl(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=Vl(""+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 u=="function"&&(n==="formAction"?(e!=="input"&&jt(t,e,"name",s.name,s,null),jt(t,e,"formEncType",s.formEncType,s,null),jt(t,e,"formMethod",s.formMethod,s,null),jt(t,e,"formTarget",s.formTarget,s,null)):(jt(t,e,"encType",s.encType,s,null),jt(t,e,"method",s.method,s,null),jt(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Vl(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Es);break;case"onScroll":i!=null&>("scroll",t);break;case"onScrollEnd":i!=null&>("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(o(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=Vl(""+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":gt("beforetoggle",t),gt("toggle",t),Nl(t,"popover",i);break;case"xlinkActuate":Je(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Je(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Je(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Je(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Je(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Je(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Je(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Je(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Je(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Nl(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=ug.get(n)||n,Nl(t,n,i))}}function iu(t,e,n,i,s,u){switch(n){case"style":mf(t,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof i=="string"?xa(t,i):(typeof i=="number"||typeof i=="bigint")&&xa(t,""+i);break;case"onScroll":i!=null&>("scroll",t);break;case"onScrollEnd":i!=null&>("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Es);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),u=t[oe]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,s),typeof i=="function")){typeof u!="function"&&u!==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,""):Nl(t,n,i)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",t),gt("load",t);var i=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:jt(t,e,u,d,n,null)}}s&&jt(t,e,"srcSet",n.srcSet,n,null),i&&jt(t,e,"src",n.src,n,null);return;case"input":gt("invalid",t);var v=u=d=s=null,S=null,j=null;for(i in n)if(n.hasOwnProperty(i)){var _=n[i];if(_!=null)switch(i){case"name":s=_;break;case"type":d=_;break;case"checked":S=_;break;case"defaultChecked":j=_;break;case"value":u=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:jt(t,e,i,_,n,null)}}cf(t,u,v,S,j,d,s,!1),Ol(t);return;case"select":gt("invalid",t),i=d=u=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":u=v;break;case"defaultValue":d=v;break;case"multiple":i=v;default:jt(t,e,s,v,n,null)}e=u,n=d,t.multiple=!!i,e!=null?va(t,!!i,e,!1):n!=null&&va(t,!!i,n,!0);return;case"textarea":gt("invalid",t),u=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":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:jt(t,e,d,v,n,null)}df(t,i,s,u),Ol(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:jt(t,e,S,i,n,null)}return;case"dialog":gt("beforetoggle",t),gt("toggle",t),gt("cancel",t),gt("close",t);break;case"iframe":case"object":gt("load",t);break;case"video":case"audio":for(i=0;i<Pi.length;i++)gt(Pi[i],t);break;case"image":gt("error",t),gt("load",t);break;case"details":gt("toggle",t);break;case"embed":case"source":case"link":gt("error",t),gt("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(j in n)if(n.hasOwnProperty(j)&&(i=n[j],i!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:jt(t,e,j,i,n,null)}return;default:if(xr(e)){for(_ in n)n.hasOwnProperty(_)&&(i=n[_],i!==void 0&&iu(t,e,_,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&jt(t,e,v,i,n,null))}function Vy(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,u=null,d=null,v=null,S=null,j=null,_=null;for(N in n){var L=n[N];if(n.hasOwnProperty(N)&&L!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":S=L;default:i.hasOwnProperty(N)||jt(t,e,N,null,i,L)}}for(var D in i){var N=i[D];if(L=n[D],i.hasOwnProperty(D)&&(N!=null||L!=null))switch(D){case"type":u=N;break;case"name":s=N;break;case"checked":j=N;break;case"defaultChecked":_=N;break;case"value":d=N;break;case"defaultValue":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:N!==L&&jt(t,e,D,N,i,L)}}yr(t,d,v,S,j,_,u,s);return;case"select":N=d=v=D=null;for(u in n)if(S=n[u],n.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":N=S;default:i.hasOwnProperty(u)||jt(t,e,u,null,i,S)}for(s in i)if(u=i[s],S=n[s],i.hasOwnProperty(s)&&(u!=null||S!=null))switch(s){case"value":D=u;break;case"defaultValue":v=u;break;case"multiple":d=u;default:u!==S&&jt(t,e,s,u,i,S)}e=v,n=d,i=N,D!=null?va(t,!!n,D,!1):!!i!=!!n&&(e!=null?va(t,!!n,e,!0):va(t,!!n,n?[]:"",!1));return;case"textarea":N=D=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:jt(t,e,v,null,i,s)}for(d in i)if(s=i[d],u=n[d],i.hasOwnProperty(d)&&(s!=null||u!=null))switch(d){case"value":D=s;break;case"defaultValue":N=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==u&&jt(t,e,d,s,i,u)}ff(t,D,N);return;case"option":for(var st in n)if(D=n[st],n.hasOwnProperty(st)&&D!=null&&!i.hasOwnProperty(st))switch(st){case"selected":t.selected=!1;break;default:jt(t,e,st,null,i,D)}for(S in i)if(D=i[S],N=n[S],i.hasOwnProperty(S)&&D!==N&&(D!=null||N!=null))switch(S){case"selected":t.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:jt(t,e,S,D,i,N)}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 at in n)D=n[at],n.hasOwnProperty(at)&&D!=null&&!i.hasOwnProperty(at)&&jt(t,e,at,null,i,D);for(j in i)if(D=i[j],N=n[j],i.hasOwnProperty(j)&&D!==N&&(D!=null||N!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:jt(t,e,j,D,i,N)}return;default:if(xr(e)){for(var Dt in n)D=n[Dt],n.hasOwnProperty(Dt)&&D!==void 0&&!i.hasOwnProperty(Dt)&&iu(t,e,Dt,void 0,i,D);for(_ in i)D=i[_],N=n[_],!i.hasOwnProperty(_)||D===N||D===void 0&&N===void 0||iu(t,e,_,D,i,N);return}}for(var M in n)D=n[M],n.hasOwnProperty(M)&&D!=null&&!i.hasOwnProperty(M)&&jt(t,e,M,null,i,D);for(L in i)D=i[L],N=n[L],!i.hasOwnProperty(L)||D===N||D==null&&N==null||jt(t,e,L,D,i,N)}var lu=null,su=null;function js(t){return t.nodeType===9?t:t.ownerDocument}function h0(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 m0(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 ru(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 ou=null;function _y(){var t=window.event;return t&&t.type==="popstate"?t===ou?!1:(ou=t,!0):(ou=null,!1)}var p0=typeof setTimeout=="function"?setTimeout:void 0,By=typeof clearTimeout=="function"?clearTimeout:void 0,g0=typeof Promise=="function"?Promise:void 0,Uy=typeof queueMicrotask=="function"?queueMicrotask:typeof g0<"u"?function(t){return g0.resolve(null).then(t).catch(Hy)}:p0;function Hy(t){setTimeout(function(){throw t})}function On(t){return t==="head"}function y0(t,e){var n=e,i=0,s=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(0<i&&8>i){n=i;var d=t.ownerDocument;if(n&1&&Fi(d.documentElement),n&2&&Fi(d.body),n&4)for(n=d.head,Fi(n),d=n.firstChild;d;){var v=d.nextSibling,S=d.nodeName;d[fi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||n.removeChild(d),d=v}}if(s===0){t.removeChild(u),il(e);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:i=n.charCodeAt(0)-48;else i=0;n=u}while(n);il(e)}function uu(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":uu(n),hr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Ly(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[fi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==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(u=t.getAttribute("src"),(u!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function qy(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function cu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function Gy(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 Le(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 fu=null;function v0(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 x0(t,e,n){switch(e=js(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Fi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);hr(t)}var Oe=new Map,b0=new Set;function Ds(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var cn=q.d;q.d={f:Yy,r:Xy,D:ky,C:Qy,L:Ky,m:Zy,X:Jy,S:Py,M:Fy};function Yy(){var t=cn.f(),e=xs();return t||e}function Xy(t){var e=ma(t);e!==null&&e.tag===5&&e.type==="form"?qd(e):cn.r(t)}var Pa=typeof document>"u"?null:document;function S0(t,e,n){var i=Pa;if(i&&typeof e=="string"&&e){var s=Me(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),b0.has(s)||(b0.add(s),t={rel:t,crossOrigin:n,href:e},i.querySelector(s)===null&&(e=i.createElement("link"),te(e,"link",t),Pt(e),i.head.appendChild(e)))}}function ky(t){cn.D(t),S0("dns-prefetch",t,null)}function Qy(t,e){cn.C(t,e),S0("preconnect",t,e)}function Ky(t,e,n){cn.L(t,e,n);var i=Pa;if(i&&t&&e){var s='link[rel="preload"][as="'+Me(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Me(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Me(n.imageSizes)+'"]')):s+='[href="'+Me(t)+'"]';var u=s;switch(e){case"style":u=Ja(t);break;case"script":u=Fa(t)}Oe.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Oe.set(u,t),i.querySelector(s)!==null||e==="style"&&i.querySelector(Wi(u))||e==="script"&&i.querySelector($i(u))||(e=i.createElement("link"),te(e,"link",t),Pt(e),i.head.appendChild(e)))}}function Zy(t,e){cn.m(t,e);var n=Pa;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Me(i)+'"][href="'+Me(t)+'"]',u=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Fa(t)}if(!Oe.has(u)&&(t=x({rel:"modulepreload",href:t},e),Oe.set(u,t),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($i(u)))return}i=n.createElement("link"),te(i,"link",t),Pt(i),n.head.appendChild(i)}}}function Py(t,e,n){cn.S(t,e,n);var i=Pa;if(i&&t){var s=pa(i).hoistableStyles,u=Ja(t);e=e||"default";var d=s.get(u);if(!d){var v={loading:0,preload:null};if(d=i.querySelector(Wi(u)))v.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Oe.get(u))&&du(t,n);var S=d=i.createElement("link");Pt(S),te(S,"link",t),S._p=new Promise(function(j,_){S.onload=j,S.onerror=_}),S.addEventListener("load",function(){v.loading|=1}),S.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Cs(d,e,i)}d={type:"stylesheet",instance:d,count:1,state:v},s.set(u,d)}}}function Jy(t,e){cn.X(t,e);var n=Pa;if(n&&t){var i=pa(n).hoistableScripts,s=Fa(t),u=i.get(s);u||(u=n.querySelector($i(s)),u||(t=x({src:t,async:!0},e),(e=Oe.get(s))&&hu(t,e),u=n.createElement("script"),Pt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function Fy(t,e){cn.M(t,e);var n=Pa;if(n&&t){var i=pa(n).hoistableScripts,s=Fa(t),u=i.get(s);u||(u=n.querySelector($i(s)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Oe.get(s))&&hu(t,e),u=n.createElement("script"),Pt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function T0(t,e,n,i){var s=(s=ut.current)?Ds(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ja(n.href),n=pa(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=Ja(n.href);var u=pa(s).hoistableStyles,d=u.get(t);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,d),(u=s.querySelector(Wi(t)))&&!u._p&&(d.instance=u,d.state.loading=5),Oe.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},Oe.set(t,n),u||Wy(s,t,n,d.state))),e&&i===null)throw Error(o(528,""));return d}if(e&&i!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Fa(n),n=pa(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(o(444,t))}}function Ja(t){return'href="'+Me(t)+'"'}function Wi(t){return'link[rel="stylesheet"]['+t+"]"}function w0(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function Wy(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}),te(e,"link",n),Pt(e),t.head.appendChild(e))}function Fa(t){return'[src="'+Me(t)+'"]'}function $i(t){return"script[async]"+t}function A0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Me(n.href)+'"]');if(i)return e.instance=i,Pt(i),i;var s=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Pt(i),te(i,"style",s),Cs(i,n.precedence,t),e.instance=i;case"stylesheet":s=Ja(n.href);var u=t.querySelector(Wi(s));if(u)return e.state.loading|=4,e.instance=u,Pt(u),u;i=w0(n),(s=Oe.get(s))&&du(i,s),u=(t.ownerDocument||t).createElement("link"),Pt(u);var d=u;return d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),te(u,"link",i),e.state.loading|=4,Cs(u,n.precedence,t),e.instance=u;case"script":return u=Fa(n.src),(s=t.querySelector($i(u)))?(e.instance=s,Pt(s),s):(i=n,(s=Oe.get(u))&&(i=x({},n),hu(i,s)),t=t.ownerDocument||t,s=t.createElement("script"),Pt(s),te(s,"link",i),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,Cs(i,n.precedence,t));return e.instance}function Cs(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,u=s,d=0;d<i.length;d++){var v=i[d];if(v.dataset.precedence===e)u=v;else if(u!==s)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function du(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function hu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ns=null;function M0(t,e,n){if(Ns===null){var i=new Map,s=Ns=new Map;s.set(n,i)}else s=Ns,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 u=n[s];if(!(u[fi]||u[ne]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(e)||"";d=t+d;var v=i.get(d);v?v.push(u):i.set(d,[u])}}return i}function E0(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function $y(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 j0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ii=null;function Iy(){}function t5(t,e,n){if(Ii===null)throw Error(o(475));var i=Ii;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var s=Ja(n.href),u=t.querySelector(Wi(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(i.count++,i=zs.bind(i),t.then(i,i)),e.state.loading|=4,e.instance=u,Pt(u);return}u=t.ownerDocument||t,n=w0(n),(s=Oe.get(s))&&du(n,s),u=u.createElement("link"),Pt(u);var d=u;d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),te(u,"link",n),e.instance=u}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(i.count++,e=zs.bind(i),t.addEventListener("load",e),t.addEventListener("error",e))}}function e5(){if(Ii===null)throw Error(o(475));var t=Ii;return t.stylesheets&&t.count===0&&mu(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&mu(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 zs(){if(this.count--,this.count===0){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Os=null;function mu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Os=new Map,e.forEach(n5,t),Os=null,zs.call(t))}function n5(t,e){if(!(e.state.loading&4)){var n=Os.get(t);if(n)var i=n.get(null);else{n=new Map,Os.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var d=s[u];(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"),u=n.get(d)||i,u===i&&n.set(null,s),n.set(d,s),this.count++,i=zs.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),u?u.parentNode.insertBefore(s,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var tl={$$typeof:R,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function a5(t,e,n,i,s,u,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=ur(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ur(0),this.hiddenUpdates=ur(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function D0(t,e,n,i,s,u,d,v,S,j,_,L){return t=new a5(t,e,n,d,v,S,j,L),e=1,u===!0&&(e|=24),u=ve(3,null,null,e),t.current=u,u.stateNode=t,e=Pr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:e},$r(u),t}function C0(t){return t?(t=ja,t):ja}function N0(t,e,n,i,s,u){s=C0(s),i.context===null?i.context=s:i.pendingContext=s,i=xn(e),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=bn(t,i,e),n!==null&&(we(n,t,e),Ni(n,t,e))}function z0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function pu(t,e){z0(t,e),(t=t.alternate)&&z0(t,e)}function O0(t){if(t.tag===13){var e=Ea(t,67108864);e!==null&&we(e,t,67108864),pu(t,67108864)}}var Rs=!0;function i5(t,e,n,i){var s=C.T;C.T=null;var u=q.p;try{q.p=2,gu(t,e,n,i)}finally{q.p=u,C.T=s}}function l5(t,e,n,i){var s=C.T;C.T=null;var u=q.p;try{q.p=8,gu(t,e,n,i)}finally{q.p=u,C.T=s}}function gu(t,e,n,i){if(Rs){var s=yu(i);if(s===null)au(t,e,i,Vs,n),V0(t,i);else if(r5(s,t,e,n,i))i.stopPropagation();else if(V0(t,i),e&4&&-1<s5.indexOf(t)){for(;s!==null;){var u=ma(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=Yn(u.pendingLanes);if(d!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var S=1<<31-ge(d);v.entanglements[1]|=S,d&=~S}Ke(u),(wt&6)===0&&(ys=Ge()+500,Zi(0))}}break;case 13:v=Ea(u,2),v!==null&&we(v,u,2),xs(),pu(u,2)}if(u=yu(i),u===null&&au(t,e,i,Vs,n),u===s)break;s=u}s!==null&&i.stopPropagation()}else au(t,e,i,null,n)}}function yu(t){return t=Sr(t),vu(t)}var Vs=null;function vu(t){if(Vs=null,t=ha(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 Vs=t,null}function R0(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(Q1()){case Kc:return 2;case Zc:return 8;case El:case K1:return 32;case Pc:return 268435456;default:return 32}default:return 32}}var xu=!1,Rn=null,Vn=null,_n=null,el=new Map,nl=new Map,Bn=[],s5="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 V0(t,e){switch(t){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":_n=null;break;case"pointerover":case"pointerout":el.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nl.delete(e.pointerId)}}function al(t,e,n,i,s,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[s]},e!==null&&(e=ma(e),e!==null&&O0(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function r5(t,e,n,i,s){switch(e){case"focusin":return Rn=al(Rn,t,e,n,i,s),!0;case"dragenter":return Vn=al(Vn,t,e,n,i,s),!0;case"mouseover":return _n=al(_n,t,e,n,i,s),!0;case"pointerover":var u=s.pointerId;return el.set(u,al(el.get(u)||null,t,e,n,i,s)),!0;case"gotpointercapture":return u=s.pointerId,nl.set(u,al(nl.get(u)||null,t,e,n,i,s)),!0}return!1}function _0(t){var e=ha(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,tg(t.priority,function(){if(n.tag===13){var i=Te();i=cr(i);var s=Ea(n,i);s!==null&&we(s,n,i),pu(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 _s(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=yu(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);br=i,n.target.dispatchEvent(i),br=null}else return e=ma(n),e!==null&&O0(e),t.blockedOn=n,!1;e.shift()}return!0}function B0(t,e,n){_s(t)&&n.delete(e)}function o5(){xu=!1,Rn!==null&&_s(Rn)&&(Rn=null),Vn!==null&&_s(Vn)&&(Vn=null),_n!==null&&_s(_n)&&(_n=null),el.forEach(B0),nl.forEach(B0)}function Bs(t,e){t.blockedOn===e&&(t.blockedOn=null,xu||(xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,o5)))}var Us=null;function U0(t){Us!==t&&(Us=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Us===t&&(Us=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(vu(i||n)===null)continue;break}var u=ma(n);u!==null&&(t.splice(e,3),e-=3,vo(u,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function il(t){function e(S){return Bs(S,t)}Rn!==null&&Bs(Rn,t),Vn!==null&&Bs(Vn,t),_n!==null&&Bs(_n,t),el.forEach(e),nl.forEach(e);for(var n=0;n<Bn.length;n++){var i=Bn[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Bn.length&&(n=Bn[0],n.blockedOn===null);)_0(n),n.blockedOn===null&&Bn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],u=n[i+1],d=s[oe]||null;if(typeof u=="function")d||U0(n);else if(d){var v=null;if(u&&u.hasAttribute("formAction")){if(s=u,d=u[oe]||null)v=d.formAction;else if(vu(s)!==null)continue}else v=d.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),U0(n)}}}function bu(t){this._internalRoot=t}Hs.prototype.render=bu.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,i=Te();N0(n,i,t,e,null,null)},Hs.prototype.unmount=bu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;N0(t.current,2,null,t,null,null),xs(),e[da]=null}};function Hs(t){this._internalRoot=t}Hs.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ic();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Bn.length&&e!==0&&e<Bn[n].priority;n++);Bn.splice(n,0,t),n===0&&_0(t)}};var H0=l.version;if(H0!=="19.1.1")throw Error(o(527,H0,"19.1.1"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=y(e),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var u5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ls.isDisabled&&Ls.supportsFiber)try{oi=Ls.inject(u5),pe=Ls}catch{}}return sl.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,i="",s=th,u=eh,d=nh,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&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(v=e.unstable_transitionCallbacks)),e=D0(t,1,!1,null,null,n,i,s,u,d,v,null),t[da]=e.current,nu(t),new bu(e)},sl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var i=!1,s="",u=th,d=eh,v=nh,S=null,j=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=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&&(j=n.formState)),e=D0(t,1,!0,e,n??null,i,s,u,d,v,S,j),e.context=C0(null),n=e.current,i=Te(),i=cr(i),s=xn(i),s.callback=null,bn(n,s,i),n=i,e.current.lanes=n,ci(e,n),Ke(e),t[da]=e.current,nu(t),new Hs(e)},sl.version="19.1.1",sl}var P0;function x5(){if(P0)return wu.exports;P0=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(),wu.exports=v5(),wu.exports}var b5=x5();const S5=up(b5),dc=O.createContext({});function hc(a){const l=O.useRef(null);return l.current===null&&(l.current=a()),l.current}const mc=typeof window<"u",fp=mc?O.useLayoutEffect:O.useEffect,er=O.createContext(null);function pc(a,l){a.indexOf(l)===-1&&a.push(l)}function gc(a,l){const r=a.indexOf(l);r>-1&&a.splice(r,1)}const fn=(a,l,r)=>r>l?l:r<a?a:r;let yc=()=>{};const dn={},dp=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function hp(a){return typeof a=="object"&&a!==null}const mp=a=>/^0[^.\s]+$/u.test(a);function vc(a){let l;return()=>(l===void 0&&(l=a()),l)}const Be=a=>a,T5=(a,l)=>r=>l(a(r)),Sl=(...a)=>a.reduce(T5),pl=(a,l,r)=>{const o=l-a;return o===0?1:(r-a)/o};class xc{constructor(){this.subscriptions=[]}add(l){return pc(this.subscriptions,l),()=>gc(this.subscriptions,l)}notify(l,r,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,r,o);else for(let h=0;h<c;h++){const f=this.subscriptions[h];f&&f(l,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ze=a=>a*1e3,_e=a=>a/1e3;function pp(a,l){return l?a*(1e3/l):0}const gp=(a,l,r)=>(((1-3*r+3*l)*a+(3*r-6*l))*a+3*l)*a,w5=1e-7,A5=12;function M5(a,l,r,o,c){let h,f,m=0;do f=l+(r-l)/2,h=gp(f,o,c)-a,h>0?r=f:l=f;while(Math.abs(h)>w5&&++m<A5);return f}function Tl(a,l,r,o){if(a===l&&r===o)return Be;const c=h=>M5(h,0,1,a,r);return h=>h===0||h===1?h:gp(c(h),l,o)}const yp=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,vp=a=>l=>1-a(1-l),xp=Tl(.33,1.53,.69,.99),bc=vp(xp),bp=yp(bc),Sp=a=>(a*=2)<1?.5*bc(a):.5*(2-Math.pow(2,-10*(a-1))),Sc=a=>1-Math.sin(Math.acos(a)),Tp=vp(Sc),wp=yp(Sc),E5=Tl(.42,0,1,1),j5=Tl(0,0,.58,1),Ap=Tl(.42,0,.58,1),D5=a=>Array.isArray(a)&&typeof a[0]!="number",Mp=a=>Array.isArray(a)&&typeof a[0]=="number",C5={linear:Be,easeIn:E5,easeInOut:Ap,easeOut:j5,circIn:Sc,circInOut:wp,circOut:Tp,backIn:bc,backInOut:bp,backOut:xp,anticipate:Sp},N5=a=>typeof a=="string",J0=a=>{if(Mp(a)){yc(a.length===4);const[l,r,o,c]=a;return Tl(l,r,o,c)}else if(N5(a))return C5[a];return a},qs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function z5(a,l){let r=new Set,o=new Set,c=!1,h=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(x){f.has(x)&&(g.schedule(x),a()),x(m)}const g={schedule:(x,b=!1,w=!1)=>{const V=w&&c?r:o;return b&&f.add(x),V.has(x)||V.add(x),x},cancel:x=>{o.delete(x),f.delete(x)},process:x=>{if(m=x,c){h=!0;return}c=!0,[r,o]=[o,r],r.forEach(y),r.clear(),c=!1,h&&(h=!1,g.process(x))}};return g}const O5=40;function Ep(a,l){let r=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>r=!0,f=qs.reduce((R,k)=>(R[k]=z5(h),R),{}),{setup:m,read:y,resolveKeyframes:g,preUpdate:x,update:b,preRender:w,render:z,postRender:V}=f,X=()=>{const R=dn.useManualTiming?c.timestamp:performance.now();r=!1,dn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(R-c.timestamp,O5),1)),c.timestamp=R,c.isProcessing=!0,m.process(c),y.process(c),g.process(c),x.process(c),b.process(c),w.process(c),z.process(c),V.process(c),c.isProcessing=!1,r&&l&&(o=!1,a(X))},K=()=>{r=!0,o=!0,c.isProcessing||a(X)};return{schedule:qs.reduce((R,k)=>{const H=f[k];return R[k]=(Z,F=!1,J=!1)=>(r||K(),H.schedule(Z,F,J)),R},{}),cancel:R=>{for(let k=0;k<qs.length;k++)f[qs[k]].cancel(R)},state:c,steps:f}}const{schedule:Vt,cancel:Ln,state:ee,steps:ju}=Ep(typeof requestAnimationFrame<"u"?requestAnimationFrame:Be,!0);let ks;function R5(){ks=void 0}const he={now:()=>(ks===void 0&&he.set(ee.isProcessing||dn.useManualTiming?ee.timestamp:performance.now()),ks),set:a=>{ks=a,queueMicrotask(R5)}},jp=a=>l=>typeof l=="string"&&l.startsWith(a),Tc=jp("--"),V5=jp("var(--"),wc=a=>V5(a)?_5.test(a.split("/*")[0].trim()):!1,_5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,li={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},gl={...li,transform:a=>fn(0,1,a)},Gs={...li,default:1},cl=a=>Math.round(a*1e5)/1e5,Ac=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function B5(a){return a==null}const U5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mc=(a,l)=>r=>!!(typeof r=="string"&&U5.test(r)&&r.startsWith(a)||l&&!B5(r)&&Object.prototype.hasOwnProperty.call(r,l)),Dp=(a,l,r)=>o=>{if(typeof o!="string")return o;const[c,h,f,m]=o.match(Ac);return{[a]:parseFloat(c),[l]:parseFloat(h),[r]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},H5=a=>fn(0,255,a),Du={...li,transform:a=>Math.round(H5(a))},oa={test:Mc("rgb","red"),parse:Dp("red","green","blue"),transform:({red:a,green:l,blue:r,alpha:o=1})=>"rgba("+Du.transform(a)+", "+Du.transform(l)+", "+Du.transform(r)+", "+cl(gl.transform(o))+")"};function L5(a){let l="",r="",o="",c="";return a.length>5?(l=a.substring(1,3),r=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(l=a.substring(1,2),r=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),l+=l,r+=r,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const ku={test:Mc("#"),parse:L5,transform:oa.transform},wl=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),Hn=wl("deg"),Pe=wl("%"),rt=wl("px"),q5=wl("vh"),G5=wl("vw"),F0={...Pe,parse:a=>Pe.parse(a)/100,transform:a=>Pe.transform(a*100)},Wa={test:Mc("hsl","hue"),parse:Dp("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:r,alpha:o=1})=>"hsla("+Math.round(a)+", "+Pe.transform(cl(l))+", "+Pe.transform(cl(r))+", "+cl(gl.transform(o))+")"},Qt={test:a=>oa.test(a)||ku.test(a)||Wa.test(a),parse:a=>oa.test(a)?oa.parse(a):Wa.test(a)?Wa.parse(a):ku.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?oa.transform(a):Wa.transform(a),getAnimatableNone:a=>{const l=Qt.parse(a);return l.alpha=0,Qt.transform(l)}},Y5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function X5(a){return isNaN(a)&&typeof a=="string"&&(a.match(Ac)?.length||0)+(a.match(Y5)?.length||0)>0}const Cp="number",Np="color",k5="var",Q5="var(",W0="${}",K5=/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 yl(a){const l=a.toString(),r=[],o={color:[],number:[],var:[]},c=[];let h=0;const m=l.replace(K5,y=>(Qt.test(y)?(o.color.push(h),c.push(Np),r.push(Qt.parse(y))):y.startsWith(Q5)?(o.var.push(h),c.push(k5),r.push(y)):(o.number.push(h),c.push(Cp),r.push(parseFloat(y))),++h,W0)).split(W0);return{values:r,split:m,indexes:o,types:c}}function zp(a){return yl(a).values}function Op(a){const{split:l,types:r}=yl(a),o=l.length;return c=>{let h="";for(let f=0;f<o;f++)if(h+=l[f],c[f]!==void 0){const m=r[f];m===Cp?h+=cl(c[f]):m===Np?h+=Qt.transform(c[f]):h+=c[f]}return h}}const Z5=a=>typeof a=="number"?0:Qt.test(a)?Qt.getAnimatableNone(a):a;function P5(a){const l=zp(a);return Op(a)(l.map(Z5))}const qn={test:X5,parse:zp,createTransformer:Op,getAnimatableNone:P5};function Cu(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 J5({hue:a,saturation:l,lightness:r,alpha:o}){a/=360,l/=100,r/=100;let c=0,h=0,f=0;if(!l)c=h=f=r;else{const m=r<.5?r*(1+l):r+l-r*l,y=2*r-m;c=Cu(y,m,a+1/3),h=Cu(y,m,a),f=Cu(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:o}}function Js(a,l){return r=>r>0?l:a}const Bt=(a,l,r)=>a+(l-a)*r,Nu=(a,l,r)=>{const o=a*a,c=r*(l*l-o)+o;return c<0?0:Math.sqrt(c)},F5=[ku,oa,Wa],W5=a=>F5.find(l=>l.test(a));function $0(a){const l=W5(a);if(!l)return!1;let r=l.parse(a);return l===Wa&&(r=J5(r)),r}const I0=(a,l)=>{const r=$0(a),o=$0(l);if(!r||!o)return Js(a,l);const c={...r};return h=>(c.red=Nu(r.red,o.red,h),c.green=Nu(r.green,o.green,h),c.blue=Nu(r.blue,o.blue,h),c.alpha=Bt(r.alpha,o.alpha,h),oa.transform(c))},Qu=new Set(["none","hidden"]);function $5(a,l){return Qu.has(a)?r=>r<=0?a:l:r=>r>=1?l:a}function I5(a,l){return r=>Bt(a,l,r)}function Ec(a){return typeof a=="number"?I5:typeof a=="string"?wc(a)?Js:Qt.test(a)?I0:nv:Array.isArray(a)?Rp:typeof a=="object"?Qt.test(a)?I0:tv:Js}function Rp(a,l){const r=[...a],o=r.length,c=a.map((h,f)=>Ec(h)(h,l[f]));return h=>{for(let f=0;f<o;f++)r[f]=c[f](h);return r}}function tv(a,l){const r={...a,...l},o={};for(const c in r)a[c]!==void 0&&l[c]!==void 0&&(o[c]=Ec(a[c])(a[c],l[c]));return c=>{for(const h in o)r[h]=o[h](c);return r}}function ev(a,l){const r=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const h=l.types[c],f=a.indexes[h][o[h]],m=a.values[f]??0;r[c]=m,o[h]++}return r}const nv=(a,l)=>{const r=qn.createTransformer(l),o=yl(a),c=yl(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Qu.has(a)&&!c.values.length||Qu.has(l)&&!o.values.length?$5(a,l):Sl(Rp(ev(o,c),c.values),r):Js(a,l)};function Vp(a,l,r){return typeof a=="number"&&typeof l=="number"&&typeof r=="number"?Bt(a,l,r):Ec(a)(a,l)}const av=a=>{const l=({timestamp:r})=>a(r);return{start:(r=!0)=>Vt.update(l,r),stop:()=>Ln(l),now:()=>ee.isProcessing?ee.timestamp:he.now()}},_p=(a,l,r=10)=>{let o="";const c=Math.max(Math.round(l/r),2);for(let h=0;h<c;h++)o+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Fs=2e4;function jc(a){let l=0;const r=50;let o=a.next(l);for(;!o.done&&l<Fs;)l+=r,o=a.next(l);return l>=Fs?1/0:l}function iv(a,l=100,r){const o=r({...a,keyframes:[0,l]}),c=Math.min(jc(o),Fs);return{type:"keyframes",ease:h=>o.next(c*h).value/l,duration:_e(c)}}const lv=5;function Bp(a,l,r){const o=Math.max(l-lv,0);return pp(r-a(o),l-o)}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},zu=.001;function sv({duration:a=Lt.duration,bounce:l=Lt.bounce,velocity:r=Lt.velocity,mass:o=Lt.mass}){let c,h,f=1-l;f=fn(Lt.minDamping,Lt.maxDamping,f),a=fn(Lt.minDuration,Lt.maxDuration,_e(a)),f<1?(c=g=>{const x=g*f,b=x*a,w=x-r,z=Ku(g,f),V=Math.exp(-b);return zu-w/z*V},h=g=>{const b=g*f*a,w=b*r+r,z=Math.pow(f,2)*Math.pow(g,2)*a,V=Math.exp(-b),X=Ku(Math.pow(g,2),f);return(-c(g)+zu>0?-1:1)*((w-z)*V)/X}):(c=g=>{const x=Math.exp(-g*a),b=(g-r)*a+1;return-zu+x*b},h=g=>{const x=Math.exp(-g*a),b=(r-g)*(a*a);return x*b});const m=5/a,y=ov(c,h,m);if(a=Ze(a),isNaN(y))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:a};{const g=Math.pow(y,2)*o;return{stiffness:g,damping:f*2*Math.sqrt(o*g),duration:a}}}const rv=12;function ov(a,l,r){let o=r;for(let c=1;c<rv;c++)o=o-a(o)/l(o);return o}function Ku(a,l){return a*Math.sqrt(1-l*l)}const uv=["duration","bounce"],cv=["stiffness","damping","mass"];function tm(a,l){return l.some(r=>a[r]!==void 0)}function fv(a){let l={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...a};if(!tm(a,cv)&&tm(a,uv))if(a.visualDuration){const r=a.visualDuration,o=2*Math.PI/(r*1.2),c=o*o,h=2*fn(.05,1,1-(a.bounce||0))*Math.sqrt(c);l={...l,mass:Lt.mass,stiffness:c,damping:h}}else{const r=sv(a);l={...l,...r,mass:Lt.mass},l.isResolvedFromDuration=!0}return l}function Ws(a=Lt.visualDuration,l=Lt.bounce){const r=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:o,restDelta:c}=r;const h=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],m={done:!1,value:h},{stiffness:y,damping:g,mass:x,duration:b,velocity:w,isResolvedFromDuration:z}=fv({...r,velocity:-_e(r.velocity||0)}),V=w||0,X=g/(2*Math.sqrt(y*x)),K=f-h,B=_e(Math.sqrt(y/x)),Y=Math.abs(K)<5;o||(o=Y?Lt.restSpeed.granular:Lt.restSpeed.default),c||(c=Y?Lt.restDelta.granular:Lt.restDelta.default);let R;if(X<1){const H=Ku(B,X);R=Z=>{const F=Math.exp(-X*B*Z);return f-F*((V+X*B*K)/H*Math.sin(H*Z)+K*Math.cos(H*Z))}}else if(X===1)R=H=>f-Math.exp(-B*H)*(K+(V+B*K)*H);else{const H=B*Math.sqrt(X*X-1);R=Z=>{const F=Math.exp(-X*B*Z),J=Math.min(H*Z,300);return f-F*((V+X*B*K)*Math.sinh(J)+H*K*Math.cosh(J))/H}}const k={calculatedDuration:z&&b||null,next:H=>{const Z=R(H);if(z)m.done=H>=b;else{let F=H===0?V:0;X<1&&(F=H===0?Ze(V):Bp(R,H,Z));const J=Math.abs(F)<=o,ct=Math.abs(f-Z)<=c;m.done=J&&ct}return m.value=m.done?f:Z,m},toString:()=>{const H=Math.min(jc(k),Fs),Z=_p(F=>k.next(H*F).value,H,30);return H+"ms "+Z},toTransition:()=>{}};return k}Ws.applyToOptions=a=>{const l=iv(a,100,Ws);return a.ease=l.ease,a.duration=Ze(l.duration),a.type="keyframes",a};function Zu({keyframes:a,velocity:l=0,power:r=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:f,min:m,max:y,restDelta:g=.5,restSpeed:x}){const b=a[0],w={done:!1,value:b},z=J=>m!==void 0&&J<m||y!==void 0&&J>y,V=J=>m===void 0?y:y===void 0||Math.abs(m-J)<Math.abs(y-J)?m:y;let X=r*l;const K=b+X,B=f===void 0?K:f(K);B!==K&&(X=B-b);const Y=J=>-X*Math.exp(-J/o),R=J=>B+Y(J),k=J=>{const ct=Y(J),$=R(J);w.done=Math.abs(ct)<=g,w.value=w.done?B:$};let H,Z;const F=J=>{z(w.value)&&(H=J,Z=Ws({keyframes:[w.value,V(w.value)],velocity:Bp(R,J,w.value),damping:c,stiffness:h,restDelta:g,restSpeed:x}))};return F(0),{calculatedDuration:null,next:J=>{let ct=!1;return!Z&&H===void 0&&(ct=!0,k(J),F(J)),H!==void 0&&J>=H?Z.next(J-H):(!ct&&k(J),w)}}}function dv(a,l,r){const o=[],c=r||dn.mix||Vp,h=a.length-1;for(let f=0;f<h;f++){let m=c(a[f],a[f+1]);if(l){const y=Array.isArray(l)?l[f]||Be:l;m=Sl(y,m)}o.push(m)}return o}function hv(a,l,{clamp:r=!0,ease:o,mixer:c}={}){const h=a.length;if(yc(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 m=dv(l,o,c),y=m.length,g=x=>{if(f&&x<a[0])return l[0];let b=0;if(y>1)for(;b<a.length-2&&!(x<a[b+1]);b++);const w=pl(a[b],a[b+1],x);return m[b](w)};return r?x=>g(fn(a[0],a[h-1],x)):g}function mv(a,l){const r=a[a.length-1];for(let o=1;o<=l;o++){const c=pl(0,l,o);a.push(Bt(r,1,c))}}function pv(a){const l=[0];return mv(l,a.length-1),l}function gv(a,l){return a.map(r=>r*l)}function yv(a,l){return a.map(()=>l||Ap).splice(0,a.length-1)}function fl({duration:a=300,keyframes:l,times:r,ease:o="easeInOut"}){const c=D5(o)?o.map(J0):J0(o),h={done:!1,value:l[0]},f=gv(r&&r.length===l.length?r:pv(l),a),m=hv(f,l,{ease:Array.isArray(c)?c:yv(l,c)});return{calculatedDuration:a,next:y=>(h.value=m(y),h.done=y>=a,h)}}const vv=a=>a!==null;function Dc(a,{repeat:l,repeatType:r="loop"},o,c=1){const h=a.filter(vv),m=c<0||l&&r!=="loop"&&l%2===1?0:h.length-1;return!m||o===void 0?h[m]:o}const xv={decay:Zu,inertia:Zu,tween:fl,keyframes:fl,spring:Ws};function Up(a){typeof a.type=="string"&&(a.type=xv[a.type])}class Cc{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 bv=a=>a/100;class Nc extends Cc{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!==he.now()&&this.tick(he.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;Up(l);const{type:r=fl,repeat:o=0,repeatDelay:c=0,repeatType:h,velocity:f=0}=l;let{keyframes:m}=l;const y=r||fl;y!==fl&&typeof m[0]!="number"&&(this.mixKeyframes=Sl(bv,Vp(m[0],m[1])),m=[0,100]);const g=y({...l,keyframes:m});h==="mirror"&&(this.mirroredGenerator=y({...l,keyframes:[...m].reverse(),velocity:-f})),g.calculatedDuration===null&&(g.calculatedDuration=jc(g));const{calculatedDuration:x}=g;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=g}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:o,totalDuration:c,mixKeyframes:h,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:x,repeat:b,repeatType:w,repeatDelay:z,type:V,onUpdate:X,finalKeyframe:K}=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 B=this.currentTime-g*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let R=this.currentTime,k=o;if(b){const J=Math.min(this.currentTime,c)/m;let ct=Math.floor(J),$=J%1;!$&&J>=1&&($=1),$===1&&ct--,ct=Math.min(ct,b+1),!!(ct%2)&&(w==="reverse"?($=1-$,z&&($-=z/m)):w==="mirror"&&(k=f)),R=fn(0,1,$)*m}const H=Y?{done:!1,value:x[0]}:k.next(R);h&&(H.value=h(H.value));let{done:Z}=H;!Y&&y!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return F&&V!==Zu&&(H.value=Dc(x,this.options,K,this.speed)),X&&X(H.value),F&&this.finish(),H}then(l,r){return this.finished.then(l,r)}get duration(){return _e(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+_e(l)}get time(){return _e(this.currentTime)}set time(l){l=Ze(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(he.now());const r=this.playbackSpeed!==l;this.playbackSpeed=l,r&&(this.time=_e(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=av,startTime:r}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),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(he.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 Sv(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const ua=a=>a*180/Math.PI,Pu=a=>{const l=ua(Math.atan2(a[1],a[0]));return Ju(l)},Tv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Pu,rotateZ:Pu,skewX:a=>ua(Math.atan(a[1])),skewY:a=>ua(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Ju=a=>(a=a%360,a<0&&(a+=360),a),em=Pu,nm=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),am=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),wv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:nm,scaleY:am,scale:a=>(nm(a)+am(a))/2,rotateX:a=>Ju(ua(Math.atan2(a[6],a[5]))),rotateY:a=>Ju(ua(Math.atan2(-a[2],a[0]))),rotateZ:em,rotate:em,skewX:a=>ua(Math.atan(a[4])),skewY:a=>ua(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Fu(a){return a.includes("scale")?1:0}function Wu(a,l){if(!a||a==="none")return Fu(l);const r=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(r)o=wv,c=r;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Tv,c=m}if(!c)return Fu(l);const h=o[l],f=c[1].split(",").map(Mv);return typeof h=="function"?h(f):f[h]}const Av=(a,l)=>{const{transform:r="none"}=getComputedStyle(a);return Wu(r,l)};function Mv(a){return parseFloat(a.trim())}const si=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ri=new Set(si),im=a=>a===li||a===rt,Ev=new Set(["x","y","z"]),jv=si.filter(a=>!Ev.has(a));function Dv(a){const l=[];return jv.forEach(r=>{const o=a.getValue(r);o!==void 0&&(l.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),l}const ca={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})=>Wu(l,"x"),y:(a,{transform:l})=>Wu(l,"y")};ca.translateX=ca.x;ca.translateY=ca.y;const fa=new Set;let $u=!1,Iu=!1,tc=!1;function Hp(){if(Iu){const a=Array.from(fa).filter(o=>o.needsMeasurement),l=new Set(a.map(o=>o.element)),r=new Map;l.forEach(o=>{const c=Dv(o);c.length&&(r.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=r.get(o);c&&c.forEach(([h,f])=>{o.getValue(h)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Iu=!1,$u=!1,fa.forEach(a=>a.complete(tc)),fa.clear()}function Lp(){fa.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Iu=!0)})}function Cv(){tc=!0,Lp(),Hp(),tc=!1}class zc{constructor(l,r,o,c,h,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=r,this.name=o,this.motionValue=c,this.element=h,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(fa.add(this),$u||($u=!0,Vt.read(Lp),Vt.resolveKeyframes(Hp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:r,element:o,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(o&&r){const m=o.readValue(r,f);m!=null&&(l[0]=m)}l[0]===void 0&&(l[0]=f),c&&h===void 0&&c.set(l[0])}Sv(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),fa.delete(this)}cancel(){this.state==="scheduled"&&(fa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Nv=a=>a.startsWith("--");function zv(a,l,r){Nv(l)?a.style.setProperty(l,r):a.style[l]=r}const Ov=vc(()=>window.ScrollTimeline!==void 0),Rv={};function Vv(a,l){const r=vc(a);return()=>Rv[l]??r()}const qp=Vv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ul=([a,l,r,o])=>`cubic-bezier(${a}, ${l}, ${r}, ${o})`,lm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ul([0,.65,.55,1]),circOut:ul([.55,0,1,.45]),backIn:ul([.31,.01,.66,-.59]),backOut:ul([.33,1.53,.69,.99])};function Gp(a,l){if(a)return typeof a=="function"?qp()?_p(a,l):"ease-out":Mp(a)?ul(a):Array.isArray(a)?a.map(r=>Gp(r,l)||lm.easeOut):lm[a]}function _v(a,l,r,{delay:o=0,duration:c=300,repeat:h=0,repeatType:f="loop",ease:m="easeOut",times:y}={},g=void 0){const x={[l]:r};y&&(x.offset=y);const b=Gp(m,c);Array.isArray(b)&&(x.easing=b);const w={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"};return g&&(w.pseudoElement=g),a.animate(x,w)}function Yp(a){return typeof a=="function"&&"applyToOptions"in a}function Bv({type:a,...l}){return Yp(a)&&qp()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class Uv extends Cc{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,!l)return;const{element:r,name:o,keyframes:c,pseudoElement:h,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=l;this.isPseudoElement=!!h,this.allowFlatten=f,this.options=l,yc(typeof l.type!="string");const g=Bv(l);this.animation=_v(r,o,c,g,h),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const x=Dc(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(x):zv(r,o,x),this.animation.cancel()}y?.(),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 _e(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+_e(l)}get time(){return _e(Number(this.animation.currentTime)||0)}set time(l){this.finishedTime=null,this.animation.currentTime=Ze(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&&Ov()?(this.animation.timeline=l,Be):r(this)}}const Xp={anticipate:Sp,backInOut:bp,circInOut:wp};function Hv(a){return a in Xp}function Lv(a){typeof a.ease=="string"&&Hv(a.ease)&&(a.ease=Xp[a.ease])}const sm=10;class qv extends Uv{constructor(l){Lv(l),Up(l),super(l),l.startTime&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:r,onUpdate:o,onComplete:c,element:h,...f}=this.options;if(!r)return;if(l!==void 0){r.set(l);return}const m=new Nc({...f,autoplay:!1}),y=Ze(this.finishedTime??this.time);r.setWithVelocity(m.sample(y-sm).value,m.sample(y).value,sm),m.stop()}}const rm=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(qn.test(a)||a==="0")&&!a.startsWith("url("));function Gv(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 Yv(a,l,r,o){const c=a[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const h=a[a.length-1],f=rm(c,l),m=rm(h,l);return!f||!m?!1:Gv(a)||(r==="spring"||Yp(r))&&o}function ec(a){a.duration=0,a.type="keyframes"}const Xv=new Set(["opacity","clipPath","filter","transform"]),kv=vc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qv(a){const{motionValue:l,name:r,repeatDelay:o,repeatType:c,damping:h,type:f}=a;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:g}=l.owner.getProps();return kv()&&r&&Xv.has(r)&&(r!=="transform"||!g)&&!y&&!o&&c!=="mirror"&&h!==0&&f!=="inertia"}const Kv=40;class Zv extends Cc{constructor({autoplay:l=!0,delay:r=0,type:o="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:f="loop",keyframes:m,name:y,motionValue:g,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=he.now();const w={autoplay:l,delay:r,type:o,repeat:c,repeatDelay:h,repeatType:f,name:y,motionValue:g,element:x,...b},z=x?.KeyframeResolver||zc;this.keyframeResolver=new z(m,(V,X,K)=>this.onKeyframesResolved(V,X,w,!K),y,g,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,r,o,c){this.keyframeResolver=void 0;const{name:h,type:f,velocity:m,delay:y,isHandoff:g,onUpdate:x}=o;this.resolvedAt=he.now(),Yv(l,h,f,m)||((dn.instantAnimations||!y)&&x?.(Dc(l,o,r)),l[0]=l[l.length-1],ec(o),o.repeat=0);const w={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Kv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:l},z=!g&&Qv(w)?new qv({...w,element:w.motionValue.owner.current}):new Nc(w);z.finished.then(()=>this.notifyFinished()).catch(Be),this.pendingTimeline&&(this.stopTimeline=z.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=z}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(),Cv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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 Pv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jv(a){const l=Pv.exec(a);if(!l)return[,];const[,r,o,c]=l;return[`--${r??o}`,c]}function kp(a,l,r=1){const[o,c]=Jv(a);if(!o)return;const h=window.getComputedStyle(l).getPropertyValue(o);if(h){const f=h.trim();return dp(f)?parseFloat(f):f}return wc(c)?kp(c,l,r+1):c}function Oc(a,l){return a?.[l]??a?.default??a}const Qp=new Set(["width","height","top","left","right","bottom",...si]),Fv={test:a=>a==="auto",parse:a=>a},Kp=a=>l=>l.test(a),Zp=[li,rt,Pe,Hn,G5,q5,Fv],om=a=>Zp.find(Kp(a));function Wv(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||mp(a):!0}const $v=new Set(["brightness","contrast","saturate","opacity"]);function Iv(a){const[l,r]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[o]=r.match(Ac)||[];if(!o)return a;const c=r.replace(o,"");let h=$v.has(l)?1:0;return o!==r&&(h*=100),l+"("+h+c+")"}const tx=/\b([a-z-]*)\(.*?\)/gu,nc={...qn,getAnimatableNone:a=>{const l=a.match(tx);return l?l.map(Iv).join(" "):a}},um={...li,transform:Math.round},ex={rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scale:Gs,scaleX:Gs,scaleY:Gs,scaleZ:Gs,skew:Hn,skewX:Hn,skewY:Hn,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:gl,originX:F0,originY:F0,originZ:rt},Rc={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,backgroundPositionX:rt,backgroundPositionY:rt,...ex,zIndex:um,fillOpacity:gl,strokeOpacity:gl,numOctaves:um},nx={...Rc,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:nc,WebkitFilter:nc},Pp=a=>nx[a];function Jp(a,l){let r=Pp(a);return r!==nc&&(r=qn),r.getAnimatableNone?r.getAnimatableNone(l):void 0}const ax=new Set(["auto","none","0"]);function ix(a,l,r){let o=0,c;for(;o<a.length&&!c;){const h=a[o];typeof h=="string"&&!ax.has(h)&&yl(h).values.length&&(c=a[o]),o++}if(c&&r)for(const h of l)a[h]=Jp(r,c)}class lx extends zc{constructor(l,r,o,c,h){super(l,r,o,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let y=0;y<l.length;y++){let g=l[y];if(typeof g=="string"&&(g=g.trim(),wc(g))){const x=kp(g,r.current);x!==void 0&&(l[y]=x),y===l.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Qp.has(o)||l.length!==2)return;const[c,h]=l,f=om(c),m=om(h);if(f!==m)if(im(f)&&im(m))for(let y=0;y<l.length;y++){const g=l[y];typeof g=="string"&&(l[y]=parseFloat(g))}else ca[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:r}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||Wv(l[c]))&&o.push(c);o.length&&ix(l,o,r)}measureInitialState(){const{element:l,unresolvedKeyframes:r,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ca[o](l.measureViewportBox(),window.getComputedStyle(l.current)),r[0]=this.measuredOrigin;const c=r[r.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){const{element:l,name:r,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(r);c&&c.jump(this.measuredOrigin,!1);const h=o.length-1,f=o[h];o[h]=ca[r](l.measureViewportBox(),window.getComputedStyle(l.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,y])=>{l.getValue(m).set(y)}),this.resolveNoneKeyframes()}}function sx(a,l,r){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=r?.[a]??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const Fp=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function Wp(a){return hp(a)&&"offsetHeight"in a}const cm=30,rx=a=>!isNaN(parseFloat(a));class ox{constructor(l,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=he.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),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=he.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=rx(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 xc);const o=this.events[l].add(r);return l==="change"?()=>{o(),Vt.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(r),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}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=he.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>cm)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,cm);return pp(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 ai(a,l){return new ox(a,l)}const{schedule:Vc}=Ep(queueMicrotask,!1),qe={x:!1,y:!1};function $p(){return qe.x||qe.y}function ux(a){return a==="x"||a==="y"?qe[a]?null:(qe[a]=!0,()=>{qe[a]=!1}):qe.x||qe.y?null:(qe.x=qe.y=!0,()=>{qe.x=qe.y=!1})}function Ip(a,l){const r=sx(a),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[r,c,()=>o.abort()]}function fm(a){return!(a.pointerType==="touch"||$p())}function cx(a,l,r={}){const[o,c,h]=Ip(a,r),f=m=>{if(!fm(m))return;const{target:y}=m,g=l(y,m);if(typeof g!="function"||!y)return;const x=b=>{fm(b)&&(g(b),y.removeEventListener("pointerleave",x))};y.addEventListener("pointerleave",x,c)};return o.forEach(m=>{m.addEventListener("pointerenter",f,c)}),h}const t1=(a,l)=>l?a===l?!0:t1(a,l.parentElement):!1,_c=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,fx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dx(a){return fx.has(a.tagName)||a.tabIndex!==-1}const Qs=new WeakSet;function dm(a){return l=>{l.key==="Enter"&&a(l)}}function Ou(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const hx=(a,l)=>{const r=a.currentTarget;if(!r)return;const o=dm(()=>{if(Qs.has(r))return;Ou(r,"down");const c=dm(()=>{Ou(r,"up")}),h=()=>Ou(r,"cancel");r.addEventListener("keyup",c,l),r.addEventListener("blur",h,l)});r.addEventListener("keydown",o,l),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),l)};function hm(a){return _c(a)&&!$p()}function mx(a,l,r={}){const[o,c,h]=Ip(a,r),f=m=>{const y=m.currentTarget;if(!hm(m))return;Qs.add(y);const g=l(y,m),x=(z,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",w),Qs.has(y)&&Qs.delete(y),hm(z)&&typeof g=="function"&&g(z,{success:V})},b=z=>{x(z,y===window||y===document||r.useGlobalTarget||t1(y,z.target))},w=z=>{x(z,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",w,c)};return o.forEach(m=>{(r.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),Wp(m)&&(m.addEventListener("focus",g=>hx(g,c)),!dx(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),h}function e1(a){return hp(a)&&"ownerSVGElement"in a}function px(a){return e1(a)&&a.tagName==="svg"}const le=a=>!!(a&&a.getVelocity),gx=[...Zp,Qt,qn],yx=a=>gx.find(Kp(a)),Bc=O.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function mm(a,l){if(typeof a=="function")return a(l);a!=null&&(a.current=l)}function vx(...a){return l=>{let r=!1;const o=a.map(c=>{const h=mm(c,l);return!r&&typeof h=="function"&&(r=!0),h});if(r)return()=>{for(let c=0;c<o.length;c++){const h=o[c];typeof h=="function"?h():mm(a[c],null)}}}}function xx(...a){return O.useCallback(vx(...a),a)}class bx extends O.Component{getSnapshotBeforeUpdate(l){const r=this.props.childRef.current;if(r&&l.isPresent&&!this.props.isPresent){const o=r.offsetParent,c=Wp(o)&&o.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 Sx({children:a,isPresent:l,anchorX:r,root:o}){const c=O.useId(),h=O.useRef(null),f=O.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=O.useContext(Bc),y=xx(h,a?.ref);return O.useInsertionEffect(()=>{const{width:g,height:x,top:b,left:w,right:z}=f.current;if(l||!h.current||!g||!x)return;const V=r==="left"?`left: ${w}`:`right: ${z}`;h.current.dataset.motionPopId=c;const X=document.createElement("style");m&&(X.nonce=m);const K=o??document.head;return K.appendChild(X),X.sheet&&X.sheet.insertRule(` |
| [data-motion-pop-id="${c}"] { |
| position: absolute !important; |
| width: ${g}px !important; |
| height: ${x}px !important; |
| ${V}px !important; |
| top: ${b}px !important; |
| } |
| `),()=>{K.contains(X)&&K.removeChild(X)}},[l]),p.jsx(bx,{isPresent:l,childRef:h,sizeRef:f,children:O.cloneElement(a,{ref:y})})}const Tx=({children:a,initial:l,isPresent:r,onExitComplete:o,custom:c,presenceAffectsLayout:h,mode:f,anchorX:m,root:y})=>{const g=hc(wx),x=O.useId();let b=!0,w=O.useMemo(()=>(b=!1,{id:x,initial:l,isPresent:r,custom:c,onExitComplete:z=>{g.set(z,!0);for(const V of g.values())if(!V)return;o&&o()},register:z=>(g.set(z,!1),()=>g.delete(z))}),[r,g,o]);return h&&b&&(w={...w}),O.useMemo(()=>{g.forEach((z,V)=>g.set(V,!1))},[r]),O.useEffect(()=>{!r&&!g.size&&o&&o()},[r]),f==="popLayout"&&(a=p.jsx(Sx,{isPresent:r,anchorX:m,root:y,children:a})),p.jsx(er.Provider,{value:w,children:a})};function wx(){return new Map}function n1(a=!0){const l=O.useContext(er);if(l===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:c}=l,h=O.useId();O.useEffect(()=>{if(a)return c(h)},[a]);const f=O.useCallback(()=>a&&o&&o(h),[h,o,a]);return!r&&o?[!1,f]:[!0]}const Ys=a=>a.key||"";function pm(a){const l=[];return O.Children.forEach(a,r=>{O.isValidElement(r)&&l.push(r)}),l}const Ks=({children:a,custom:l,initial:r=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:h="sync",propagate:f=!1,anchorX:m="left",root:y})=>{const[g,x]=n1(f),b=O.useMemo(()=>pm(a),[a]),w=f&&!g?[]:b.map(Ys),z=O.useRef(!0),V=O.useRef(b),X=hc(()=>new Map),[K,B]=O.useState(b),[Y,R]=O.useState(b);fp(()=>{z.current=!1,V.current=b;for(let Z=0;Z<Y.length;Z++){const F=Ys(Y[Z]);w.includes(F)?X.delete(F):X.get(F)!==!0&&X.set(F,!1)}},[Y,w.length,w.join("-")]);const k=[];if(b!==K){let Z=[...b];for(let F=0;F<Y.length;F++){const J=Y[F],ct=Ys(J);w.includes(ct)||(Z.splice(F,0,J),k.push(J))}return h==="wait"&&k.length&&(Z=k),R(pm(Z)),B(b),null}const{forceRender:H}=O.useContext(dc);return p.jsx(p.Fragment,{children:Y.map(Z=>{const F=Ys(Z),J=f&&!g?!1:b===Y||w.includes(F),ct=()=>{if(X.has(F))X.set(F,!0);else return;let $=!0;X.forEach(ot=>{ot||($=!1)}),$&&(H?.(),R(V.current),f&&x?.(),o&&o())};return p.jsx(Tx,{isPresent:J,initial:!z.current||r?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:y,onExitComplete:J?void 0:ct,anchorX:m,children:Z},F)})})},a1=O.createContext({strict:!1}),gm={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"]},ii={};for(const a in gm)ii[a]={isEnabled:l=>gm[a].some(r=>!!l[r])};function Ax(a){for(const l in a)ii[l]={...ii[l],...a[l]}}const Mx=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 $s(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Mx.has(a)}let i1=a=>!$s(a);function Ex(a){typeof a=="function"&&(i1=l=>l.startsWith("on")?!$s(l):a(l))}try{Ex(require("@emotion/is-prop-valid").default)}catch{}function jx(a,l,r){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||(i1(c)||r===!0&&$s(c)||!l&&!$s(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const nr=O.createContext({});function ar(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function vl(a){return typeof a=="string"||Array.isArray(a)}const Uc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hc=["initial",...Uc];function ir(a){return ar(a.animate)||Hc.some(l=>vl(a[l]))}function l1(a){return!!(ir(a)||a.variants)}function Dx(a,l){if(ir(a)){const{initial:r,animate:o}=a;return{initial:r===!1||vl(r)?r:void 0,animate:vl(o)?o:void 0}}return a.inherit!==!1?l:{}}function Cx(a){const{initial:l,animate:r}=Dx(a,O.useContext(nr));return O.useMemo(()=>({initial:l,animate:r}),[ym(l),ym(r)])}function ym(a){return Array.isArray(a)?a.join(" "):a}const xl={};function Nx(a){for(const l in a)xl[l]=a[l],Tc(l)&&(xl[l].isCSSVariable=!0)}function s1(a,{layout:l,layoutId:r}){return ri.has(a)||a.startsWith("origin")||(l||r!==void 0)&&(!!xl[a]||a==="opacity")}const zx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ox=si.length;function Rx(a,l,r){let o="",c=!0;for(let h=0;h<Ox;h++){const f=si[h],m=a[f];if(m===void 0)continue;let y=!0;if(typeof m=="number"?y=m===(f.startsWith("scale")?1:0):y=parseFloat(m)===0,!y||r){const g=Fp(m,Rc[f]);if(!y){c=!1;const x=zx[f]||f;o+=`${x}(${g}) `}r&&(l[f]=g)}}return o=o.trim(),r?o=r(l,c?"":o):c&&(o="none"),o}function Lc(a,l,r){const{style:o,vars:c,transformOrigin:h}=a;let f=!1,m=!1;for(const y in l){const g=l[y];if(ri.has(y)){f=!0;continue}else if(Tc(y)){c[y]=g;continue}else{const x=Fp(g,Rc[y]);y.startsWith("origin")?(m=!0,h[y]=x):o[y]=x}}if(l.transform||(f||r?o.transform=Rx(l,a.transform,r):o.transform&&(o.transform="none")),m){const{originX:y="50%",originY:g="50%",originZ:x=0}=h;o.transformOrigin=`${y} ${g} ${x}`}}const qc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function r1(a,l,r){for(const o in l)!le(l[o])&&!s1(o,r)&&(a[o]=l[o])}function Vx({transformTemplate:a},l){return O.useMemo(()=>{const r=qc();return Lc(r,l,a),Object.assign({},r.vars,r.style)},[l])}function _x(a,l){const r=a.style||{},o={};return r1(o,r,a),Object.assign(o,Vx(a,l)),o}function Bx(a,l){const r={},o=_x(a,l);return a.drag&&a.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,r}const Ux={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hx={offset:"strokeDashoffset",array:"strokeDasharray"};function Lx(a,l,r=1,o=0,c=!0){a.pathLength=1;const h=c?Ux:Hx;a[h.offset]=rt.transform(-o);const f=rt.transform(l),m=rt.transform(r);a[h.array]=`${f} ${m}`}function o1(a,{attrX:l,attrY:r,attrScale:o,pathLength:c,pathSpacing:h=1,pathOffset:f=0,...m},y,g,x){if(Lc(a,m,g),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:w}=a;b.transform&&(w.transform=b.transform,delete b.transform),(w.transform||b.transformOrigin)&&(w.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),w.transform&&(w.transformBox=x?.transformBox??"fill-box",delete b.transformBox),l!==void 0&&(b.x=l),r!==void 0&&(b.y=r),o!==void 0&&(b.scale=o),c!==void 0&&Lx(b,c,h,f,!1)}const u1=()=>({...qc(),attrs:{}}),c1=a=>typeof a=="string"&&a.toLowerCase()==="svg";function qx(a,l,r,o){const c=O.useMemo(()=>{const h=u1();return o1(h,l,c1(o),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[l]);if(a.style){const h={};r1(h,a.style,a),c.style={...h,...c.style}}return c}const Gx=["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 Gc(a){return typeof a!="string"||a.includes("-")?!1:!!(Gx.indexOf(a)>-1||/[A-Z]/u.test(a))}function Yx(a,l,r,{latestValues:o},c,h=!1){const m=(Gc(a)?qx:Bx)(l,o,c,a),y=jx(l,typeof a=="string",h),g=a!==O.Fragment?{...y,...m,ref:r}:{},{children:x}=l,b=O.useMemo(()=>le(x)?x.get():x,[x]);return O.createElement(a,{...g,children:b})}function vm(a){const l=[{},{}];return a?.values.forEach((r,o)=>{l[0][o]=r.get(),l[1][o]=r.getVelocity()}),l}function Yc(a,l,r,o){if(typeof l=="function"){const[c,h]=vm(o);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]=vm(o);l=l(r!==void 0?r:a.custom,c,h)}return l}function Zs(a){return le(a)?a.get():a}function Xx({scrapeMotionValuesFromProps:a,createRenderState:l},r,o,c){return{latestValues:kx(r,o,c,a),renderState:l()}}function kx(a,l,r,o){const c={},h=o(a,{});for(const w in h)c[w]=Zs(h[w]);let{initial:f,animate:m}=a;const y=ir(a),g=l1(a);l&&g&&!y&&a.inherit!==!1&&(f===void 0&&(f=l.initial),m===void 0&&(m=l.animate));let x=r?r.initial===!1:!1;x=x||f===!1;const b=x?m:f;if(b&&typeof b!="boolean"&&!ar(b)){const w=Array.isArray(b)?b:[b];for(let z=0;z<w.length;z++){const V=Yc(a,w[z]);if(V){const{transitionEnd:X,transition:K,...B}=V;for(const Y in B){let R=B[Y];if(Array.isArray(R)){const k=x?R.length-1:0;R=R[k]}R!==null&&(c[Y]=R)}for(const Y in X)c[Y]=X[Y]}}}return c}const f1=a=>(l,r)=>{const o=O.useContext(nr),c=O.useContext(er),h=()=>Xx(a,l,o,c);return r?h():hc(h)};function Xc(a,l,r){const{style:o}=a,c={};for(const h in o)(le(o[h])||l.style&&le(l.style[h])||s1(h,a)||r?.getValue(h)?.liveStyle!==void 0)&&(c[h]=o[h]);return c}const Qx=f1({scrapeMotionValuesFromProps:Xc,createRenderState:qc});function d1(a,l,r){const o=Xc(a,l,r);for(const c in a)if(le(a[c])||le(l[c])){const h=si.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[h]=a[c]}return o}const Kx=f1({scrapeMotionValuesFromProps:d1,createRenderState:u1}),Zx=Symbol.for("motionComponentSymbol");function $a(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function Px(a,l,r){return O.useCallback(o=>{o&&a.onMount&&a.onMount(o),l&&(o?l.mount(o):l.unmount()),r&&(typeof r=="function"?r(o):$a(r)&&(r.current=o))},[l])}const kc=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jx="framerAppearId",h1="data-"+kc(Jx),m1=O.createContext({});function Fx(a,l,r,o,c){const{visualElement:h}=O.useContext(nr),f=O.useContext(a1),m=O.useContext(er),y=O.useContext(Bc).reducedMotion,g=O.useRef(null);o=o||f.renderer,!g.current&&o&&(g.current=o(a,{visualState:l,parent:h,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y}));const x=g.current,b=O.useContext(m1);x&&!x.projection&&c&&(x.type==="html"||x.type==="svg")&&Wx(g.current,r,c,b);const w=O.useRef(!1);O.useInsertionEffect(()=>{x&&w.current&&x.update(r,m)});const z=r[h1],V=O.useRef(!!z&&!window.MotionHandoffIsComplete?.(z)&&window.MotionHasOptimisedAnimation?.(z));return fp(()=>{x&&(w.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),V.current&&x.animationState&&x.animationState.animateChanges())}),O.useEffect(()=>{x&&(!V.current&&x.animationState&&x.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(z)}),V.current=!1),x.enteringChildren=void 0)}),x}function Wx(a,l,r,o){const{layoutId:c,layout:h,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:g,layoutCrossfade:x}=l;a.projection=new r(a.latestValues,l["data-framer-portal-id"]?void 0:p1(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!f||m&&$a(m),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:o,crossfade:x,layoutScroll:y,layoutRoot:g})}function p1(a){if(a)return a.options.allowProjection!==!1?a.projection:p1(a.parent)}function Ru(a,{forwardMotionProps:l=!1}={},r,o){r&&Ax(r);const c=Gc(a)?Kx:Qx;function h(m,y){let g;const x={...O.useContext(Bc),...m,layoutId:$x(m)},{isStatic:b}=x,w=Cx(m),z=c(m,b);if(!b&&mc){Ix();const V=t2(x);g=V.MeasureLayout,w.visualElement=Fx(a,z,x,o,V.ProjectionNode)}return p.jsxs(nr.Provider,{value:w,children:[g&&w.visualElement?p.jsx(g,{visualElement:w.visualElement,...x}):null,Yx(a,m,Px(z,w.visualElement,y),z,b,l)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=O.forwardRef(h);return f[Zx]=a,f}function $x({layoutId:a}){const l=O.useContext(dc).id;return l&&a!==void 0?l+"-"+a:a}function Ix(a,l){O.useContext(a1).strict}function t2(a){const{drag:l,layout:r}=ii;if(!l&&!r)return{};const o={...l,...r};return{MeasureLayout:l?.isEnabled(a)||r?.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function e2(a,l){if(typeof Proxy>"u")return Ru;const r=new Map,o=(h,f)=>Ru(h,f,a,l),c=(h,f)=>o(h,f);return new Proxy(c,{get:(h,f)=>f==="create"?o:(r.has(f)||r.set(f,Ru(f,void 0,a,l)),r.get(f))})}function g1({top:a,left:l,right:r,bottom:o}){return{x:{min:l,max:r},y:{min:a,max:o}}}function n2({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function a2(a,l){if(!l)return a;const r=l({x:a.left,y:a.top}),o=l({x:a.right,y:a.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function Vu(a){return a===void 0||a===1}function ac({scale:a,scaleX:l,scaleY:r}){return!Vu(a)||!Vu(l)||!Vu(r)}function ra(a){return ac(a)||y1(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function y1(a){return xm(a.x)||xm(a.y)}function xm(a){return a&&a!=="0%"}function Is(a,l,r){const o=a-r,c=l*o;return r+c}function bm(a,l,r,o,c){return c!==void 0&&(a=Is(a,c,o)),Is(a,r,o)+l}function ic(a,l=0,r=1,o,c){a.min=bm(a.min,l,r,o,c),a.max=bm(a.max,l,r,o,c)}function v1(a,{x:l,y:r}){ic(a.x,l.translate,l.scale,l.originPoint),ic(a.y,r.translate,r.scale,r.originPoint)}const Sm=.999999999999,Tm=1.0000000000001;function i2(a,l,r,o=!1){const c=r.length;if(!c)return;l.x=l.y=1;let h,f;for(let m=0;m<c;m++){h=r[m],f=h.projectionDelta;const{visualElement:y}=h.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ti(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(l.x*=f.x.scale,l.y*=f.y.scale,v1(a,f)),o&&ra(h.latestValues)&&ti(a,h.latestValues))}l.x<Tm&&l.x>Sm&&(l.x=1),l.y<Tm&&l.y>Sm&&(l.y=1)}function Ia(a,l){a.min=a.min+l,a.max=a.max+l}function wm(a,l,r,o,c=.5){const h=Bt(a.min,a.max,c);ic(a,l,r,h,o)}function ti(a,l){wm(a.x,l.x,l.scaleX,l.scale,l.originX),wm(a.y,l.y,l.scaleY,l.scale,l.originY)}function x1(a,l){return g1(a2(a.getBoundingClientRect(),l))}function l2(a,l,r){const o=x1(a,r),{scroll:c}=l;return c&&(Ia(o.x,c.offset.x),Ia(o.y,c.offset.y)),o}const Am=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:Am(),y:Am()}),Mm=()=>({min:0,max:0}),Yt=()=>({x:Mm(),y:Mm()}),lc={current:null},b1={current:!1};function s2(){if(b1.current=!0,!!mc)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>lc.current=a.matches;a.addEventListener("change",l),l()}else lc.current=!1}const r2=new WeakMap;function o2(a,l,r){for(const o in l){const c=l[o],h=r[o];if(le(c))a.addValue(o,c);else if(le(h))a.addValue(o,ai(c,{owner:a}));else if(h!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,ai(f!==void 0?f:c,{owner:a}))}}for(const o in r)l[o]===void 0&&a.removeValue(o);return l}const Em=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class u2{scrapeMotionValuesFromProps(l,r,o){return{}}constructor({parent:l,props:r,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:h,visualState:f},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zc,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 w=he.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Vt.render(this.render,!1,!0))};const{latestValues:y,renderState:g}=f;this.latestValues=y,this.baseTarget={...y},this.initialValues=r.initial?{...y}:{},this.renderState=g,this.parent=l,this.props=r,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.options=m,this.blockInitialAnimation=!!h,this.isControllingVariants=ir(r),this.isVariantNode=l1(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:x,...b}=this.scrapeMotionValuesFromProps(r,{},this);for(const w in b){const z=b[w];y[w]!==void 0&&le(z)&&z.set(y[w])}}mount(l){this.current=l,r2.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,o)=>this.bindToMotionValue(o,r)),b1.current||s2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lc.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ln(this.notifyUpdate),Ln(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 o=ri.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",f=>{this.latestValues[l]=f,this.props.onUpdate&&Vt.preRender(this.notifyUpdate),o&&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 ii){const r=ii[l];if(!r)continue;const{isEnabled:o,Feature:c}=r;if(!this.features[l]&&c&&o(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):Yt()}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 o=0;o<Em.length;o++){const c=Em[o];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=o2(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 o=this.values.get(l);r!==o&&(o&&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 o=this.values.get(l);return o===void 0&&r!==void 0&&(o=ai(r===null?void 0:r,{owner:this}),this.addValue(l,o)),o}readValue(l,r){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(dp(o)||mp(o))?o=parseFloat(o):!yx(o)&&qn.test(r)&&(o=Jp(l,r)),this.setBaseTarget(l,le(o)?o.get():o)),le(o)?o.get():o}setBaseTarget(l,r){this.baseTarget[l]=r}getBaseTarget(l){const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const h=Yc(this.props,r,this.presenceContext?.custom);h&&(o=h[l])}if(r&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!le(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,r){return this.events[l]||(this.events[l]=new xc),this.events[l].add(r)}notify(l,...r){this.events[l]&&this.events[l].notify(...r)}scheduleRenderMicrotask(){Vc.render(this.render)}}class S1 extends u2{constructor(){super(...arguments),this.KeyframeResolver=lx}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:o}){delete r[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;le(l)&&(this.childSubscription=l.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function T1(a,{style:l,vars:r},o,c){const h=a.style;let f;for(f in l)h[f]=l[f];c?.applyProjectionStyles(h,o);for(f in r)h.setProperty(f,r[f])}function c2(a){return window.getComputedStyle(a)}class f2 extends S1{constructor(){super(...arguments),this.type="html",this.renderInstance=T1}readValueFromInstance(l,r){if(ri.has(r))return this.projection?.isProjecting?Fu(r):Av(l,r);{const o=c2(l),c=(Tc(r)?o.getPropertyValue(r):o[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:r}){return x1(l,r)}build(l,r,o){Lc(l,r,o.transformTemplate)}scrapeMotionValuesFromProps(l,r,o){return Xc(l,r,o)}}const w1=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 d2(a,l,r,o){T1(a,l,void 0,o);for(const c in l.attrs)a.setAttribute(w1.has(c)?c:kc(c),l.attrs[c])}class h2 extends S1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Yt}getBaseTargetFromProps(l,r){return l[r]}readValueFromInstance(l,r){if(ri.has(r)){const o=Pp(r);return o&&o.default||0}return r=w1.has(r)?r:kc(r),l.getAttribute(r)}scrapeMotionValuesFromProps(l,r,o){return d1(l,r,o)}build(l,r,o){o1(l,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,r,o,c){d2(l,r,o,c)}mount(l){this.isSVGTag=c1(l.tagName),super.mount(l)}}const m2=(a,l)=>Gc(a)?new h2(l):new f2(l,{allowProjection:a!==O.Fragment});function ni(a,l,r){const o=a.getProps();return Yc(o,l,r!==void 0?r:o.custom,a)}const sc=a=>Array.isArray(a);function p2(a,l,r){a.hasValue(l)?a.getValue(l).set(r):a.addValue(l,ai(r))}function g2(a){return sc(a)?a[a.length-1]||0:a}function y2(a,l){const r=ni(a,l);let{transitionEnd:o={},transition:c={},...h}=r||{};h={...h,...o};for(const f in h){const m=g2(h[f]);p2(a,f,m)}}function v2(a){return!!(le(a)&&a.add)}function rc(a,l){const r=a.getValue("willChange");if(v2(r))return r.add(l);if(!r&&dn.WillChange){const o=new dn.WillChange("auto");a.addValue("willChange",o),o.add(l)}}function A1(a){return a.props[h1]}const x2=a=>a!==null;function b2(a,{repeat:l,repeatType:r="loop"},o){const c=a.filter(x2),h=l&&r!=="loop"&&l%2===1?0:c.length-1;return c[h]}const S2={type:"spring",stiffness:500,damping:25,restSpeed:10},T2=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),w2={type:"keyframes",duration:.8},A2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},M2=(a,{keyframes:l})=>l.length>2?w2:ri.has(a)?a.startsWith("scale")?T2(l[1]):S2:A2;function E2({when:a,delay:l,delayChildren:r,staggerChildren:o,staggerDirection:c,repeat:h,repeatType:f,repeatDelay:m,from:y,elapsed:g,...x}){return!!Object.keys(x).length}const Qc=(a,l,r,o={},c,h)=>f=>{const m=Oc(o,a)||{},y=m.delay||o.delay||0;let{elapsed:g=0}=o;g=g-Ze(y);const x={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:l.getVelocity(),...m,delay:-g,onUpdate:w=>{l.set(w),m.onUpdate&&m.onUpdate(w)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:l,element:h?void 0:c};E2(m)||Object.assign(x,M2(a,x)),x.duration&&(x.duration=Ze(x.duration)),x.repeatDelay&&(x.repeatDelay=Ze(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(ec(x),x.delay===0&&(b=!0)),(dn.instantAnimations||dn.skipAnimations)&&(b=!0,ec(x),x.delay=0),x.allowFlatten=!m.type&&!m.ease,b&&!h&&l.get()!==void 0){const w=b2(x.keyframes,m);if(w!==void 0){Vt.update(()=>{x.onUpdate(w),x.onComplete()});return}}return m.isSync?new Nc(x):new Zv(x)};function j2({protectedKeys:a,needsAnimating:l},r){const o=a.hasOwnProperty(r)&&l[r]!==!0;return l[r]=!1,o}function M1(a,l,{delay:r=0,transitionOverride:o,type:c}={}){let{transition:h=a.getDefaultTransition(),transitionEnd:f,...m}=l;o&&(h=o);const y=[],g=c&&a.animationState&&a.animationState.getState()[c];for(const x in m){const b=a.getValue(x,a.latestValues[x]??null),w=m[x];if(w===void 0||g&&j2(g,x))continue;const z={delay:r,...Oc(h||{},x)},V=b.get();if(V!==void 0&&!b.isAnimating&&!Array.isArray(w)&&w===V&&!z.velocity)continue;let X=!1;if(window.MotionHandoffAnimation){const B=A1(a);if(B){const Y=window.MotionHandoffAnimation(B,x,Vt);Y!==null&&(z.startTime=Y,X=!0)}}rc(a,x),b.start(Qc(x,b,w,a.shouldReduceMotion&&Qp.has(x)?{type:!1}:z,a,X));const K=b.animation;K&&y.push(K)}return f&&Promise.all(y).then(()=>{Vt.update(()=>{f&&y2(a,f)})}),y}function E1(a,l,r,o=0,c=1){const h=Array.from(a).sort((g,x)=>g.sortNodePosition(x)).indexOf(l),f=a.size,m=(f-1)*o;return typeof r=="function"?r(h,f):c===1?h*o:m-h*o}function oc(a,l,r={}){const o=ni(a,l,r.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(c=r.transitionOverride);const h=o?()=>Promise.all(M1(a,o,r)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:g=0,staggerChildren:x,staggerDirection:b}=c;return D2(a,l,y,g,x,b,r)}:()=>Promise.resolve(),{when:m}=c;if(m){const[y,g]=m==="beforeChildren"?[h,f]:[f,h];return y().then(()=>g())}else return Promise.all([h(),f(r.delay)])}function D2(a,l,r=0,o=0,c=0,h=1,f){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",l),m.push(oc(y,l,{...f,delay:r+(typeof o=="function"?0:o)+E1(a.variantChildren,y,o,c,h)}).then(()=>y.notify("AnimationComplete",l)));return Promise.all(m)}function C2(a,l,r={}){a.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(h=>oc(a,h,r));o=Promise.all(c)}else if(typeof l=="string")o=oc(a,l,r);else{const c=typeof l=="function"?ni(a,l,r.custom):l;o=Promise.all(M1(a,c,r))}return o.then(()=>{a.notify("AnimationComplete",l)})}function j1(a,l){if(!Array.isArray(l))return!1;const r=l.length;if(r!==a.length)return!1;for(let o=0;o<r;o++)if(l[o]!==a[o])return!1;return!0}const N2=Hc.length;function D1(a){if(!a)return;if(!a.isControllingVariants){const r=a.parent?D1(a.parent)||{}:{};return a.props.initial!==void 0&&(r.initial=a.props.initial),r}const l={};for(let r=0;r<N2;r++){const o=Hc[r],c=a.props[o];(vl(c)||c===!1)&&(l[o]=c)}return l}const z2=[...Uc].reverse(),O2=Uc.length;function R2(a){return l=>Promise.all(l.map(({animation:r,options:o})=>C2(a,r,o)))}function V2(a){let l=R2(a),r=jm(),o=!0;const c=y=>(g,x)=>{const b=ni(a,x,y==="exit"?a.presenceContext?.custom:void 0);if(b){const{transition:w,transitionEnd:z,...V}=b;g={...g,...V,...z}}return g};function h(y){l=y(a)}function f(y){const{props:g}=a,x=D1(a.parent)||{},b=[],w=new Set;let z={},V=1/0;for(let K=0;K<O2;K++){const B=z2[K],Y=r[B],R=g[B]!==void 0?g[B]:x[B],k=vl(R),H=B===y?Y.isActive:null;H===!1&&(V=K);let Z=R===x[B]&&R!==g[B]&&k;if(Z&&o&&a.manuallyAnimateOnMount&&(Z=!1),Y.protectedKeys={...z},!Y.isActive&&H===null||!R&&!Y.prevProp||ar(R)||typeof R=="boolean")continue;const F=_2(Y.prevProp,R);let J=F||B===y&&Y.isActive&&!Z&&k||K>V&&k,ct=!1;const $=Array.isArray(R)?R:[R];let ot=$.reduce(c(B),{});H===!1&&(ot={});const{prevResolvedValues:et={}}=Y,Nt={...et,...ot},yt=q=>{J=!0,w.has(q)&&(ct=!0,w.delete(q)),Y.needsAnimating[q]=!0;const Q=a.getValue(q);Q&&(Q.liveStyle=!1)};for(const q in Nt){const Q=ot[q],ht=et[q];if(z.hasOwnProperty(q))continue;let T=!1;sc(Q)&&sc(ht)?T=!j1(Q,ht):T=Q!==ht,T?Q!=null?yt(q):w.add(q):Q!==void 0&&w.has(q)?yt(q):Y.protectedKeys[q]=!0}Y.prevProp=R,Y.prevResolvedValues=ot,Y.isActive&&(z={...z,...ot}),o&&a.blockInitialAnimation&&(J=!1);const lt=Z&&F;J&&(!lt||ct)&&b.push(...$.map(q=>{const Q={type:B};if(typeof q=="string"&&o&&!lt&&a.manuallyAnimateOnMount&&a.parent){const{parent:ht}=a,T=ni(ht,q);if(ht.enteringChildren&&T){const{delayChildren:G}=T.transition||{};Q.delay=E1(ht.enteringChildren,a,G)}}return{animation:q,options:Q}}))}if(w.size){const K={};if(typeof g.initial!="boolean"){const B=ni(a,Array.isArray(g.initial)?g.initial[0]:g.initial);B&&B.transition&&(K.transition=B.transition)}w.forEach(B=>{const Y=a.getBaseTarget(B),R=a.getValue(B);R&&(R.liveStyle=!0),K[B]=Y??null}),b.push({animation:K})}let X=!!b.length;return o&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(X=!1),o=!1,X?l(b):Promise.resolve()}function m(y,g){if(r[y].isActive===g)return Promise.resolve();a.variantChildren?.forEach(b=>b.animationState?.setActive(y,g)),r[y].isActive=g;const x=f(y);for(const b in r)r[b].protectedKeys={};return x}return{animateChanges:f,setActive:m,setAnimateFunction:h,getState:()=>r,reset:()=>{r=jm(),o=!0}}}function _2(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!j1(l,a):!1}function sa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jm(){return{animate:sa(!0),whileInView:sa(),whileHover:sa(),whileTap:sa(),whileDrag:sa(),whileFocus:sa(),exit:sa()}}class Gn{constructor(l){this.isMounted=!1,this.node=l}update(){}}class B2 extends Gn{constructor(l){super(l),l.animationState||(l.animationState=V2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();ar(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 U2=0;class H2 extends Gn{constructor(){super(...arguments),this.id=U2++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)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 L2={animation:{Feature:B2},exit:{Feature:H2}};function bl(a,l,r,o={passive:!0}){return a.addEventListener(l,r,o),()=>a.removeEventListener(l,r)}function Al(a){return{point:{x:a.pageX,y:a.pageY}}}const q2=a=>l=>_c(l)&&a(l,Al(l));function dl(a,l,r,o){return bl(a,l,q2(r),o)}const C1=1e-4,G2=1-C1,Y2=1+C1,N1=.01,X2=0-N1,k2=0+N1;function re(a){return a.max-a.min}function Q2(a,l,r){return Math.abs(a-l)<=r}function Dm(a,l,r,o=.5){a.origin=o,a.originPoint=Bt(l.min,l.max,a.origin),a.scale=re(r)/re(l),a.translate=Bt(r.min,r.max,a.origin)-a.originPoint,(a.scale>=G2&&a.scale<=Y2||isNaN(a.scale))&&(a.scale=1),(a.translate>=X2&&a.translate<=k2||isNaN(a.translate))&&(a.translate=0)}function hl(a,l,r,o){Dm(a.x,l.x,r.x,o?o.originX:void 0),Dm(a.y,l.y,r.y,o?o.originY:void 0)}function Cm(a,l,r){a.min=r.min+l.min,a.max=a.min+re(l)}function K2(a,l,r){Cm(a.x,l.x,r.x),Cm(a.y,l.y,r.y)}function Nm(a,l,r){a.min=l.min-r.min,a.max=a.min+re(l)}function ml(a,l,r){Nm(a.x,l.x,r.x),Nm(a.y,l.y,r.y)}function Ve(a){return[a("x"),a("y")]}const z1=({current:a})=>a?a.ownerDocument.defaultView:null,zm=(a,l)=>Math.abs(a-l);function Z2(a,l){const r=zm(a.x,l.x),o=zm(a.y,l.y);return Math.sqrt(r**2+o**2)}class O1{constructor(l,r,{transformPagePoint:o,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 w=Bu(this.lastMoveEventInfo,this.history),z=this.startEvent!==null,V=Z2(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!z&&!V)return;const{point:X}=w,{timestamp:K}=ee;this.history.push({...X,timestamp:K});const{onStart:B,onMove:Y}=this.handlers;z||(B&&B(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,w)},this.handlePointerMove=(w,z)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=_u(z,this.transformPagePoint),Vt.update(this.updatePoint,!0)},this.handlePointerUp=(w,z)=>{this.end();const{onEnd:V,onSessionEnd:X,resumeAnimation:K}=this.handlers;if(this.dragSnapToOrigin&&K&&K(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=Bu(w.type==="pointercancel"?this.lastMoveEventInfo:_u(z,this.transformPagePoint),this.history);this.startEvent&&V&&V(w,B),X&&X(w,B)},!_c(l))return;this.dragSnapToOrigin=h,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const m=Al(l),y=_u(m,this.transformPagePoint),{point:g}=y,{timestamp:x}=ee;this.history=[{...g,timestamp:x}];const{onSessionStart:b}=r;b&&b(l,Bu(y,this.history)),this.removeListeners=Sl(dl(this.contextWindow,"pointermove",this.handlePointerMove),dl(this.contextWindow,"pointerup",this.handlePointerUp),dl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),Ln(this.updatePoint)}}function _u(a,l){return l?{point:l(a.point)}:a}function Om(a,l){return{x:a.x-l.x,y:a.y-l.y}}function Bu({point:a},l){return{point:a,delta:Om(a,R1(l)),offset:Om(a,P2(l)),velocity:J2(l,.1)}}function P2(a){return a[0]}function R1(a){return a[a.length-1]}function J2(a,l){if(a.length<2)return{x:0,y:0};let r=a.length-1,o=null;const c=R1(a);for(;r>=0&&(o=a[r],!(c.timestamp-o.timestamp>Ze(l)));)r--;if(!o)return{x:0,y:0};const h=_e(c.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const f={x:(c.x-o.x)/h,y:(c.y-o.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function F2(a,{min:l,max:r},o){return l!==void 0&&a<l?a=o?Bt(l,a,o.min):Math.max(a,l):r!==void 0&&a>r&&(a=o?Bt(r,a,o.max):Math.min(a,r)),a}function Rm(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 W2(a,{top:l,left:r,bottom:o,right:c}){return{x:Rm(a.x,r,c),y:Rm(a.y,l,o)}}function Vm(a,l){let r=l.min-a.min,o=l.max-a.max;return l.max-l.min<a.max-a.min&&([r,o]=[o,r]),{min:r,max:o}}function $2(a,l){return{x:Vm(a.x,l.x),y:Vm(a.y,l.y)}}function I2(a,l){let r=.5;const o=re(a),c=re(l);return c>o?r=pl(l.min,l.max-o,a.min):o>c&&(r=pl(a.min,a.max-c,l.min)),fn(0,1,r)}function tb(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 uc=.35;function eb(a=uc){return a===!1?a=0:a===!0&&(a=uc),{x:_m(a,"left","right"),y:_m(a,"top","bottom")}}function _m(a,l,r){return{min:Bm(a,l),max:Bm(a,r)}}function Bm(a,l){return typeof a=="number"?a:a[l]||0}const nb=new WeakMap;class ab{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=Yt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Al(b).point)},f=(b,w)=>{const{drag:z,dragPropagation:V,onDragStart:X}=this.getProps();if(z&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ux(z),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ve(B=>{let Y=this.getAxisMotionValue(B).get()||0;if(Pe.test(Y)){const{projection:R}=this.visualElement;if(R&&R.layout){const k=R.layout.layoutBox[B];k&&(Y=re(k)*(parseFloat(Y)/100))}}this.originPoint[B]=Y}),X&&Vt.postRender(()=>X(b,w)),rc(this.visualElement,"transform");const{animationState:K}=this.visualElement;K&&K.setActive("whileDrag",!0)},m=(b,w)=>{this.latestPointerEvent=b,this.latestPanInfo=w;const{dragPropagation:z,dragDirectionLock:V,onDirectionLock:X,onDrag:K}=this.getProps();if(!z&&!this.openDragLock)return;const{offset:B}=w;if(V&&this.currentDirection===null){this.currentDirection=ib(B),this.currentDirection!==null&&X&&X(this.currentDirection);return}this.updateAxis("x",w.point,B),this.updateAxis("y",w.point,B),this.visualElement.render(),K&&K(b,w)},y=(b,w)=>{this.latestPointerEvent=b,this.latestPanInfo=w,this.stop(b,w),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>Ve(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:x}=this.getProps();this.panSession=new O1(l,{onSessionStart:h,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:o,contextWindow:z1(this.visualElement)})}stop(l,r){const o=l||this.latestPointerEvent,c=r||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Vt.postRender(()=>m(o,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:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(l,r,o){const{drag:c}=this.getProps();if(!o||!Xs(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let f=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(f=F2(f,this.constraints[l],this.elastic[l])),h.set(f)}resolveConstraints(){const{dragConstraints:l,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&$a(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=W2(o.layoutBox,l):this.constraints=!1,this.elastic=eb(r),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ve(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=tb(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:r}=this.getProps();if(!l||!$a(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=l2(o,c.root,this.visualElement.getTransformPagePoint());let f=$2(c.layout.layoutBox,h);if(r){const m=r(n2(f));this.hasMutatedConstraints=!!m,m&&(f=g1(m))}return f}startAnimation(l){const{drag:r,dragMomentum:o,dragElastic:c,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},g=Ve(x=>{if(!Xs(x,r,this.currentDirection))return;let b=y&&y[x]||{};f&&(b={min:0,max:0});const w=c?200:1e6,z=c?40:1e7,V={type:"inertia",velocity:o?l[x]:0,bounceStiffness:w,bounceDamping:z,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(x,V)});return Promise.all(g).then(m)}startAxisValueAnimation(l,r){const o=this.getAxisMotionValue(l);return rc(this.visualElement,l),o.start(Qc(l,o,0,r,this.visualElement,!1))}stopAnimation(){Ve(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){Ve(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const r=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[r];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){Ve(r=>{const{drag:o}=this.getProps();if(!Xs(r,o,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(r);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[r];h.set(l[r]-Bt(f,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!$a(r)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ve(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=I2({min:y,max:y},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ve(f=>{if(!Xs(f,l,null))return;const m=this.getAxisMotionValue(f),{min:y,max:g}=this.constraints[f];m.set(Bt(y,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;nb.set(this.visualElement,this);const l=this.visualElement.current,r=dl(l,"pointerdown",y=>{const{drag:g,dragListener:x=!0}=this.getProps();g&&x&&this.start(y)}),o=()=>{const{dragConstraints:y}=this.getProps();$a(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Vt.read(o);const f=bl(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:g})=>{this.isDragging&&g&&(Ve(x=>{const b=this.getAxisMotionValue(x);b&&(this.originPoint[x]+=y[x].translate,b.set(b.get()+y[x].translate))}),this.visualElement.render())}));return()=>{f(),r(),h(),m&&m()}}getProps(){const l=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:f=uc,dragMomentum:m=!0}=l;return{...l,drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:h,dragElastic:f,dragMomentum:m}}}function Xs(a,l,r){return(l===!0||l===a)&&(r===null||r===a)}function ib(a,l=10){let r=null;return Math.abs(a.y)>l?r="y":Math.abs(a.x)>l&&(r="x"),r}class lb extends Gn{constructor(l){super(l),this.removeGroupControls=Be,this.removeListeners=Be,this.controls=new ab(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Be}unmount(){this.removeGroupControls(),this.removeListeners()}}const Um=a=>(l,r)=>{a&&Vt.postRender(()=>a(l,r))};class sb extends Gn{constructor(){super(...arguments),this.removePointerDownListener=Be}onPointerDown(l){this.session=new O1(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:z1(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:r,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Um(l),onStart:Um(r),onMove:o,onEnd:(h,f)=>{delete this.session,c&&Vt.postRender(()=>c(h,f))}}}mount(){this.removePointerDownListener=dl(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 Ps={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hm(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const rl={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(rt.test(a))a=parseFloat(a);else return a;const r=Hm(a,l.target.x),o=Hm(a,l.target.y);return`${r}% ${o}%`}},rb={correct:(a,{treeScale:l,projectionDelta:r})=>{const o=a,c=qn.parse(a);if(c.length>5)return o;const h=qn.createTransformer(a),f=typeof c[0]!="number"?1:0,m=r.x.scale*l.x,y=r.y.scale*l.y;c[0+f]/=m,c[1+f]/=y;const g=Bt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),h(c)}};let Uu=!1;class ob extends O.Component{componentDidMount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o,layoutId:c}=this.props,{projection:h}=l;Nx(ub),h&&(r.group&&r.group.add(h),o&&o.register&&c&&o.register(h),Uu&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),Ps.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:r,visualElement:o,drag:c,isPresent:h}=this.props,{projection:f}=o;return f&&(f.isPresent=h,Uu=!0,c||l.layoutDependency!==r||r===void 0||l.isPresent!==h?f.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?f.promote():f.relegate()||Vt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Vc.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:c}=l;Uu=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function V1(a){const[l,r]=n1(),o=O.useContext(dc);return p.jsx(ob,{...a,layoutGroup:o,switchLayoutGroup:O.useContext(m1),isPresent:l,safeToRemove:r})}const ub={borderRadius:{...rl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rl,borderTopRightRadius:rl,borderBottomLeftRadius:rl,borderBottomRightRadius:rl,boxShadow:rb};function cb(a,l,r){const o=le(a)?a:ai(a);return o.start(Qc("",o,l,r)),o.animation}const fb=(a,l)=>a.depth-l.depth;class db{constructor(){this.children=[],this.isDirty=!1}add(l){pc(this.children,l),this.isDirty=!0}remove(l){gc(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(fb),this.isDirty=!1,this.children.forEach(l)}}function hb(a,l){const r=he.now(),o=({timestamp:c})=>{const h=c-r;h>=l&&(Ln(o),a(h-l))};return Vt.setup(o,!0),()=>Ln(o)}const _1=["TopLeft","TopRight","BottomLeft","BottomRight"],mb=_1.length,Lm=a=>typeof a=="string"?parseFloat(a):a,qm=a=>typeof a=="number"||rt.test(a);function pb(a,l,r,o,c,h){c?(a.opacity=Bt(0,r.opacity??1,gb(o)),a.opacityExit=Bt(l.opacity??1,0,yb(o))):h&&(a.opacity=Bt(l.opacity??1,r.opacity??1,o));for(let f=0;f<mb;f++){const m=`border${_1[f]}Radius`;let y=Gm(l,m),g=Gm(r,m);if(y===void 0&&g===void 0)continue;y||(y=0),g||(g=0),y===0||g===0||qm(y)===qm(g)?(a[m]=Math.max(Bt(Lm(y),Lm(g),o),0),(Pe.test(g)||Pe.test(y))&&(a[m]+="%")):a[m]=g}(l.rotate||r.rotate)&&(a.rotate=Bt(l.rotate||0,r.rotate||0,o))}function Gm(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const gb=B1(0,.5,Tp),yb=B1(.5,.95,Be);function B1(a,l,r){return o=>o<a?0:o>l?1:r(pl(a,l,o))}function Ym(a,l){a.min=l.min,a.max=l.max}function Re(a,l){Ym(a.x,l.x),Ym(a.y,l.y)}function Xm(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}function km(a,l,r,o,c){return a-=l,a=Is(a,1/r,o),c!==void 0&&(a=Is(a,1/c,o)),a}function vb(a,l=0,r=1,o=.5,c,h=a,f=a){if(Pe.test(l)&&(l=parseFloat(l),l=Bt(f.min,f.max,l/100)-f.min),typeof l!="number")return;let m=Bt(h.min,h.max,o);a===h&&(m-=l),a.min=km(a.min,l,r,m,c),a.max=km(a.max,l,r,m,c)}function Qm(a,l,[r,o,c],h,f){vb(a,l[r],l[o],l[c],l.scale,h,f)}const xb=["x","scaleX","originX"],bb=["y","scaleY","originY"];function Km(a,l,r,o){Qm(a.x,l,xb,r?r.x:void 0,o?o.x:void 0),Qm(a.y,l,bb,r?r.y:void 0,o?o.y:void 0)}function Zm(a){return a.translate===0&&a.scale===1}function U1(a){return Zm(a.x)&&Zm(a.y)}function Pm(a,l){return a.min===l.min&&a.max===l.max}function Sb(a,l){return Pm(a.x,l.x)&&Pm(a.y,l.y)}function Jm(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function H1(a,l){return Jm(a.x,l.x)&&Jm(a.y,l.y)}function Fm(a){return re(a.x)/re(a.y)}function Wm(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}class Tb{constructor(){this.members=[]}add(l){pc(this.members,l),l.scheduleRender()}remove(l){if(gc(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 o;for(let c=r;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){o=h;break}}return o?(this.promote(o),!0):!1}promote(l,r){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender(),l.resumeFrom=o,r&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0);const{crossfade:c}=l.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:r,resumingFrom:o}=l;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function wb(a,l,r){let o="";const c=a.x.translate/l.x,h=a.y.translate/l.y,f=r?.z||0;if((c||h||f)&&(o=`translate3d(${c}px, ${h}px, ${f}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),r){const{transformPerspective:g,rotate:x,rotateX:b,rotateY:w,skewX:z,skewY:V}=r;g&&(o=`perspective(${g}px) ${o}`),x&&(o+=`rotate(${x}deg) `),b&&(o+=`rotateX(${b}deg) `),w&&(o+=`rotateY(${w}deg) `),z&&(o+=`skewX(${z}deg) `),V&&(o+=`skewY(${V}deg) `)}const m=a.x.scale*l.x,y=a.y.scale*l.y;return(m!==1||y!==1)&&(o+=`scale(${m}, ${y})`),o||"none"}const Hu=["","X","Y","Z"],Ab=1e3;let Mb=0;function Lu(a,l,r,o){const{latestValues:c}=l;c[a]&&(r[a]=c[a],l.setStaticValue(a,0),o&&(o[a]=0))}function L1(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const r=A1(l);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(r,"transform",Vt,!(c||h))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&L1(o)}function q1({attachResizeListener:a,defaultParent:l,measureScroll:r,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},m=l?.()){this.id=Mb++,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(Db),this.nodes.forEach(Ob),this.nodes.forEach(Rb),this.nodes.forEach(Cb)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new db)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new xc),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const y=this.eventHandlers.get(f);y&&y.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=e1(f)&&!px(f),this.instance=f;const{layoutId:m,layout:y,visualElement:g}=this.options;if(g&&!g.current&&g.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),a){let x,b=0;const w=()=>this.root.updateBlockedByResize=!1;Vt.read(()=>{b=window.innerWidth}),a(f,()=>{const z=window.innerWidth;z!==b&&(b=z,this.root.updateBlockedByResize=!0,x&&x(),x=hb(w,250),Ps.hasAnimatedSinceResize&&(Ps.hasAnimatedSinceResize=!1,this.nodes.forEach(tp)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&g&&(m||y)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:w,layout:z})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||g.getDefaultTransition()||Hb,{onLayoutAnimationStart:X,onLayoutAnimationComplete:K}=g.getProps(),B=!this.targetLayout||!H1(this.targetLayout,z),Y=!b&&w;if(this.options.layoutRoot||this.resumeFrom||Y||b&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Oc(V,"layout"),onPlay:X,onComplete:K};(g.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(x,Y)}else b||tp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=z})}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(),Ln(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(Vb),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&&L1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const b=this.path[x];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:m,layout:y}=this.options;if(m===void 0&&!y)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($m);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Im);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zb),this.nodes.forEach(Eb),this.nodes.forEach(jb)):this.nodes.forEach(Im),this.clearAllSnapshots();const m=he.now();ee.delta=fn(0,1e3/60,m-ee.timestamp),ee.timestamp=m,ee.isProcessing=!0,ju.update.process(ee),ju.preRender.process(ee),ju.render.process(ee),ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nb),this.sharedNodes.forEach(_b)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!re(this.snapshot.measuredBox.x)&&!re(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Yt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!U1(this.projectionDelta),y=this.getTransformTemplate(),g=y?y(this.latestValues,""):void 0,x=g!==this.prevTransformTemplateValue;f&&this.instance&&(m||ra(this.latestValues)||x)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return f&&(y=this.removeTransform(y)),Lb(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return Yt();const m=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qb))){const{scroll:g}=this.root;g&&(Ia(m.x,g.offset.x),Ia(m.y,g.offset.y))}return m}removeElementScroll(f){const m=Yt();if(Re(m,f),this.scroll?.wasRoot)return m;for(let y=0;y<this.path.length;y++){const g=this.path[y],{scroll:x,options:b}=g;g!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&Re(m,f),Ia(m.x,x.offset.x),Ia(m.y,x.offset.y))}return m}applyTransform(f,m=!1){const y=Yt();Re(y,f);for(let g=0;g<this.path.length;g++){const x=this.path[g];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&ti(y,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),ra(x.latestValues)&&ti(y,x.latestValues)}return ra(this.latestValues)&&ti(y,this.latestValues),y}removeTransform(f){const m=Yt();Re(m,f);for(let y=0;y<this.path.length;y++){const g=this.path[y];if(!g.instance||!ra(g.latestValues))continue;ac(g.latestValues)&&g.updateSnapshot();const x=Yt(),b=g.measurePageBox();Re(x,b),Km(m,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,x)}return ra(this.latestValues)&&Km(m,this.latestValues),m}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!==ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:b}=this.options;if(!(!this.layout||!(x||b))){if(this.resolvedRelativeTargetAt=ee.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Yt(),this.relativeTargetOrigin=Yt(),ml(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),Re(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Yt(),this.targetWithTransforms=Yt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),K2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Re(this.target,this.layout.layoutBox),v1(this.target,this.targetDelta)):Re(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Yt(),this.relativeTargetOrigin=Yt(),ml(this.relativeTargetOrigin,this.target,w.target),Re(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ac(this.parent.latestValues)||y1(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(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ee.timestamp&&(y=!1),y)return;const{layout:g,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||x))return;Re(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,w=this.treeScale.y;i2(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Yt());const{target:z}=f;if(!z){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xm(this.prevProjectionDelta.x,this.projectionDelta.x),Xm(this.prevProjectionDelta.y,this.projectionDelta.y)),hl(this.projectionDelta,this.layoutCorrected,z,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==w||!Wm(this.projectionDelta.x,this.prevProjectionDelta.x)||!Wm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",z))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ei(),this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei()}setAnimationOrigin(f,m=!1){const y=this.snapshot,g=y?y.latestValues:{},x={...this.latestValues},b=ei();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const w=Yt(),z=y?y.source:void 0,V=this.layout?this.layout.source:void 0,X=z!==V,K=this.getStack(),B=!K||K.members.length<=1,Y=!!(X&&!B&&this.options.crossfade===!0&&!this.path.some(Ub));this.animationProgress=0;let R;this.mixTargetDelta=k=>{const H=k/1e3;ep(b.x,f.x,H),ep(b.y,f.y,H),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ml(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Bb(this.relativeTarget,this.relativeTargetOrigin,w,H),R&&Sb(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Yt()),Re(R,this.relativeTarget)),X&&(this.animationValues=x,pb(x,g,this.latestValues,H,Y,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=H},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ln(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{Ps.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ai(0)),this.currentAnimation=cb(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),f.onUpdate&&f.onUpdate(m)},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(Ab),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:g,latestValues:x}=f;if(!(!m||!y||!g)){if(this!==f&&this.layout&&g&&G1(this.options.animationType,this.layout.layoutBox,g.layoutBox)){y=this.target||Yt();const b=re(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+b;const w=re(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+w}Re(m,y),ti(m,x),hl(this.projectionDeltaWithTransform,this.layoutCorrected,m,x)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new Tb),this.sharedNodes.get(f).add(m);const g=m.options.initialPromotionConfig;m.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(m):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:m,preserveFollowOpacity:y}={}){const g=this.getStack();g&&g.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const g={};y.z&&Lu("z",f,g,this.animationValues);for(let x=0;x<Hu.length;x++)Lu(`rotate${Hu[x]}`,f,g,this.animationValues),Lu(`skew${Hu[x]}`,f,g,this.animationValues);f.render();for(const x in g)f.setStaticValue(x,g[x]),this.animationValues&&(this.animationValues[x]=g[x]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Zs(m?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Zs(m?.pointerEvents)||""),this.hasProjected&&!ra(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const x=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=wb(this.projectionDeltaWithTransform,this.treeScale,x);y&&(b=y(x,b)),f.transform=b;const{x:w,y:z}=this.projectionDelta;f.transformOrigin=`${w.origin*100}% ${z.origin*100}% 0`,g.animationValues?f.opacity=g===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:f.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const V in xl){if(x[V]===void 0)continue;const{correct:X,applyTo:K,isCSSVariable:B}=xl[V],Y=b==="none"?x[V]:X(x[V],g);if(K){const R=K.length;for(let k=0;k<R;k++)f[K[k]]=Y}else B?this.options.visualElement.renderState.vars[V]=Y:f[V]=Y}this.options.layoutId&&(f.pointerEvents=g===this?Zs(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach($m),this.root.sharedNodes.clear()}}}function Eb(a){a.updateLayout()}function jb(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=a.layout,{animationType:c}=a.options,h=l.source!==a.layout.source;c==="size"?Ve(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],w=re(b);b.min=r[x].min,b.max=b.min+w}):G1(c,l.layoutBox,r)&&Ve(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],w=re(r[x]);b.max=b.min+w,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[x].max=a.relativeTarget[x].min+w)});const f=ei();hl(f,r,l.layoutBox);const m=ei();h?hl(m,a.applyTransform(o,!0),l.measuredBox):hl(m,r,l.layoutBox);const y=!U1(f);let g=!1;if(!a.resumeFrom){const x=a.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:w}=x;if(b&&w){const z=Yt();ml(z,l.layoutBox,b.layoutBox);const V=Yt();ml(V,r,w.layoutBox),H1(z,V)||(g=!0),x.options.layoutRoot&&(a.relativeTarget=V,a.relativeTargetOrigin=z,a.relativeParent=x)}}}a.notifyListeners("didUpdate",{layout:r,snapshot:l,delta:m,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:g})}else if(a.isLead()){const{onExitComplete:r}=a.options;r&&r()}a.options.transition=void 0}function Db(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 Cb(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function Nb(a){a.clearSnapshot()}function $m(a){a.clearMeasurements()}function Im(a){a.isLayoutDirty=!1}function zb(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function tp(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function Ob(a){a.resolveTargetDelta()}function Rb(a){a.calcProjection()}function Vb(a){a.resetSkewAndRotation()}function _b(a){a.removeLeadSnapshot()}function ep(a,l,r){a.translate=Bt(l.translate,0,r),a.scale=Bt(l.scale,1,r),a.origin=l.origin,a.originPoint=l.originPoint}function np(a,l,r,o){a.min=Bt(l.min,r.min,o),a.max=Bt(l.max,r.max,o)}function Bb(a,l,r,o){np(a.x,l.x,r.x,o),np(a.y,l.y,r.y,o)}function Ub(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const Hb={duration:.45,ease:[.4,0,.1,1]},ap=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),ip=ap("applewebkit/")&&!ap("chrome/")?Math.round:Be;function lp(a){a.min=ip(a.min),a.max=ip(a.max)}function Lb(a){lp(a.x),lp(a.y)}function G1(a,l,r){return a==="position"||a==="preserve-aspect"&&!Q2(Fm(l),Fm(r),.2)}function qb(a){return a!==a.root&&a.scroll?.wasRoot}const Gb=q1({attachResizeListener:(a,l)=>bl(a,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qu={current:void 0},Y1=q1({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!qu.current){const a=new Gb({});a.mount(window),a.setOptions({layoutScroll:!0}),qu.current=a}return qu.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Yb={pan:{Feature:sb},drag:{Feature:lb,ProjectionNode:Y1,MeasureLayout:V1}};function sp(a,l,r){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,h=o[c];h&&Vt.postRender(()=>h(l,Al(l)))}class Xb extends Gn{mount(){const{current:l}=this.node;l&&(this.unmount=cx(l,(r,o)=>(sp(this.node,o,"Start"),c=>sp(this.node,c,"End"))))}unmount(){}}class kb extends Gn{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=Sl(bl(this.node.current,"focus",()=>this.onFocus()),bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rp(a,l,r){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),h=o[c];h&&Vt.postRender(()=>h(l,Al(l)))}class Qb extends Gn{mount(){const{current:l}=this.node;l&&(this.unmount=mx(l,(r,o)=>(rp(this.node,o,"Start"),(c,{success:h})=>rp(this.node,c,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const cc=new WeakMap,Gu=new WeakMap,Kb=a=>{const l=cc.get(a.target);l&&l(a)},Zb=a=>{a.forEach(Kb)};function Pb({root:a,...l}){const r=a||document;Gu.has(r)||Gu.set(r,{});const o=Gu.get(r),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(Zb,{root:a,...l})),o[c]}function Jb(a,l,r){const o=Pb(l);return cc.set(a,r),o.observe(a),()=>{cc.delete(a),o.unobserve(a)}}const Fb={some:0,all:1};class Wb extends Gn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:r,margin:o,amount:c="some",once:h}=l,f={root:r?r.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:Fb[c]},m=y=>{const{isIntersecting:g}=y;if(this.isInView===g||(this.isInView=g,h&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),w=g?x:b;w&&w(y)};return Jb(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:r}=this.node;["amount","margin","root"].some($b(l,r))&&this.startObserver()}unmount(){}}function $b({viewport:a={}},{viewport:l={}}={}){return r=>a[r]!==l[r]}const Ib={inView:{Feature:Wb},tap:{Feature:Qb},focus:{Feature:kb},hover:{Feature:Xb}},t7={layout:{ProjectionNode:Y1,MeasureLayout:V1}},e7={...L2,...Ib,...Yb,...t7},xt=e2(e7,m2),n7=({setView:a})=>{const[l,r]=O.useState(!1),[o,c]=O.useState(!1),h=O.useRef(null);O.useEffect(()=>{const m=()=>{r(window.scrollY>10)};window.addEventListener("scroll",m);const y=g=>{h.current&&!h.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",y),()=>{window.removeEventListener("scroll",m),document.removeEventListener("mousedown",y)}},[]);const f=m=>{a(m)};return p.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-blue-100",children:[p.jsx("header",{className:`fixed top-0 w-full z-50 transition-all duration-300 ${l?"bg-white shadow-lg":"bg-transparent"}`,children:p.jsx("nav",{className:"container mx-auto px-4 py-4",children:p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx(xt.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},className:"text-2xl font-bold text-blue-600",children:"SolarEd"}),p.jsxs("div",{className:"hidden md:flex items-center space-x-6",children:[p.jsx("a",{href:"#",className:"font-medium text-blue-600 hover:text-blue-800 transition-colors duration-200",children:"Home"}),p.jsxs("div",{className:"relative",ref:h,children:[p.jsxs(xt.button,{className:"font-medium text-gray-700 hover:text-blue-600 transition-colors duration-200 flex items-center",onClick:()=>c(!o),whileHover:{scale:1.05},whileTap:{scale:.95},children:["Features",p.jsx("svg",{className:`w-4 h-4 ml-1 transition-transform duration-200 ${o?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),p.jsx(Ks,{children:o&&p.jsx(xt.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},className:"absolute top-full left-0 mt-2 w-64 bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden z-50",children:p.jsx("div",{className:"p-2",children:[{name:"Lead Calculator",description:"Calculate energy savings & environmental impact",icon:"📊",color:"bg-gradient-to-r from-blue-500 to-blue-600",view:"calculator"},{name:"Games with Quiz",description:"Interactive learning through fun games",icon:"🎮",color:"bg-gradient-to-r from-purple-500 to-purple-600",view:"games"},{name:"Solar Discovery",description:"Explore solar technology & applications",icon:"🔍",color:"bg-gradient-to-r from-green-500 to-green-600",view:"discovery"}].map(m=>p.jsxs(xt.a,{href:"#",className:"flex items-center p-3 rounded-lg hover:bg-blue-50 transition-colors duration-200 group",whileHover:{x:5},onClick:y=>{y.preventDefault(),f(m.view),c(!1)},children:[p.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center text-white ${m.color} text-lg`,children:m.icon}),p.jsxs("div",{className:"ml-3",children:[p.jsx("div",{className:"font-semibold text-gray-900 group-hover:text-blue-600 transition-colors duration-200",children:m.name}),p.jsx("div",{className:"text-sm text-gray-600",children:m.description})]})]},m.name))})})})]}),p.jsx("a",{href:"#",className:"font-medium text-gray-700 hover:text-blue-600 transition-colors duration-200",children:"About"}),p.jsx("a",{href:"#",className:"font-medium text-gray-700 hover:text-blue-600 transition-colors duration-200",children:"Contact"})]}),p.jsx(xt.button,{onClick:()=>f("calculator"),className:"bg-gradient-to-r from-blue-600 to-purple-600 text-white px-6 py-2 rounded-lg font-medium hover:from-blue-700 hover:to-purple-700 transition-all duration-300 shadow-lg hover:shadow-xl",whileHover:{scale:1.05,y:-2},whileTap:{scale:.98},children:"Get Started"})]})})}),p.jsxs("section",{className:"relative pt-32 pb-20 px-4 overflow-hidden",children:[p.jsxs("div",{className:"absolute top-0 left-0 w-full h-full opacity-10",children:[p.jsx("div",{className:"absolute top-20 left-10 w-72 h-72 bg-blue-400 rounded-full blur-3xl animate-pulse"}),p.jsx("div",{className:"absolute top-40 right-20 w-96 h-96 bg-purple-400 rounded-full blur-3xl animate-pulse delay-1000"}),p.jsx("div",{className:"absolute bottom-20 left-1/4 w-80 h-80 bg-green-400 rounded-full blur-3xl animate-pulse delay-500"})]}),p.jsxs("div",{className:"container mx-auto text-center relative z-10",children:[p.jsx(xt.h1,{className:"text-5xl md:text-7xl font-bold bg-gradient-to-r from-blue-800 via-purple-700 to-blue-800 bg-clip-text text-transparent mb-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},children:"Solar Education Game"}),p.jsx(xt.p,{className:"text-xl md:text-2xl text-gray-700 max-w-4xl mx-auto mb-12 leading-relaxed",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2,ease:"easeOut"},children:"Revolutionizing solar energy education through immersive interactive experiences, cutting-edge learning tools, and engaging discovery platforms that empower the next generation of renewable energy innovators and environmental champions."}),p.jsxs(xt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4,ease:"easeOut"},className:"flex flex-col sm:flex-row gap-6 justify-center",children:[p.jsx(xt.button,{onClick:()=>f("calculator"),className:"bg-gradient-to-r from-blue-600 to-purple-600 text-white px-10 py-4 rounded-xl font-semibold text-lg hover:from-blue-700 hover:to-purple-700 transition-all duration-300 shadow-2xl hover:shadow-3xl transform hover:-translate-y-1",whileHover:{scale:1.05},whileTap:{scale:.98},children:"Start Learning Journey"}),p.jsx(xt.button,{className:"bg-white text-gray-800 px-10 py-4 rounded-xl font-semibold text-lg border-2 border-blue-600 hover:bg-blue-50 transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1",whileHover:{scale:1.05},whileTap:{scale:.98},children:p.jsx("span",{className:"bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Watch Interactive Demo"})})]})]})]}),p.jsx("section",{className:"py-20 px-4 bg-gradient-to-b from-white to-blue-50",children:p.jsxs("div",{className:"container mx-auto",children:[p.jsx(xt.h2,{className:"text-4xl md:text-5xl font-bold text-center bg-gradient-to-r from-blue-800 to-purple-700 bg-clip-text text-transparent mb-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},children:"Our Premium Learning Suite"}),p.jsx(xt.p,{className:"text-xl text-gray-600 text-center max-w-2xl mx-auto mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8,delay:.2},children:"Experience the future of solar education with our comprehensive suite of interactive tools and engaging platforms"}),p.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{title:"Lead Calculator",description:"Harness the power of advanced analytics to calculate precise energy savings, ROI projections, and environmental impact assessments. Our intelligent system analyzes your location, energy consumption patterns, and local incentives to provide personalized solar solutions with accurate financial forecasts.",icon:"📊",gradient:"from-blue-500 to-blue-600",hoverGradient:"from-blue-600 to-blue-700",features:["Real-time energy calculations","ROI projections","Environmental impact analysis","Customizable parameters"],view:"calculator"},{title:"Games with Quiz",description:"Immerse yourself in our gamified learning ecosystem featuring interactive challenges, achievement systems, and progressive difficulty levels. Master solar concepts through engaging gameplay while earning badges and competing on leaderboards with learners worldwide.",icon:"🎮",gradient:"from-purple-500 to-purple-600",hoverGradient:"from-purple-600 to-purple-700",features:["Interactive challenges","Achievement system","Progressive learning","Global leaderboards"],view:"games"},{title:"Solar Discovery",description:"Explore the solar universe through our comprehensive discovery platform featuring 3D simulations, interactive timelines, and real-world case studies. Dive deep into solar technology evolution, installation techniques, and innovative applications across various industries.",icon:"🔍",gradient:"from-green-500 to-green-600",hoverGradient:"from-green-600 to-green-700",features:["3D simulations","Interactive timelines","Case studies","Industry applications"],view:"discovery"}].map((m,y)=>p.jsxs(xt.div,{className:"group bg-white p-8 rounded-2xl shadow-xl hover:shadow-2xl transition-all duration-500 border border-gray-100 hover:border-blue-200 flex flex-col",initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,delay:y*.1},whileHover:{y:-10,scale:1.02},children:[p.jsx("div",{className:`w-20 h-20 bg-gradient-to-r ${m.gradient} rounded-2xl flex items-center justify-center text-3xl text-white mb-6 group-hover:${m.hoverGradient} transition-all duration-300 shadow-lg`,children:m.icon}),p.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4 group-hover:text-blue-600 transition-colors duration-300",children:m.title}),p.jsxs("p",{className:"text-gray-600 mb-6 leading-relaxed flex-grow",children:[" ",m.description]}),p.jsxs("div",{className:"mb-6",children:[p.jsx("h4",{className:"font-semibold text-gray-800 mb-3",children:"Key Features:"}),p.jsx("ul",{className:"space-y-2",children:m.features.map((g,x)=>p.jsxs("li",{className:"flex items-center text-sm text-gray-600",children:[p.jsx("span",{className:"w-2 h-2 bg-blue-400 rounded-full mr-3"}),g]},x))})]}),p.jsxs(xt.button,{onClick:()=>f(m.view),className:`mt-auto w-full bg-gradient-to-r ${m.gradient} text-white py-3 rounded-xl font-semibold hover:${m.hoverGradient} transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1`,whileHover:{scale:1.02},whileTap:{scale:.98},children:["Explore ",m.title]})]},m.title))})]})}),p.jsx("footer",{className:"bg-gradient-to-br from-blue-900 to-purple-900 text-white py-16 px-4",children:p.jsxs("div",{className:"container mx-auto",children:[p.jsxs("div",{className:"grid md:grid-cols-4 gap-8",children:[p.jsxs("div",{children:[p.jsx(xt.h3,{className:"text-2xl font-bold mb-6 bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:"SolarEd Pro"}),p.jsx(xt.p,{className:"text-blue-200 leading-relaxed",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},children:"Transforming solar energy education through cutting-edge interactive platforms, immersive learning experiences, and innovative discovery tools that inspire environmental leadership."})]}),p.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:[p.jsx("h4",{className:"font-semibold text-blue-300 mb-6",children:"Learning Tools"}),p.jsx("ul",{className:"space-y-3",children:["Lead Calculator","Interactive Games","Quiz Platform","Solar Discovery","Learning Paths"].map(m=>p.jsx("li",{children:p.jsxs("a",{href:"#",className:"text-blue-200 hover:text-white transition-all duration-300 hover:pl-2 flex items-center",children:[p.jsx("span",{className:"w-1 h-1 bg-blue-400 rounded-full mr-3 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),m]})},m))})]}),p.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.3},children:[p.jsx("h4",{className:"font-semibold text-blue-300 mb-6",children:"Resources"}),p.jsx("ul",{className:"space-y-3",children:["Blog & Articles","Video Tutorials","Expert Guides","FAQ Center","Support Portal"].map(m=>p.jsx("li",{children:p.jsxs("a",{href:"#",className:"text-blue-200 hover:text-white transition-all duration-300 hover:pl-2 flex items-center",children:[p.jsx("span",{className:"w-1 h-1 bg-blue-400 rounded-full mr-3 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),m]})},m))})]}),p.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:[p.jsx("h4",{className:"font-semibold text-blue-300 mb-6",children:"Connect With Us"}),p.jsxs("div",{className:"mb-6",children:[p.jsxs("p",{className:"text-blue-200 mb-2 flex items-center",children:[p.jsx("span",{className:"w-5 h-5 bg-blue-600 rounded-full flex items-center justify-center mr-3",children:"📧"}),"info@solar-edpro.com"]}),p.jsxs("p",{className:"text-blue-200 flex items-center",children:[p.jsx("span",{className:"w-5 h-5 bg-blue-600 rounded-full flex items-center justify-center mr-3",children:"📞"}),"+1 (555) 123-EDU"]})]}),p.jsx("div",{className:"flex space-x-4",children:[{name:"facebook",color:"hover:text-blue-400"},{name:"twitter",color:"hover:text-blue-400"},{name:"instagram",color:"hover:text-pink-400"},{name:"linkedin",color:"hover:text-blue-400"},{name:"youtube",color:"hover:text-red-400"}].map(m=>p.jsxs(xt.a,{href:"#",className:`w-10 h-10 bg-blue-800 rounded-full flex items-center justify-center text-blue-200 ${m.color} transition-all duration-300 hover:bg-blue-700 hover:scale-110`,whileHover:{y:-2},children:[p.jsx("span",{className:"sr-only",children:m.name}),p.jsx("span",{className:"text-lg",children:"📱"})]},m.name))})]})]}),p.jsx(xt.div,{className:"border-t border-blue-800 mt-12 pt-8 text-center text-blue-300",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6,delay:.5},children:p.jsxs("p",{className:"text-sm",children:["© ",new Date().getFullYear()," Solar Education Game Pro. All rights reserved. |",p.jsx("a",{href:"#",className:"text-blue-400 hover:underline",children:" Privacy Policy"})," |",p.jsx("a",{href:"#",className:"text-blue-400 hover:underline",children:" Terms of Service"})]})})]})})]})};function a7({persona:a,setView:l}){const[r,o]=O.useState(3e3),[c,h]=O.useState(8),[f,m]=O.useState(600),[y,g]=O.useState(10),[x,b]=O.useState(20),[w,z]=O.useState(70),[V,X]=O.useState(12),[K,B]=O.useState(60),[Y,R]=O.useState({name:"",phone:"",city:""}),[k,H]=O.useState(""),Z="https://script.google.com/macros/s/AKfycbxcF-bAsAxf_I1oPGmsEVSGlg3SsgB-X0LyO4N2V5CICY7qYYHJuTGzmkpBcAI7hsvH/exec",F=r/c,J=F/30/4/.2/(1-y/100),ct=F*c,$=J*55e3,ot=$*(x/100),et=$-ot,Nt=et*(w/100),yt=V/100/12,lt=Nt*yt/(1-Math.pow(1+yt,-K)),C=et/((ct-(lt>0?lt:0))*12),q=async Q=>{Q.preventDefault(),H("Submitting lead...");try{const T=await(await fetch(Z,{method:"POST",headers:{"Content-Type":"text/plain;charset=utf-8"},body:JSON.stringify({persona:a,name:Y.name,phone:Y.phone,city:Y.city,systemSize:isNaN(J)?"N/A":J.toFixed(2),monthlySavings:isNaN(ct)?"N/A":ct.toFixed(2)})})).json();if(T.result==="success")H("✅ Thank you! Your information has been submitted successfully."),R({name:"",phone:"",city:""});else throw new Error(T.error||"An unknown error occurred on the server.")}catch(ht){console.error("Error submitting lead:",ht),H("❌ An error occurred. Please try again.")}};return p.jsx("div",{className:"calculator-view min-h-screen bg-gradient-to-br from-blue-50 to-blue-100 flex flex-col items-center justify-start p-4 md:p-8",children:p.jsxs("div",{className:"bg-white p-8 rounded-2xl shadow-xl w-full max-w-3xl flex flex-col gap-8",children:[p.jsxs("h1",{className:"text-4xl font-bold bg-gradient-to-r from-blue-800 via-purple-700 to-blue-800 bg-clip-text text-transparent text-center",children:["Solar Calculator for ",a]}),p.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl shadow-inner",children:[p.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:"Smart Sizing"}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsx("span",{children:"Monthly Bill (₹):"}),p.jsx("input",{type:"number",value:r,onChange:Q=>o(Q.target.value),className:"w-full p-2 border rounded-md"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsx("span",{children:"Tariff (₹/kWh):"}),p.jsx("input",{type:"number",value:c,onChange:Q=>h(Q.target.value),className:"w-full p-2 border rounded-md"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsx("span",{children:"Roof Area (sq ft):"}),p.jsx("input",{type:"number",value:f,onChange:Q=>m(Q.target.value),className:"w-full p-2 border rounded-md"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsx("span",{children:"Shade (%):"}),p.jsx("input",{type:"number",value:y,onChange:Q=>g(Q.target.value),className:"w-full p-2 border rounded-md"})]})]})]}),p.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl shadow-inner",children:[p.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:"Instant Impact"}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 text-center",children:[p.jsxs("div",{className:"bg-white p-4 rounded-xl shadow-md",children:[p.jsxs("p",{className:"text-lg font-bold text-blue-600",children:[isNaN(J)?"0.00":J.toFixed(2)," kW"]}),p.jsx("p",{className:"text-sm text-gray-500",children:"System Size"})]}),p.jsxs("div",{className:"bg-white p-4 rounded-xl shadow-md",children:[p.jsxs("p",{className:"text-lg font-bold text-blue-600",children:["₹",isNaN(ct)?"0.00":ct.toFixed(2)]}),p.jsx("p",{className:"text-sm text-gray-500",children:"Monthly Savings"})]}),p.jsxs("div",{className:"bg-white p-4 rounded-xl shadow-md",children:[p.jsx("p",{className:"text-lg font-bold text-blue-600",children:isFinite(C)&&C>0?`${C.toFixed(2)} years`:"N/A"}),p.jsx("p",{className:"text-sm text-gray-500",children:"Payback Period"})]})]})]}),p.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl shadow-inner",children:[p.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:"Finance Knobs"}),p.jsxs("div",{className:"flex flex-col gap-4",children:[p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsxs("span",{className:"font-semibold text-gray-700",children:["Subsidy (%): ",p.jsxs("span",{className:"text-blue-600 font-bold",children:[x,"%"]})]}),p.jsx("input",{type:"range",min:"0",max:"100",value:x,onChange:Q=>b(Q.target.value),className:"w-full"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsxs("span",{className:"font-semibold text-gray-700",children:["Loan (% of Cost): ",p.jsxs("span",{className:"text-blue-600 font-bold",children:[w,"%"]})]}),p.jsx("input",{type:"range",min:"0",max:"100",value:w,onChange:Q=>z(Q.target.value),className:"w-full"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsxs("span",{className:"font-semibold text-gray-700",children:["Interest Rate (%): ",p.jsxs("span",{className:"text-blue-600 font-bold",children:[V,"%"]})]}),p.jsx("input",{type:"range",min:"1",max:"20",step:"0.5",value:V,onChange:Q=>X(Q.target.value),className:"w-full"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsxs("span",{className:"font-semibold text-gray-700",children:["Loan Tenure (months): ",p.jsx("span",{className:"text-blue-600 font-bold",children:K})]}),p.jsx("input",{type:"range",min:"12",max:"120",step:"12",value:K,onChange:Q=>B(Q.target.value),className:"w-full"})]})]}),p.jsxs("div",{className:"mt-6 text-center grid grid-cols-1 md:grid-cols-2 gap-6",children:[p.jsxs("div",{className:"bg-white p-4 rounded-xl shadow-md",children:[p.jsxs("p",{className:"text-lg font-bold text-blue-600",children:["₹",isNaN(lt)||!isFinite(lt)?"0.00":lt.toFixed(2)]}),p.jsx("p",{className:"text-sm text-gray-500",children:"Monthly EMI"})]}),p.jsxs("div",{className:"bg-white p-4 rounded-xl shadow-md",children:[p.jsxs("p",{className:"text-lg font-bold text-blue-600",children:["₹",isNaN(et)?"0.00":et.toFixed(2)]}),p.jsx("p",{className:"text-sm text-gray-500",children:"Total Upfront Cost"})]})]})]}),p.jsxs("div",{className:"bg-gray-50 p-6 rounded-xl shadow-inner",children:[p.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-4 text-center",children:"Free Virtual Site Check"}),p.jsxs("form",{onSubmit:q,className:"flex flex-col gap-4",children:[p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsx("span",{className:"font-semibold text-gray-700",children:"Name:"}),p.jsx("input",{type:"text",value:Y.name,onChange:Q=>R({...Y,name:Q.target.value}),required:!0,className:"w-full p-2 border border-gray-300 rounded-md"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsx("span",{className:"font-semibold text-gray-700",children:"Phone:"}),p.jsx("input",{type:"tel",value:Y.phone,onChange:Q=>R({...Y,phone:Q.target.value}),required:!0,className:"w-full p-2 border border-gray-300 rounded-md"})]}),p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsx("span",{className:"font-semibold text-gray-700",children:"City:"}),p.jsx("input",{type:"text",value:Y.city,onChange:Q=>R({...Y,city:Q.target.value}),required:!0,className:"w-full p-2 border border-gray-300 rounded-md"})]}),k&&p.jsx("p",{className:"text-center text-sm text-gray-600",children:k}),p.jsx("button",{type:"submit",className:"mt-2 bg-gradient-to-r from-blue-600 to-purple-600 text-white font-semibold py-3 px-8 rounded-lg shadow-lg hover:shadow-xl hover:-translate-y-1 transition-transform",children:"Get Your Free Check"})]})]}),p.jsx("div",{className:"mt-6 text-center",children:p.jsx("button",{onClick:()=>l("home"),className:"bg-white text-gray-800 px-10 py-3 rounded-xl font-semibold text-lg border-2 border-blue-600 hover:bg-blue-50 transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1",children:"← Back to Home"})})]})})}function i7({onGoHome:a}){const[l,r]=O.useState("start"),[o,c]=O.useState(Array(9).fill(null)),[h,f]=O.useState(!0),[m,y]=O.useState(null),[g,x]=O.useState(1),[b,w]=O.useState(0),[z,V]=O.useState(3e3),[X,K]=O.useState(60),[B,Y]=O.useState(""),R=O.useCallback($=>{const ot=[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]];for(let et=0;et<ot.length;et++){const[Nt,yt,lt]=ot[et];if($[Nt]&&$[Nt]===$[yt]&&$[Nt]===$[lt])return{winner:$[Nt],line:ot[et]}}return null},[]),k=O.useCallback(()=>{y(null),c(Array(9).fill(null)),Y(""),f(!0)},[]),H=O.useCallback(()=>{let $=[...o];for(let et=0;et<9;et++)if(!$[et]){if($[et]="☁️",R($)?.winner==="☁️"){c($),f(!0);return}$[et]=null}for(let et=0;et<9;et++)if(!$[et]){if($[et]="☀️",R($)?.winner==="☀️"){let Nt=[...o];Nt[et]="☁️",c(Nt),f(!0);return}$[et]=null}const ot=[4,0,2,6,8,1,3,5,7];for(const et of ot)if(!o[et]){let Nt=[...o];Nt[et]="☁️",c(Nt),f(!0);return}},[o,R]);O.useEffect(()=>{if(l==="playing"&&X>0){const $=setTimeout(()=>K(X-1),1e3);return()=>clearTimeout($)}X===0&&r(b>=z?"levelComplete":"gameOver")},[l,X,b,z]),O.useEffect(()=>{if(m)return;const $=R(o);if($)y($),$.winner==="☀️"?(Y("USER WINS"),w(ot=>ot+1e3)):Y("SYSTEM WINS"),setTimeout(k,1500);else if(o.every(ot=>ot!==null))Y("DRAW"),setTimeout(k,1500);else if(!h&&l==="playing"){const ot=setTimeout(H,700);return()=>clearTimeout(ot)}},[o,h,m,k,H,l,R]),O.useEffect(()=>{b>=z&&l==="playing"&&r("levelComplete")},[b,z,l]);const Z=$=>{if(!h||o[$]||m||l!=="playing")return;const ot=[...o];ot[$]="☀️",c(ot),f(!1)},F=()=>{r("playing"),x(1),w(0),V(3e3),K(60),k()},J=()=>{const $=g+1;x($),w(0),V(3e3+($-1)*1e3),K(60),r("playing"),k()},ct=()=>r(l==="playing"?"paused":"playing");return p.jsxs("div",{style:Mt.container,children:[B&&p.jsx("div",{style:{...Mt.overlay,...Mt.overlayGlow},children:B}),l==="start"&&p.jsxs("div",{style:Mt.screen,children:[p.jsx("h1",{style:Mt.h1,children:"Solar XO"}),p.jsx("button",{style:Mt.btn,onClick:F,children:"START"}),p.jsx("button",{style:Mt.btn,onClick:a,children:"Back to Game Hub"})]}),l==="levelComplete"&&p.jsxs("div",{style:Mt.screen,children:[p.jsx("h2",{style:Mt.h2,children:"TARGET ACHIEVED!"}),p.jsxs("button",{style:Mt.btn,onClick:J,children:["Start Level ",g+1]}),p.jsx("button",{style:Mt.btn,onClick:a,children:"Home"})]}),l==="gameOver"&&p.jsxs("div",{style:Mt.screen,children:[p.jsx("h2",{style:Mt.h2,children:"OOPS! YOU FAILED"}),p.jsx("button",{style:Mt.btn,onClick:F,children:"TRY AGAIN"}),p.jsx("button",{style:Mt.btn,onClick:a,children:"Home"})]}),["playing","paused"].includes(l)&&p.jsxs("div",{style:Mt.ui,children:[p.jsxs("header",{style:Mt.header,children:[p.jsxs("div",{children:["Level: ",p.jsx("span",{style:Mt.highlight,children:g})]}),p.jsxs("div",{children:["Time: ",p.jsxs("span",{style:Mt.highlight,children:[X,"s"]})]}),p.jsxs("div",{children:[p.jsx("button",{style:Mt.smallBtn,onClick:ct,children:l==="paused"?"▶️":"⏸️"}),p.jsx("button",{style:Mt.smallBtn,onClick:a,children:"🏠"})]})]}),p.jsxs("div",{style:Mt.meter,children:[p.jsx("div",{style:{...Mt.bar,width:`${Math.min(b/z*100,100)}%`}}),p.jsxs("div",{style:Mt.barText,children:[b," / ",z," kWh"]})]}),p.jsx("div",{style:Mt.board,children:o.map(($,ot)=>p.jsx("div",{style:{...Mt.square,...m?.line?.includes(ot)?Mt.squareWin:{}},onClick:()=>Z(ot),children:p.jsx("span",{children:$})},ot))}),l==="paused"&&p.jsx("div",{style:{...Mt.overlay,...Mt.overlayGlow},children:"PAUSED"})]})]})}const l7=` |
| radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px), |
| radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px), |
| radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px) |
| `,Mt={container:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",fontFamily:"Arial, sans-serif",backgroundColor:"#00111f",backgroundImage:l7,backgroundSize:"550px 550px, 350px 350px, 250px 250px",backgroundPosition:"0 0, 40px 60px, 130px 270px",color:"#fff",position:"relative"},board:{display:"grid",gridTemplateColumns:"repeat(3,110px)",gridTemplateRows:"repeat(3,110px)",gap:"5px",marginTop:"20px"},square:{width:"110px",height:"110px",display:"flex",justifyContent:"center",alignItems:"center",border:"2px solid #FFD54F",borderRadius:"8px",cursor:"pointer",fontSize:"3rem",backgroundColor:"rgba(255,255,255,0.1)",transition:"all 0.3s ease"},squareWin:{backgroundColor:"#FFEB3B",color:"#000"},ui:{padding:"20px",background:"rgba(0,0,0,0.6)",borderRadius:"15px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"10px",fontSize:"1rem"},highlight:{color:"#FF9800",fontWeight:"bold"},smallBtn:{background:"#FFC107",border:"none",color:"#000",borderRadius:"5px",marginLeft:"5px",padding:"5px 10px",cursor:"pointer"},meter:{width:"100%",height:"25px",backgroundColor:"#eee",borderRadius:"5px",border:"1px solid #ccc",position:"relative",marginBottom:"10px"},bar:{height:"100%",background:"linear-gradient(90deg,#FFEB3B,#FF9800)",borderRadius:"5px"},barText:{position:"absolute",top:"0",left:"0",width:"100%",textAlign:"center",fontSize:"0.8rem",fontWeight:"bold",color:"#333"},screen:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"20px",padding:"30px",background:"rgba(255,255,255,0.1)",borderRadius:"15px"},h1:{fontSize:"2.5rem",color:"#FFEB3B"},h2:{fontSize:"1.5rem",color:"#2196F3"},btn:{padding:"10px 25px",fontSize:"1rem",background:"#FF9800",border:"none",color:"#fff",borderRadius:"5px",cursor:"pointer"},overlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"3rem",background:"rgba(0,0,0,0.5)",zIndex:10},overlayGlow:{color:"#FFEB3B",animation:"glowPulse 1.5s infinite alternate"}},Yu=document.styleSheets[0];Yu&&Yu.insertRule(` |
| @keyframes glowPulse { |
| from { text-shadow: 0 0 5px #FFEB3B; } |
| to { text-shadow: 0 0 15px #FF9800; } |
| }`,Yu.cssRules.length);const Xu=()=>p.jsx("style",{children:` |
| @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap'); |
| |
| .quiz-game-container { |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| min-height: 100vh; |
| padding: 20px; |
| font-family: 'Orbitron', sans-serif; |
| background-color: #0b0f1a; /* dark navy */ |
| background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px); |
| background-size: 40px 40px; /* subtle star grid */ |
| color: #e0e0e0; |
| } |
| |
| .quiz-card { |
| width: 100%; |
| max-width: 800px; |
| padding: 30px 40px; |
| background: rgba(20, 24, 40, 0.85); |
| border: 1px solid #4ac7e0; |
| border-radius: 15px; |
| box-shadow: 0 0 10px rgba(74,199,224,0.15); |
| backdrop-filter: blur(6px); |
| text-align: center; |
| } |
| |
| .quiz-header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| padding-bottom: 15px; |
| margin-bottom: 20px; |
| border-bottom: 1px solid rgba(74,199,224, 0.3); |
| } |
| |
| .quiz-title { |
| font-size: 2rem; |
| color: #ffd93d; |
| text-shadow: 0 0 4px rgba(255,217,61,0.3); |
| margin: 0; |
| } |
| |
| .quiz-stat { |
| font-size: 1rem; |
| background: rgba(74,199,224,0.1); |
| padding: 6px 12px; |
| border-radius: 6px; |
| border: 1px solid rgba(74,199,224,0.4); |
| flex-shrink: 0; |
| } |
| |
| .quiz-stat strong { |
| color: #ffd93d; |
| } |
| |
| .quiz-question { |
| font-size: 1.3rem; |
| line-height: 1.5; |
| margin-bottom: 30px; |
| min-height: 60px; |
| } |
| |
| .quiz-options { |
| display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); |
| gap: 15px; |
| } |
| |
| .quiz-option-btn { |
| font-family: 'Orbitron', sans-serif; |
| font-size: 1rem; |
| padding: 15px; |
| background: rgba(255,255,255,0.05); |
| border: 1px solid #4ac7e0; |
| color: #4ac7e0; |
| border-radius: 8px; |
| cursor: pointer; |
| transition: all 0.25s ease; |
| } |
| |
| .quiz-option-btn:hover:not(:disabled) { |
| background-color: rgba(74,199,224,0.15); |
| color: #fff; |
| transform: translateY(-2px); |
| } |
| |
| .quiz-option-btn:disabled { |
| cursor: not-allowed; |
| opacity: 0.6; |
| } |
| |
| .quiz-option-btn.correct { |
| background-color: #28a745; |
| border-color: #28a745; |
| color: #fff; |
| } |
| |
| .quiz-option-btn.wrong { |
| background-color: #dc3545; |
| border-color: #dc3545; |
| color: #fff; |
| } |
| |
| .quiz-explanation { |
| margin-top: 20px; |
| height: 0; |
| opacity: 0; |
| overflow: hidden; |
| transition: opacity 0.4s ease, height 0.4s ease; |
| font-size: 1rem; |
| color: #ffd93d; |
| } |
| |
| .quiz-explanation.visible { |
| height: auto; |
| opacity: 1; |
| min-height: 40px; |
| } |
| |
| .quiz-card h2 { |
| font-size: 2rem; |
| color: #ffd93d; |
| text-shadow: 0 0 4px rgba(255,217,61,0.3); |
| margin-bottom: 15px; |
| } |
| |
| .quiz-card p { |
| font-size: 1.3rem; |
| margin-bottom: 25px; |
| } |
| |
| .quiz-endscreen-buttons { |
| display: flex; |
| justify-content: center; |
| gap: 15px; |
| } |
| |
| .quiz-endscreen-buttons button { |
| font-family: 'Orbitron', sans-serif; |
| font-size: 1rem; |
| padding: 12px 25px; |
| background: rgba(255,255,255,0.05); |
| border: 1px solid #4ac7e0; |
| color: #4ac7e0; |
| border-radius: 8px; |
| cursor: pointer; |
| transition: all 0.25s ease; |
| } |
| |
| .quiz-endscreen-buttons button:hover { |
| background-color: rgba(74,199,224,0.15); |
| color: #fff; |
| transform: translateY(-2px); |
| } |
| `});function s7({onGoHome:a}){const[l,r]=O.useState([]),[o,c]=O.useState(1),[h,f]=O.useState(0),[m,y]=O.useState(null),[g,x]=O.useState([]),[b,w]=O.useState("idle"),[z,V]=O.useState(null),[X,K]=O.useState(!0),B="https://script.google.com/macros/s/AKfycbzmEeBF7IEhuf3o5nGCBcFMynVa2UqMEsZbTTka2e5lHTWIsG6vUh8HpgGXN01cTxwd-Q/exec";O.useEffect(()=>{fetch(B).then(k=>k.json()).then(k=>{r(k),K(!1)}).catch(k=>{console.error("Error fetching Google Sheet data:",k),K(!1)})},[]),O.useEffect(()=>{if(!X&&l.length>0){const k=l.filter(H=>H.level===o);x(k)}},[o,l,X]),O.useEffect(()=>{if(g.length>0){const k=Math.floor(Math.random()*g.length);y(g[k])}else!X&&l.length>0&&y(null)},[g,X,l]);const Y=()=>{const k=o+1;l.some(H=>H.level===k)?c(k):(alert("You've completed all the levels! Amazing!"),a())},R=k=>{b==="idle"&&(V(k),k===m.correctAnswer?(w("correct"),f(H=>H+100)):w("wrong"),setTimeout(()=>{x(H=>H.filter(Z=>Z.question!==m.question)),w("idle"),V(null)},2e3))};return X?p.jsxs("div",{className:"quiz-game-container",children:[p.jsx(Xu,{}),p.jsx("div",{className:"quiz-card",children:p.jsx("h2",{children:"Fetching Questions..."})})]}):m?p.jsxs("div",{className:`quiz-game-container ${b}`,children:[p.jsx(Xu,{}),p.jsxs("div",{className:"quiz-card",children:[p.jsxs("header",{className:"quiz-header",children:[p.jsxs("div",{className:"quiz-stat",children:["Level: ",p.jsx("strong",{children:o})]}),p.jsx("h1",{className:"quiz-title",children:"Solar Challenge"}),p.jsxs("div",{className:"quiz-stat",children:["Score: ",p.jsx("strong",{children:h})]})]}),p.jsxs("main",{className:"quiz-main",children:[p.jsx("p",{className:"quiz-question",children:m.question}),p.jsxs("div",{className:"quiz-options",children:[m.type==="multiple-choice"&&m.options.map((k,H)=>p.jsx("button",{onClick:()=>R(k),className:`quiz-option-btn |
| ${b!=="idle"&&k===m.correctAnswer?"correct":""} |
| ${b==="wrong"&&k===z?"wrong":""}`,disabled:b!=="idle",children:k},H)),m.type==="true-false"&&p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>R(!0),className:`quiz-option-btn ${b!=="idle"&&m.correctAnswer===!0?"correct":""} ${b==="wrong"&&z===!0?"wrong":""}`,disabled:b!=="idle",children:"True"}),p.jsx("button",{onClick:()=>R(!1),className:`quiz-option-btn ${b!=="idle"&&m.correctAnswer===!1?"correct":""} ${b==="wrong"&&z===!1?"wrong":""}`,disabled:b!=="idle",children:"False"})]})]}),p.jsx("div",{className:`quiz-explanation ${b!=="idle"?"visible":""}`,children:b!=="idle"&&p.jsx("p",{children:m.explanation})})]})]})]}):p.jsxs("div",{className:"quiz-game-container",children:[p.jsx(Xu,{}),p.jsxs("div",{className:"quiz-card",children:[p.jsxs("h2",{children:["Level ",o," Complete!"]}),p.jsxs("p",{children:["Your Score: ",h]}),p.jsxs("div",{className:"quiz-endscreen-buttons",children:[p.jsx("button",{onClick:a,children:"Game Hub"}),p.jsx("button",{onClick:Y,children:"Next Level"})]})]})]})}const ol={1:{time:60,pointsPerPart:100,parts:[{id:"sun1",name:"The Sun",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.106a.75.75 0 010 1.06l-1.591 1.59a.75.75 0 11-1.06-1.06l1.59-1.591a.75.75 0 011.06 0zm-12.727 0a.75.75 0 011.06 0l1.591 1.59a.75.75 0 11-1.06 1.06L6.106 7.167a.75.75 0 010-1.06zM12 18a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM18.894 17.894a.75.75 0 010-1.06l1.59-1.591a.75.75 0 111.06 1.06l-1.59 1.59a.75.75 0 01-1.06 0zM7.167 18.894a.75.75 0 01-1.06 0l-1.59-1.59a.75.75 0 011.06-1.06l1.59 1.591a.75.75 0 010 1.06zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM4.5 12a.75.75 0 01-.75.75H1.5a.75.75 0 010-1.5h2.25a.75.75 0 01.75.75z"/></svg>',description:"The source of all our power! The Sun sends out photons that travel millions of miles to Earth.",correctOrder:0,type:"static-start"},{id:"l1_panel",name:"Solar Panel",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4.5 3.75a3 3 0 00-3 3v10.5a3 3 0 003 3h15a3 3 0 003-3V6.75a3 3 0 00-3-3h-15zM8.25 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 018.25 6zM12 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 0112 6zM15.75 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75a.75.75 0 01.75-.75z"/></svg>',description:"This catches sunlight and turns it into DC (Direct Current) electricity.",correctOrder:1,type:"part"},{id:"l1_inverter",name:"Inverter",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 6a3 3 0 013-3h12a3 3 0 013 3v12a3 3 0 01-3 3H6a3 3 0 01-3-3V6zm2.25 2.25a.75.75 0 01.75-.75h12a.75.75 0 010 1.5H6a.75.75 0 01-.75-.75zm.75 3.75a.75.75 0 000 1.5h12a.75.75 0 000-1.5H6z" clip-rule="evenodd" /><path d="M11.25 15a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-1.5 0V15zM15 15.75a.75.75 0 00-1.5 0v.01a.75.75 0 001.5 0V15.75z"/></svg>',description:"The inverter changes DC electricity from the panels into AC (Alternating Current) electricity our homes use.",correctOrder:2,type:"part"},{id:"house1",name:"Current to Home",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z" /><path d="M12 5.432l8.159 8.159c.026.026.05.054.07.084v6.101A2.25 2.25 0 0117.75 22H6.25a2.25 2.25 0 01-2.25-2.25v-6.101c.02-.03.044-.058.07-.084L12 5.432z" /></svg>',description:"Success! The clean energy is now powering the home.",correctOrder:3,type:"static-end"}]},2:{time:90,pointsPerPart:150,parts:[{id:"sun2",name:"The Sun",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.106a.75.75 0 010 1.06l-1.591 1.59a.75.75 0 11-1.06-1.06l1.59-1.591a.75.75 0 011.06 0zm-12.727 0a.75.75 0 011.06 0l1.591 1.59a.75.75 0 11-1.06 1.06L6.106 7.167a.75.75 0 010-1.06zM12 18a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM18.894 17.894a.75.75 0 010-1.06l1.59-1.591a.75.75 0 111.06 1.06l-1.59 1.59a.75.75 0 01-1.06 0zM7.167 18.894a.75.75 0 01-1.06 0l-1.59-1.59a.75.75 0 011.06-1.06l1.59 1.591a.75.75 0 010 1.06zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM4.5 12a.75.75 0 01-.75.75H1.5a.75.75 0 010-1.5h2.25a.75.75 0 01.75.75z"/></svg>',description:"The Sun provides the initial energy.",correctOrder:0,type:"static-start"},{id:"l2_panel",name:"Solar Panel",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4.5 3.75a3 3 0 00-3 3v10.5a3 3 0 003 3h15a3 3 0 003-3V6.75a3 3 0 00-3-3h-15zM8.25 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 018.25 6zM12 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 0112 6zM15.75 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75a.75.75 0 01.75-.75z"/></svg>',description:"Catches sunlight to create DC electricity.",correctOrder:1,type:"part"},{id:"l2_controller",name:"Charge Controller",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.75 3.75a.75.75 0 00-1.5 0v2.25h-1.5a.75.75 0 000 1.5h1.5v2.25h-1.5a.75.75 0 000 1.5h1.5V15h-1.5a.75.75 0 000 1.5h1.5v2.25a.75.75 0 001.5 0V3.75z" /><path d="M15 6.75a.75.75 0 01.75-.75h2.25a.75.75 0 010 1.5H15.75a.75.75 0 01-.75-.75zM15 15.75a.75.75 0 01.75-.75h2.25a.75.75 0 010 1.5H15.75a.75.75 0 01-.75-.75zM6 6.75a.75.75 0 01.75-.75h2.25a.75.75 0 010 1.5H6.75A.75.75 0 016 6.75zM6 15.75a.75.75 0 01.75-.75h2.25a.75.75 0 010 1.5H6.75A.75.75 0 016 15.75z" /></svg>',description:"Protects the battery! It acts like a smart traffic cop, managing the energy flow and preventing overcharging.",correctOrder:2,type:"part"},{id:"l2_battery",name:"Battery",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 1.5a.75.75 0 01.75.75V3h4.5A2.25 2.25 0 0119.5 5.25v13.5A2.25 2.25 0 0117.25 21H6.75A2.25 2.25 0 014.5 18.75V5.25A2.25 2.25 0 016.75 3H11.25v-.75A.75.75 0 0112 1.5zm0 9a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd" /></svg>',description:"Stores extra energy for later, so you can have power at night or on cloudy days.",correctOrder:3,type:"part"},{id:"l2_inverter",name:"Inverter",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 6a3 3 0 013-3h12a3 3 0 013 3v12a3 3 0 01-3 3H6a3 3 0 01-3-3V6zm2.25 2.25a.75.75 0 01.75-.75h12a.75.75 0 010 1.5H6a.75.75 0 01-.75-.75zm.75 3.75a.75.75 0 000 1.5h12a.75.75 0 000-1.5H6z" clip-rule="evenodd" /><path d="M11.25 15a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-1.5 0V15zM15 15.75a.75.75 0 00-1.5 0v.01a.75.75 0 001.5 0V15.75z"/></svg>',description:"Changes DC electricity into AC electricity.",correctOrder:4,type:"part"},{id:"house2",name:"AC Current to Home",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z" /><path d="M12 5.432l8.159 8.159c.026.026.05.054.07.084v6.101A2.25 2.25 0 0117.75 22H6.25a2.25 2.25 0 01-2.25-2.25v-6.101c.02-.03.044-.058.07-.084L12 5.432z" /></svg>',description:"Powered day and night!",correctOrder:5,type:"static-end"}]},3:{time:120,pointsPerPart:200,parts:[{id:"sun3",name:"The Sun",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.106a.75.75 0 010 1.06l-1.591 1.59a.75.75 0 11-1.06-1.06l1.59-1.591a.75.75 0 011.06 0zm-12.727 0a.75.75 0 011.06 0l1.591 1.59a.75.75 0 11-1.06 1.06L6.106 7.167a.75.75 0 010-1.06zM12 18a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM18.894 17.894a.75.75 0 010-1.06l1.59-1.591a.75.75 0 111.06 1.06l-1.59 1.59a.75.75 0 01-1.06 0zM7.167 18.894a.75.75 0 01-1.06 0l-1.59-1.59a.75.75 0 011.06-1.06l1.59 1.591a.75.75 0 010 1.06zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM4.5 12a.75.75 0 01-.75.75H1.5a.75.75 0 010-1.5h2.25a.75.75 0 01.75.75z"/></svg>',description:"The source of all our power!",correctOrder:0,type:"static-start"},{id:"l3_photons",name:"Photons",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 18a6 6 0 100-12 6 6 0 000 12z" /></svg>',description:"Tiny packets of light energy from the sun.",correctOrder:1,type:"part"},{id:"l3_cells",name:"Solar Cells",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.5 6.375c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 011.5 17.625V6.375z" /></svg>',description:"The building blocks of a panel that convert photons to electricity.",correctOrder:2,type:"part"},{id:"l3_modules",name:"Modules (Panel)",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4.5 3.75a3 3 0 00-3 3v10.5a3 3 0 003 3h15a3 3 0 003-3V6.75a3 3 0 00-3-3h-15zM8.25 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 018.25 6zM12 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 0112 6zM15.75 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75a.75.75 0 01.75-.75z"/></svg>',description:"Many solar cells grouped together to form a complete panel.",correctOrder:3,type:"part"},{id:"l3_combiner",name:"Combiner Box",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z" /><path d="M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z" /></svg>',description:"This box safely combines the wiring from multiple solar panels into one main feed.",correctOrder:4,type:"part"},{id:"l3_inverter",name:"Inverter",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 6a3 3 0 013-3h12a3 3 0 013 3v12a3 3 0 01-3 3H6a3 3 0 01-3-3V6zm2.25 2.25a.75.75 0 01.75-.75h12a.75.75 0 010 1.5H6a.75.75 0 01-.75-.75zm.75 3.75a.75.75 0 000 1.5h12a.75.75 0 000-1.5H6z" clip-rule="evenodd" /><path d="M11.25 15a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-1.5 0V15zM15 15.75a.75.75 0 00-1.5 0v.01a.75.75 0 001.5 0V15.75z"/></svg>',description:"Converts the combined DC power to usable AC power.",correctOrder:5,type:"part"},{id:"l3_meter",name:"Net Meter",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3.375 3C2.339 3 1.5 3.84 1.5 4.875v1.25a.75.75 0 001.5 0V4.875C3 4.723 3.123 4.6 3.275 4.6h17.45C20.877 4.6 21 4.723 21 4.875v14.25c0 .152-.123.275-.275.275H3.275c-.152 0-.275-.123-.275-.275V15a.75.75 0 00-1.5 0v4.125C1.5 20.16 2.339 21 3.375 21h17.25A2.625 2.625 0 0023.25 18.375V5.625A2.625 2.625 0 0020.625 3H3.375z" /><path d="M9 9a.75.75 0 000 1.5h6a.75.75 0 000-1.5H9z" /></svg>',description:"A special meter that can measure power flowing both to and from the grid.",correctOrder:6,type:"part"},{id:"grid",name:"Grid / Home",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 5.432l8.159 8.159c.026.026.05.054.07.084v6.101A2.25 2.25 0 0117.75 22H6.25a2.25 2.25 0 01-2.25-2.25v-6.101c.02-.03.044-.058.07-.084L12 5.432z" /><path d="M3.75 13.5a.75.75 0 011.5 0v2.25a.75.75 0 01-1.5 0v-2.25zM18.75 13.5a.75.75 0 011.5 0v2.25a.75.75 0 01-1.5 0v-2.25z" /></svg>',description:"Power now flows to the home, and any extra is sent to the public grid!",correctOrder:7,type:"static-end"}]},4:{time:150,pointsPerPart:250,parts:[{id:"sunlight4",name:"Sunlight",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.106a.75.75 0 010 1.06l-1.591 1.59a.75.75 0 11-1.06-1.06l1.59-1.591a.75.75 0 011.06 0zm-12.727 0a.75.75 0 011.06 0l1.591 1.59a.75.75 0 11-1.06 1.06L6.106 7.167a.75.75 0 010-1.06zM12 18a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM18.894 17.894a.75.75 0 010-1.06l1.59-1.591a.75.75 0 111.06 1.06l-1.59 1.59a.75.75 0 01-1.06 0zM7.167 18.894a.75.75 0 01-1.06 0l-1.59-1.59a.75.75 0 011.06-1.06l1.59 1.591a.75.75 0 010 1.06zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM4.5 12a.75.75 0 01-.75.75H1.5a.75.75 0 010-1.5h2.25a.75.75 0 01.75.75z"/></svg>',description:"The journey begins with pure light from the Sun.",correctOrder:0,type:"static-start"},{id:"l4_photons",name:"Photons",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 18a6 6 0 100-12 6 6 0 000 12z" /></svg>',description:"Tiny packets of light energy. These are the messengers from the Sun.",correctOrder:1,type:"part"},{id:"l4_coating",name:"Anti-Reflective Coating",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3.375 3A1.875 1.875 0 001.5 4.875v.75c0 1.036.84 1.875 1.875 1.875h17.25A1.875 1.875 0 0022.5 5.625v-.75A1.875 1.875 0 0020.625 3H3.375z" /></svg>',description:"A special layer on the solar cell that ensures most of the photons are absorbed instead of bouncing off.",correctOrder:2,type:"part"},{id:"l4_semiconductor",name:"Semiconductor (Silicon)",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.5 6.375c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 011.5 17.625V6.375z" /></svg>',description:"The heart of the cell. When photons hit this layer, they knock electrons loose, starting the flow of energy.",correctOrder:3,type:"part"},{id:"l4_eh_pair",name:"Electron-Hole Pair",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 7.5a4.5 4.5 0 100 9 4.5 4.5 0 000-9z" /><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM1.5 12C1.5 6.202 6.202 1.5 12 1.5s10.5 4.702 10.5 10.5S17.798 22.5 12 22.5 1.5 17.798 1.5 12z" clip-rule="evenodd" /></svg>',description:"When a photon strikes, it creates a free electron and a 'hole' where the electron used to be. This pair is key to generating current.",correctOrder:4,type:"part"},{id:"l4_electric_field",name:"Electric Field",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3.75 12a.75.75 0 01.75-.75h15a.75.75 0 010 1.5h-15a.75.75 0 01-.75-.75z" /><path d="M12.97 3.97a.75.75 0 011.06 0l7.5 7.5a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 11-1.06-1.06l6.22-6.22-6.22-6.22a.75.75 0 010-1.06z" /></svg>',description:"Created by doping layers, this field acts like a slide, forcing electrons to one side and holes to the other.",correctOrder:5,type:"part"},{id:"l4_contacts",name:"Metal Contacts",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 5.25a.75.75 0 01.75-.75H20.25a.75.75 0 010 1.5H3.75A.75.75 0 013 5.25zm0 4.5A.75.75 0 013.75 9H20.25a.75.75 0 010 1.5H3.75A.75.75 0 013 9.75zm0 4.5a.75.75 0 01.75-.75H20.25a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75zm0 4.5a.75.75 0 01.75-.75H20.25a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75z" /></svg>',description:"These thin metal lines (bus bars) collect all the separated electrons to form a current.",correctOrder:6,type:"part"},{id:"dc_current4",name:"Power Produced",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm.53 5.47a.75.75 0 00-1.06 0l-3 3a.75.75 0 101.06 1.06l1.72-1.72v5.69a.75.75 0 001.5 0v-5.69l1.72 1.72a.75.75 0 101.06-1.06l-3-3z" clip-rule="evenodd" /></svg>',description:"The final product of the solar cell: a flow of Direct Current electricity!",correctOrder:7,type:"static-end"}]},5:{time:180,pointsPerPart:300,parts:[{id:"sunlight5",name:"Sunlight",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.106a.75.75 0 010 1.06l-1.591 1.59a.75.75 0 11-1.06-1.06l1.59-1.591a.75.75 0 011.06 0zm-12.727 0a.75.75 0 011.06 0l1.591 1.59a.75.75 0 11-1.06 1.06L6.106 7.167a.75.75 0 010-1.06zM12 18a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM18.894 17.894a.75.75 0 010-1.06l1.59-1.591a.75.75 0 111.06 1.06l-1.59 1.59a.75.75 0 01-1.06 0zM7.167 18.894a.75.75 0 01-1.06 0l-1.59-1.59a.75.75 0 011.06-1.06l1.59 1.591a.75.75 0 010 1.06zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM4.5 12a.75.75 0 01-.75.75H1.5a.75.75 0 010-1.5h2.25a.75.75 0 01.75.75z"/></svg>',description:"It all starts with the Sun's energy.",correctOrder:0,type:"static-start"},{id:"l5_photons",name:"Photons",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 18a6 6 0 100-12 6 6 0 000 12z" /></svg>',description:"Tiny packets of light energy.",correctOrder:1,type:"part"},{id:"l5_cell",name:"Solar Cell",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.5 6.375c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875-1.875H3.375A1.875 1.875 0 011.5 17.625V6.375z" /></svg>',description:"Converts photons to an electron-hole pair.",correctOrder:2,type:"part"},{id:"l5_eh_pair",name:"Electron-Hole Pair",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 7.5a4.5 4.5 0 100 9 4.5 4.5 0 000-9z" /><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM1.5 12C1.5 6.202 6.202 1.5 12 1.5s10.5 4.702 10.5 10.5S17.798 22.5 12 22.5 1.5 17.798 1.5 12z" clip-rule="evenodd" /></svg>',description:"The fundamental unit of charge created by light.",correctOrder:3,type:"part"},{id:"l5_electric_field",name:"Electric Field",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3.75 12a.75.75 0 01.75-.75h15a.75.75 0 010 1.5h-15a.75.75 0 01-.75-.75z" /><path d="M12.97 3.97a.75.75 0 011.06 0l7.5 7.5a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 11-1.06-1.06l6.22-6.22-6.22-6.22a.75.75 0 010-1.06z" /></svg>',description:"Separates the electrons and holes, creating voltage.",correctOrder:4,type:"part"},{id:"l5_busbars",name:"Bus Bars",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 5.25a.75.75 0 01.75-.75H20.25a.75.75 0 010 1.5H3.75A.75.75 0 013 5.25zm0 4.5A.75.75 0 013.75 9H20.25a.75.75 0 010 1.5H3.75A.75.75 0 013 9.75zm0 4.5a.75.75 0 01.75-.75H20.25a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75zm0 4.5a.75.75 0 01.75-.75H20.25a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75z" /></svg>',description:"Metal contacts that collect the electrons.",correctOrder:5,type:"part"},{id:"l5_module",name:"Solar Module",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4.5 3.75a3 3 0 00-3 3v10.5a3 3 0 003 3h15a3 3 0 003-3V6.75a3 3 0 00-3-3h-15zM8.25 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 018.25 6zM12 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75A.75.75 0 0112 6zM15.75 6a.75.75 0 01.75.75v10.5a.75.75 0 01-1.5 0V6.75a.75.75 0 01.75-.75z"/></svg>',description:"A complete solar panel, made of many cells.",correctOrder:6,type:"part"},{id:"l5_combiner",name:"Array Combiner Box",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z" /><path d="M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z" /></svg>',description:"Gathers power from hundreds of modules.",correctOrder:7,type:"part"},{id:"l5_disconnect",name:"DC Disconnect",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.44-.12-1.025-.224-1.628-.224-1.42 0-2.583.554-3.463 1.343-.443.393-.728.847-.843 1.298-.012.046-.024.093-.035.14a.75.75 0 01-1.465-.333c.04-.17.106-.337.192-.501.127-.243.29-.48.489-.705.952-.852 2.31-1.417 3.96-1.417.803 0 1.512.123 2.091.343a.75.75 0 11-.53 1.415z" clip-rule="evenodd" /></svg>',description:"A giant safety switch for maintenance.",correctOrder:8,type:"part"},{id:"l5_inverter",name:"Industrial Inverter",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 6a3 3 0 013-3h12a3 3 0 013 3v12a3 3 0 01-3 3H6a3 3 0 01-3-3V6zm2.25 2.25a.75.75 0 01.75-.75h12a.75.75 0 010 1.5H6a.75.75 0 01-.75-.75zm.75 3.75a.75.75 0 000 1.5h12a.75.75 0 000-1.5H6z" clip-rule="evenodd" /><path d="M11.25 15a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-1.5 0V15zM15 15.75a.75.75 0 00-1.5 0v.01a.75.75 0 001.5 0V15.75z"/></svg>',description:"Converts massive amounts of DC to AC power.",correctOrder:9,type:"part"},{id:"l5_transformer",name:"Transformer",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10.5 18.75a.75.75 0 000 1.5h3a.75.75 0 000-1.5h-3z" /><path fill-rule="evenodd" d="M8.625.75A3.375 3.375 0 005.25 4.125v15.75A3.375 3.375 0 008.625 23.25h6.75A3.375 3.375 0 0018.75 19.875V4.125A3.375 3.375 0 0015.375.75h-6.75zM7.5 4.125c0-.621.504-1.125 1.125-1.125h6.75c.621 0 1.125.504 1.125 1.125v15.75c0 .621-.504 1.125-1.125 1.125h-6.75A1.125 1.125 0 017.5 19.875V4.125z" clip-rule="evenodd" /></svg>',description:"Steps-up the voltage for long-distance travel.",correctOrder:10,type:"part"},{id:"l5_transmission",name:"Transmission Lines",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19.5 21a3 3 0 003-3v-1.5a.75.75 0 00-1.5 0V18a1.5 1.5 0 01-1.5 1.5h-15A1.5 1.5 0 013 18v-1.5a.75.75 0 00-1.5 0V18a3 3 0 003 3h15z" /><path d="M4.5 6.75A.75.75 0 005.25 6h13.5a.75.75 0 000-1.5H5.25A.75.75 0 004.5 6.75z" /><path d="M9 9.75A.75.75 0 009.75 9h4.5a.75.75 0 000-1.5h-4.5A.75.75 0 009 9.75z" /></svg>',description:"High-voltage lines that carry electricity over long distances.",correctOrder:11,type:"part"},{id:"grid5",name:"Distribution Grid",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 5.432l8.159 8.159c.026.026.05.054.07.084v6.101A2.25 2.25 0 0117.75 22H6.25a2.25 2.25 0 01-2.25-2.25v-6.101c.02-.03.044-.058.07-.084L12 5.432z" /><path d="M3.75 13.5a.75.75 0 011.5 0v2.25a.75.75 0 01-1.5 0v-2.25zM18.75 13.5a.75.75 0 011.5 0v2.25a.75.75 0 01-1.5 0v-2.25z" /></svg>',description:"The final step! Power is distributed to homes and businesses everywhere.",correctOrder:12,type:"static-end"}]}},r7=a=>{let l=a.length,r;for(;l!==0;)r=Math.floor(Math.random()*l),l--,[a[l],a[r]]=[a[r],a[l]];return a},tr=({part:a,onClick:l,className:r="",isStatic:o=!1})=>p.jsxs("div",{onClick:l,className:`bg-slate-700/80 backdrop-blur-sm border-2 border-sky-400/50 rounded-2xl p-4 text-center text-white flex flex-col items-center justify-center aspect-square shadow-lg shadow-sky-500/20 transition-all duration-300 ${o?"":"cursor-pointer hover:bg-sky-500/50 hover:shadow-sky-400/40 hover:scale-105"} ${r}`,children:[p.jsx("div",{className:"w-12 h-12 sm:w-16 sm:h-16 text-yellow-300",dangerouslySetInnerHTML:{__html:a.icon}}),p.jsx("p",{className:"mt-2 text-xs sm:text-sm font-bold tracking-wide",children:a.name})]}),o7=({onDrop:a,onDragOver:l,part:r,onClick:o,isCorrect:c,dragOver:h,incorrectDrop:f})=>{let m="border-sky-500/60";return h&&(m="border-yellow-400 scale-105 shadow-yellow-400/50"),c&&(m="border-green-400 bg-green-500/20"),p.jsx("div",{onDrop:a,onDragOver:l,onDragEnter:y=>y.currentTarget.classList.add("drag-over"),onDragLeave:y=>y.currentTarget.classList.remove("drag-over"),className:`relative bg-slate-800/50 border-2 border-dashed rounded-2xl transition-all duration-300 flex items-center justify-center w-28 h-28 sm:w-36 sm:h-36 shadow-inner shadow-black/30 ${m} ${f?"animate-shake":""}`,children:r?p.jsx(tr,{part:r,onClick:o,className:"w-full h-full",isStatic:!0}):p.jsx("span",{className:"text-sky-300/50 text-4xl font-thin",children:"?"})})},u7=({part:a,onDragStart:l,onClick:r})=>p.jsx("div",{draggable:!0,onDragStart:l,children:p.jsx(tr,{part:a,onClick:r})}),op=({isPowered:a})=>p.jsx("div",{className:"relative flex-1 h-2 bg-slate-700/80 mx-2 rounded-full overflow-hidden",children:p.jsx("div",{className:`absolute top-0 left-0 h-full bg-yellow-400 transition-all duration-1000 ease-in-out ${a?"w-full":"w-0"}`,style:{boxShadow:a?"0 0 10px #facc15, 0 0 20px #facc15":"none"}})}),c7=({part:a,onClose:l})=>a?p.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-md flex items-center justify-center z-50 animate-fade-in",children:p.jsxs("div",{className:"bg-slate-800 border-2 border-sky-400/50 rounded-2xl p-8 max-w-lg w-11/12 shadow-2xl shadow-sky-500/30 text-white animate-zoom-in",children:[p.jsxs("div",{className:"flex items-center mb-4",children:[p.jsx("div",{className:"w-16 h-16 mr-4 text-yellow-300",dangerouslySetInnerHTML:{__html:a.icon}}),p.jsx("h2",{className:"text-3xl font-bold text-sky-300",children:a.name})]}),p.jsx("p",{className:"text-slate-300 text-lg",children:a.description}),p.jsx("button",{onClick:l,className:"mt-6 bg-sky-500 hover:bg-sky-400 text-white font-bold py-2 px-4 rounded-lg w-full transition-all shadow-md hover:shadow-lg",children:"Close"})]})}):null,f7=()=>{const[a,l]=O.useState("start"),[r,o]=O.useState(1),[c,h]=O.useState(0),[f,m]=O.useState(ol[1].time),[y,g]=O.useState([]),[x,b]=O.useState([]),[w,z]=O.useState(null),[V,X]=O.useState(null),[K,B]=O.useState(null),[Y,R]=O.useState(null),k=O.useMemo(()=>ol[r],[r]),H=O.useCallback(yt=>{const lt=ol[yt];o(yt),m(lt.time);const C=lt.parts.filter(q=>q.type==="part");g(r7([...C])),b(new Array(C.length).fill(null)),l("playing")},[]);O.useEffect(()=>{if(a!=="playing")return;if(f<=0){l("game-over");return}const yt=setInterval(()=>{m(lt=>lt-1)},1e3);return()=>clearInterval(yt)},[a,f]),O.useEffect(()=>{a==="playing"&&x.every(yt=>yt!==null)&&setTimeout(()=>{r<Object.keys(ol).length?l("level-complete"):l("game-won")},1e3)},[x,a,r]);const Z=(yt,lt)=>{X(lt),yt.dataTransfer.effectAllowed="move"},F=(yt,lt)=>{yt.preventDefault(),B(lt)},J=()=>{B(null)},ct=(yt,lt)=>{if(yt.preventDefault(),B(null),x[lt])return;const C=k.parts.find(q=>q.id===V);C&&C.correctOrder===lt+1?(h(q=>q+k.pointsPerPart),b(q=>{const Q=[...q];return Q[lt]=C,Q}),g(q=>q.filter(Q=>Q.id!==V))):(R(lt),setTimeout(()=>R(null),500)),X(null)},$=()=>{h(0),H(1)},ot=()=>{r<Object.keys(ol).length&&H(r+1)},et=()=>{if(!k)return p.jsx("div",{children:"Loading..."});const yt=k.parts.find(C=>C.type==="static-start"),lt=k.parts.find(C=>C.type==="static-end");return p.jsxs("div",{className:"w-full min-h-screen flex flex-col p-4 sm:p-8",children:[p.jsxs("header",{className:"flex flex-col sm:flex-row justify-between items-center mb-6 text-white bg-slate-800/50 backdrop-blur-sm p-4 rounded-2xl border border-sky-500/30",children:[p.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold text-sky-300",children:["Level ",r]}),p.jsxs("div",{className:"flex items-center space-x-6 mt-2 sm:mt-0",children:[p.jsxs("div",{className:"text-xl",children:["Score: ",p.jsx("span",{className:"font-bold text-yellow-300",children:c})]}),p.jsxs("div",{className:`text-xl ${f<10?"text-red-500 animate-pulse":""}`,children:["Time: ",p.jsxs("span",{className:"font-bold",children:[f,"s"]})]})]})]}),p.jsx("main",{className:"flex-grow flex items-center justify-center my-6",children:p.jsxs("div",{className:"flex items-center justify-center flex-wrap gap-2",children:[yt&&p.jsx(tr,{part:yt,onClick:()=>z(yt),isStatic:!0,className:"w-28 h-28 sm:w-36 sm:h-36"}),p.jsx(op,{isPowered:!0}),x.map((C,q)=>p.jsxs(cp.Fragment,{children:[p.jsx(o7,{part:C,onClick:()=>C&&z(C),onDrop:Q=>ct(Q,q),onDragOver:Q=>F(Q,q),onDragLeave:J,isCorrect:!!C,dragOver:K===q,incorrectDrop:Y===q}),p.jsx(op,{isPowered:!!C})]},q)),lt&&p.jsx(tr,{part:lt,onClick:()=>z(lt),isStatic:!0,className:"w-28 h-28 sm:w-36 sm:h-36"})]})}),p.jsxs("footer",{className:"bg-slate-800/50 backdrop-blur-sm p-4 rounded-2xl border border-sky-500/30 mt-6",children:[p.jsx("h2",{className:"text-xl font-bold text-center text-sky-300 mb-4",children:"Component Toolbox"}),p.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:y.map(C=>p.jsx(u7,{part:C,onDragStart:q=>Z(q,C.id),onClick:()=>z(C)},C.id))})]})]})},Nt=(yt,lt,C,q,Q=!1)=>p.jsx("div",{className:"fixed inset-0 bg-slate-900 bg-opacity-90 backdrop-blur-lg flex items-center justify-center z-40 text-white animate-fade-in p-4",children:p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"text-6xl font-extrabold text-sky-300 mb-4 animate-slide-in-down",children:yt}),p.jsx("p",{className:"text-2xl text-slate-300 mb-8 animate-slide-in-up",children:lt}),Q&&p.jsxs("p",{className:"text-3xl mb-8",children:["Final Score: ",p.jsx("span",{className:"font-bold text-yellow-300",children:c})]}),p.jsx("button",{onClick:q,className:"bg-yellow-400 text-slate-900 font-bold text-xl py-4 px-8 rounded-full shadow-lg shadow-yellow-400/30 hover:bg-yellow-300 transform hover:scale-105 transition-all duration-300 animate-pulse-slow",children:C})]})});return p.jsxs("div",{className:"bg-slate-900 min-h-screen font-sans bg-grid",children:[p.jsx("style",{children:` |
| @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } |
| .animate-fade-in { animation: fade-in 0.5s ease-in-out; } |
| |
| @keyframes zoom-in { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } } |
| .animate-zoom-in { animation: zoom-in 0.3s ease-out; } |
| |
| @keyframes slide-in-down { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } } |
| .animate-slide-in-down { animation: slide-in-down 0.5s ease-out forwards; } |
| |
| @keyframes slide-in-up { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } } |
| .animate-slide-in-up { animation: slide-in-up 0.5s ease-out 0.2s forwards; opacity: 0; } |
| |
| @keyframes pulse-slow { 0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(250, 204, 21, 0.3); } 50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(250, 204, 21, 0.5); } } |
| .animate-pulse-slow { animation: pulse-slow 2s infinite; } |
| |
| @keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } } |
| .animate-shake { animation: shake 0.5s ease-in-out; border-color: #ef4444 !important; } |
| |
| .drag-over { border-style: solid !important; background-color: rgba(250, 204, 21, 0.1); } |
| |
| .bg-grid { |
| background-image: linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px); |
| background-size: 40px 40px; |
| } |
| |
| .confetti { position: absolute; width: 10px; height: 20px; background: #f00; opacity: 0; top: -20px; animation: fall 3s linear infinite; } |
| .confetti:nth-child(2n) { background: #0f0; } |
| .confetti:nth-child(3n) { background: #00f; } |
| .confetti:nth-child(4n) { background: #ff0; } |
| .confetti:nth-child(5n) { background: #f0f; } |
| @keyframes fall { |
| 0% { transform: translateY(0vh) rotate(0deg); opacity: 1; } |
| 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } |
| } |
| `}),p.jsx(c7,{part:w,onClose:()=>z(null)}),a==="start"&&Nt("Solar Assembly","Build solar power systems from start to finish. Drag components to the correct slots.","Start Game",()=>H(1)),a==="playing"&&et(),a==="level-complete"&&Nt(`Level ${r} Complete!`,"Excellent work! You've successfully assembled the system.","Next Level",ot,!0),a==="game-over"&&Nt("Game Over","Time ran out! Better luck next time.","Try Again",$,!0),a==="game-won"&&p.jsxs("div",{className:"fixed inset-0 bg-slate-900 bg-opacity-90 backdrop-blur-lg flex items-center justify-center z-40 text-white animate-fade-in p-4 overflow-hidden",children:[Array.from({length:100}).map((yt,lt)=>p.jsx("div",{className:"confetti",style:{left:`${Math.random()*100}%`,animationDelay:`${Math.random()*3}s`,transform:`scale(${Math.random()*.5+.5})`}},lt)),p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"text-6xl font-extrabold text-yellow-300 mb-4 animate-slide-in-down",children:"Congratulations!"}),p.jsx("p",{className:"text-2xl text-slate-300 mb-8 animate-slide-in-up",children:"You've mastered solar assembly and completed all levels!"}),p.jsxs("p",{className:"text-3xl mb-8",children:["Final Score: ",p.jsx("span",{className:"font-bold text-yellow-300",children:c})]}),p.jsx("button",{onClick:$,className:"bg-sky-500 text-white font-bold text-xl py-4 px-8 rounded-full shadow-lg shadow-sky-400/30 hover:bg-sky-400 transform hover:scale-105 transition-all duration-300",children:"Play Again"})]})]})]})},d7="/assets/solarman-Ntd7oyxN.png",h7="/assets/sun-COUbxoLn.png",m7="/assets/cloud-tDOpvLD9.png",p7=({effect:a})=>p.jsx(xt.div,{animate:{scale:a?1.2:1,rotate:a==="star"?[0,10,-10,0]:0},transition:{duration:.3},children:p.jsx("img",{src:d7,alt:"Player",style:{width:80,height:90,objectFit:"contain"}})}),g7=()=>p.jsx(xt.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1,rotate:360},transition:{duration:.5,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},children:p.jsx("img",{src:h7,alt:"Star",style:{width:50,height:50,objectFit:"contain"}})}),y7=()=>p.jsx(xt.div,{initial:{rotate:0},animate:{rotate:-360},transition:{duration:4,ease:"linear",repeat:1/0},children:p.jsx("img",{src:m7,alt:"Asteroid",style:{width:60,height:55,objectFit:"contain"}})});function v7(){const[a,l]=O.useState("start"),[r,o]=O.useState(0),[c,h]=O.useState(120),[f,m]=O.useState(0),[y,g]=O.useState([]),[x,b]=O.useState([]),[w,z]=O.useState(null),V=O.useRef(null);O.useEffect(()=>{V.current&&m(V.current.offsetWidth/2-40)},[]);const X=O.useCallback(R=>{if(a!=="playing")return;const k=V.current.offsetWidth;R.key==="ArrowLeft"?m(H=>Math.max(0,H-40)):R.key==="ArrowRight"&&m(H=>Math.min(k-80,H+40))},[a]);O.useEffect(()=>(window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)),[X]),O.useEffect(()=>{if(a!=="playing")return;const R=setInterval(()=>{h(Z=>Z<=1?(l("gameOver"),0):Z-1)},1e3),k=setInterval(()=>{if(!V.current)return;const Z=V.current.offsetWidth,F=Math.random()>Math.min(.3+(120-c)/250,.75);g(J=>[...J,{id:Date.now()+Math.random(),type:F?"star":"asteroid",x:Math.random()*(Z-60),y:-60,speed:5+(120-c)/20}])},550),H=setInterval(()=>{if(!V.current)return;const Z=V.current.offsetHeight,F={x:f,y:Z-100,width:80,height:90};g(J=>{const ct=[];for(const $ of J){const ot=$.y+$.speed,et={x:$.x,y:ot,width:60,height:55};if(F.x<et.x+et.width&&F.x+F.width>et.x&&F.y<et.y+et.height&&F.y+F.height>et.y){K($);continue}ot<Z&&ct.push({...$,y:ot})}return ct})},30);return()=>{clearInterval(R),clearInterval(k),clearInterval(H)}},[a,c,f]);const K=R=>{if(!V.current)return;const k=R.type==="star"?10:-5;o(Z=>Math.max(0,Z+k)),z(R.type),setTimeout(()=>z(null),300);const H={id:Date.now(),x:R.x,y:V.current.offsetHeight-100,type:R.type,points:k};b(Z=>[...Z,H]),setTimeout(()=>{b(Z=>Z.filter(F=>F.id!==H.id))},1e3)},B=()=>{o(0),h(120),g([]),b([]),l("playing"),V.current&&m(V.current.offsetWidth/2-40)},Y=()=>p.jsx("div",{className:"absolute inset-0 z-0 overflow-hidden",children:[...Array(100)].map((R,k)=>{const H={left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,width:`${Math.random()*2+1}px`,height:`${Math.random()*2+1}px`,animationDelay:`${Math.random()*5}s`,animationDuration:`${Math.random()*5+5}s`};return p.jsx("div",{className:"absolute bg-white rounded-full animate-twinkle",style:H},k)})});return p.jsxs("div",{ref:V,className:"w-screen h-screen bg-gray-900 overflow-hidden relative font-mono select-none",children:[p.jsx(Y,{}),p.jsx(Ks,{children:a==="playing"&&p.jsxs(xt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute top-4 left-4 right-4 flex justify-between z-10",children:[p.jsxs("div",{className:"bg-white/20 backdrop-blur-sm text-white px-4 py-2 rounded-lg text-2xl font-bold",children:["Score: ",r]}),p.jsxs("div",{className:"bg-white/20 backdrop-blur-sm text-white px-4 py-2 rounded-lg text-2xl font-bold",children:["Time: ",Math.floor(c/60),":",String(c%60).padStart(2,"0")]})]})}),p.jsxs(Ks,{children:[a==="start"&&p.jsxs(xt.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},className:"absolute inset-0 flex flex-col items-center justify-center z-20",children:[p.jsxs(xt.div,{initial:{y:-50},animate:{y:0,transition:{type:"spring",stiffness:120}},children:[p.jsx("h1",{className:"text-7xl font-bold text-yellow-300 drop-shadow-[0_0_15px_rgba(252,211,77,0.8)]",children:"SolarMan"}),p.jsx("h2",{className:"text-4xl font-bold text-cyan-300 mt-2",children:"Space Adventure"})]}),p.jsx(xt.button,{onClick:B,whileHover:{scale:1.1},whileTap:{scale:.9},className:"mt-8 bg-gradient-to-r from-purple-500 to-indigo-600 text-white text-3xl px-10 py-4 rounded-full shadow-lg",children:"Start Game"})]}),a==="gameOver"&&p.jsxs(xt.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 bg-black/50 flex flex-col items-center justify-center z-20",children:[p.jsx("h1",{className:"text-6xl font-bold text-red-500",children:"Game Over"}),p.jsxs("p",{className:"text-4xl text-white mt-4",children:["Final Score: ",r]}),p.jsx(xt.button,{onClick:B,whileHover:{scale:1.1},whileTap:{scale:.9},className:"mt-8 bg-gradient-to-r from-green-400 to-blue-500 text-white text-3xl px-10 py-4 rounded-full shadow-lg",children:"Play Again"})]})]}),p.jsxs("div",{className:"absolute inset-0",children:[p.jsx(xt.div,{className:"absolute bottom-5",animate:{x:f},transition:{type:"spring",stiffness:400,damping:30},children:p.jsx(p7,{effect:w})}),y.map(R=>p.jsx(xt.div,{className:"absolute",style:{left:R.x,top:R.y},children:R.type==="star"?p.jsx(g7,{}):p.jsx(y7,{})},R.id)),p.jsx(Ks,{children:x.map(R=>p.jsx(xt.div,{className:`absolute font-bold text-3xl ${R.type==="star"?"text-yellow-300":"text-red-500"}`,initial:{y:R.y,x:R.x,opacity:1,scale:.5},animate:{y:R.y-80,opacity:0,scale:1.5},exit:{opacity:0},transition:{duration:1},children:R.points>0?`+${R.points}`:R.points},R.id))})]}),p.jsx("style",{children:` |
| @keyframes twinkle { |
| 0%, 100% { opacity: 0.5; } |
| 50% { opacity: 1; } |
| } |
| .animate-twinkle { |
| animation: twinkle linear infinite; |
| } |
| `})]})}function x7({setView:a}){const[l,r]=O.useState(null);return l==="ticTacToe"?p.jsx(i7,{onGoHome:()=>r(null)}):l==="quiz"?p.jsx(s7,{onGoHome:()=>r(null)}):l==="solarAssembly"?p.jsx(f7,{onGoHome:()=>r(null)}):l==="solarMan"?p.jsx(v7,{onGoHome:()=>r(null)}):p.jsx("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-blue-100 p-8",children:p.jsxs("div",{className:"container mx-auto text-center",children:[p.jsx("h1",{className:"text-5xl font-bold bg-gradient-to-r from-blue-800 via-purple-700 to-blue-800 bg-clip-text text-transparent mb-4",children:"Game Center"}),p.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto mb-12",children:"Learn about solar energy through fun, interactive challenges. Select a game to begin!"}),p.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[p.jsxs("div",{className:"group bg-white p-8 rounded-2xl shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-2 flex flex-col",children:[p.jsx("div",{className:"text-5xl mb-4",children:"☀️🆚☁️"}),p.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Solar XO"}),p.jsx("p",{className:"text-gray-600 mb-6 flex-grow",children:"A strategic Tic-Tac-Toe game where you harness the power of the sun."}),p.jsx("button",{onClick:()=>r("ticTacToe"),className:"mt-auto w-full bg-gradient-to-r from-blue-600 to-purple-600 text-white py-3 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-transform hover:scale-105",children:"Play Now"})]}),p.jsxs("div",{className:"group bg-white p-8 rounded-2xl shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-2 flex flex-col",children:[p.jsx("div",{className:"text-5xl mb-4",children:"❓"}),p.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Solar Quiz Challenge"}),p.jsx("p",{className:"text-gray-600 mb-6 flex-grow",children:"Test your knowledge with challenging questions about solar technology."}),p.jsx("button",{onClick:()=>r("quiz"),className:"mt-auto w-full bg-gradient-to-r from-blue-600 to-purple-600 text-white py-3 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-transform hover:scale-105",children:"Play Now"})]}),p.jsxs("div",{className:"group bg-white p-8 rounded-2xl shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-2 flex flex-col",children:[p.jsx("div",{className:"w-20 h-20 mx-auto mb-4 flex items-center justify-center",children:p.jsx("img",{src:"./solarman.jpg",alt:"Solar Man Mascot",className:"max-h-full max-w-full object-contain"})}),p.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"SolarMan's Quest"}),p.jsx("p",{className:"text-gray-600 mb-6 flex-grow",children:"Catch falling suns and avoid the clouds in this fast-paced arcade game."}),p.jsx("button",{onClick:()=>r("solarMan"),className:"mt-auto w-full bg-gradient-to-r from-blue-600 to-purple-600 text-white py-3 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-transform hover:scale-105",children:"Play Now"})]}),p.jsxs("div",{className:"group bg-white p-8 rounded-2xl shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-2 flex flex-col",children:[p.jsx("div",{className:"text-5xl mb-4",children:"🔧"}),p.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Solar Assembly"}),p.jsx("p",{className:"text-gray-600 mb-6 flex-grow",children:"Drag and drop components in the correct order to build a solar power system."}),p.jsx("button",{onClick:()=>r("solarAssembly"),className:"mt-auto w-full bg-gradient-to-r from-blue-600 to-purple-600 text-white py-3 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-transform hover:scale-105",children:"Play Now"})]})]}),p.jsx("div",{className:"mt-16",children:p.jsx("button",{onClick:()=>a("home"),className:"bg-white text-gray-800 px-10 py-3 rounded-xl font-semibold text-lg border-2 border-blue-600 hover:bg-blue-50 transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1",children:"← Back to Home"})})]})})}const b7="AIzaSyAUIdehOfX5xGY_dd9ck3nlrIImCgoBmHA",S7="f230a37e6d33141f9",T7="https://script.google.com/macros/s/AKfycbzFqHcCo6Cd8COFuNvljSf_37Oyds-d5s_DNma66yNa_7ht-OdqUHGNfY7AEQwuCTB7mA/exec";function w7({setView:a}){const[l,r]=O.useState({}),[o,c]=O.useState(null),[h,f]=O.useState(null),[m,y]=O.useState([]),[g,x]=O.useState(!0),[b,w]=O.useState(null),[z,V]=O.useState(new Date);O.useEffect(()=>{const B=setInterval(()=>V(new Date),1e3);return()=>clearInterval(B)},[]),O.useEffect(()=>{fetch("https://api.open-meteo.com/v1/forecast?latitude=11.0168&longitude=76.9558¤t=temperature_2m,weather_code").then(B=>B.json()).then(B=>{w({temp:B.current.temperature_2m,code:B.current.weather_code})}).catch(B=>console.error("Error fetching weather data:",B))},[]),O.useEffect(()=>{async function B(){x(!0);try{const R=await(await fetch(T7)).json();r(R);const k=Object.keys(R)[0];c(k)}catch(Y){console.error("Error fetching sheet data:",Y)}finally{x(!1)}}B()},[]);const X=async B=>{f(B),x(!0),y([]);const Y=`https://www.googleapis.com/customsearch/v1?key=${b7}&cx=${S7}&q=${encodeURIComponent(B.searchQuery)}&gl=in`;try{const k=await(await fetch(Y)).json();k.items?y(k.items.slice(0,3)):y([{title:"No articles found.",snippet:"Could not find any relevant articles for this topic. Try another one!",link:"#"}])}catch(R){console.error("Error fetching Google Search data:",R),y([{title:"API Error",snippet:"There was an error fetching data. Please check your API keys and network.",link:"#"}])}finally{x(!1)}},K=B=>B>=0&&B<=1?{icon:"☀️",text:"Clear Sky",intensity:100}:B<=3?{icon:"⛅",text:"Partly Cloudy",intensity:75}:B<=48?{icon:"☁️",text:"Cloudy/Foggy",intensity:40}:B<=67?{icon:"🌧️",text:"Rainy",intensity:25}:{icon:"❓",text:"Unknown",intensity:0};return p.jsxs("div",{className:"discovery-hub",children:[p.jsxs("aside",{className:"dh-sidebar",children:[p.jsx("h2",{className:"dh-sidebar-title",children:"Learning Hub"}),p.jsx("nav",{className:"dh-nav",children:Object.keys(l).map(B=>p.jsxs("div",{className:"dh-accordion",children:[p.jsx("button",{className:"dh-accordion-header",onClick:()=>c(o===B?null:B),children:B}),p.jsx("div",{className:`dh-accordion-content ${o===B?"open":""}`,children:l[B].map(Y=>p.jsx("a",{href:"#",className:`dh-topic-link ${h?.title===Y.title?"active":""}`,onClick:R=>{R.preventDefault(),X(Y)},children:Y.title},Y.title))})]},B))}),p.jsx("div",{className:"px-6 mt-auto py-4",children:p.jsx("button",{onClick:()=>a("home"),className:"w-full bg-white text-gray-800 px-4 py-3 rounded-xl font-semibold text-md border-2 border-blue-600 hover:bg-blue-50 transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1",children:"← Back to Home"})})]}),p.jsx("main",{className:"dh-content",children:h?p.jsxs("div",{className:"dh-topic-view",children:[p.jsxs("div",{className:"dh-topic-header",children:[p.jsx("h2",{children:h.title}),p.jsx("a",{href:`https://www.youtube.com/watch?v=${h.videoId}`,target:"_blank",rel:"noopener noreferrer",className:"dh-video-btn",children:"📺 Watch on YouTube"})]}),p.jsx("div",{className:"dh-results-container",children:g?p.jsx("div",{className:"dh-loading",children:"Searching the web for the best articles..."}):m.map((B,Y)=>p.jsxs("div",{className:"dh-result-card",children:[p.jsx("h3",{children:B.title}),p.jsx("p",{children:B.snippet}),p.jsx("a",{href:B.link,target:"_blank",rel:"noopener noreferrer",children:"Read Full Article →"})]},Y))})]}):p.jsxs("div",{className:"dh-welcome",children:[p.jsx("h2",{children:"Welcome to the Solar Learning Hub!"}),p.jsx("p",{children:"Select a topic from the menu on the left to begin your journey of discovery."})]})}),p.jsxs("aside",{className:"dh-live-widget",children:[p.jsx("h4",{children:"Live Conditions"}),p.jsx("p",{className:"location",children:"Coimbatore, Tamil Nadu"}),p.jsx("p",{className:"time",children:z.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}),b?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"weather",children:[p.jsx("span",{className:"weather-icon",children:K(b.code).icon}),p.jsxs("span",{children:[b.temp,"°C, ",K(b.code).text]})]}),p.jsxs("div",{className:"sun-intensity",children:[p.jsx("p",{children:"Sun Intensity"}),p.jsx("div",{className:"intensity-bar",children:p.jsx("div",{className:"intensity-fill",style:{width:`${K(b.code).intensity}%`}})})]})]}):p.jsx("p",{children:"Loading weather..."})]})]})}function A7(){const[a,l]=O.useState("home"),[r,o]=O.useState(null),c=f=>{l(f==="calculator"?"persona":f)},h=f=>{o(f),l("calculator")};return a==="persona"?p.jsxs("div",{className:"min-h-screen bg-gray-100 flex flex-col items-center justify-center p-4",children:[p.jsx("h2",{className:"text-3xl font-bold text-gray-800 mb-6 text-center",children:"Select Your Profile to Begin"})," ",p.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 w-full max-w-sm",children:[p.jsx("button",{onClick:()=>h("Homeowner"),className:"flex-1 bg-green-500 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:bg-green-600",children:"Homeowner"}),p.jsx("button",{onClick:()=>h("MSME"),className:"flex-1 bg-green-500 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:bg-green-600",children:"MSME"}),p.jsx("button",{onClick:()=>h("School"),className:"flex-1 bg-green-500 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:bg-green-600",children:"School"})]}),p.jsx("button",{onClick:()=>c("home"),className:"mt-8 bg-gray-400 text-white font-semibold py-2 px-6 rounded-lg shadow-md hover:bg-gray-500",children:"Back to Home"})]}):a==="calculator"?p.jsx(a7,{persona:r,setView:c}):a==="games"?p.jsx(x7,{setView:c}):a==="discovery"?p.jsx(w7,{setView:c}):p.jsx(n7,{setView:c})}S5.createRoot(document.getElementById("root")).render(p.jsx(cp.StrictMode,{children:p.jsx(A7,{})})); |
|
|