(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function Tg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lc={exports:{}},Rl={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var _p;function Kb(){if(_p)return Rl;_p=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:d,ref:u!==void 0?u:null,props:f}}return Rl.Fragment=i,Rl.jsx=s,Rl.jsxs=s,Rl}var Lp;function Zb(){return Lp||(Lp=1,lc.exports=Kb()),lc.exports}var v=Zb(),sc={exports:{}},mt={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Up;function Qb(){if(Up)return mt;Up=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,U={};function V(T,Y,Q){this.props=T,this.context=Y,this.refs=U,this.updater=Q||E}V.prototype.isReactComponent={},V.prototype.setState=function(T,Y){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,Y,"setState")},V.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function _(){}_.prototype=V.prototype;function L(T,Y,Q){this.props=T,this.context=Y,this.refs=U,this.updater=Q||E}var q=L.prototype=new _;q.constructor=L,j(q,V.prototype),q.isPureReactComponent=!0;var I=Array.isArray,G={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function nt(T,Y,Q,Z,tt,ht){return Q=ht.ref,{$$typeof:n,type:T,key:Y,ref:Q!==void 0?Q:null,props:ht}}function P(T,Y){return nt(T.type,Y,void 0,void 0,void 0,T.props)}function st(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function yt(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Q){return Y[Q]})}var J=/\/+/g;function K(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?yt(""+T.key):Y.toString(36)}function pt(){}function lt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(pt,pt):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function St(T,Y,Q,Z,tt){var ht=typeof T;(ht==="undefined"||ht==="boolean")&&(T=null);var it=!1;if(T===null)it=!0;else switch(ht){case"bigint":case"string":case"number":it=!0;break;case"object":switch(T.$$typeof){case n:case i:it=!0;break;case y:return it=T._init,St(it(T._payload),Y,Q,Z,tt)}}if(it)return tt=tt(T),it=Z===""?"."+K(T,0):Z,I(tt)?(Q="",it!=null&&(Q=it.replace(J,"$&/")+"/"),St(tt,Y,Q,"",function(qt){return qt})):tt!=null&&(st(tt)&&(tt=P(tt,Q+(tt.key==null||T&&T.key===tt.key?"":(""+tt.key).replace(J,"$&/")+"/")+it)),Y.push(tt)),1;it=0;var At=Z===""?".":Z+":";if(I(T))for(var ft=0;ft<T.length;ft++)Z=T[ft],ht=At+K(Z,ft),it+=St(Z,Y,Q,ht,tt);else if(ft=S(T),typeof ft=="function")for(T=ft.call(T),ft=0;!(Z=T.next()).done;)Z=Z.value,ht=At+K(Z,ft++),it+=St(Z,Y,Q,ht,tt);else if(ht==="object"){if(typeof T.then=="function")return St(lt(T),Y,Q,Z,tt);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return it}function z(T,Y,Q){if(T==null)return T;var Z=[],tt=0;return St(T,Z,"","",function(ht){return Y.call(Q,ht,tt++)}),Z}function X(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(Q){(T._status===0||T._status===-1)&&(T._status=1,T._result=Q)},function(Q){(T._status===0||T._status===-1)&&(T._status=2,T._result=Q)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var W=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function dt(){}return mt.Children={map:z,forEach:function(T,Y,Q){z(T,function(){Y.apply(this,arguments)},Q)},count:function(T){var Y=0;return z(T,function(){Y++}),Y},toArray:function(T){return z(T,function(Y){return Y})||[]},only:function(T){if(!st(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},mt.Component=V,mt.Fragment=s,mt.Profiler=u,mt.PureComponent=L,mt.StrictMode=r,mt.Suspense=p,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,mt.__COMPILER_RUNTIME={__proto__:null,c:function(T){return G.H.useMemoCache(T)}},mt.cache=function(T){return function(){return T.apply(null,arguments)}},mt.cloneElement=function(T,Y,Q){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Z=j({},T.props),tt=T.key,ht=void 0;if(Y!=null)for(it in Y.ref!==void 0&&(ht=void 0),Y.key!==void 0&&(tt=""+Y.key),Y)!$.call(Y,it)||it==="key"||it==="__self"||it==="__source"||it==="ref"&&Y.ref===void 0||(Z[it]=Y[it]);var it=arguments.length-2;if(it===1)Z.children=Q;else if(1<it){for(var At=Array(it),ft=0;ft<it;ft++)At[ft]=arguments[ft+2];Z.children=At}return nt(T.type,tt,void 0,void 0,ht,Z)},mt.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},mt.createElement=function(T,Y,Q){var Z,tt={},ht=null;if(Y!=null)for(Z in Y.key!==void 0&&(ht=""+Y.key),Y)$.call(Y,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(tt[Z]=Y[Z]);var it=arguments.length-2;if(it===1)tt.children=Q;else if(1<it){for(var At=Array(it),ft=0;ft<it;ft++)At[ft]=arguments[ft+2];tt.children=At}if(T&&T.defaultProps)for(Z in it=T.defaultProps,it)tt[Z]===void 0&&(tt[Z]=it[Z]);return nt(T,ht,void 0,void 0,null,tt)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(T){return{$$typeof:m,render:T}},mt.isValidElement=st,mt.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:X}},mt.memo=function(T,Y){return{$$typeof:h,type:T,compare:Y===void 0?null:Y}},mt.startTransition=function(T){var Y=G.T,Q={};G.T=Q;try{var Z=T(),tt=G.S;tt!==null&&tt(Q,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(dt,W)}catch(ht){W(ht)}finally{G.T=Y}},mt.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},mt.use=function(T){return G.H.use(T)},mt.useActionState=function(T,Y,Q){return G.H.useActionState(T,Y,Q)},mt.useCallback=function(T,Y){return G.H.useCallback(T,Y)},mt.useContext=function(T){return G.H.useContext(T)},mt.useDebugValue=function(){},mt.useDeferredValue=function(T,Y){return G.H.useDeferredValue(T,Y)},mt.useEffect=function(T,Y,Q){var Z=G.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect(T,Y)},mt.useId=function(){return G.H.useId()},mt.useImperativeHandle=function(T,Y,Q){return G.H.useImperativeHandle(T,Y,Q)},mt.useInsertionEffect=function(T,Y){return G.H.useInsertionEffect(T,Y)},mt.useLayoutEffect=function(T,Y){return G.H.useLayoutEffect(T,Y)},mt.useMemo=function(T,Y){return G.H.useMemo(T,Y)},mt.useOptimistic=function(T,Y){return G.H.useOptimistic(T,Y)},mt.useReducer=function(T,Y,Q){return G.H.useReducer(T,Y,Q)},mt.useRef=function(T){return G.H.useRef(T)},mt.useState=function(T){return G.H.useState(T)},mt.useSyncExternalStore=function(T,Y,Q){return G.H.useSyncExternalStore(T,Y,Q)},mt.useTransition=function(){return G.H.useTransition()},mt.version="19.1.1",mt}var Bp;function ef(){return Bp||(Bp=1,sc.exports=Qb()),sc.exports}var A=ef();const Cr=Tg(A);var rc={exports:{}},jl={},oc={exports:{}},uc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hp;function Fb(){return Hp||(Hp=1,(function(n){function i(z,X){var W=z.length;z.push(X);t:for(;0<W;){var dt=W-1>>>1,T=z[dt];if(0<u(T,X))z[dt]=X,z[W]=T,W=dt;else break t}}function s(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var X=z[0],W=z.pop();if(W!==X){z[0]=W;t:for(var dt=0,T=z.length,Y=T>>>1;dt<Y;){var Q=2*(dt+1)-1,Z=z[Q],tt=Q+1,ht=z[tt];if(0>u(Z,W))tt<T&&0>u(ht,Z)?(z[dt]=ht,z[tt]=W,dt=tt):(z[dt]=Z,z[Q]=W,dt=Q);else if(tt<T&&0>u(ht,W))z[dt]=ht,z[tt]=W,dt=tt;else break t}}return X}function u(z,X){var W=z.sortIndex-X.sortIndex;return W!==0?W:z.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var p=[],h=[],y=1,b=null,S=3,E=!1,j=!1,U=!1,V=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function I(z){for(var X=s(h);X!==null;){if(X.callback===null)r(h);else if(X.startTime<=z)r(h),X.sortIndex=X.expirationTime,i(p,X);else break;X=s(h)}}function G(z){if(U=!1,I(z),!j)if(s(p)!==null)j=!0,$||($=!0,K());else{var X=s(h);X!==null&&St(G,X.startTime-z)}}var $=!1,nt=-1,P=5,st=-1;function yt(){return V?!0:!(n.unstable_now()-st<P)}function J(){if(V=!1,$){var z=n.unstable_now();st=z;var X=!0;try{t:{j=!1,U&&(U=!1,L(nt),nt=-1),E=!0;var W=S;try{e:{for(I(z),b=s(p);b!==null&&!(b.expirationTime>z&&yt());){var dt=b.callback;if(typeof dt=="function"){b.callback=null,S=b.priorityLevel;var T=dt(b.expirationTime<=z);if(z=n.unstable_now(),typeof T=="function"){b.callback=T,I(z),X=!0;break e}b===s(p)&&r(p),I(z)}else r(p);b=s(p)}if(b!==null)X=!0;else{var Y=s(h);Y!==null&&St(G,Y.startTime-z),X=!1}}break t}finally{b=null,S=W,E=!1}X=void 0}}finally{X?K():$=!1}}}var K;if(typeof q=="function")K=function(){q(J)};else if(typeof MessageChannel<"u"){var pt=new MessageChannel,lt=pt.port2;pt.port1.onmessage=J,K=function(){lt.postMessage(null)}}else K=function(){_(J,0)};function St(z,X){nt=_(function(){z(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(z){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var W=S;S=X;try{return z()}finally{S=W}},n.unstable_requestPaint=function(){V=!0},n.unstable_runWithPriority=function(z,X){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=S;S=z;try{return X()}finally{S=W}},n.unstable_scheduleCallback=function(z,X,W){var dt=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?dt+W:dt):W=dt,z){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=W+T,z={id:y++,callback:X,priorityLevel:z,startTime:W,expirationTime:T,sortIndex:-1},W>dt?(z.sortIndex=W,i(h,z),s(p)===null&&z===s(h)&&(U?(L(nt),nt=-1):U=!0,St(G,W-dt))):(z.sortIndex=T,i(p,z),j||E||(j=!0,$||($=!0,K()))),z},n.unstable_shouldYield=yt,n.unstable_wrapCallback=function(z){var X=S;return function(){var W=S;S=X;try{return z.apply(this,arguments)}finally{S=W}}}})(uc)),uc}var qp;function $b(){return qp||(qp=1,oc.exports=Fb()),oc.exports}var cc={exports:{}},ce={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var kp;function Jb(){if(kp)return ce;kp=1;var n=ef();function i(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,h,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:p,containerInfo:h,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ce.createPortal=function(p,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(i(299));return f(p,h,null,y)},ce.flushSync=function(p){var h=d.T,y=r.p;try{if(d.T=null,r.p=2,p)return p()}finally{d.T=h,r.p=y,r.d.f()}},ce.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(p,h))},ce.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ce.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var y=h.as,b=m(y,h.crossOrigin),S=typeof h.integrity=="string"?h.integrity:void 0,E=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?r.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:E}):y==="script"&&r.d.X(p,{crossOrigin:b,integrity:S,fetchPriority:E,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ce.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=m(h.as,h.crossOrigin);r.d.M(p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(p)},ce.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,b=m(y,h.crossOrigin);r.d.L(p,y,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ce.preloadModule=function(p,h){if(typeof p=="string")if(h){var y=m(h.as,h.crossOrigin);r.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(p)},ce.requestFormReset=function(p){r.d.r(p)},ce.unstable_batchedUpdates=function(p,h){return p(h)},ce.useFormState=function(p,h,y){return d.H.useFormState(p,h,y)},ce.useFormStatus=function(){return d.H.useHostTransitionStatus()},ce.version="19.1.1",ce}var Yp;function Wb(){if(Yp)return cc.exports;Yp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),cc.exports=Jb(),cc.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gp;function Ib(){if(Gp)return jl;Gp=1;var n=$b(),i=ef(),s=Wb();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}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 u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function d(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(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return m(o),t;if(c===l)return m(o),e;c=c.sibling}throw Error(r(188))}if(a.return!==l.return)a=o,l=c;else{for(var g=!1,x=o.child;x;){if(x===a){g=!0,a=o,l=c;break}if(x===l){g=!0,l=o,a=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===a){g=!0,a=c,l=o;break}if(x===l){g=!0,l=c,a=o;break}x=x.sibling}if(!g)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function h(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=h(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),q=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),nt=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),st=Symbol.for("react.activity"),yt=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function K(t){return t===null||typeof t!="object"?null:(t=J&&t[J]||t["@@iterator"],typeof t=="function"?t:null)}var pt=Symbol.for("react.client.reference");function lt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===pt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case V:return"Profiler";case U:return"StrictMode";case G:return"Suspense";case $:return"SuspenseList";case st:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case q:return(t.displayName||"Context")+".Provider";case L:return(t._context.displayName||"Context")+".Consumer";case I:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case nt:return e=t.displayName||null,e!==null?e:lt(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return lt(t(e))}catch{}}return null}var St=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},dt=[],T=-1;function Y(t){return{current:t}}function Q(t){0>T||(t.current=dt[T],dt[T]=null,T--)}function Z(t,e){T++,dt[T]=t.current,t.current=e}var tt=Y(null),ht=Y(null),it=Y(null),At=Y(null);function ft(t,e){switch(Z(it,e),Z(ht,t),Z(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?up(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=up(e),t=cp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(tt),Z(tt,t)}function qt(){Q(tt),Q(ht),Q(it)}function ze(t){t.memoizedState!==null&&Z(At,t);var e=tt.current,a=cp(e,t.type);e!==a&&(Z(ht,t),Z(tt,a))}function be(t){ht.current===t&&(Q(tt),Q(ht)),At.current===t&&(Q(At),wl._currentValue=W)}var Se=Object.prototype.hasOwnProperty,zt=n.unstable_scheduleCallback,Tt=n.unstable_cancelCallback,re=n.unstable_shouldYield,Je=n.unstable_requestPaint,we=n.unstable_now,Mv=n.unstable_getCurrentPriorityLevel,Gf=n.unstable_ImmediatePriority,Xf=n.unstable_UserBlockingPriority,ts=n.unstable_NormalPriority,Rv=n.unstable_LowPriority,Pf=n.unstable_IdlePriority,jv=n.log,Dv=n.unstable_setDisableYieldValue,Ni=null,Te=null;function Dn(t){if(typeof jv=="function"&&Dv(t),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(Ni,t)}catch{}}var Ee=Math.clz32?Math.clz32:Ov,Nv=Math.log,Cv=Math.LN2;function Ov(t){return t>>>=0,t===0?32:31-(Nv(t)/Cv|0)|0}var es=256,ns=4194304;function aa(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 as(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=aa(l):(g&=x,g!==0?o=aa(g):a||(a=x&~t,a!==0&&(o=aa(a))))):(x=l&~c,x!==0?o=aa(x):g!==0?o=aa(g):a||(a=l&~t,a!==0&&(o=aa(a)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:o}function Ci(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function zv(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 Kf(){var t=es;return es<<=1,(es&4194048)===0&&(es=256),t}function Zf(){var t=ns;return ns<<=1,(ns&62914560)===0&&(ns=4194304),t}function Zr(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Oi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Vv(t,e,a,l,o,c){var g=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var x=t.entanglements,w=t.expirationTimes,N=t.hiddenUpdates;for(a=g&~a;0<a;){var B=31-Ee(a),k=1<<B;x[B]=0,w[B]=-1;var C=N[B];if(C!==null)for(N[B]=null,B=0;B<C.length;B++){var O=C[B];O!==null&&(O.lane&=-536870913)}a&=~k}l!==0&&Qf(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(g&~e))}function Qf(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ee(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&4194090}function Ff(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Ee(a),o=1<<l;o&e|t[l]&e&&(t[l]|=e),a&=~o}}function Qr(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 $f(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Dp(t.type))}function _v(t,e){var a=X.p;try{return X.p=t,e()}finally{X.p=a}}var Nn=Math.random().toString(36).slice(2),oe="__reactFiber$"+Nn,he="__reactProps$"+Nn,ja="__reactContainer$"+Nn,$r="__reactEvents$"+Nn,Lv="__reactListeners$"+Nn,Uv="__reactHandles$"+Nn,Jf="__reactResources$"+Nn,zi="__reactMarker$"+Nn;function Jr(t){delete t[oe],delete t[he],delete t[$r],delete t[Lv],delete t[Uv]}function Da(t){var e=t[oe];if(e)return e;for(var a=t.parentNode;a;){if(e=a[ja]||a[oe]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=mp(t);t!==null;){if(a=t[oe])return a;t=mp(t)}return e}t=a,a=t.parentNode}return null}function Na(t){if(t=t[oe]||t[ja]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Vi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ca(t){var e=t[Jf];return e||(e=t[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[zi]=!0}var Wf=new Set,If={};function ia(t,e){Oa(t,e),Oa(t+"Capture",e)}function Oa(t,e){for(If[t]=e,t=0;t<e.length;t++)Wf.add(e[t])}var Bv=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]*$"),td={},ed={};function Hv(t){return Se.call(ed,t)?!0:Se.call(td,t)?!1:Bv.test(t)?ed[t]=!0:(td[t]=!0,!1)}function is(t,e,a){if(Hv(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function ls(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function cn(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}var Wr,nd;function za(t){if(Wr===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Wr=e&&e[1]||"",nd=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Wr+t+nd}var Ir=!1;function to(t,e){if(!t||Ir)return"";Ir=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(O){var C=O}Reflect.construct(t,[],k)}else{try{k.call()}catch(O){C=O}t.call(k.prototype)}}else{try{throw Error()}catch(O){C=O}(k=t())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(O){if(O&&C&&typeof O.stack=="string")return[O.stack,C.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],x=c[1];if(g&&x){var w=g.split(`
`),N=x.split(`
`);for(o=l=0;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(l===w.length||o===N.length)for(l=w.length-1,o=N.length-1;1<=l&&0<=o&&w[l]!==N[o];)o--;for(;1<=l&&0<=o;l--,o--)if(w[l]!==N[o]){if(l!==1||o!==1)do if(l--,o--,0>o||w[l]!==N[o]){var B=`
`+w[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=o);break}}}finally{Ir=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?za(a):""}function qv(t){switch(t.tag){case 26:case 27:case 5:return za(t.type);case 16:return za("Lazy");case 13:return za("Suspense");case 19:return za("SuspenseList");case 0:case 15:return to(t.type,!1);case 11:return to(t.type.render,!1);case 1:return to(t.type,!0);case 31:return za("Activity");default:return""}}function ad(t){try{var e="";do e+=qv(t),t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function Ve(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function id(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function kv(t){var e=id(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),l=""+t[e];if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ss(t){t._valueTracker||(t._valueTracker=kv(t))}function ld(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=id(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function rs(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 Yv=/[\n"\\]/g;function _e(t){return t.replace(Yv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function eo(t,e,a,l,o,c,g,x){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ve(e)):t.value!==""+Ve(e)&&(t.value=""+Ve(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?no(t,g,Ve(e)):a!=null?no(t,g,Ve(a)):l!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Ve(x):t.removeAttribute("name")}function sd(t,e,a,l,o,c,g,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||e!=null))return;a=a!=null?""+Ve(a):"",e=e!=null?""+Ve(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g)}function no(t,e,a){e==="number"&&rs(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Va(t,e,a,l){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&l&&(t[a].defaultSelected=!0)}else{for(a=""+Ve(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function rd(t,e,a){if(e!=null&&(e=""+Ve(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Ve(a):""}function od(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(St(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=Ve(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l)}function _a(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Gv=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 ud(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||Gv.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function cd(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&a[o]!==l&&ud(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&ud(t,c,e[c])}function ao(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 Xv=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"]]),Pv=/^[\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 os(t){return Pv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var io=null;function lo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var La=null,Ua=null;function fd(t){var e=Na(t);if(e&&(t=e.stateNode)){var a=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(eo(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_e(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var o=l[he]||null;if(!o)throw Error(r(90));eo(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&ld(l)}break t;case"textarea":rd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Va(t,!!a.multiple,e,!1)}}}var so=!1;function dd(t,e,a){if(so)return t(e,a);so=!0;try{var l=t(e);return l}finally{if(so=!1,(La!==null||Ua!==null)&&(Zs(),La&&(e=La,t=Ua,Ua=La=null,fd(e),t)))for(e=0;e<t.length;e++)fd(t[e])}}function _i(t,e){var a=t.stateNode;if(a===null)return null;var l=a[he]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ro=!1;if(fn)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){ro=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{ro=!1}var Cn=null,oo=null,us=null;function hd(){if(us)return us;var t,e=oo,a=e.length,l,o="value"in Cn?Cn.value:Cn.textContent,c=o.length;for(t=0;t<a&&e[t]===o[t];t++);var g=a-t;for(l=1;l<=g&&e[a-l]===o[c-l];l++);return us=o.slice(t,1<l?1-l:void 0)}function cs(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 fs(){return!0}function md(){return!1}function me(t){function e(a,l,o,c,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(a=t[x],this[x]=a?a(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?fs:md,this.isPropagationStopped=md,this}return y(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=fs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),e}var la={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ds=me(la),Ui=y({},la,{view:0,detail:0}),Kv=me(Ui),uo,co,Bi,hs=y({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ho,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!==Bi&&(Bi&&t.type==="mousemove"?(uo=t.screenX-Bi.screenX,co=t.screenY-Bi.screenY):co=uo=0,Bi=t),uo)},movementY:function(t){return"movementY"in t?t.movementY:co}}),pd=me(hs),Zv=y({},hs,{dataTransfer:0}),Qv=me(Zv),Fv=y({},Ui,{relatedTarget:0}),fo=me(Fv),$v=y({},la,{animationName:0,elapsedTime:0,pseudoElement:0}),Jv=me($v),Wv=y({},la,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Iv=me(Wv),tx=y({},la,{data:0}),gd=me(tx),ex={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nx={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"},ax={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ix(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ax[t])?!!e[t]:!1}function ho(){return ix}var lx=y({},Ui,{key:function(t){if(t.key){var e=ex[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=cs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?nx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ho,charCode:function(t){return t.type==="keypress"?cs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?cs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),sx=me(lx),rx=y({},hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yd=me(rx),ox=y({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ho}),ux=me(ox),cx=y({},la,{propertyName:0,elapsedTime:0,pseudoElement:0}),fx=me(cx),dx=y({},hs,{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}),hx=me(dx),mx=y({},la,{newState:0,oldState:0}),px=me(mx),gx=[9,13,27,32],mo=fn&&"CompositionEvent"in window,Hi=null;fn&&"documentMode"in document&&(Hi=document.documentMode);var yx=fn&&"TextEvent"in window&&!Hi,vd=fn&&(!mo||Hi&&8<Hi&&11>=Hi),xd=" ",bd=!1;function Sd(t,e){switch(t){case"keyup":return gx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ba=!1;function vx(t,e){switch(t){case"compositionend":return wd(e);case"keypress":return e.which!==32?null:(bd=!0,xd);case"textInput":return t=e.data,t===xd&&bd?null:t;default:return null}}function xx(t,e){if(Ba)return t==="compositionend"||!mo&&Sd(t,e)?(t=hd(),us=oo=Cn=null,Ba=!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 vd&&e.locale!=="ko"?null:e.data;default:return null}}var bx={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 Td(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!bx[t.type]:e==="textarea"}function Ed(t,e,a,l){La?Ua?Ua.push(l):Ua=[l]:La=l,e=Is(e,"onChange"),0<e.length&&(a=new ds("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var qi=null,ki=null;function Sx(t){ip(t,0)}function ms(t){var e=Vi(t);if(ld(e))return t}function Ad(t,e){if(t==="change")return e}var Md=!1;if(fn){var po;if(fn){var go="oninput"in document;if(!go){var Rd=document.createElement("div");Rd.setAttribute("oninput","return;"),go=typeof Rd.oninput=="function"}po=go}else po=!1;Md=po&&(!document.documentMode||9<document.documentMode)}function jd(){qi&&(qi.detachEvent("onpropertychange",Dd),ki=qi=null)}function Dd(t){if(t.propertyName==="value"&&ms(ki)){var e=[];Ed(e,ki,t,lo(t)),dd(Sx,e)}}function wx(t,e,a){t==="focusin"?(jd(),qi=e,ki=a,qi.attachEvent("onpropertychange",Dd)):t==="focusout"&&jd()}function Tx(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ms(ki)}function Ex(t,e){if(t==="click")return ms(e)}function Ax(t,e){if(t==="input"||t==="change")return ms(e)}function Mx(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ae=typeof Object.is=="function"?Object.is:Mx;function Yi(t,e){if(Ae(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Se.call(e,o)||!Ae(t[o],e[o]))return!1}return!0}function Nd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cd(t,e){var a=Nd(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Nd(a)}}function Od(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Od(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function zd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=rs(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=rs(t.document)}return e}function yo(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 Rx=fn&&"documentMode"in document&&11>=document.documentMode,Ha=null,vo=null,Gi=null,xo=!1;function Vd(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xo||Ha==null||Ha!==rs(l)||(l=Ha,"selectionStart"in l&&yo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Gi&&Yi(Gi,l)||(Gi=l,l=Is(vo,"onSelect"),0<l.length&&(e=new ds("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=Ha)))}function sa(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var qa={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},bo={},_d={};fn&&(_d=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function ra(t){if(bo[t])return bo[t];if(!qa[t])return t;var e=qa[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in _d)return bo[t]=e[a];return t}var Ld=ra("animationend"),Ud=ra("animationiteration"),Bd=ra("animationstart"),jx=ra("transitionrun"),Dx=ra("transitionstart"),Nx=ra("transitioncancel"),Hd=ra("transitionend"),qd=new Map,So="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(" ");So.push("scrollEnd");function Pe(t,e){qd.set(t,e),ia(e,[t])}var kd=new WeakMap;function Le(t,e){if(typeof t=="object"&&t!==null){var a=kd.get(t);return a!==void 0?a:(e={value:t,source:e,stack:ad(e)},kd.set(t,e),e)}return{value:t,source:e,stack:ad(e)}}var Ue=[],ka=0,wo=0;function ps(){for(var t=ka,e=wo=ka=0;e<t;){var a=Ue[e];Ue[e++]=null;var l=Ue[e];Ue[e++]=null;var o=Ue[e];Ue[e++]=null;var c=Ue[e];if(Ue[e++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}c!==0&&Yd(a,o,c)}}function gs(t,e,a,l){Ue[ka++]=t,Ue[ka++]=e,Ue[ka++]=a,Ue[ka++]=l,wo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function To(t,e,a,l){return gs(t,e,a,l),ys(t)}function Ya(t,e){return gs(t,null,null,e),ys(t)}function Yd(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=t.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-Ee(a),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=a|536870912),c):null}function ys(t){if(50<ml)throw ml=0,Du=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ga={};function Cx(t,e,a,l){this.tag=t,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Me(t,e,a,l){return new Cx(t,e,a,l)}function Eo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function dn(t,e){var a=t.alternate;return a===null?(a=Me(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Gd(t,e){t.flags&=65011714;var a=t.alternate;return a===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=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function vs(t,e,a,l,o,c){var g=0;if(l=t,typeof t=="function")Eo(t)&&(g=1);else if(typeof t=="string")g=zb(t,a,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case st:return t=Me(31,a,e,o),t.elementType=st,t.lanes=c,t;case j:return oa(a.children,o,c,e);case U:g=8,o|=24;break;case V:return t=Me(12,a,e,o|2),t.elementType=V,t.lanes=c,t;case G:return t=Me(13,a,e,o),t.elementType=G,t.lanes=c,t;case $:return t=Me(19,a,e,o),t.elementType=$,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:case q:g=10;break t;case L:g=9;break t;case I:g=11;break t;case nt:g=14;break t;case P:g=16,l=null;break t}g=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Me(g,a,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function oa(t,e,a,l){return t=Me(7,t,l,e),t.lanes=a,t}function Ao(t,e,a){return t=Me(6,t,null,e),t.lanes=a,t}function Mo(t,e,a){return e=Me(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Xa=[],Pa=0,xs=null,bs=0,Be=[],He=0,ua=null,hn=1,mn="";function ca(t,e){Xa[Pa++]=bs,Xa[Pa++]=xs,xs=t,bs=e}function Xd(t,e,a){Be[He++]=hn,Be[He++]=mn,Be[He++]=ua,ua=t;var l=hn;t=mn;var o=32-Ee(l)-1;l&=~(1<<o),a+=1;var c=32-Ee(e)+o;if(30<c){var g=o-o%5;c=(l&(1<<g)-1).toString(32),l>>=g,o-=g,hn=1<<32-Ee(e)+o|a<<o|l,mn=c+t}else hn=1<<c|a<<o|l,mn=t}function Ro(t){t.return!==null&&(ca(t,1),Xd(t,1,0))}function jo(t){for(;t===xs;)xs=Xa[--Pa],Xa[Pa]=null,bs=Xa[--Pa],Xa[Pa]=null;for(;t===ua;)ua=Be[--He],Be[He]=null,mn=Be[--He],Be[He]=null,hn=Be[--He],Be[He]=null}var fe=null,kt=null,Mt=!1,fa=null,We=!1,Do=Error(r(519));function da(t){var e=Error(r(418,""));throw Ki(Le(e,t)),Do}function Pd(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[oe]=t,e[he]=l,a){case"dialog":bt("cancel",e),bt("close",e);break;case"iframe":case"object":case"embed":bt("load",e);break;case"video":case"audio":for(a=0;a<gl.length;a++)bt(gl[a],e);break;case"source":bt("error",e);break;case"img":case"image":case"link":bt("error",e),bt("load",e);break;case"details":bt("toggle",e);break;case"input":bt("invalid",e),sd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ss(e);break;case"select":bt("invalid",e);break;case"textarea":bt("invalid",e),od(e,l.value,l.defaultValue,l.children),ss(e)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||op(e.textContent,a)?(l.popover!=null&&(bt("beforetoggle",e),bt("toggle",e)),l.onScroll!=null&&bt("scroll",e),l.onScrollEnd!=null&&bt("scrollend",e),l.onClick!=null&&(e.onclick=tr),e=!0):e=!1,e||da(t)}function Kd(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 13:We=!1;return;case 27:case 3:We=!0;return;default:fe=fe.return}}function Xi(t){if(t!==fe)return!1;if(!Mt)return Kd(t),Mt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Pu(t.type,t.memoizedProps)),a=!a),a&&kt&&da(t),Kd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(a=t.data,a==="/$"){if(e===0){kt=Ze(t.nextSibling);break t}e--}else a!=="$"&&a!=="$!"&&a!=="$?"||e++;t=t.nextSibling}kt=null}}else e===27?(e=kt,Zn(t.type)?(t=Fu,Fu=null,kt=t):kt=e):kt=fe?Ze(t.stateNode.nextSibling):null;return!0}function Pi(){kt=fe=null,Mt=!1}function Zd(){var t=fa;return t!==null&&(ye===null?ye=t:ye.push.apply(ye,t),fa=null),t}function Ki(t){fa===null?fa=[t]:fa.push(t)}var No=Y(null),ha=null,pn=null;function On(t,e,a){Z(No,e._currentValue),e._currentValue=a}function gn(t){t._currentValue=No.current,Q(No)}function Co(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function Oo(t,e,a,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=o;for(var w=0;w<e.length;w++)if(x.context===e[w]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),Co(c.return,a,t),l||(g=null);break t}c=x.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(r(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),Co(g,a,t),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===t){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Zi(t,e,a,l){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var x=o.type;Ae(o.pendingProps.value,g.value)||(t!==null?t.push(x):t=[x])}}else if(o===At.current){if(g=o.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(wl):t=[wl])}o=o.return}t!==null&&Oo(e,t,a,l),e.flags|=262144}function Ss(t){for(t=t.firstContext;t!==null;){if(!Ae(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ma(t){ha=t,pn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return Qd(ha,t)}function ws(t,e){return ha===null&&ma(t),Qd(t,e)}function Qd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},pn===null){if(t===null)throw Error(r(308));pn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else pn=pn.next=e;return a}var Ox=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},zx=n.unstable_scheduleCallback,Vx=n.unstable_NormalPriority,$t={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zo(){return{controller:new Ox,data:new Map,refCount:0}}function Qi(t){t.refCount--,t.refCount===0&&zx(Vx,function(){t.controller.abort()})}var Fi=null,Vo=0,Ka=0,Za=null;function _x(t,e){if(Fi===null){var a=Fi=[];Vo=0,Ka=Lu(),Za={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Vo++,e.then(Fd,Fd),e}function Fd(){if(--Vo===0&&Fi!==null){Za!==null&&(Za.status="fulfilled");var t=Fi;Fi=null,Ka=0,Za=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Lx(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var $d=z.S;z.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&_x(t,e),$d!==null&&$d(t,e)};var pa=Y(null);function _o(){var t=pa.current;return t!==null?t:_t.pooledCache}function Ts(t,e){e===null?Z(pa,pa.current):Z(pa,e.pool)}function Jd(){var t=_o();return t===null?null:{parent:$t._currentValue,pool:t}}var $i=Error(r(460)),Wd=Error(r(474)),Es=Error(r(542)),Lo={then:function(){}};function Id(t){return t=t.status,t==="fulfilled"||t==="rejected"}function As(){}function th(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(As,As),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nh(t),t;default:if(typeof e.status=="string")e.then(As,As);else{if(t=_t,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nh(t),t}throw Ji=e,$i}}var Ji=null;function eh(){if(Ji===null)throw Error(r(459));var t=Ji;return Ji=null,t}function nh(t){if(t===$i||t===Es)throw Error(r(483))}var zn=!1;function Uo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bo(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 Vn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function _n(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(jt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=ys(t),Yd(t,null,a),e}return gs(t,l,e,a),ys(t)}function Wi(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Ff(t,a)}}function Ho(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,a=a.next}while(a!==null);c===null?o=c=e:c=c.next=e}else o=c=e;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var qo=!1;function Ii(){if(qo){var t=Za;if(t!==null)throw t}}function tl(t,e,a,l){qo=!1;var o=t.updateQueue;zn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var w=x,N=w.next;w.next=null,g===null?c=N:g.next=N,g=w;var B=t.alternate;B!==null&&(B=B.updateQueue,x=B.lastBaseUpdate,x!==g&&(x===null?B.firstBaseUpdate=N:x.next=N,B.lastBaseUpdate=w))}if(c!==null){var k=o.baseState;g=0,B=N=w=null,x=c;do{var C=x.lane&-536870913,O=C!==x.lane;if(O?(wt&C)===C:(l&C)===C){C!==0&&C===Ka&&(qo=!0),B!==null&&(B=B.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var ut=t,rt=x;C=e;var Ot=a;switch(rt.tag){case 1:if(ut=rt.payload,typeof ut=="function"){k=ut.call(Ot,k,C);break t}k=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=rt.payload,C=typeof ut=="function"?ut.call(Ot,k,C):ut,C==null)break t;k=y({},k,C);break t;case 2:zn=!0}}C=x.callback,C!==null&&(t.flags|=64,O&&(t.flags|=8192),O=o.callbacks,O===null?o.callbacks=[C]:O.push(C))}else O={lane:C,tag:x.tag,payload:x.payload,callback:x.callback,next:null},B===null?(N=B=O,w=k):B=B.next=O,g|=C;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;O=x,x=O.next,O.next=null,o.lastBaseUpdate=O,o.shared.pending=null}}while(!0);B===null&&(w=k),o.baseState=w,o.firstBaseUpdate=N,o.lastBaseUpdate=B,c===null&&(o.shared.lanes=0),Gn|=g,t.lanes=g,t.memoizedState=k}}function ah(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function ih(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)ah(a[t],e)}var Qa=Y(null),Ms=Y(0);function lh(t,e){t=Tn,Z(Ms,t),Z(Qa,e),Tn=t|e.baseLanes}function ko(){Z(Ms,Tn),Z(Qa,Qa.current)}function Yo(){Tn=Ms.current,Q(Qa),Q(Ms)}var Ln=0,gt=null,Nt=null,Zt=null,Rs=!1,Fa=!1,ga=!1,js=0,el=0,$a=null,Ux=0;function Xt(){throw Error(r(321))}function Go(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ae(t[a],e[a]))return!1;return!0}function Xo(t,e,a,l,o,c){return Ln=c,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Yh:Gh,ga=!1,c=a(l,o),ga=!1,Fa&&(c=rh(e,a,l,o)),sh(t),c}function sh(t){z.H=Vs;var e=Nt!==null&&Nt.next!==null;if(Ln=0,Zt=Nt=gt=null,Rs=!1,el=0,$a=null,e)throw Error(r(300));t===null||It||(t=t.dependencies,t!==null&&Ss(t)&&(It=!0))}function rh(t,e,a,l){gt=t;var o=0;do{if(Fa&&($a=null),el=0,Fa=!1,25<=o)throw Error(r(301));if(o+=1,Zt=Nt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Xx,c=e(a,l)}while(Fa);return c}function Bx(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?nl(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(gt.flags|=1024),e}function Po(){var t=js!==0;return js=0,t}function Ko(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Zo(t){if(Rs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Rs=!1}Ln=0,Zt=Nt=gt=null,Fa=!1,el=js=0,$a=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?gt.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Qt(){if(Nt===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=Zt===null?gt.memoizedState:Zt.next;if(e!==null)Zt=e,Nt=t;else{if(t===null)throw gt.alternate===null?Error(r(467)):Error(r(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Zt===null?gt.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Qo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(t){var e=el;return el+=1,$a===null&&($a=[]),t=th($a,t,e),e=gt,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Yh:Gh),t}function Ds(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nl(t);if(t.$$typeof===q)return ue(t)}throw Error(r(438,String(t)))}function Fo(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=gt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Qo(),gt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=yt;return e.index++,a}function yn(t,e){return typeof e=="function"?e(t):e}function Ns(t){var e=Qt();return $o(e,Nt,t)}function $o(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var o=t.baseQueue,c=l.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var x=g=null,w=null,N=e,B=!1;do{var k=N.lane&-536870913;if(k!==N.lane?(wt&k)===k:(Ln&k)===k){var C=N.revertLane;if(C===0)w!==null&&(w=w.next={lane:0,revertLane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),k===Ka&&(B=!0);else if((Ln&C)===C){N=N.next,C===Ka&&(B=!0);continue}else k={lane:0,revertLane:N.revertLane,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(x=w=k,g=c):w=w.next=k,gt.lanes|=C,Gn|=C;k=N.action,ga&&a(c,k),c=N.hasEagerState?N.eagerState:a(c,k)}else C={lane:k,revertLane:N.revertLane,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(x=w=C,g=c):w=w.next=C,gt.lanes|=k,Gn|=k;N=N.next}while(N!==null&&N!==e);if(w===null?g=c:w.next=x,!Ae(c,t.memoizedState)&&(It=!0,B&&(a=Za,a!==null)))throw a;t.memoizedState=c,t.baseState=g,t.baseQueue=w,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Jo(t){var e=Qt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,o=a.pending,c=e.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do c=t(c,g.action),g=g.next;while(g!==o);Ae(c,e.memoizedState)||(It=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,l]}function oh(t,e,a){var l=gt,o=Qt(),c=Mt;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var g=!Ae((Nt||o).memoizedState,a);g&&(o.memoizedState=a,It=!0),o=o.queue;var x=fh.bind(null,l,o,t);if(al(2048,8,x,[t]),o.getSnapshot!==e||g||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,Ja(9,Cs(),ch.bind(null,l,o,a,e),null),_t===null)throw Error(r(349));c||(Ln&124)!==0||uh(l,e,a)}return a}function uh(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=Qo(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function ch(t,e,a,l){e.value=a,e.getSnapshot=l,dh(e)&&hh(t)}function fh(t,e,a){return a(function(){dh(e)&&hh(t)})}function dh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ae(t,a)}catch{return!0}}function hh(t){var e=Ya(t,2);e!==null&&Ce(e,t,2)}function Wo(t){var e=pe();if(typeof t=="function"){var a=t;if(t=a(),ga){Dn(!0);try{a()}finally{Dn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:t},e}function mh(t,e,a,l){return t.baseState=a,$o(t,Nt,typeof l=="function"?l:yn)}function Hx(t,e,a,l,o){if(zs(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};z.T!==null?a(!0):c.isTransition=!1,l(c),a=e.pending,a===null?(c.next=e.pending=c,ph(e,c)):(c.next=a.next,e.pending=a.next=c)}}function ph(t,e){var a=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=z.T,g={};z.T=g;try{var x=a(o,l),w=z.S;w!==null&&w(g,x),gh(t,e,x)}catch(N){Io(t,e,N)}finally{z.T=c}}else try{c=a(o,l),gh(t,e,c)}catch(N){Io(t,e,N)}}function gh(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){yh(t,e,l)},function(l){return Io(t,e,l)}):yh(t,e,a)}function yh(t,e,a){e.status="fulfilled",e.value=a,vh(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,ph(t,a)))}function Io(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,vh(e),e=e.next;while(e!==l)}t.action=null}function vh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function xh(t,e){return e}function bh(t,e){if(Mt){var a=_t.formState;if(a!==null){t:{var l=gt;if(Mt){if(kt){e:{for(var o=kt,c=We;o.nodeType!==8;){if(!c){o=null;break e}if(o=Ze(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){kt=Ze(o.nextSibling),l=o.data==="F!";break t}}da(l)}l=!1}l&&(e=a[0])}}return a=pe(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xh,lastRenderedState:e},a.queue=l,a=Hh.bind(null,gt,l),l.dispatch=a,l=Wo(!1),c=iu.bind(null,gt,!1,l.queue),l=pe(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,a=Hx.bind(null,gt,o,c,a),o.dispatch=a,l.memoizedState=t,[e,a,!1]}function Sh(t){var e=Qt();return wh(e,Nt,t)}function wh(t,e,a){if(e=$o(t,e,xh)[0],t=Ns(yn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=nl(e)}catch(g){throw g===$i?Es:g}else l=e;e=Qt();var o=e.queue,c=o.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,Ja(9,Cs(),qx.bind(null,o,a),null)),[l,c,t]}function qx(t,e){t.action=e}function Th(t){var e=Qt(),a=Nt;if(a!==null)return wh(e,a,t);Qt(),e=e.memoizedState,a=Qt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Ja(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=gt.updateQueue,e===null&&(e=Qo(),gt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Cs(){return{destroy:void 0,resource:void 0}}function Eh(){return Qt().memoizedState}function Os(t,e,a,l){var o=pe();l=l===void 0?null:l,gt.flags|=t,o.memoizedState=Ja(1|e,Cs(),a,l)}function al(t,e,a,l){var o=Qt();l=l===void 0?null:l;var c=o.memoizedState.inst;Nt!==null&&l!==null&&Go(l,Nt.memoizedState.deps)?o.memoizedState=Ja(e,c,a,l):(gt.flags|=t,o.memoizedState=Ja(1|e,c,a,l))}function Ah(t,e){Os(8390656,8,t,e)}function Mh(t,e){al(2048,8,t,e)}function Rh(t,e){return al(4,2,t,e)}function jh(t,e){return al(4,4,t,e)}function Dh(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Nh(t,e,a){a=a!=null?a.concat([t]):null,al(4,4,Dh.bind(null,e,t),a)}function tu(){}function Ch(t,e){var a=Qt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&Go(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function Oh(t,e){var a=Qt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&Go(e,l[1]))return l[0];if(l=t(),ga){Dn(!0);try{t()}finally{Dn(!1)}}return a.memoizedState=[l,e],l}function eu(t,e,a){return a===void 0||(Ln&1073741824)!==0?t.memoizedState=e:(t.memoizedState=a,t=_m(),gt.lanes|=t,Gn|=t,a)}function zh(t,e,a,l){return Ae(a,e)?a:Qa.current!==null?(t=eu(t,a,l),Ae(t,e)||(It=!0),t):(Ln&42)===0?(It=!0,t.memoizedState=a):(t=_m(),gt.lanes|=t,Gn|=t,e)}function Vh(t,e,a,l,o){var c=X.p;X.p=c!==0&&8>c?c:8;var g=z.T,x={};z.T=x,iu(t,!1,e,a);try{var w=o(),N=z.S;if(N!==null&&N(x,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var B=Lx(w,l);il(t,e,B,Ne(t))}else il(t,e,l,Ne(t))}catch(k){il(t,e,{then:function(){},status:"rejected",reason:k},Ne())}finally{X.p=c,z.T=g}}function kx(){}function nu(t,e,a,l){if(t.tag!==5)throw Error(r(476));var o=_h(t).queue;Vh(t,o,e,W,a===null?kx:function(){return Lh(t),a(l)})}function _h(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:W},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Lh(t){var e=_h(t).next.queue;il(t,e,{},Ne())}function au(){return ue(wl)}function Uh(){return Qt().memoizedState}function Bh(){return Qt().memoizedState}function Yx(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Ne();t=Vn(a);var l=_n(e,t,a);l!==null&&(Ce(l,e,a),Wi(l,e,a)),e={cache:zo()},t.payload=e;return}e=e.return}}function Gx(t,e,a){var l=Ne();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},zs(t)?qh(e,a):(a=To(t,e,a,l),a!==null&&(Ce(a,t,l),kh(a,e,l)))}function Hh(t,e,a){var l=Ne();il(t,e,a,l)}function il(t,e,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(zs(t))qh(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var g=e.lastRenderedState,x=c(g,a);if(o.hasEagerState=!0,o.eagerState=x,Ae(x,g))return gs(t,e,o,0),_t===null&&ps(),!1}catch{}finally{}if(a=To(t,e,o,l),a!==null)return Ce(a,t,l),kh(a,e,l),!0}return!1}function iu(t,e,a,l){if(l={lane:2,revertLane:Lu(),action:l,hasEagerState:!1,eagerState:null,next:null},zs(t)){if(e)throw Error(r(479))}else e=To(t,a,l,2),e!==null&&Ce(e,t,2)}function zs(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function qh(t,e){Fa=Rs=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function kh(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Ff(t,a)}}var Vs={readContext:ue,use:Ds,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt},Yh={readContext:ue,use:Ds,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:Ah,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Os(4194308,4,Dh.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Os(4194308,4,t,e)},useInsertionEffect:function(t,e){Os(4,2,t,e)},useMemo:function(t,e){var a=pe();e=e===void 0?null:e;var l=t();if(ga){Dn(!0);try{t()}finally{Dn(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=pe();if(a!==void 0){var o=a(e);if(ga){Dn(!0);try{a(e)}finally{Dn(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=Gx.bind(null,gt,t),[l.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Wo(t);var e=t.queue,a=Hh.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:tu,useDeferredValue:function(t,e){var a=pe();return eu(a,t,e)},useTransition:function(){var t=Wo(!1);return t=Vh.bind(null,gt,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=gt,o=pe();if(Mt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),_t===null)throw Error(r(349));(wt&124)!==0||uh(l,e,a)}o.memoizedState=a;var c={value:a,getSnapshot:e};return o.queue=c,Ah(fh.bind(null,l,c,t),[t]),l.flags|=2048,Ja(9,Cs(),ch.bind(null,l,c,a,e),null),a},useId:function(){var t=pe(),e=_t.identifierPrefix;if(Mt){var a=mn,l=hn;a=(l&~(1<<32-Ee(l)-1)).toString(32)+a,e="«"+e+"R"+a,a=js++,0<a&&(e+="H"+a.toString(32)),e+="»"}else a=Ux++,e="«"+e+"r"+a.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:au,useFormState:bh,useActionState:bh,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=iu.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Fo,useCacheRefresh:function(){return pe().memoizedState=Yx.bind(null,gt)}},Gh={readContext:ue,use:Ds,useCallback:Ch,useContext:ue,useEffect:Mh,useImperativeHandle:Nh,useInsertionEffect:Rh,useLayoutEffect:jh,useMemo:Oh,useReducer:Ns,useRef:Eh,useState:function(){return Ns(yn)},useDebugValue:tu,useDeferredValue:function(t,e){var a=Qt();return zh(a,Nt.memoizedState,t,e)},useTransition:function(){var t=Ns(yn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:nl(t),e]},useSyncExternalStore:oh,useId:Uh,useHostTransitionStatus:au,useFormState:Sh,useActionState:Sh,useOptimistic:function(t,e){var a=Qt();return mh(a,Nt,t,e)},useMemoCache:Fo,useCacheRefresh:Bh},Xx={readContext:ue,use:Ds,useCallback:Ch,useContext:ue,useEffect:Mh,useImperativeHandle:Nh,useInsertionEffect:Rh,useLayoutEffect:jh,useMemo:Oh,useReducer:Jo,useRef:Eh,useState:function(){return Jo(yn)},useDebugValue:tu,useDeferredValue:function(t,e){var a=Qt();return Nt===null?eu(a,t,e):zh(a,Nt.memoizedState,t,e)},useTransition:function(){var t=Jo(yn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:nl(t),e]},useSyncExternalStore:oh,useId:Uh,useHostTransitionStatus:au,useFormState:Th,useActionState:Th,useOptimistic:function(t,e){var a=Qt();return Nt!==null?mh(a,Nt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Fo,useCacheRefresh:Bh},Wa=null,ll=0;function _s(t){var e=ll;return ll+=1,Wa===null&&(Wa=[]),th(Wa,t,e)}function sl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ls(t,e){throw e.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Xh(t){var e=t._init;return e(t._payload)}function Ph(t){function e(R,M){if(t){var D=R.deletions;D===null?(R.deletions=[M],R.flags|=16):D.push(M)}}function a(R,M){if(!t)return null;for(;M!==null;)e(R,M),M=M.sibling;return null}function l(R){for(var M=new Map;R!==null;)R.key!==null?M.set(R.key,R):M.set(R.index,R),R=R.sibling;return M}function o(R,M){return R=dn(R,M),R.index=0,R.sibling=null,R}function c(R,M,D){return R.index=D,t?(D=R.alternate,D!==null?(D=D.index,D<M?(R.flags|=67108866,M):D):(R.flags|=67108866,M)):(R.flags|=1048576,M)}function g(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function x(R,M,D,H){return M===null||M.tag!==6?(M=Ao(D,R.mode,H),M.return=R,M):(M=o(M,D),M.return=R,M)}function w(R,M,D,H){var et=D.type;return et===j?B(R,M,D.props.children,H,D.key):M!==null&&(M.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===P&&Xh(et)===M.type)?(M=o(M,D.props),sl(M,D),M.return=R,M):(M=vs(D.type,D.key,D.props,null,R.mode,H),sl(M,D),M.return=R,M)}function N(R,M,D,H){return M===null||M.tag!==4||M.stateNode.containerInfo!==D.containerInfo||M.stateNode.implementation!==D.implementation?(M=Mo(D,R.mode,H),M.return=R,M):(M=o(M,D.children||[]),M.return=R,M)}function B(R,M,D,H,et){return M===null||M.tag!==7?(M=oa(D,R.mode,H,et),M.return=R,M):(M=o(M,D),M.return=R,M)}function k(R,M,D){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Ao(""+M,R.mode,D),M.return=R,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return D=vs(M.type,M.key,M.props,null,R.mode,D),sl(D,M),D.return=R,D;case E:return M=Mo(M,R.mode,D),M.return=R,M;case P:var H=M._init;return M=H(M._payload),k(R,M,D)}if(St(M)||K(M))return M=oa(M,R.mode,D,null),M.return=R,M;if(typeof M.then=="function")return k(R,_s(M),D);if(M.$$typeof===q)return k(R,ws(R,M),D);Ls(R,M)}return null}function C(R,M,D,H){var et=M!==null?M.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return et!==null?null:x(R,M,""+D,H);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===et?w(R,M,D,H):null;case E:return D.key===et?N(R,M,D,H):null;case P:return et=D._init,D=et(D._payload),C(R,M,D,H)}if(St(D)||K(D))return et!==null?null:B(R,M,D,H,null);if(typeof D.then=="function")return C(R,M,_s(D),H);if(D.$$typeof===q)return C(R,M,ws(R,D),H);Ls(R,D)}return null}function O(R,M,D,H,et){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(D)||null,x(M,R,""+H,et);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case S:return R=R.get(H.key===null?D:H.key)||null,w(M,R,H,et);case E:return R=R.get(H.key===null?D:H.key)||null,N(M,R,H,et);case P:var vt=H._init;return H=vt(H._payload),O(R,M,D,H,et)}if(St(H)||K(H))return R=R.get(D)||null,B(M,R,H,et,null);if(typeof H.then=="function")return O(R,M,D,_s(H),et);if(H.$$typeof===q)return O(R,M,D,ws(M,H),et);Ls(M,H)}return null}function ut(R,M,D,H){for(var et=null,vt=null,at=M,ot=M=0,ee=null;at!==null&&ot<D.length;ot++){at.index>ot?(ee=at,at=null):ee=at.sibling;var Et=C(R,at,D[ot],H);if(Et===null){at===null&&(at=ee);break}t&&at&&Et.alternate===null&&e(R,at),M=c(Et,M,ot),vt===null?et=Et:vt.sibling=Et,vt=Et,at=ee}if(ot===D.length)return a(R,at),Mt&&ca(R,ot),et;if(at===null){for(;ot<D.length;ot++)at=k(R,D[ot],H),at!==null&&(M=c(at,M,ot),vt===null?et=at:vt.sibling=at,vt=at);return Mt&&ca(R,ot),et}for(at=l(at);ot<D.length;ot++)ee=O(at,R,ot,D[ot],H),ee!==null&&(t&&ee.alternate!==null&&at.delete(ee.key===null?ot:ee.key),M=c(ee,M,ot),vt===null?et=ee:vt.sibling=ee,vt=ee);return t&&at.forEach(function(Wn){return e(R,Wn)}),Mt&&ca(R,ot),et}function rt(R,M,D,H){if(D==null)throw Error(r(151));for(var et=null,vt=null,at=M,ot=M=0,ee=null,Et=D.next();at!==null&&!Et.done;ot++,Et=D.next()){at.index>ot?(ee=at,at=null):ee=at.sibling;var Wn=C(R,at,Et.value,H);if(Wn===null){at===null&&(at=ee);break}t&&at&&Wn.alternate===null&&e(R,at),M=c(Wn,M,ot),vt===null?et=Wn:vt.sibling=Wn,vt=Wn,at=ee}if(Et.done)return a(R,at),Mt&&ca(R,ot),et;if(at===null){for(;!Et.done;ot++,Et=D.next())Et=k(R,Et.value,H),Et!==null&&(M=c(Et,M,ot),vt===null?et=Et:vt.sibling=Et,vt=Et);return Mt&&ca(R,ot),et}for(at=l(at);!Et.done;ot++,Et=D.next())Et=O(at,R,ot,Et.value,H),Et!==null&&(t&&Et.alternate!==null&&at.delete(Et.key===null?ot:Et.key),M=c(Et,M,ot),vt===null?et=Et:vt.sibling=Et,vt=Et);return t&&at.forEach(function(Pb){return e(R,Pb)}),Mt&&ca(R,ot),et}function Ot(R,M,D,H){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:t:{for(var et=D.key;M!==null;){if(M.key===et){if(et=D.type,et===j){if(M.tag===7){a(R,M.sibling),H=o(M,D.props.children),H.return=R,R=H;break t}}else if(M.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===P&&Xh(et)===M.type){a(R,M.sibling),H=o(M,D.props),sl(H,D),H.return=R,R=H;break t}a(R,M);break}else e(R,M);M=M.sibling}D.type===j?(H=oa(D.props.children,R.mode,H,D.key),H.return=R,R=H):(H=vs(D.type,D.key,D.props,null,R.mode,H),sl(H,D),H.return=R,R=H)}return g(R);case E:t:{for(et=D.key;M!==null;){if(M.key===et)if(M.tag===4&&M.stateNode.containerInfo===D.containerInfo&&M.stateNode.implementation===D.implementation){a(R,M.sibling),H=o(M,D.children||[]),H.return=R,R=H;break t}else{a(R,M);break}else e(R,M);M=M.sibling}H=Mo(D,R.mode,H),H.return=R,R=H}return g(R);case P:return et=D._init,D=et(D._payload),Ot(R,M,D,H)}if(St(D))return ut(R,M,D,H);if(K(D)){if(et=K(D),typeof et!="function")throw Error(r(150));return D=et.call(D),rt(R,M,D,H)}if(typeof D.then=="function")return Ot(R,M,_s(D),H);if(D.$$typeof===q)return Ot(R,M,ws(R,D),H);Ls(R,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,M!==null&&M.tag===6?(a(R,M.sibling),H=o(M,D),H.return=R,R=H):(a(R,M),H=Ao(D,R.mode,H),H.return=R,R=H),g(R)):a(R,M)}return function(R,M,D,H){try{ll=0;var et=Ot(R,M,D,H);return Wa=null,et}catch(at){if(at===$i||at===Es)throw at;var vt=Me(29,at,null,R.mode);return vt.lanes=H,vt.return=R,vt}finally{}}}var Ia=Ph(!0),Kh=Ph(!1),qe=Y(null),Ie=null;function Un(t){var e=t.alternate;Z(Jt,Jt.current&1),Z(qe,t),Ie===null&&(e===null||Qa.current!==null||e.memoizedState!==null)&&(Ie=t)}function Zh(t){if(t.tag===22){if(Z(Jt,Jt.current),Z(qe,t),Ie===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ie=t)}}else Bn()}function Bn(){Z(Jt,Jt.current),Z(qe,qe.current)}function vn(t){Q(qe),Ie===t&&(Ie=null),Q(Jt)}var Jt=Y(0);function Us(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Qu(a)))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 lu(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:y({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var su={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Ne(),o=Vn(l);o.payload=e,a!=null&&(o.callback=a),e=_n(t,o,l),e!==null&&(Ce(e,t,l),Wi(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Ne(),o=Vn(l);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=_n(t,o,l),e!==null&&(Ce(e,t,l),Wi(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ne(),l=Vn(a);l.tag=2,e!=null&&(l.callback=e),e=_n(t,l,a),e!==null&&(Ce(e,t,a),Wi(e,t,a))}};function Qh(t,e,a,l,o,c,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,g):e.prototype&&e.prototype.isPureReactComponent?!Yi(a,l)||!Yi(o,c):!0}function Fh(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&su.enqueueReplaceState(e,e.state,null)}function ya(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=y({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}var Bs=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 $h(t){Bs(t)}function Jh(t){console.error(t)}function Wh(t){Bs(t)}function Hs(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Ih(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function ru(t,e,a){return a=Vn(a),a.tag=3,a.payload={element:null},a.callback=function(){Hs(t,e)},a}function tm(t){return t=Vn(t),t.tag=3,t}function em(t,e,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;t.payload=function(){return o(c)},t.callback=function(){Ih(e,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){Ih(e,a,l),typeof o!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function Px(t,e,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Zi(e,a,o,!0),a=qe.current,a!==null){switch(a.tag){case 13:return Ie===null?Cu():a.alternate===null&&Yt===0&&(Yt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Lo?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),zu(t,l,o)),!1;case 22:return a.flags|=65536,l===Lo?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),zu(t,l,o)),!1}throw Error(r(435,a.tag))}return zu(t,l,o),Cu(),!1}if(Mt)return e=qe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==Do&&(t=Error(r(422),{cause:l}),Ki(Le(t,a)))):(l!==Do&&(e=Error(r(423),{cause:l}),Ki(Le(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=Le(l,a),o=ru(t.stateNode,l,o),Ho(t,o),Yt!==4&&(Yt=2)),!1;var c=Error(r(520),{cause:l});if(c=Le(c,a),hl===null?hl=[c]:hl.push(c),Yt!==4&&(Yt=2),e===null)return!0;l=Le(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=ru(a.stateNode,l,t),Ho(a,t),!1;case 1:if(e=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Xn===null||!Xn.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=tm(o),em(o,t,a,l),Ho(a,o),!1}a=a.return}while(a!==null);return!1}var nm=Error(r(461)),It=!1;function ie(t,e,a,l){e.child=t===null?Kh(e,null,a,l):Ia(e,t.child,a,l)}function am(t,e,a,l,o){a=a.render;var c=e.ref;if("ref"in l){var g={};for(var x in l)x!=="ref"&&(g[x]=l[x])}else g=l;return ma(e),l=Xo(t,e,a,g,c,o),x=Po(),t!==null&&!It?(Ko(t,e,o),xn(t,e,o)):(Mt&&x&&Ro(e),e.flags|=1,ie(t,e,l,o),e.child)}function im(t,e,a,l,o){if(t===null){var c=a.type;return typeof c=="function"&&!Eo(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,lm(t,e,c,l,o)):(t=vs(a.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!pu(t,o)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:Yi,a(g,l)&&t.ref===e.ref)return xn(t,e,o)}return e.flags|=1,t=dn(c,l),t.ref=e.ref,t.return=e,e.child=t}function lm(t,e,a,l,o){if(t!==null){var c=t.memoizedProps;if(Yi(c,l)&&t.ref===e.ref)if(It=!1,e.pendingProps=l=c,pu(t,o))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,xn(t,e,o)}return ou(t,e,a,l,o)}function sm(t,e,a){var l=e.pendingProps,o=l.children,c=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((e.flags&128)!==0){if(l=c!==null?c.baseLanes|a:a,t!==null){for(o=e.child=t.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;e.childLanes=c&~l}else e.childLanes=0,e.child=null;return rm(t,e,l,a)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ts(e,c!==null?c.cachePool:null),c!==null?lh(e,c):ko(),Zh(e);else return e.lanes=e.childLanes=536870912,rm(t,e,c!==null?c.baseLanes|a:a,a)}else c!==null?(Ts(e,c.cachePool),lh(e,c),Bn(),e.memoizedState=null):(t!==null&&Ts(e,null),ko(),Bn());return ie(t,e,o,a),e.child}function rm(t,e,a,l){var o=_o();return o=o===null?null:{parent:$t._currentValue,pool:o},e.memoizedState={baseLanes:a,cachePool:o},t!==null&&Ts(e,null),ko(),Zh(e),t!==null&&Zi(t,e,l,!0),null}function qs(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function ou(t,e,a,l,o){return ma(e),a=Xo(t,e,a,l,void 0,o),l=Po(),t!==null&&!It?(Ko(t,e,o),xn(t,e,o)):(Mt&&l&&Ro(e),e.flags|=1,ie(t,e,a,o),e.child)}function om(t,e,a,l,o,c){return ma(e),e.updateQueue=null,a=rh(e,l,a,o),sh(t),l=Po(),t!==null&&!It?(Ko(t,e,c),xn(t,e,c)):(Mt&&l&&Ro(e),e.flags|=1,ie(t,e,a,c),e.child)}function um(t,e,a,l,o){if(ma(e),e.stateNode===null){var c=Ga,g=a.contextType;typeof g=="object"&&g!==null&&(c=ue(g)),c=new a(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=su,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},Uo(e),g=a.contextType,c.context=typeof g=="object"&&g!==null?ue(g):Ga,c.state=e.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(lu(e,a,g,l),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&su.enqueueReplaceState(c,c.state,null),tl(e,l,c,o),Ii(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,w=ya(a,x);c.props=w;var N=c.context,B=a.contextType;g=Ga,typeof B=="object"&&B!==null&&(g=ue(B));var k=a.getDerivedStateFromProps;B=typeof k=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||N!==g)&&Fh(e,c,l,g),zn=!1;var C=e.memoizedState;c.state=C,tl(e,l,c,o),Ii(),N=e.memoizedState,x||C!==N||zn?(typeof k=="function"&&(lu(e,a,k,l),N=e.memoizedState),(w=zn||Qh(e,a,w,l,C,N,g))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=N),c.props=l,c.state=N,c.context=g,l=w):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,Bo(t,e),g=e.memoizedProps,B=ya(a,g),c.props=B,k=e.pendingProps,C=c.context,N=a.contextType,w=Ga,typeof N=="object"&&N!==null&&(w=ue(N)),x=a.getDerivedStateFromProps,(N=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==k||C!==w)&&Fh(e,c,l,w),zn=!1,C=e.memoizedState,c.state=C,tl(e,l,c,o),Ii();var O=e.memoizedState;g!==k||C!==O||zn||t!==null&&t.dependencies!==null&&Ss(t.dependencies)?(typeof x=="function"&&(lu(e,a,x,l),O=e.memoizedState),(B=zn||Qh(e,a,B,l,C,O,w)||t!==null&&t.dependencies!==null&&Ss(t.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,O,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,O,w)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=O),c.props=l,c.state=O,c.context=w,l=B):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,qs(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Ia(e,t.child,null,o),e.child=Ia(e,null,a,o)):ie(t,e,a,o),e.memoizedState=c.state,t=e.child):t=xn(t,e,o),t}function cm(t,e,a,l){return Pi(),e.flags|=256,ie(t,e,a,l),e.child}var uu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cu(t){return{baseLanes:t,cachePool:Jd()}}function fu(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=ke),t}function fm(t,e,a){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,g;if((g=c)||(g=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),g&&(o=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(Mt){if(o?Un(e):Bn(),Mt){var x=kt,w;if(w=x){t:{for(w=x,x=We;w.nodeType!==8;){if(!x){x=null;break t}if(w=Ze(w.nextSibling),w===null){x=null;break t}}x=w}x!==null?(e.memoizedState={dehydrated:x,treeContext:ua!==null?{id:hn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},w=Me(18,null,null,0),w.stateNode=x,w.return=e,e.child=w,fe=e,kt=null,w=!0):w=!1}w||da(e)}if(x=e.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return Qu(x)?e.lanes=32:e.lanes=536870912,null;vn(e)}return x=l.children,l=l.fallback,o?(Bn(),o=e.mode,x=ks({mode:"hidden",children:x},o),l=oa(l,o,a,null),x.return=e,l.return=e,x.sibling=l,e.child=x,o=e.child,o.memoizedState=cu(a),o.childLanes=fu(t,g,a),e.memoizedState=uu,l):(Un(e),du(e,x))}if(w=t.memoizedState,w!==null&&(x=w.dehydrated,x!==null)){if(c)e.flags&256?(Un(e),e.flags&=-257,e=hu(t,e,a)):e.memoizedState!==null?(Bn(),e.child=t.child,e.flags|=128,e=null):(Bn(),o=l.fallback,x=e.mode,l=ks({mode:"visible",children:l.children},x),o=oa(o,x,a,null),o.flags|=2,l.return=e,o.return=e,l.sibling=o,e.child=l,Ia(e,t.child,null,a),l=e.child,l.memoizedState=cu(a),l.childLanes=fu(t,g,a),e.memoizedState=uu,e=o);else if(Un(e),Qu(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var N=g.dgst;g=N,l=Error(r(419)),l.stack="",l.digest=g,Ki({value:l,source:null,stack:null}),e=hu(t,e,a)}else if(It||Zi(t,e,a,!1),g=(a&t.childLanes)!==0,It||g){if(g=_t,g!==null&&(l=a&-a,l=(l&42)!==0?1:Qr(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==w.retryLane))throw w.retryLane=l,Ya(t,l),Ce(g,t,l),nm;x.data==="$?"||Cu(),e=hu(t,e,a)}else x.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=w.treeContext,kt=Ze(x.nextSibling),fe=e,Mt=!0,fa=null,We=!1,t!==null&&(Be[He++]=hn,Be[He++]=mn,Be[He++]=ua,hn=t.id,mn=t.overflow,ua=e),e=du(e,l.children),e.flags|=4096);return e}return o?(Bn(),o=l.fallback,x=e.mode,w=t.child,N=w.sibling,l=dn(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,N!==null?o=dn(N,o):(o=oa(o,x,a,null),o.flags|=2),o.return=e,l.return=e,l.sibling=o,e.child=l,l=o,o=e.child,x=t.child.memoizedState,x===null?x=cu(a):(w=x.cachePool,w!==null?(N=$t._currentValue,w=w.parent!==N?{parent:N,pool:N}:w):w=Jd(),x={baseLanes:x.baseLanes|a,cachePool:w}),o.memoizedState=x,o.childLanes=fu(t,g,a),e.memoizedState=uu,l):(Un(e),a=t.child,t=a.sibling,a=dn(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=a,e.memoizedState=null,a)}function du(t,e){return e=ks({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ks(t,e){return t=Me(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function hu(t,e,a){return Ia(e,t.child,null,a),t=du(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function dm(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Co(t.return,e,a)}function mu(t,e,a,l,o){var c=t.memoizedState;c===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=o)}function hm(t,e,a){var l=e.pendingProps,o=l.revealOrder,c=l.tail;if(ie(t,e,l.children,a),l=Jt.current,(l&2)!==0)l=l&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&&dm(t,a,e);else if(t.tag===19)dm(t,a,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}l&=1}switch(Z(Jt,l),o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&Us(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),mu(e,!1,o,a,c);break;case"backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Us(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}mu(e,!0,a,null,c);break;case"together":mu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function xn(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Gn|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Zi(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=dn(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=dn(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function pu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ss(t)))}function Kx(t,e,a){switch(e.tag){case 3:ft(e,e.stateNode.containerInfo),On(e,$t,t.memoizedState.cache),Pi();break;case 27:case 5:ze(e);break;case 4:ft(e,e.stateNode.containerInfo);break;case 10:On(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Un(e),e.flags|=128,null):(a&e.child.childLanes)!==0?fm(t,e,a):(Un(e),t=xn(t,e,a),t!==null?t.sibling:null);Un(e);break;case 19:var o=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Zi(t,e,a,!1),l=(a&e.childLanes)!==0),o){if(l)return hm(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(Jt,Jt.current),l)break;return null;case 22:case 23:return e.lanes=0,sm(t,e,a);case 24:On(e,$t,t.memoizedState.cache)}return xn(t,e,a)}function mm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!pu(t,a)&&(e.flags&128)===0)return It=!1,Kx(t,e,a);It=(t.flags&131072)!==0}else It=!1,Mt&&(e.flags&1048576)!==0&&Xd(e,bs,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var l=e.elementType,o=l._init;if(l=o(l._payload),e.type=l,typeof l=="function")Eo(l)?(t=ya(l,t),e.tag=1,e=um(null,e,l,t,a)):(e.tag=0,e=ou(null,e,l,t,a));else{if(l!=null){if(o=l.$$typeof,o===I){e.tag=11,e=am(null,e,l,t,a);break t}else if(o===nt){e.tag=14,e=im(null,e,l,t,a);break t}}throw e=lt(l)||l,Error(r(306,e,""))}}return e;case 0:return ou(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,o=ya(l,e.pendingProps),um(t,e,l,o,a);case 3:t:{if(ft(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,Bo(t,e),tl(e,l,null,a);var g=e.memoizedState;if(l=g.cache,On(e,$t,l),l!==c.cache&&Oo(e,[$t],a,!0),Ii(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=cm(t,e,l,a);break t}else if(l!==o){o=Le(Error(r(424)),e),Ki(o),e=cm(t,e,l,a);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(kt=Ze(t.firstChild),fe=e,Mt=!0,fa=null,We=!0,a=Kh(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Pi(),l===o){e=xn(t,e,a);break t}ie(t,e,l,a)}e=e.child}return e;case 26:return qs(t,e),t===null?(a=vp(e.type,null,e.pendingProps,null))?e.memoizedState=a:Mt||(a=e.type,t=e.pendingProps,l=er(it.current).createElement(a),l[oe]=e,l[he]=t,se(l,a,t),Wt(l),e.stateNode=l):e.memoizedState=vp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ze(e),t===null&&Mt&&(l=e.stateNode=pp(e.type,e.pendingProps,it.current),fe=e,We=!0,o=kt,Zn(e.type)?(Fu=o,kt=Ze(l.firstChild)):kt=o),ie(t,e,e.pendingProps.children,a),qs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Mt&&((o=l=kt)&&(l=bb(l,e.type,e.pendingProps,We),l!==null?(e.stateNode=l,fe=e,kt=Ze(l.firstChild),We=!1,o=!0):o=!1),o||da(e)),ze(e),o=e.type,c=e.pendingProps,g=t!==null?t.memoizedProps:null,l=c.children,Pu(o,c)?l=null:g!==null&&Pu(o,g)&&(e.flags|=32),e.memoizedState!==null&&(o=Xo(t,e,Bx,null,null,a),wl._currentValue=o),qs(t,e),ie(t,e,l,a),e.child;case 6:return t===null&&Mt&&((t=a=kt)&&(a=Sb(a,e.pendingProps,We),a!==null?(e.stateNode=a,fe=e,kt=null,t=!0):t=!1),t||da(e)),null;case 13:return fm(t,e,a);case 4:return ft(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ia(e,null,l,a):ie(t,e,l,a),e.child;case 11:return am(t,e,e.type,e.pendingProps,a);case 7:return ie(t,e,e.pendingProps,a),e.child;case 8:return ie(t,e,e.pendingProps.children,a),e.child;case 12:return ie(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,On(e,e.type,l.value),ie(t,e,l.children,a),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,ma(e),o=ue(o),l=l(o),e.flags|=1,ie(t,e,l,a),e.child;case 14:return im(t,e,e.type,e.pendingProps,a);case 15:return lm(t,e,e.type,e.pendingProps,a);case 19:return hm(t,e,a);case 31:return l=e.pendingProps,a=e.mode,l={mode:l.mode,children:l.children},t===null?(a=ks(l,a),a.ref=e.ref,e.child=a,a.return=e,e=a):(a=dn(t.child,l),a.ref=e.ref,e.child=a,a.return=e,e=a),e;case 22:return sm(t,e,a);case 24:return ma(e),l=ue($t),t===null?(o=_o(),o===null&&(o=_t,c=zo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),e.memoizedState={parent:l,cache:o},Uo(e),On(e,$t,o)):((t.lanes&a)!==0&&(Bo(t,e),tl(e,null,null,a),Ii()),o=t.memoizedState,c=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),On(e,$t,l)):(l=c.cache,On(e,$t,l),l!==o.cache&&Oo(e,[$t],a,!0))),ie(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function bn(t){t.flags|=4}function pm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Tp(e)){if(e=qe.current,e!==null&&((wt&4194048)===wt?Ie!==null:(wt&62914560)!==wt&&(wt&536870912)===0||e!==Ie))throw Ji=Lo,Wd;t.flags|=8192}}function Ys(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Zf():536870912,t.lanes|=e,ai|=e)}function rl(t,e){if(!Mt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function Zx(t,e,a){var l=e.pendingProps;switch(jo(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),gn($t),qt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Xi(e)?bn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Zd())),Ut(e),null;case 26:return a=e.memoizedState,t===null?(bn(e),a!==null?(Ut(e),pm(e,a)):(Ut(e),e.flags&=-16777217)):a?a!==t.memoizedState?(bn(e),Ut(e),pm(e,a)):(Ut(e),e.flags&=-16777217):(t.memoizedProps!==l&&bn(e),Ut(e),e.flags&=-16777217),null;case 27:be(e),a=it.current;var o=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&bn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}t=tt.current,Xi(e)?Pd(e):(t=pp(o,l,a),e.stateNode=t,bn(e))}return Ut(e),null;case 5:if(be(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&bn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}if(t=tt.current,Xi(e))Pd(e);else{switch(o=er(it.current),t){case 1:t=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:t=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":t=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":t=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}t[oe]=e,t[he]=l;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=t;t:switch(se(t,a,l),a){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&bn(e)}}return Ut(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&bn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=it.current,Xi(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,o=fe,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[oe]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||op(t.nodeValue,a)),t||da(e)}else t=er(t).createTextNode(l),t[oe]=e,e.stateNode=t}return Ut(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Xi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[oe]=e}else Pi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),o=!1}else o=Zd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(vn(e),e):(vn(e),null)}if(vn(e),(e.flags&128)!==0)return e.lanes=a,e;if(a=l!==null,t=t!==null&&t.memoizedState!==null,a){l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var c=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)}return a!==t&&a&&(e.child.flags|=8192),Ys(e,e.updateQueue),Ut(e),null;case 4:return qt(),t===null&&qu(e.stateNode.containerInfo),Ut(e),null;case 10:return gn(e.type),Ut(e),null;case 19:if(Q(Jt),o=e.memoizedState,o===null)return Ut(e),null;if(l=(e.flags&128)!==0,c=o.rendering,c===null)if(l)rl(o,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Us(t),c!==null){for(e.flags|=128,rl(o,!1),t=c.updateQueue,e.updateQueue=t,Ys(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Gd(a,t),a=a.sibling;return Z(Jt,Jt.current&1|2),e.child}t=t.sibling}o.tail!==null&&we()>Ps&&(e.flags|=128,l=!0,rl(o,!1),e.lanes=4194304)}else{if(!l)if(t=Us(c),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Ys(e,t),rl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Mt)return Ut(e),null}else 2*we()-o.renderingStartTime>Ps&&a!==536870912&&(e.flags|=128,l=!0,rl(o,!1),e.lanes=4194304);o.isBackwards?(c.sibling=e.child,e.child=c):(t=o.last,t!==null?t.sibling=c:e.child=c,o.last=c)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=we(),e.sibling=null,t=Jt.current,Z(Jt,l?t&1|2:t&1),e):(Ut(e),null);case 22:case 23:return vn(e),Yo(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),a=e.updateQueue,a!==null&&Ys(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&Q(pa),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),gn($t),Ut(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Qx(t,e){switch(jo(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return gn($t),qt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return be(e),null;case 13:if(vn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Pi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Jt),null;case 4:return qt(),null;case 10:return gn(e.type),null;case 22:case 23:return vn(e),Yo(),t!==null&&Q(pa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return gn($t),null;case 25:return null;default:return null}}function gm(t,e){switch(jo(e),e.tag){case 3:gn($t),qt();break;case 26:case 27:case 5:be(e);break;case 4:qt();break;case 13:vn(e);break;case 19:Q(Jt);break;case 10:gn(e.type);break;case 22:case 23:vn(e),Yo(),t!==null&&Q(pa);break;case 24:gn($t)}}function ol(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==o)}}catch(x){Vt(e,e.return,x)}}function Hn(t,e,a){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&t)===t){var g=l.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,o=e;var w=a,N=x;try{N()}catch(B){Vt(o,w,B)}}}l=l.next}while(l!==c)}}catch(B){Vt(e,e.return,B)}}function ym(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{ih(e,a)}catch(l){Vt(t,t.return,l)}}}function vm(t,e,a){a.props=ya(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Vt(t,e,l)}}function ul(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(o){Vt(t,e,o)}}function tn(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Vt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Vt(t,e,o)}else a.current=null}function xm(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Vt(t,t.return,o)}}function gu(t,e,a){try{var l=t.stateNode;pb(l,t.type,a,e),l[he]=e}catch(o){Vt(t,t.return,o)}}function bm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zn(t.type)||t.tag===4}function yu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||bm(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&&Zn(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 vu(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=tr));else if(l!==4&&(l===27&&Zn(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(vu(t,e,a),t=t.sibling;t!==null;)vu(t,e,a),t=t.sibling}function Gs(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&Zn(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Gs(t,e,a),t=t.sibling;t!==null;)Gs(t,e,a),t=t.sibling}function Sm(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);se(e,l,a),e[oe]=t,e[he]=a}catch(c){Vt(t,t.return,c)}}var Sn=!1,Pt=!1,xu=!1,wm=typeof WeakSet=="function"?WeakSet:Set,te=null;function Fx(t,e){if(t=t.containerInfo,Gu=rr,t=zd(t),yo(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var g=0,x=-1,w=-1,N=0,B=0,k=t,C=null;e:for(;;){for(var O;k!==a||o!==0&&k.nodeType!==3||(x=g+o),k!==c||l!==0&&k.nodeType!==3||(w=g+l),k.nodeType===3&&(g+=k.nodeValue.length),(O=k.firstChild)!==null;)C=k,k=O;for(;;){if(k===t)break e;if(C===a&&++N===o&&(x=g),C===c&&++B===l&&(w=g),(O=k.nextSibling)!==null)break;k=C,C=k.parentNode}k=O}a=x===-1||w===-1?null:{start:x,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xu={focusedElem:t,selectionRange:a},rr=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,c=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var ut=ya(a.type,o,a.elementType===a.type);t=l.getSnapshotBeforeUpdate(ut,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(rt){Vt(a,a.return,rt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Zu(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Zu(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(r(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function Tm(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:qn(t,a),l&4&&ol(5,a);break;case 1:if(qn(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(g){Vt(a,a.return,g)}else{var o=ya(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Vt(a,a.return,g)}}l&64&&ym(a),l&512&&ul(a,a.return);break;case 3:if(qn(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{ih(t,e)}catch(g){Vt(a,a.return,g)}}break;case 27:e===null&&l&4&&Sm(a);case 26:case 5:qn(t,a),e===null&&l&4&&xm(a),l&512&&ul(a,a.return);break;case 12:qn(t,a);break;case 13:qn(t,a),l&4&&Mm(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=ib.bind(null,a),wb(t,a))));break;case 22:if(l=a.memoizedState!==null||Sn,!l){e=e!==null&&e.memoizedState!==null||Pt,o=Sn;var c=Pt;Sn=l,(Pt=e)&&!c?kn(t,a,(a.subtreeFlags&8772)!==0):qn(t,a),Sn=o,Pt=c}break;case 30:break;default:qn(t,a)}}function Em(t){var e=t.alternate;e!==null&&(t.alternate=null,Em(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Jr(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 Lt=null,ge=!1;function wn(t,e,a){for(a=a.child;a!==null;)Am(t,e,a),a=a.sibling}function Am(t,e,a){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(Ni,a)}catch{}switch(a.tag){case 26:Pt||tn(a,e),wn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pt||tn(a,e);var l=Lt,o=ge;Zn(a.type)&&(Lt=a.stateNode,ge=!1),wn(t,e,a),vl(a.stateNode),Lt=l,ge=o;break;case 5:Pt||tn(a,e);case 6:if(l=Lt,o=ge,Lt=null,wn(t,e,a),Lt=l,ge=o,Lt!==null)if(ge)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(a.stateNode)}catch(c){Vt(a,e,c)}else try{Lt.removeChild(a.stateNode)}catch(c){Vt(a,e,c)}break;case 18:Lt!==null&&(ge?(t=Lt,hp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Ml(t)):hp(Lt,a.stateNode));break;case 4:l=Lt,o=ge,Lt=a.stateNode.containerInfo,ge=!0,wn(t,e,a),Lt=l,ge=o;break;case 0:case 11:case 14:case 15:Pt||Hn(2,a,e),Pt||Hn(4,a,e),wn(t,e,a);break;case 1:Pt||(tn(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&vm(a,e,l)),wn(t,e,a);break;case 21:wn(t,e,a);break;case 22:Pt=(l=Pt)||a.memoizedState!==null,wn(t,e,a),Pt=l;break;default:wn(t,e,a)}}function Mm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ml(t)}catch(a){Vt(e,e.return,a)}}function $x(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new wm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new wm),e;default:throw Error(r(435,t.tag))}}function bu(t,e){var a=$x(t);e.forEach(function(l){var o=lb.bind(null,t,l);a.has(l)||(a.add(l),l.then(o,o))})}function Re(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=t,g=e,x=g;t:for(;x!==null;){switch(x.tag){case 27:if(Zn(x.type)){Lt=x.stateNode,ge=!1;break t}break;case 5:Lt=x.stateNode,ge=!1;break t;case 3:case 4:Lt=x.stateNode.containerInfo,ge=!0;break t}x=x.return}if(Lt===null)throw Error(r(160));Am(c,g,o),Lt=null,ge=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Rm(e,t),e=e.sibling}var Ke=null;function Rm(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),je(t),l&4&&(Hn(3,t,t.return),ol(3,t),Hn(5,t,t.return));break;case 1:Re(e,t),je(t),l&512&&(Pt||a===null||tn(a,a.return)),l&64&&Sn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Ke;if(Re(e,t),je(t),l&512&&(Pt||a===null||tn(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[zi]||c[oe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),se(c,l,a),c[oe]=t,Wt(c),l=c;break t;case"link":var g=Sp("link","href",o).get(l+(a.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[x],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(x,1);break e}}c=o.createElement(l),se(c,l,a),o.head.appendChild(c);break;case"meta":if(g=Sp("meta","content",o).get(l+(a.content||""))){for(x=0;x<g.length;x++)if(c=g[x],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(x,1);break e}}c=o.createElement(l),se(c,l,a),o.head.appendChild(c);break;default:throw Error(r(468,l))}c[oe]=t,Wt(c),l=c}t.stateNode=l}else wp(o,t.type,t.stateNode);else t.stateNode=bp(o,l,t.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?wp(o,t.type,t.stateNode):bp(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&gu(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),je(t),l&512&&(Pt||a===null||tn(a,a.return)),a!==null&&l&4&&gu(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),je(t),l&512&&(Pt||a===null||tn(a,a.return)),t.flags&32){o=t.stateNode;try{_a(o,"")}catch(O){Vt(t,t.return,O)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,gu(t,o,a!==null?a.memoizedProps:o)),l&1024&&(xu=!0);break;case 6:if(Re(e,t),je(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(O){Vt(t,t.return,O)}}break;case 3:if(ir=null,o=Ke,Ke=nr(e.containerInfo),Re(e,t),Ke=o,je(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ml(e.containerInfo)}catch(O){Vt(t,t.return,O)}xu&&(xu=!1,jm(t));break;case 4:l=Ke,Ke=nr(t.stateNode.containerInfo),Re(e,t),je(t),Ke=l;break;case 12:Re(e,t),je(t);break;case 13:Re(e,t),je(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Mu=we()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,bu(t,l)));break;case 22:o=t.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,N=Sn,B=Pt;if(Sn=N||o,Pt=B||w,Re(e,t),Pt=B,Sn=N,je(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||w||Sn||Pt||va(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){w=a=e;try{if(c=w.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=w.stateNode;var k=w.memoizedProps.style,C=k!=null&&k.hasOwnProperty("display")?k.display:null;x.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(O){Vt(w,w.return,O)}}}else if(e.tag===6){if(a===null){w=e;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(O){Vt(w,w.return,O)}}}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;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,bu(t,a))));break;case 19:Re(e,t),je(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,bu(t,l)));break;case 30:break;case 21:break;default:Re(e,t),je(t)}}function je(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(bm(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,c=yu(t);Gs(t,c,o);break;case 5:var g=a.stateNode;a.flags&32&&(_a(g,""),a.flags&=-33);var x=yu(t);Gs(t,x,g);break;case 3:case 4:var w=a.stateNode.containerInfo,N=yu(t);vu(t,N,w);break;default:throw Error(r(161))}}catch(B){Vt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function jm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;jm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function qn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Tm(t,e.alternate,e),e=e.sibling}function va(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Hn(4,e,e.return),va(e);break;case 1:tn(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&vm(e,e.return,a),va(e);break;case 27:vl(e.stateNode);case 26:case 5:tn(e,e.return),va(e);break;case 22:e.memoizedState===null&&va(e);break;case 30:va(e);break;default:va(e)}t=t.sibling}}function kn(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,g=c.flags;switch(c.tag){case 0:case 11:case 15:kn(o,c,a),ol(4,c);break;case 1:if(kn(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Vt(l,l.return,N)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)ah(w[o],x)}catch(N){Vt(l,l.return,N)}}a&&g&64&&ym(c),ul(c,c.return);break;case 27:Sm(c);case 26:case 5:kn(o,c,a),a&&l===null&&g&4&&xm(c),ul(c,c.return);break;case 12:kn(o,c,a);break;case 13:kn(o,c,a),a&&g&4&&Mm(o,c);break;case 22:c.memoizedState===null&&kn(o,c,a),ul(c,c.return);break;case 30:break;default:kn(o,c,a)}e=e.sibling}}function Su(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Qi(a))}function wu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Qi(t))}function en(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dm(t,e,a,l),e=e.sibling}function Dm(t,e,a,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:en(t,e,a,l),o&2048&&ol(9,e);break;case 1:en(t,e,a,l);break;case 3:en(t,e,a,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Qi(t)));break;case 12:if(o&2048){en(t,e,a,l),t=e.stateNode;try{var c=e.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(w){Vt(e,e.return,w)}}else en(t,e,a,l);break;case 13:en(t,e,a,l);break;case 23:break;case 22:c=e.stateNode,g=e.alternate,e.memoizedState!==null?c._visibility&2?en(t,e,a,l):cl(t,e):c._visibility&2?en(t,e,a,l):(c._visibility|=2,ti(t,e,a,l,(e.subtreeFlags&10256)!==0)),o&2048&&Su(g,e);break;case 24:en(t,e,a,l),o&2048&&wu(e.alternate,e);break;default:en(t,e,a,l)}}function ti(t,e,a,l,o){for(o=o&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var c=t,g=e,x=a,w=l,N=g.flags;switch(g.tag){case 0:case 11:case 15:ti(c,g,x,w,o),ol(8,g);break;case 23:break;case 22:var B=g.stateNode;g.memoizedState!==null?B._visibility&2?ti(c,g,x,w,o):cl(c,g):(B._visibility|=2,ti(c,g,x,w,o)),o&&N&2048&&Su(g.alternate,g);break;case 24:ti(c,g,x,w,o),o&&N&2048&&wu(g.alternate,g);break;default:ti(c,g,x,w,o)}e=e.sibling}}function cl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,o=l.flags;switch(l.tag){case 22:cl(a,l),o&2048&&Su(l.alternate,l);break;case 24:cl(a,l),o&2048&&wu(l.alternate,l);break;default:cl(a,l)}e=e.sibling}}var fl=8192;function ei(t){if(t.subtreeFlags&fl)for(t=t.child;t!==null;)Nm(t),t=t.sibling}function Nm(t){switch(t.tag){case 26:ei(t),t.flags&fl&&t.memoizedState!==null&&_b(Ke,t.memoizedState,t.memoizedProps);break;case 5:ei(t);break;case 3:case 4:var e=Ke;Ke=nr(t.stateNode.containerInfo),ei(t),Ke=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=fl,fl=16777216,ei(t),fl=e):ei(t));break;default:ei(t)}}function Cm(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 dl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];te=l,zm(l,t)}Cm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Om(t),t=t.sibling}function Om(t){switch(t.tag){case 0:case 11:case 15:dl(t),t.flags&2048&&Hn(9,t,t.return);break;case 3:dl(t);break;case 12:dl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Xs(t)):dl(t);break;default:dl(t)}}function Xs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];te=l,zm(l,t)}Cm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Hn(8,e,e.return),Xs(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Xs(e));break;default:Xs(e)}t=t.sibling}}function zm(t,e){for(;te!==null;){var a=te;switch(a.tag){case 0:case 11:case 15:Hn(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Qi(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,te=l;else t:for(a=t;te!==null;){l=te;var o=l.sibling,c=l.return;if(Em(l),l===a){te=null;break t}if(o!==null){o.return=c,te=o;break t}te=c}}}var Jx={getCacheForType:function(t){var e=ue($t),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a}},Wx=typeof WeakMap=="function"?WeakMap:Map,jt=0,_t=null,xt=null,wt=0,Dt=0,De=null,Yn=!1,ni=!1,Tu=!1,Tn=0,Yt=0,Gn=0,xa=0,Eu=0,ke=0,ai=0,hl=null,ye=null,Au=!1,Mu=0,Ps=1/0,Ks=null,Xn=null,le=0,Pn=null,ii=null,li=0,Ru=0,ju=null,Vm=null,ml=0,Du=null;function Ne(){if((jt&2)!==0&&wt!==0)return wt&-wt;if(z.T!==null){var t=Ka;return t!==0?t:Lu()}return $f()}function _m(){ke===0&&(ke=(wt&536870912)===0||Mt?Kf():536870912);var t=qe.current;return t!==null&&(t.flags|=32),ke}function Ce(t,e,a){(t===_t&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)&&(si(t,0),Kn(t,wt,ke,!1)),Oi(t,a),((jt&2)===0||t!==_t)&&(t===_t&&((jt&2)===0&&(xa|=a),Yt===4&&Kn(t,wt,ke,!1)),nn(t))}function Lm(t,e,a){if((jt&6)!==0)throw Error(r(327));var l=!a&&(e&124)===0&&(e&t.expiredLanes)===0||Ci(t,e),o=l?eb(t,e):Ou(t,e,!0),c=l;do{if(o===0){ni&&!l&&Kn(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!Ix(a)){o=Ou(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var x=t;o=hl;var w=x.current.memoizedState.isDehydrated;if(w&&(si(x,g).flags|=256),g=Ou(x,g,!1),g!==2){if(Tu&&!w){x.errorRecoveryDisabledLanes|=c,xa|=c,o=4;break t}c=ye,ye=o,c!==null&&(ye===null?ye=c:ye.push.apply(ye,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){si(t,0),Kn(t,e,0,!0);break}t:{switch(l=t,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Kn(l,e,ke,!Yn);break t;case 2:ye=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Mu+300-we(),10<o)){if(Kn(l,e,ke,!Yn),as(l,0,!0)!==0)break t;l.timeoutHandle=fp(Um.bind(null,l,a,ye,Ks,Au,e,ke,xa,ai,Yn,c,2,-0,0),o);break t}Um(l,a,ye,Ks,Au,e,ke,xa,ai,Yn,c,0,-0,0)}}break}while(!0);nn(t)}function Um(t,e,a,l,o,c,g,x,w,N,B,k,C,O){if(t.timeoutHandle=-1,k=e.subtreeFlags,(k&8192||(k&16785408)===16785408)&&(Sl={stylesheets:null,count:0,unsuspend:Vb},Nm(e),k=Lb(),k!==null)){t.cancelPendingCommit=k(Xm.bind(null,t,e,c,a,l,o,g,x,w,B,1,C,O)),Kn(t,c,g,!N);return}Xm(t,e,c,a,l,o,g,x,w)}function Ix(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!Ae(c(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;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 Kn(t,e,a,l){e&=~Eu,e&=~xa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-Ee(o),g=1<<c;l[c]=-1,o&=~g}a!==0&&Qf(t,a,e)}function Zs(){return(jt&6)===0?(pl(0),!1):!0}function Nu(){if(xt!==null){if(Dt===0)var t=xt.return;else t=xt,pn=ha=null,Zo(t),Wa=null,ll=0,t=xt;for(;t!==null;)gm(t.alternate,t),t=t.return;xt=null}}function si(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,yb(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Nu(),_t=t,xt=a=dn(t.current,null),wt=e,Dt=0,De=null,Yn=!1,ni=Ci(t,e),Tu=!1,ai=ke=Eu=xa=Gn=Yt=0,ye=hl=null,Au=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-Ee(l),c=1<<o;e|=t[o],l&=~c}return Tn=e,ps(),a}function Bm(t,e){gt=null,z.H=Vs,e===$i||e===Es?(e=eh(),Dt=3):e===Wd?(e=eh(),Dt=4):Dt=e===nm?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,xt===null&&(Yt=1,Hs(t,Le(e,t.current)))}function Hm(){var t=z.H;return z.H=Vs,t===null?Vs:t}function qm(){var t=z.A;return z.A=Jx,t}function Cu(){Yt=4,Yn||(wt&4194048)!==wt&&qe.current!==null||(ni=!0),(Gn&134217727)===0&&(xa&134217727)===0||_t===null||Kn(_t,wt,ke,!1)}function Ou(t,e,a){var l=jt;jt|=2;var o=Hm(),c=qm();(_t!==t||wt!==e)&&(Ks=null,si(t,e)),e=!1;var g=Yt;t:do try{if(Dt!==0&&xt!==null){var x=xt,w=De;switch(Dt){case 8:Nu(),g=6;break t;case 3:case 2:case 9:case 6:qe.current===null&&(e=!0);var N=Dt;if(Dt=0,De=null,ri(t,x,w,N),a&&ni){g=0;break t}break;default:N=Dt,Dt=0,De=null,ri(t,x,w,N)}}tb(),g=Yt;break}catch(B){Bm(t,B)}while(!0);return e&&t.shellSuspendCounter++,pn=ha=null,jt=l,z.H=o,z.A=c,xt===null&&(_t=null,wt=0,ps()),g}function tb(){for(;xt!==null;)km(xt)}function eb(t,e){var a=jt;jt|=2;var l=Hm(),o=qm();_t!==t||wt!==e?(Ks=null,Ps=we()+500,si(t,e)):ni=Ci(t,e);t:do try{if(Dt!==0&&xt!==null){e=xt;var c=De;e:switch(Dt){case 1:Dt=0,De=null,ri(t,e,c,1);break;case 2:case 9:if(Id(c)){Dt=0,De=null,Ym(e);break}e=function(){Dt!==2&&Dt!==9||_t!==t||(Dt=7),nn(t)},c.then(e,e);break t;case 3:Dt=7;break t;case 4:Dt=5;break t;case 7:Id(c)?(Dt=0,De=null,Ym(e)):(Dt=0,De=null,ri(t,e,c,7));break;case 5:var g=null;switch(xt.tag){case 26:g=xt.memoizedState;case 5:case 27:var x=xt;if(!g||Tp(g)){Dt=0,De=null;var w=x.sibling;if(w!==null)xt=w;else{var N=x.return;N!==null?(xt=N,Qs(N)):xt=null}break e}}Dt=0,De=null,ri(t,e,c,5);break;case 6:Dt=0,De=null,ri(t,e,c,6);break;case 8:Nu(),Yt=6;break t;default:throw Error(r(462))}}nb();break}catch(B){Bm(t,B)}while(!0);return pn=ha=null,z.H=l,z.A=o,jt=a,xt!==null?0:(_t=null,wt=0,ps(),Yt)}function nb(){for(;xt!==null&&!re();)km(xt)}function km(t){var e=mm(t.alternate,t,Tn);t.memoizedProps=t.pendingProps,e===null?Qs(t):xt=e}function Ym(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=om(a,e,e.pendingProps,e.type,void 0,wt);break;case 11:e=om(a,e,e.pendingProps,e.type.render,e.ref,wt);break;case 5:Zo(e);default:gm(a,e),e=xt=Gd(e,Tn),e=mm(a,e,Tn)}t.memoizedProps=t.pendingProps,e===null?Qs(t):xt=e}function ri(t,e,a,l){pn=ha=null,Zo(e),Wa=null,ll=0;var o=e.return;try{if(Px(t,o,e,a,wt)){Yt=1,Hs(t,Le(a,t.current)),xt=null;return}}catch(c){if(o!==null)throw xt=o,c;Yt=1,Hs(t,Le(a,t.current)),xt=null;return}e.flags&32768?(Mt||l===1?t=!0:ni||(wt&536870912)!==0?t=!1:(Yn=t=!0,(l===2||l===9||l===3||l===6)&&(l=qe.current,l!==null&&l.tag===13&&(l.flags|=16384))),Gm(e,t)):Qs(e)}function Qs(t){var e=t;do{if((e.flags&32768)!==0){Gm(e,Yn);return}t=e.return;var a=Zx(e.alternate,e,Tn);if(a!==null){xt=a;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Yt===0&&(Yt=5)}function Gm(t,e){do{var a=Qx(t.alternate,t);if(a!==null){a.flags&=32767,xt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=a}while(t!==null);Yt=6,xt=null}function Xm(t,e,a,l,o,c,g,x,w){t.cancelPendingCommit=null;do Fs();while(le!==0);if((jt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=wo,Vv(t,a,c,g,x,w),t===_t&&(xt=_t=null,wt=0),ii=e,Pn=t,li=a,Ru=c,ju=o,Vm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,sb(ts,function(){return Fm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,o=X.p,X.p=2,g=jt,jt|=4;try{Fx(t,e,a)}finally{jt=g,X.p=o,z.T=l}}le=1,Pm(),Km(),Zm()}}function Pm(){if(le===1){le=0;var t=Pn,e=ii,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var l=X.p;X.p=2;var o=jt;jt|=4;try{Rm(e,t);var c=Xu,g=zd(t.containerInfo),x=c.focusedElem,w=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&Od(x.ownerDocument.documentElement,x)){if(w!==null&&yo(x)){var N=w.start,B=w.end;if(B===void 0&&(B=N),"selectionStart"in x)x.selectionStart=N,x.selectionEnd=Math.min(B,x.value.length);else{var k=x.ownerDocument||document,C=k&&k.defaultView||window;if(C.getSelection){var O=C.getSelection(),ut=x.textContent.length,rt=Math.min(w.start,ut),Ot=w.end===void 0?rt:Math.min(w.end,ut);!O.extend&&rt>Ot&&(g=Ot,Ot=rt,rt=g);var R=Cd(x,rt),M=Cd(x,Ot);if(R&&M&&(O.rangeCount!==1||O.anchorNode!==R.node||O.anchorOffset!==R.offset||O.focusNode!==M.node||O.focusOffset!==M.offset)){var D=k.createRange();D.setStart(R.node,R.offset),O.removeAllRanges(),rt>Ot?(O.addRange(D),O.extend(M.node,M.offset)):(D.setEnd(M.node,M.offset),O.addRange(D))}}}}for(k=[],O=x;O=O.parentNode;)O.nodeType===1&&k.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<k.length;x++){var H=k[x];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}rr=!!Gu,Xu=Gu=null}finally{jt=o,X.p=l,z.T=a}}t.current=e,le=2}}function Km(){if(le===2){le=0;var t=Pn,e=ii,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var l=X.p;X.p=2;var o=jt;jt|=4;try{Tm(t,e.alternate,e)}finally{jt=o,X.p=l,z.T=a}}le=3}}function Zm(){if(le===4||le===3){le=0,Je();var t=Pn,e=ii,a=li,l=Vm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?le=5:(le=0,ii=Pn=null,Qm(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Xn=null),Fr(a),e=e.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(Ni,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=z.T,o=X.p,X.p=2,z.T=null;try{for(var c=t.onRecoverableError,g=0;g<l.length;g++){var x=l[g];c(x.value,{componentStack:x.stack})}}finally{z.T=e,X.p=o}}(li&3)!==0&&Fs(),nn(t),o=t.pendingLanes,(a&4194090)!==0&&(o&42)!==0?t===Du?ml++:(ml=0,Du=t):ml=0,pl(0)}}function Qm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Qi(e)))}function Fs(t){return Pm(),Km(),Zm(),Fm()}function Fm(){if(le!==5)return!1;var t=Pn,e=Ru;Ru=0;var a=Fr(li),l=z.T,o=X.p;try{X.p=32>a?32:a,z.T=null,a=ju,ju=null;var c=Pn,g=li;if(le=0,ii=Pn=null,li=0,(jt&6)!==0)throw Error(r(331));var x=jt;if(jt|=4,Om(c.current),Dm(c,c.current,g,a),jt=x,pl(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(Ni,c)}catch{}return!0}finally{X.p=o,z.T=l,Qm(t,e)}}function $m(t,e,a){e=Le(a,e),e=ru(t.stateNode,e,2),t=_n(t,e,2),t!==null&&(Oi(t,2),nn(t))}function Vt(t,e,a){if(t.tag===3)$m(t,t,a);else for(;e!==null;){if(e.tag===3){$m(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xn===null||!Xn.has(l))){t=Le(a,t),a=tm(2),l=_n(e,a,2),l!==null&&(em(a,l,e,t),Oi(l,2),nn(l));break}}e=e.return}}function zu(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new Wx;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(a)||(Tu=!0,o.add(a),t=ab.bind(null,t,e,a),e.then(t,t))}function ab(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,_t===t&&(wt&a)===a&&(Yt===4||Yt===3&&(wt&62914560)===wt&&300>we()-Mu?(jt&2)===0&&si(t,0):Eu|=a,ai===wt&&(ai=0)),nn(t)}function Jm(t,e){e===0&&(e=Zf()),t=Ya(t,e),t!==null&&(Oi(t,e),nn(t))}function ib(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Jm(t,a)}function lb(t,e){var a=0;switch(t.tag){case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Jm(t,a)}function sb(t,e){return zt(t,e)}var $s=null,oi=null,Vu=!1,Js=!1,_u=!1,ba=0;function nn(t){t!==oi&&t.next===null&&(oi===null?$s=oi=t:oi=oi.next=t),Js=!0,Vu||(Vu=!0,ob())}function pl(t,e){if(!_u&&Js){_u=!0;do for(var a=!1,l=$s;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var g=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Ee(42|t)+1)-1,c&=o&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,ep(l,c))}else c=wt,c=as(l,l===_t?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ci(l,c)||(a=!0,ep(l,c));l=l.next}while(a);_u=!1}}function rb(){Wm()}function Wm(){Js=Vu=!1;var t=0;ba!==0&&(gb()&&(t=ba),ba=0);for(var e=we(),a=null,l=$s;l!==null;){var o=l.next,c=Im(l,e);c===0?(l.next=null,a===null?$s=o:a.next=o,o===null&&(oi=a)):(a=l,(t!==0||(c&3)!==0)&&(Js=!0)),l=o}pl(t)}function Im(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var g=31-Ee(c),x=1<<g,w=o[g];w===-1?((x&a)===0||(x&l)!==0)&&(o[g]=zv(x,e)):w<=e&&(t.expiredLanes|=x),c&=~x}if(e=_t,a=wt,a=as(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Tt(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Ci(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&Tt(l),Fr(a)){case 2:case 8:a=Xf;break;case 32:a=ts;break;case 268435456:a=Pf;break;default:a=ts}return l=tp.bind(null,t),a=zt(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&Tt(l),t.callbackPriority=2,t.callbackNode=null,2}function tp(t,e){if(le!==0&&le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Fs()&&t.callbackNode!==a)return null;var l=wt;return l=as(t,t===_t?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Lm(t,l,e),Im(t,we()),t.callbackNode!=null&&t.callbackNode===a?tp.bind(null,t):null)}function ep(t,e){if(Fs())return null;Lm(t,e,!0)}function ob(){vb(function(){(jt&6)!==0?zt(Gf,rb):Wm()})}function Lu(){return ba===0&&(ba=Kf()),ba}function np(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:os(""+t)}function ap(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function ub(t,e,a,l,o){if(e==="submit"&&a&&a.stateNode===o){var c=np((o[he]||null).action),g=l.submitter;g&&(e=(e=g[he]||null)?np(e.formAction):g.getAttribute("formAction"),e!==null&&(c=e,g=null));var x=new ds("action","action",null,l,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ba!==0){var w=g?ap(o,g):new FormData(o);nu(a,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(x.preventDefault(),w=g?ap(o,g):new FormData(o),nu(a,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var Uu=0;Uu<So.length;Uu++){var Bu=So[Uu],cb=Bu.toLowerCase(),fb=Bu[0].toUpperCase()+Bu.slice(1);Pe(cb,"on"+fb)}Pe(Ld,"onAnimationEnd"),Pe(Ud,"onAnimationIteration"),Pe(Bd,"onAnimationStart"),Pe("dblclick","onDoubleClick"),Pe("focusin","onFocus"),Pe("focusout","onBlur"),Pe(jx,"onTransitionRun"),Pe(Dx,"onTransitionStart"),Pe(Nx,"onTransitionCancel"),Pe(Hd,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),db=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function ip(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],o=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var g=l.length-1;0<=g;g--){var x=l[g],w=x.instance,N=x.currentTarget;if(x=x.listener,w!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=N;try{c(o)}catch(B){Bs(B)}o.currentTarget=null,c=w}else for(g=0;g<l.length;g++){if(x=l[g],w=x.instance,N=x.currentTarget,x=x.listener,w!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=N;try{c(o)}catch(B){Bs(B)}o.currentTarget=null,c=w}}}}function bt(t,e){var a=e[$r];a===void 0&&(a=e[$r]=new Set);var l=t+"__bubble";a.has(l)||(lp(e,t,2,!1),a.add(l))}function Hu(t,e,a){var l=0;e&&(l|=4),lp(a,t,l,e)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function qu(t){if(!t[Ws]){t[Ws]=!0,Wf.forEach(function(a){a!=="selectionchange"&&(db.has(a)||Hu(a,!1,t),Hu(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ws]||(e[Ws]=!0,Hu("selectionchange",!1,e))}}function lp(t,e,a,l){switch(Dp(e)){case 2:var o=Hb;break;case 8:o=qb;break;default:o=tc}a=o.bind(null,e,a,t),o=void 0,!ro||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function ku(t,e,a,l,o){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var x=l.stateNode.containerInfo;if(x===o)break;if(g===4)for(g=l.return;g!==null;){var w=g.tag;if((w===3||w===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;x!==null;){if(g=Da(x),g===null)return;if(w=g.tag,w===5||w===6||w===26||w===27){l=c=g;continue t}x=x.parentNode}}l=l.return}dd(function(){var N=c,B=lo(a),k=[];t:{var C=qd.get(t);if(C!==void 0){var O=ds,ut=t;switch(t){case"keypress":if(cs(a)===0)break t;case"keydown":case"keyup":O=sx;break;case"focusin":ut="focus",O=fo;break;case"focusout":ut="blur",O=fo;break;case"beforeblur":case"afterblur":O=fo;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ux;break;case Ld:case Ud:case Bd:O=Jv;break;case Hd:O=fx;break;case"scroll":case"scrollend":O=Kv;break;case"wheel":O=hx;break;case"copy":case"cut":case"paste":O=Iv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=yd;break;case"toggle":case"beforetoggle":O=px}var rt=(e&4)!==0,Ot=!rt&&(t==="scroll"||t==="scrollend"),R=rt?C!==null?C+"Capture":null:C;rt=[];for(var M=N,D;M!==null;){var H=M;if(D=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||D===null||R===null||(H=_i(M,R),H!=null&&rt.push(yl(M,H,D))),Ot)break;M=M.return}0<rt.length&&(C=new O(C,ut,null,a,B),k.push({event:C,listeners:rt}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",C&&a!==io&&(ut=a.relatedTarget||a.fromElement)&&(Da(ut)||ut[ja]))break t;if((O||C)&&(C=B.window===B?B:(C=B.ownerDocument)?C.defaultView||C.parentWindow:window,O?(ut=a.relatedTarget||a.toElement,O=N,ut=ut?Da(ut):null,ut!==null&&(Ot=f(ut),rt=ut.tag,ut!==Ot||rt!==5&&rt!==27&&rt!==6)&&(ut=null)):(O=null,ut=N),O!==ut)){if(rt=pd,H="onMouseLeave",R="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(rt=yd,H="onPointerLeave",R="onPointerEnter",M="pointer"),Ot=O==null?C:Vi(O),D=ut==null?C:Vi(ut),C=new rt(H,M+"leave",O,a,B),C.target=Ot,C.relatedTarget=D,H=null,Da(B)===N&&(rt=new rt(R,M+"enter",ut,a,B),rt.target=D,rt.relatedTarget=Ot,H=rt),Ot=H,O&&ut)e:{for(rt=O,R=ut,M=0,D=rt;D;D=ui(D))M++;for(D=0,H=R;H;H=ui(H))D++;for(;0<M-D;)rt=ui(rt),M--;for(;0<D-M;)R=ui(R),D--;for(;M--;){if(rt===R||R!==null&&rt===R.alternate)break e;rt=ui(rt),R=ui(R)}rt=null}else rt=null;O!==null&&sp(k,C,O,rt,!1),ut!==null&&Ot!==null&&sp(k,Ot,ut,rt,!0)}}t:{if(C=N?Vi(N):window,O=C.nodeName&&C.nodeName.toLowerCase(),O==="select"||O==="input"&&C.type==="file")var et=Ad;else if(Td(C))if(Md)et=Ax;else{et=Tx;var vt=wx}else O=C.nodeName,!O||O.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?N&&ao(N.elementType)&&(et=Ad):et=Ex;if(et&&(et=et(t,N))){Ed(k,et,a,B);break t}vt&&vt(t,C,N),t==="focusout"&&N&&C.type==="number"&&N.memoizedProps.value!=null&&no(C,"number",C.value)}switch(vt=N?Vi(N):window,t){case"focusin":(Td(vt)||vt.contentEditable==="true")&&(Ha=vt,vo=N,Gi=null);break;case"focusout":Gi=vo=Ha=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,Vd(k,a,B);break;case"selectionchange":if(Rx)break;case"keydown":case"keyup":Vd(k,a,B)}var at;if(mo)t:{switch(t){case"compositionstart":var ot="onCompositionStart";break t;case"compositionend":ot="onCompositionEnd";break t;case"compositionupdate":ot="onCompositionUpdate";break t}ot=void 0}else Ba?Sd(t,a)&&(ot="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(ot="onCompositionStart");ot&&(vd&&a.locale!=="ko"&&(Ba||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&Ba&&(at=hd()):(Cn=B,oo="value"in Cn?Cn.value:Cn.textContent,Ba=!0)),vt=Is(N,ot),0<vt.length&&(ot=new gd(ot,t,null,a,B),k.push({event:ot,listeners:vt}),at?ot.data=at:(at=wd(a),at!==null&&(ot.data=at)))),(at=yx?vx(t,a):xx(t,a))&&(ot=Is(N,"onBeforeInput"),0<ot.length&&(vt=new gd("onBeforeInput","beforeinput",null,a,B),k.push({event:vt,listeners:ot}),vt.data=at)),ub(k,t,N,a,B)}ip(k,e)})}function yl(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Is(t,e){for(var a=e+"Capture",l=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=_i(t,a),o!=null&&l.unshift(yl(t,o,c)),o=_i(t,e),o!=null&&l.push(yl(t,o,c))),t.tag===3)return l;t=t.return}return[]}function ui(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function sp(t,e,a,l,o){for(var c=e._reactName,g=[];a!==null&&a!==l;){var x=a,w=x.alternate,N=x.stateNode;if(x=x.tag,w!==null&&w===l)break;x!==5&&x!==26&&x!==27||N===null||(w=N,o?(N=_i(a,c),N!=null&&g.unshift(yl(a,N,w))):o||(N=_i(a,c),N!=null&&g.push(yl(a,N,w)))),a=a.return}g.length!==0&&t.push({event:e,listeners:g})}var hb=/\r\n?/g,mb=/\u0000|\uFFFD/g;function rp(t){return(typeof t=="string"?t:""+t).replace(hb,`
`).replace(mb,"")}function op(t,e){return e=rp(e),rp(t)===e}function tr(){}function Ct(t,e,a,l,o,c){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||_a(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&_a(t,""+l);break;case"className":ls(t,"class",l);break;case"tabIndex":ls(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ls(t,a,l);break;case"style":cd(t,l,c);break;case"data":if(e!=="object"){ls(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=os(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"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 c=="function"&&(a==="formAction"?(e!=="input"&&Ct(t,e,"name",o.name,o,null),Ct(t,e,"formEncType",o.formEncType,o,null),Ct(t,e,"formMethod",o.formMethod,o,null),Ct(t,e,"formTarget",o.formTarget,o,null)):(Ct(t,e,"encType",o.encType,o,null),Ct(t,e,"method",o.method,o,null),Ct(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=os(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=tr);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=os(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":bt("beforetoggle",t),bt("toggle",t),is(t,"popover",l);break;case"xlinkActuate":cn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":cn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":cn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":cn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":cn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":cn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":cn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":cn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":cn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":is(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Xv.get(a)||a,is(t,a,l))}}function Yu(t,e,a,l,o,c){switch(a){case"style":cd(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?_a(t,l):(typeof l=="number"||typeof l=="bigint")&&_a(t,""+l);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=tr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!If.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),c=t[he]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,o);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):is(t,a,l)}}}function se(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",t),bt("load",t);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ct(t,e,c,g,a,null)}}o&&Ct(t,e,"srcSet",a.srcSet,a,null),l&&Ct(t,e,"src",a.src,a,null);return;case"input":bt("invalid",t);var x=c=g=o=null,w=null,N=null;for(l in a)if(a.hasOwnProperty(l)){var B=a[l];if(B!=null)switch(l){case"name":o=B;break;case"type":g=B;break;case"checked":w=B;break;case"defaultChecked":N=B;break;case"value":c=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:Ct(t,e,l,B,a,null)}}sd(t,c,x,w,N,g,o,!1),ss(t);return;case"select":bt("invalid",t),l=g=c=null;for(o in a)if(a.hasOwnProperty(o)&&(x=a[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":l=x;default:Ct(t,e,o,x,a,null)}e=c,a=g,t.multiple=!!l,e!=null?Va(t,!!l,e,!1):a!=null&&Va(t,!!l,a,!0);return;case"textarea":bt("invalid",t),c=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(x=a[g],x!=null))switch(g){case"value":l=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ct(t,e,g,x,a,null)}od(t,l,o,c),ss(t);return;case"option":for(w in a)if(a.hasOwnProperty(w)&&(l=a[w],l!=null))switch(w){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ct(t,e,w,l,a,null)}return;case"dialog":bt("beforetoggle",t),bt("toggle",t),bt("cancel",t),bt("close",t);break;case"iframe":case"object":bt("load",t);break;case"video":case"audio":for(l=0;l<gl.length;l++)bt(gl[l],t);break;case"image":bt("error",t),bt("load",t);break;case"details":bt("toggle",t);break;case"embed":case"source":case"link":bt("error",t),bt("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(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ct(t,e,N,l,a,null)}return;default:if(ao(e)){for(B in a)a.hasOwnProperty(B)&&(l=a[B],l!==void 0&&Yu(t,e,B,l,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null&&Ct(t,e,x,l,a,null))}function pb(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,x=null,w=null,N=null,B=null;for(O in a){var k=a[O];if(a.hasOwnProperty(O)&&k!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":w=k;default:l.hasOwnProperty(O)||Ct(t,e,O,null,l,k)}}for(var C in l){var O=l[C];if(k=a[C],l.hasOwnProperty(C)&&(O!=null||k!=null))switch(C){case"type":c=O;break;case"name":o=O;break;case"checked":N=O;break;case"defaultChecked":B=O;break;case"value":g=O;break;case"defaultValue":x=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:O!==k&&Ct(t,e,C,O,l,k)}}eo(t,g,x,w,N,B,c,o);return;case"select":O=g=x=C=null;for(c in a)if(w=a[c],a.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":O=w;default:l.hasOwnProperty(c)||Ct(t,e,c,null,l,w)}for(o in l)if(c=l[o],w=a[o],l.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":C=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==w&&Ct(t,e,o,c,l,w)}e=x,a=g,l=O,C!=null?Va(t,!!a,C,!1):!!l!=!!a&&(e!=null?Va(t,!!a,e,!0):Va(t,!!a,a?[]:"",!1));return;case"textarea":O=C=null;for(x in a)if(o=a[x],a.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ct(t,e,x,null,l,o)}for(g in l)if(o=l[g],c=a[g],l.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":C=o;break;case"defaultValue":O=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&Ct(t,e,g,o,l,c)}rd(t,C,O);return;case"option":for(var ut in a)if(C=a[ut],a.hasOwnProperty(ut)&&C!=null&&!l.hasOwnProperty(ut))switch(ut){case"selected":t.selected=!1;break;default:Ct(t,e,ut,null,l,C)}for(w in l)if(C=l[w],O=a[w],l.hasOwnProperty(w)&&C!==O&&(C!=null||O!=null))switch(w){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Ct(t,e,w,C,l,O)}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 rt in a)C=a[rt],a.hasOwnProperty(rt)&&C!=null&&!l.hasOwnProperty(rt)&&Ct(t,e,rt,null,l,C);for(N in l)if(C=l[N],O=a[N],l.hasOwnProperty(N)&&C!==O&&(C!=null||O!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,e));break;default:Ct(t,e,N,C,l,O)}return;default:if(ao(e)){for(var Ot in a)C=a[Ot],a.hasOwnProperty(Ot)&&C!==void 0&&!l.hasOwnProperty(Ot)&&Yu(t,e,Ot,void 0,l,C);for(B in l)C=l[B],O=a[B],!l.hasOwnProperty(B)||C===O||C===void 0&&O===void 0||Yu(t,e,B,C,l,O);return}}for(var R in a)C=a[R],a.hasOwnProperty(R)&&C!=null&&!l.hasOwnProperty(R)&&Ct(t,e,R,null,l,C);for(k in l)C=l[k],O=a[k],!l.hasOwnProperty(k)||C===O||C==null&&O==null||Ct(t,e,k,C,l,O)}var Gu=null,Xu=null;function er(t){return t.nodeType===9?t:t.ownerDocument}function up(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 cp(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 Pu(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 Ku=null;function gb(){var t=window.event;return t&&t.type==="popstate"?t===Ku?!1:(Ku=t,!0):(Ku=null,!1)}var fp=typeof setTimeout=="function"?setTimeout:void 0,yb=typeof clearTimeout=="function"?clearTimeout:void 0,dp=typeof Promise=="function"?Promise:void 0,vb=typeof queueMicrotask=="function"?queueMicrotask:typeof dp<"u"?function(t){return dp.resolve(null).then(t).catch(xb)}:fp;function xb(t){setTimeout(function(){throw t})}function Zn(t){return t==="head"}function hp(t,e){var a=e,l=0,o=0;do{var c=a.nextSibling;if(t.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<l&&8>l){a=l;var g=t.ownerDocument;if(a&1&&vl(g.documentElement),a&2&&vl(g.body),a&4)for(a=g.head,vl(a),g=a.firstChild;g;){var x=g.nextSibling,w=g.nodeName;g[zi]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=x}}if(o===0){t.removeChild(c),Ml(e);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=c}while(a);Ml(e)}function Zu(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Zu(a),Jr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function bb(t,e,a,l){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[zi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function Sb(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Ze(t.nextSibling),t===null))return null;return t}function Qu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function wb(t,e){var a=t.ownerDocument;if(t.data!=="$?"||a.readyState==="complete")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ze(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 mp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(e===0)return t;e--}else a==="/$"&&e++}t=t.previousSibling}return null}function pp(t,e,a){switch(e=er(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function vl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Jr(t)}var Ye=new Map,gp=new Set;function nr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var En=X.d;X.d={f:Tb,r:Eb,D:Ab,C:Mb,L:Rb,m:jb,X:Nb,S:Db,M:Cb};function Tb(){var t=En.f(),e=Zs();return t||e}function Eb(t){var e=Na(t);e!==null&&e.tag===5&&e.type==="form"?Lh(e):En.r(t)}var ci=typeof document>"u"?null:document;function yp(t,e,a){var l=ci;if(l&&typeof e=="string"&&e){var o=_e(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),gp.has(o)||(gp.add(o),t={rel:t,crossOrigin:a,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),se(e,"link",t),Wt(e),l.head.appendChild(e)))}}function Ab(t){En.D(t),yp("dns-prefetch",t,null)}function Mb(t,e){En.C(t,e),yp("preconnect",t,e)}function Rb(t,e,a){En.L(t,e,a);var l=ci;if(l&&t&&e){var o='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_e(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_e(a.imageSizes)+'"]')):o+='[href="'+_e(t)+'"]';var c=o;switch(e){case"style":c=fi(t);break;case"script":c=di(t)}Ye.has(c)||(t=y({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Ye.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(xl(c))||e==="script"&&l.querySelector(bl(c))||(e=l.createElement("link"),se(e,"link",t),Wt(e),l.head.appendChild(e)))}}function jb(t,e){En.m(t,e);var a=ci;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=di(t)}if(!Ye.has(c)&&(t=y({rel:"modulepreload",href:t},e),Ye.set(c,t),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bl(c)))return}l=a.createElement("link"),se(l,"link",t),Wt(l),a.head.appendChild(l)}}}function Db(t,e,a){En.S(t,e,a);var l=ci;if(l&&t){var o=Ca(l).hoistableStyles,c=fi(t);e=e||"default";var g=o.get(c);if(!g){var x={loading:0,preload:null};if(g=l.querySelector(xl(c)))x.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Ye.get(c))&&$u(t,a);var w=g=l.createElement("link");Wt(w),se(w,"link",t),w._p=new Promise(function(N,B){w.onload=N,w.onerror=B}),w.addEventListener("load",function(){x.loading|=1}),w.addEventListener("error",function(){x.loading|=2}),x.loading|=4,ar(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:x},o.set(c,g)}}}function Nb(t,e){En.X(t,e);var a=ci;if(a&&t){var l=Ca(a).hoistableScripts,o=di(t),c=l.get(o);c||(c=a.querySelector(bl(o)),c||(t=y({src:t,async:!0},e),(e=Ye.get(o))&&Ju(t,e),c=a.createElement("script"),Wt(c),se(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Cb(t,e){En.M(t,e);var a=ci;if(a&&t){var l=Ca(a).hoistableScripts,o=di(t),c=l.get(o);c||(c=a.querySelector(bl(o)),c||(t=y({src:t,async:!0,type:"module"},e),(e=Ye.get(o))&&Ju(t,e),c=a.createElement("script"),Wt(c),se(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function vp(t,e,a,l){var o=(o=it.current)?nr(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=fi(a.href),a=Ca(o).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=fi(a.href);var c=Ca(o).hoistableStyles,g=c.get(t);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,g),(c=o.querySelector(xl(t)))&&!c._p&&(g.instance=c,g.state.loading=5),Ye.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ye.set(t,a),c||Ob(o,t,a,g.state))),e&&l===null)throw Error(r(528,""));return g}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=di(a),a=Ca(o).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function fi(t){return'href="'+_e(t)+'"'}function xl(t){return'link[rel="stylesheet"]['+t+"]"}function xp(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function Ob(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),se(e,"link",a),Wt(e),t.head.appendChild(e))}function di(t){return'[src="'+_e(t)+'"]'}function bl(t){return"script[async]"+t}function bp(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(a.href)+'"]');if(l)return e.instance=l,Wt(l),l;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Wt(l),se(l,"style",o),ar(l,a.precedence,t),e.instance=l;case"stylesheet":o=fi(a.href);var c=t.querySelector(xl(o));if(c)return e.state.loading|=4,e.instance=c,Wt(c),c;l=xp(a),(o=Ye.get(o))&&$u(l,o),c=(t.ownerDocument||t).createElement("link"),Wt(c);var g=c;return g._p=new Promise(function(x,w){g.onload=x,g.onerror=w}),se(c,"link",l),e.state.loading|=4,ar(c,a.precedence,t),e.instance=c;case"script":return c=di(a.src),(o=t.querySelector(bl(c)))?(e.instance=o,Wt(o),o):(l=a,(o=Ye.get(c))&&(l=y({},a),Ju(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),Wt(o),se(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,ar(l,a.precedence,t));return e.instance}function ar(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,g=0;g<l.length;g++){var x=l[g];if(x.dataset.precedence===e)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function $u(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ju(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ir=null;function Sp(t,e,a){if(ir===null){var l=new Map,o=ir=new Map;o.set(a,l)}else o=ir,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var c=a[o];if(!(c[zi]||c[oe]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(e)||"";g=t+g;var x=l.get(g);x?x.push(c):l.set(g,[c])}}return l}function wp(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function zb(t,e,a){if(a===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 Tp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Sl=null;function Vb(){}function _b(t,e,a){if(Sl===null)throw Error(r(475));var l=Sl;if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var o=fi(a.href),c=t.querySelector(xl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=lr.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=c,Wt(c);return}c=t.ownerDocument||t,a=xp(a),(o=Ye.get(o))&&$u(a,o),c=c.createElement("link"),Wt(c);var g=c;g._p=new Promise(function(x,w){g.onload=x,g.onerror=w}),se(c,"link",a),e.instance=c}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=lr.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function Lb(){if(Sl===null)throw Error(r(475));var t=Sl;return t.stylesheets&&t.count===0&&Wu(t,t.stylesheets),0<t.count?function(e){var a=setTimeout(function(){if(t.stylesheets&&Wu(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a)}}:null}function lr(){if(this.count--,this.count===0){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var sr=null;function Wu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,sr=new Map,e.forEach(Ub,t),sr=null,lr.call(t))}function Ub(t,e){if(!(e.state.loading&4)){var a=sr.get(t);if(a)var l=a.get(null);else{a=new Map,sr.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=e.instance,g=o.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,o),a.set(g,o),this.count++,l=lr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var wl={$$typeof:q,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Bb(t,e,a,l,o,c,g,x){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=Zr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zr(0),this.hiddenUpdates=Zr(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Ep(t,e,a,l,o,c,g,x,w,N,B,k){return t=new Bb(t,e,a,g,x,w,N,k),e=1,c===!0&&(e|=24),c=Me(3,null,null,e),t.current=c,c.stateNode=t,e=zo(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:e},Uo(c),t}function Ap(t){return t?(t=Ga,t):Ga}function Mp(t,e,a,l,o,c){o=Ap(o),l.context===null?l.context=o:l.pendingContext=o,l=Vn(e),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=_n(t,l,e),a!==null&&(Ce(a,t,e),Wi(a,t,e))}function Rp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Iu(t,e){Rp(t,e),(t=t.alternate)&&Rp(t,e)}function jp(t){if(t.tag===13){var e=Ya(t,67108864);e!==null&&Ce(e,t,67108864),Iu(t,67108864)}}var rr=!0;function Hb(t,e,a,l){var o=z.T;z.T=null;var c=X.p;try{X.p=2,tc(t,e,a,l)}finally{X.p=c,z.T=o}}function qb(t,e,a,l){var o=z.T;z.T=null;var c=X.p;try{X.p=8,tc(t,e,a,l)}finally{X.p=c,z.T=o}}function tc(t,e,a,l){if(rr){var o=ec(l);if(o===null)ku(t,e,l,or,a),Np(t,l);else if(Yb(o,t,e,a,l))l.stopPropagation();else if(Np(t,l),e&4&&-1<kb.indexOf(t)){for(;o!==null;){var c=Na(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=aa(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var w=1<<31-Ee(g);x.entanglements[1]|=w,g&=~w}nn(c),(jt&6)===0&&(Ps=we()+500,pl(0))}}break;case 13:x=Ya(c,2),x!==null&&Ce(x,c,2),Zs(),Iu(c,2)}if(c=ec(l),c===null&&ku(t,e,l,or,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else ku(t,e,l,null,a)}}function ec(t){return t=lo(t),nc(t)}var or=null;function nc(t){if(or=null,t=Da(t),t!==null){var e=f(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=d(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return or=t,null}function Dp(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(Mv()){case Gf:return 2;case Xf:return 8;case ts:case Rv:return 32;case Pf:return 268435456;default:return 32}default:return 32}}var ac=!1,Qn=null,Fn=null,$n=null,Tl=new Map,El=new Map,Jn=[],kb="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 Np(t,e){switch(t){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":Tl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":El.delete(e.pointerId)}}function Al(t,e,a,l,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},e!==null&&(e=Na(e),e!==null&&jp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Yb(t,e,a,l,o){switch(e){case"focusin":return Qn=Al(Qn,t,e,a,l,o),!0;case"dragenter":return Fn=Al(Fn,t,e,a,l,o),!0;case"mouseover":return $n=Al($n,t,e,a,l,o),!0;case"pointerover":var c=o.pointerId;return Tl.set(c,Al(Tl.get(c)||null,t,e,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,El.set(c,Al(El.get(c)||null,t,e,a,l,o)),!0}return!1}function Cp(t){var e=Da(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=d(a),e!==null){t.blockedOn=e,_v(t.priority,function(){if(a.tag===13){var l=Ne();l=Qr(l);var o=Ya(a,l);o!==null&&Ce(o,a,l),Iu(a,l)}});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ur(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=ec(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);io=l,a.target.dispatchEvent(l),io=null}else return e=Na(a),e!==null&&jp(e),t.blockedOn=a,!1;e.shift()}return!0}function Op(t,e,a){ur(t)&&a.delete(e)}function Gb(){ac=!1,Qn!==null&&ur(Qn)&&(Qn=null),Fn!==null&&ur(Fn)&&(Fn=null),$n!==null&&ur($n)&&($n=null),Tl.forEach(Op),El.forEach(Op)}function cr(t,e){t.blockedOn===e&&(t.blockedOn=null,ac||(ac=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Gb)))}var fr=null;function zp(t){fr!==t&&(fr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){fr===t&&(fr=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(nc(l||a)===null)continue;break}var c=Na(a);c!==null&&(t.splice(e,3),e-=3,nu(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ml(t){function e(w){return cr(w,t)}Qn!==null&&cr(Qn,t),Fn!==null&&cr(Fn,t),$n!==null&&cr($n,t),Tl.forEach(e),El.forEach(e);for(var a=0;a<Jn.length;a++){var l=Jn[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Jn.length&&(a=Jn[0],a.blockedOn===null);)Cp(a),a.blockedOn===null&&Jn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],g=o[he]||null;if(typeof c=="function")g||zp(a);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[he]||null)x=g.formAction;else if(nc(o)!==null)continue}else x=g.action;typeof x=="function"?a[l+1]=x:(a.splice(l,3),l-=3),zp(a)}}}function ic(t){this._internalRoot=t}dr.prototype.render=ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=Ne();Mp(a,l,t,e,null,null)},dr.prototype.unmount=ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Mp(t.current,2,null,t,null,null),Zs(),e[ja]=null}};function dr(t){this._internalRoot=t}dr.prototype.unstable_scheduleHydration=function(t){if(t){var e=$f();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Jn.length&&e!==0&&e<Jn[a].priority;a++);Jn.splice(a,0,t),a===0&&Cp(t)}};var Vp=i.version;if(Vp!=="19.1.1")throw Error(r(527,Vp,"19.1.1"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var Xb={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hr.isDisabled&&hr.supportsFiber)try{Ni=hr.inject(Xb),Te=hr}catch{}}return jl.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,l="",o=$h,c=Jh,g=Wh,x=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(x=e.unstable_transitionCallbacks)),e=Ep(t,1,!1,null,null,a,l,o,c,g,x,null),t[ja]=e.current,qu(t),new ic(e)},jl.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var l=!1,o="",c=$h,g=Jh,x=Wh,w=null,N=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(w=a.unstable_transitionCallbacks),a.formState!==void 0&&(N=a.formState)),e=Ep(t,1,!0,e,a??null,l,o,c,g,x,w,N),e.context=Ap(null),a=e.current,l=Ne(),l=Qr(l),o=Vn(l),o.callback=null,_n(a,o,l),a=l,e.current.lanes=a,Oi(e,a),nn(e),t[ja]=e.current,qu(t),new dr(e)},jl.version="19.1.1",jl}var Xp;function t1(){if(Xp)return rc.exports;Xp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),rc.exports=Ib(),rc.exports}var e1=t1();/**
 * react-router v7.9.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Pp="popstate";function n1(n={}){function i(r,u){let{pathname:f,search:d,hash:m}=r.location;return Cc("",{pathname:f,search:d,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function s(r,u){return typeof u=="string"?u:Hl(u)}return i1(i,s,null,n)}function Ht(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function rn(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function a1(){return Math.random().toString(36).substring(2,10)}function Kp(n,i){return{usr:n.state,key:n.key,idx:i}}function Cc(n,i,s=null,r){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?Ti(i):i,state:s,key:i&&i.key||r||a1()}}function Hl({pathname:n="/",search:i="",hash:s=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Ti(n){let i={};if(n){let s=n.indexOf("#");s>=0&&(i.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(i.search=n.substring(r),n=n.substring(0,r)),n&&(i.pathname=n)}return i}function i1(n,i,s,r={}){let{window:u=document.defaultView,v5Compat:f=!1}=r,d=u.history,m="POP",p=null,h=y();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function y(){return(d.state||{idx:null}).idx}function b(){m="POP";let V=y(),_=V==null?null:V-h;h=V,p&&p({action:m,location:U.location,delta:_})}function S(V,_){m="PUSH";let L=Cc(U.location,V,_);h=y()+1;let q=Kp(L,h),I=U.createHref(L);try{d.pushState(q,"",I)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;u.location.assign(I)}f&&p&&p({action:m,location:U.location,delta:1})}function E(V,_){m="REPLACE";let L=Cc(U.location,V,_);h=y();let q=Kp(L,h),I=U.createHref(L);d.replaceState(q,"",I),f&&p&&p({action:m,location:U.location,delta:0})}function j(V){return l1(V)}let U={get action(){return m},get location(){return n(u,d)},listen(V){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(Pp,b),p=V,()=>{u.removeEventListener(Pp,b),p=null}},createHref(V){return i(u,V)},createURL:j,encodeLocation(V){let _=j(V);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:S,replace:E,go(V){return d.go(V)}};return U}function l1(n,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ht(s,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Hl(n);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function Eg(n,i,s="/"){return s1(n,i,s,!1)}function s1(n,i,s,r){let u=typeof i=="string"?Ti(i):i,f=Mn(u.pathname||"/",s);if(f==null)return null;let d=Ag(n);r1(d);let m=null;for(let p=0;m==null&&p<d.length;++p){let h=v1(f);m=g1(d[p],h,r)}return m}function Ag(n,i=[],s=[],r="",u=!1){let f=(d,m,p=u,h)=>{let y={relativePath:h===void 0?d.path||"":h,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&p)return;Ht(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let b=An([r,y.relativePath]),S=s.concat(y);d.children&&d.children.length>0&&(Ht(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Ag(d.children,i,S,b,p)),!(d.path==null&&!d.index)&&i.push({path:b,score:m1(b,d.index),routesMeta:S})};return n.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let p of Mg(d.path))f(d,m,!0,p)}),i}function Mg(n){let i=n.split("/");if(i.length===0)return[];let[s,...r]=i,u=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return u?[f,""]:[f];let d=Mg(r.join("/")),m=[];return m.push(...d.map(p=>p===""?f:[f,p].join("/"))),u&&m.push(...d),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function r1(n){n.sort((i,s)=>i.score!==s.score?s.score-i.score:p1(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var o1=/^:[\w-]+$/,u1=3,c1=2,f1=1,d1=10,h1=-2,Zp=n=>n==="*";function m1(n,i){let s=n.split("/"),r=s.length;return s.some(Zp)&&(r+=h1),i&&(r+=c1),s.filter(u=>!Zp(u)).reduce((u,f)=>u+(o1.test(f)?u1:f===""?f1:d1),r)}function p1(n,i){return n.length===i.length&&n.slice(0,-1).every((r,u)=>r===i[u])?n[n.length-1]-i[i.length-1]:0}function g1(n,i,s=!1){let{routesMeta:r}=n,u={},f="/",d=[];for(let m=0;m<r.length;++m){let p=r[m],h=m===r.length-1,y=f==="/"?i:i.slice(f.length)||"/",b=Or({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},y),S=p.route;if(!b&&h&&s&&!r[r.length-1].route.index&&(b=Or({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(u,b.params),d.push({params:u,pathname:An([f,b.pathname]),pathnameBase:w1(An([f,b.pathnameBase])),route:S}),b.pathnameBase!=="/"&&(f=An([f,b.pathnameBase]))}return d}function Or(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,r]=y1(n.path,n.caseSensitive,n.end),u=i.match(s);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:r.reduce((h,{paramName:y,isOptional:b},S)=>{if(y==="*"){let j=m[S]||"";d=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const E=m[S];return b&&!E?h[y]=void 0:h[y]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:n}}function y1(n,i=!1,s=!0){rn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,p)=>(r.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),r]}function v1(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return rn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Mn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}function x1(n,i="/"){let{pathname:s,search:r="",hash:u=""}=typeof n=="string"?Ti(n):n;return{pathname:s?s.startsWith("/")?s:b1(s,i):i,search:T1(r),hash:E1(u)}}function b1(n,i){let s=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?s.length>1&&s.pop():u!=="."&&s.push(u)}),s.length>1?s.join("/"):"/"}function fc(n,i,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function S1(n){return n.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Rg(n){let i=S1(n);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function jg(n,i,s,r=!1){let u;typeof n=="string"?u=Ti(n):(u={...n},Ht(!u.pathname||!u.pathname.includes("?"),fc("?","pathname","search",u)),Ht(!u.pathname||!u.pathname.includes("#"),fc("#","pathname","hash",u)),Ht(!u.search||!u.search.includes("#"),fc("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,m;if(d==null)m=s;else{let b=i.length-1;if(!r&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),b-=1;u.pathname=S.join("/")}m=b>=0?i[b]:"/"}let p=x1(u,m),h=d&&d!=="/"&&d.endsWith("/"),y=(f||d===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(h||y)&&(p.pathname+="/"),p}var An=n=>n.join("/").replace(/\/\/+/g,"/"),w1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),T1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,E1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function A1(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Dg=["POST","PUT","PATCH","DELETE"];new Set(Dg);var M1=["GET",...Dg];new Set(M1);var Ei=A.createContext(null);Ei.displayName="DataRouter";var Hr=A.createContext(null);Hr.displayName="DataRouterState";A.createContext(!1);var Ng=A.createContext({isTransitioning:!1});Ng.displayName="ViewTransition";var R1=A.createContext(new Map);R1.displayName="Fetchers";var j1=A.createContext(null);j1.displayName="Await";var un=A.createContext(null);un.displayName="Navigation";var Ai=A.createContext(null);Ai.displayName="Location";var jn=A.createContext({outlet:null,matches:[],isDataRoute:!1});jn.displayName="Route";var nf=A.createContext(null);nf.displayName="RouteError";function D1(n,{relative:i}={}){Ht(Zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=A.useContext(un),{hash:u,pathname:f,search:d}=Ql(n,{relative:i}),m=f;return s!=="/"&&(m=f==="/"?s:An([s,f])),r.createHref({pathname:m,search:d,hash:u})}function Zl(){return A.useContext(Ai)!=null}function ea(){return Ht(Zl(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Ai).location}function N1(){return A.useContext(Ai).navigationType}var Cg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Og(n){A.useContext(un).static||A.useLayoutEffect(n)}function af(){let{isDataRoute:n}=A.useContext(jn);return n?G1():C1()}function C1(){Ht(Zl(),"useNavigate() may be used only in the context of a <Router> component.");let n=A.useContext(Ei),{basename:i,navigator:s}=A.useContext(un),{matches:r}=A.useContext(jn),{pathname:u}=ea(),f=JSON.stringify(Rg(r)),d=A.useRef(!1);return Og(()=>{d.current=!0}),A.useCallback((p,h={})=>{if(rn(d.current,Cg),!d.current)return;if(typeof p=="number"){s.go(p);return}let y=jg(p,JSON.parse(f),u,h.relative==="path");n==null&&i!=="/"&&(y.pathname=y.pathname==="/"?i:An([i,y.pathname])),(h.replace?s.replace:s.push)(y,h.state,h)},[i,s,f,u,n])}A.createContext(null);function Ql(n,{relative:i}={}){let{matches:s}=A.useContext(jn),{pathname:r}=ea(),u=JSON.stringify(Rg(s));return A.useMemo(()=>jg(n,JSON.parse(u),r,i==="path"),[n,u,r,i])}function O1(n,i){return zg(n,i)}function zg(n,i,s,r,u){Ht(Zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=A.useContext(un),{matches:d}=A.useContext(jn),m=d[d.length-1],p=m?m.params:{},h=m?m.pathname:"/",y=m?m.pathnameBase:"/",b=m&&m.route;{let L=b&&b.path||"";Vg(h,!b||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let S=ea(),E;if(i){let L=typeof i=="string"?Ti(i):i;Ht(y==="/"||L.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${L.pathname}" was given in the \`location\` prop.`),E=L}else E=S;let j=E.pathname||"/",U=j;if(y!=="/"){let L=y.replace(/^\//,"").split("/");U="/"+j.replace(/^\//,"").split("/").slice(L.length).join("/")}let V=Eg(n,{pathname:U});rn(b||V!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),rn(V==null||V[V.length-1].route.element!==void 0||V[V.length-1].route.Component!==void 0||V[V.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=U1(V&&V.map(L=>Object.assign({},L,{params:Object.assign({},p,L.params),pathname:An([y,f.encodeLocation?f.encodeLocation(L.pathname).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?y:An([y,f.encodeLocation?f.encodeLocation(L.pathnameBase).pathname:L.pathnameBase])})),d,s,r,u);return i&&_?A.createElement(Ai.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},_):_}function z1(){let n=Y1(),i=A1(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:f},"ErrorBoundary")," or"," ",A.createElement("code",{style:f},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},i),s?A.createElement("pre",{style:u},s):null,d)}var V1=A.createElement(z1,null),_1=class extends A.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.unstable_onError?this.props.unstable_onError(n,i):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?A.createElement(jn.Provider,{value:this.props.routeContext},A.createElement(nf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function L1({routeContext:n,match:i,children:s}){let r=A.useContext(Ei);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),A.createElement(jn.Provider,{value:n},s)}function U1(n,i=[],s=null,r=null,u=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(i.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let f=n,d=s?.errors;if(d!=null){let h=f.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);Ht(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,h+1))}let m=!1,p=-1;if(s)for(let h=0;h<f.length;h++){let y=f[h];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=h),y.route.id){let{loaderData:b,errors:S}=s,E=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!S||S[y.route.id]===void 0);if(y.route.lazy||E){m=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}return f.reduceRight((h,y,b)=>{let S,E=!1,j=null,U=null;s&&(S=d&&y.route.id?d[y.route.id]:void 0,j=y.route.errorElement||V1,m&&(p<0&&b===0?(Vg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,U=null):p===b&&(E=!0,U=y.route.hydrateFallbackElement||null)));let V=i.concat(f.slice(0,b+1)),_=()=>{let L;return S?L=j:E?L=U:y.route.Component?L=A.createElement(y.route.Component,null):y.route.element?L=y.route.element:L=h,A.createElement(L1,{match:y,routeContext:{outlet:h,matches:V,isDataRoute:s!=null},children:L})};return s&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?A.createElement(_1,{location:s.location,revalidation:s.revalidation,component:j,error:S,children:_(),routeContext:{outlet:null,matches:V,isDataRoute:!0},unstable_onError:r}):_()},null)}function lf(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function B1(n){let i=A.useContext(Ei);return Ht(i,lf(n)),i}function H1(n){let i=A.useContext(Hr);return Ht(i,lf(n)),i}function q1(n){let i=A.useContext(jn);return Ht(i,lf(n)),i}function sf(n){let i=q1(n),s=i.matches[i.matches.length-1];return Ht(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function k1(){return sf("useRouteId")}function Y1(){let n=A.useContext(nf),i=H1("useRouteError"),s=sf("useRouteError");return n!==void 0?n:i.errors?.[s]}function G1(){let{router:n}=B1("useNavigate"),i=sf("useNavigate"),s=A.useRef(!1);return Og(()=>{s.current=!0}),A.useCallback(async(u,f={})=>{rn(s.current,Cg),s.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:i,...f}))},[n,i])}var Qp={};function Vg(n,i,s){!i&&!Qp[n]&&(Qp[n]=!0,rn(!1,s))}A.memo(X1);function X1({routes:n,future:i,state:s,unstable_onError:r}){return zg(n,void 0,s,r,i)}function wa(n){Ht(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function P1({basename:n="/",children:i=null,location:s,navigationType:r="POP",navigator:u,static:f=!1}){Ht(!Zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),m=A.useMemo(()=>({basename:d,navigator:u,static:f,future:{}}),[d,u,f]);typeof s=="string"&&(s=Ti(s));let{pathname:p="/",search:h="",hash:y="",state:b=null,key:S="default"}=s,E=A.useMemo(()=>{let j=Mn(p,d);return j==null?null:{location:{pathname:j,search:h,hash:y,state:b,key:S},navigationType:r}},[d,p,h,y,b,S,r]);return rn(E!=null,`<Router basename="${d}"> is not able to match the URL "${p}${h}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:A.createElement(un.Provider,{value:m},A.createElement(Ai.Provider,{children:i,value:E}))}function K1({children:n,location:i}){return O1(Oc(n),i)}function Oc(n,i=[]){let s=[];return A.Children.forEach(n,(r,u)=>{if(!A.isValidElement(r))return;let f=[...i,u];if(r.type===A.Fragment){s.push.apply(s,Oc(r.props.children,f));return}Ht(r.type===wa,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ht(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=Oc(r.props.children,f)),s.push(d)}),s}var Sr="get",wr="application/x-www-form-urlencoded";function qr(n){return n!=null&&typeof n.tagName=="string"}function Z1(n){return qr(n)&&n.tagName.toLowerCase()==="button"}function Q1(n){return qr(n)&&n.tagName.toLowerCase()==="form"}function F1(n){return qr(n)&&n.tagName.toLowerCase()==="input"}function $1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function J1(n,i){return n.button===0&&(!i||i==="_self")&&!$1(n)}var mr=null;function W1(){if(mr===null)try{new FormData(document.createElement("form"),0),mr=!1}catch{mr=!0}return mr}var I1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dc(n){return n!=null&&!I1.has(n)?(rn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wr}"`),null):n}function t2(n,i){let s,r,u,f,d;if(Q1(n)){let m=n.getAttribute("action");r=m?Mn(m,i):null,s=n.getAttribute("method")||Sr,u=dc(n.getAttribute("enctype"))||wr,f=new FormData(n)}else if(Z1(n)||F1(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(r=p?Mn(p,i):null,s=n.getAttribute("formmethod")||m.getAttribute("method")||Sr,u=dc(n.getAttribute("formenctype"))||dc(m.getAttribute("enctype"))||wr,f=new FormData(m,n),!W1()){let{name:h,type:y,value:b}=n;if(y==="image"){let S=h?`${h}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else h&&f.append(h,b)}}else{if(qr(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Sr,r=null,u=wr,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:r,method:s.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function e2(n,i,s){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${s}`:i&&Mn(r.pathname,i)==="/"?r.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${s}`,r}async function n2(n,i){if(n.id in i)return i[n.id];try{let s=await import(n.module);return i[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function a2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function i2(n,i,s){let r=await Promise.all(n.map(async u=>{let f=i.routes[u.route.id];if(f){let d=await n2(f,s);return d.links?d.links():[]}return[]}));return o2(r.flat(1).filter(a2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Fp(n,i,s,r,u,f){let d=(p,h)=>s[h]?p.route.id!==s[h].route.id:!0,m=(p,h)=>s[h].pathname!==p.pathname||s[h].route.path?.endsWith("*")&&s[h].params["*"]!==p.params["*"];return f==="assets"?i.filter((p,h)=>d(p,h)||m(p,h)):f==="data"?i.filter((p,h)=>{let y=r.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(d(p,h)||m(p,h))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function l2(n,i,{includeHydrateFallback:s}={}){return s2(n.map(r=>{let u=i.routes[r.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),s&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function s2(n){return[...new Set(n)]}function r2(n){let i={},s=Object.keys(n).sort();for(let r of s)i[r]=n[r];return i}function o2(n,i){let s=new Set;return new Set(i),n.reduce((r,u)=>{let f=JSON.stringify(r2(u));return s.has(f)||(s.add(f),r.push({key:f,link:u})),r},[])}function _g(){let n=A.useContext(Ei);return rf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function u2(){let n=A.useContext(Hr);return rf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var of=A.createContext(void 0);of.displayName="FrameworkContext";function Lg(){let n=A.useContext(of);return rf(n,"You must render this element inside a <HydratedRouter> element"),n}function c2(n,i){let s=A.useContext(of),[r,u]=A.useState(!1),[f,d]=A.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:h,onMouseLeave:y,onTouchStart:b}=i,S=A.useRef(null);A.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let U=_=>{_.forEach(L=>{d(L.isIntersecting)})},V=new IntersectionObserver(U,{threshold:.5});return S.current&&V.observe(S.current),()=>{V.disconnect()}}},[n]),A.useEffect(()=>{if(r){let U=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(U)}}},[r]);let E=()=>{u(!0)},j=()=>{u(!1),d(!1)};return s?n!=="intent"?[f,S,{}]:[f,S,{onFocus:Dl(m,E),onBlur:Dl(p,j),onMouseEnter:Dl(h,E),onMouseLeave:Dl(y,j),onTouchStart:Dl(b,E)}]:[!1,S,{}]}function Dl(n,i){return s=>{n&&n(s),s.defaultPrevented||i(s)}}function f2({page:n,...i}){let{router:s}=_g(),r=A.useMemo(()=>Eg(s.routes,n,s.basename),[s.routes,n,s.basename]);return r?A.createElement(h2,{page:n,matches:r,...i}):null}function d2(n){let{manifest:i,routeModules:s}=Lg(),[r,u]=A.useState([]);return A.useEffect(()=>{let f=!1;return i2(n,i,s).then(d=>{f||u(d)}),()=>{f=!0}},[n,i,s]),r}function h2({page:n,matches:i,...s}){let r=ea(),{manifest:u,routeModules:f}=Lg(),{basename:d}=_g(),{loaderData:m,matches:p}=u2(),h=A.useMemo(()=>Fp(n,i,p,u,r,"data"),[n,i,p,u,r]),y=A.useMemo(()=>Fp(n,i,p,u,r,"assets"),[n,i,p,u,r]),b=A.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let j=new Set,U=!1;if(i.forEach(_=>{let L=u.routes[_.route.id];!L||!L.hasLoader||(!h.some(q=>q.route.id===_.route.id)&&_.route.id in m&&f[_.route.id]?.shouldRevalidate||L.hasClientLoader?U=!0:j.add(_.route.id))}),j.size===0)return[];let V=e2(n,d,"data");return U&&j.size>0&&V.searchParams.set("_routes",i.filter(_=>j.has(_.route.id)).map(_=>_.route.id).join(",")),[V.pathname+V.search]},[d,m,r,u,h,i,n,f]),S=A.useMemo(()=>l2(y,u),[y,u]),E=d2(y);return A.createElement(A.Fragment,null,b.map(j=>A.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...s})),S.map(j=>A.createElement("link",{key:j,rel:"modulepreload",href:j,...s})),E.map(({key:j,link:U})=>A.createElement("link",{key:j,nonce:s.nonce,...U})))}function m2(...n){return i=>{n.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var Ug=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ug&&(window.__reactRouterVersion="7.9.1")}catch{}function p2({basename:n,children:i,window:s}){let r=A.useRef();r.current==null&&(r.current=n1({window:s,v5Compat:!0}));let u=r.current,[f,d]=A.useState({action:u.action,location:u.location}),m=A.useCallback(p=>{A.startTransition(()=>d(p))},[d]);return A.useLayoutEffect(()=>u.listen(m),[u,m]),A.createElement(P1,{basename:n,children:i,location:f.location,navigationType:f.action,navigator:u})}var Bg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bi=A.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:u,reloadDocument:f,replace:d,state:m,target:p,to:h,preventScrollReset:y,viewTransition:b,...S},E){let{basename:j}=A.useContext(un),U=typeof h=="string"&&Bg.test(h),V,_=!1;if(typeof h=="string"&&U&&(V=h,Ug))try{let st=new URL(window.location.href),yt=h.startsWith("//")?new URL(st.protocol+h):new URL(h),J=Mn(yt.pathname,j);yt.origin===st.origin&&J!=null?h=J+yt.search+yt.hash:_=!0}catch{rn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let L=D1(h,{relative:u}),[q,I,G]=c2(r,S),$=x2(h,{replace:d,state:m,target:p,preventScrollReset:y,relative:u,viewTransition:b});function nt(st){i&&i(st),st.defaultPrevented||$(st)}let P=A.createElement("a",{...S,...G,href:V||L,onClick:_||f?i:nt,ref:m2(E,I),target:p,"data-discover":!U&&s==="render"?"true":void 0});return q&&!U?A.createElement(A.Fragment,null,P,A.createElement(f2,{page:L})):P});bi.displayName="Link";var g2=A.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:u=!1,style:f,to:d,viewTransition:m,children:p,...h},y){let b=Ql(d,{relative:h.relative}),S=ea(),E=A.useContext(Hr),{navigator:j,basename:U}=A.useContext(un),V=E!=null&&E2(b)&&m===!0,_=j.encodeLocation?j.encodeLocation(b).pathname:b.pathname,L=S.pathname,q=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;s||(L=L.toLowerCase(),q=q?q.toLowerCase():null,_=_.toLowerCase()),q&&U&&(q=Mn(q,U)||q);const I=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let G=L===_||!u&&L.startsWith(_)&&L.charAt(I)==="/",$=q!=null&&(q===_||!u&&q.startsWith(_)&&q.charAt(_.length)==="/"),nt={isActive:G,isPending:$,isTransitioning:V},P=G?i:void 0,st;typeof r=="function"?st=r(nt):st=[r,G?"active":null,$?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let yt=typeof f=="function"?f(nt):f;return A.createElement(bi,{...h,"aria-current":P,className:st,ref:y,style:yt,to:d,viewTransition:m},typeof p=="function"?p(nt):p)});g2.displayName="NavLink";var y2=A.forwardRef(({discover:n="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:u,state:f,method:d=Sr,action:m,onSubmit:p,relative:h,preventScrollReset:y,viewTransition:b,...S},E)=>{let j=w2(),U=T2(m,{relative:h}),V=d.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Bg.test(m),L=q=>{if(p&&p(q),q.defaultPrevented)return;q.preventDefault();let I=q.nativeEvent.submitter,G=I?.getAttribute("formmethod")||d;j(I||q.currentTarget,{fetcherKey:i,method:G,navigate:s,replace:u,state:f,relative:h,preventScrollReset:y,viewTransition:b})};return A.createElement("form",{ref:E,method:V,action:U,onSubmit:r?p:L,...S,"data-discover":!_&&n==="render"?"true":void 0})});y2.displayName="Form";function v2(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hg(n){let i=A.useContext(Ei);return Ht(i,v2(n)),i}function x2(n,{target:i,replace:s,state:r,preventScrollReset:u,relative:f,viewTransition:d}={}){let m=af(),p=ea(),h=Ql(n,{relative:f});return A.useCallback(y=>{if(J1(y,i)){y.preventDefault();let b=s!==void 0?s:Hl(p)===Hl(h);m(n,{replace:b,state:r,preventScrollReset:u,relative:f,viewTransition:d})}},[p,m,h,s,r,i,n,u,f,d])}var b2=0,S2=()=>`__${String(++b2)}__`;function w2(){let{router:n}=Hg("useSubmit"),{basename:i}=A.useContext(un),s=k1();return A.useCallback(async(r,u={})=>{let{action:f,method:d,encType:m,formData:p,body:h}=t2(r,i);if(u.navigate===!1){let y=u.fetcherKey||S2();await n.fetch(y,s,u.action||f,{preventScrollReset:u.preventScrollReset,formData:p,body:h,formMethod:u.method||d,formEncType:u.encType||m,flushSync:u.flushSync})}else await n.navigate(u.action||f,{preventScrollReset:u.preventScrollReset,formData:p,body:h,formMethod:u.method||d,formEncType:u.encType||m,replace:u.replace,state:u.state,fromRouteId:s,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,i,s])}function T2(n,{relative:i}={}){let{basename:s}=A.useContext(un),r=A.useContext(jn);Ht(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),f={...Ql(n||".",{relative:i})},d=ea();if(n==null){f.search=d.search;let m=new URLSearchParams(f.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(b=>b).forEach(b=>m.append("index",b));let y=m.toString();f.search=y?`?${y}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:An([s,f.pathname])),Hl(f)}function E2(n,{relative:i}={}){let s=A.useContext(Ng);Ht(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Hg("useViewTransitionState"),u=Ql(n,{relative:i});if(!s.isTransitioning)return!1;let f=Mn(s.currentLocation.pathname,r)||s.currentLocation.pathname,d=Mn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Or(u.pathname,d)!=null||Or(u.pathname,f)!=null}/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,r)=>r?r.toUpperCase():s.toLowerCase()),$p=n=>{const i=M2(n);return i.charAt(0).toUpperCase()+i.slice(1)},qg=(...n)=>n.filter((i,s,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===s).join(" ").trim(),R2=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var j2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D2=A.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:u="",children:f,iconNode:d,...m},p)=>A.createElement("svg",{ref:p,...j2,width:i,height:i,stroke:n,strokeWidth:r?Number(s)*24/Number(i):s,className:qg("lucide",u),...!f&&!R2(m)&&{"aria-hidden":"true"},...m},[...d.map(([h,y])=>A.createElement(h,y)),...Array.isArray(f)?f:[f]]));/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oe=(n,i)=>{const s=A.forwardRef(({className:r,...u},f)=>A.createElement(D2,{ref:f,iconNode:i,className:qg(`lucide-${A2($p(n))}`,`lucide-${n}`,r),...u}));return s.displayName=$p(n),s};/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N2=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],C2=Oe("droplets",N2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O2=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],z2=Oe("facebook",O2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V2=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],_2=Oe("flame",V2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L2=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],U2=Oe("instagram",L2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B2=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],H2=Oe("leaf",B2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q2=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],k2=Oe("linkedin",q2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y2=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],kg=Oe("mail",Y2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G2=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],X2=Oe("map-pin",G2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P2=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],K2=Oe("menu",P2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Q2=Oe("message-square",Z2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F2=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],$2=Oe("phone",F2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J2=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],W2=Oe("user",J2);/**
 * @license lucide-react v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jp=Oe("x",I2),uf=A.createContext({});function Mi(n){const i=A.useRef(null);return i.current===null&&(i.current=n()),i.current}const cf=typeof window<"u",kr=cf?A.useLayoutEffect:A.useEffect,Yr=A.createContext(null);function ff(n,i){n.indexOf(i)===-1&&n.push(i)}function df(n,i){const s=n.indexOf(i);s>-1&&n.splice(s,1)}const on=(n,i,s)=>s>i?i:s<n?n:s;let ql=()=>{};const Rn={},Yg=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Gg(n){return typeof n=="object"&&n!==null}const Xg=n=>/^0[^.\s]+$/u.test(n);function hf(n){let i;return()=>(i===void 0&&(i=n()),i)}const xe=n=>n,tS=(n,i)=>s=>i(n(s)),Fl=(...n)=>n.reduce(tS),Si=(n,i,s)=>{const r=i-n;return r===0?1:(s-n)/r};class mf{constructor(){this.subscriptions=[]}add(i){return ff(this.subscriptions,i),()=>df(this.subscriptions,i)}notify(i,s,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](i,s,r);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(i,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const an=n=>n*1e3,ln=n=>n/1e3;function pf(n,i){return i?n*(1e3/i):0}const Pg=(n,i,s)=>(((1-3*s+3*i)*n+(3*s-6*i))*n+3*i)*n,eS=1e-7,nS=12;function aS(n,i,s,r,u){let f,d,m=0;do d=i+(s-i)/2,f=Pg(d,r,u)-n,f>0?s=d:i=d;while(Math.abs(f)>eS&&++m<nS);return d}function $l(n,i,s,r){if(n===i&&s===r)return xe;const u=f=>aS(f,0,1,n,s);return f=>f===0||f===1?f:Pg(u(f),i,r)}const Kg=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,Zg=n=>i=>1-n(1-i),Qg=$l(.33,1.53,.69,.99),gf=Zg(Qg),Fg=Kg(gf),$g=n=>(n*=2)<1?.5*gf(n):.5*(2-Math.pow(2,-10*(n-1))),yf=n=>1-Math.sin(Math.acos(n)),Jg=Zg(yf),Wg=Kg(yf),iS=$l(.42,0,1,1),lS=$l(0,0,.58,1),Ig=$l(.42,0,.58,1),sS=n=>Array.isArray(n)&&typeof n[0]!="number",ty=n=>Array.isArray(n)&&typeof n[0]=="number",rS={linear:xe,easeIn:iS,easeInOut:Ig,easeOut:lS,circIn:yf,circInOut:Wg,circOut:Jg,backIn:gf,backInOut:Fg,backOut:Qg,anticipate:$g},oS=n=>typeof n=="string",Wp=n=>{if(ty(n)){ql(n.length===4);const[i,s,r,u]=n;return $l(i,s,r,u)}else if(oS(n))return rS[n];return n},pr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uS(n,i){let s=new Set,r=new Set,u=!1,f=!1;const d=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function p(y){d.has(y)&&(h.schedule(y),n()),y(m)}const h={schedule:(y,b=!1,S=!1)=>{const j=S&&u?s:r;return b&&d.add(y),j.has(y)||j.add(y),y},cancel:y=>{r.delete(y),d.delete(y)},process:y=>{if(m=y,u){f=!0;return}u=!0,[s,r]=[r,s],s.forEach(p),s.clear(),u=!1,f&&(f=!1,h.process(y))}};return h}const cS=40;function ey(n,i){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=pr.reduce((q,I)=>(q[I]=uS(f),q),{}),{setup:m,read:p,resolveKeyframes:h,preUpdate:y,update:b,preRender:S,render:E,postRender:j}=d,U=()=>{const q=Rn.useManualTiming?u.timestamp:performance.now();s=!1,Rn.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(q-u.timestamp,cS),1)),u.timestamp=q,u.isProcessing=!0,m.process(u),p.process(u),h.process(u),y.process(u),b.process(u),S.process(u),E.process(u),j.process(u),u.isProcessing=!1,s&&i&&(r=!1,n(U))},V=()=>{s=!0,r=!0,u.isProcessing||n(U)};return{schedule:pr.reduce((q,I)=>{const G=d[I];return q[I]=($,nt=!1,P=!1)=>(s||V(),G.schedule($,nt,P)),q},{}),cancel:q=>{for(let I=0;I<pr.length;I++)d[pr[I]].cancel(q)},state:u,steps:d}}const{schedule:Rt,cancel:$e,state:ne,steps:hc}=ey(typeof requestAnimationFrame<"u"?requestAnimationFrame:xe,!0);let Tr;function fS(){Tr=void 0}const ve={now:()=>(Tr===void 0&&ve.set(ne.isProcessing||Rn.useManualTiming?ne.timestamp:performance.now()),Tr),set:n=>{Tr=n,queueMicrotask(fS)}},ny=n=>i=>typeof i=="string"&&i.startsWith(n),vf=ny("--"),dS=ny("var(--"),xf=n=>dS(n)?hS.test(n.split("/*")[0].trim()):!1,hS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ri={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},kl={...Ri,transform:n=>on(0,1,n)},gr={...Ri,default:1},zl=n=>Math.round(n*1e5)/1e5,bf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mS(n){return n==null}const pS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sf=(n,i)=>s=>!!(typeof s=="string"&&pS.test(s)&&s.startsWith(n)||i&&!mS(s)&&Object.prototype.hasOwnProperty.call(s,i)),ay=(n,i,s)=>r=>{if(typeof r!="string")return r;const[u,f,d,m]=r.match(bf);return{[n]:parseFloat(u),[i]:parseFloat(f),[s]:parseFloat(d),alpha:m!==void 0?parseFloat(m):1}},gS=n=>on(0,255,n),mc={...Ri,transform:n=>Math.round(gS(n))},Ea={test:Sf("rgb","red"),parse:ay("red","green","blue"),transform:({red:n,green:i,blue:s,alpha:r=1})=>"rgba("+mc.transform(n)+", "+mc.transform(i)+", "+mc.transform(s)+", "+zl(kl.transform(r))+")"};function yS(n){let i="",s="",r="",u="";return n.length>5?(i=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(i=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),i+=i,s+=s,r+=r,u+=u),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const zc={test:Sf("#"),parse:yS,transform:Ea.transform},Jl=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),In=Jl("deg"),sn=Jl("%"),ct=Jl("px"),vS=Jl("vh"),xS=Jl("vw"),Ip={...sn,parse:n=>sn.parse(n)/100,transform:n=>sn.transform(n*100)},hi={test:Sf("hsl","hue"),parse:ay("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+sn.transform(zl(i))+", "+sn.transform(zl(s))+", "+zl(kl.transform(r))+")"},Ft={test:n=>Ea.test(n)||zc.test(n)||hi.test(n),parse:n=>Ea.test(n)?Ea.parse(n):hi.test(n)?hi.parse(n):zc.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ea.transform(n):hi.transform(n),getAnimatableNone:n=>{const i=Ft.parse(n);return i.alpha=0,Ft.transform(i)}},bS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function SS(n){return isNaN(n)&&typeof n=="string"&&(n.match(bf)?.length||0)+(n.match(bS)?.length||0)>0}const iy="number",ly="color",wS="var",TS="var(",t0="${}",ES=/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(n){const i=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let f=0;const m=i.replace(ES,p=>(Ft.test(p)?(r.color.push(f),u.push(ly),s.push(Ft.parse(p))):p.startsWith(TS)?(r.var.push(f),u.push(wS),s.push(p)):(r.number.push(f),u.push(iy),s.push(parseFloat(p))),++f,t0)).split(t0);return{values:s,split:m,indexes:r,types:u}}function sy(n){return Yl(n).values}function ry(n){const{split:i,types:s}=Yl(n),r=i.length;return u=>{let f="";for(let d=0;d<r;d++)if(f+=i[d],u[d]!==void 0){const m=s[d];m===iy?f+=zl(u[d]):m===ly?f+=Ft.transform(u[d]):f+=u[d]}return f}}const AS=n=>typeof n=="number"?0:Ft.test(n)?Ft.getAnimatableNone(n):n;function MS(n){const i=sy(n);return ry(n)(i.map(AS))}const ta={test:SS,parse:sy,createTransformer:ry,getAnimatableNone:MS};function pc(n,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(i-n)*6*s:s<1/2?i:s<2/3?n+(i-n)*(2/3-s)*6:n}function RS({hue:n,saturation:i,lightness:s,alpha:r}){n/=360,i/=100,s/=100;let u=0,f=0,d=0;if(!i)u=f=d=s;else{const m=s<.5?s*(1+i):s+i-s*i,p=2*s-m;u=pc(p,m,n+1/3),f=pc(p,m,n),d=pc(p,m,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function zr(n,i){return s=>s>0?i:n}const Bt=(n,i,s)=>n+(i-n)*s,gc=(n,i,s)=>{const r=n*n,u=s*(i*i-r)+r;return u<0?0:Math.sqrt(u)},jS=[zc,Ea,hi],DS=n=>jS.find(i=>i.test(n));function e0(n){const i=DS(n);if(!i)return!1;let s=i.parse(n);return i===hi&&(s=RS(s)),s}const n0=(n,i)=>{const s=e0(n),r=e0(i);if(!s||!r)return zr(n,i);const u={...s};return f=>(u.red=gc(s.red,r.red,f),u.green=gc(s.green,r.green,f),u.blue=gc(s.blue,r.blue,f),u.alpha=Bt(s.alpha,r.alpha,f),Ea.transform(u))},Vc=new Set(["none","hidden"]);function NS(n,i){return Vc.has(n)?s=>s<=0?n:i:s=>s>=1?i:n}function CS(n,i){return s=>Bt(n,i,s)}function wf(n){return typeof n=="number"?CS:typeof n=="string"?xf(n)?zr:Ft.test(n)?n0:VS:Array.isArray(n)?oy:typeof n=="object"?Ft.test(n)?n0:OS:zr}function oy(n,i){const s=[...n],r=s.length,u=n.map((f,d)=>wf(f)(f,i[d]));return f=>{for(let d=0;d<r;d++)s[d]=u[d](f);return s}}function OS(n,i){const s={...n,...i},r={};for(const u in s)n[u]!==void 0&&i[u]!==void 0&&(r[u]=wf(n[u])(n[u],i[u]));return u=>{for(const f in r)s[f]=r[f](u);return s}}function zS(n,i){const s=[],r={color:0,var:0,number:0};for(let u=0;u<i.values.length;u++){const f=i.types[u],d=n.indexes[f][r[f]],m=n.values[d]??0;s[u]=m,r[f]++}return s}const VS=(n,i)=>{const s=ta.createTransformer(i),r=Yl(n),u=Yl(i);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Vc.has(n)&&!u.values.length||Vc.has(i)&&!r.values.length?NS(n,i):Fl(oy(zS(r,u),u.values),s):zr(n,i)};function uy(n,i,s){return typeof n=="number"&&typeof i=="number"&&typeof s=="number"?Bt(n,i,s):wf(n)(n,i)}const _S=n=>{const i=({timestamp:s})=>n(s);return{start:(s=!0)=>Rt.update(i,s),stop:()=>$e(i),now:()=>ne.isProcessing?ne.timestamp:ve.now()}},cy=(n,i,s=10)=>{let r="";const u=Math.max(Math.round(i/s),2);for(let f=0;f<u;f++)r+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Vr=2e4;function Tf(n){let i=0;const s=50;let r=n.next(i);for(;!r.done&&i<Vr;)i+=s,r=n.next(i);return i>=Vr?1/0:i}function LS(n,i=100,s){const r=s({...n,keyframes:[0,i]}),u=Math.min(Tf(r),Vr);return{type:"keyframes",ease:f=>r.next(u*f).value/i,duration:ln(u)}}const US=5;function fy(n,i,s){const r=Math.max(i-US,0);return pf(s-n(r),i-r)}const Gt={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},yc=.001;function BS({duration:n=Gt.duration,bounce:i=Gt.bounce,velocity:s=Gt.velocity,mass:r=Gt.mass}){let u,f,d=1-i;d=on(Gt.minDamping,Gt.maxDamping,d),n=on(Gt.minDuration,Gt.maxDuration,ln(n)),d<1?(u=h=>{const y=h*d,b=y*n,S=y-s,E=_c(h,d),j=Math.exp(-b);return yc-S/E*j},f=h=>{const b=h*d*n,S=b*s+s,E=Math.pow(d,2)*Math.pow(h,2)*n,j=Math.exp(-b),U=_c(Math.pow(h,2),d);return(-u(h)+yc>0?-1:1)*((S-E)*j)/U}):(u=h=>{const y=Math.exp(-h*n),b=(h-s)*n+1;return-yc+y*b},f=h=>{const y=Math.exp(-h*n),b=(s-h)*(n*n);return y*b});const m=5/n,p=qS(u,f,m);if(n=an(n),isNaN(p))return{stiffness:Gt.stiffness,damping:Gt.damping,duration:n};{const h=Math.pow(p,2)*r;return{stiffness:h,damping:d*2*Math.sqrt(r*h),duration:n}}}const HS=12;function qS(n,i,s){let r=s;for(let u=1;u<HS;u++)r=r-n(r)/i(r);return r}function _c(n,i){return n*Math.sqrt(1-i*i)}const kS=["duration","bounce"],YS=["stiffness","damping","mass"];function a0(n,i){return i.some(s=>n[s]!==void 0)}function GS(n){let i={velocity:Gt.velocity,stiffness:Gt.stiffness,damping:Gt.damping,mass:Gt.mass,isResolvedFromDuration:!1,...n};if(!a0(n,YS)&&a0(n,kS))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,f=2*on(.05,1,1-(n.bounce||0))*Math.sqrt(u);i={...i,mass:Gt.mass,stiffness:u,damping:f}}else{const s=BS(n);i={...i,...s,mass:Gt.mass},i.isResolvedFromDuration=!0}return i}function _r(n=Gt.visualDuration,i=Gt.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],m={done:!1,value:f},{stiffness:p,damping:h,mass:y,duration:b,velocity:S,isResolvedFromDuration:E}=GS({...s,velocity:-ln(s.velocity||0)}),j=S||0,U=h/(2*Math.sqrt(p*y)),V=d-f,_=ln(Math.sqrt(p/y)),L=Math.abs(V)<5;r||(r=L?Gt.restSpeed.granular:Gt.restSpeed.default),u||(u=L?Gt.restDelta.granular:Gt.restDelta.default);let q;if(U<1){const G=_c(_,U);q=$=>{const nt=Math.exp(-U*_*$);return d-nt*((j+U*_*V)/G*Math.sin(G*$)+V*Math.cos(G*$))}}else if(U===1)q=G=>d-Math.exp(-_*G)*(V+(j+_*V)*G);else{const G=_*Math.sqrt(U*U-1);q=$=>{const nt=Math.exp(-U*_*$),P=Math.min(G*$,300);return d-nt*((j+U*_*V)*Math.sinh(P)+G*V*Math.cosh(P))/G}}const I={calculatedDuration:E&&b||null,next:G=>{const $=q(G);if(E)m.done=G>=b;else{let nt=G===0?j:0;U<1&&(nt=G===0?an(j):fy(q,G,$));const P=Math.abs(nt)<=r,st=Math.abs(d-$)<=u;m.done=P&&st}return m.value=m.done?d:$,m},toString:()=>{const G=Math.min(Tf(I),Vr),$=cy(nt=>I.next(G*nt).value,G,30);return G+"ms "+$},toTransition:()=>{}};return I}_r.applyToOptions=n=>{const i=LS(n,100,_r);return n.ease=i.ease,n.duration=an(i.duration),n.type="keyframes",n};function Lc({keyframes:n,velocity:i=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:m,max:p,restDelta:h=.5,restSpeed:y}){const b=n[0],S={done:!1,value:b},E=P=>m!==void 0&&P<m||p!==void 0&&P>p,j=P=>m===void 0?p:p===void 0||Math.abs(m-P)<Math.abs(p-P)?m:p;let U=s*i;const V=b+U,_=d===void 0?V:d(V);_!==V&&(U=_-b);const L=P=>-U*Math.exp(-P/r),q=P=>_+L(P),I=P=>{const st=L(P),yt=q(P);S.done=Math.abs(st)<=h,S.value=S.done?_:yt};let G,$;const nt=P=>{E(S.value)&&(G=P,$=_r({keyframes:[S.value,j(S.value)],velocity:fy(q,P,S.value),damping:u,stiffness:f,restDelta:h,restSpeed:y}))};return nt(0),{calculatedDuration:null,next:P=>{let st=!1;return!$&&G===void 0&&(st=!0,I(P),nt(P)),G!==void 0&&P>=G?$.next(P-G):(!st&&I(P),S)}}}function XS(n,i,s){const r=[],u=s||Rn.mix||uy,f=n.length-1;for(let d=0;d<f;d++){let m=u(n[d],n[d+1]);if(i){const p=Array.isArray(i)?i[d]||xe:i;m=Fl(p,m)}r.push(m)}return r}function Ef(n,i,{clamp:s=!0,ease:r,mixer:u}={}){const f=n.length;if(ql(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const m=XS(i,r,u),p=m.length,h=y=>{if(d&&y<n[0])return i[0];let b=0;if(p>1)for(;b<n.length-2&&!(y<n[b+1]);b++);const S=Si(n[b],n[b+1],y);return m[b](S)};return s?y=>h(on(n[0],n[f-1],y)):h}function PS(n,i){const s=n[n.length-1];for(let r=1;r<=i;r++){const u=Si(0,i,r);n.push(Bt(s,1,u))}}function dy(n){const i=[0];return PS(i,n.length-1),i}function KS(n,i){return n.map(s=>s*i)}function ZS(n,i){return n.map(()=>i||Ig).splice(0,n.length-1)}function Vl({duration:n=300,keyframes:i,times:s,ease:r="easeInOut"}){const u=sS(r)?r.map(Wp):Wp(r),f={done:!1,value:i[0]},d=KS(s&&s.length===i.length?s:dy(i),n),m=Ef(d,i,{ease:Array.isArray(u)?u:ZS(i,u)});return{calculatedDuration:n,next:p=>(f.value=m(p),f.done=p>=n,f)}}const QS=n=>n!==null;function Af(n,{repeat:i,repeatType:s="loop"},r,u=1){const f=n.filter(QS),m=u<0||i&&s!=="loop"&&i%2===1?0:f.length-1;return!m||r===void 0?f[m]:r}const FS={decay:Lc,inertia:Lc,tween:Vl,keyframes:Vl,spring:_r};function hy(n){typeof n.type=="string"&&(n.type=FS[n.type])}class Mf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const $S=n=>n/100;class Gr extends Mf{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==ve.now()&&this.tick(ve.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;hy(i);const{type:s=Vl,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=i;let{keyframes:m}=i;const p=s||Vl;p!==Vl&&typeof m[0]!="number"&&(this.mixKeyframes=Fl($S,uy(m[0],m[1])),m=[0,100]);const h=p({...i,keyframes:m});f==="mirror"&&(this.mirroredGenerator=p({...i,keyframes:[...m].reverse(),velocity:-d})),h.calculatedDuration===null&&(h.calculatedDuration=Tf(h));const{calculatedDuration:y}=h;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=h}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:r,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:m,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:y,repeat:b,repeatType:S,repeatDelay:E,type:j,onUpdate:U,finalKeyframe:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-u/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?_<0:_>u;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let q=this.currentTime,I=r;if(b){const P=Math.min(this.currentTime,u)/m;let st=Math.floor(P),yt=P%1;!yt&&P>=1&&(yt=1),yt===1&&st--,st=Math.min(st,b+1),!!(st%2)&&(S==="reverse"?(yt=1-yt,E&&(yt-=E/m)):S==="mirror"&&(I=d)),q=on(0,1,yt)*m}const G=L?{done:!1,value:y[0]}:I.next(q);f&&(G.value=f(G.value));let{done:$}=G;!L&&p!==null&&($=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const nt=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return nt&&j!==Lc&&(G.value=Af(y,this.options,V,this.speed)),U&&U(G.value),nt&&this.finish(),G}then(i,s){return this.finished.then(i,s)}get duration(){return ln(this.calculatedDuration)}get time(){return ln(this.currentTime)}set time(i){i=an(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(ve.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=ln(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=_S,startTime:s}=this.options;this.driver||(this.driver=i(u=>this.tick(u))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s??r),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(ve.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(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function JS(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const Aa=n=>n*180/Math.PI,Uc=n=>{const i=Aa(Math.atan2(n[1],n[0]));return Bc(i)},WS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Uc,rotateZ:Uc,skewX:n=>Aa(Math.atan(n[1])),skewY:n=>Aa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Bc=n=>(n=n%360,n<0&&(n+=360),n),i0=Uc,l0=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),s0=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),IS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:l0,scaleY:s0,scale:n=>(l0(n)+s0(n))/2,rotateX:n=>Bc(Aa(Math.atan2(n[6],n[5]))),rotateY:n=>Bc(Aa(Math.atan2(-n[2],n[0]))),rotateZ:i0,rotate:i0,skewX:n=>Aa(Math.atan(n[4])),skewY:n=>Aa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Hc(n){return n.includes("scale")?1:0}function qc(n,i){if(!n||n==="none")return Hc(i);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=IS,u=s;else{const m=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=WS,u=m}if(!u)return Hc(i);const f=r[i],d=u[1].split(",").map(ew);return typeof f=="function"?f(d):d[f]}const tw=(n,i)=>{const{transform:s="none"}=getComputedStyle(n);return qc(s,i)};function ew(n){return parseFloat(n.trim())}const ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Di=new Set(ji),r0=n=>n===Ri||n===ct,nw=new Set(["x","y","z"]),aw=ji.filter(n=>!nw.has(n));function iw(n){const i=[];return aw.forEach(s=>{const r=n.getValue(s);r!==void 0&&(i.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),i}const Ma={width:({x:n},{paddingLeft:i="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),height:({y:n},{paddingTop:i="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>qc(i,"x"),y:(n,{transform:i})=>qc(i,"y")};Ma.translateX=Ma.x;Ma.translateY=Ma.y;const Ra=new Set;let kc=!1,Yc=!1,Gc=!1;function my(){if(Yc){const n=Array.from(Ra).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),s=new Map;i.forEach(r=>{const u=iw(r);u.length&&(s.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const u=s.get(r);u&&u.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yc=!1,kc=!1,Ra.forEach(n=>n.complete(Gc)),Ra.clear()}function py(){Ra.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Yc=!0)})}function lw(){Gc=!0,py(),my(),Gc=!1}class Rf{constructor(i,s,r,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=r,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ra.add(this),kc||(kc=!0,Rt.read(py),Rt.resolveKeyframes(my))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:r,motionValue:u}=this;if(i[0]===null){const f=u?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&s){const m=r.readValue(s,d);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=d),u&&f===void 0&&u.set(i[0])}JS(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ra.delete(this)}cancel(){this.state==="scheduled"&&(Ra.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sw=n=>n.startsWith("--");function rw(n,i,s){sw(i)?n.style.setProperty(i,s):n.style[i]=s}const gy=hf(()=>window.ScrollTimeline!==void 0),ow={};function uw(n,i){const s=hf(n);return()=>ow[i]??s()}const yy=uw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ol=([n,i,s,r])=>`cubic-bezier(${n}, ${i}, ${s}, ${r})`,o0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ol([0,.65,.55,1]),circOut:Ol([.55,0,1,.45]),backIn:Ol([.31,.01,.66,-.59]),backOut:Ol([.33,1.53,.69,.99])};function vy(n,i){if(n)return typeof n=="function"?yy()?cy(n,i):"ease-out":ty(n)?Ol(n):Array.isArray(n)?n.map(s=>vy(s,i)||o0.easeOut):o0[n]}function cw(n,i,s,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:m="easeOut",times:p}={},h=void 0){const y={[i]:s};p&&(y.offset=p);const b=vy(m,u);Array.isArray(b)&&(y.easing=b);const S={delay:r,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return h&&(S.pseudoElement=h),n.animate(y,S)}function xy(n){return typeof n=="function"&&"applyToOptions"in n}function fw({type:n,...i}){return xy(n)&&yy()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class dw extends Mf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:r,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:m,onComplete:p}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,ql(typeof i.type!="string");const h=fw(i);this.animation=cw(s,r,u,h,f),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=Af(u,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(y):rw(s,r,y),this.animation.cancel()}p?.(),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:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return ln(Number(i))}get time(){return ln(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=an(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&gy()?(this.animation.timeline=i,xe):s(this)}}const by={anticipate:$g,backInOut:Fg,circInOut:Wg};function hw(n){return n in by}function mw(n){typeof n.ease=="string"&&hw(n.ease)&&(n.ease=by[n.ease])}const u0=10;class pw extends dw{constructor(i){mw(i),hy(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:r,onComplete:u,element:f,...d}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new Gr({...d,autoplay:!1}),p=an(this.finishedTime??this.time);s.setWithVelocity(m.sample(p-u0).value,m.sample(p).value,u0),m.stop()}}const c0=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(ta.test(n)||n==="0")&&!n.startsWith("url("));function gw(n){const i=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==i)return!0}function yw(n,i,s,r){const u=n[0];if(u===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],d=c0(u,i),m=c0(f,i);return!d||!m?!1:gw(n)||(s==="spring"||xy(s))&&r}function Xc(n){n.duration=0,n.type}const vw=new Set(["opacity","clipPath","filter","transform"]),xw=hf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function bw(n){const{motionValue:i,name:s,repeatDelay:r,repeatType:u,damping:f,type:d}=n;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:h}=i.owner.getProps();return xw()&&s&&vw.has(s)&&(s!=="transform"||!h)&&!p&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const Sw=40;class ww extends Mf{constructor({autoplay:i=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:m,name:p,motionValue:h,element:y,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ve.now();const S={autoplay:i,delay:s,type:r,repeat:u,repeatDelay:f,repeatType:d,name:p,motionValue:h,element:y,...b},E=y?.KeyframeResolver||Rf;this.keyframeResolver=new E(m,(j,U,V)=>this.onKeyframesResolved(j,U,S,!V),p,h,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,s,r,u){this.keyframeResolver=void 0;const{name:f,type:d,velocity:m,delay:p,isHandoff:h,onUpdate:y}=r;this.resolvedAt=ve.now(),yw(i,f,d,m)||((Rn.instantAnimations||!p)&&y?.(Af(i,r,s)),i[0]=i[i.length-1],Xc(r),r.repeat=0);const S={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>Sw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:i},E=!h&&bw(S)?new pw({...S,element:S.motionValue.owner.current}):new Gr(S);E.finished.then(()=>this.notifyFinished()).catch(xe),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),lw()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Tw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ew(n){const i=Tw.exec(n);if(!i)return[,];const[,s,r,u]=i;return[`--${s??r}`,u]}function Sy(n,i,s=1){const[r,u]=Ew(n);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const d=f.trim();return Yg(d)?parseFloat(d):d}return xf(u)?Sy(u,i,s+1):u}function jf(n,i){return n?.[i]??n?.default??n}const wy=new Set(["width","height","top","left","right","bottom",...ji]),Aw={test:n=>n==="auto",parse:n=>n},Ty=n=>i=>i.test(n),Ey=[Ri,ct,sn,In,xS,vS,Aw],f0=n=>Ey.find(Ty(n));function Mw(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Xg(n):!0}const Rw=new Set(["brightness","contrast","saturate","opacity"]);function jw(n){const[i,s]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=s.match(bf)||[];if(!r)return n;const u=s.replace(r,"");let f=Rw.has(i)?1:0;return r!==s&&(f*=100),i+"("+f+u+")"}const Dw=/\b([a-z-]*)\(.*?\)/gu,Pc={...ta,getAnimatableNone:n=>{const i=n.match(Dw);return i?i.map(jw).join(" "):n}},d0={...Ri,transform:Math.round},Nw={rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:gr,scaleX:gr,scaleY:gr,scaleZ:gr,skew:In,skewX:In,skewY:In,distance:ct,translateX:ct,translateY:ct,translateZ:ct,x:ct,y:ct,z:ct,perspective:ct,transformPerspective:ct,opacity:kl,originX:Ip,originY:Ip,originZ:ct},Df={borderWidth:ct,borderTopWidth:ct,borderRightWidth:ct,borderBottomWidth:ct,borderLeftWidth:ct,borderRadius:ct,radius:ct,borderTopLeftRadius:ct,borderTopRightRadius:ct,borderBottomRightRadius:ct,borderBottomLeftRadius:ct,width:ct,maxWidth:ct,height:ct,maxHeight:ct,top:ct,right:ct,bottom:ct,left:ct,padding:ct,paddingTop:ct,paddingRight:ct,paddingBottom:ct,paddingLeft:ct,margin:ct,marginTop:ct,marginRight:ct,marginBottom:ct,marginLeft:ct,backgroundPositionX:ct,backgroundPositionY:ct,...Nw,zIndex:d0,fillOpacity:kl,strokeOpacity:kl,numOctaves:d0},Cw={...Df,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Pc,WebkitFilter:Pc},Ay=n=>Cw[n];function My(n,i){let s=Ay(n);return s!==Pc&&(s=ta),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const Ow=new Set(["auto","none","0"]);function zw(n,i,s){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!Ow.has(f)&&Yl(f).values.length&&(u=n[r]),r++}if(u&&s)for(const f of i)n[f]=My(s,u)}class Vw extends Rf{constructor(i,s,r,u,f){super(i,s,r,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let p=0;p<i.length;p++){let h=i[p];if(typeof h=="string"&&(h=h.trim(),xf(h))){const y=Sy(h,s.current);y!==void 0&&(i[p]=y),p===i.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!wy.has(r)||i.length!==2)return;const[u,f]=i,d=f0(u),m=f0(f);if(d!==m)if(r0(d)&&r0(m))for(let p=0;p<i.length;p++){const h=i[p];typeof h=="string"&&(i[p]=parseFloat(h))}else Ma[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,r=[];for(let u=0;u<i.length;u++)(i[u]===null||Mw(i[u]))&&r.push(u);r.length&&zw(i,r,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ma[r](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&i.getValue(r,u).jump(u,!1)}measureEndState(){const{element:i,name:s,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const u=i.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=Ma[s](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,p])=>{i.getValue(m).set(p)}),this.resolveNoneKeyframes()}}function Ry(n,i,s){if(n instanceof EventTarget)return[n];if(typeof n=="string"){const u=document.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n)}const jy=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function Nf(n){return Gg(n)&&"offsetHeight"in n}const h0=30,_w=n=>!isNaN(parseFloat(n)),_l={current:void 0};class Lw{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const u=ve.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=ve.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=_w(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new mf);const r=this.events[i].add(s);return i==="change"?()=>{r(),Rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,r){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return _l.current&&_l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const i=ve.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>h0)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,h0);return pf(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),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 Fe(n,i){return new Lw(n,i)}const{schedule:Cf}=ey(queueMicrotask,!1),Qe={x:!1,y:!1};function Dy(){return Qe.x||Qe.y}function Uw(n){return n==="x"||n==="y"?Qe[n]?null:(Qe[n]=!0,()=>{Qe[n]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function Ny(n,i){const s=Ry(n),r=new AbortController,u={passive:!0,...i,signal:r.signal};return[s,u,()=>r.abort()]}function m0(n){return!(n.pointerType==="touch"||Dy())}function Bw(n,i,s={}){const[r,u,f]=Ny(n,s),d=m=>{if(!m0(m))return;const{target:p}=m,h=i(p,m);if(typeof h!="function"||!p)return;const y=b=>{m0(b)&&(h(b),p.removeEventListener("pointerleave",y))};p.addEventListener("pointerleave",y,u)};return r.forEach(m=>{m.addEventListener("pointerenter",d,u)}),f}const Cy=(n,i)=>i?n===i?!0:Cy(n,i.parentElement):!1,Of=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Hw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qw(n){return Hw.has(n.tagName)||n.tabIndex!==-1}const Er=new WeakSet;function p0(n){return i=>{i.key==="Enter"&&n(i)}}function vc(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const kw=(n,i)=>{const s=n.currentTarget;if(!s)return;const r=p0(()=>{if(Er.has(s))return;vc(s,"down");const u=p0(()=>{vc(s,"up")}),f=()=>vc(s,"cancel");s.addEventListener("keyup",u,i),s.addEventListener("blur",f,i)});s.addEventListener("keydown",r,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),i)};function g0(n){return Of(n)&&!Dy()}function Yw(n,i,s={}){const[r,u,f]=Ny(n,s),d=m=>{const p=m.currentTarget;if(!g0(m))return;Er.add(p);const h=i(p,m),y=(E,j)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),Er.has(p)&&Er.delete(p),g0(E)&&typeof h=="function"&&h(E,{success:j})},b=E=>{y(E,p===window||p===document||s.useGlobalTarget||Cy(p,E.target))},S=E=>{y(E,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",S,u)};return r.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",d,u),Nf(m)&&(m.addEventListener("focus",h=>kw(h,u)),!qw(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),f}function zf(n){return Gg(n)&&"ownerSVGElement"in n}const Ar=new WeakMap;let Mr;const Oy=(n,i,s)=>(r,u)=>u&&u[0]?u[0][n+"Size"]:zf(r)&&"getBBox"in r?r.getBBox()[i]:r[s],Gw=Oy("inline","width","offsetWidth"),Xw=Oy("block","height","offsetHeight");function Pw({target:n,borderBoxSize:i}){Ar.get(n)?.forEach(s=>{s(n,{get width(){return Gw(n,i)},get height(){return Xw(n,i)}})})}function Kw(n){n.forEach(Pw)}function Zw(){typeof ResizeObserver>"u"||(Mr=new ResizeObserver(Kw))}function Qw(n,i){Mr||Zw();const s=Ry(n);return s.forEach(r=>{let u=Ar.get(r);u||(u=new Set,Ar.set(r,u)),u.add(i),Mr?.observe(r)}),()=>{s.forEach(r=>{const u=Ar.get(r);u?.delete(i),u?.size||Mr?.unobserve(r)})}}const Rr=new Set;let mi;function Fw(){mi=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Rr.forEach(i=>i(n))},window.addEventListener("resize",mi)}function $w(n){return Rr.add(n),mi||Fw(),()=>{Rr.delete(n),!Rr.size&&typeof mi=="function"&&(window.removeEventListener("resize",mi),mi=void 0)}}function Jw(n,i){return typeof n=="function"?$w(n):Qw(n,i)}function zy(n,i){let s;const r=()=>{const{currentTime:u}=i,d=(u===null?0:u.value)/100;s!==d&&n(d),s=d};return Rt.preUpdate(r,!0),()=>$e(r)}function Ww(n){return zf(n)&&n.tagName==="svg"}function Iw(...n){const i=!Array.isArray(n[0]),s=i?0:-1,r=n[0+s],u=n[1+s],f=n[2+s],d=n[3+s],m=Ef(u,f,d);return i?m(r):m}const ae=n=>!!(n&&n.getVelocity);function tT(n,i,s){const r=n.get();let u=null,f=r,d;const m=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,p=()=>{u&&(u.stop(),u=null)},h=()=>{p(),u=new Gr({keyframes:[v0(n.get()),v0(f)],velocity:n.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...s,onUpdate:d})};if(n.attach((y,b)=>(f=y,d=S=>b(y0(S,m)),Rt.postRender(h),n.get()),p),ae(i)){const y=i.on("change",S=>n.set(y0(S,m))),b=n.on("destroy",y);return()=>{y(),b()}}return p}function y0(n,i){return i?n+i:n}function v0(n){return typeof n=="number"?n:parseFloat(n)}const eT=[...Ey,Ft,ta],nT=n=>eT.find(Ty(n)),Wl=A.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class aT extends A.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const r=s.offsetParent,u=Nf(r)&&r.offsetWidth||0,f=this.props.sizeRef.current;f.height=s.offsetHeight||0,f.width=s.offsetWidth||0,f.top=s.offsetTop,f.left=s.offsetLeft,f.right=u-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function iT({children:n,isPresent:i,anchorX:s,root:r}){const u=A.useId(),f=A.useRef(null),d=A.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=A.useContext(Wl);return A.useInsertionEffect(()=>{const{width:p,height:h,top:y,left:b,right:S}=d.current;if(i||!f.current||!p||!h)return;const E=s==="left"?`left: ${b}`:`right: ${S}`;f.current.dataset.motionPopId=u;const j=document.createElement("style");m&&(j.nonce=m);const U=r??document.head;return U.appendChild(j),j.sheet&&j.sheet.insertRule(`
          [data-motion-pop-id="${u}"] {
            position: absolute !important;
            width: ${p}px !important;
            height: ${h}px !important;
            ${E}px !important;
            top: ${y}px !important;
          }
        `),()=>{U.contains(j)&&U.removeChild(j)}},[i]),v.jsx(aT,{isPresent:i,childRef:f,sizeRef:d,children:A.cloneElement(n,{ref:f})})}const lT=({children:n,initial:i,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:d,anchorX:m,root:p})=>{const h=Mi(sT),y=A.useId();let b=!0,S=A.useMemo(()=>(b=!1,{id:y,initial:i,isPresent:s,custom:u,onExitComplete:E=>{h.set(E,!0);for(const j of h.values())if(!j)return;r&&r()},register:E=>(h.set(E,!1),()=>h.delete(E))}),[s,h,r]);return f&&b&&(S={...S}),A.useMemo(()=>{h.forEach((E,j)=>h.set(j,!1))},[s]),A.useEffect(()=>{!s&&!h.size&&r&&r()},[s]),d==="popLayout"&&(n=v.jsx(iT,{isPresent:s,anchorX:m,root:p,children:n})),v.jsx(Yr.Provider,{value:S,children:n})};function sT(){return new Map}function Vy(n=!0){const i=A.useContext(Yr);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:u}=i,f=A.useId();A.useEffect(()=>{if(n)return u(f)},[n]);const d=A.useCallback(()=>n&&r&&r(f),[f,r,n]);return!s&&r?[!1,d]:[!0]}const yr=n=>n.key||"";function x0(n){const i=[];return A.Children.forEach(n,s=>{A.isValidElement(s)&&i.push(s)}),i}const rT=({children:n,custom:i,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:m="left",root:p})=>{const[h,y]=Vy(d),b=A.useMemo(()=>x0(n),[n]),S=d&&!h?[]:b.map(yr),E=A.useRef(!0),j=A.useRef(b),U=Mi(()=>new Map),[V,_]=A.useState(b),[L,q]=A.useState(b);kr(()=>{E.current=!1,j.current=b;for(let $=0;$<L.length;$++){const nt=yr(L[$]);S.includes(nt)?U.delete(nt):U.get(nt)!==!0&&U.set(nt,!1)}},[L,S.length,S.join("-")]);const I=[];if(b!==V){let $=[...b];for(let nt=0;nt<L.length;nt++){const P=L[nt],st=yr(P);S.includes(st)||($.splice(nt,0,P),I.push(P))}return f==="wait"&&I.length&&($=I),q(x0($)),_(b),null}const{forceRender:G}=A.useContext(uf);return v.jsx(v.Fragment,{children:L.map($=>{const nt=yr($),P=d&&!h?!1:b===L||S.includes(nt),st=()=>{if(U.has(nt))U.set(nt,!0);else return;let yt=!0;U.forEach(J=>{J||(yt=!1)}),yt&&(G?.(),q(j.current),d&&y?.(),r&&r())};return v.jsx(lT,{isPresent:P,initial:!E.current||s?void 0:!1,custom:i,presenceAffectsLayout:u,mode:f,root:p,onExitComplete:P?void 0:st,anchorX:m,children:$},nt)})})},_y=A.createContext({strict:!1}),b0={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"]},wi={};for(const n in b0)wi[n]={isEnabled:i=>b0[n].some(s=>!!i[s])};function oT(n){for(const i in n)wi[i]={...wi[i],...n[i]}}const uT=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 Lr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||uT.has(n)}let Ly=n=>!Lr(n);function cT(n){typeof n=="function"&&(Ly=i=>i.startsWith("on")?!Lr(i):n(i))}try{cT(require("@emotion/is-prop-valid").default)}catch{}function fT(n,i,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(Ly(u)||s===!0&&Lr(u)||!i&&!Lr(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const Xr=A.createContext({});function Pr(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Gl(n){return typeof n=="string"||Array.isArray(n)}const Vf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_f=["initial",...Vf];function Kr(n){return Pr(n.animate)||_f.some(i=>Gl(n[i]))}function Uy(n){return!!(Kr(n)||n.variants)}function dT(n,i){if(Kr(n)){const{initial:s,animate:r}=n;return{initial:s===!1||Gl(s)?s:void 0,animate:Gl(r)?r:void 0}}return n.inherit!==!1?i:{}}function hT(n){const{initial:i,animate:s}=dT(n,A.useContext(Xr));return A.useMemo(()=>({initial:i,animate:s}),[S0(i),S0(s)])}function S0(n){return Array.isArray(n)?n.join(" "):n}const Xl={};function mT(n){for(const i in n)Xl[i]=n[i],vf(i)&&(Xl[i].isCSSVariable=!0)}function By(n,{layout:i,layoutId:s}){return Di.has(n)||n.startsWith("origin")||(i||s!==void 0)&&(!!Xl[n]||n==="opacity")}const pT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gT=ji.length;function yT(n,i,s){let r="",u=!0;for(let f=0;f<gT;f++){const d=ji[f],m=n[d];if(m===void 0)continue;let p=!0;if(typeof m=="number"?p=m===(d.startsWith("scale")?1:0):p=parseFloat(m)===0,!p||s){const h=jy(m,Df[d]);if(!p){u=!1;const y=pT[d]||d;r+=`${y}(${h}) `}s&&(i[d]=h)}}return r=r.trim(),s?r=s(i,u?"":r):u&&(r="none"),r}function Lf(n,i,s){const{style:r,vars:u,transformOrigin:f}=n;let d=!1,m=!1;for(const p in i){const h=i[p];if(Di.has(p)){d=!0;continue}else if(vf(p)){u[p]=h;continue}else{const y=jy(h,Df[p]);p.startsWith("origin")?(m=!0,f[p]=y):r[p]=y}}if(i.transform||(d||s?r.transform=yT(i,n.transform,s):r.transform&&(r.transform="none")),m){const{originX:p="50%",originY:h="50%",originZ:y=0}=f;r.transformOrigin=`${p} ${h} ${y}`}}const Uf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hy(n,i,s){for(const r in i)!ae(i[r])&&!By(r,s)&&(n[r]=i[r])}function vT({transformTemplate:n},i){return A.useMemo(()=>{const s=Uf();return Lf(s,i,n),Object.assign({},s.vars,s.style)},[i])}function xT(n,i){const s=n.style||{},r={};return Hy(r,s,n),Object.assign(r,vT(n,i)),r}function bT(n,i){const s={},r=xT(n,i);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const ST={offset:"stroke-dashoffset",array:"stroke-dasharray"},wT={offset:"strokeDashoffset",array:"strokeDasharray"};function TT(n,i,s=1,r=0,u=!0){n.pathLength=1;const f=u?ST:wT;n[f.offset]=ct.transform(-r);const d=ct.transform(i),m=ct.transform(s);n[f.array]=`${d} ${m}`}function qy(n,{attrX:i,attrY:s,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...m},p,h,y){if(Lf(n,m,h),p){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:S}=n;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=y?.transformBox??"fill-box",delete b.transformBox),i!==void 0&&(b.x=i),s!==void 0&&(b.y=s),r!==void 0&&(b.scale=r),u!==void 0&&TT(b,u,f,d,!1)}const ky=()=>({...Uf(),attrs:{}}),Yy=n=>typeof n=="string"&&n.toLowerCase()==="svg";function ET(n,i,s,r){const u=A.useMemo(()=>{const f=ky();return qy(f,i,Yy(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};Hy(f,n.style,n),u.style={...f,...u.style}}return u}const AT=["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 Bf(n){return typeof n!="string"||n.includes("-")?!1:!!(AT.indexOf(n)>-1||/[A-Z]/u.test(n))}function MT(n,i,s,{latestValues:r},u,f=!1){const m=(Bf(n)?ET:bT)(i,r,u,n),p=fT(i,typeof n=="string",f),h=n!==A.Fragment?{...p,...m,ref:s}:{},{children:y}=i,b=A.useMemo(()=>ae(y)?y.get():y,[y]);return A.createElement(n,{...h,children:b})}function w0(n){const i=[{},{}];return n?.values.forEach((s,r)=>{i[0][r]=s.get(),i[1][r]=s.getVelocity()}),i}function Hf(n,i,s,r){if(typeof i=="function"){const[u,f]=w0(r);i=i(s!==void 0?s:n.custom,u,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[u,f]=w0(r);i=i(s!==void 0?s:n.custom,u,f)}return i}function jr(n){return ae(n)?n.get():n}function RT({scrapeMotionValuesFromProps:n,createRenderState:i},s,r,u){return{latestValues:jT(s,r,u,n),renderState:i()}}function jT(n,i,s,r){const u={},f=r(n,{});for(const S in f)u[S]=jr(f[S]);let{initial:d,animate:m}=n;const p=Kr(n),h=Uy(n);i&&h&&!p&&n.inherit!==!1&&(d===void 0&&(d=i.initial),m===void 0&&(m=i.animate));let y=s?s.initial===!1:!1;y=y||d===!1;const b=y?m:d;if(b&&typeof b!="boolean"&&!Pr(b)){const S=Array.isArray(b)?b:[b];for(let E=0;E<S.length;E++){const j=Hf(n,S[E]);if(j){const{transitionEnd:U,transition:V,..._}=j;for(const L in _){let q=_[L];if(Array.isArray(q)){const I=y?q.length-1:0;q=q[I]}q!==null&&(u[L]=q)}for(const L in U)u[L]=U[L]}}}return u}const Gy=n=>(i,s)=>{const r=A.useContext(Xr),u=A.useContext(Yr),f=()=>RT(n,i,r,u);return s?f():Mi(f)};function qf(n,i,s){const{style:r}=n,u={};for(const f in r)(ae(r[f])||i.style&&ae(i.style[f])||By(f,n)||s?.getValue(f)?.liveStyle!==void 0)&&(u[f]=r[f]);return u}const DT=Gy({scrapeMotionValuesFromProps:qf,createRenderState:Uf});function Xy(n,i,s){const r=qf(n,i,s);for(const u in n)if(ae(n[u])||ae(i[u])){const f=ji.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}const NT=Gy({scrapeMotionValuesFromProps:Xy,createRenderState:ky}),CT=Symbol.for("motionComponentSymbol");function pi(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function OT(n,i,s){return A.useCallback(r=>{r&&n.onMount&&n.onMount(r),i&&(r?i.mount(r):i.unmount()),s&&(typeof s=="function"?s(r):pi(s)&&(s.current=r))},[i])}const kf=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zT="framerAppearId",Py="data-"+kf(zT),Ky=A.createContext({});function VT(n,i,s,r,u){const{visualElement:f}=A.useContext(Xr),d=A.useContext(_y),m=A.useContext(Yr),p=A.useContext(Wl).reducedMotion,h=A.useRef(null);r=r||d.renderer,!h.current&&r&&(h.current=r(n,{visualState:i,parent:f,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p}));const y=h.current,b=A.useContext(Ky);y&&!y.projection&&u&&(y.type==="html"||y.type==="svg")&&_T(h.current,s,u,b);const S=A.useRef(!1);A.useInsertionEffect(()=>{y&&S.current&&y.update(s,m)});const E=s[Py],j=A.useRef(!!E&&!window.MotionHandoffIsComplete?.(E)&&window.MotionHasOptimisedAnimation?.(E));return kr(()=>{y&&(S.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),j.current&&y.animationState&&y.animationState.animateChanges())}),A.useEffect(()=>{y&&(!j.current&&y.animationState&&y.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(E)}),j.current=!1),y.enteringChildren=void 0)}),y}function _T(n,i,s,r){const{layoutId:u,layout:f,drag:d,dragConstraints:m,layoutScroll:p,layoutRoot:h,layoutCrossfade:y}=i;n.projection=new s(n.latestValues,i["data-framer-portal-id"]?void 0:Zy(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||m&&pi(m),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:p,layoutRoot:h})}function Zy(n){if(n)return n.options.allowProjection!==!1?n.projection:Zy(n.parent)}function xc(n,{forwardMotionProps:i=!1}={},s,r){s&&oT(s);const u=Bf(n)?NT:DT;function f(m,p){let h;const y={...A.useContext(Wl),...m,layoutId:LT(m)},{isStatic:b}=y,S=hT(m),E=u(m,b);if(!b&&cf){UT();const j=BT(y);h=j.MeasureLayout,S.visualElement=VT(n,E,y,r,j.ProjectionNode)}return v.jsxs(Xr.Provider,{value:S,children:[h&&S.visualElement?v.jsx(h,{visualElement:S.visualElement,...y}):null,MT(n,m,OT(E,S.visualElement,p),E,b,i)]})}f.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const d=A.forwardRef(f);return d[CT]=n,d}function LT({layoutId:n}){const i=A.useContext(uf).id;return i&&n!==void 0?i+"-"+n:n}function UT(n,i){A.useContext(_y).strict}function BT(n){const{drag:i,layout:s}=wi;if(!i&&!s)return{};const r={...i,...s};return{MeasureLayout:i?.isEnabled(n)||s?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function HT(n,i){if(typeof Proxy>"u")return xc;const s=new Map,r=(f,d)=>xc(f,d,n,i),u=(f,d)=>r(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?r:(s.has(d)||s.set(d,xc(d,void 0,n,i)),s.get(d))})}function Qy({top:n,left:i,right:s,bottom:r}){return{x:{min:i,max:s},y:{min:n,max:r}}}function qT({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function kT(n,i){if(!i)return n;const s=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function bc(n){return n===void 0||n===1}function Kc({scale:n,scaleX:i,scaleY:s}){return!bc(n)||!bc(i)||!bc(s)}function Ta(n){return Kc(n)||Fy(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Fy(n){return T0(n.x)||T0(n.y)}function T0(n){return n&&n!=="0%"}function Ur(n,i,s){const r=n-s,u=i*r;return s+u}function E0(n,i,s,r,u){return u!==void 0&&(n=Ur(n,u,r)),Ur(n,s,r)+i}function Zc(n,i=0,s=1,r,u){n.min=E0(n.min,i,s,r,u),n.max=E0(n.max,i,s,r,u)}function $y(n,{x:i,y:s}){Zc(n.x,i.translate,i.scale,i.originPoint),Zc(n.y,s.translate,s.scale,s.originPoint)}const A0=.999999999999,M0=1.0000000000001;function YT(n,i,s,r=!1){const u=s.length;if(!u)return;i.x=i.y=1;let f,d;for(let m=0;m<u;m++){f=s[m],d=f.projectionDelta;const{visualElement:p}=f.options;p&&p.props.style&&p.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&yi(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,$y(n,d)),r&&Ta(f.latestValues)&&yi(n,f.latestValues))}i.x<M0&&i.x>A0&&(i.x=1),i.y<M0&&i.y>A0&&(i.y=1)}function gi(n,i){n.min=n.min+i,n.max=n.max+i}function R0(n,i,s,r,u=.5){const f=Bt(n.min,n.max,u);Zc(n,i,s,f,r)}function yi(n,i){R0(n.x,i.x,i.scaleX,i.scale,i.originX),R0(n.y,i.y,i.scaleY,i.scale,i.originY)}function Jy(n,i){return Qy(kT(n.getBoundingClientRect(),i))}function GT(n,i,s){const r=Jy(n,s),{scroll:u}=i;return u&&(gi(r.x,u.offset.x),gi(r.y,u.offset.y)),r}const j0=()=>({translate:0,scale:1,origin:0,originPoint:0}),vi=()=>({x:j0(),y:j0()}),D0=()=>({min:0,max:0}),Kt=()=>({x:D0(),y:D0()}),Qc={current:null},Wy={current:!1};function XT(){if(Wy.current=!0,!!cf)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>Qc.current=n.matches;n.addEventListener("change",i),i()}else Qc.current=!1}const PT=new WeakMap;function KT(n,i,s){for(const r in i){const u=i[r],f=s[r];if(ae(u))n.addValue(r,u);else if(ae(f))n.addValue(r,Fe(u,{owner:n}));else if(f!==u)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(r);n.addValue(r,Fe(d!==void 0?d:u,{owner:n}))}}for(const r in s)i[r]===void 0&&n.removeValue(r);return i}const N0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ZT{scrapeMotionValuesFromProps(i,s,r){return{}}constructor({parent:i,props:s,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:f,visualState:d},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Rf,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 S=ve.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Rt.render(this.render,!1,!0))};const{latestValues:p,renderState:h}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=h,this.parent=i,this.props=s,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=u,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=Kr(s),this.isVariantNode=Uy(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:y,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const S in b){const E=b[S];p[S]!==void 0&&ae(E)&&E.set(p[S])}}mount(i){this.current=i,PT.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),Wy.current||XT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qc.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$e(this.notifyUpdate),$e(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const r=Di.has(i);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{u(),f&&f(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in wi){const s=wi[i];if(!s)continue;const{isEnabled:r,Feature:u}=s;if(!this.features[i]&&u&&r(this.props)&&(this.features[i]=new u(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Kt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let r=0;r<N0.length;r++){const u=N0[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=i[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=KT(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const r=this.values.get(i);s!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&s!==void 0&&(r=Fe(s===null?void 0:s,{owner:this}),this.addValue(i,r)),r}readValue(i,s){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(Yg(r)||Xg(r))?r=parseFloat(r):!nT(r)&&ta.test(s)&&(r=My(i,s)),this.setBaseTarget(i,ae(r)?r.get():r)),ae(r)?r.get():r}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=Hf(this.props,s,this.presenceContext?.custom);f&&(r=f[i])}if(s&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,i);return u!==void 0&&!ae(u)?u:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new mf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){Cf.render(this.render)}}class Iy extends ZT{constructor(){super(...arguments),this.KeyframeResolver=Vw}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:r}){delete s[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;ae(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function tv(n,{style:i,vars:s},r,u){const f=n.style;let d;for(d in i)f[d]=i[d];u?.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function QT(n){return window.getComputedStyle(n)}class FT extends Iy{constructor(){super(...arguments),this.type="html",this.renderInstance=tv}readValueFromInstance(i,s){if(Di.has(s))return this.projection?.isProjecting?Hc(s):tw(i,s);{const r=QT(i),u=(vf(s)?r.getPropertyValue(s):r[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Jy(i,s)}build(i,s,r){Lf(i,s,r.transformTemplate)}scrapeMotionValuesFromProps(i,s,r){return qf(i,s,r)}}const ev=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 $T(n,i,s,r){tv(n,i,void 0,r);for(const u in i.attrs)n.setAttribute(ev.has(u)?u:kf(u),i.attrs[u])}class JT extends Iy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Kt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Di.has(s)){const r=Ay(s);return r&&r.default||0}return s=ev.has(s)?s:kf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,r){return Xy(i,s,r)}build(i,s,r){qy(i,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,s,r,u){$T(i,s,r,u)}mount(i){this.isSVGTag=Yy(i.tagName),super.mount(i)}}const WT=(n,i)=>Bf(n)?new JT(i):new FT(i,{allowProjection:n!==A.Fragment});function xi(n,i,s){const r=n.getProps();return Hf(r,i,s!==void 0?s:r.custom,n)}const Fc=n=>Array.isArray(n);function IT(n,i,s){n.hasValue(i)?n.getValue(i).set(s):n.addValue(i,Fe(s))}function tE(n){return Fc(n)?n[n.length-1]||0:n}function eE(n,i){const s=xi(n,i);let{transitionEnd:r={},transition:u={},...f}=s||{};f={...f,...r};for(const d in f){const m=tE(f[d]);IT(n,d,m)}}function nE(n){return!!(ae(n)&&n.add)}function $c(n,i){const s=n.getValue("willChange");if(nE(s))return s.add(i);if(!s&&Rn.WillChange){const r=new Rn.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function nv(n){return n.props[Py]}const aE=n=>n!==null;function iE(n,{repeat:i,repeatType:s="loop"},r){const u=n.filter(aE),f=i&&s!=="loop"&&i%2===1?0:u.length-1;return u[f]}const lE={type:"spring",stiffness:500,damping:25,restSpeed:10},sE=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),rE={type:"keyframes",duration:.8},oE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uE=(n,{keyframes:i})=>i.length>2?rE:Di.has(n)?n.startsWith("scale")?sE(i[1]):lE:oE;function cE({when:n,delay:i,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:m,from:p,elapsed:h,...y}){return!!Object.keys(y).length}const Yf=(n,i,s,r={},u,f)=>d=>{const m=jf(r,n)||{},p=m.delay||r.delay||0;let{elapsed:h=0}=r;h=h-an(p);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-h,onUpdate:S=>{i.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{d(),m.onComplete&&m.onComplete()},name:n,motionValue:i,element:f?void 0:u};cE(m)||Object.assign(y,uE(n,y)),y.duration&&(y.duration=an(y.duration)),y.repeatDelay&&(y.repeatDelay=an(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Xc(y),y.delay===0&&(b=!0)),(Rn.instantAnimations||Rn.skipAnimations)&&(b=!0,Xc(y),y.delay=0),y.allowFlatten=!m.type&&!m.ease,b&&!f&&i.get()!==void 0){const S=iE(y.keyframes,m);if(S!==void 0){Rt.update(()=>{y.onUpdate(S),y.onComplete()});return}}return m.isSync?new Gr(y):new ww(y)};function fE({protectedKeys:n,needsAnimating:i},s){const r=n.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,r}function av(n,i,{delay:s=0,transitionOverride:r,type:u}={}){let{transition:f=n.getDefaultTransition(),transitionEnd:d,...m}=i;r&&(f=r);const p=[],h=u&&n.animationState&&n.animationState.getState()[u];for(const y in m){const b=n.getValue(y,n.latestValues[y]??null),S=m[y];if(S===void 0||h&&fE(h,y))continue;const E={delay:s,...jf(f||{},y)},j=b.get();if(j!==void 0&&!b.isAnimating&&!Array.isArray(S)&&S===j&&!E.velocity)continue;let U=!1;if(window.MotionHandoffAnimation){const _=nv(n);if(_){const L=window.MotionHandoffAnimation(_,y,Rt);L!==null&&(E.startTime=L,U=!0)}}$c(n,y),b.start(Yf(y,b,S,n.shouldReduceMotion&&wy.has(y)?{type:!1}:E,n,U));const V=b.animation;V&&p.push(V)}return d&&Promise.all(p).then(()=>{Rt.update(()=>{d&&eE(n,d)})}),p}function iv(n,i,s,r=0,u=1){const f=Array.from(n).sort((h,y)=>h.sortNodePosition(y)).indexOf(i),d=n.size,m=(d-1)*r;return typeof s=="function"?s(f,d):u===1?f*r:m-f*r}function Jc(n,i,s={}){const r=xi(n,i,s.type==="exit"?n.presenceContext?.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const f=r?()=>Promise.all(av(n,r,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(p=0)=>{const{delayChildren:h=0,staggerChildren:y,staggerDirection:b}=u;return dE(n,i,p,h,y,b,s)}:()=>Promise.resolve(),{when:m}=u;if(m){const[p,h]=m==="beforeChildren"?[f,d]:[d,f];return p().then(()=>h())}else return Promise.all([f(),d(s.delay)])}function dE(n,i,s=0,r=0,u=0,f=1,d){const m=[];for(const p of n.variantChildren)p.notify("AnimationStart",i),m.push(Jc(p,i,{...d,delay:s+(typeof r=="function"?0:r)+iv(n.variantChildren,p,r,u,f)}).then(()=>p.notify("AnimationComplete",i)));return Promise.all(m)}function hE(n,i,s={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const u=i.map(f=>Jc(n,f,s));r=Promise.all(u)}else if(typeof i=="string")r=Jc(n,i,s);else{const u=typeof i=="function"?xi(n,i,s.custom):i;r=Promise.all(av(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",i)})}function lv(n,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(i[r]!==n[r])return!1;return!0}const mE=_f.length;function sv(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?sv(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const i={};for(let s=0;s<mE;s++){const r=_f[s],u=n.props[r];(Gl(u)||u===!1)&&(i[r]=u)}return i}const pE=[...Vf].reverse(),gE=Vf.length;function yE(n){return i=>Promise.all(i.map(({animation:s,options:r})=>hE(n,s,r)))}function vE(n){let i=yE(n),s=C0(),r=!0;const u=p=>(h,y)=>{const b=xi(n,y,p==="exit"?n.presenceContext?.custom:void 0);if(b){const{transition:S,transitionEnd:E,...j}=b;h={...h,...j,...E}}return h};function f(p){i=p(n)}function d(p){const{props:h}=n,y=sv(n.parent)||{},b=[],S=new Set;let E={},j=1/0;for(let V=0;V<gE;V++){const _=pE[V],L=s[_],q=h[_]!==void 0?h[_]:y[_],I=Gl(q),G=_===p?L.isActive:null;G===!1&&(j=V);let $=q===y[_]&&q!==h[_]&&I;if($&&r&&n.manuallyAnimateOnMount&&($=!1),L.protectedKeys={...E},!L.isActive&&G===null||!q&&!L.prevProp||Pr(q)||typeof q=="boolean")continue;const nt=xE(L.prevProp,q);let P=nt||_===p&&L.isActive&&!$&&I||V>j&&I,st=!1;const yt=Array.isArray(q)?q:[q];let J=yt.reduce(u(_),{});G===!1&&(J={});const{prevResolvedValues:K={}}=L,pt={...K,...J},lt=X=>{P=!0,S.has(X)&&(st=!0,S.delete(X)),L.needsAnimating[X]=!0;const W=n.getValue(X);W&&(W.liveStyle=!1)};for(const X in pt){const W=J[X],dt=K[X];if(E.hasOwnProperty(X))continue;let T=!1;Fc(W)&&Fc(dt)?T=!lv(W,dt):T=W!==dt,T?W!=null?lt(X):S.add(X):W!==void 0&&S.has(X)?lt(X):L.protectedKeys[X]=!0}L.prevProp=q,L.prevResolvedValues=J,L.isActive&&(E={...E,...J}),r&&n.blockInitialAnimation&&(P=!1);const St=$&&nt;P&&(!St||st)&&b.push(...yt.map(X=>{const W={type:_};if(typeof X=="string"&&r&&!St&&n.manuallyAnimateOnMount&&n.parent){const{parent:dt}=n,T=xi(dt,X);if(dt.enteringChildren&&T){const{delayChildren:Y}=T.transition||{};W.delay=iv(dt.enteringChildren,n,Y)}}return{animation:X,options:W}}))}if(S.size){const V={};if(typeof h.initial!="boolean"){const _=xi(n,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(V.transition=_.transition)}S.forEach(_=>{const L=n.getBaseTarget(_),q=n.getValue(_);q&&(q.liveStyle=!0),V[_]=L??null}),b.push({animation:V})}let U=!!b.length;return r&&(h.initial===!1||h.initial===h.animate)&&!n.manuallyAnimateOnMount&&(U=!1),r=!1,U?i(b):Promise.resolve()}function m(p,h){if(s[p].isActive===h)return Promise.resolve();n.variantChildren?.forEach(b=>b.animationState?.setActive(p,h)),s[p].isActive=h;const y=d(p);for(const b in s)s[b].protectedKeys={};return y}return{animateChanges:d,setActive:m,setAnimateFunction:f,getState:()=>s,reset:()=>{s=C0(),r=!0}}}function xE(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!lv(i,n):!1}function Sa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function C0(){return{animate:Sa(!0),whileInView:Sa(),whileHover:Sa(),whileTap:Sa(),whileDrag:Sa(),whileFocus:Sa(),exit:Sa()}}class na{constructor(i){this.isMounted=!1,this.node=i}update(){}}class bE extends na{constructor(i){super(i),i.animationState||(i.animationState=vE(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Pr(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let SE=0;class wE extends na{constructor(){super(...arguments),this.id=SE++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const u=this.node.animationState.setActive("exit",!i);s&&!i&&u.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const TE={animation:{Feature:bE},exit:{Feature:wE}};function Pl(n,i,s,r={passive:!0}){return n.addEventListener(i,s,r),()=>n.removeEventListener(i,s)}function Il(n){return{point:{x:n.pageX,y:n.pageY}}}const EE=n=>i=>Of(i)&&n(i,Il(i));function Ll(n,i,s,r){return Pl(n,i,EE(s),r)}const rv=1e-4,AE=1-rv,ME=1+rv,ov=.01,RE=0-ov,jE=0+ov;function de(n){return n.max-n.min}function DE(n,i,s){return Math.abs(n-i)<=s}function O0(n,i,s,r=.5){n.origin=r,n.originPoint=Bt(i.min,i.max,n.origin),n.scale=de(s)/de(i),n.translate=Bt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=AE&&n.scale<=ME||isNaN(n.scale))&&(n.scale=1),(n.translate>=RE&&n.translate<=jE||isNaN(n.translate))&&(n.translate=0)}function Ul(n,i,s,r){O0(n.x,i.x,s.x,r?r.originX:void 0),O0(n.y,i.y,s.y,r?r.originY:void 0)}function z0(n,i,s){n.min=s.min+i.min,n.max=n.min+de(i)}function NE(n,i,s){z0(n.x,i.x,s.x),z0(n.y,i.y,s.y)}function V0(n,i,s){n.min=i.min-s.min,n.max=n.min+de(i)}function Bl(n,i,s){V0(n.x,i.x,s.x),V0(n.y,i.y,s.y)}function Xe(n){return[n("x"),n("y")]}const uv=({current:n})=>n?n.ownerDocument.defaultView:null,_0=(n,i)=>Math.abs(n-i);function CE(n,i){const s=_0(n.x,i.x),r=_0(n.y,i.y);return Math.sqrt(s**2+r**2)}class cv{constructor(i,s,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:d=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 S=wc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,j=CE(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!j)return;const{point:U}=S,{timestamp:V}=ne;this.history.push({...U,timestamp:V});const{onStart:_,onMove:L}=this.handlers;E||(_&&_(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,S)},this.handlePointerMove=(S,E)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Sc(E,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(S,E)=>{this.end();const{onEnd:j,onSessionEnd:U,resumeAnimation:V}=this.handlers;if(this.dragSnapToOrigin&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=wc(S.type==="pointercancel"?this.lastMoveEventInfo:Sc(E,this.transformPagePoint),this.history);this.startEvent&&j&&j(S,_),U&&U(S,_)},!Of(i))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const m=Il(i),p=Sc(m,this.transformPagePoint),{point:h}=p,{timestamp:y}=ne;this.history=[{...h,timestamp:y}];const{onSessionStart:b}=s;b&&b(i,wc(p,this.history)),this.removeListeners=Fl(Ll(this.contextWindow,"pointermove",this.handlePointerMove),Ll(this.contextWindow,"pointerup",this.handlePointerUp),Ll(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),$e(this.updatePoint)}}function Sc(n,i){return i?{point:i(n.point)}:n}function L0(n,i){return{x:n.x-i.x,y:n.y-i.y}}function wc({point:n},i){return{point:n,delta:L0(n,fv(i)),offset:L0(n,OE(i)),velocity:zE(i,.1)}}function OE(n){return n[0]}function fv(n){return n[n.length-1]}function zE(n,i){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=fv(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>an(i)));)s--;if(!r)return{x:0,y:0};const f=ln(u.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-r.x)/f,y:(u.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function VE(n,{min:i,max:s},r){return i!==void 0&&n<i?n=r?Bt(i,n,r.min):Math.max(n,i):s!==void 0&&n>s&&(n=r?Bt(s,n,r.max):Math.min(n,s)),n}function U0(n,i,s){return{min:i!==void 0?n.min+i:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function _E(n,{top:i,left:s,bottom:r,right:u}){return{x:U0(n.x,s,u),y:U0(n.y,i,r)}}function B0(n,i){let s=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function LE(n,i){return{x:B0(n.x,i.x),y:B0(n.y,i.y)}}function UE(n,i){let s=.5;const r=de(n),u=de(i);return u>r?s=Si(i.min,i.max-r,n.min):r>u&&(s=Si(n.min,n.max-u,i.min)),on(0,1,s)}function BE(n,i){const s={};return i.min!==void 0&&(s.min=i.min-n.min),i.max!==void 0&&(s.max=i.max-n.min),s}const Wc=.35;function HE(n=Wc){return n===!1?n=0:n===!0&&(n=Wc),{x:H0(n,"left","right"),y:H0(n,"top","bottom")}}function H0(n,i,s){return{min:q0(n,i),max:q0(n,s)}}function q0(n,i){return typeof n=="number"?n:n[i]||0}const qE=new WeakMap;class kE{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=b=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Il(b).point)},d=(b,S)=>{const{drag:E,dragPropagation:j,onDragStart:U}=this.getProps();if(E&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Uw(E),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xe(_=>{let L=this.getAxisMotionValue(_).get()||0;if(sn.test(L)){const{projection:q}=this.visualElement;if(q&&q.layout){const I=q.layout.layoutBox[_];I&&(L=de(I)*(parseFloat(L)/100))}}this.originPoint[_]=L}),U&&Rt.postRender(()=>U(b,S)),$c(this.visualElement,"transform");const{animationState:V}=this.visualElement;V&&V.setActive("whileDrag",!0)},m=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:E,dragDirectionLock:j,onDirectionLock:U,onDrag:V}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:_}=S;if(j&&this.currentDirection===null){this.currentDirection=YE(_),this.currentDirection!==null&&U&&U(this.currentDirection);return}this.updateAxis("x",S.point,_),this.updateAxis("y",S.point,_),this.visualElement.render(),V&&V(b,S)},p=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Xe(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new cv(i,{onSessionStart:f,onStart:d,onMove:m,onSessionEnd:p,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:uv(this.visualElement)})}stop(i,s){const r=i||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!r)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:m}=this.getProps();m&&Rt.postRender(()=>m(r,u))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,r){const{drag:u}=this.getProps();if(!r||!vr(i,u,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=VE(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,u=this.constraints;i&&pi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=_E(r.layoutBox,i):this.constraints=!1,this.elastic=HE(s),u!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xe(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=BE(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!pi(i))return!1;const r=i.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=GT(r,u.root,this.visualElement.getTransformPagePoint());let d=LE(u.layout.layoutBox,f);if(s){const m=s(qT(d));this.hasMutatedConstraints=!!m,m&&(d=Qy(m))}return d}startAnimation(i){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:m}=this.getProps(),p=this.constraints||{},h=Xe(y=>{if(!vr(y,s,this.currentDirection))return;let b=p&&p[y]||{};d&&(b={min:0,max:0});const S=u?200:1e6,E=u?40:1e7,j={type:"inertia",velocity:r?i[y]:0,bounceStiffness:S,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(y,j)});return Promise.all(h).then(m)}startAxisValueAnimation(i,s){const r=this.getAxisMotionValue(i);return $c(this.visualElement,i),r.start(Yf(i,r,0,s,this.visualElement,!1))}stopAnimation(){Xe(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){Xe(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),u=r[s];return u||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){Xe(s=>{const{drag:r}=this.getProps();if(!vr(s,r,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:m}=u.layout.layoutBox[s];f.set(i[s]-Bt(d,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!pi(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Xe(d=>{const m=this.getAxisMotionValue(d);if(m&&this.constraints!==!1){const p=m.get();u[d]=UE({min:p,max:p},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xe(d=>{if(!vr(d,i,null))return;const m=this.getAxisMotionValue(d),{min:p,max:h}=this.constraints[d];m.set(Bt(p,h,u[d]))})}addListeners(){if(!this.visualElement.current)return;qE.set(this.visualElement,this);const i=this.visualElement.current,s=Ll(i,"pointerdown",p=>{const{drag:h,dragListener:y=!0}=this.getProps();h&&y&&this.start(p)}),r=()=>{const{dragConstraints:p}=this.getProps();pi(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Rt.read(r);const d=Pl(window,"resize",()=>this.scalePositionWithinConstraints()),m=u.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:h})=>{this.isDragging&&h&&(Xe(y=>{const b=this.getAxisMotionValue(y);b&&(this.originPoint[y]+=p[y].translate,b.set(b.get()+p[y].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),m&&m()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=Wc,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:m}}}function vr(n,i,s){return(i===!0||i===n)&&(s===null||s===n)}function YE(n,i=10){let s=null;return Math.abs(n.y)>i?s="y":Math.abs(n.x)>i&&(s="x"),s}class GE extends na{constructor(i){super(i),this.removeGroupControls=xe,this.removeListeners=xe,this.controls=new kE(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const k0=n=>(i,s)=>{n&&Rt.postRender(()=>n(i,s))};class XE extends na{constructor(){super(...arguments),this.removePointerDownListener=xe}onPointerDown(i){this.session=new cv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uv(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:k0(i),onStart:k0(s),onMove:r,onEnd:(f,d)=>{delete this.session,u&&Rt.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=Ll(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Dr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Y0(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const Nl={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(ct.test(n))n=parseFloat(n);else return n;const s=Y0(n,i.target.x),r=Y0(n,i.target.y);return`${s}% ${r}%`}},PE={correct:(n,{treeScale:i,projectionDelta:s})=>{const r=n,u=ta.parse(n);if(u.length>5)return r;const f=ta.createTransformer(n),d=typeof u[0]!="number"?1:0,m=s.x.scale*i.x,p=s.y.scale*i.y;u[0+d]/=m,u[1+d]/=p;const h=Bt(m,p,.5);return typeof u[2+d]=="number"&&(u[2+d]/=h),typeof u[3+d]=="number"&&(u[3+d]/=h),f(u)}};let Tc=!1;class KE extends A.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r,layoutId:u}=this.props,{projection:f}=i;mT(ZE),f&&(s.group&&s.group.add(f),r&&r.register&&u&&r.register(f),Tc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Dr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,Tc=!0,u||i.layoutDependency!==s||s===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||Rt.postRender(()=>{const m=d.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Cf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=i;Tc=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function dv(n){const[i,s]=Vy(),r=A.useContext(uf);return v.jsx(KE,{...n,layoutGroup:r,switchLayoutGroup:A.useContext(Ky),isPresent:i,safeToRemove:s})}const ZE={borderRadius:{...Nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nl,borderTopRightRadius:Nl,borderBottomLeftRadius:Nl,borderBottomRightRadius:Nl,boxShadow:PE};function QE(n,i,s){const r=ae(n)?n:Fe(n);return r.start(Yf("",r,i,s)),r.animation}const FE=(n,i)=>n.depth-i.depth;class $E{constructor(){this.children=[],this.isDirty=!1}add(i){ff(this.children,i),this.isDirty=!0}remove(i){df(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(FE),this.isDirty=!1,this.children.forEach(i)}}function JE(n,i){const s=ve.now(),r=({timestamp:u})=>{const f=u-s;f>=i&&($e(r),n(f-i))};return Rt.setup(r,!0),()=>$e(r)}const hv=["TopLeft","TopRight","BottomLeft","BottomRight"],WE=hv.length,G0=n=>typeof n=="string"?parseFloat(n):n,X0=n=>typeof n=="number"||ct.test(n);function IE(n,i,s,r,u,f){u?(n.opacity=Bt(0,s.opacity??1,tA(r)),n.opacityExit=Bt(i.opacity??1,0,eA(r))):f&&(n.opacity=Bt(i.opacity??1,s.opacity??1,r));for(let d=0;d<WE;d++){const m=`border${hv[d]}Radius`;let p=P0(i,m),h=P0(s,m);if(p===void 0&&h===void 0)continue;p||(p=0),h||(h=0),p===0||h===0||X0(p)===X0(h)?(n[m]=Math.max(Bt(G0(p),G0(h),r),0),(sn.test(h)||sn.test(p))&&(n[m]+="%")):n[m]=h}(i.rotate||s.rotate)&&(n.rotate=Bt(i.rotate||0,s.rotate||0,r))}function P0(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const tA=mv(0,.5,Jg),eA=mv(.5,.95,xe);function mv(n,i,s){return r=>r<n?0:r>i?1:s(Si(n,i,r))}function K0(n,i){n.min=i.min,n.max=i.max}function Ge(n,i){K0(n.x,i.x),K0(n.y,i.y)}function Z0(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}function Q0(n,i,s,r,u){return n-=i,n=Ur(n,1/s,r),u!==void 0&&(n=Ur(n,1/u,r)),n}function nA(n,i=0,s=1,r=.5,u,f=n,d=n){if(sn.test(i)&&(i=parseFloat(i),i=Bt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let m=Bt(f.min,f.max,r);n===f&&(m-=i),n.min=Q0(n.min,i,s,m,u),n.max=Q0(n.max,i,s,m,u)}function F0(n,i,[s,r,u],f,d){nA(n,i[s],i[r],i[u],i.scale,f,d)}const aA=["x","scaleX","originX"],iA=["y","scaleY","originY"];function $0(n,i,s,r){F0(n.x,i,aA,s?s.x:void 0,r?r.x:void 0),F0(n.y,i,iA,s?s.y:void 0,r?r.y:void 0)}function J0(n){return n.translate===0&&n.scale===1}function pv(n){return J0(n.x)&&J0(n.y)}function W0(n,i){return n.min===i.min&&n.max===i.max}function lA(n,i){return W0(n.x,i.x)&&W0(n.y,i.y)}function I0(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function gv(n,i){return I0(n.x,i.x)&&I0(n.y,i.y)}function tg(n){return de(n.x)/de(n.y)}function eg(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}class sA{constructor(){this.members=[]}add(i){ff(this.members,i),i.scheduleRender()}remove(i){if(df(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(u=>i===u);if(s===0)return!1;let r;for(let u=s;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1){r=f;break}}return r?(this.promote(r),!0):!1}promote(i,s){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender(),i.resumeFrom=r,s&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:u}=i.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:r}=i;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rA(n,i,s){let r="";const u=n.x.translate/i.x,f=n.y.translate/i.y,d=s?.z||0;if((u||f||d)&&(r=`translate3d(${u}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:h,rotate:y,rotateX:b,rotateY:S,skewX:E,skewY:j}=s;h&&(r=`perspective(${h}px) ${r}`),y&&(r+=`rotate(${y}deg) `),b&&(r+=`rotateX(${b}deg) `),S&&(r+=`rotateY(${S}deg) `),E&&(r+=`skewX(${E}deg) `),j&&(r+=`skewY(${j}deg) `)}const m=n.x.scale*i.x,p=n.y.scale*i.y;return(m!==1||p!==1)&&(r+=`scale(${m}, ${p})`),r||"none"}const Ec=["","X","Y","Z"],oA=1e3;let uA=0;function Ac(n,i,s,r){const{latestValues:u}=i;u[n]&&(s[n]=u[n],i.setStaticValue(n,0),r&&(r[n]=0))}function yv(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const s=nv(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Rt,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&yv(r)}function vv({attachResizeListener:n,defaultParent:i,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},m=i?.()){this.id=uA++,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(dA),this.nodes.forEach(gA),this.nodes.forEach(yA),this.nodes.forEach(hA)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,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 p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new $E)}addEventListener(d,m){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new mf),this.eventHandlers.get(d).add(m)}notifyListeners(d,...m){const p=this.eventHandlers.get(d);p&&p.notify(...m)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=zf(d)&&!Ww(d),this.instance=d;const{layoutId:m,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||m)&&(this.isLayoutDirty=!0),n){let y,b=0;const S=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{b=window.innerWidth}),n(d,()=>{const E=window.innerWidth;E!==b&&(b=E,this.root.updateBlockedByResize=!0,y&&y(),y=JE(S,250),Dr.hasAnimatedSinceResize&&(Dr.hasAnimatedSinceResize=!1,this.nodes.forEach(ig)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&h&&(m||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||h.getDefaultTransition()||wA,{onLayoutAnimationStart:U,onLayoutAnimationComplete:V}=h.getProps(),_=!this.targetLayout||!gv(this.targetLayout,E),L=!b&&S;if(this.options.layoutRoot||this.resumeFrom||L||b&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const q={...jf(j,"layout"),onPlay:U,onComplete:V};(h.shouldReduceMotion||this.options.layoutRoot)&&(q.delay=0,q.type=!1),this.startAnimation(q),this.setAnimationOrigin(y,L)}else b||ig(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$e(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(vA),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:m,layout:p}=this.options;if(m===void 0&&!p)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ng);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ag);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pA),this.nodes.forEach(cA),this.nodes.forEach(fA)):this.nodes.forEach(ag),this.clearAllSnapshots();const m=ve.now();ne.delta=on(0,1e3/60,m-ne.timestamp),ne.timestamp=m,ne.isProcessing=!0,hc.update.process(ne),hc.preRender.process(ne),hc.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mA),this.sharedNodes.forEach(xA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!de(this.snapshot.measuredBox.x)&&!de(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 p=0;p<this.path.length;p++)this.path[p].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Kt(),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,d?d.layoutBox:void 0)}updateScroll(d="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(m=!1),m&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:p,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!pv(this.projectionDelta),p=this.getTransformTemplate(),h=p?p(this.latestValues,""):void 0,y=h!==this.prevTransformTemplateValue;d&&this.instance&&(m||Ta(this.latestValues)||y)&&(u(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const m=this.measurePageBox();let p=this.removeElementScroll(m);return d&&(p=this.removeTransform(p)),TA(p),{animationId:this.root.animationId,measuredBox:m,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Kt();const m=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(EA))){const{scroll:h}=this.root;h&&(gi(m.x,h.offset.x),gi(m.y,h.offset.y))}return m}removeElementScroll(d){const m=Kt();if(Ge(m,d),this.scroll?.wasRoot)return m;for(let p=0;p<this.path.length;p++){const h=this.path[p],{scroll:y,options:b}=h;h!==this.root&&y&&b.layoutScroll&&(y.wasRoot&&Ge(m,d),gi(m.x,y.offset.x),gi(m.y,y.offset.y))}return m}applyTransform(d,m=!1){const p=Kt();Ge(p,d);for(let h=0;h<this.path.length;h++){const y=this.path[h];!m&&y.options.layoutScroll&&y.scroll&&y!==y.root&&yi(p,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Ta(y.latestValues)&&yi(p,y.latestValues)}return Ta(this.latestValues)&&yi(p,this.latestValues),p}removeTransform(d){const m=Kt();Ge(m,d);for(let p=0;p<this.path.length;p++){const h=this.path[p];if(!h.instance||!Ta(h.latestValues))continue;Kc(h.latestValues)&&h.updateSnapshot();const y=Kt(),b=h.measurePageBox();Ge(y,b),$0(m,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,y)}return Ta(this.latestValues)&&$0(m,this.latestValues),m}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==m;if(!(d||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!(!this.layout||!(y||b))){if(this.resolvedRelativeTargetAt=ne.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),Bl(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Kt(),this.targetWithTransforms=Kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),NE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ge(this.target,this.layout.layoutBox),$y(this.target,this.targetDelta)):Ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),Bl(this.relativeTargetOrigin,this.target,S.target),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Kc(this.parent.latestValues)||Fy(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 d=this.getLead(),m=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(p=!1),p)return;const{layout:h,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||y))return;Ge(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;YT(this.layoutCorrected,this.treeScale,this.path,m),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Kt());const{target:E}=d;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Z0(this.prevProjectionDelta.x,this.projectionDelta.x),Z0(this.prevProjectionDelta.y,this.projectionDelta.y)),Ul(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!eg(this.projectionDelta.x,this.prevProjectionDelta.x)||!eg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vi(),this.projectionDelta=vi(),this.projectionDeltaWithTransform=vi()}setAnimationOrigin(d,m=!1){const p=this.snapshot,h=p?p.latestValues:{},y={...this.latestValues},b=vi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const S=Kt(),E=p?p.source:void 0,j=this.layout?this.layout.source:void 0,U=E!==j,V=this.getStack(),_=!V||V.members.length<=1,L=!!(U&&!_&&this.options.crossfade===!0&&!this.path.some(SA));this.animationProgress=0;let q;this.mixTargetDelta=I=>{const G=I/1e3;lg(b.x,d.x,G),lg(b.y,d.y,G),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bl(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bA(this.relativeTarget,this.relativeTargetOrigin,S,G),q&&lA(this.relativeTarget,q)&&(this.isProjectionDirty=!1),q||(q=Kt()),Ge(q,this.relativeTarget)),U&&(this.animationValues=y,IE(y,h,this.latestValues,G,L,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&($e(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{Dr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fe(0)),this.currentAnimation=QE(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),d.onUpdate&&d.onUpdate(m)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:m,target:p,layout:h,latestValues:y}=d;if(!(!m||!p||!h)){if(this!==d&&this.layout&&h&&xv(this.options.animationType,this.layout.layoutBox,h.layoutBox)){p=this.target||Kt();const b=de(this.layout.layoutBox.x);p.x.min=d.target.x.min,p.x.max=p.x.min+b;const S=de(this.layout.layoutBox.y);p.y.min=d.target.y.min,p.y.max=p.y.min+S}Ge(m,p),yi(m,y),Ul(this.projectionDeltaWithTransform,this.layoutCorrected,m,y)}}registerSharedNode(d,m){this.sharedNodes.has(d)||this.sharedNodes.set(d,new sA),this.sharedNodes.get(d).add(m);const h=m.options.initialPromotionConfig;m.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(m):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:m,preserveFollowOpacity:p}={}){const h=this.getStack();h&&h.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let m=!1;const{latestValues:p}=d;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(m=!0),!m)return;const h={};p.z&&Ac("z",d,h,this.animationValues);for(let y=0;y<Ec.length;y++)Ac(`rotate${Ec[y]}`,d,h,this.animationValues),Ac(`skew${Ec[y]}`,d,h,this.animationValues);d.render();for(const y in h)d.setStaticValue(y,h[y]),this.animationValues&&(this.animationValues[y]=h[y]);d.scheduleRender()}applyProjectionStyles(d,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=jr(m?.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=jr(m?.pointerEvents)||""),this.hasProjected&&!Ta(this.latestValues)&&(d.transform=p?p({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=h.animationValues||h.latestValues;this.applyTransformsToTarget();let b=rA(this.projectionDeltaWithTransform,this.treeScale,y);p&&(b=p(y,b)),d.transform=b;const{x:S,y:E}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${E.origin*100}% 0`,h.animationValues?d.opacity=h===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=h===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const j in Xl){if(y[j]===void 0)continue;const{correct:U,applyTo:V,isCSSVariable:_}=Xl[j],L=b==="none"?y[j]:U(y[j],h);if(V){const q=V.length;for(let I=0;I<q;I++)d[V[I]]=L}else _?this.options.visualElement.renderState.vars[j]=L:d[j]=L}this.options.layoutId&&(d.pointerEvents=h===this?jr(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(ng),this.root.sharedNodes.clear()}}}function cA(n){n.updateLayout()}function fA(n){const i=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=n.layout,{animationType:u}=n.options,f=i.source!==n.layout.source;u==="size"?Xe(y=>{const b=f?i.measuredBox[y]:i.layoutBox[y],S=de(b);b.min=s[y].min,b.max=b.min+S}):xv(u,i.layoutBox,s)&&Xe(y=>{const b=f?i.measuredBox[y]:i.layoutBox[y],S=de(s[y]);b.max=b.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[y].max=n.relativeTarget[y].min+S)});const d=vi();Ul(d,s,i.layoutBox);const m=vi();f?Ul(m,n.applyTransform(r,!0),i.measuredBox):Ul(m,s,i.layoutBox);const p=!pv(d);let h=!1;if(!n.resumeFrom){const y=n.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:b,layout:S}=y;if(b&&S){const E=Kt();Bl(E,i.layoutBox,b.layoutBox);const j=Kt();Bl(j,s,S.layoutBox),gv(E,j)||(h=!0),y.options.layoutRoot&&(n.relativeTarget=j,n.relativeTargetOrigin=E,n.relativeParent=y)}}}n.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:m,layoutDelta:d,hasLayoutChanged:p,hasRelativeLayoutChanged:h})}else if(n.isLead()){const{onExitComplete:s}=n.options;s&&s()}n.options.transition=void 0}function dA(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function hA(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function mA(n){n.clearSnapshot()}function ng(n){n.clearMeasurements()}function ag(n){n.isLayoutDirty=!1}function pA(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function ig(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function gA(n){n.resolveTargetDelta()}function yA(n){n.calcProjection()}function vA(n){n.resetSkewAndRotation()}function xA(n){n.removeLeadSnapshot()}function lg(n,i,s){n.translate=Bt(i.translate,0,s),n.scale=Bt(i.scale,1,s),n.origin=i.origin,n.originPoint=i.originPoint}function sg(n,i,s,r){n.min=Bt(i.min,s.min,r),n.max=Bt(i.max,s.max,r)}function bA(n,i,s,r){sg(n.x,i.x,s.x,r),sg(n.y,i.y,s.y,r)}function SA(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const wA={duration:.45,ease:[.4,0,.1,1]},rg=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),og=rg("applewebkit/")&&!rg("chrome/")?Math.round:xe;function ug(n){n.min=og(n.min),n.max=og(n.max)}function TA(n){ug(n.x),ug(n.y)}function xv(n,i,s){return n==="position"||n==="preserve-aspect"&&!DE(tg(i),tg(s),.2)}function EA(n){return n!==n.root&&n.scroll?.wasRoot}const AA=vv({attachResizeListener:(n,i)=>Pl(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mc={current:void 0},bv=vv({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Mc.current){const n=new AA({});n.mount(window),n.setOptions({layoutScroll:!0}),Mc.current=n}return Mc.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),MA={pan:{Feature:XE},drag:{Feature:GE,ProjectionNode:bv,MeasureLayout:dv}};function cg(n,i,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=r[u];f&&Rt.postRender(()=>f(i,Il(i)))}class RA extends na{mount(){const{current:i}=this.node;i&&(this.unmount=Bw(i,(s,r)=>(cg(this.node,r,"Start"),u=>cg(this.node,u,"End"))))}unmount(){}}class jA extends na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Fl(Pl(this.node.current,"focus",()=>this.onFocus()),Pl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fg(n,i,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=r[u];f&&Rt.postRender(()=>f(i,Il(i)))}class DA extends na{mount(){const{current:i}=this.node;i&&(this.unmount=Yw(i,(s,r)=>(fg(this.node,r,"Start"),(u,{success:f})=>fg(this.node,u,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ic=new WeakMap,Rc=new WeakMap,NA=n=>{const i=Ic.get(n.target);i&&i(n)},CA=n=>{n.forEach(NA)};function OA({root:n,...i}){const s=n||document;Rc.has(s)||Rc.set(s,{});const r=Rc.get(s),u=JSON.stringify(i);return r[u]||(r[u]=new IntersectionObserver(CA,{root:n,...i})),r[u]}function zA(n,i,s){const r=OA(i);return Ic.set(n,s),r.observe(n),()=>{Ic.delete(n),r.unobserve(n)}}const VA={some:0,all:1};class _A extends na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:u="some",once:f}=i,d={root:s?s.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:VA[u]},m=p=>{const{isIntersecting:h}=p;if(this.isInView===h||(this.isInView=h,f&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:y,onViewportLeave:b}=this.node.getProps(),S=h?y:b;S&&S(p)};return zA(this.node.current,d,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(LA(i,s))&&this.startObserver()}unmount(){}}function LA({viewport:n={}},{viewport:i={}}={}){return s=>n[s]!==i[s]}const UA={inView:{Feature:_A},tap:{Feature:DA},focus:{Feature:jA},hover:{Feature:RA}},BA={layout:{ProjectionNode:bv,MeasureLayout:dv}},HA={...TE,...UA,...MA,...BA},F=HT(HA,WT),qA=50,dg=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),kA=()=>({time:0,x:dg(),y:dg()}),YA={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function hg(n,i,s,r){const u=s[i],{length:f,position:d}=YA[i],m=u.current,p=s.time;u.current=n[`scroll${d}`],u.scrollLength=n[`scroll${f}`]-n[`client${f}`],u.offset.length=0,u.offset[0]=0,u.offset[1]=u.scrollLength,u.progress=Si(0,u.scrollLength,u.current);const h=r-p;u.velocity=h>qA?0:pf(u.current-m,h)}function GA(n,i,s){hg(n,"x",i,s),hg(n,"y",i,s),i.time=s}function XA(n,i){const s={x:0,y:0};let r=n;for(;r&&r!==i;)if(Nf(r))s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const u=r.getBoundingClientRect();r=r.parentElement;const f=r.getBoundingClientRect();s.x+=u.left-f.left,s.y+=u.top-f.top}else if(r instanceof SVGGraphicsElement){const{x:u,y:f}=r.getBBox();s.x+=u,s.y+=f;let d=null,m=r.parentNode;for(;!d;)m.tagName==="svg"&&(d=m),m=r.parentNode;r=d}else break;return s}const tf={start:0,center:.5,end:1};function mg(n,i,s=0){let r=0;if(n in tf&&(n=tf[n]),typeof n=="string"){const u=parseFloat(n);n.endsWith("px")?r=u:n.endsWith("%")?n=u/100:n.endsWith("vw")?r=u/100*document.documentElement.clientWidth:n.endsWith("vh")?r=u/100*document.documentElement.clientHeight:n=u}return typeof n=="number"&&(r=i*n),s+r}const PA=[0,0];function KA(n,i,s,r){let u=Array.isArray(n)?n:PA,f=0,d=0;return typeof n=="number"?u=[n,n]:typeof n=="string"&&(n=n.trim(),n.includes(" ")?u=n.split(" "):u=[n,tf[n]?n:"0"]),f=mg(u[0],s,r),d=mg(u[1],i),f-d}const ZA={All:[[0,0],[1,1]]},QA={x:0,y:0};function FA(n){return"getBBox"in n&&n.tagName!=="svg"?n.getBBox():{width:n.clientWidth,height:n.clientHeight}}function $A(n,i,s){const{offset:r=ZA.All}=s,{target:u=n,axis:f="y"}=s,d=f==="y"?"height":"width",m=u!==n?XA(u,n):QA,p=u===n?{width:n.scrollWidth,height:n.scrollHeight}:FA(u),h={width:n.clientWidth,height:n.clientHeight};i[f].offset.length=0;let y=!i[f].interpolate;const b=r.length;for(let S=0;S<b;S++){const E=KA(r[S],h[d],p[d],m[f]);!y&&E!==i[f].interpolatorOffsets[S]&&(y=!0),i[f].offset[S]=E}y&&(i[f].interpolate=Ef(i[f].offset,dy(r),{clamp:!1}),i[f].interpolatorOffsets=[...i[f].offset]),i[f].progress=on(0,1,i[f].interpolate(i[f].current))}function JA(n,i=n,s){if(s.x.targetOffset=0,s.y.targetOffset=0,i!==n){let r=i;for(;r&&r!==n;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=i===n?i.scrollWidth:i.clientWidth,s.y.targetLength=i===n?i.scrollHeight:i.clientHeight,s.x.containerLength=n.clientWidth,s.y.containerLength=n.clientHeight}function WA(n,i,s,r={}){return{measure:u=>{JA(n,r.target,s),GA(n,s,u),(r.offset||r.target)&&$A(n,s,r)},notify:()=>i(s)}}const Cl=new WeakMap,pg=new WeakMap,jc=new WeakMap,gg=n=>n===document.scrollingElement?window:n;function Sv(n,{container:i=document.scrollingElement,...s}={}){if(!i)return xe;let r=jc.get(i);r||(r=new Set,jc.set(i,r));const u=kA(),f=WA(i,n,u,s);if(r.add(f),!Cl.has(i)){const m=()=>{for(const b of r)b.measure(ne.timestamp);Rt.preUpdate(p)},p=()=>{for(const b of r)b.notify()},h=()=>Rt.read(m);Cl.set(i,h);const y=gg(i);window.addEventListener("resize",h,{passive:!0}),i!==document.documentElement&&pg.set(i,Jw(i,h)),y.addEventListener("scroll",h,{passive:!0}),h()}const d=Cl.get(i);return Rt.read(d,!1,!0),()=>{$e(d);const m=jc.get(i);if(!m||(m.delete(f),m.size))return;const p=Cl.get(i);Cl.delete(i),p&&(gg(i).removeEventListener("scroll",p),pg.get(i)?.(),window.removeEventListener("resize",p))}}const yg=new Map;function IA(n){const i={value:0},s=Sv(r=>{i.value=r[n.axis].progress*100},n);return{currentTime:i,cancel:s}}function wv({source:n,container:i,...s}){const{axis:r}=s;n&&(i=n);const u=yg.get(i)??new Map;yg.set(i,u);const f=s.target??"self",d=u.get(f)??{},m=r+(s.offset??[]).join(",");return d[m]||(d[m]=!s.target&&gy()?new ScrollTimeline({source:i,axis:r}):IA({container:i,...s})),d[m]}function t3(n,i){const s=wv(i);return n.attachTimeline({timeline:i.target?void 0:s,observe:r=>(r.pause(),zy(u=>{r.time=r.duration*u},s))})}function e3(n){return n.length===2}function n3(n,i){return e3(n)?Sv(s=>{n(s[i.axis].progress,s)},i):zy(n,wv(i))}function a3(n,{axis:i="y",container:s=document.scrollingElement,...r}={}){if(!s)return xe;const u={axis:i,container:s,...r};return typeof n=="function"?n3(n,u):t3(n,u)}const i3=()=>({scrollX:Fe(0),scrollY:Fe(0),scrollXProgress:Fe(0),scrollYProgress:Fe(0)}),xr=n=>n?!n.current:!1;function l3({container:n,target:i,...s}={}){const r=Mi(i3),u=A.useRef(null),f=A.useRef(!1),d=A.useCallback(()=>(u.current=a3((m,{x:p,y:h})=>{r.scrollX.set(p.current),r.scrollXProgress.set(p.progress),r.scrollY.set(h.current),r.scrollYProgress.set(h.progress)},{...s,container:n?.current||void 0,target:i?.current||void 0}),()=>{u.current?.()}),[n,i,JSON.stringify(s.offset)]);return kr(()=>{if(f.current=!1,xr(n)||xr(i)){f.current=!0;return}else return d()},[d]),A.useEffect(()=>{if(f.current)return ql(!xr(n)),ql(!xr(i)),d()},[d]),r}function Br(n){const i=Mi(()=>Fe(n)),{isStatic:s}=A.useContext(Wl);if(s){const[,r]=A.useState(n);A.useEffect(()=>i.on("change",r),[])}return i}function Tv(n,i){const s=Br(i()),r=()=>s.set(i());return r(),kr(()=>{const u=()=>Rt.preRender(r,!1,!0),f=n.map(d=>d.on("change",u));return()=>{f.forEach(d=>d()),$e(r)}}),s}function s3(n){_l.current=[],n();const i=Tv(_l.current,n);return _l.current=void 0,i}function Kl(n,i,s,r){if(typeof n=="function")return s3(n);const u=typeof i=="function"?i:Iw(i,s,r);return Array.isArray(n)?vg(n,u):vg([n],([f])=>u(f))}function vg(n,i){const s=Mi(()=>[]);return Tv(n,()=>{s.length=0;const r=n.length;for(let u=0;u<r;u++)s[u]=n[u].get();return i(s)})}function xg(n,i={}){const{isStatic:s}=A.useContext(Wl),r=()=>ae(n)?n.get():n;if(s)return Kl(r);const u=Br(r());return A.useInsertionEffect(()=>tT(u,n,i),[u,JSON.stringify(i)]),u}const r3=F.create(bi),bg=[{name:"Home",path:"/"},{name:"About",path:"/about"},{name:"Products",path:"/products"},{name:"Features",path:"/features"},{name:"Contact",path:"/contact"}],Ev=()=>{const[n,i]=A.useState(!1),s=()=>i(!n),r={hidden:{x:"-100%",opacity:0},visible:{x:0,opacity:1,transition:{type:"spring",stiffness:120,damping:20,staggerChildren:.1}},exit:{x:"-100%",opacity:0,transition:{type:"spring",stiffness:120,damping:20}}},u={hidden:{x:-20,opacity:0},visible:{x:0,opacity:1,transition:{duration:.25}}};return v.jsxs("nav",{className:"fixed w-full z-[100] bg-white/90 backdrop-blur-md shadow-md",children:[v.jsxs("div",{className:"max-w-7xl mx-auto flex justify-between items-center px-6 py-3",children:[v.jsx(bi,{to:"/",className:"flex items-center z-[1000]",children:v.jsx("img",{src:"/Images/Logo.png",alt:"Chetas Agro Logo",className:"h-16 md:h-20 w-auto object-contain"})}),v.jsx("div",{className:"hidden md:flex space-x-10 font-semibold text-lg",children:bg.map(({name:f,path:d})=>v.jsxs(bi,{to:d,className:"relative group text-gray-800 hover:text-green-700 transition-colors duration-300",children:[f,v.jsx("span",{className:"absolute left-0 -bottom-1 w-0 h-[3px] bg-gradient-to-r from-green-400 to-green-700 transition-all group-hover:w-full"})]},f))}),v.jsx("button",{type:"button",className:"md:hidden flex items-center justify-center w-12 h-12 rounded-full bg-green-100 hover:bg-green-200 text-gray-800 z-[1100]",onClick:f=>{f.stopPropagation(),s()},"aria-label":"Toggle Menu",children:n?v.jsx(Jp,{size:28}):v.jsx(K2,{size:28})})]}),v.jsx(rT,{children:n&&v.jsx(F.div,{className:"fixed inset-0 w-full h-screen bg-white/95 backdrop-blur-md flex items-center justify-center z-[1000]",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:()=>i(!1),children:v.jsxs("div",{className:"flex flex-col items-center space-y-8 text-2xl text-gray-900 relative",onClick:f=>f.stopPropagation(),children:[bg.map(({name:f,path:d})=>v.jsx(r3,{to:d,variants:u,className:"hover:text-green-700 font-semibold transition-transform transform hover:scale-105 text-center",onClick:()=>i(!1),children:f},f)),v.jsx("button",{type:"button",onClick:s,className:"absolute top-6 right-6 p-2 rounded-full text-gray-800 hover:text-green-700 focus:outline-none","aria-label":"Close Menu",children:v.jsx(Jp,{size:32})})]})})})]})},o3=Cr.memo(()=>{const[n,i]=A.useState(!1),s=A.useMemo(()=>[{Icon:z2,href:"https://www.facebook.com/chetascontrolsystem"},{Icon:U2,href:"https://www.instagram.com/chetascontrolsystems/"},{Icon:k2,href:"https://www.linkedin.com/company/chetas-control/"}],[]),r=A.useMemo(()=>[{to:"/about",label:"About Us"},{to:"/products",label:"Products"},{to:"/features",label:"Features"},{to:"/contact",label:"Contact"}],[]),u={hidden:{opacity:0,y:40},visible:f=>({opacity:1,y:0,transition:{delay:f*.3,duration:.6,type:"spring"}})};return v.jsxs("footer",{className:"relative text-white overflow-hidden",children:[v.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url('/footer-bg.jpg')"}}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/80 via-green-900/70 to-black/80 animate-gradient-flow"}),v.jsx("div",{className:"absolute w-40 h-40 bg-green-500/20 rounded-full blur-3xl top-10 left-10 animate-orb1 will-change-transform"}),v.jsx("div",{className:"absolute w-32 h-32 bg-green-400/10 rounded-full blur-3xl bottom-20 right-10 animate-orb2 will-change-transform"}),v.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 py-20 grid grid-cols-1 md:grid-cols-4 gap-12 text-left",children:[v.jsxs(F.div,{custom:0,variants:u,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[v.jsx("h5",{className:"text-2xl font-bold mb-6 border-b-2 border-green-400 inline-block",children:"Our Commitment"}),v.jsxs("p",{className:"text-gray-300 leading-relaxed text-lg",children:["At ",v.jsx("span",{className:"font-semibold text-green-300",children:"Chetas Agro"}),", we are committed to a sustainable future. We transform"," ",v.jsx("span",{className:"font-semibold text-green-300",children:"organic cow dung"})," into nutrient-rich fertilizers that restore soil health, and produce"," ",v.jsx("span",{className:"font-semibold text-yellow-300",children:"renewable ethanol"})," for clean energy and pharmaceutical applications. Together, we empower farmers, protect the environment, and fuel a greener tomorrow."]})]}),v.jsxs(F.div,{custom:1,variants:u,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[v.jsx("h5",{className:"text-2xl font-bold mb-6 border-b-2 border-green-400 inline-block",children:"Quick Links"}),v.jsx("ul",{className:"space-y-4 text-lg",children:r.map(({to:f,label:d})=>v.jsx(F.li,{whileHover:{x:6,color:"#4ade80"},transition:{type:"spring",stiffness:250},children:v.jsx(bi,{to:f,className:"transition duration-300",children:d})},f))})]}),v.jsxs(F.div,{custom:2,variants:u,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[v.jsx("h5",{className:"text-2xl font-bold mb-6 border-b-2 border-green-400 inline-block",children:"Contact Us"}),v.jsxs("p",{className:"flex items-center gap-3 mb-3",children:[v.jsx($2,{size:20,className:"text-green-400"}),v.jsx("a",{href:"tel:02025871111",className:"hover:text-green-400 transition",children:"020-25871111 / 25870370"})]}),v.jsxs("p",{className:"flex items-start gap-3 mb-3",children:[v.jsx(X2,{size:20,className:"text-green-400 mt-1"}),v.jsxs("address",{className:"not-italic leading-relaxed",children:["Chetas House, Plot No. 1, Survey No. 8+9,",v.jsx("br",{}),"Shree Siddhatek Society, Sutarwadi,",v.jsx("br",{}),"Pashan, Pune – 411021, Maharashtra, India"]})]}),v.jsxs("p",{className:"flex items-center gap-3",children:[v.jsx(kg,{size:20,className:"text-green-400"}),v.jsx("a",{href:"mailto:info@chetasagro.com",className:"hover:text-green-400 transition",children:"info@chetasagro.com"})]})]}),v.jsxs(F.div,{custom:3,variants:u,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[v.jsx("h5",{className:"text-2xl font-bold mb-6 border-b-2 border-green-400 inline-block",children:"Follow Us"}),v.jsx("div",{className:"flex gap-6",children:s.map(({Icon:f,href:d},m)=>v.jsx("a",{href:d,target:"_blank",rel:"noreferrer",className:"p-3 rounded-full bg-green-700 hover:bg-green-500 transition shadow-lg will-change-transform transform hover:scale-110",children:v.jsx(f,{size:26,className:"text-white"})},m))})]})]}),v.jsxs("div",{className:"relative z-10 border-t border-green-600/50 py-6 text-center bg-black/40 text-gray-300 text-sm",children:[v.jsxs("p",{children:["© ",new Date().getFullYear()," Chetas Agrotech Pvt. Ltd. | All Rights Reserved"]}),v.jsx("p",{className:"mt-2",children:v.jsx("button",{onClick:()=>i(!0),className:"hover:text-green-400 transition underline",children:"Privacy Policy"})})]}),n&&v.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:v.jsxs("div",{className:"bg-white text-gray-900 rounded-2xl max-w-3xl w-full p-8 relative overflow-y-auto max-h-[80vh]",children:[v.jsx("button",{onClick:()=>i(!1),className:"absolute top-4 right-4 text-gray-600 hover:text-gray-900 text-2xl font-bold",children:"×"}),v.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Privacy Policy"}),v.jsx("p",{className:"mb-4",children:"At Chetas Agrotech, we respect your privacy. This privacy policy explains how we collect, use, and protect your personal information when you visit our website."}),v.jsxs("p",{className:"mb-4",children:[v.jsx("strong",{children:"Information Collection:"})," We may collect your name, email, phone number, and other details only when voluntarily submitted."]}),v.jsxs("p",{className:"mb-4",children:[v.jsx("strong",{children:"Use of Information:"})," The information is used solely to provide services, respond to inquiries, and improve our offerings."]}),v.jsxs("p",{className:"mb-4",children:[v.jsx("strong",{children:"Data Security:"})," We take reasonable measures to protect your information. We do not sell or share your personal data with third parties without consent."]}),v.jsxs("p",{className:"mb-4",children:[v.jsx("strong",{children:"Cookies:"})," Our website may use cookies to improve user experience. You can disable cookies in your browser settings."]}),v.jsx("p",{className:"mb-4",children:"By using our website, you agree to the terms of this Privacy Policy."}),v.jsx("p",{className:"mt-6 text-sm text-gray-500",children:"Last updated: September 2025"})]})})]})}),u3=({children:n})=>v.jsxs("div",{className:"flex flex-col min-h-screen",children:[v.jsx(Ev,{}),v.jsx("main",{className:"flex-1",children:n}),v.jsx(o3,{})]}),c3=["🌾 From Crops to Clean Ethanol – A Greener Tomorrow","🐄 Cow Dung to Biogas – Powering Rural Futures","⚡ Sustainable Energy for Farmers & Industries","🌍 Local Roots, Global Standards","💡 Fueling Growth, Nurturing Nature"],f3=()=>{const[n,i]=A.useState(!1),s=af();A.useEffect(()=>{const S=new Date().getHours();i(S>=19||S<=6)},[]);const r=Br(0),u=Br(0),f=xg(r,{damping:20,stiffness:90}),d=xg(u,{damping:20,stiffness:90}),m=S=>{requestAnimationFrame(()=>{r.set(S.clientX),u.set(S.clientY)})},p=Kl(f,[0,window.innerWidth],[-15,15]),h=Kl(d,[0,window.innerHeight],[-10,10]),y=A.useMemo(()=>[...Array(15)].map(()=>({left:Math.random()*100+"%",top:Math.random()*100+"%",size:2+Math.random()*3,duration:4+Math.random()*5})),[]),b=A.useMemo(()=>[...Array(30)].map(()=>({top:`${Math.random()*100}%`,left:`${Math.random()*100}%`,size:1+Math.random()*2,duration:2+Math.random()*2})),[]);return v.jsxs("section",{className:"relative h-screen overflow-hidden flex flex-col items-center justify-center",onMouseMove:m,children:[v.jsx(F.div,{className:`absolute inset-0 transition-all duration-700 ${n?"bg-gradient-to-b from-gray-900 via-black to-gray-800":"bg-gradient-to-b from-emerald-300 via-sky-200 to-green-100"}`}),n&&b.map((S,E)=>v.jsx(F.div,{className:"absolute bg-white rounded-full",style:{width:S.size,height:S.size,top:S.top,left:S.left,willChange:"opacity, transform"},animate:{opacity:[0,1,0]},transition:{duration:S.duration,repeat:1/0}},E)),v.jsx(F.div,{className:"absolute rounded-full shadow-2xl will-change-transform",style:{top:"12%",left:"10%",width:"16vw",maxWidth:140,height:"16vw",maxHeight:140,background:n?"radial-gradient(circle, rgba(200,200,255,0.95), rgba(120,120,200,0.7))":"radial-gradient(circle, rgba(255,223,77,0.95), rgba(255,180,50,0.8))",filter:"blur(6px)",x:p,y:h},animate:{rotate:[0,360]},transition:{duration:120,repeat:1/0,ease:"linear"}}),v.jsx("div",{className:"absolute bottom-24 left-0 w-full flex justify-around px-6 z-30",children:[...Array(8)].map((S,E)=>v.jsxs(F.div,{className:"relative flex flex-col items-center",animate:{rotate:[0,2,-2,0],y:[0,-6,0]},transition:{duration:4,delay:E*.15,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:"bottom center",willChange:"transform"},children:[v.jsx("div",{className:"w-[2px] bg-green-700 h-28 md:h-48 rounded-full shadow"}),v.jsx("div",{className:"absolute left-2 top-1/3 w-6 h-2 bg-green-500 rounded-full"}),v.jsx("div",{className:"absolute right-2 top-1/2 w-6 h-2 bg-green-500 rounded-full"})]},E))}),v.jsx(F.img,{src:"/Image4.png",alt:"Cow silhouette",className:"absolute bottom-20 left-12 w-28 md:w-40 opacity-95 z-30 will-change-transform",animate:{y:[0,-12,0],x:[0,12,-6]},transition:{duration:6,repeat:1/0,ease:"easeInOut"}}),v.jsx("div",{className:"absolute top-40 right-10 flex flex-col gap-6 z-40",children:[H2,_2,C2].map((S,E)=>v.jsx(F.div,{className:"p-3 bg-white/30 backdrop-blur-md rounded-full shadow-lg",whileHover:{scale:1.25},animate:{y:[0,-14,0]},transition:{duration:3+E,repeat:1/0},children:v.jsx(S,{className:"text-amber-500 w-6 h-6"})},E))}),v.jsx(F.div,{className:"absolute top-28 w-full flex justify-center z-40 px-4 overflow-hidden",children:v.jsx(F.div,{className:`flex space-x-12 text-xl md:text-2xl font-semibold drop-shadow-lg ${n?"text-yellow-100":"text-green-900"}`,animate:{x:["100%","-100%"]},transition:{duration:16,repeat:1/0,ease:"linear"},children:c3.map((S,E)=>v.jsx("span",{className:"whitespace-nowrap",children:S},E))})}),y.map((S,E)=>v.jsx(F.div,{className:`absolute rounded-full ${n?"bg-yellow-200":"bg-green-400"}`,style:{width:S.size,height:S.size,top:S.top,left:S.left,zIndex:25,willChange:"transform, opacity"},animate:{opacity:[0,.8,0],y:[0,-18,0],x:[0,8,-8]},transition:{duration:S.duration,repeat:1/0}},E)),v.jsxs("div",{className:"relative z-40 text-center px-4 max-w-6xl",children:[v.jsx(F.h1,{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-extrabold leading-tight mb-8 relative",children:"Rooted in Nature, Fueling the Future".split(" ").map((S,E)=>v.jsxs(F.span,{className:"inline-block bg-clip-text text-transparent",style:{backgroundImage:"linear-gradient(90deg, #facc15, #22c55e, #facc15, #22c55e)",backgroundSize:"200% 200%"},animate:{backgroundPosition:["0% 0%","100% 0%","0% 0%"]},transition:{duration:4,repeat:1/0,ease:"linear",delay:E*.1},children:[S," "]},E))}),v.jsx(F.p,{className:`max-w-2xl mx-auto text-lg md:text-2xl font-light mb-12 drop-shadow-md ${n?"text-yellow-100":"text-green-900"}`,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1,duration:1},children:"Turning waste into wealth – organic fertilizers, renewable ethanol, and sustainable energy that empowers farmers & industries."}),v.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-6",children:[v.jsx(F.button,{onClick:()=>s("/contact"),className:"bg-amber-400 text-gray-900 font-semibold rounded-full px-10 py-4 shadow-lg hover:shadow-amber-300/50 transition",whileHover:{scale:1.12},children:"Get in Touch"}),v.jsx(F.button,{onClick:()=>s("/products"),className:`border rounded-full px-10 py-4 font-semibold hover:text-gray-900 transition ${n?"border-yellow-300 hover:bg-yellow-300 text-yellow-200":"border-amber-700 hover:bg-amber-400 text-green-900"}`,whileHover:{scale:1.12},children:"Explore Products"})]})]})]})},d3=[{name:"Ramesh Patil",country:"India",review:"The organic fertilizer quality is excellent! My farm’s soil health has improved drastically.",photo:"/Images/Ramesh.jpeg",rating:5},{name:"Amina Yusuf",country:"Kenya",review:"Eco-friendly and effective. We now get better yields without chemicals.",photo:"/Images/Amina.jpeg",rating:4},{name:"John Smith",country:"UK",review:"Reliable export partner. Great packaging and timely delivery every time.",photo:"/Images/John.jpeg",rating:5},{name:"Sophia Lee",country:"Singapore",review:"The ethanol supply is pharma-grade and consistent. Perfect for our industrial needs.",photo:"/Images/Sophia.jpeg",rating:5}],h3={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},m3={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:200}}},p3=Cr.memo(({name:n,country:i,review:s,photo:r,rating:u})=>v.jsxs(F.div,{className:"bg-white p-8 rounded-3xl shadow-xl flex flex-col items-center text-center max-w-md mx-auto hover:scale-105 transition-transform duration-300 will-change-transform",variants:m3,whileHover:{y:-10,boxShadow:"0 25px 50px rgba(34,197,94,0.25)"},children:[v.jsx("img",{src:r,alt:`Profile photo of ${n}`,className:"rounded-full w-24 h-24 object-cover mb-5 border-4 border-green-300 shadow-md",loading:"lazy"}),v.jsx("h3",{className:"text-xl font-semibold mb-1 text-green-800",children:n}),v.jsx("p",{className:"text-sm text-gray-500 italic mb-4 capitalize",children:i}),v.jsxs("p",{className:"text-gray-700 mb-6 text-center",children:['"',s,'"']}),v.jsx("div",{className:"flex items-center space-x-1","aria-label":`${u} out of 5 stars`,children:[...Array(5)].map((f,d)=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`w-5 h-5 ${d<u?"text-green-500":"text-gray-300"}`,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.286 3.974a1 1 0 00.95.69h4.18c.969 0 1.371 1.24.588 1.81l-3.388 2.462a1 1 0 00-.364 1.118l1.287 3.974c.3.92-.755 1.688-1.538 1.118l-3.387-2.462a1 1 0 00-1.175 0l-3.387 2.462c-.783.57-1.838-.197-1.538-1.118l1.287-3.974a1 1 0 00-.364-1.118L2.045 9.4c-.783-.57-.38-1.81.588-1.81h4.18a1 1 0 00.95-.69l1.286-3.974z"})},d))})]})),g3=()=>{const n=A.useMemo(()=>d3,[]);return v.jsxs("section",{className:"relative py-24 px-6 bg-gradient-to-br from-green-50 via-white to-green-100 overflow-hidden",children:[v.jsx("div",{className:"absolute top-0 left-0 w-96 h-96 bg-green-300/20 rounded-full blur-3xl animate-bgScaleRotate","aria-hidden":"true"}),v.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-green-400/20 rounded-full blur-3xl animate-bgScaleRotateReverse","aria-hidden":"true"}),v.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto text-center",children:[v.jsx(F.h2,{className:"text-4xl sm:text-5xl md:text-6xl font-extrabold mb-6 text-green-900",initial:{opacity:0,y:-20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:"What Our Customers Say"}),v.jsx(F.p,{className:"max-w-2xl mx-auto text-lg sm:text-xl text-gray-700 mb-16",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.4,duration:.8},children:"Farmers and industries worldwide trust us for eco-friendly fertilizers and renewable ethanol solutions."}),v.jsx(F.div,{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-10",variants:h3,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:n.map((i,s)=>v.jsx(p3,{...i},s))})]}),v.jsx("style",{jsx:!0,children:`
        @keyframes bgScaleRotate {
          0%, 100% { transform: scale(1) rotate(0deg); }
          50% { transform: scale(1.1) rotate(10deg); }
        }
        @keyframes bgScaleRotateReverse {
          0%, 100% { transform: scale(1) rotate(0deg); }
          50% { transform: scale(1.1) rotate(-10deg); }
        }
        .animate-bgScaleRotate { animation: bgScaleRotate 12s infinite; }
        .animate-bgScaleRotateReverse { animation: bgScaleRotateReverse 14s infinite; }
      `})]})},br={hidden:{opacity:0,y:40},visible:(n=1)=>({opacity:1,y:0,transition:{delay:n*.2,duration:.8,ease:"easeOut"}})},y3=()=>{const n=af(),i=A.useMemo(()=>[{emoji:"🌱",title:"Organic Fertilizers",description:"Export-quality dewatered cow dung restoring nutrients and building healthier soils."},{emoji:"⚡",title:"Renewable Ethanol",description:"65 KLPD ethanol plant with zero liquid discharge for clean energy & pharma."},{emoji:"🌍",title:"Global Reach",description:"Supplying clients across Asia, Africa, Europe & the Middle East."},{emoji:"🔬",title:"Advanced Technology",description:"RFID livestock monitoring + GMP ethanol distillation for efficiency."}],[]),s=A.useMemo(()=>[{value:"10,000+",label:"Farms Served"},{value:"65 KLPD",label:"Ethanol Capacity"},{value:"50+",label:"Countries Exported"}],[]),r=A.useMemo(()=>[{img:"/Images/CowFertilizer.jpg",title:"Cow Dung Fertilizers",desc:"Hygienically processed from 10,000+ cattle farm. Export-ready, nutrient-rich organic compost trusted worldwide.",link:"/Images/products#fertilizers",left:!0},{img:"/Images/EthonolFertilizer.jpg",title:"Ethanol Solutions",desc:"65 KLPD modern plant producing ethanol, ENA, EQRS, and pharma-grade ethanol with ZLD and GMP standards.",link:"/Images/products#ethanol",left:!1}],[]),u=f=>{n(f)};return v.jsxs("div",{className:"overflow-x-hidden font-sans text-gray-800",children:[v.jsx(Cr.Suspense,{fallback:v.jsx("div",{className:"h-screen bg-green-50"}),children:v.jsx(f3,{})}),v.jsx("section",{className:"relative py-20 sm:py-28 bg-gradient-to-b from-green-50 to-white overflow-hidden",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6 text-center",children:[v.jsx(F.h2,{className:"text-4xl sm:text-5xl md:text-6xl font-extrabold text-green-900 mb-6",variants:br,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:"Our Mission"}),v.jsxs(F.p,{className:"text-lg sm:text-xl text-gray-700 max-w-3xl mx-auto leading-relaxed mb-14",variants:br,initial:"hidden",whileInView:"visible",custom:2,viewport:{once:!0},children:["Leading sustainable agriculture & renewable energy with"," ",v.jsx("span",{className:"font-semibold text-green-800",children:"organic fertilizers"})," ","and ",v.jsx("span",{className:"font-semibold text-yellow-600",children:"high-quality ethanol biofuels"}),". Healthier soils. Empowered farmers. A cleaner planet."]}),v.jsx(F.div,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8",initial:"hidden",whileInView:"visible",viewport:{once:!0},children:i.map((f,d)=>v.jsxs(F.div,{className:"bg-gradient-to-br from-green-100 via-green-200 to-white rounded-3xl shadow-xl p-8 text-center hover:scale-105 transition-transform duration-500 will-change-transform",variants:br,custom:d+3,children:[v.jsx("div",{className:"text-6xl mb-4",children:f.emoji}),v.jsx("h3",{className:"text-2xl font-bold text-green-900 mb-3",children:f.title}),v.jsx("p",{className:"text-gray-600 text-base",children:f.description})]},d))})]})}),v.jsx("section",{className:"py-20 sm:py-28 bg-white",children:v.jsx("div",{className:"max-w-7xl mx-auto px-6 space-y-24",children:r.map((f,d)=>v.jsxs(F.div,{className:`grid grid-cols-1 md:grid-cols-2 items-center gap-10 ${f.left?"":"md:flex-row-reverse"}`,initial:{opacity:0,x:f.left?-100:100},whileInView:{opacity:1,x:0},transition:{duration:.8,ease:"easeOut"},viewport:{once:!0},children:[v.jsx("div",{className:"overflow-hidden rounded-3xl shadow-2xl will-change-transform transition-transform duration-400 hover:scale-105",children:v.jsx("img",{src:f.img,alt:f.title,className:"w-full h-64 sm:h-80 md:h-[420px] object-cover",loading:"lazy"})}),v.jsxs("div",{className:"space-y-6 text-center md:text-left",children:[v.jsx("h3",{className:"text-3xl sm:text-4xl font-extrabold text-green-900",children:f.title}),v.jsx("p",{className:"text-gray-700 text-lg",children:f.desc}),v.jsx("button",{onClick:()=>u(f.link),className:"inline-block bg-green-700 text-white px-8 py-3 rounded-full shadow-lg hover:bg-green-800 hover:shadow-xl transition will-change-transform",children:"Explore"})]})]},d))})}),v.jsx("section",{className:"py-16 sm:py-24 bg-green-50",children:v.jsx("div",{className:"max-w-6xl mx-auto px-6 grid grid-cols-1 sm:grid-cols-3 gap-10 text-center",children:s.map((f,d)=>v.jsxs(F.div,{variants:br,initial:"hidden",whileInView:"visible",viewport:{once:!0},custom:d,children:[v.jsx("h3",{className:"text-4xl sm:text-5xl font-extrabold text-green-900",children:f.value}),v.jsx("p",{className:"text-gray-700 mt-3 text-lg",children:f.label})]},d))})}),v.jsx(Cr.Suspense,{fallback:v.jsx("div",{className:"py-28 bg-green-50 text-center",children:"Loading..."}),children:v.jsx(g3,{})}),v.jsx("section",{className:"py-24 sm:py-32 bg-gradient-to-r from-green-900 via-green-700 to-green-600 text-center text-white relative overflow-hidden",children:v.jsxs(F.div,{initial:{scale:.9,opacity:0},whileInView:{scale:1,opacity:1},transition:{duration:.8},viewport:{once:!0},children:[v.jsx("h2",{className:"text-4xl sm:text-5xl md:text-6xl font-extrabold mb-6",children:"Ready to Partner with Us?"}),v.jsx("p",{className:"mb-10 max-w-2xl mx-auto text-lg sm:text-xl",children:"From farms to fuel, Chetas Agrotech is shaping a greener future. Join our journey toward sustainable agriculture and renewable energy."}),v.jsx("button",{onClick:()=>n("/contact"),className:"bg-yellow-400 text-green-900 font-bold px-10 py-4 rounded-full shadow-xl hover:bg-yellow-500 transition will-change-transform",children:"Get in Touch"})]})})]})};var Nr={exports:{}},v3=Nr.exports,Sg;function x3(){return Sg||(Sg=1,(function(n,i){(function(s,r){n.exports=r()})(v3,function(){return(function(s){function r(f){if(u[f])return u[f].exports;var d=u[f]={exports:{},id:f,loaded:!1};return s[f].call(d.exports,d,d.exports,r),d.loaded=!0,d.exports}var u={};return r.m=s,r.c=u,r.p="dist/",r(0)})([function(s,r,u){function f(lt){return lt&&lt.__esModule?lt:{default:lt}}var d=Object.assign||function(lt){for(var St=1;St<arguments.length;St++){var z=arguments[St];for(var X in z)Object.prototype.hasOwnProperty.call(z,X)&&(lt[X]=z[X])}return lt},m=u(1),p=(f(m),u(6)),h=f(p),y=u(7),b=f(y),S=u(8),E=f(S),j=u(9),U=f(j),V=u(10),_=f(V),L=u(11),q=f(L),I=u(14),G=f(I),$=[],nt=!1,P={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},st=function(){var lt=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(lt&&(nt=!0),nt)return $=(0,q.default)($,P),(0,_.default)($,P.once),$},yt=function(){$=(0,G.default)(),st()},J=function(){$.forEach(function(lt,St){lt.node.removeAttribute("data-aos"),lt.node.removeAttribute("data-aos-easing"),lt.node.removeAttribute("data-aos-duration"),lt.node.removeAttribute("data-aos-delay")})},K=function(lt){return lt===!0||lt==="mobile"&&U.default.mobile()||lt==="phone"&&U.default.phone()||lt==="tablet"&&U.default.tablet()||typeof lt=="function"&&lt()===!0},pt=function(lt){P=d(P,lt),$=(0,G.default)();var St=document.all&&!window.atob;return K(P.disable)||St?J():(P.disableMutationObserver||E.default.isSupported()||(console.info(`
      aos: MutationObserver is not supported on this browser,
      code mutations observing has been disabled.
      You may have to call "refreshHard()" by yourself.
    `),P.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",P.easing),document.querySelector("body").setAttribute("data-aos-duration",P.duration),document.querySelector("body").setAttribute("data-aos-delay",P.delay),P.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?st(!0):P.startEvent==="load"?window.addEventListener(P.startEvent,function(){st(!0)}):document.addEventListener(P.startEvent,function(){st(!0)}),window.addEventListener("resize",(0,b.default)(st,P.debounceDelay,!0)),window.addEventListener("orientationchange",(0,b.default)(st,P.debounceDelay,!0)),window.addEventListener("scroll",(0,h.default)(function(){(0,_.default)($,P.once)},P.throttleDelay)),P.disableMutationObserver||E.default.ready("[data-aos]",yt),$)};s.exports={init:pt,refresh:st,refreshHard:yt}},function(s,r){},,,,,function(s,r){(function(u){function f(K,pt,lt){function St(Tt){var re=tt,Je=ht;return tt=ht=void 0,ze=Tt,At=K.apply(Je,re)}function z(Tt){return ze=Tt,ft=setTimeout(dt,pt),be?St(Tt):At}function X(Tt){var re=Tt-qt,Je=Tt-ze,we=pt-re;return Se?yt(we,it-Je):we}function W(Tt){var re=Tt-qt,Je=Tt-ze;return qt===void 0||re>=pt||re<0||Se&&Je>=it}function dt(){var Tt=J();return W(Tt)?T(Tt):void(ft=setTimeout(dt,X(Tt)))}function T(Tt){return ft=void 0,zt&&tt?St(Tt):(tt=ht=void 0,At)}function Y(){ft!==void 0&&clearTimeout(ft),ze=0,tt=qt=ht=ft=void 0}function Q(){return ft===void 0?At:T(J())}function Z(){var Tt=J(),re=W(Tt);if(tt=arguments,ht=this,qt=Tt,re){if(ft===void 0)return z(qt);if(Se)return ft=setTimeout(dt,pt),St(qt)}return ft===void 0&&(ft=setTimeout(dt,pt)),At}var tt,ht,it,At,ft,qt,ze=0,be=!1,Se=!1,zt=!0;if(typeof K!="function")throw new TypeError(S);return pt=y(pt)||0,m(lt)&&(be=!!lt.leading,Se="maxWait"in lt,it=Se?st(y(lt.maxWait)||0,pt):it,zt="trailing"in lt?!!lt.trailing:zt),Z.cancel=Y,Z.flush=Q,Z}function d(K,pt,lt){var St=!0,z=!0;if(typeof K!="function")throw new TypeError(S);return m(lt)&&(St="leading"in lt?!!lt.leading:St,z="trailing"in lt?!!lt.trailing:z),f(K,pt,{leading:St,maxWait:pt,trailing:z})}function m(K){var pt=typeof K>"u"?"undefined":b(K);return!!K&&(pt=="object"||pt=="function")}function p(K){return!!K&&(typeof K>"u"?"undefined":b(K))=="object"}function h(K){return(typeof K>"u"?"undefined":b(K))=="symbol"||p(K)&&P.call(K)==j}function y(K){if(typeof K=="number")return K;if(h(K))return E;if(m(K)){var pt=typeof K.valueOf=="function"?K.valueOf():K;K=m(pt)?pt+"":pt}if(typeof K!="string")return K===0?K:+K;K=K.replace(U,"");var lt=_.test(K);return lt||L.test(K)?q(K.slice(2),lt?2:8):V.test(K)?E:+K}var b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},S="Expected a function",E=NaN,j="[object Symbol]",U=/^\s+|\s+$/g,V=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,L=/^0o[0-7]+$/i,q=parseInt,I=(typeof u>"u"?"undefined":b(u))=="object"&&u&&u.Object===Object&&u,G=(typeof self>"u"?"undefined":b(self))=="object"&&self&&self.Object===Object&&self,$=I||G||Function("return this")(),nt=Object.prototype,P=nt.toString,st=Math.max,yt=Math.min,J=function(){return $.Date.now()};s.exports=d}).call(r,(function(){return this})())},function(s,r){(function(u){function f(J,K,pt){function lt(zt){var Tt=Z,re=tt;return Z=tt=void 0,qt=zt,it=J.apply(re,Tt)}function St(zt){return qt=zt,At=setTimeout(W,K),ze?lt(zt):it}function z(zt){var Tt=zt-ft,re=zt-qt,Je=K-Tt;return be?st(Je,ht-re):Je}function X(zt){var Tt=zt-ft,re=zt-qt;return ft===void 0||Tt>=K||Tt<0||be&&re>=ht}function W(){var zt=yt();return X(zt)?dt(zt):void(At=setTimeout(W,z(zt)))}function dt(zt){return At=void 0,Se&&Z?lt(zt):(Z=tt=void 0,it)}function T(){At!==void 0&&clearTimeout(At),qt=0,Z=ft=tt=At=void 0}function Y(){return At===void 0?it:dt(yt())}function Q(){var zt=yt(),Tt=X(zt);if(Z=arguments,tt=this,ft=zt,Tt){if(At===void 0)return St(ft);if(be)return At=setTimeout(W,K),lt(ft)}return At===void 0&&(At=setTimeout(W,K)),it}var Z,tt,ht,it,At,ft,qt=0,ze=!1,be=!1,Se=!0;if(typeof J!="function")throw new TypeError(b);return K=h(K)||0,d(pt)&&(ze=!!pt.leading,be="maxWait"in pt,ht=be?P(h(pt.maxWait)||0,K):ht,Se="trailing"in pt?!!pt.trailing:Se),Q.cancel=T,Q.flush=Y,Q}function d(J){var K=typeof J>"u"?"undefined":y(J);return!!J&&(K=="object"||K=="function")}function m(J){return!!J&&(typeof J>"u"?"undefined":y(J))=="object"}function p(J){return(typeof J>"u"?"undefined":y(J))=="symbol"||m(J)&&nt.call(J)==E}function h(J){if(typeof J=="number")return J;if(p(J))return S;if(d(J)){var K=typeof J.valueOf=="function"?J.valueOf():J;J=d(K)?K+"":K}if(typeof J!="string")return J===0?J:+J;J=J.replace(j,"");var pt=V.test(J);return pt||_.test(J)?L(J.slice(2),pt?2:8):U.test(J)?S:+J}var y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},b="Expected a function",S=NaN,E="[object Symbol]",j=/^\s+|\s+$/g,U=/^[-+]0x[0-9a-f]+$/i,V=/^0b[01]+$/i,_=/^0o[0-7]+$/i,L=parseInt,q=(typeof u>"u"?"undefined":y(u))=="object"&&u&&u.Object===Object&&u,I=(typeof self>"u"?"undefined":y(self))=="object"&&self&&self.Object===Object&&self,G=q||I||Function("return this")(),$=Object.prototype,nt=$.toString,P=Math.max,st=Math.min,yt=function(){return G.Date.now()};s.exports=f}).call(r,(function(){return this})())},function(s,r){function u(y){var b=void 0,S=void 0;for(b=0;b<y.length;b+=1)if(S=y[b],S.dataset&&S.dataset.aos||S.children&&u(S.children))return!0;return!1}function f(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function d(){return!!f()}function m(y,b){var S=window.document,E=f(),j=new E(p);h=b,j.observe(S.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function p(y){y&&y.forEach(function(b){var S=Array.prototype.slice.call(b.addedNodes),E=Array.prototype.slice.call(b.removedNodes),j=S.concat(E);if(u(j))return h()})}Object.defineProperty(r,"__esModule",{value:!0});var h=function(){};r.default={isSupported:d,ready:m}},function(s,r){function u(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function f(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(r,"__esModule",{value:!0});var d=(function(){function S(E,j){for(var U=0;U<j.length;U++){var V=j[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(E,V.key,V)}}return function(E,j,U){return j&&S(E.prototype,j),U&&S(E,U),E}})(),m=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,p=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,h=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,y=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,b=(function(){function S(){u(this,S)}return d(S,[{key:"phone",value:function(){var E=f();return!(!m.test(E)&&!p.test(E.substr(0,4)))}},{key:"mobile",value:function(){var E=f();return!(!h.test(E)&&!y.test(E.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),S})();r.default=new b},function(s,r){Object.defineProperty(r,"__esModule",{value:!0});var u=function(d,m,p){var h=d.node.getAttribute("data-aos-once");m>d.position?d.node.classList.add("aos-animate"):typeof h<"u"&&(h==="false"||!p&&h!=="true")&&d.node.classList.remove("aos-animate")},f=function(d,m){var p=window.pageYOffset,h=window.innerHeight;d.forEach(function(y,b){u(y,h+p,m)})};r.default=f},function(s,r,u){function f(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(r,"__esModule",{value:!0});var d=u(12),m=f(d),p=function(h,y){return h.forEach(function(b,S){b.node.classList.add("aos-init"),b.position=(0,m.default)(b.node,y.offset)}),h};r.default=p},function(s,r,u){function f(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(r,"__esModule",{value:!0});var d=u(13),m=f(d),p=function(h,y){var b=0,S=0,E=window.innerHeight,j={offset:h.getAttribute("data-aos-offset"),anchor:h.getAttribute("data-aos-anchor"),anchorPlacement:h.getAttribute("data-aos-anchor-placement")};switch(j.offset&&!isNaN(j.offset)&&(S=parseInt(j.offset)),j.anchor&&document.querySelectorAll(j.anchor)&&(h=document.querySelectorAll(j.anchor)[0]),b=(0,m.default)(h).top,j.anchorPlacement){case"top-bottom":break;case"center-bottom":b+=h.offsetHeight/2;break;case"bottom-bottom":b+=h.offsetHeight;break;case"top-center":b+=E/2;break;case"bottom-center":b+=E/2+h.offsetHeight;break;case"center-center":b+=E/2+h.offsetHeight/2;break;case"top-top":b+=E;break;case"bottom-top":b+=h.offsetHeight+E;break;case"center-top":b+=h.offsetHeight/2+E}return j.anchorPlacement||j.offset||isNaN(y)||(S=y),b+S};r.default=p},function(s,r){Object.defineProperty(r,"__esModule",{value:!0});var u=function(f){for(var d=0,m=0;f&&!isNaN(f.offsetLeft)&&!isNaN(f.offsetTop);)d+=f.offsetLeft-(f.tagName!="BODY"?f.scrollLeft:0),m+=f.offsetTop-(f.tagName!="BODY"?f.scrollTop:0),f=f.offsetParent;return{top:m,left:d}};r.default=u},function(s,r){Object.defineProperty(r,"__esModule",{value:!0});var u=function(f){return f=f||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(f,function(d){return{node:d}})};r.default=u}])})})(Nr)),Nr.exports}var b3=x3();const S3=Tg(b3),Dc=["Transforming Waste into Wealth – Cow Dung to Fertilizer","From Grains to Green Energy – Renewable Ethanol","Sustainable Solutions for Farmers & Industries","Global Standards, Local Roots","Fueling Growth, Nurturing Nature"],w3=()=>{A.useEffect(()=>{S3.init({duration:900,once:!0})},[]);const n=[{step:"1",title:"Collection",desc:"Sustainably gathering fresh cow dung from our own dairy farm with over 10,000 cattle."},{step:"2",title:"Dewatering",desc:"Removing excess moisture to concentrate nutrients and improve handling."},{step:"3",title:"Sanitization",desc:"Hygienic processing to eliminate pathogens, ensuring safety and quality."},{step:"4",title:"Testing & Certification",desc:"Lab analysis for nutrient content and compliance with international organic standards."},{step:"5",title:"Packaging & Export",desc:"Custom packaging with private labeling options, ready for global distribution."}],i=[{step:"1",title:"Grain Handling",desc:"Cleaning, milling, and slurry preparation from maize & broken rice."},{step:"2",title:"Liquefaction",desc:"Enzymatic breakdown of starch into dextrin using high-temp cooking."},{step:"3",title:"Saccharification & Fermentation",desc:"Conversion into fermentable sugars and ethanol by yeast."},{step:"4",title:"Distillation & Dehydration",desc:"Multi-column distillation & molecular sieve dehydration."},{step:"5",title:"Co-Products",desc:"DDGS, CO₂, power & biogas from by-products ensuring zero waste."}],s=({steps:r,color:u})=>v.jsx("div",{className:"relative max-w-2xl mx-auto px-4",children:r.map((f,d)=>v.jsxs(F.div,{className:"flex flex-col md:flex-row items-start md:items-center mb-10 relative",initial:{opacity:0,x:d%2===0?-50:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:d*.2},children:[v.jsx("div",{className:"relative flex items-center justify-center w-12 h-12 bg-green-600 text-white font-bold rounded-full shadow-md md:mr-6 flex-shrink-0",children:f.step}),v.jsxs("div",{className:"md:ml-10 mt-4 md:mt-0",children:[v.jsx("h3",{className:`text-lg sm:text-xl md:text-2xl font-semibold text-${u}-800`,children:f.title}),v.jsx("p",{className:"text-gray-700 mt-1 text-sm sm:text-base md:text-lg",children:f.desc})]})]},d))});return v.jsxs("div",{className:"flex flex-col min-h-screen bg-gradient-to-br from-green-50 via-white to-green-100 overflow-x-hidden",children:[v.jsx(Ev,{}),v.jsx("div",{className:"relative z-10 py-8 sm:py-12 max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 mt-20 sm:mt-24",children:v.jsx(F.div,{className:"relative h-16 sm:h-20 overflow-hidden flex items-center justify-start rounded-2xl border bg-green-900/90 shadow-lg",children:v.jsx(F.div,{className:"flex whitespace-nowrap gap-6 sm:gap-12 text-green-100 font-bold uppercase text-sm sm:text-lg md:text-2xl tracking-wide select-none",animate:{x:["0%","-50%"]},transition:{x:{repeat:1/0,repeatType:"loop",duration:Dc.length*2,ease:"linear"}},children:Dc.concat(Dc).map((r,u)=>v.jsx("span",{className:"px-2 sm:px-4",children:r},u))})})}),v.jsxs("main",{className:"flex-1 max-w-5xl mx-auto space-y-16 sm:space-y-24 px-4 sm:px-6 lg:px-8 py-10 sm:py-14",children:[v.jsxs("section",{className:"rounded-3xl shadow-md p-6 sm:p-10 bg-green-50",children:[v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 sm:gap-10 items-center",children:[v.jsx(F.img,{src:"/Images/CowFertilizer.jpg",alt:"Organic Fertilizers",className:"rounded-2xl shadow-lg w-full h-auto object-cover",initial:{opacity:0,x:-80},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8}}),v.jsxs("div",{children:[v.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-green-900 mb-6",children:"Organic Fertilizers"}),v.jsx("p",{className:"text-gray-700 mb-6 text-base md:text-lg leading-relaxed",children:"Premium export-quality cow dung fertilizers, nutrient-rich, hygienically processed, and certified to meet global standards."}),v.jsxs("ul",{className:"space-y-2 list-disc list-inside text-gray-800 text-base md:text-lg leading-relaxed",children:[v.jsx("li",{children:"🌱 Enhances soil fertility and stimulates beneficial microbial life."}),v.jsx("li",{children:"🥕 Ideal for horticulture, vineyards, and sustainable farming."}),v.jsx("li",{children:"🧪 Certified lab-tested for quality assurance and safety."}),v.jsx("li",{children:"📦 Customizable packaging and export-ready options."})]})]})]}),v.jsxs("div",{className:"py-10",children:[v.jsx("h3",{className:"text-xl sm:text-2xl md:text-3xl font-bold mb-8 text-green-900 text-center",children:"Organic Fertilizer Process"}),v.jsx(s,{steps:n,color:"green"})]})]}),v.jsxs("section",{className:"rounded-3xl shadow-md p-6 sm:p-10 bg-yellow-50",children:[v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 sm:gap-10 items-center",children:[v.jsxs("div",{children:[v.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-yellow-700 mb-6",children:"Renewable Ethanol"}),v.jsx("p",{className:"text-gray-700 mb-6 text-base md:text-lg leading-relaxed",children:"Our 65 KLPD ethanol plant produces fuel ethanol, pharma-grade ethanol, ENA, and EQRS worldwide with zero liquid discharge."}),v.jsxs("ul",{className:"space-y-2 list-disc list-inside text-yellow-800 text-base md:text-lg leading-relaxed",children:[v.jsx("li",{children:"⚡ Compliant with E20 fuel blending standards for cleaner energy."}),v.jsx("li",{children:"💊 Pharma & healthcare-grade ethanol for rigorous global standards."}),v.jsx("li",{children:"♻️ Environmentally responsible with advanced Zero Liquid Discharge systems."}),v.jsx("li",{children:"🌍 Exporting across Asia, Africa, Europe, & the Middle East."})]})]}),v.jsx(F.img,{src:"/Images/EthonolFertilizer.jpg",alt:"Renewable Ethanol Plant",className:"rounded-2xl shadow-lg w-full h-auto object-cover",initial:{opacity:0,x:80},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8}})]}),v.jsxs("div",{className:"py-10",children:[v.jsx("h3",{className:"text-xl sm:text-2xl md:text-3xl font-bold mb-8 text-yellow-700 text-center",children:"Renewable Ethanol Process"}),v.jsx(s,{steps:i,color:"yellow"})]})]}),v.jsxs("div",{className:"py-10 px-6 sm:px-10 text-center bg-gradient-to-r from-green-800 to-green-600 text-white rounded-3xl max-w-2xl mx-auto shadow-xl",children:[v.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-extrabold mb-6",children:"One Stop Agro-Energy Hub"}),v.jsx("p",{className:"max-w-xl mx-auto mb-8 text-base md:text-lg leading-relaxed",children:"From organic fertilizers to renewable ethanol — we deliver complete, sustainable agro-energy solutions for farmers, industry, and the planet."}),v.jsx("a",{href:"/contact",className:"bg-yellow-400 text-green-900 font-bold px-8 py-3 rounded-full shadow-md hover:bg-yellow-500 transition text-base md:text-lg",children:"Contact Us"})]})]})]})},T3=[{src:"/Image5.png",alt:"Leaf",size:40,delay:0},{src:"/Image5.png",alt:"Leaf",size:30,delay:1e3},{src:"/Image5.png",alt:"Sprout",size:35,delay:2e3}],E3=[{title:"Eco-Friendly",icon:"🌍",description:"Minimizes chemical dependency, converting organic waste into nutrient-rich compost for sustainable farming."},{title:"Consistent High Yield",icon:"🌾",description:"Improves soil fertility and structure for healthier crops, boosting yields and long-term resilience."},{title:"Certified Organic",icon:"✅",description:"Strictly tested batches ensure purity and compliance with global organic standards."}],A3=[{icon:"🥕",text:"Organic farming & horticulture"},{icon:"🌴",text:"Soil rehabilitation & landscaping"},{icon:"🌻",text:"Greenhouse & floriculture"},{icon:"🍇",text:"Vineyards & specialty fruit cultivation"}],M3=[{title:"Clean Fuel Blending",icon:"⚡",description:"Supports renewable energy by blending bioethanol with petrol to reduce emissions."},{title:"Pharma-Grade Purity",icon:"💊",description:"GMP-certified ethanol for medicinal, healthcare, and laboratory applications."},{title:"Zero Liquid Discharge",icon:"♻️",description:"Recycles all process water, ensuring eco-friendly ethanol production."}],R3=[{icon:"⛽",text:"Bioethanol blended fuel"},{icon:"🏥",text:"Pharmaceutical & healthcare products"},{icon:"🏭",text:"Industrial solvents & chemicals"},{icon:"🌍",text:"Renewable energy initiatives"}],j3=[{number:"30+",label:"Countries Exported"},{number:"25+",label:"Years Experience"},{number:"1M+",label:"Farmers Empowered"},{number:"100%",label:"Organic Certification"}],Av={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},D3={hidden:{},visible:{transition:{staggerChildren:.2}}},N3=({scrollY:n})=>{const i=Kl(n,[0,300],[0,-50]),s=Kl(n,[0,500],[0,80]);return v.jsxs("div",{className:"relative py-16 md:py-24 px-4 md:px-8 overflow-hidden bg-gradient-to-b from-gray-50 to-green-50",children:[v.jsx(F.div,{className:"absolute top-[-120px] left-[-100px] w-56 md:w-72 h-56 md:h-72 bg-green-200 rounded-full filter blur-2xl opacity-30",style:{y:s}}),v.jsx(F.div,{className:"absolute bottom-[-100px] right-[-80px] w-72 md:w-96 h-72 md:h-96 bg-green-300 rounded-full filter blur-2xl opacity-25",style:{y:s}}),v.jsxs(F.div,{className:"text-center relative z-10 max-w-4xl mx-auto",style:{y:i},children:[v.jsx("h2",{className:"text-4xl md:text-6xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-green-400 via-green-600 to-green-700 mb-4",children:"🌱 Our Products"}),v.jsx("div",{className:"h-1 w-20 md:w-28 bg-green-600 mx-auto rounded-full mb-6"}),v.jsxs("p",{className:"text-base md:text-xl text-gray-700 leading-relaxed",children:["At ",v.jsx("span",{className:"font-semibold text-green-800",children:"Chetas Agrotech"}),", we empower farmers and industries through",v.jsx("span",{className:"text-green-700 font-semibold",children:" organic fertilizers"})," and"," ",v.jsx("span",{className:"text-yellow-600 font-semibold",children:"renewable ethanol"})," solutions for a sustainable future."]})]}),T3.map((r,u)=>v.jsx(F.img,{src:r.src,alt:r.alt,className:"absolute hidden md:block",style:{top:`${10+u*20}%`,left:`${5+u*30}%`,width:r.size},initial:{y:0,opacity:0},animate:{y:[0,-10,0],opacity:[0,1,1]},transition:{repeat:1/0,repeatDelay:2,duration:4,delay:r.delay/1e3,ease:"easeInOut"}},u))]})},wg=({title:n,highlightData:i,applications:s,image1:r,image2:u,highlightColor:f})=>v.jsxs("div",{className:"mt-28 md:mt-36 max-w-7xl mx-auto",children:[v.jsx(F.h3,{className:`text-3xl md:text-4xl font-bold text-${f}-700 text-center mb-10 md:mb-14`,initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:n}),v.jsxs(F.div,{className:`relative w-full max-w-5xl mx-auto mb-14 md:mb-20 rounded-3xl shadow-2xl overflow-hidden ${f==="yellow"?"flex items-center justify-center bg-white":""}`,initial:{scale:.95,opacity:0},whileInView:{scale:1,opacity:1},viewport:{once:!0},transition:{duration:.8},children:[v.jsx("img",{src:r,alt:n,loading:"lazy",className:`w-full ${f==="yellow"?"max-h-[400px] md:max-h-[520px] object-contain p-6":"object-cover max-h-[320px] md:max-h-[520px]"} rounded-3xl`}),v.jsx("div",{className:`absolute top-4 right-4 px-5 py-2 rounded-full shadow-lg text-sm md:text-base font-semibold
          ${f==="green"?"bg-green-600 text-white":"bg-purple-600 text-white"}`,children:f==="green"?"100% Organic ♻️":"65 KLPD Capacity ⚡"})]}),v.jsx(F.div,{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-8 max-w-6xl mx-auto px-4",variants:D3,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:i.map((d,m)=>v.jsxs(F.div,{variants:Av,className:"bg-white rounded-3xl shadow-xl p-8 text-center hover:-translate-y-2 transition-transform duration-300",children:[v.jsxs("h4",{className:`text-xl font-semibold text-${f}-800 mb-4`,children:[d.icon," ",d.title]}),v.jsx("p",{className:"text-gray-600 text-base",children:d.description})]},m))}),v.jsxs("div",{className:"mt-14 md:mt-20 max-w-6xl mx-auto grid md:grid-cols-2 gap-10 md:gap-16 items-center px-4",children:[v.jsxs("div",{children:[v.jsx("h3",{className:`text-3xl font-bold text-${f}-700 mb-8`,children:"Applications"}),v.jsx("ul",{className:"space-y-4 text-lg text-gray-700",children:s.map((d,m)=>v.jsxs("li",{className:"flex items-center gap-4 bg-gray-50 p-5 rounded-2xl shadow-sm hover:shadow-md transition",children:[v.jsx("span",{className:"text-3xl",children:d.icon})," ",d.text]},m))})]}),v.jsx("img",{src:u,alt:`${n} application`,loading:"lazy",className:"w-full rounded-3xl shadow-2xl object-cover max-h-[480px]"})]})]}),C3=()=>v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 mt-28 md:mt-36 max-w-6xl mx-auto px-4 text-center",children:j3.map((n,i)=>v.jsxs(F.div,{variants:Av,initial:"hidden",whileInView:"visible",viewport:{once:!0},className:"bg-white p-8 rounded-3xl shadow-lg hover:-translate-y-2 transition-transform duration-300",children:[v.jsx("h3",{className:"text-3xl md:text-4xl font-extrabold text-green-800",children:n.number}),v.jsx("p",{className:"text-base md:text-lg text-gray-600 mt-2",children:n.label})]},i))}),O3=()=>v.jsxs("div",{className:"mt-28 md:mt-36 text-center py-16 md:py-20 px-6 md:px-12 bg-gradient-to-r from-green-800 to-green-600 rounded-3xl text-white shadow-2xl max-w-4xl mx-auto",children:[v.jsx("h3",{className:"text-3xl md:text-4xl font-extrabold mb-6",children:"Grow With Us"}),v.jsx("p",{className:"text-lg md:text-xl mb-10 max-w-xl mx-auto",children:"Our fertilizers and ethanol solutions empower farmers and industries alike to build a sustainable and prosperous tomorrow."}),v.jsx("a",{href:"/contact",className:"bg-yellow-500 hover:bg-yellow-600 text-green-900 font-bold py-4 px-14 rounded-full shadow-lg transition text-lg",children:"Contact Us"})]}),z3=()=>{const{scrollY:n}=l3();return v.jsxs("section",{children:[v.jsx(N3,{scrollY:n}),v.jsx(wg,{title:"Premium Cow Dung Fertilizers",highlightData:E3,applications:A3,image1:"/Images/CowFertilizer7.png",image2:"/Images/CowFertilizer6.png",highlightColor:"green"}),v.jsx(wg,{title:"Advanced Ethanol Solutions",highlightData:M3,applications:R3,image1:"/Images/EthonolFertilizer6.jpeg",image2:"/Images/EthonolFertilizer2.jpg",highlightColor:"yellow"}),v.jsx(C3,{}),v.jsx(O3,{})]})},V3=[{title:"🐄 Cow Care & Sustainability",description:"Managing 10,000+ healthy cattle with automated feeding, hygiene, and health monitoring — ensuring well-being and high-quality raw material for organic fertilizers.",image:"/Images/CowSuntain1.jpeg"},{title:"🌱 Organic Fertilizers",description:"Premium dewatered cow dung processed into nutrient-rich, hygienic fertilizers that improve soil fertility, boost microbial life, and maximize crop yields.",image:"/Images/OrganicFertilizer.jpg"},{title:"⚡ Renewable Ethanol",description:"Our 65 KLPD grain-based ethanol plant with Zero Liquid Discharge (ZLD) produces pharma-grade, ENA, and biofuel ethanol, supporting clean energy and reduced emissions.",image:"/Images/Renewable1.jpeg"},{title:"⚙️ Advanced Technology",description:"State-of-the-art technology including RFID livestock tracking, remote health monitoring, modern distillation, and composting lines ensures precision, hygiene, and world-class output.",image:"/Images/Technology1.jpeg"},{title:"🏭 World-Class Facilities",description:"GMP-compliant ethanol plants, effluent treatment units, and advanced composting facilities designed for scalability, safety, and global operational standards.",image:"/Images/World1.jpeg"},{title:"✅ Quality & Certifications",description:"Every batch of fertilizer and ethanol is lab-tested and certified to meet international organic and pharmaceutical standards, ensuring safety and reliability.",image:"/Images/Certificate1.png"},{title:"🌍 Global Reach",description:"Supplying fertilizers and ethanol across Asia, Africa, Europe, and the Middle East with export-ready packaging, timely delivery, and reliable logistics.",image:"/Images/Global1.png"},{title:"♻️ Eco-Friendly Model",description:"Closed-loop circular model: cow dung → fertilizers → crops → ethanol → renewable energy — reducing carbon footprint and promoting sustainable farming.",image:"/Images/Eco.jpg"},{title:"👨‍🌾 Farmer Empowerment",description:"1M+ farmers benefit from fertilizers, training programs, and sustainable practices — improving soil health, increasing yields, and reducing chemical dependency.",image:"/Images/Power1.jpeg"}],_3=n=>Array.from({length:n}).map(()=>({size:20+Math.random()*20,color:`hsl(${Math.random()*120+100}, 70%, 50%)`,left:Math.random()*90,duration:8+Math.random()*6,delay:Math.random()*5})),L3=()=>{const n=A.useMemo(()=>_3(window.innerWidth<768?5:10),[]);return v.jsxs("section",{className:"relative pt-28 pb-28 sm:pt-32 sm:pb-32 px-4 sm:px-6 lg:px-12 bg-gradient-to-b from-green-50 via-white to-green-100 overflow-hidden",children:[v.jsx(F.div,{animate:{y:[0,15,0]},transition:{repeat:1/0,duration:4},className:"absolute top-10 left-10 text-6xl opacity-10",children:"🌿"}),v.jsx(F.div,{animate:{y:[0,-15,0]},transition:{repeat:1/0,duration:5},className:"absolute bottom-20 right-16 text-7xl opacity-10",children:"🍃"}),n.map((i,s)=>v.jsx(F.div,{className:"absolute rounded-full",style:{width:i.size,height:i.size,backgroundColor:i.color,left:`${i.left}%`,top:-50},initial:{y:-50,opacity:0,rotate:0,scale:.8},animate:{y:[-50,800],opacity:[0,1,0],rotate:[0,360],x:[0,Math.random()*50-25,0],scale:[.8,1,.8]},transition:{duration:i.duration,repeat:1/0,repeatDelay:i.delay,ease:"linear"}},s)),v.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[v.jsxs(F.div,{className:"text-center mb-16",initial:{opacity:0,y:-40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[v.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-green-900 mb-4 bg-clip-text text-transparent bg-gradient-to-r from-green-400 via-green-600 to-green-700",children:"Why Choose Chetas Agrotech?"}),v.jsx("div",{className:"h-1 w-24 bg-green-600 mx-auto rounded-full"}),v.jsxs("p",{className:"text-base sm:text-lg md:text-xl text-gray-700 mt-6 max-w-3xl mx-auto leading-relaxed",children:["Blending tradition with innovation — from ",v.jsx("span",{className:"font-semibold text-green-800",children:"organic fertilizers"})," to ",v.jsx("span",{className:"font-semibold text-yellow-600",children:"renewable ethanol"}),", we deliver sustainable, eco-friendly solutions empowering farmers & industries worldwide."]})]}),v.jsx("div",{className:"space-y-24",children:V3.map(({title:i,description:s,image:r},u)=>{const f=u%3===0?"md:flex-row":u%3===1?"md:flex-row-reverse":"flex-col items-center",d=u%3===0?"md:text-left text-center":u%3===1?"md:text-right text-center":"text-center";return v.jsxs(F.div,{className:`flex flex-col md:flex ${f} gap-10`,initial:{opacity:0,y:60},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.6,delay:u*.05},children:[v.jsxs(F.div,{className:"flex-1 w-full relative rounded-2xl overflow-hidden shadow-2xl",whileHover:{scale:1.04,rotate:u%2===0?1:-1},transition:{type:"spring",stiffness:200},children:[v.jsx("img",{src:r,alt:i,className:"w-full h-72 md:h-96 object-cover rounded-2xl",loading:"lazy",decoding:"async",fetchpriority:"low"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/25 via-transparent to-transparent"})]}),v.jsxs("div",{className:`flex-1 ${d}`,children:[v.jsx("h3",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 text-green-800",children:i}),v.jsx("p",{className:"text-gray-700 text-sm sm:text-base md:text-lg leading-relaxed",children:s})]})]},u)})})]})]})},U3=[{icon:"🌱",text:"Sustainably sourced from our own dairy farm with 10,000+ cattle"},{icon:"🌍",text:"Global presence across Asia, Middle East, Africa & Europe"},{icon:"🧪",text:"Tested for purity and nutrient content"},{icon:"📦",text:"Custom packaging and labeling options"},{icon:"🕒",text:"Timely global delivery and logistics support"}],B3={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.15,delayChildren:.2}}},H3={hidden:{opacity:0,x:-30},visible:{opacity:1,x:0}},q3=()=>v.jsx("section",{className:"py-20 bg-gray-50 px-6",children:v.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[v.jsx(F.h2,{className:"text-4xl font-extrabold mb-10 text-green-900",initial:{opacity:0,y:-40},animate:{opacity:1,y:0},transition:{duration:.8},children:"Why Choose Us?"}),v.jsx(F.ul,{className:"text-xl space-y-6 text-gray-700 font-medium select-none",variants:B3,initial:"hidden",animate:"visible",children:U3.map(({icon:n,text:i},s)=>v.jsxs(F.li,{className:"flex items-center justify-center gap-4 max-w-2xl mx-auto cursor-default rounded-xl p-4 bg-white shadow-lg hover:shadow-2xl transition-shadow duration-300",variants:H3,children:[v.jsx("span",{className:"text-3xl",children:n}),v.jsx("p",{children:i})]},s))})]})}),k3={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.6,staggerChildren:.15}}},Nc={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.4}}},Y3=()=>{const n=i=>{i.preventDefault();const s=i.target,r=s.name.value,u=s.email.value,f=s.message.value,d=`mailto:YOUR_EMAIL@example.com?subject=New message from ${encodeURIComponent(r)}&body=${encodeURIComponent(f)}%0D%0A%0D%0AFrom: ${encodeURIComponent(u)}`;window.location.href=d};return v.jsxs(F.form,{className:"max-w-2xl mx-auto bg-white shadow-2xl rounded-3xl p-10 space-y-6 border border-gray-200 relative overflow-hidden",initial:"hidden",animate:"visible",variants:k3,onSubmit:n,children:[v.jsx("div",{className:"absolute -top-16 -left-16 w-40 h-40 bg-green-200 rounded-full mix-blend-multiply filter blur-3xl opacity-30 animate-blob"}),v.jsx("div",{className:"absolute -bottom-16 -right-16 w-60 h-60 bg-green-300 rounded-full mix-blend-multiply filter blur-3xl opacity-30 animate-blob animation-delay-2000"}),v.jsx(F.h2,{className:"text-4xl font-bold text-center text-green-800 mb-8",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},children:"Get in Touch"}),v.jsxs(F.div,{className:"relative",variants:Nc,children:[v.jsx(W2,{className:"absolute left-3 top-5 text-green-600",size:20}),v.jsx("input",{type:"text",name:"name",required:!0,placeholder:" ",className:"peer w-full pl-10 pr-3 pt-5 pb-2 border-2 border-gray-300 rounded-xl focus:border-green-600 focus:ring-2 focus:ring-green-200 outline-none transition"}),v.jsx("label",{className:"absolute left-10 top-2 text-gray-500 text-sm transition-all peer-placeholder-shown:top-5 peer-placeholder-shown:text-gray-400 peer-placeholder-shown:text-base peer-focus:top-2 peer-focus:text-sm peer-focus:text-green-700",children:"Your Name"})]}),v.jsxs(F.div,{className:"relative",variants:Nc,children:[v.jsx(kg,{className:"absolute left-3 top-5 text-green-600",size:20}),v.jsx("input",{type:"email",name:"email",required:!0,placeholder:" ",className:"peer w-full pl-10 pr-3 pt-5 pb-2 border-2 border-gray-300 rounded-xl focus:border-green-600 focus:ring-2 focus:ring-green-200 outline-none transition"}),v.jsx("label",{className:"absolute left-10 top-2 text-gray-500 text-sm transition-all peer-placeholder-shown:top-5 peer-placeholder-shown:text-gray-400 peer-placeholder-shown:text-base peer-focus:top-2 peer-focus:text-sm peer-focus:text-green-700",children:"Your Email"})]}),v.jsxs(F.div,{className:"relative",variants:Nc,children:[v.jsx(Q2,{className:"absolute left-3 top-5 text-green-600",size:20}),v.jsx("textarea",{name:"message",rows:"5",required:!0,placeholder:" ",className:"peer w-full pl-10 pr-3 pt-5 pb-2 border-2 border-gray-300 rounded-xl focus:border-green-600 focus:ring-2 focus:ring-green-200 outline-none transition resize-none"}),v.jsx("label",{className:"absolute left-10 top-2 text-gray-500 text-sm transition-all peer-placeholder-shown:top-5 peer-placeholder-shown:text-gray-400 peer-placeholder-shown:text-base peer-focus:top-2 peer-focus:text-sm peer-focus:text-green-700",children:"Your Message"})]}),v.jsx(F.button,{type:"submit",whileHover:{scale:1.05,boxShadow:"0 0 15px rgba(34,197,94,0.5)"},whileTap:{scale:.95},className:"w-full bg-green-700 text-white font-semibold py-3 rounded-xl shadow-lg hover:bg-green-800 transition",children:"Send Message 🚀"})]})},G3=()=>v.jsxs("div",{className:"relative bg-gray-50 overflow-hidden",children:[v.jsxs("section",{className:"relative h-[60vh] md:h-[55vh] w-full flex items-center justify-center overflow-hidden",children:[v.jsx(F.div,{className:"absolute inset-0",animate:{backgroundPosition:["0% 0%","100% 100%"]},transition:{repeat:1/0,duration:20,ease:"linear"},style:{background:"linear-gradient(135deg, rgba(74,222,128,0.3), rgba(34,197,94,0.3), rgba(22,163,74,0.3), rgba(74,222,128,0.3))",backgroundSize:"400% 400%",opacity:.4}}),Array.from({length:6}).map((n,i)=>v.jsx(F.div,{className:"absolute rounded-full",style:{width:`${60+Math.random()*60}px`,height:`${60+Math.random()*60}px`,backgroundColor:`rgba(34,197,94,${.1+Math.random()*.2})`,top:`${Math.random()*80}%`,left:`${Math.random()*80}%`},animate:{y:[0,15+Math.random()*20,0],x:[0,15+Math.random()*20,0],scale:[1,1.1,1]},transition:{duration:8+Math.random()*4,repeat:1/0,repeatType:"mirror",ease:"easeInOut"}},i)),v.jsxs(F.div,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:1},className:"relative text-center px-6 max-w-3xl z-10",children:[v.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-extrabold mb-5 bg-clip-text text-transparent bg-gradient-to-r from-green-400 via-green-600 to-green-700 animate-text-shimmer",children:"Contact Us"}),v.jsx(F.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:1},className:"text-green-900 sm:text-lg md:text-xl font-medium drop-shadow-md",children:"We're here to support you. Reach out with your questions, partnership ideas, or feedback."})]})]}),v.jsx("section",{className:"relative py-16 md:py-24",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-12 grid grid-cols-1 md:grid-cols-2 gap-12 md:gap-16",children:[v.jsxs(F.div,{initial:{opacity:0,x:-60},whileInView:{opacity:1,x:0},transition:{duration:.8},viewport:{once:!0},className:"relative bg-white p-8 sm:p-10 md:p-12 rounded-3xl shadow-2xl overflow-hidden",children:[v.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-green-700 mb-4 sm:mb-6",children:"Send Us a Message"}),v.jsx("p",{className:"text-gray-700 mb-6 sm:mb-8 text-sm sm:text-base",children:"Whether you have a question, want to collaborate, or need support, please fill out the form below. We look forward to hearing from you!"}),v.jsx(Y3,{}),v.jsx("div",{className:"absolute -top-16 -left-16 w-36 h-36 bg-green-200 rounded-full mix-blend-multiply filter blur-3xl opacity-30 animate-blob"}),v.jsx("div",{className:"absolute -bottom-20 -right-20 w-52 h-52 bg-green-300 rounded-full mix-blend-multiply filter blur-3xl opacity-30 animate-blob animation-delay-3000"})]}),v.jsxs(F.div,{initial:{opacity:0,x:60},whileInView:{opacity:1,x:0},transition:{duration:.8},viewport:{once:!0},className:"space-y-8 md:space-y-10",children:[v.jsxs(F.div,{whileHover:{scale:1.03,boxShadow:"0 15px 30px rgba(34,197,94,0.3)"},className:"bg-gradient-to-r from-green-600 to-green-500 text-white p-6 sm:p-8 rounded-3xl shadow-xl transition-all duration-300",children:[v.jsx("h3",{className:"text-xl sm:text-2xl font-bold mb-4 flex items-center gap-2 text-yellow-300",children:"📞 Contact Information"}),v.jsx("p",{className:"mb-2 sm:mb-3 text-sm sm:text-base font-medium text-green-100",children:"📧 Email: info@chetasagro.com"}),v.jsx("p",{className:"mb-2 sm:mb-3 text-sm sm:text-base font-medium text-green-100",children:"☎️ Phone: 020-25871111 / 25870370"}),v.jsx("p",{className:"text-sm sm:text-base leading-relaxed text-green-200",children:"📍 Registered Office: Chetas House, Plot No. 1, Survey No. 8+9, Sutarwadi, Pashan, Pune – 411021, Maharashtra, India"}),v.jsx("p",{className:"mt-2 text-sm sm:text-base leading-relaxed text-green-200",children:"🏭 Manufacturing Plant: Gat No. 123, Agrotech Industrial Park, Ahmednagar, Maharashtra"})]}),v.jsxs(F.div,{whileHover:{scale:1.02,boxShadow:"0 10px 25px rgba(34,197,94,0.2)"},className:"bg-white shadow-lg rounded-3xl p-6 sm:p-8 transition-all duration-300",children:[v.jsx("h3",{className:"text-lg sm:text-xl font-bold mb-3 text-green-700 flex items-center gap-2",children:"🕒 Business Hours"}),v.jsxs("ul",{className:"text-gray-700 space-y-1 sm:space-y-2 text-sm sm:text-base font-medium",children:[v.jsx("li",{children:"Monday – Friday: 9:00 AM – 6:00 PM"}),v.jsx("li",{children:"Saturday: 10:00 AM – 2:00 PM"}),v.jsx("li",{children:"Sunday: Closed"})]})]}),v.jsx(F.div,{whileHover:{scale:1.01,boxShadow:"0 10px 25px rgba(34,197,94,0.2)"},className:"rounded-3xl shadow-xl overflow-hidden transition-all duration-300 h-64 sm:h-80 md:h-96",children:v.jsx("iframe",{title:"Chetas Agrotech Location",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3782.990503659798!2d73.78980387496779!3d18.502898267646148!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bc2bbed9c0e5ed9%3A0x7b77932b07c03b17!2sPashan%2C%20Pune%2C%20Maharashtra%20411021!5e0!3m2!1sen!2sin!4v1619714736717!5m2!1sen!2sin",className:"w-full h-full border-0",allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})]})]})}),v.jsx("section",{className:"py-16 md:py-20 bg-white",children:v.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[v.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-extrabold text-green-900 mb-10 sm:mb-12 text-center",children:"Frequently Asked Questions"}),v.jsx("div",{className:"space-y-4 sm:space-y-6",children:[{q:"Do you export internationally?",a:"Yes, we export fertilizers and ethanol across Asia, Africa, Europe, and the Middle East, ensuring global quality standards."},{q:"Are your fertilizers certified organic?",a:"Absolutely. Each batch undergoes strict testing and certification as per international organic farming standards."},{q:"Can I request custom packaging?",a:"Yes, we offer flexible packaging and private labeling tailored to meet global client requirements."}].map((n,i)=>v.jsxs(F.div,{whileHover:{scale:1.02},className:"bg-gray-50 p-4 sm:p-6 rounded-2xl shadow-md cursor-pointer transition",children:[v.jsx("h3",{className:"text-base sm:text-lg font-semibold text-green-800 mb-1",children:n.q}),v.jsx("p",{className:"text-gray-600 text-sm sm:text-base",children:n.a})]},i))})]})}),v.jsxs(F.section,{className:"py-12 sm:py-16 bg-gradient-to-r from-green-800 to-green-600 text-white text-center",initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.9},children:[v.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-extrabold mb-4 sm:mb-6",children:"Partner with Chetas Agrotech"}),v.jsx("p",{className:"text-yellow-200 text-sm sm:text-base md:text-lg max-w-2xl mx-auto mb-6 sm:mb-8",children:"Join us on the journey to build a sustainable future with premium organic fertilizers and renewable ethanol solutions."}),v.jsx(F.a,{href:"/contact",whileHover:{scale:1.1},className:"bg-yellow-400 hover:bg-yellow-500 text-green-900 font-semibold px-6 sm:px-10 py-3 sm:py-4 rounded-full shadow-lg transition",children:"Get in Touch Today"})]})]}),X3=()=>{const{pathname:n}=ea(),i=N1();return A.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n,i]),null};function P3(){return v.jsxs(p2,{children:[v.jsx(X3,{}),v.jsx(u3,{children:v.jsxs(K1,{children:[v.jsx(wa,{path:"/",element:v.jsx(y3,{})}),v.jsx(wa,{path:"/about",element:v.jsx(w3,{})}),v.jsx(wa,{path:"/products",element:v.jsx(z3,{})}),v.jsx(wa,{path:"/features",element:v.jsx(L3,{})}),v.jsx(wa,{path:"/why-choose-us",element:v.jsx(q3,{})}),v.jsx(wa,{path:"/contact",element:v.jsx(G3,{})})]})})]})}e1.createRoot(document.getElementById("root")).render(v.jsx(A.StrictMode,{children:v.jsx(P3,{})}));
