/home/awneajlw/.trash/assets.28/index-C5p8AD4w.js
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();var _n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function G3(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var a=function s(){var l=!1;try{l=this instanceof s}catch{}return l?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var l=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(a,s,l.get?l:{enumerable:!0,get:function(){return e[s]}})}),a}var Af={exports:{}},qi={};/**
* @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 Vy;function Y3(){if(Vy)return qi;Vy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(s,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var f in l)f!=="key"&&(c[f]=l[f])}else c=l;return l=c.ref,{$$typeof:e,type:s,key:d,ref:l!==void 0?l:null,props:c}}return qi.Fragment=n,qi.jsx=a,qi.jsxs=a,qi}var Hy;function X3(){return Hy||(Hy=1,Af.exports=Y3()),Af.exports}var u=X3(),Nf={exports:{}},Ve={};/**
* @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 Iy;function Z3(){if(Iy)return Ve;Iy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function w(b){return b===null||typeof b!="object"?null:(b=x&&b[x]||b["@@iterator"],typeof b=="function"?b:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function A(b,O,U){this.props=b,this.context=O,this.refs=S,this.updater=U||T}A.prototype.isReactComponent={},A.prototype.setState=function(b,O){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,O,"setState")},A.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function E(){}E.prototype=A.prototype;function C(b,O,U){this.props=b,this.context=O,this.refs=S,this.updater=U||T}var L=C.prototype=new E;L.constructor=C,k(L,A.prototype),L.isPureReactComponent=!0;var I=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function F(b,O,U,J,Q,ne){return U=ne.ref,{$$typeof:e,type:b,key:O,ref:U!==void 0?U:null,props:ne}}function H(b,O){return F(b.type,O,void 0,void 0,void 0,b.props)}function M(b){return typeof b=="object"&&b!==null&&b.$$typeof===e}function R(b){var O={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(U){return O[U]})}var K=/\/+/g;function P(b,O){return typeof b=="object"&&b!==null&&b.key!=null?R(""+b.key):O.toString(36)}function V(){}function j(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(V,V):(b.status="pending",b.then(function(O){b.status==="pending"&&(b.status="fulfilled",b.value=O)},function(O){b.status==="pending"&&(b.status="rejected",b.reason=O)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function W(b,O,U,J,Q){var ne=typeof b;(ne==="undefined"||ne==="boolean")&&(b=null);var ie=!1;if(b===null)ie=!0;else switch(ne){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(b.$$typeof){case e:case n:ie=!0;break;case g:return ie=b._init,W(ie(b._payload),O,U,J,Q)}}if(ie)return Q=Q(b),ie=J===""?"."+P(b,0):J,I(Q)?(U="",ie!=null&&(U=ie.replace(K,"$&/")+"/"),W(Q,O,U,"",function(Te){return Te})):Q!=null&&(M(Q)&&(Q=H(Q,U+(Q.key==null||b&&b.key===Q.key?"":(""+Q.key).replace(K,"$&/")+"/")+ie)),O.push(Q)),1;ie=0;var ve=J===""?".":J+":";if(I(b))for(var Se=0;Se<b.length;Se++)J=b[Se],ne=ve+P(J,Se),ie+=W(J,O,U,ne,Q);else if(Se=w(b),typeof Se=="function")for(b=Se.call(b),Se=0;!(J=b.next()).done;)J=J.value,ne=ve+P(J,Se++),ie+=W(J,O,U,ne,Q);else if(ne==="object"){if(typeof b.then=="function")return W(j(b),O,U,J,Q);throw O=String(b),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return ie}function Z(b,O,U){if(b==null)return b;var J=[],Q=0;return W(b,J,"","",function(ne){return O.call(U,ne,Q++)}),J}function v(b){if(b._status===-1){var O=b._result;O=O(),O.then(function(U){(b._status===0||b._status===-1)&&(b._status=1,b._result=U)},function(U){(b._status===0||b._status===-1)&&(b._status=2,b._result=U)}),b._status===-1&&(b._status=0,b._result=O)}if(b._status===1)return b._result.default;throw b._result}var ue=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)};function q(){}return Ve.Children={map:Z,forEach:function(b,O,U){Z(b,function(){O.apply(this,arguments)},U)},count:function(b){var O=0;return Z(b,function(){O++}),O},toArray:function(b){return Z(b,function(O){return O})||[]},only:function(b){if(!M(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},Ve.Component=A,Ve.Fragment=a,Ve.Profiler=l,Ve.PureComponent=C,Ve.StrictMode=s,Ve.Suspense=h,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(b){return N.H.useMemoCache(b)}},Ve.cache=function(b){return function(){return b.apply(null,arguments)}},Ve.cloneElement=function(b,O,U){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var J=k({},b.props),Q=b.key,ne=void 0;if(O!=null)for(ie in O.ref!==void 0&&(ne=void 0),O.key!==void 0&&(Q=""+O.key),O)!z.call(O,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&O.ref===void 0||(J[ie]=O[ie]);var ie=arguments.length-2;if(ie===1)J.children=U;else if(1<ie){for(var ve=Array(ie),Se=0;Se<ie;Se++)ve[Se]=arguments[Se+2];J.children=ve}return F(b.type,Q,void 0,void 0,ne,J)},Ve.createContext=function(b){return b={$$typeof:d,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:c,_context:b},b},Ve.createElement=function(b,O,U){var J,Q={},ne=null;if(O!=null)for(J in O.key!==void 0&&(ne=""+O.key),O)z.call(O,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(Q[J]=O[J]);var ie=arguments.length-2;if(ie===1)Q.children=U;else if(1<ie){for(var ve=Array(ie),Se=0;Se<ie;Se++)ve[Se]=arguments[Se+2];Q.children=ve}if(b&&b.defaultProps)for(J in ie=b.defaultProps,ie)Q[J]===void 0&&(Q[J]=ie[J]);return F(b,ne,void 0,void 0,null,Q)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(b){return{$$typeof:f,render:b}},Ve.isValidElement=M,Ve.lazy=function(b){return{$$typeof:g,_payload:{_status:-1,_result:b},_init:v}},Ve.memo=function(b,O){return{$$typeof:m,type:b,compare:O===void 0?null:O}},Ve.startTransition=function(b){var O=N.T,U={};N.T=U;try{var J=b(),Q=N.S;Q!==null&&Q(U,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(q,ue)}catch(ne){ue(ne)}finally{N.T=O}},Ve.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ve.use=function(b){return N.H.use(b)},Ve.useActionState=function(b,O,U){return N.H.useActionState(b,O,U)},Ve.useCallback=function(b,O){return N.H.useCallback(b,O)},Ve.useContext=function(b){return N.H.useContext(b)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(b,O){return N.H.useDeferredValue(b,O)},Ve.useEffect=function(b,O,U){var J=N.H;if(typeof U=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(b,O)},Ve.useId=function(){return N.H.useId()},Ve.useImperativeHandle=function(b,O,U){return N.H.useImperativeHandle(b,O,U)},Ve.useInsertionEffect=function(b,O){return N.H.useInsertionEffect(b,O)},Ve.useLayoutEffect=function(b,O){return N.H.useLayoutEffect(b,O)},Ve.useMemo=function(b,O){return N.H.useMemo(b,O)},Ve.useOptimistic=function(b,O){return N.H.useOptimistic(b,O)},Ve.useReducer=function(b,O,U){return N.H.useReducer(b,O,U)},Ve.useRef=function(b){return N.H.useRef(b)},Ve.useState=function(b){return N.H.useState(b)},Ve.useSyncExternalStore=function(b,O,U){return N.H.useSyncExternalStore(b,O,U)},Ve.useTransition=function(){return N.H.useTransition()},Ve.version="19.1.0",Ve}var qy;function Cn(){return qy||(qy=1,Nf.exports=Z3()),Nf.exports}var X=Cn();const Ra=Ic(X);var kf={exports:{}},Gi={},_f={exports:{}},Of={};/**
* @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 Gy;function W3(){return Gy||(Gy=1,function(e){function n(Z,v){var ue=Z.length;Z.push(v);e:for(;0<ue;){var q=ue-1>>>1,b=Z[q];if(0<l(b,v))Z[q]=v,Z[ue]=b,ue=q;else break e}}function a(Z){return Z.length===0?null:Z[0]}function s(Z){if(Z.length===0)return null;var v=Z[0],ue=Z.pop();if(ue!==v){Z[0]=ue;e:for(var q=0,b=Z.length,O=b>>>1;q<O;){var U=2*(q+1)-1,J=Z[U],Q=U+1,ne=Z[Q];if(0>l(J,ue))Q<b&&0>l(ne,J)?(Z[q]=ne,Z[Q]=ue,q=Q):(Z[q]=J,Z[U]=ue,q=U);else if(Q<b&&0>l(ne,ue))Z[q]=ne,Z[Q]=ue,q=Q;else break e}}return v}function l(Z,v){var ue=Z.sortIndex-v.sortIndex;return ue!==0?ue:Z.id-v.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var h=[],m=[],g=1,x=null,w=3,T=!1,k=!1,S=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function I(Z){for(var v=a(m);v!==null;){if(v.callback===null)s(m);else if(v.startTime<=Z)s(m),v.sortIndex=v.expirationTime,n(h,v);else break;v=a(m)}}function N(Z){if(S=!1,I(Z),!k)if(a(h)!==null)k=!0,z||(z=!0,P());else{var v=a(m);v!==null&&W(N,v.startTime-Z)}}var z=!1,F=-1,H=5,M=-1;function R(){return A?!0:!(e.unstable_now()-M<H)}function K(){if(A=!1,z){var Z=e.unstable_now();M=Z;var v=!0;try{e:{k=!1,S&&(S=!1,C(F),F=-1),T=!0;var ue=w;try{t:{for(I(Z),x=a(h);x!==null&&!(x.expirationTime>Z&&R());){var q=x.callback;if(typeof q=="function"){x.callback=null,w=x.priorityLevel;var b=q(x.expirationTime<=Z);if(Z=e.unstable_now(),typeof b=="function"){x.callback=b,I(Z),v=!0;break t}x===a(h)&&s(h),I(Z)}else s(h);x=a(h)}if(x!==null)v=!0;else{var O=a(m);O!==null&&W(N,O.startTime-Z),v=!1}}break e}finally{x=null,w=ue,T=!1}v=void 0}}finally{v?P():z=!1}}}var P;if(typeof L=="function")P=function(){L(K)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,j=V.port2;V.port1.onmessage=K,P=function(){j.postMessage(null)}}else P=function(){E(K,0)};function W(Z,v){F=E(function(){Z(e.unstable_now())},v)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.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"):H=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_next=function(Z){switch(w){case 1:case 2:case 3:var v=3;break;default:v=w}var ue=w;w=v;try{return Z()}finally{w=ue}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(Z,v){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var ue=w;w=Z;try{return v()}finally{w=ue}},e.unstable_scheduleCallback=function(Z,v,ue){var q=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?q+ue:q):ue=q,Z){case 1:var b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=ue+b,Z={id:g++,callback:v,priorityLevel:Z,startTime:ue,expirationTime:b,sortIndex:-1},ue>q?(Z.sortIndex=ue,n(m,Z),a(h)===null&&Z===a(m)&&(S?(C(F),F=-1):S=!0,W(N,ue-q))):(Z.sortIndex=b,n(h,Z),k||T||(k=!0,z||(z=!0,P()))),Z},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(Z){var v=w;return function(){var ue=w;w=v;try{return Z.apply(this,arguments)}finally{w=ue}}}}(Of)),Of}var Yy;function K3(){return Yy||(Yy=1,_f.exports=W3()),_f.exports}var Rf={exports:{}},Vt={};/**
* @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 Xy;function $3(){if(Xy)return Vt;Xy=1;var e=Cn();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(h,m,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:x==null?null:""+x,children:h,containerInfo:m,implementation:g}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return c(h,m,null,g)},Vt.flushSync=function(h){var m=d.T,g=s.p;try{if(d.T=null,s.p=2,h)return h()}finally{d.T=m,s.p=g,s.d.f()}},Vt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},Vt.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Vt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,x=f(g,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:T}):g==="script"&&s.d.X(h,{crossOrigin:x,integrity:w,fetchPriority:T,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Vt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=f(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},Vt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,x=f(g,m.crossOrigin);s.d.L(h,g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Vt.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=f(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},Vt.requestFormReset=function(h){s.d.r(h)},Vt.unstable_batchedUpdates=function(h,m){return h(m)},Vt.useFormState=function(h,m,g){return d.H.useFormState(h,m,g)},Vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Vt.version="19.1.0",Vt}var Zy;function Q3(){if(Zy)return Rf.exports;Zy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Rf.exports=$3(),Rf.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 Wy;function J3(){if(Wy)return Gi;Wy=1;var e=K3(),n=Cn(),a=Q3();function s(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function d(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(c(t)!==t)throw Error(s(188))}function h(t){var r=t.alternate;if(!r){if(r=c(t),r===null)throw Error(s(188));return r!==t?null:t}for(var i=t,o=r;;){var p=i.return;if(p===null)break;var y=p.alternate;if(y===null){if(o=p.return,o!==null){i=o;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===i)return f(p),t;if(y===o)return f(p),r;y=y.sibling}throw Error(s(188))}if(i.return!==o.return)i=p,o=y;else{for(var D=!1,B=p.child;B;){if(B===i){D=!0,i=p,o=y;break}if(B===o){D=!0,o=p,i=y;break}B=B.sibling}if(!D){for(B=y.child;B;){if(B===i){D=!0,i=y,o=p;break}if(B===o){D=!0,o=y,i=p;break}B=B.sibling}if(!D)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:r}function m(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=m(t),r!==null)return r;t=t.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),L=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function P(t){return t===null||typeof t!="object"?null:(t=K&&t[K]||t["@@iterator"],typeof t=="function"?t:null)}var V=Symbol.for("react.client.reference");function j(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===V?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case z:return"SuspenseList";case M:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case T:return"Portal";case L:return(t.displayName||"Context")+".Provider";case C:return(t._context.displayName||"Context")+".Consumer";case I:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return r=t.displayName||null,r!==null?r:j(t.type)||"Memo";case H:r=t._payload,t=t._init;try{return j(t(r))}catch{}}return null}var W=Array.isArray,Z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,v=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},q=[],b=-1;function O(t){return{current:t}}function U(t){0>b||(t.current=q[b],q[b]=null,b--)}function J(t,r){b++,q[b]=t.current,t.current=r}var Q=O(null),ne=O(null),ie=O(null),ve=O(null);function Se(t,r){switch(J(ie,r),J(ne,t),J(Q,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?py(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=py(r),t=gy(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(Q),J(Q,t)}function Te(){U(Q),U(ne),U(ie)}function Ne(t){t.memoizedState!==null&&J(ve,t);var r=Q.current,i=gy(r,t.type);r!==i&&(J(ne,t),J(Q,i))}function Oe(t){ne.current===t&&(U(Q),U(ne)),ve.current===t&&(U(ve),Bi._currentValue=ue)}var Le=Object.prototype.hasOwnProperty,Re=e.unstable_scheduleCallback,_=e.unstable_cancelCallback,de=e.unstable_shouldYield,ce=e.unstable_requestPaint,G=e.unstable_now,Y=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,le=e.unstable_LowPriority,je=e.unstable_IdlePriority,Ee=e.log,ee=e.unstable_setDisableYieldValue,xe=null,ke=null;function Ce(t){if(typeof Ee=="function"&&ee(t),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(xe,t)}catch{}}var He=Math.clz32?Math.clz32:yn,sn=Math.log,ft=Math.LN2;function yn(t){return t>>>=0,t===0?32:31-(sn(t)/ft|0)|0}var st=256,rr=4194304;function Ln(t){var r=t&42;if(r!==0)return r;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 Wt(t,r,i){var o=t.pendingLanes;if(o===0)return 0;var p=0,y=t.suspendedLanes,D=t.pingedLanes;t=t.warmLanes;var B=o&134217727;return B!==0?(o=B&~y,o!==0?p=Ln(o):(D&=B,D!==0?p=Ln(D):i||(i=B&~t,i!==0&&(p=Ln(i))))):(B=o&~y,B!==0?p=Ln(B):D!==0?p=Ln(D):i||(i=o&~t,i!==0&&(p=Ln(i)))),p===0?0:r!==0&&r!==p&&(r&y)===0&&(y=p&-p,i=r&-r,y>=i||y===32&&(i&4194048)!==0)?r:p}function kr(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function mu(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 zl(){var t=st;return st<<=1,(st&4194048)===0&&(st=256),t}function Ul(){var t=rr;return rr<<=1,(rr&62914560)===0&&(rr=4194304),t}function Ba(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function Pn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Fa(t,r,i,o,p,y){var D=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var B=t.entanglements,$=t.expirationTimes,oe=t.hiddenUpdates;for(i=D&~i;0<i;){var ge=31-He(i),we=1<<ge;B[ge]=0,$[ge]=-1;var fe=oe[ge];if(fe!==null)for(oe[ge]=null,ge=0;ge<fe.length;ge++){var he=fe[ge];he!==null&&(he.lane&=-536870913)}i&=~we}o!==0&&ep(t,o,0),y!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=y&~(D&~r))}function ep(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var o=31-He(r);t.entangledLanes|=r,t.entanglements[o]=t.entanglements[o]|1073741824|i&4194090}function tp(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var o=31-He(i),p=1<<o;p&r|t[o]&r&&(t[o]|=r),i&=~p}}function pu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function gu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function np(){var t=v.p;return t!==0?t:(t=window.event,t===void 0?32:Ly(t.type))}function M2(t,r){var i=v.p;try{return v.p=t,r()}finally{v.p=i}}var _r=Math.random().toString(36).slice(2),Bt="__reactFiber$"+_r,Kt="__reactProps$"+_r,Va="__reactContainer$"+_r,yu="__reactEvents$"+_r,L2="__reactListeners$"+_r,P2="__reactHandles$"+_r,rp="__reactResources$"+_r,Ks="__reactMarker$"+_r;function xu(t){delete t[Bt],delete t[Kt],delete t[yu],delete t[L2],delete t[P2]}function Ha(t){var r=t[Bt];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Va]||i[Bt]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=vy(t);t!==null;){if(i=t[Bt])return i;t=vy(t)}return r}t=i,i=t.parentNode}return null}function Ia(t){if(t=t[Bt]||t[Va]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function $s(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(s(33))}function qa(t){var r=t[rp];return r||(r=t[rp]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ot(t){t[Ks]=!0}var ap=new Set,sp={};function ia(t,r){Ga(t,r),Ga(t+"Capture",r)}function Ga(t,r){for(sp[t]=r,t=0;t<r.length;t++)ap.add(r[t])}var z2=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]*$"),ip={},lp={};function U2(t){return Le.call(lp,t)?!0:Le.call(ip,t)?!1:z2.test(t)?lp[t]=!0:(ip[t]=!0,!1)}function Bl(t,r,i){if(U2(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var o=r.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function Fl(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function ar(t,r,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+o)}}var bu,op;function Ya(t){if(bu===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);bu=r&&r[1]||"",op=-1<i.stack.indexOf(`
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+bu+t+op}var vu=!1;function wu(t,r){if(!t||vu)return"";vu=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(r){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(he){var fe=he}Reflect.construct(t,[],we)}else{try{we.call()}catch(he){fe=he}t.call(we.prototype)}}else{try{throw Error()}catch(he){fe=he}(we=t())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(he){if(he&&fe&&typeof he.stack=="string")return[he.stack,fe.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=o.DetermineComponentFrameRoot(),D=y[0],B=y[1];if(D&&B){var $=D.split(`
`),oe=B.split(`
`);for(p=o=0;o<$.length&&!$[o].includes("DetermineComponentFrameRoot");)o++;for(;p<oe.length&&!oe[p].includes("DetermineComponentFrameRoot");)p++;if(o===$.length||p===oe.length)for(o=$.length-1,p=oe.length-1;1<=o&&0<=p&&$[o]!==oe[p];)p--;for(;1<=o&&0<=p;o--,p--)if($[o]!==oe[p]){if(o!==1||p!==1)do if(o--,p--,0>p||$[o]!==oe[p]){var ge=`
`+$[o].replace(" at new "," at ");return t.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",t.displayName)),ge}while(1<=o&&0<=p);break}}}finally{vu=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ya(i):""}function B2(t){switch(t.tag){case 26:case 27:case 5:return Ya(t.type);case 16:return Ya("Lazy");case 13:return Ya("Suspense");case 19:return Ya("SuspenseList");case 0:case 15:return wu(t.type,!1);case 11:return wu(t.type.render,!1);case 1:return wu(t.type,!0);case 31:return Ya("Activity");default:return""}}function cp(t){try{var r="";do r+=B2(t),t=t.return;while(t);return r}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function xn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function up(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function F2(t){var r=up(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),o=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var p=i.get,y=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(D){o=""+D,y.call(this,D)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(D){o=""+D},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Vl(t){t._valueTracker||(t._valueTracker=F2(t))}function dp(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),o="";return t&&(o=up(t)?t.checked?"true":"false":t.value),t=o,t!==i?(r.setValue(t),!0):!1}function Hl(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 V2=/[\n"\\]/g;function bn(t){return t.replace(V2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Su(t,r,i,o,p,y,D,B){t.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?t.type=D:t.removeAttribute("type"),r!=null?D==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+xn(r)):t.value!==""+xn(r)&&(t.value=""+xn(r)):D!=="submit"&&D!=="reset"||t.removeAttribute("value"),r!=null?ju(t,D,xn(r)):i!=null?ju(t,D,xn(i)):o!=null&&t.removeAttribute("value"),p==null&&y!=null&&(t.defaultChecked=!!y),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?t.name=""+xn(B):t.removeAttribute("name")}function fp(t,r,i,o,p,y,D,B){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.type=y),r!=null||i!=null){if(!(y!=="submit"&&y!=="reset"||r!=null))return;i=i!=null?""+xn(i):"",r=r!=null?""+xn(r):i,B||r===t.value||(t.value=r),t.defaultValue=r}o=o??p,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=B?t.checked:!!o,t.defaultChecked=!!o,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(t.name=D)}function ju(t,r,i){r==="number"&&Hl(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Xa(t,r,i,o){if(t=t.options,r){r={};for(var p=0;p<i.length;p++)r["$"+i[p]]=!0;for(i=0;i<t.length;i++)p=r.hasOwnProperty("$"+t[i].value),t[i].selected!==p&&(t[i].selected=p),p&&o&&(t[i].defaultSelected=!0)}else{for(i=""+xn(i),r=null,p=0;p<t.length;p++){if(t[p].value===i){t[p].selected=!0,o&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function hp(t,r,i){if(r!=null&&(r=""+xn(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+xn(i):""}function mp(t,r,i,o){if(r==null){if(o!=null){if(i!=null)throw Error(s(92));if(W(o)){if(1<o.length)throw Error(s(93));o=o[0]}i=o}i==null&&(i=""),r=i}i=xn(r),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o)}function Za(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var H2=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 pp(t,r,i){var o=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":o?t.setProperty(r,i):typeof i!="number"||i===0||H2.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function gp(t,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||r!=null&&r.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var p in r)o=r[p],r.hasOwnProperty(p)&&i[p]!==o&&pp(t,p,o)}else for(var y in r)r.hasOwnProperty(y)&&pp(t,y,r[y])}function Tu(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 I2=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"]]),q2=/^[\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 Il(t){return q2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Eu=null;function Au(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Wa=null,Ka=null;function yp(t){var r=Ia(t);if(r&&(t=r.stateNode)){var i=t[Kt]||null;e:switch(t=r.stateNode,r.type){case"input":if(Su(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+bn(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var o=i[r];if(o!==t&&o.form===t.form){var p=o[Kt]||null;if(!p)throw Error(s(90));Su(o,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<i.length;r++)o=i[r],o.form===t.form&&dp(o)}break e;case"textarea":hp(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Xa(t,!!i.multiple,r,!1)}}}var Nu=!1;function xp(t,r,i){if(Nu)return t(r,i);Nu=!0;try{var o=t(r);return o}finally{if(Nu=!1,(Wa!==null||Ka!==null)&&(_o(),Wa&&(r=Wa,t=Ka,Ka=Wa=null,yp(r),t)))for(r=0;r<t.length;r++)yp(t[r])}}function Qs(t,r){var i=t.stateNode;if(i===null)return null;var o=i[Kt]||null;if(o===null)return null;i=o[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=!1;if(sr)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){ku=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{ku=!1}var Or=null,_u=null,ql=null;function bp(){if(ql)return ql;var t,r=_u,i=r.length,o,p="value"in Or?Or.value:Or.textContent,y=p.length;for(t=0;t<i&&r[t]===p[t];t++);var D=i-t;for(o=1;o<=D&&r[i-o]===p[y-o];o++);return ql=p.slice(t,1<o?1-o:void 0)}function Gl(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Yl(){return!0}function vp(){return!1}function $t(t){function r(i,o,p,y,D){this._reactName=i,this._targetInst=p,this.type=o,this.nativeEvent=y,this.target=D,this.currentTarget=null;for(var B in t)t.hasOwnProperty(B)&&(i=t[B],this[B]=i?i(y):y[B]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Yl:vp,this.isPropagationStopped=vp,this}return g(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Yl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Yl)},persist:function(){},isPersistent:Yl}),r}var la={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xl=$t(la),ei=g({},la,{view:0,detail:0}),G2=$t(ei),Ou,Ru,ti,Zl=g({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,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!==ti&&(ti&&t.type==="mousemove"?(Ou=t.screenX-ti.screenX,Ru=t.screenY-ti.screenY):Ru=Ou=0,ti=t),Ou)},movementY:function(t){return"movementY"in t?t.movementY:Ru}}),wp=$t(Zl),Y2=g({},Zl,{dataTransfer:0}),X2=$t(Y2),Z2=g({},ei,{relatedTarget:0}),Cu=$t(Z2),W2=g({},la,{animationName:0,elapsedTime:0,pseudoElement:0}),K2=$t(W2),$2=g({},la,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Q2=$t($2),J2=g({},la,{data:0}),Sp=$t(J2),eS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tS={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"},nS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=nS[t])?!!r[t]:!1}function Du(){return rS}var aS=g({},ei,{key:function(t){if(t.key){var r=eS[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Gl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?tS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(t){return t.type==="keypress"?Gl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Gl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),sS=$t(aS),iS=g({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jp=$t(iS),lS=g({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),oS=$t(lS),cS=g({},la,{propertyName:0,elapsedTime:0,pseudoElement:0}),uS=$t(cS),dS=g({},Zl,{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}),fS=$t(dS),hS=g({},la,{newState:0,oldState:0}),mS=$t(hS),pS=[9,13,27,32],Mu=sr&&"CompositionEvent"in window,ni=null;sr&&"documentMode"in document&&(ni=document.documentMode);var gS=sr&&"TextEvent"in window&&!ni,Tp=sr&&(!Mu||ni&&8<ni&&11>=ni),Ep=" ",Ap=!1;function Np(t,r){switch(t){case"keyup":return pS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var $a=!1;function yS(t,r){switch(t){case"compositionend":return kp(r);case"keypress":return r.which!==32?null:(Ap=!0,Ep);case"textInput":return t=r.data,t===Ep&&Ap?null:t;default:return null}}function xS(t,r){if($a)return t==="compositionend"||!Mu&&Np(t,r)?(t=bp(),ql=_u=Or=null,$a=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Tp&&r.locale!=="ko"?null:r.data;default:return null}}var bS={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 _p(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!bS[t.type]:r==="textarea"}function Op(t,r,i,o){Wa?Ka?Ka.push(o):Ka=[o]:Wa=o,r=Lo(r,"onChange"),0<r.length&&(i=new Xl("onChange","change",null,i,o),t.push({event:i,listeners:r}))}var ri=null,ai=null;function vS(t){uy(t,0)}function Wl(t){var r=$s(t);if(dp(r))return t}function Rp(t,r){if(t==="change")return r}var Cp=!1;if(sr){var Lu;if(sr){var Pu="oninput"in document;if(!Pu){var Dp=document.createElement("div");Dp.setAttribute("oninput","return;"),Pu=typeof Dp.oninput=="function"}Lu=Pu}else Lu=!1;Cp=Lu&&(!document.documentMode||9<document.documentMode)}function Mp(){ri&&(ri.detachEvent("onpropertychange",Lp),ai=ri=null)}function Lp(t){if(t.propertyName==="value"&&Wl(ai)){var r=[];Op(r,ai,t,Au(t)),xp(vS,r)}}function wS(t,r,i){t==="focusin"?(Mp(),ri=r,ai=i,ri.attachEvent("onpropertychange",Lp)):t==="focusout"&&Mp()}function SS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wl(ai)}function jS(t,r){if(t==="click")return Wl(r)}function TS(t,r){if(t==="input"||t==="change")return Wl(r)}function ES(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var ln=typeof Object.is=="function"?Object.is:ES;function si(t,r){if(ln(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),o=Object.keys(r);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var p=i[o];if(!Le.call(r,p)||!ln(t[p],r[p]))return!1}return!0}function Pp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zp(t,r){var i=Pp(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=r&&o>=r)return{node:i,offset:r-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Pp(i)}}function Up(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Up(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Bp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Hl(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Hl(t.document)}return r}function zu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var AS=sr&&"documentMode"in document&&11>=document.documentMode,Qa=null,Uu=null,ii=null,Bu=!1;function Fp(t,r,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Bu||Qa==null||Qa!==Hl(o)||(o=Qa,"selectionStart"in o&&zu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ii&&si(ii,o)||(ii=o,o=Lo(Uu,"onSelect"),0<o.length&&(r=new Xl("onSelect","select",null,r,i),t.push({event:r,listeners:o}),r.target=Qa)))}function oa(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Ja={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},Fu={},Vp={};sr&&(Vp=document.createElement("div").style,"AnimationEvent"in window||(delete Ja.animationend.animation,delete Ja.animationiteration.animation,delete Ja.animationstart.animation),"TransitionEvent"in window||delete Ja.transitionend.transition);function ca(t){if(Fu[t])return Fu[t];if(!Ja[t])return t;var r=Ja[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in Vp)return Fu[t]=r[i];return t}var Hp=ca("animationend"),Ip=ca("animationiteration"),qp=ca("animationstart"),NS=ca("transitionrun"),kS=ca("transitionstart"),_S=ca("transitioncancel"),Gp=ca("transitionend"),Yp=new Map,Vu="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(" ");Vu.push("scrollEnd");function zn(t,r){Yp.set(t,r),ia(r,[t])}var Xp=new WeakMap;function vn(t,r){if(typeof t=="object"&&t!==null){var i=Xp.get(t);return i!==void 0?i:(r={value:t,source:r,stack:cp(r)},Xp.set(t,r),r)}return{value:t,source:r,stack:cp(r)}}var wn=[],es=0,Hu=0;function Kl(){for(var t=es,r=Hu=es=0;r<t;){var i=wn[r];wn[r++]=null;var o=wn[r];wn[r++]=null;var p=wn[r];wn[r++]=null;var y=wn[r];if(wn[r++]=null,o!==null&&p!==null){var D=o.pending;D===null?p.next=p:(p.next=D.next,D.next=p),o.pending=p}y!==0&&Zp(i,p,y)}}function $l(t,r,i,o){wn[es++]=t,wn[es++]=r,wn[es++]=i,wn[es++]=o,Hu|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function Iu(t,r,i,o){return $l(t,r,i,o),Ql(t)}function ts(t,r){return $l(t,null,null,r),Ql(t)}function Zp(t,r,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var p=!1,y=t.return;y!==null;)y.childLanes|=i,o=y.alternate,o!==null&&(o.childLanes|=i),y.tag===22&&(t=y.stateNode,t===null||t._visibility&1||(p=!0)),t=y,y=y.return;return t.tag===3?(y=t.stateNode,p&&r!==null&&(p=31-He(i),t=y.hiddenUpdates,o=t[p],o===null?t[p]=[r]:o.push(r),r.lane=i|536870912),y):null}function Ql(t){if(50<Ri)throw Ri=0,Wd=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var ns={};function OS(t,r,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(t,r,i,o){return new OS(t,r,i,o)}function qu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ir(t,r){var i=t.alternate;return i===null?(i=on(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Wp(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Jl(t,r,i,o,p,y){var D=0;if(o=t,typeof t=="function")qu(t)&&(D=1);else if(typeof t=="string")D=C3(t,i,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case M:return t=on(31,i,r,p),t.elementType=M,t.lanes=y,t;case k:return ua(i.children,p,y,r);case S:D=8,p|=24;break;case A:return t=on(12,i,r,p|2),t.elementType=A,t.lanes=y,t;case N:return t=on(13,i,r,p),t.elementType=N,t.lanes=y,t;case z:return t=on(19,i,r,p),t.elementType=z,t.lanes=y,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case E:case L:D=10;break e;case C:D=9;break e;case I:D=11;break e;case F:D=14;break e;case H:D=16,o=null;break e}D=29,i=Error(s(130,t===null?"null":typeof t,"")),o=null}return r=on(D,i,r,p),r.elementType=t,r.type=o,r.lanes=y,r}function ua(t,r,i,o){return t=on(7,t,o,r),t.lanes=i,t}function Gu(t,r,i){return t=on(6,t,null,r),t.lanes=i,t}function Yu(t,r,i){return r=on(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var rs=[],as=0,eo=null,to=0,Sn=[],jn=0,da=null,lr=1,or="";function fa(t,r){rs[as++]=to,rs[as++]=eo,eo=t,to=r}function Kp(t,r,i){Sn[jn++]=lr,Sn[jn++]=or,Sn[jn++]=da,da=t;var o=lr;t=or;var p=32-He(o)-1;o&=~(1<<p),i+=1;var y=32-He(r)+p;if(30<y){var D=p-p%5;y=(o&(1<<D)-1).toString(32),o>>=D,p-=D,lr=1<<32-He(r)+p|i<<p|o,or=y+t}else lr=1<<y|i<<p|o,or=t}function Xu(t){t.return!==null&&(fa(t,1),Kp(t,1,0))}function Zu(t){for(;t===eo;)eo=rs[--as],rs[as]=null,to=rs[--as],rs[as]=null;for(;t===da;)da=Sn[--jn],Sn[jn]=null,or=Sn[--jn],Sn[jn]=null,lr=Sn[--jn],Sn[jn]=null}var Gt=null,gt=null,Ke=!1,ha=null,Zn=!1,Wu=Error(s(519));function ma(t){var r=Error(s(418,""));throw ci(vn(r,t)),Wu}function $p(t){var r=t.stateNode,i=t.type,o=t.memoizedProps;switch(r[Bt]=t,r[Kt]=o,i){case"dialog":Ye("cancel",r),Ye("close",r);break;case"iframe":case"object":case"embed":Ye("load",r);break;case"video":case"audio":for(i=0;i<Di.length;i++)Ye(Di[i],r);break;case"source":Ye("error",r);break;case"img":case"image":case"link":Ye("error",r),Ye("load",r);break;case"details":Ye("toggle",r);break;case"input":Ye("invalid",r),fp(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),Vl(r);break;case"select":Ye("invalid",r);break;case"textarea":Ye("invalid",r),mp(r,o.value,o.defaultValue,o.children),Vl(r)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||o.suppressHydrationWarning===!0||my(r.textContent,i)?(o.popover!=null&&(Ye("beforetoggle",r),Ye("toggle",r)),o.onScroll!=null&&Ye("scroll",r),o.onScrollEnd!=null&&Ye("scrollend",r),o.onClick!=null&&(r.onclick=Po),r=!0):r=!1,r||ma(t)}function Qp(t){for(Gt=t.return;Gt;)switch(Gt.tag){case 5:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:Gt=Gt.return}}function li(t){if(t!==Gt)return!1;if(!Ke)return Qp(t),Ke=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ff(t.type,t.memoizedProps)),i=!i),i&>&&ma(t),Qp(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(r===0){gt=Bn(t.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++;t=t.nextSibling}gt=null}}else r===27?(r=gt,Yr(t.type)?(t=gf,gf=null,gt=t):gt=r):gt=Gt?Bn(t.stateNode.nextSibling):null;return!0}function oi(){gt=Gt=null,Ke=!1}function Jp(){var t=ha;return t!==null&&(en===null?en=t:en.push.apply(en,t),ha=null),t}function ci(t){ha===null?ha=[t]:ha.push(t)}var Ku=O(null),pa=null,cr=null;function Rr(t,r,i){J(Ku,r._currentValue),r._currentValue=i}function ur(t){t._currentValue=Ku.current,U(Ku)}function $u(t,r,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,o!==null&&(o.childLanes|=r)):o!==null&&(o.childLanes&r)!==r&&(o.childLanes|=r),t===i)break;t=t.return}}function Qu(t,r,i,o){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var y=p.dependencies;if(y!==null){var D=p.child;y=y.firstContext;e:for(;y!==null;){var B=y;y=p;for(var $=0;$<r.length;$++)if(B.context===r[$]){y.lanes|=i,B=y.alternate,B!==null&&(B.lanes|=i),$u(y.return,i,t),o||(D=null);break e}y=B.next}}else if(p.tag===18){if(D=p.return,D===null)throw Error(s(341));D.lanes|=i,y=D.alternate,y!==null&&(y.lanes|=i),$u(D,i,t),D=null}else D=p.child;if(D!==null)D.return=p;else for(D=p;D!==null;){if(D===t){D=null;break}if(p=D.sibling,p!==null){p.return=D.return,D=p;break}D=D.return}p=D}}function ui(t,r,i,o){t=null;for(var p=r,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var D=p.alternate;if(D===null)throw Error(s(387));if(D=D.memoizedProps,D!==null){var B=p.type;ln(p.pendingProps.value,D.value)||(t!==null?t.push(B):t=[B])}}else if(p===ve.current){if(D=p.alternate,D===null)throw Error(s(387));D.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Bi):t=[Bi])}p=p.return}t!==null&&Qu(r,t,i,o),r.flags|=262144}function no(t){for(t=t.firstContext;t!==null;){if(!ln(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ga(t){pa=t,cr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ft(t){return eg(pa,t)}function ro(t,r){return pa===null&&ga(t),eg(t,r)}function eg(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},cr===null){if(t===null)throw Error(s(308));cr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else cr=cr.next=r;return i}var RS=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},CS=e.unstable_scheduleCallback,DS=e.unstable_NormalPriority,kt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ju(){return{controller:new RS,data:new Map,refCount:0}}function di(t){t.refCount--,t.refCount===0&&CS(DS,function(){t.controller.abort()})}var fi=null,ed=0,ss=0,is=null;function MS(t,r){if(fi===null){var i=fi=[];ed=0,ss=nf(),is={status:"pending",value:void 0,then:function(o){i.push(o)}}}return ed++,r.then(tg,tg),r}function tg(){if(--ed===0&&fi!==null){is!==null&&(is.status="fulfilled");var t=fi;fi=null,ss=0,is=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function LS(t,r){var i=[],o={status:"pending",value:null,reason:null,then:function(p){i.push(p)}};return t.then(function(){o.status="fulfilled",o.value=r;for(var p=0;p<i.length;p++)(0,i[p])(r)},function(p){for(o.status="rejected",o.reason=p,p=0;p<i.length;p++)(0,i[p])(void 0)}),o}var ng=Z.S;Z.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&MS(t,r),ng!==null&&ng(t,r)};var ya=O(null);function td(){var t=ya.current;return t!==null?t:it.pooledCache}function ao(t,r){r===null?J(ya,ya.current):J(ya,r.pool)}function rg(){var t=td();return t===null?null:{parent:kt._currentValue,pool:t}}var hi=Error(s(460)),ag=Error(s(474)),so=Error(s(542)),nd={then:function(){}};function sg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function io(){}function ig(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(io,io),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,og(t),t;default:if(typeof r.status=="string")r.then(io,io);else{if(t=it,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(o){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=o}},function(o){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,og(t),t}throw mi=r,hi}}var mi=null;function lg(){if(mi===null)throw Error(s(459));var t=mi;return mi=null,t}function og(t){if(t===hi||t===so)throw Error(s(483))}var Cr=!1;function rd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ad(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Mr(t,r,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,($e&2)!==0){var p=o.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),o.pending=r,r=Ql(t),Zp(t,null,i),r}return $l(t,o,r,i),Ql(t)}function pi(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var o=r.lanes;o&=t.pendingLanes,i|=o,r.lanes=i,tp(t,i)}}function sd(t,r){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var p=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var D={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};y===null?p=y=D:y=y.next=D,i=i.next}while(i!==null);y===null?p=y=r:y=y.next=r}else p=y=r;i={baseState:o.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var id=!1;function gi(){if(id){var t=is;if(t!==null)throw t}}function yi(t,r,i,o){id=!1;var p=t.updateQueue;Cr=!1;var y=p.firstBaseUpdate,D=p.lastBaseUpdate,B=p.shared.pending;if(B!==null){p.shared.pending=null;var $=B,oe=$.next;$.next=null,D===null?y=oe:D.next=oe,D=$;var ge=t.alternate;ge!==null&&(ge=ge.updateQueue,B=ge.lastBaseUpdate,B!==D&&(B===null?ge.firstBaseUpdate=oe:B.next=oe,ge.lastBaseUpdate=$))}if(y!==null){var we=p.baseState;D=0,ge=oe=$=null,B=y;do{var fe=B.lane&-536870913,he=fe!==B.lane;if(he?(Ze&fe)===fe:(o&fe)===fe){fe!==0&&fe===ss&&(id=!0),ge!==null&&(ge=ge.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var Ue=t,Me=B;fe=r;var tt=i;switch(Me.tag){case 1:if(Ue=Me.payload,typeof Ue=="function"){we=Ue.call(tt,we,fe);break e}we=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=Me.payload,fe=typeof Ue=="function"?Ue.call(tt,we,fe):Ue,fe==null)break e;we=g({},we,fe);break e;case 2:Cr=!0}}fe=B.callback,fe!==null&&(t.flags|=64,he&&(t.flags|=8192),he=p.callbacks,he===null?p.callbacks=[fe]:he.push(fe))}else he={lane:fe,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ge===null?(oe=ge=he,$=we):ge=ge.next=he,D|=fe;if(B=B.next,B===null){if(B=p.shared.pending,B===null)break;he=B,B=he.next,he.next=null,p.lastBaseUpdate=he,p.shared.pending=null}}while(!0);ge===null&&($=we),p.baseState=$,p.firstBaseUpdate=oe,p.lastBaseUpdate=ge,y===null&&(p.shared.lanes=0),Hr|=D,t.lanes=D,t.memoizedState=we}}function cg(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function ug(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)cg(i[t],r)}var ls=O(null),lo=O(0);function dg(t,r){t=yr,J(lo,t),J(ls,r),yr=t|r.baseLanes}function ld(){J(lo,yr),J(ls,ls.current)}function od(){yr=lo.current,U(ls),U(lo)}var Lr=0,Ie=null,Je=null,Tt=null,oo=!1,os=!1,xa=!1,co=0,xi=0,cs=null,PS=0;function vt(){throw Error(s(321))}function cd(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!ln(t[i],r[i]))return!1;return!0}function ud(t,r,i,o,p,y){return Lr=y,Ie=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Z.H=t===null||t.memoizedState===null?Zg:Wg,xa=!1,y=i(o,p),xa=!1,os&&(y=hg(r,i,o,p)),fg(t),y}function fg(t){Z.H=go;var r=Je!==null&&Je.next!==null;if(Lr=0,Tt=Je=Ie=null,oo=!1,xi=0,cs=null,r)throw Error(s(300));t===null||Rt||(t=t.dependencies,t!==null&&no(t)&&(Rt=!0))}function hg(t,r,i,o){Ie=t;var p=0;do{if(os&&(cs=null),xi=0,os=!1,25<=p)throw Error(s(301));if(p+=1,Tt=Je=null,t.updateQueue!=null){var y=t.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}Z.H=IS,y=r(i,o)}while(os);return y}function zS(){var t=Z.H,r=t.useState()[0];return r=typeof r.then=="function"?bi(r):r,t=t.useState()[0],(Je!==null?Je.memoizedState:null)!==t&&(Ie.flags|=1024),r}function dd(){var t=co!==0;return co=0,t}function fd(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function hd(t){if(oo){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}oo=!1}Lr=0,Tt=Je=Ie=null,os=!1,xi=co=0,cs=null}function Qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Ie.memoizedState=Tt=t:Tt=Tt.next=t,Tt}function Et(){if(Je===null){var t=Ie.alternate;t=t!==null?t.memoizedState:null}else t=Je.next;var r=Tt===null?Ie.memoizedState:Tt.next;if(r!==null)Tt=r,Je=t;else{if(t===null)throw Ie.alternate===null?Error(s(467)):Error(s(310));Je=t,t={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Tt===null?Ie.memoizedState=Tt=t:Tt=Tt.next=t}return Tt}function md(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(t){var r=xi;return xi+=1,cs===null&&(cs=[]),t=ig(cs,t,r),r=Ie,(Tt===null?r.memoizedState:Tt.next)===null&&(r=r.alternate,Z.H=r===null||r.memoizedState===null?Zg:Wg),t}function uo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return bi(t);if(t.$$typeof===L)return Ft(t)}throw Error(s(438,String(t)))}function pd(t){var r=null,i=Ie.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var o=Ie.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=md(),Ie.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),o=0;o<t;o++)i[o]=R;return r.index++,i}function dr(t,r){return typeof r=="function"?r(t):r}function fo(t){var r=Et();return gd(r,Je,t)}function gd(t,r,i){var o=t.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=i;var p=t.baseQueue,y=o.pending;if(y!==null){if(p!==null){var D=p.next;p.next=y.next,y.next=D}r.baseQueue=p=y,o.pending=null}if(y=t.baseState,p===null)t.memoizedState=y;else{r=p.next;var B=D=null,$=null,oe=r,ge=!1;do{var we=oe.lane&-536870913;if(we!==oe.lane?(Ze&we)===we:(Lr&we)===we){var fe=oe.revertLane;if(fe===0)$!==null&&($=$.next={lane:0,revertLane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),we===ss&&(ge=!0);else if((Lr&fe)===fe){oe=oe.next,fe===ss&&(ge=!0);continue}else we={lane:0,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},$===null?(B=$=we,D=y):$=$.next=we,Ie.lanes|=fe,Hr|=fe;we=oe.action,xa&&i(y,we),y=oe.hasEagerState?oe.eagerState:i(y,we)}else fe={lane:we,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},$===null?(B=$=fe,D=y):$=$.next=fe,Ie.lanes|=we,Hr|=we;oe=oe.next}while(oe!==null&&oe!==r);if($===null?D=y:$.next=B,!ln(y,t.memoizedState)&&(Rt=!0,ge&&(i=is,i!==null)))throw i;t.memoizedState=y,t.baseState=D,t.baseQueue=$,o.lastRenderedState=y}return p===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function yd(t){var r=Et(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var o=i.dispatch,p=i.pending,y=r.memoizedState;if(p!==null){i.pending=null;var D=p=p.next;do y=t(y,D.action),D=D.next;while(D!==p);ln(y,r.memoizedState)||(Rt=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),i.lastRenderedState=y}return[y,o]}function mg(t,r,i){var o=Ie,p=Et(),y=Ke;if(y){if(i===void 0)throw Error(s(407));i=i()}else i=r();var D=!ln((Je||p).memoizedState,i);D&&(p.memoizedState=i,Rt=!0),p=p.queue;var B=yg.bind(null,o,p,t);if(vi(2048,8,B,[t]),p.getSnapshot!==r||D||Tt!==null&&Tt.memoizedState.tag&1){if(o.flags|=2048,us(9,ho(),gg.bind(null,o,p,i,r),null),it===null)throw Error(s(349));y||(Lr&124)!==0||pg(o,r,i)}return i}function pg(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=Ie.updateQueue,r===null?(r=md(),Ie.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function gg(t,r,i,o){r.value=i,r.getSnapshot=o,xg(r)&&bg(t)}function yg(t,r,i){return i(function(){xg(r)&&bg(t)})}function xg(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!ln(t,i)}catch{return!0}}function bg(t){var r=ts(t,2);r!==null&&hn(r,t,2)}function xd(t){var r=Qt();if(typeof t=="function"){var i=t;if(t=i(),xa){Ce(!0);try{i()}finally{Ce(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:t},r}function vg(t,r,i,o){return t.baseState=i,gd(t,Je,typeof o=="function"?o:dr)}function US(t,r,i,o,p){if(po(t))throw Error(s(485));if(t=r.action,t!==null){var y={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){y.listeners.push(D)}};Z.T!==null?i(!0):y.isTransition=!1,o(y),i=r.pending,i===null?(y.next=r.pending=y,wg(r,y)):(y.next=i.next,r.pending=i.next=y)}}function wg(t,r){var i=r.action,o=r.payload,p=t.state;if(r.isTransition){var y=Z.T,D={};Z.T=D;try{var B=i(p,o),$=Z.S;$!==null&&$(D,B),Sg(t,r,B)}catch(oe){bd(t,r,oe)}finally{Z.T=y}}else try{y=i(p,o),Sg(t,r,y)}catch(oe){bd(t,r,oe)}}function Sg(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){jg(t,r,o)},function(o){return bd(t,r,o)}):jg(t,r,i)}function jg(t,r,i){r.status="fulfilled",r.value=i,Tg(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,wg(t,i)))}function bd(t,r,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=i,Tg(r),r=r.next;while(r!==o)}t.action=null}function Tg(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Eg(t,r){return r}function Ag(t,r){if(Ke){var i=it.formState;if(i!==null){e:{var o=Ie;if(Ke){if(gt){t:{for(var p=gt,y=Zn;p.nodeType!==8;){if(!y){p=null;break t}if(p=Bn(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){gt=Bn(p.nextSibling),o=p.data==="F!";break e}}ma(o)}o=!1}o&&(r=i[0])}}return i=Qt(),i.memoizedState=i.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eg,lastRenderedState:r},i.queue=o,i=Gg.bind(null,Ie,o),o.dispatch=i,o=xd(!1),y=Td.bind(null,Ie,!1,o.queue),o=Qt(),p={state:r,dispatch:null,action:t,pending:null},o.queue=p,i=US.bind(null,Ie,p,y,i),p.dispatch=i,o.memoizedState=t,[r,i,!1]}function Ng(t){var r=Et();return kg(r,Je,t)}function kg(t,r,i){if(r=gd(t,r,Eg)[0],t=fo(dr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=bi(r)}catch(D){throw D===hi?so:D}else o=r;r=Et();var p=r.queue,y=p.dispatch;return i!==r.memoizedState&&(Ie.flags|=2048,us(9,ho(),BS.bind(null,p,i),null)),[o,y,t]}function BS(t,r){t.action=r}function _g(t){var r=Et(),i=Je;if(i!==null)return kg(r,i,t);Et(),r=r.memoizedState,i=Et();var o=i.queue.dispatch;return i.memoizedState=t,[r,o,!1]}function us(t,r,i,o){return t={tag:t,create:i,deps:o,inst:r,next:null},r=Ie.updateQueue,r===null&&(r=md(),Ie.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,r.lastEffect=t),t}function ho(){return{destroy:void 0,resource:void 0}}function Og(){return Et().memoizedState}function mo(t,r,i,o){var p=Qt();o=o===void 0?null:o,Ie.flags|=t,p.memoizedState=us(1|r,ho(),i,o)}function vi(t,r,i,o){var p=Et();o=o===void 0?null:o;var y=p.memoizedState.inst;Je!==null&&o!==null&&cd(o,Je.memoizedState.deps)?p.memoizedState=us(r,y,i,o):(Ie.flags|=t,p.memoizedState=us(1|r,y,i,o))}function Rg(t,r){mo(8390656,8,t,r)}function Cg(t,r){vi(2048,8,t,r)}function Dg(t,r){return vi(4,2,t,r)}function Mg(t,r){return vi(4,4,t,r)}function Lg(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Pg(t,r,i){i=i!=null?i.concat([t]):null,vi(4,4,Lg.bind(null,r,t),i)}function vd(){}function zg(t,r){var i=Et();r=r===void 0?null:r;var o=i.memoizedState;return r!==null&&cd(r,o[1])?o[0]:(i.memoizedState=[t,r],t)}function Ug(t,r){var i=Et();r=r===void 0?null:r;var o=i.memoizedState;if(r!==null&&cd(r,o[1]))return o[0];if(o=t(),xa){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[o,r],o}function wd(t,r,i){return i===void 0||(Lr&1073741824)!==0?t.memoizedState=r:(t.memoizedState=i,t=V0(),Ie.lanes|=t,Hr|=t,i)}function Bg(t,r,i,o){return ln(i,r)?i:ls.current!==null?(t=wd(t,i,o),ln(t,r)||(Rt=!0),t):(Lr&42)===0?(Rt=!0,t.memoizedState=i):(t=V0(),Ie.lanes|=t,Hr|=t,r)}function Fg(t,r,i,o,p){var y=v.p;v.p=y!==0&&8>y?y:8;var D=Z.T,B={};Z.T=B,Td(t,!1,r,i);try{var $=p(),oe=Z.S;if(oe!==null&&oe(B,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var ge=LS($,o);wi(t,r,ge,fn(t))}else wi(t,r,o,fn(t))}catch(we){wi(t,r,{then:function(){},status:"rejected",reason:we},fn())}finally{v.p=y,Z.T=D}}function FS(){}function Sd(t,r,i,o){if(t.tag!==5)throw Error(s(476));var p=Vg(t).queue;Fg(t,p,r,ue,i===null?FS:function(){return Hg(t),i(o)})}function Vg(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:ue},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Hg(t){var r=Vg(t).next.queue;wi(t,r,{},fn())}function jd(){return Ft(Bi)}function Ig(){return Et().memoizedState}function qg(){return Et().memoizedState}function VS(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=fn();t=Dr(i);var o=Mr(r,t,i);o!==null&&(hn(o,r,i),pi(o,r,i)),r={cache:Ju()},t.payload=r;return}r=r.return}}function HS(t,r,i){var o=fn();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},po(t)?Yg(r,i):(i=Iu(t,r,i,o),i!==null&&(hn(i,t,o),Xg(i,r,o)))}function Gg(t,r,i){var o=fn();wi(t,r,i,o)}function wi(t,r,i,o){var p={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(po(t))Yg(r,p);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var D=r.lastRenderedState,B=y(D,i);if(p.hasEagerState=!0,p.eagerState=B,ln(B,D))return $l(t,r,p,0),it===null&&Kl(),!1}catch{}finally{}if(i=Iu(t,r,p,o),i!==null)return hn(i,t,o),Xg(i,r,o),!0}return!1}function Td(t,r,i,o){if(o={lane:2,revertLane:nf(),action:o,hasEagerState:!1,eagerState:null,next:null},po(t)){if(r)throw Error(s(479))}else r=Iu(t,i,o,2),r!==null&&hn(r,t,2)}function po(t){var r=t.alternate;return t===Ie||r!==null&&r===Ie}function Yg(t,r){os=oo=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Xg(t,r,i){if((i&4194048)!==0){var o=r.lanes;o&=t.pendingLanes,i|=o,r.lanes=i,tp(t,i)}}var go={readContext:Ft,use:uo,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt},Zg={readContext:Ft,use:uo,useCallback:function(t,r){return Qt().memoizedState=[t,r===void 0?null:r],t},useContext:Ft,useEffect:Rg,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,mo(4194308,4,Lg.bind(null,r,t),i)},useLayoutEffect:function(t,r){return mo(4194308,4,t,r)},useInsertionEffect:function(t,r){mo(4,2,t,r)},useMemo:function(t,r){var i=Qt();r=r===void 0?null:r;var o=t();if(xa){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[o,r],o},useReducer:function(t,r,i){var o=Qt();if(i!==void 0){var p=i(r);if(xa){Ce(!0);try{i(r)}finally{Ce(!1)}}}else p=r;return o.memoizedState=o.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},o.queue=t,t=t.dispatch=HS.bind(null,Ie,t),[o.memoizedState,t]},useRef:function(t){var r=Qt();return t={current:t},r.memoizedState=t},useState:function(t){t=xd(t);var r=t.queue,i=Gg.bind(null,Ie,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:vd,useDeferredValue:function(t,r){var i=Qt();return wd(i,t,r)},useTransition:function(){var t=xd(!1);return t=Fg.bind(null,Ie,t.queue,!0,!1),Qt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var o=Ie,p=Qt();if(Ke){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),it===null)throw Error(s(349));(Ze&124)!==0||pg(o,r,i)}p.memoizedState=i;var y={value:i,getSnapshot:r};return p.queue=y,Rg(yg.bind(null,o,y,t),[t]),o.flags|=2048,us(9,ho(),gg.bind(null,o,y,i,r),null),i},useId:function(){var t=Qt(),r=it.identifierPrefix;if(Ke){var i=or,o=lr;i=(o&~(1<<32-He(o)-1)).toString(32)+i,r="«"+r+"R"+i,i=co++,0<i&&(r+="H"+i.toString(32)),r+="»"}else i=PS++,r="«"+r+"r"+i.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:jd,useFormState:Ag,useActionState:Ag,useOptimistic:function(t){var r=Qt();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Td.bind(null,Ie,!0,i),i.dispatch=r,[t,r]},useMemoCache:pd,useCacheRefresh:function(){return Qt().memoizedState=VS.bind(null,Ie)}},Wg={readContext:Ft,use:uo,useCallback:zg,useContext:Ft,useEffect:Cg,useImperativeHandle:Pg,useInsertionEffect:Dg,useLayoutEffect:Mg,useMemo:Ug,useReducer:fo,useRef:Og,useState:function(){return fo(dr)},useDebugValue:vd,useDeferredValue:function(t,r){var i=Et();return Bg(i,Je.memoizedState,t,r)},useTransition:function(){var t=fo(dr)[0],r=Et().memoizedState;return[typeof t=="boolean"?t:bi(t),r]},useSyncExternalStore:mg,useId:Ig,useHostTransitionStatus:jd,useFormState:Ng,useActionState:Ng,useOptimistic:function(t,r){var i=Et();return vg(i,Je,t,r)},useMemoCache:pd,useCacheRefresh:qg},IS={readContext:Ft,use:uo,useCallback:zg,useContext:Ft,useEffect:Cg,useImperativeHandle:Pg,useInsertionEffect:Dg,useLayoutEffect:Mg,useMemo:Ug,useReducer:yd,useRef:Og,useState:function(){return yd(dr)},useDebugValue:vd,useDeferredValue:function(t,r){var i=Et();return Je===null?wd(i,t,r):Bg(i,Je.memoizedState,t,r)},useTransition:function(){var t=yd(dr)[0],r=Et().memoizedState;return[typeof t=="boolean"?t:bi(t),r]},useSyncExternalStore:mg,useId:Ig,useHostTransitionStatus:jd,useFormState:_g,useActionState:_g,useOptimistic:function(t,r){var i=Et();return Je!==null?vg(i,Je,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:pd,useCacheRefresh:qg},ds=null,Si=0;function yo(t){var r=Si;return Si+=1,ds===null&&(ds=[]),ig(ds,t,r)}function ji(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function xo(t,r){throw r.$$typeof===x?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function Kg(t){var r=t._init;return r(t._payload)}function $g(t){function r(ae,re){if(t){var se=ae.deletions;se===null?(ae.deletions=[re],ae.flags|=16):se.push(re)}}function i(ae,re){if(!t)return null;for(;re!==null;)r(ae,re),re=re.sibling;return null}function o(ae){for(var re=new Map;ae!==null;)ae.key!==null?re.set(ae.key,ae):re.set(ae.index,ae),ae=ae.sibling;return re}function p(ae,re){return ae=ir(ae,re),ae.index=0,ae.sibling=null,ae}function y(ae,re,se){return ae.index=se,t?(se=ae.alternate,se!==null?(se=se.index,se<re?(ae.flags|=67108866,re):se):(ae.flags|=67108866,re)):(ae.flags|=1048576,re)}function D(ae){return t&&ae.alternate===null&&(ae.flags|=67108866),ae}function B(ae,re,se,be){return re===null||re.tag!==6?(re=Gu(se,ae.mode,be),re.return=ae,re):(re=p(re,se),re.return=ae,re)}function $(ae,re,se,be){var _e=se.type;return _e===k?ge(ae,re,se.props.children,be,se.key):re!==null&&(re.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===H&&Kg(_e)===re.type)?(re=p(re,se.props),ji(re,se),re.return=ae,re):(re=Jl(se.type,se.key,se.props,null,ae.mode,be),ji(re,se),re.return=ae,re)}function oe(ae,re,se,be){return re===null||re.tag!==4||re.stateNode.containerInfo!==se.containerInfo||re.stateNode.implementation!==se.implementation?(re=Yu(se,ae.mode,be),re.return=ae,re):(re=p(re,se.children||[]),re.return=ae,re)}function ge(ae,re,se,be,_e){return re===null||re.tag!==7?(re=ua(se,ae.mode,be,_e),re.return=ae,re):(re=p(re,se),re.return=ae,re)}function we(ae,re,se){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Gu(""+re,ae.mode,se),re.return=ae,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case w:return se=Jl(re.type,re.key,re.props,null,ae.mode,se),ji(se,re),se.return=ae,se;case T:return re=Yu(re,ae.mode,se),re.return=ae,re;case H:var be=re._init;return re=be(re._payload),we(ae,re,se)}if(W(re)||P(re))return re=ua(re,ae.mode,se,null),re.return=ae,re;if(typeof re.then=="function")return we(ae,yo(re),se);if(re.$$typeof===L)return we(ae,ro(ae,re),se);xo(ae,re)}return null}function fe(ae,re,se,be){var _e=re!==null?re.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return _e!==null?null:B(ae,re,""+se,be);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case w:return se.key===_e?$(ae,re,se,be):null;case T:return se.key===_e?oe(ae,re,se,be):null;case H:return _e=se._init,se=_e(se._payload),fe(ae,re,se,be)}if(W(se)||P(se))return _e!==null?null:ge(ae,re,se,be,null);if(typeof se.then=="function")return fe(ae,re,yo(se),be);if(se.$$typeof===L)return fe(ae,re,ro(ae,se),be);xo(ae,se)}return null}function he(ae,re,se,be,_e){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return ae=ae.get(se)||null,B(re,ae,""+be,_e);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case w:return ae=ae.get(be.key===null?se:be.key)||null,$(re,ae,be,_e);case T:return ae=ae.get(be.key===null?se:be.key)||null,oe(re,ae,be,_e);case H:var qe=be._init;return be=qe(be._payload),he(ae,re,se,be,_e)}if(W(be)||P(be))return ae=ae.get(se)||null,ge(re,ae,be,_e,null);if(typeof be.then=="function")return he(ae,re,se,yo(be),_e);if(be.$$typeof===L)return he(ae,re,se,ro(re,be),_e);xo(re,be)}return null}function Ue(ae,re,se,be){for(var _e=null,qe=null,De=re,Pe=re=0,Dt=null;De!==null&&Pe<se.length;Pe++){De.index>Pe?(Dt=De,De=null):Dt=De.sibling;var We=fe(ae,De,se[Pe],be);if(We===null){De===null&&(De=Dt);break}t&&De&&We.alternate===null&&r(ae,De),re=y(We,re,Pe),qe===null?_e=We:qe.sibling=We,qe=We,De=Dt}if(Pe===se.length)return i(ae,De),Ke&&fa(ae,Pe),_e;if(De===null){for(;Pe<se.length;Pe++)De=we(ae,se[Pe],be),De!==null&&(re=y(De,re,Pe),qe===null?_e=De:qe.sibling=De,qe=De);return Ke&&fa(ae,Pe),_e}for(De=o(De);Pe<se.length;Pe++)Dt=he(De,ae,Pe,se[Pe],be),Dt!==null&&(t&&Dt.alternate!==null&&De.delete(Dt.key===null?Pe:Dt.key),re=y(Dt,re,Pe),qe===null?_e=Dt:qe.sibling=Dt,qe=Dt);return t&&De.forEach(function($r){return r(ae,$r)}),Ke&&fa(ae,Pe),_e}function Me(ae,re,se,be){if(se==null)throw Error(s(151));for(var _e=null,qe=null,De=re,Pe=re=0,Dt=null,We=se.next();De!==null&&!We.done;Pe++,We=se.next()){De.index>Pe?(Dt=De,De=null):Dt=De.sibling;var $r=fe(ae,De,We.value,be);if($r===null){De===null&&(De=Dt);break}t&&De&&$r.alternate===null&&r(ae,De),re=y($r,re,Pe),qe===null?_e=$r:qe.sibling=$r,qe=$r,De=Dt}if(We.done)return i(ae,De),Ke&&fa(ae,Pe),_e;if(De===null){for(;!We.done;Pe++,We=se.next())We=we(ae,We.value,be),We!==null&&(re=y(We,re,Pe),qe===null?_e=We:qe.sibling=We,qe=We);return Ke&&fa(ae,Pe),_e}for(De=o(De);!We.done;Pe++,We=se.next())We=he(De,ae,Pe,We.value,be),We!==null&&(t&&We.alternate!==null&&De.delete(We.key===null?Pe:We.key),re=y(We,re,Pe),qe===null?_e=We:qe.sibling=We,qe=We);return t&&De.forEach(function(q3){return r(ae,q3)}),Ke&&fa(ae,Pe),_e}function tt(ae,re,se,be){if(typeof se=="object"&&se!==null&&se.type===k&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case w:e:{for(var _e=se.key;re!==null;){if(re.key===_e){if(_e=se.type,_e===k){if(re.tag===7){i(ae,re.sibling),be=p(re,se.props.children),be.return=ae,ae=be;break e}}else if(re.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===H&&Kg(_e)===re.type){i(ae,re.sibling),be=p(re,se.props),ji(be,se),be.return=ae,ae=be;break e}i(ae,re);break}else r(ae,re);re=re.sibling}se.type===k?(be=ua(se.props.children,ae.mode,be,se.key),be.return=ae,ae=be):(be=Jl(se.type,se.key,se.props,null,ae.mode,be),ji(be,se),be.return=ae,ae=be)}return D(ae);case T:e:{for(_e=se.key;re!==null;){if(re.key===_e)if(re.tag===4&&re.stateNode.containerInfo===se.containerInfo&&re.stateNode.implementation===se.implementation){i(ae,re.sibling),be=p(re,se.children||[]),be.return=ae,ae=be;break e}else{i(ae,re);break}else r(ae,re);re=re.sibling}be=Yu(se,ae.mode,be),be.return=ae,ae=be}return D(ae);case H:return _e=se._init,se=_e(se._payload),tt(ae,re,se,be)}if(W(se))return Ue(ae,re,se,be);if(P(se)){if(_e=P(se),typeof _e!="function")throw Error(s(150));return se=_e.call(se),Me(ae,re,se,be)}if(typeof se.then=="function")return tt(ae,re,yo(se),be);if(se.$$typeof===L)return tt(ae,re,ro(ae,se),be);xo(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,re!==null&&re.tag===6?(i(ae,re.sibling),be=p(re,se),be.return=ae,ae=be):(i(ae,re),be=Gu(se,ae.mode,be),be.return=ae,ae=be),D(ae)):i(ae,re)}return function(ae,re,se,be){try{Si=0;var _e=tt(ae,re,se,be);return ds=null,_e}catch(De){if(De===hi||De===so)throw De;var qe=on(29,De,null,ae.mode);return qe.lanes=be,qe.return=ae,qe}finally{}}}var fs=$g(!0),Qg=$g(!1),Tn=O(null),Wn=null;function Pr(t){var r=t.alternate;J(_t,_t.current&1),J(Tn,t),Wn===null&&(r===null||ls.current!==null||r.memoizedState!==null)&&(Wn=t)}function Jg(t){if(t.tag===22){if(J(_t,_t.current),J(Tn,t),Wn===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(Wn=t)}}else zr()}function zr(){J(_t,_t.current),J(Tn,Tn.current)}function fr(t){U(Tn),Wn===t&&(Wn=null),U(_t)}var _t=O(0);function bo(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||pf(i)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Ed(t,r,i,o){r=t.memoizedState,i=i(o,r),i=i==null?r:g({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Ad={enqueueSetState:function(t,r,i){t=t._reactInternals;var o=fn(),p=Dr(o);p.payload=r,i!=null&&(p.callback=i),r=Mr(t,p,o),r!==null&&(hn(r,t,o),pi(r,t,o))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var o=fn(),p=Dr(o);p.tag=1,p.payload=r,i!=null&&(p.callback=i),r=Mr(t,p,o),r!==null&&(hn(r,t,o),pi(r,t,o))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=fn(),o=Dr(i);o.tag=2,r!=null&&(o.callback=r),r=Mr(t,o,i),r!==null&&(hn(r,t,i),pi(r,t,i))}};function e0(t,r,i,o,p,y,D){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,y,D):r.prototype&&r.prototype.isPureReactComponent?!si(i,o)||!si(p,y):!0}function t0(t,r,i,o){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,o),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,o),r.state!==t&&Ad.enqueueReplaceState(r,r.state,null)}function ba(t,r){var i=r;if("ref"in r){i={};for(var o in r)o!=="ref"&&(i[o]=r[o])}if(t=t.defaultProps){i===r&&(i=g({},i));for(var p in t)i[p]===void 0&&(i[p]=t[p])}return i}var vo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function n0(t){vo(t)}function r0(t){console.error(t)}function a0(t){vo(t)}function wo(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function s0(t,r,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Nd(t,r,i){return i=Dr(i),i.tag=3,i.payload={element:null},i.callback=function(){wo(t,r)},i}function i0(t){return t=Dr(t),t.tag=3,t}function l0(t,r,i,o){var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var y=o.value;t.payload=function(){return p(y)},t.callback=function(){s0(r,i,o)}}var D=i.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(t.callback=function(){s0(r,i,o),typeof p!="function"&&(Ir===null?Ir=new Set([this]):Ir.add(this));var B=o.stack;this.componentDidCatch(o.value,{componentStack:B!==null?B:""})})}function qS(t,r,i,o,p){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=i.alternate,r!==null&&ui(r,i,p,!0),i=Tn.current,i!==null){switch(i.tag){case 13:return Wn===null?$d():i.alternate===null&&yt===0&&(yt=3),i.flags&=-257,i.flags|=65536,i.lanes=p,o===nd?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([o]):r.add(o),Jd(t,o,p)),!1;case 22:return i.flags|=65536,o===nd?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([o]):i.add(o)),Jd(t,o,p)),!1}throw Error(s(435,i.tag))}return Jd(t,o,p),$d(),!1}if(Ke)return r=Tn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,o!==Wu&&(t=Error(s(422),{cause:o}),ci(vn(t,i)))):(o!==Wu&&(r=Error(s(423),{cause:o}),ci(vn(r,i))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,o=vn(o,i),p=Nd(t.stateNode,o,p),sd(t,p),yt!==4&&(yt=2)),!1;var y=Error(s(520),{cause:o});if(y=vn(y,i),Oi===null?Oi=[y]:Oi.push(y),yt!==4&&(yt=2),r===null)return!0;o=vn(o,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=p&-p,i.lanes|=t,t=Nd(i.stateNode,o,t),sd(i,t),!1;case 1:if(r=i.type,y=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ir===null||!Ir.has(y))))return i.flags|=65536,p&=-p,i.lanes|=p,p=i0(p),l0(p,t,i,o),sd(i,p),!1}i=i.return}while(i!==null);return!1}var o0=Error(s(461)),Rt=!1;function Mt(t,r,i,o){r.child=t===null?Qg(r,null,i,o):fs(r,t.child,i,o)}function c0(t,r,i,o,p){i=i.render;var y=r.ref;if("ref"in o){var D={};for(var B in o)B!=="ref"&&(D[B]=o[B])}else D=o;return ga(r),o=ud(t,r,i,D,y,p),B=dd(),t!==null&&!Rt?(fd(t,r,p),hr(t,r,p)):(Ke&&B&&Xu(r),r.flags|=1,Mt(t,r,o,p),r.child)}function u0(t,r,i,o,p){if(t===null){var y=i.type;return typeof y=="function"&&!qu(y)&&y.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=y,d0(t,r,y,o,p)):(t=Jl(i.type,null,o,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(y=t.child,!Ld(t,p)){var D=y.memoizedProps;if(i=i.compare,i=i!==null?i:si,i(D,o)&&t.ref===r.ref)return hr(t,r,p)}return r.flags|=1,t=ir(y,o),t.ref=r.ref,t.return=r,r.child=t}function d0(t,r,i,o,p){if(t!==null){var y=t.memoizedProps;if(si(y,o)&&t.ref===r.ref)if(Rt=!1,r.pendingProps=o=y,Ld(t,p))(t.flags&131072)!==0&&(Rt=!0);else return r.lanes=t.lanes,hr(t,r,p)}return kd(t,r,i,o,p)}function f0(t,r,i){var o=r.pendingProps,p=o.children,y=t!==null?t.memoizedState:null;if(o.mode==="hidden"){if((r.flags&128)!==0){if(o=y!==null?y.baseLanes|i:i,t!==null){for(p=r.child=t.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;r.childLanes=y&~o}else r.childLanes=0,r.child=null;return h0(t,r,o,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&ao(r,y!==null?y.cachePool:null),y!==null?dg(r,y):ld(),Jg(r);else return r.lanes=r.childLanes=536870912,h0(t,r,y!==null?y.baseLanes|i:i,i)}else y!==null?(ao(r,y.cachePool),dg(r,y),zr(),r.memoizedState=null):(t!==null&&ao(r,null),ld(),zr());return Mt(t,r,p,i),r.child}function h0(t,r,i,o){var p=td();return p=p===null?null:{parent:kt._currentValue,pool:p},r.memoizedState={baseLanes:i,cachePool:p},t!==null&&ao(r,null),ld(),Jg(r),t!==null&&ui(t,r,o,!0),null}function So(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function kd(t,r,i,o,p){return ga(r),i=ud(t,r,i,o,void 0,p),o=dd(),t!==null&&!Rt?(fd(t,r,p),hr(t,r,p)):(Ke&&o&&Xu(r),r.flags|=1,Mt(t,r,i,p),r.child)}function m0(t,r,i,o,p,y){return ga(r),r.updateQueue=null,i=hg(r,o,i,p),fg(t),o=dd(),t!==null&&!Rt?(fd(t,r,y),hr(t,r,y)):(Ke&&o&&Xu(r),r.flags|=1,Mt(t,r,i,y),r.child)}function p0(t,r,i,o,p){if(ga(r),r.stateNode===null){var y=ns,D=i.contextType;typeof D=="object"&&D!==null&&(y=Ft(D)),y=new i(o,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Ad,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=o,y.state=r.memoizedState,y.refs={},rd(r),D=i.contextType,y.context=typeof D=="object"&&D!==null?Ft(D):ns,y.state=r.memoizedState,D=i.getDerivedStateFromProps,typeof D=="function"&&(Ed(r,i,D,o),y.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(D=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),D!==y.state&&Ad.enqueueReplaceState(y,y.state,null),yi(r,o,y,p),gi(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(t===null){y=r.stateNode;var B=r.memoizedProps,$=ba(i,B);y.props=$;var oe=y.context,ge=i.contextType;D=ns,typeof ge=="object"&&ge!==null&&(D=Ft(ge));var we=i.getDerivedStateFromProps;ge=typeof we=="function"||typeof y.getSnapshotBeforeUpdate=="function",B=r.pendingProps!==B,ge||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(B||oe!==D)&&t0(r,y,o,D),Cr=!1;var fe=r.memoizedState;y.state=fe,yi(r,o,y,p),gi(),oe=r.memoizedState,B||fe!==oe||Cr?(typeof we=="function"&&(Ed(r,i,we,o),oe=r.memoizedState),($=Cr||e0(r,i,$,o,fe,oe,D))?(ge||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=oe),y.props=o,y.state=oe,y.context=D,o=$):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{y=r.stateNode,ad(t,r),D=r.memoizedProps,ge=ba(i,D),y.props=ge,we=r.pendingProps,fe=y.context,oe=i.contextType,$=ns,typeof oe=="object"&&oe!==null&&($=Ft(oe)),B=i.getDerivedStateFromProps,(oe=typeof B=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(D!==we||fe!==$)&&t0(r,y,o,$),Cr=!1,fe=r.memoizedState,y.state=fe,yi(r,o,y,p),gi();var he=r.memoizedState;D!==we||fe!==he||Cr||t!==null&&t.dependencies!==null&&no(t.dependencies)?(typeof B=="function"&&(Ed(r,i,B,o),he=r.memoizedState),(ge=Cr||e0(r,i,ge,o,fe,he,$)||t!==null&&t.dependencies!==null&&no(t.dependencies))?(oe||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(o,he,$),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(o,he,$)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=he),y.props=o,y.state=he,y.context=$,o=ge):(typeof y.componentDidUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),o=!1)}return y=o,So(t,r),o=(r.flags&128)!==0,y||o?(y=r.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:y.render(),r.flags|=1,t!==null&&o?(r.child=fs(r,t.child,null,p),r.child=fs(r,null,i,p)):Mt(t,r,i,p),r.memoizedState=y.state,t=r.child):t=hr(t,r,p),t}function g0(t,r,i,o){return oi(),r.flags|=256,Mt(t,r,i,o),r.child}var _d={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Od(t){return{baseLanes:t,cachePool:rg()}}function Rd(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=En),t}function y0(t,r,i){var o=r.pendingProps,p=!1,y=(r.flags&128)!==0,D;if((D=y)||(D=t!==null&&t.memoizedState===null?!1:(_t.current&2)!==0),D&&(p=!0,r.flags&=-129),D=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ke){if(p?Pr(r):zr(),Ke){var B=gt,$;if($=B){e:{for($=B,B=Zn;$.nodeType!==8;){if(!B){B=null;break e}if($=Bn($.nextSibling),$===null){B=null;break e}}B=$}B!==null?(r.memoizedState={dehydrated:B,treeContext:da!==null?{id:lr,overflow:or}:null,retryLane:536870912,hydrationErrors:null},$=on(18,null,null,0),$.stateNode=B,$.return=r,r.child=$,Gt=r,gt=null,$=!0):$=!1}$||ma(r)}if(B=r.memoizedState,B!==null&&(B=B.dehydrated,B!==null))return pf(B)?r.lanes=32:r.lanes=536870912,null;fr(r)}return B=o.children,o=o.fallback,p?(zr(),p=r.mode,B=jo({mode:"hidden",children:B},p),o=ua(o,p,i,null),B.return=r,o.return=r,B.sibling=o,r.child=B,p=r.child,p.memoizedState=Od(i),p.childLanes=Rd(t,D,i),r.memoizedState=_d,o):(Pr(r),Cd(r,B))}if($=t.memoizedState,$!==null&&(B=$.dehydrated,B!==null)){if(y)r.flags&256?(Pr(r),r.flags&=-257,r=Dd(t,r,i)):r.memoizedState!==null?(zr(),r.child=t.child,r.flags|=128,r=null):(zr(),p=o.fallback,B=r.mode,o=jo({mode:"visible",children:o.children},B),p=ua(p,B,i,null),p.flags|=2,o.return=r,p.return=r,o.sibling=p,r.child=o,fs(r,t.child,null,i),o=r.child,o.memoizedState=Od(i),o.childLanes=Rd(t,D,i),r.memoizedState=_d,r=p);else if(Pr(r),pf(B)){if(D=B.nextSibling&&B.nextSibling.dataset,D)var oe=D.dgst;D=oe,o=Error(s(419)),o.stack="",o.digest=D,ci({value:o,source:null,stack:null}),r=Dd(t,r,i)}else if(Rt||ui(t,r,i,!1),D=(i&t.childLanes)!==0,Rt||D){if(D=it,D!==null&&(o=i&-i,o=(o&42)!==0?1:pu(o),o=(o&(D.suspendedLanes|i))!==0?0:o,o!==0&&o!==$.retryLane))throw $.retryLane=o,ts(t,o),hn(D,t,o),o0;B.data==="$?"||$d(),r=Dd(t,r,i)}else B.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=$.treeContext,gt=Bn(B.nextSibling),Gt=r,Ke=!0,ha=null,Zn=!1,t!==null&&(Sn[jn++]=lr,Sn[jn++]=or,Sn[jn++]=da,lr=t.id,or=t.overflow,da=r),r=Cd(r,o.children),r.flags|=4096);return r}return p?(zr(),p=o.fallback,B=r.mode,$=t.child,oe=$.sibling,o=ir($,{mode:"hidden",children:o.children}),o.subtreeFlags=$.subtreeFlags&65011712,oe!==null?p=ir(oe,p):(p=ua(p,B,i,null),p.flags|=2),p.return=r,o.return=r,o.sibling=p,r.child=o,o=p,p=r.child,B=t.child.memoizedState,B===null?B=Od(i):($=B.cachePool,$!==null?(oe=kt._currentValue,$=$.parent!==oe?{parent:oe,pool:oe}:$):$=rg(),B={baseLanes:B.baseLanes|i,cachePool:$}),p.memoizedState=B,p.childLanes=Rd(t,D,i),r.memoizedState=_d,o):(Pr(r),i=t.child,t=i.sibling,i=ir(i,{mode:"visible",children:o.children}),i.return=r,i.sibling=null,t!==null&&(D=r.deletions,D===null?(r.deletions=[t],r.flags|=16):D.push(t)),r.child=i,r.memoizedState=null,i)}function Cd(t,r){return r=jo({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function jo(t,r){return t=on(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Dd(t,r,i){return fs(r,t.child,null,i),t=Cd(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function x0(t,r,i){t.lanes|=r;var o=t.alternate;o!==null&&(o.lanes|=r),$u(t.return,r,i)}function Md(t,r,i,o,p){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:p}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=i,y.tailMode=p)}function b0(t,r,i){var o=r.pendingProps,p=o.revealOrder,y=o.tail;if(Mt(t,r,o.children,i),o=_t.current,(o&2)!==0)o=o&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&x0(t,i,r);else if(t.tag===19)x0(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}switch(J(_t,o),p){case"forwards":for(i=r.child,p=null;i!==null;)t=i.alternate,t!==null&&bo(t)===null&&(p=i),i=i.sibling;i=p,i===null?(p=r.child,r.child=null):(p=i.sibling,i.sibling=null),Md(r,!1,p,i,y);break;case"backwards":for(i=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&bo(t)===null){r.child=p;break}t=p.sibling,p.sibling=i,i=p,p=t}Md(r,!0,i,null,y);break;case"together":Md(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function hr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),Hr|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(ui(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(s(153));if(r.child!==null){for(t=r.child,i=ir(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=ir(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Ld(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&no(t)))}function GS(t,r,i){switch(r.tag){case 3:Se(r,r.stateNode.containerInfo),Rr(r,kt,t.memoizedState.cache),oi();break;case 27:case 5:Ne(r);break;case 4:Se(r,r.stateNode.containerInfo);break;case 10:Rr(r,r.type,r.memoizedProps.value);break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(Pr(r),r.flags|=128,null):(i&r.child.childLanes)!==0?y0(t,r,i):(Pr(r),t=hr(t,r,i),t!==null?t.sibling:null);Pr(r);break;case 19:var p=(t.flags&128)!==0;if(o=(i&r.childLanes)!==0,o||(ui(t,r,i,!1),o=(i&r.childLanes)!==0),p){if(o)return b0(t,r,i);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),J(_t,_t.current),o)break;return null;case 22:case 23:return r.lanes=0,f0(t,r,i);case 24:Rr(r,kt,t.memoizedState.cache)}return hr(t,r,i)}function v0(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)Rt=!0;else{if(!Ld(t,i)&&(r.flags&128)===0)return Rt=!1,GS(t,r,i);Rt=(t.flags&131072)!==0}else Rt=!1,Ke&&(r.flags&1048576)!==0&&Kp(r,to,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var o=r.elementType,p=o._init;if(o=p(o._payload),r.type=o,typeof o=="function")qu(o)?(t=ba(o,t),r.tag=1,r=p0(null,r,o,t,i)):(r.tag=0,r=kd(null,r,o,t,i));else{if(o!=null){if(p=o.$$typeof,p===I){r.tag=11,r=c0(null,r,o,t,i);break e}else if(p===F){r.tag=14,r=u0(null,r,o,t,i);break e}}throw r=j(o)||o,Error(s(306,r,""))}}return r;case 0:return kd(t,r,r.type,r.pendingProps,i);case 1:return o=r.type,p=ba(o,r.pendingProps),p0(t,r,o,p,i);case 3:e:{if(Se(r,r.stateNode.containerInfo),t===null)throw Error(s(387));o=r.pendingProps;var y=r.memoizedState;p=y.element,ad(t,r),yi(r,o,null,i);var D=r.memoizedState;if(o=D.cache,Rr(r,kt,o),o!==y.cache&&Qu(r,[kt],i,!0),gi(),o=D.element,y.isDehydrated)if(y={element:o,isDehydrated:!1,cache:D.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=g0(t,r,o,i);break e}else if(o!==p){p=vn(Error(s(424)),r),ci(p),r=g0(t,r,o,i);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(gt=Bn(t.firstChild),Gt=r,Ke=!0,ha=null,Zn=!0,i=Qg(r,null,o,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(oi(),o===p){r=hr(t,r,i);break e}Mt(t,r,o,i)}r=r.child}return r;case 26:return So(t,r),t===null?(i=Ty(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ke||(i=r.type,t=r.pendingProps,o=zo(ie.current).createElement(i),o[Bt]=r,o[Kt]=t,Pt(o,i,t),Ot(o),r.stateNode=o):r.memoizedState=Ty(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ne(r),t===null&&Ke&&(o=r.stateNode=wy(r.type,r.pendingProps,ie.current),Gt=r,Zn=!0,p=gt,Yr(r.type)?(gf=p,gt=Bn(o.firstChild)):gt=p),Mt(t,r,r.pendingProps.children,i),So(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ke&&((p=o=gt)&&(o=b3(o,r.type,r.pendingProps,Zn),o!==null?(r.stateNode=o,Gt=r,gt=Bn(o.firstChild),Zn=!1,p=!0):p=!1),p||ma(r)),Ne(r),p=r.type,y=r.pendingProps,D=t!==null?t.memoizedProps:null,o=y.children,ff(p,y)?o=null:D!==null&&ff(p,D)&&(r.flags|=32),r.memoizedState!==null&&(p=ud(t,r,zS,null,null,i),Bi._currentValue=p),So(t,r),Mt(t,r,o,i),r.child;case 6:return t===null&&Ke&&((t=i=gt)&&(i=v3(i,r.pendingProps,Zn),i!==null?(r.stateNode=i,Gt=r,gt=null,t=!0):t=!1),t||ma(r)),null;case 13:return y0(t,r,i);case 4:return Se(r,r.stateNode.containerInfo),o=r.pendingProps,t===null?r.child=fs(r,null,o,i):Mt(t,r,o,i),r.child;case 11:return c0(t,r,r.type,r.pendingProps,i);case 7:return Mt(t,r,r.pendingProps,i),r.child;case 8:return Mt(t,r,r.pendingProps.children,i),r.child;case 12:return Mt(t,r,r.pendingProps.children,i),r.child;case 10:return o=r.pendingProps,Rr(r,r.type,o.value),Mt(t,r,o.children,i),r.child;case 9:return p=r.type._context,o=r.pendingProps.children,ga(r),p=Ft(p),o=o(p),r.flags|=1,Mt(t,r,o,i),r.child;case 14:return u0(t,r,r.type,r.pendingProps,i);case 15:return d0(t,r,r.type,r.pendingProps,i);case 19:return b0(t,r,i);case 31:return o=r.pendingProps,i=r.mode,o={mode:o.mode,children:o.children},t===null?(i=jo(o,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=ir(t.child,o),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return f0(t,r,i);case 24:return ga(r),o=Ft(kt),t===null?(p=td(),p===null&&(p=it,y=Ju(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=i),p=y),r.memoizedState={parent:o,cache:p},rd(r),Rr(r,kt,p)):((t.lanes&i)!==0&&(ad(t,r),yi(r,null,null,i),gi()),p=t.memoizedState,y=r.memoizedState,p.parent!==o?(p={parent:o,cache:o},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),Rr(r,kt,o)):(o=y.cache,Rr(r,kt,o),o!==p.cache&&Qu(r,[kt],i,!0))),Mt(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function mr(t){t.flags|=4}function w0(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_y(r)){if(r=Tn.current,r!==null&&((Ze&4194048)===Ze?Wn!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||r!==Wn))throw mi=nd,ag;t.flags|=8192}}function To(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Ul():536870912,t.lanes|=r,gs|=r)}function Ti(t,r){if(!Ke)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function ht(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(r)for(var p=t.child;p!==null;)i|=p.lanes|p.childLanes,o|=p.subtreeFlags&65011712,o|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)i|=p.lanes|p.childLanes,o|=p.subtreeFlags,o|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=o,t.childLanes=i,r}function YS(t,r,i){var o=r.pendingProps;switch(Zu(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(r),null;case 1:return ht(r),null;case 3:return i=r.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),ur(kt),Te(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(li(r)?mr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Jp())),ht(r),null;case 26:return i=r.memoizedState,t===null?(mr(r),i!==null?(ht(r),w0(r,i)):(ht(r),r.flags&=-16777217)):i?i!==t.memoizedState?(mr(r),ht(r),w0(r,i)):(ht(r),r.flags&=-16777217):(t.memoizedProps!==o&&mr(r),ht(r),r.flags&=-16777217),null;case 27:Oe(r),i=ie.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==o&&mr(r);else{if(!o){if(r.stateNode===null)throw Error(s(166));return ht(r),null}t=Q.current,li(r)?$p(r):(t=wy(p,o,i),r.stateNode=t,mr(r))}return ht(r),null;case 5:if(Oe(r),i=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==o&&mr(r);else{if(!o){if(r.stateNode===null)throw Error(s(166));return ht(r),null}if(t=Q.current,li(r))$p(r);else{switch(p=zo(ie.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof o.is=="string"?p.createElement("select",{is:o.is}):p.createElement("select"),o.multiple?t.multiple=!0:o.size&&(t.size=o.size);break;default:t=typeof o.is=="string"?p.createElement(i,{is:o.is}):p.createElement(i)}}t[Bt]=r,t[Kt]=o;e:for(p=r.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)break e;for(;p.sibling===null;){if(p.return===null||p.return===r)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r.stateNode=t;e:switch(Pt(t,i,o),i){case"button":case"input":case"select":case"textarea":t=!!o.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&mr(r)}}return ht(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==o&&mr(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(s(166));if(t=ie.current,li(r)){if(t=r.stateNode,i=r.memoizedProps,o=null,p=Gt,p!==null)switch(p.tag){case 27:case 5:o=p.memoizedProps}t[Bt]=r,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||my(t.nodeValue,i)),t||ma(r)}else t=zo(t).createTextNode(o),t[Bt]=r,r.stateNode=t}return ht(r),null;case 13:if(o=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=li(r),o!==null&&o.dehydrated!==null){if(t===null){if(!p)throw Error(s(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[Bt]=r}else oi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ht(r),p=!1}else p=Jp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(fr(r),r):(fr(r),null)}if(fr(r),(r.flags&128)!==0)return r.lanes=i,r;if(i=o!==null,t=t!==null&&t.memoizedState!==null,i){o=r.child,p=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(p=o.alternate.memoizedState.cachePool.pool);var y=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(y=o.memoizedState.cachePool.pool),y!==p&&(o.flags|=2048)}return i!==t&&i&&(r.child.flags|=8192),To(r,r.updateQueue),ht(r),null;case 4:return Te(),t===null&&lf(r.stateNode.containerInfo),ht(r),null;case 10:return ur(r.type),ht(r),null;case 19:if(U(_t),p=r.memoizedState,p===null)return ht(r),null;if(o=(r.flags&128)!==0,y=p.rendering,y===null)if(o)Ti(p,!1);else{if(yt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=bo(t),y!==null){for(r.flags|=128,Ti(p,!1),t=y.updateQueue,r.updateQueue=t,To(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)Wp(i,t),i=i.sibling;return J(_t,_t.current&1|2),r.child}t=t.sibling}p.tail!==null&&G()>No&&(r.flags|=128,o=!0,Ti(p,!1),r.lanes=4194304)}else{if(!o)if(t=bo(y),t!==null){if(r.flags|=128,o=!0,t=t.updateQueue,r.updateQueue=t,To(r,t),Ti(p,!0),p.tail===null&&p.tailMode==="hidden"&&!y.alternate&&!Ke)return ht(r),null}else 2*G()-p.renderingStartTime>No&&i!==536870912&&(r.flags|=128,o=!0,Ti(p,!1),r.lanes=4194304);p.isBackwards?(y.sibling=r.child,r.child=y):(t=p.last,t!==null?t.sibling=y:r.child=y,p.last=y)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=G(),r.sibling=null,t=_t.current,J(_t,o?t&1|2:t&1),r):(ht(r),null);case 22:case 23:return fr(r),od(),o=r.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(r.flags|=8192):o&&(r.flags|=8192),o?(i&536870912)!==0&&(r.flags&128)===0&&(ht(r),r.subtreeFlags&6&&(r.flags|=8192)):ht(r),i=r.updateQueue,i!==null&&To(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048),t!==null&&U(ya),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),ur(kt),ht(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function XS(t,r){switch(Zu(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ur(kt),Te(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Oe(r),null;case 13:if(fr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));oi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return U(_t),null;case 4:return Te(),null;case 10:return ur(r.type),null;case 22:case 23:return fr(r),od(),t!==null&&U(ya),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return ur(kt),null;case 25:return null;default:return null}}function S0(t,r){switch(Zu(r),r.tag){case 3:ur(kt),Te();break;case 26:case 27:case 5:Oe(r);break;case 4:Te();break;case 13:fr(r);break;case 19:U(_t);break;case 10:ur(r.type);break;case 22:case 23:fr(r),od(),t!==null&&U(ya);break;case 24:ur(kt)}}function Ei(t,r){try{var i=r.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var p=o.next;i=p;do{if((i.tag&t)===t){o=void 0;var y=i.create,D=i.inst;o=y(),D.destroy=o}i=i.next}while(i!==p)}}catch(B){rt(r,r.return,B)}}function Ur(t,r,i){try{var o=r.updateQueue,p=o!==null?o.lastEffect:null;if(p!==null){var y=p.next;o=y;do{if((o.tag&t)===t){var D=o.inst,B=D.destroy;if(B!==void 0){D.destroy=void 0,p=r;var $=i,oe=B;try{oe()}catch(ge){rt(p,$,ge)}}}o=o.next}while(o!==y)}}catch(ge){rt(r,r.return,ge)}}function j0(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{ug(r,i)}catch(o){rt(t,t.return,o)}}}function T0(t,r,i){i.props=ba(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){rt(t,r,o)}}function Ai(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(p){rt(t,r,p)}}function Kn(t,r){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(p){rt(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){rt(t,r,p)}else i.current=null}function E0(t){var r=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(p){rt(t,t.return,p)}}function Pd(t,r,i){try{var o=t.stateNode;m3(o,t.type,i,r),o[Kt]=r}catch(p){rt(t,t.return,p)}}function A0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yr(t.type)||t.tag===4}function zd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||A0(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&&Yr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ud(t,r,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=Po));else if(o!==4&&(o===27&&Yr(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(Ud(t,r,i),t=t.sibling;t!==null;)Ud(t,r,i),t=t.sibling}function Eo(t,r,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(o!==4&&(o===27&&Yr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Eo(t,r,i),t=t.sibling;t!==null;)Eo(t,r,i),t=t.sibling}function N0(t){var r=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Pt(r,o,i),r[Bt]=t,r[Kt]=i}catch(y){rt(t,t.return,y)}}var pr=!1,wt=!1,Bd=!1,k0=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function ZS(t,r){if(t=t.containerInfo,uf=Io,t=Bp(t),zu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var p=o.anchorOffset,y=o.focusNode;o=o.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var D=0,B=-1,$=-1,oe=0,ge=0,we=t,fe=null;t:for(;;){for(var he;we!==i||p!==0&&we.nodeType!==3||(B=D+p),we!==y||o!==0&&we.nodeType!==3||($=D+o),we.nodeType===3&&(D+=we.nodeValue.length),(he=we.firstChild)!==null;)fe=we,we=he;for(;;){if(we===t)break t;if(fe===i&&++oe===p&&(B=D),fe===y&&++ge===o&&($=D),(he=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=he}i=B===-1||$===-1?null:{start:B,end:$}}else i=null}i=i||{start:0,end:0}}else i=null;for(df={focusedElem:t,selectionRange:i},Io=!1,Ct=r;Ct!==null;)if(r=Ct,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,Ct=t;else for(;Ct!==null;){switch(r=Ct,y=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&y!==null){t=void 0,i=r,p=y.memoizedProps,y=y.memoizedState,o=i.stateNode;try{var Ue=ba(i.type,p,i.elementType===i.type);t=o.getSnapshotBeforeUpdate(Ue,y),o.__reactInternalSnapshotBeforeUpdate=t}catch(Me){rt(i,i.return,Me)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)mf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":mf(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(s(163))}if(t=r.sibling,t!==null){t.return=r.return,Ct=t;break}Ct=r.return}}function _0(t,r,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Br(t,i),o&4&&Ei(5,i);break;case 1:if(Br(t,i),o&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(D){rt(i,i.return,D)}else{var p=ba(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(D){rt(i,i.return,D)}}o&64&&j0(i),o&512&&Ai(i,i.return);break;case 3:if(Br(t,i),o&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{ug(t,r)}catch(D){rt(i,i.return,D)}}break;case 27:r===null&&o&4&&N0(i);case 26:case 5:Br(t,i),r===null&&o&4&&E0(i),o&512&&Ai(i,i.return);break;case 12:Br(t,i);break;case 13:Br(t,i),o&4&&C0(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=r3.bind(null,i),w3(t,i))));break;case 22:if(o=i.memoizedState!==null||pr,!o){r=r!==null&&r.memoizedState!==null||wt,p=pr;var y=wt;pr=o,(wt=r)&&!y?Fr(t,i,(i.subtreeFlags&8772)!==0):Br(t,i),pr=p,wt=y}break;case 30:break;default:Br(t,i)}}function O0(t){var r=t.alternate;r!==null&&(t.alternate=null,O0(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&xu(r)),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 ct=null,Jt=!1;function gr(t,r,i){for(i=i.child;i!==null;)R0(t,r,i),i=i.sibling}function R0(t,r,i){if(ke&&typeof ke.onCommitFiberUnmount=="function")try{ke.onCommitFiberUnmount(xe,i)}catch{}switch(i.tag){case 26:wt||Kn(i,r),gr(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:wt||Kn(i,r);var o=ct,p=Jt;Yr(i.type)&&(ct=i.stateNode,Jt=!1),gr(t,r,i),Li(i.stateNode),ct=o,Jt=p;break;case 5:wt||Kn(i,r);case 6:if(o=ct,p=Jt,ct=null,gr(t,r,i),ct=o,Jt=p,ct!==null)if(Jt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(i.stateNode)}catch(y){rt(i,r,y)}else try{ct.removeChild(i.stateNode)}catch(y){rt(i,r,y)}break;case 18:ct!==null&&(Jt?(t=ct,by(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Ii(t)):by(ct,i.stateNode));break;case 4:o=ct,p=Jt,ct=i.stateNode.containerInfo,Jt=!0,gr(t,r,i),ct=o,Jt=p;break;case 0:case 11:case 14:case 15:wt||Ur(2,i,r),wt||Ur(4,i,r),gr(t,r,i);break;case 1:wt||(Kn(i,r),o=i.stateNode,typeof o.componentWillUnmount=="function"&&T0(i,r,o)),gr(t,r,i);break;case 21:gr(t,r,i);break;case 22:wt=(o=wt)||i.memoizedState!==null,gr(t,r,i),wt=o;break;default:gr(t,r,i)}}function C0(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ii(t)}catch(i){rt(r,r.return,i)}}function WS(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new k0),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new k0),r;default:throw Error(s(435,t.tag))}}function Fd(t,r){var i=WS(t);r.forEach(function(o){var p=a3.bind(null,t,o);i.has(o)||(i.add(o),o.then(p,p))})}function cn(t,r){var i=r.deletions;if(i!==null)for(var o=0;o<i.length;o++){var p=i[o],y=t,D=r,B=D;e:for(;B!==null;){switch(B.tag){case 27:if(Yr(B.type)){ct=B.stateNode,Jt=!1;break e}break;case 5:ct=B.stateNode,Jt=!1;break e;case 3:case 4:ct=B.stateNode.containerInfo,Jt=!0;break e}B=B.return}if(ct===null)throw Error(s(160));R0(y,D,p),ct=null,Jt=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)D0(r,t),r=r.sibling}var Un=null;function D0(t,r){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:cn(r,t),un(t),o&4&&(Ur(3,t,t.return),Ei(3,t),Ur(5,t,t.return));break;case 1:cn(r,t),un(t),o&512&&(wt||i===null||Kn(i,i.return)),o&64&&pr&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var p=Un;if(cn(r,t),un(t),o&512&&(wt||i===null||Kn(i,i.return)),o&4){var y=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,p=p.ownerDocument||p;t:switch(o){case"title":y=p.getElementsByTagName("title")[0],(!y||y[Ks]||y[Bt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(o),p.head.insertBefore(y,p.querySelector("head > title"))),Pt(y,o,i),y[Bt]=t,Ot(y),o=y;break e;case"link":var D=Ny("link","href",p).get(o+(i.href||""));if(D){for(var B=0;B<D.length;B++)if(y=D[B],y.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&y.getAttribute("rel")===(i.rel==null?null:i.rel)&&y.getAttribute("title")===(i.title==null?null:i.title)&&y.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){D.splice(B,1);break t}}y=p.createElement(o),Pt(y,o,i),p.head.appendChild(y);break;case"meta":if(D=Ny("meta","content",p).get(o+(i.content||""))){for(B=0;B<D.length;B++)if(y=D[B],y.getAttribute("content")===(i.content==null?null:""+i.content)&&y.getAttribute("name")===(i.name==null?null:i.name)&&y.getAttribute("property")===(i.property==null?null:i.property)&&y.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&y.getAttribute("charset")===(i.charSet==null?null:i.charSet)){D.splice(B,1);break t}}y=p.createElement(o),Pt(y,o,i),p.head.appendChild(y);break;default:throw Error(s(468,o))}y[Bt]=t,Ot(y),o=y}t.stateNode=o}else ky(p,t.type,t.stateNode);else t.stateNode=Ay(p,o,t.memoizedProps);else y!==o?(y===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):y.count--,o===null?ky(p,t.type,t.stateNode):Ay(p,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Pd(t,t.memoizedProps,i.memoizedProps)}break;case 27:cn(r,t),un(t),o&512&&(wt||i===null||Kn(i,i.return)),i!==null&&o&4&&Pd(t,t.memoizedProps,i.memoizedProps);break;case 5:if(cn(r,t),un(t),o&512&&(wt||i===null||Kn(i,i.return)),t.flags&32){p=t.stateNode;try{Za(p,"")}catch(he){rt(t,t.return,he)}}o&4&&t.stateNode!=null&&(p=t.memoizedProps,Pd(t,p,i!==null?i.memoizedProps:p)),o&1024&&(Bd=!0);break;case 6:if(cn(r,t),un(t),o&4){if(t.stateNode===null)throw Error(s(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(he){rt(t,t.return,he)}}break;case 3:if(Fo=null,p=Un,Un=Uo(r.containerInfo),cn(r,t),Un=p,un(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Ii(r.containerInfo)}catch(he){rt(t,t.return,he)}Bd&&(Bd=!1,M0(t));break;case 4:o=Un,Un=Uo(t.stateNode.containerInfo),cn(r,t),un(t),Un=o;break;case 12:cn(r,t),un(t);break;case 13:cn(r,t),un(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Yd=G()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Fd(t,o)));break;case 22:p=t.memoizedState!==null;var $=i!==null&&i.memoizedState!==null,oe=pr,ge=wt;if(pr=oe||p,wt=ge||$,cn(r,t),wt=ge,pr=oe,un(t),o&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(i===null||$||pr||wt||va(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){$=i=r;try{if(y=$.stateNode,p)D=y.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{B=$.stateNode;var we=$.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;B.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(he){rt($,$.return,he)}}}else if(r.tag===6){if(i===null){$=r;try{$.stateNode.nodeValue=p?"":$.memoizedProps}catch(he){rt($,$.return,he)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Fd(t,i))));break;case 19:cn(r,t),un(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Fd(t,o)));break;case 30:break;case 21:break;default:cn(r,t),un(t)}}function un(t){var r=t.flags;if(r&2){try{for(var i,o=t.return;o!==null;){if(A0(o)){i=o;break}o=o.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var p=i.stateNode,y=zd(t);Eo(t,y,p);break;case 5:var D=i.stateNode;i.flags&32&&(Za(D,""),i.flags&=-33);var B=zd(t);Eo(t,B,D);break;case 3:case 4:var $=i.stateNode.containerInfo,oe=zd(t);Ud(t,oe,$);break;default:throw Error(s(161))}}catch(ge){rt(t,t.return,ge)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function M0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;M0(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Br(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)_0(t,r.alternate,r),r=r.sibling}function va(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Ur(4,r,r.return),va(r);break;case 1:Kn(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&T0(r,r.return,i),va(r);break;case 27:Li(r.stateNode);case 26:case 5:Kn(r,r.return),va(r);break;case 22:r.memoizedState===null&&va(r);break;case 30:va(r);break;default:va(r)}t=t.sibling}}function Fr(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,p=t,y=r,D=y.flags;switch(y.tag){case 0:case 11:case 15:Fr(p,y,i),Ei(4,y);break;case 1:if(Fr(p,y,i),o=y,p=o.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(oe){rt(o,o.return,oe)}if(o=y,p=o.updateQueue,p!==null){var B=o.stateNode;try{var $=p.shared.hiddenCallbacks;if($!==null)for(p.shared.hiddenCallbacks=null,p=0;p<$.length;p++)cg($[p],B)}catch(oe){rt(o,o.return,oe)}}i&&D&64&&j0(y),Ai(y,y.return);break;case 27:N0(y);case 26:case 5:Fr(p,y,i),i&&o===null&&D&4&&E0(y),Ai(y,y.return);break;case 12:Fr(p,y,i);break;case 13:Fr(p,y,i),i&&D&4&&C0(p,y);break;case 22:y.memoizedState===null&&Fr(p,y,i),Ai(y,y.return);break;case 30:break;default:Fr(p,y,i)}r=r.sibling}}function Vd(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&di(i))}function Hd(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&di(t))}function $n(t,r,i,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)L0(t,r,i,o),r=r.sibling}function L0(t,r,i,o){var p=r.flags;switch(r.tag){case 0:case 11:case 15:$n(t,r,i,o),p&2048&&Ei(9,r);break;case 1:$n(t,r,i,o);break;case 3:$n(t,r,i,o),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&di(t)));break;case 12:if(p&2048){$n(t,r,i,o),t=r.stateNode;try{var y=r.memoizedProps,D=y.id,B=y.onPostCommit;typeof B=="function"&&B(D,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch($){rt(r,r.return,$)}}else $n(t,r,i,o);break;case 13:$n(t,r,i,o);break;case 23:break;case 22:y=r.stateNode,D=r.alternate,r.memoizedState!==null?y._visibility&2?$n(t,r,i,o):Ni(t,r):y._visibility&2?$n(t,r,i,o):(y._visibility|=2,hs(t,r,i,o,(r.subtreeFlags&10256)!==0)),p&2048&&Vd(D,r);break;case 24:$n(t,r,i,o),p&2048&&Hd(r.alternate,r);break;default:$n(t,r,i,o)}}function hs(t,r,i,o,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var y=t,D=r,B=i,$=o,oe=D.flags;switch(D.tag){case 0:case 11:case 15:hs(y,D,B,$,p),Ei(8,D);break;case 23:break;case 22:var ge=D.stateNode;D.memoizedState!==null?ge._visibility&2?hs(y,D,B,$,p):Ni(y,D):(ge._visibility|=2,hs(y,D,B,$,p)),p&&oe&2048&&Vd(D.alternate,D);break;case 24:hs(y,D,B,$,p),p&&oe&2048&&Hd(D.alternate,D);break;default:hs(y,D,B,$,p)}r=r.sibling}}function Ni(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,o=r,p=o.flags;switch(o.tag){case 22:Ni(i,o),p&2048&&Vd(o.alternate,o);break;case 24:Ni(i,o),p&2048&&Hd(o.alternate,o);break;default:Ni(i,o)}r=r.sibling}}var ki=8192;function ms(t){if(t.subtreeFlags&ki)for(t=t.child;t!==null;)P0(t),t=t.sibling}function P0(t){switch(t.tag){case 26:ms(t),t.flags&ki&&t.memoizedState!==null&&M3(Un,t.memoizedState,t.memoizedProps);break;case 5:ms(t);break;case 3:case 4:var r=Un;Un=Uo(t.stateNode.containerInfo),ms(t),Un=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=ki,ki=16777216,ms(t),ki=r):ms(t));break;default:ms(t)}}function z0(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function _i(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];Ct=o,B0(o,t)}z0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)U0(t),t=t.sibling}function U0(t){switch(t.tag){case 0:case 11:case 15:_i(t),t.flags&2048&&Ur(9,t,t.return);break;case 3:_i(t);break;case 12:_i(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Ao(t)):_i(t);break;default:_i(t)}}function Ao(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];Ct=o,B0(o,t)}z0(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Ur(8,r,r.return),Ao(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,Ao(r));break;default:Ao(r)}t=t.sibling}}function B0(t,r){for(;Ct!==null;){var i=Ct;switch(i.tag){case 0:case 11:case 15:Ur(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:di(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Ct=o;else e:for(i=t;Ct!==null;){o=Ct;var p=o.sibling,y=o.return;if(O0(o),o===i){Ct=null;break e}if(p!==null){p.return=y,Ct=p;break e}Ct=y}}}var KS={getCacheForType:function(t){var r=Ft(kt),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i}},$S=typeof WeakMap=="function"?WeakMap:Map,$e=0,it=null,Ge=null,Ze=0,Qe=0,dn=null,Vr=!1,ps=!1,Id=!1,yr=0,yt=0,Hr=0,wa=0,qd=0,En=0,gs=0,Oi=null,en=null,Gd=!1,Yd=0,No=1/0,ko=null,Ir=null,Lt=0,qr=null,ys=null,xs=0,Xd=0,Zd=null,F0=null,Ri=0,Wd=null;function fn(){if(($e&2)!==0&&Ze!==0)return Ze&-Ze;if(Z.T!==null){var t=ss;return t!==0?t:nf()}return np()}function V0(){En===0&&(En=(Ze&536870912)===0||Ke?zl():536870912);var t=Tn.current;return t!==null&&(t.flags|=32),En}function hn(t,r,i){(t===it&&(Qe===2||Qe===9)||t.cancelPendingCommit!==null)&&(bs(t,0),Gr(t,Ze,En,!1)),Pn(t,i),(($e&2)===0||t!==it)&&(t===it&&(($e&2)===0&&(wa|=i),yt===4&&Gr(t,Ze,En,!1)),Qn(t))}function H0(t,r,i){if(($e&6)!==0)throw Error(s(327));var o=!i&&(r&124)===0&&(r&t.expiredLanes)===0||kr(t,r),p=o?e3(t,r):Qd(t,r,!0),y=o;do{if(p===0){ps&&!o&&Gr(t,r,0,!1);break}else{if(i=t.current.alternate,y&&!QS(i)){p=Qd(t,r,!1),y=!1;continue}if(p===2){if(y=r,t.errorRecoveryDisabledLanes&y)var D=0;else D=t.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){r=D;e:{var B=t;p=Oi;var $=B.current.memoizedState.isDehydrated;if($&&(bs(B,D).flags|=256),D=Qd(B,D,!1),D!==2){if(Id&&!$){B.errorRecoveryDisabledLanes|=y,wa|=y,p=4;break e}y=en,en=p,y!==null&&(en===null?en=y:en.push.apply(en,y))}p=D}if(y=!1,p!==2)continue}}if(p===1){bs(t,0),Gr(t,r,0,!0);break}e:{switch(o=t,y=p,y){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Gr(o,r,En,!Vr);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(p=Yd+300-G(),10<p)){if(Gr(o,r,En,!Vr),Wt(o,0,!0)!==0)break e;o.timeoutHandle=yy(I0.bind(null,o,i,en,ko,Gd,r,En,wa,gs,Vr,y,2,-0,0),p);break e}I0(o,i,en,ko,Gd,r,En,wa,gs,Vr,y,0,-0,0)}}break}while(!0);Qn(t)}function I0(t,r,i,o,p,y,D,B,$,oe,ge,we,fe,he){if(t.timeoutHandle=-1,we=r.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(Ui={stylesheets:null,count:0,unsuspend:D3},P0(r),we=L3(),we!==null)){t.cancelPendingCommit=we(K0.bind(null,t,r,y,i,o,p,D,B,$,ge,1,fe,he)),Gr(t,y,D,!oe);return}K0(t,r,y,i,o,p,D,B,$)}function QS(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var p=i[o],y=p.getSnapshot;p=p.value;try{if(!ln(y(),p))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Gr(t,r,i,o){r&=~qd,r&=~wa,t.suspendedLanes|=r,t.pingedLanes&=~r,o&&(t.warmLanes|=r),o=t.expirationTimes;for(var p=r;0<p;){var y=31-He(p),D=1<<y;o[y]=-1,p&=~D}i!==0&&ep(t,i,r)}function _o(){return($e&6)===0?(Ci(0),!1):!0}function Kd(){if(Ge!==null){if(Qe===0)var t=Ge.return;else t=Ge,cr=pa=null,hd(t),ds=null,Si=0,t=Ge;for(;t!==null;)S0(t.alternate,t),t=t.return;Ge=null}}function bs(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,g3(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Kd(),it=t,Ge=i=ir(t.current,null),Ze=r,Qe=0,dn=null,Vr=!1,ps=kr(t,r),Id=!1,gs=En=qd=wa=Hr=yt=0,en=Oi=null,Gd=!1,(r&8)!==0&&(r|=r&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=r;0<o;){var p=31-He(o),y=1<<p;r|=t[p],o&=~y}return yr=r,Kl(),i}function q0(t,r){Ie=null,Z.H=go,r===hi||r===so?(r=lg(),Qe=3):r===ag?(r=lg(),Qe=4):Qe=r===o0?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,dn=r,Ge===null&&(yt=1,wo(t,vn(r,t.current)))}function G0(){var t=Z.H;return Z.H=go,t===null?go:t}function Y0(){var t=Z.A;return Z.A=KS,t}function $d(){yt=4,Vr||(Ze&4194048)!==Ze&&Tn.current!==null||(ps=!0),(Hr&134217727)===0&&(wa&134217727)===0||it===null||Gr(it,Ze,En,!1)}function Qd(t,r,i){var o=$e;$e|=2;var p=G0(),y=Y0();(it!==t||Ze!==r)&&(ko=null,bs(t,r)),r=!1;var D=yt;e:do try{if(Qe!==0&&Ge!==null){var B=Ge,$=dn;switch(Qe){case 8:Kd(),D=6;break e;case 3:case 2:case 9:case 6:Tn.current===null&&(r=!0);var oe=Qe;if(Qe=0,dn=null,vs(t,B,$,oe),i&&ps){D=0;break e}break;default:oe=Qe,Qe=0,dn=null,vs(t,B,$,oe)}}JS(),D=yt;break}catch(ge){q0(t,ge)}while(!0);return r&&t.shellSuspendCounter++,cr=pa=null,$e=o,Z.H=p,Z.A=y,Ge===null&&(it=null,Ze=0,Kl()),D}function JS(){for(;Ge!==null;)X0(Ge)}function e3(t,r){var i=$e;$e|=2;var o=G0(),p=Y0();it!==t||Ze!==r?(ko=null,No=G()+500,bs(t,r)):ps=kr(t,r);e:do try{if(Qe!==0&&Ge!==null){r=Ge;var y=dn;t:switch(Qe){case 1:Qe=0,dn=null,vs(t,r,y,1);break;case 2:case 9:if(sg(y)){Qe=0,dn=null,Z0(r);break}r=function(){Qe!==2&&Qe!==9||it!==t||(Qe=7),Qn(t)},y.then(r,r);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:sg(y)?(Qe=0,dn=null,Z0(r)):(Qe=0,dn=null,vs(t,r,y,7));break;case 5:var D=null;switch(Ge.tag){case 26:D=Ge.memoizedState;case 5:case 27:var B=Ge;if(!D||_y(D)){Qe=0,dn=null;var $=B.sibling;if($!==null)Ge=$;else{var oe=B.return;oe!==null?(Ge=oe,Oo(oe)):Ge=null}break t}}Qe=0,dn=null,vs(t,r,y,5);break;case 6:Qe=0,dn=null,vs(t,r,y,6);break;case 8:Kd(),yt=6;break e;default:throw Error(s(462))}}t3();break}catch(ge){q0(t,ge)}while(!0);return cr=pa=null,Z.H=o,Z.A=p,$e=i,Ge!==null?0:(it=null,Ze=0,Kl(),yt)}function t3(){for(;Ge!==null&&!de();)X0(Ge)}function X0(t){var r=v0(t.alternate,t,yr);t.memoizedProps=t.pendingProps,r===null?Oo(t):Ge=r}function Z0(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=m0(i,r,r.pendingProps,r.type,void 0,Ze);break;case 11:r=m0(i,r,r.pendingProps,r.type.render,r.ref,Ze);break;case 5:hd(r);default:S0(i,r),r=Ge=Wp(r,yr),r=v0(i,r,yr)}t.memoizedProps=t.pendingProps,r===null?Oo(t):Ge=r}function vs(t,r,i,o){cr=pa=null,hd(r),ds=null,Si=0;var p=r.return;try{if(qS(t,p,r,i,Ze)){yt=1,wo(t,vn(i,t.current)),Ge=null;return}}catch(y){if(p!==null)throw Ge=p,y;yt=1,wo(t,vn(i,t.current)),Ge=null;return}r.flags&32768?(Ke||o===1?t=!0:ps||(Ze&536870912)!==0?t=!1:(Vr=t=!0,(o===2||o===9||o===3||o===6)&&(o=Tn.current,o!==null&&o.tag===13&&(o.flags|=16384))),W0(r,t)):Oo(r)}function Oo(t){var r=t;do{if((r.flags&32768)!==0){W0(r,Vr);return}t=r.return;var i=YS(r.alternate,r,yr);if(i!==null){Ge=i;return}if(r=r.sibling,r!==null){Ge=r;return}Ge=r=t}while(r!==null);yt===0&&(yt=5)}function W0(t,r){do{var i=XS(t.alternate,t);if(i!==null){i.flags&=32767,Ge=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){Ge=t;return}Ge=t=i}while(t!==null);yt=6,Ge=null}function K0(t,r,i,o,p,y,D,B,$){t.cancelPendingCommit=null;do Ro();while(Lt!==0);if(($e&6)!==0)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(y=r.lanes|r.childLanes,y|=Hu,Fa(t,i,y,D,B,$),t===it&&(Ge=it=null,Ze=0),ys=r,qr=t,xs=i,Xd=y,Zd=p,F0=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,s3(ye,function(){return ty(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=Z.T,Z.T=null,p=v.p,v.p=2,D=$e,$e|=4;try{ZS(t,r,i)}finally{$e=D,v.p=p,Z.T=o}}Lt=1,$0(),Q0(),J0()}}function $0(){if(Lt===1){Lt=0;var t=qr,r=ys,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=Z.T,Z.T=null;var o=v.p;v.p=2;var p=$e;$e|=4;try{D0(r,t);var y=df,D=Bp(t.containerInfo),B=y.focusedElem,$=y.selectionRange;if(D!==B&&B&&B.ownerDocument&&Up(B.ownerDocument.documentElement,B)){if($!==null&&zu(B)){var oe=$.start,ge=$.end;if(ge===void 0&&(ge=oe),"selectionStart"in B)B.selectionStart=oe,B.selectionEnd=Math.min(ge,B.value.length);else{var we=B.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var he=fe.getSelection(),Ue=B.textContent.length,Me=Math.min($.start,Ue),tt=$.end===void 0?Me:Math.min($.end,Ue);!he.extend&&Me>tt&&(D=tt,tt=Me,Me=D);var ae=zp(B,Me),re=zp(B,tt);if(ae&&re&&(he.rangeCount!==1||he.anchorNode!==ae.node||he.anchorOffset!==ae.offset||he.focusNode!==re.node||he.focusOffset!==re.offset)){var se=we.createRange();se.setStart(ae.node,ae.offset),he.removeAllRanges(),Me>tt?(he.addRange(se),he.extend(re.node,re.offset)):(se.setEnd(re.node,re.offset),he.addRange(se))}}}}for(we=[],he=B;he=he.parentNode;)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<we.length;B++){var be=we[B];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}Io=!!uf,df=uf=null}finally{$e=p,v.p=o,Z.T=i}}t.current=r,Lt=2}}function Q0(){if(Lt===2){Lt=0;var t=qr,r=ys,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=Z.T,Z.T=null;var o=v.p;v.p=2;var p=$e;$e|=4;try{_0(t,r.alternate,r)}finally{$e=p,v.p=o,Z.T=i}}Lt=3}}function J0(){if(Lt===4||Lt===3){Lt=0,ce();var t=qr,r=ys,i=xs,o=F0;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Lt=5:(Lt=0,ys=qr=null,ey(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Ir=null),gu(i),r=r.stateNode,ke&&typeof ke.onCommitFiberRoot=="function")try{ke.onCommitFiberRoot(xe,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=Z.T,p=v.p,v.p=2,Z.T=null;try{for(var y=t.onRecoverableError,D=0;D<o.length;D++){var B=o[D];y(B.value,{componentStack:B.stack})}}finally{Z.T=r,v.p=p}}(xs&3)!==0&&Ro(),Qn(t),p=t.pendingLanes,(i&4194090)!==0&&(p&42)!==0?t===Wd?Ri++:(Ri=0,Wd=t):Ri=0,Ci(0)}}function ey(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,di(r)))}function Ro(t){return $0(),Q0(),J0(),ty()}function ty(){if(Lt!==5)return!1;var t=qr,r=Xd;Xd=0;var i=gu(xs),o=Z.T,p=v.p;try{v.p=32>i?32:i,Z.T=null,i=Zd,Zd=null;var y=qr,D=xs;if(Lt=0,ys=qr=null,xs=0,($e&6)!==0)throw Error(s(331));var B=$e;if($e|=4,U0(y.current),L0(y,y.current,D,i),$e=B,Ci(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(xe,y)}catch{}return!0}finally{v.p=p,Z.T=o,ey(t,r)}}function ny(t,r,i){r=vn(i,r),r=Nd(t.stateNode,r,2),t=Mr(t,r,2),t!==null&&(Pn(t,2),Qn(t))}function rt(t,r,i){if(t.tag===3)ny(t,t,i);else for(;r!==null;){if(r.tag===3){ny(r,t,i);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ir===null||!Ir.has(o))){t=vn(i,t),i=i0(2),o=Mr(r,i,2),o!==null&&(l0(i,o,r,t),Pn(o,2),Qn(o));break}}r=r.return}}function Jd(t,r,i){var o=t.pingCache;if(o===null){o=t.pingCache=new $S;var p=new Set;o.set(r,p)}else p=o.get(r),p===void 0&&(p=new Set,o.set(r,p));p.has(i)||(Id=!0,p.add(i),t=n3.bind(null,t,r,i),r.then(t,t))}function n3(t,r,i){var o=t.pingCache;o!==null&&o.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,it===t&&(Ze&i)===i&&(yt===4||yt===3&&(Ze&62914560)===Ze&&300>G()-Yd?($e&2)===0&&bs(t,0):qd|=i,gs===Ze&&(gs=0)),Qn(t)}function ry(t,r){r===0&&(r=Ul()),t=ts(t,r),t!==null&&(Pn(t,r),Qn(t))}function r3(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),ry(t,i)}function a3(t,r){var i=0;switch(t.tag){case 13:var o=t.stateNode,p=t.memoizedState;p!==null&&(i=p.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(r),ry(t,i)}function s3(t,r){return Re(t,r)}var Co=null,ws=null,ef=!1,Do=!1,tf=!1,Sa=0;function Qn(t){t!==ws&&t.next===null&&(ws===null?Co=ws=t:ws=ws.next=t),Do=!0,ef||(ef=!0,l3())}function Ci(t,r){if(!tf&&Do){tf=!0;do for(var i=!1,o=Co;o!==null;){if(t!==0){var p=o.pendingLanes;if(p===0)var y=0;else{var D=o.suspendedLanes,B=o.pingedLanes;y=(1<<31-He(42|t)+1)-1,y&=p&~(D&~B),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(i=!0,ly(o,y))}else y=Ze,y=Wt(o,o===it?y:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(y&3)===0||kr(o,y)||(i=!0,ly(o,y));o=o.next}while(i);tf=!1}}function i3(){ay()}function ay(){Do=ef=!1;var t=0;Sa!==0&&(p3()&&(t=Sa),Sa=0);for(var r=G(),i=null,o=Co;o!==null;){var p=o.next,y=sy(o,r);y===0?(o.next=null,i===null?Co=p:i.next=p,p===null&&(ws=i)):(i=o,(t!==0||(y&3)!==0)&&(Do=!0)),o=p}Ci(t)}function sy(t,r){for(var i=t.suspendedLanes,o=t.pingedLanes,p=t.expirationTimes,y=t.pendingLanes&-62914561;0<y;){var D=31-He(y),B=1<<D,$=p[D];$===-1?((B&i)===0||(B&o)!==0)&&(p[D]=mu(B,r)):$<=r&&(t.expiredLanes|=B),y&=~B}if(r=it,i=Ze,i=Wt(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===r&&(Qe===2||Qe===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&_(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||kr(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(o!==null&&_(o),gu(i)){case 2:case 8:i=pe;break;case 32:i=ye;break;case 268435456:i=je;break;default:i=ye}return o=iy.bind(null,t),i=Re(i,o),t.callbackPriority=r,t.callbackNode=i,r}return o!==null&&o!==null&&_(o),t.callbackPriority=2,t.callbackNode=null,2}function iy(t,r){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Ro()&&t.callbackNode!==i)return null;var o=Ze;return o=Wt(t,t===it?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(H0(t,o,r),sy(t,G()),t.callbackNode!=null&&t.callbackNode===i?iy.bind(null,t):null)}function ly(t,r){if(Ro())return null;H0(t,r,!0)}function l3(){y3(function(){($e&6)!==0?Re(te,i3):ay()})}function nf(){return Sa===0&&(Sa=zl()),Sa}function oy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Il(""+t)}function cy(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function o3(t,r,i,o,p){if(r==="submit"&&i&&i.stateNode===p){var y=oy((p[Kt]||null).action),D=o.submitter;D&&(r=(r=D[Kt]||null)?oy(r.formAction):D.getAttribute("formAction"),r!==null&&(y=r,D=null));var B=new Xl("action","action",null,o,p);t.push({event:B,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Sa!==0){var $=D?cy(p,D):new FormData(p);Sd(i,{pending:!0,data:$,method:p.method,action:y},null,$)}}else typeof y=="function"&&(B.preventDefault(),$=D?cy(p,D):new FormData(p),Sd(i,{pending:!0,data:$,method:p.method,action:y},y,$))},currentTarget:p}]})}}for(var rf=0;rf<Vu.length;rf++){var af=Vu[rf],c3=af.toLowerCase(),u3=af[0].toUpperCase()+af.slice(1);zn(c3,"on"+u3)}zn(Hp,"onAnimationEnd"),zn(Ip,"onAnimationIteration"),zn(qp,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn(NS,"onTransitionRun"),zn(kS,"onTransitionStart"),zn(_S,"onTransitionCancel"),zn(Gp,"onTransitionEnd"),Ga("onMouseEnter",["mouseout","mouseover"]),Ga("onMouseLeave",["mouseout","mouseover"]),Ga("onPointerEnter",["pointerout","pointerover"]),Ga("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 Di="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(" "),d3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Di));function uy(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],p=o.event;o=o.listeners;e:{var y=void 0;if(r)for(var D=o.length-1;0<=D;D--){var B=o[D],$=B.instance,oe=B.currentTarget;if(B=B.listener,$!==y&&p.isPropagationStopped())break e;y=B,p.currentTarget=oe;try{y(p)}catch(ge){vo(ge)}p.currentTarget=null,y=$}else for(D=0;D<o.length;D++){if(B=o[D],$=B.instance,oe=B.currentTarget,B=B.listener,$!==y&&p.isPropagationStopped())break e;y=B,p.currentTarget=oe;try{y(p)}catch(ge){vo(ge)}p.currentTarget=null,y=$}}}}function Ye(t,r){var i=r[yu];i===void 0&&(i=r[yu]=new Set);var o=t+"__bubble";i.has(o)||(dy(r,t,2,!1),i.add(o))}function sf(t,r,i){var o=0;r&&(o|=4),dy(i,t,o,r)}var Mo="_reactListening"+Math.random().toString(36).slice(2);function lf(t){if(!t[Mo]){t[Mo]=!0,ap.forEach(function(i){i!=="selectionchange"&&(d3.has(i)||sf(i,!1,t),sf(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Mo]||(r[Mo]=!0,sf("selectionchange",!1,r))}}function dy(t,r,i,o){switch(Ly(r)){case 2:var p=U3;break;case 8:p=B3;break;default:p=wf}i=p.bind(null,r,i,t),p=void 0,!ku||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),o?p!==void 0?t.addEventListener(r,i,{capture:!0,passive:p}):t.addEventListener(r,i,!0):p!==void 0?t.addEventListener(r,i,{passive:p}):t.addEventListener(r,i,!1)}function of(t,r,i,o,p){var y=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var D=o.tag;if(D===3||D===4){var B=o.stateNode.containerInfo;if(B===p)break;if(D===4)for(D=o.return;D!==null;){var $=D.tag;if(($===3||$===4)&&D.stateNode.containerInfo===p)return;D=D.return}for(;B!==null;){if(D=Ha(B),D===null)return;if($=D.tag,$===5||$===6||$===26||$===27){o=y=D;continue e}B=B.parentNode}}o=o.return}xp(function(){var oe=y,ge=Au(i),we=[];e:{var fe=Yp.get(t);if(fe!==void 0){var he=Xl,Ue=t;switch(t){case"keypress":if(Gl(i)===0)break e;case"keydown":case"keyup":he=sS;break;case"focusin":Ue="focus",he=Cu;break;case"focusout":Ue="blur",he=Cu;break;case"beforeblur":case"afterblur":he=Cu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=wp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=X2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=oS;break;case Hp:case Ip:case qp:he=K2;break;case Gp:he=uS;break;case"scroll":case"scrollend":he=G2;break;case"wheel":he=fS;break;case"copy":case"cut":case"paste":he=Q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=jp;break;case"toggle":case"beforetoggle":he=mS}var Me=(r&4)!==0,tt=!Me&&(t==="scroll"||t==="scrollend"),ae=Me?fe!==null?fe+"Capture":null:fe;Me=[];for(var re=oe,se;re!==null;){var be=re;if(se=be.stateNode,be=be.tag,be!==5&&be!==26&&be!==27||se===null||ae===null||(be=Qs(re,ae),be!=null&&Me.push(Mi(re,be,se))),tt)break;re=re.return}0<Me.length&&(fe=new he(fe,Ue,null,i,ge),we.push({event:fe,listeners:Me}))}}if((r&7)===0){e:{if(fe=t==="mouseover"||t==="pointerover",he=t==="mouseout"||t==="pointerout",fe&&i!==Eu&&(Ue=i.relatedTarget||i.fromElement)&&(Ha(Ue)||Ue[Va]))break e;if((he||fe)&&(fe=ge.window===ge?ge:(fe=ge.ownerDocument)?fe.defaultView||fe.parentWindow:window,he?(Ue=i.relatedTarget||i.toElement,he=oe,Ue=Ue?Ha(Ue):null,Ue!==null&&(tt=c(Ue),Me=Ue.tag,Ue!==tt||Me!==5&&Me!==27&&Me!==6)&&(Ue=null)):(he=null,Ue=oe),he!==Ue)){if(Me=wp,be="onMouseLeave",ae="onMouseEnter",re="mouse",(t==="pointerout"||t==="pointerover")&&(Me=jp,be="onPointerLeave",ae="onPointerEnter",re="pointer"),tt=he==null?fe:$s(he),se=Ue==null?fe:$s(Ue),fe=new Me(be,re+"leave",he,i,ge),fe.target=tt,fe.relatedTarget=se,be=null,Ha(ge)===oe&&(Me=new Me(ae,re+"enter",Ue,i,ge),Me.target=se,Me.relatedTarget=tt,be=Me),tt=be,he&&Ue)t:{for(Me=he,ae=Ue,re=0,se=Me;se;se=Ss(se))re++;for(se=0,be=ae;be;be=Ss(be))se++;for(;0<re-se;)Me=Ss(Me),re--;for(;0<se-re;)ae=Ss(ae),se--;for(;re--;){if(Me===ae||ae!==null&&Me===ae.alternate)break t;Me=Ss(Me),ae=Ss(ae)}Me=null}else Me=null;he!==null&&fy(we,fe,he,Me,!1),Ue!==null&&tt!==null&&fy(we,tt,Ue,Me,!0)}}e:{if(fe=oe?$s(oe):window,he=fe.nodeName&&fe.nodeName.toLowerCase(),he==="select"||he==="input"&&fe.type==="file")var _e=Rp;else if(_p(fe))if(Cp)_e=TS;else{_e=SS;var qe=wS}else he=fe.nodeName,!he||he.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?oe&&Tu(oe.elementType)&&(_e=Rp):_e=jS;if(_e&&(_e=_e(t,oe))){Op(we,_e,i,ge);break e}qe&&qe(t,fe,oe),t==="focusout"&&oe&&fe.type==="number"&&oe.memoizedProps.value!=null&&ju(fe,"number",fe.value)}switch(qe=oe?$s(oe):window,t){case"focusin":(_p(qe)||qe.contentEditable==="true")&&(Qa=qe,Uu=oe,ii=null);break;case"focusout":ii=Uu=Qa=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Fp(we,i,ge);break;case"selectionchange":if(AS)break;case"keydown":case"keyup":Fp(we,i,ge)}var De;if(Mu)e:{switch(t){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else $a?Np(t,i)&&(Pe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Pe="onCompositionStart");Pe&&(Tp&&i.locale!=="ko"&&($a||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&$a&&(De=bp()):(Or=ge,_u="value"in Or?Or.value:Or.textContent,$a=!0)),qe=Lo(oe,Pe),0<qe.length&&(Pe=new Sp(Pe,t,null,i,ge),we.push({event:Pe,listeners:qe}),De?Pe.data=De:(De=kp(i),De!==null&&(Pe.data=De)))),(De=gS?yS(t,i):xS(t,i))&&(Pe=Lo(oe,"onBeforeInput"),0<Pe.length&&(qe=new Sp("onBeforeInput","beforeinput",null,i,ge),we.push({event:qe,listeners:Pe}),qe.data=De)),o3(we,t,oe,i,ge)}uy(we,r)})}function Mi(t,r,i){return{instance:t,listener:r,currentTarget:i}}function Lo(t,r){for(var i=r+"Capture",o=[];t!==null;){var p=t,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=Qs(t,i),p!=null&&o.unshift(Mi(t,p,y)),p=Qs(t,r),p!=null&&o.push(Mi(t,p,y))),t.tag===3)return o;t=t.return}return[]}function Ss(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function fy(t,r,i,o,p){for(var y=r._reactName,D=[];i!==null&&i!==o;){var B=i,$=B.alternate,oe=B.stateNode;if(B=B.tag,$!==null&&$===o)break;B!==5&&B!==26&&B!==27||oe===null||($=oe,p?(oe=Qs(i,y),oe!=null&&D.unshift(Mi(i,oe,$))):p||(oe=Qs(i,y),oe!=null&&D.push(Mi(i,oe,$)))),i=i.return}D.length!==0&&t.push({event:r,listeners:D})}var f3=/\r\n?/g,h3=/\u0000|\uFFFD/g;function hy(t){return(typeof t=="string"?t:""+t).replace(f3,`
`).replace(h3,"")}function my(t,r){return r=hy(r),hy(t)===r}function Po(){}function et(t,r,i,o,p,y){switch(i){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||Za(t,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&Za(t,""+o);break;case"className":Fl(t,"class",o);break;case"tabIndex":Fl(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Fl(t,i,o);break;case"style":gp(t,o,y);break;case"data":if(r!=="object"){Fl(t,"data",o);break}case"src":case"href":if(o===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Il(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"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 y=="function"&&(i==="formAction"?(r!=="input"&&et(t,r,"name",p.name,p,null),et(t,r,"formEncType",p.formEncType,p,null),et(t,r,"formMethod",p.formMethod,p,null),et(t,r,"formTarget",p.formTarget,p,null)):(et(t,r,"encType",p.encType,p,null),et(t,r,"method",p.method,p,null),et(t,r,"target",p.target,p,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Il(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=Po);break;case"onScroll":o!=null&&Ye("scroll",t);break;case"onScrollEnd":o!=null&&Ye("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=Il(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);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":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Ye("beforetoggle",t),Ye("toggle",t),Bl(t,"popover",o);break;case"xlinkActuate":ar(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ar(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ar(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ar(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ar(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ar(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ar(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ar(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ar(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Bl(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=I2.get(i)||i,Bl(t,i,o))}}function cf(t,r,i,o,p,y){switch(i){case"style":gp(t,o,y);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof o=="string"?Za(t,o):(typeof o=="number"||typeof o=="bigint")&&Za(t,""+o);break;case"onScroll":o!=null&&Ye("scroll",t);break;case"onScrollEnd":o!=null&&Ye("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Po);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sp.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(p=i.endsWith("Capture"),r=i.slice(2,p?i.length-7:void 0),y=t[Kt]||null,y=y!=null?y[i]:null,typeof y=="function"&&t.removeEventListener(r,y,p),typeof o=="function")){typeof y!="function"&&y!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,o,p);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):Bl(t,i,o)}}}function Pt(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",t),Ye("load",t);var o=!1,p=!1,y;for(y in i)if(i.hasOwnProperty(y)){var D=i[y];if(D!=null)switch(y){case"src":o=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(t,r,y,D,i,null)}}p&&et(t,r,"srcSet",i.srcSet,i,null),o&&et(t,r,"src",i.src,i,null);return;case"input":Ye("invalid",t);var B=y=D=p=null,$=null,oe=null;for(o in i)if(i.hasOwnProperty(o)){var ge=i[o];if(ge!=null)switch(o){case"name":p=ge;break;case"type":D=ge;break;case"checked":$=ge;break;case"defaultChecked":oe=ge;break;case"value":y=ge;break;case"defaultValue":B=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(s(137,r));break;default:et(t,r,o,ge,i,null)}}fp(t,y,B,$,oe,D,p,!1),Vl(t);return;case"select":Ye("invalid",t),o=D=y=null;for(p in i)if(i.hasOwnProperty(p)&&(B=i[p],B!=null))switch(p){case"value":y=B;break;case"defaultValue":D=B;break;case"multiple":o=B;default:et(t,r,p,B,i,null)}r=y,i=D,t.multiple=!!o,r!=null?Xa(t,!!o,r,!1):i!=null&&Xa(t,!!o,i,!0);return;case"textarea":Ye("invalid",t),y=p=o=null;for(D in i)if(i.hasOwnProperty(D)&&(B=i[D],B!=null))switch(D){case"value":o=B;break;case"defaultValue":p=B;break;case"children":y=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(91));break;default:et(t,r,D,B,i,null)}mp(t,o,p,y),Vl(t);return;case"option":for($ in i)if(i.hasOwnProperty($)&&(o=i[$],o!=null))switch($){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:et(t,r,$,o,i,null)}return;case"dialog":Ye("beforetoggle",t),Ye("toggle",t),Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":Ye("load",t);break;case"video":case"audio":for(o=0;o<Di.length;o++)Ye(Di[o],t);break;case"image":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"embed":case"source":case"link":Ye("error",t),Ye("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(oe in i)if(i.hasOwnProperty(oe)&&(o=i[oe],o!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(t,r,oe,o,i,null)}return;default:if(Tu(r)){for(ge in i)i.hasOwnProperty(ge)&&(o=i[ge],o!==void 0&&cf(t,r,ge,o,i,void 0));return}}for(B in i)i.hasOwnProperty(B)&&(o=i[B],o!=null&&et(t,r,B,o,i,null))}function m3(t,r,i,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,D=null,B=null,$=null,oe=null,ge=null;for(he in i){var we=i[he];if(i.hasOwnProperty(he)&&we!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":$=we;default:o.hasOwnProperty(he)||et(t,r,he,null,o,we)}}for(var fe in o){var he=o[fe];if(we=i[fe],o.hasOwnProperty(fe)&&(he!=null||we!=null))switch(fe){case"type":y=he;break;case"name":p=he;break;case"checked":oe=he;break;case"defaultChecked":ge=he;break;case"value":D=he;break;case"defaultValue":B=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(s(137,r));break;default:he!==we&&et(t,r,fe,he,o,we)}}Su(t,D,B,$,oe,ge,y,p);return;case"select":he=D=B=fe=null;for(y in i)if($=i[y],i.hasOwnProperty(y)&&$!=null)switch(y){case"value":break;case"multiple":he=$;default:o.hasOwnProperty(y)||et(t,r,y,null,o,$)}for(p in o)if(y=o[p],$=i[p],o.hasOwnProperty(p)&&(y!=null||$!=null))switch(p){case"value":fe=y;break;case"defaultValue":B=y;break;case"multiple":D=y;default:y!==$&&et(t,r,p,y,o,$)}r=B,i=D,o=he,fe!=null?Xa(t,!!i,fe,!1):!!o!=!!i&&(r!=null?Xa(t,!!i,r,!0):Xa(t,!!i,i?[]:"",!1));return;case"textarea":he=fe=null;for(B in i)if(p=i[B],i.hasOwnProperty(B)&&p!=null&&!o.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:et(t,r,B,null,o,p)}for(D in o)if(p=o[D],y=i[D],o.hasOwnProperty(D)&&(p!=null||y!=null))switch(D){case"value":fe=p;break;case"defaultValue":he=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==y&&et(t,r,D,p,o,y)}hp(t,fe,he);return;case"option":for(var Ue in i)if(fe=i[Ue],i.hasOwnProperty(Ue)&&fe!=null&&!o.hasOwnProperty(Ue))switch(Ue){case"selected":t.selected=!1;break;default:et(t,r,Ue,null,o,fe)}for($ in o)if(fe=o[$],he=i[$],o.hasOwnProperty($)&&fe!==he&&(fe!=null||he!=null))switch($){case"selected":t.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:et(t,r,$,fe,o,he)}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 Me in i)fe=i[Me],i.hasOwnProperty(Me)&&fe!=null&&!o.hasOwnProperty(Me)&&et(t,r,Me,null,o,fe);for(oe in o)if(fe=o[oe],he=i[oe],o.hasOwnProperty(oe)&&fe!==he&&(fe!=null||he!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(s(137,r));break;default:et(t,r,oe,fe,o,he)}return;default:if(Tu(r)){for(var tt in i)fe=i[tt],i.hasOwnProperty(tt)&&fe!==void 0&&!o.hasOwnProperty(tt)&&cf(t,r,tt,void 0,o,fe);for(ge in o)fe=o[ge],he=i[ge],!o.hasOwnProperty(ge)||fe===he||fe===void 0&&he===void 0||cf(t,r,ge,fe,o,he);return}}for(var ae in i)fe=i[ae],i.hasOwnProperty(ae)&&fe!=null&&!o.hasOwnProperty(ae)&&et(t,r,ae,null,o,fe);for(we in o)fe=o[we],he=i[we],!o.hasOwnProperty(we)||fe===he||fe==null&&he==null||et(t,r,we,fe,o,he)}var uf=null,df=null;function zo(t){return t.nodeType===9?t:t.ownerDocument}function py(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 gy(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function ff(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var hf=null;function p3(){var t=window.event;return t&&t.type==="popstate"?t===hf?!1:(hf=t,!0):(hf=null,!1)}var yy=typeof setTimeout=="function"?setTimeout:void 0,g3=typeof clearTimeout=="function"?clearTimeout:void 0,xy=typeof Promise=="function"?Promise:void 0,y3=typeof queueMicrotask=="function"?queueMicrotask:typeof xy<"u"?function(t){return xy.resolve(null).then(t).catch(x3)}:yy;function x3(t){setTimeout(function(){throw t})}function Yr(t){return t==="head"}function by(t,r){var i=r,o=0,p=0;do{var y=i.nextSibling;if(t.removeChild(i),y&&y.nodeType===8)if(i=y.data,i==="/$"){if(0<o&&8>o){i=o;var D=t.ownerDocument;if(i&1&&Li(D.documentElement),i&2&&Li(D.body),i&4)for(i=D.head,Li(i),D=i.firstChild;D;){var B=D.nextSibling,$=D.nodeName;D[Ks]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&D.rel.toLowerCase()==="stylesheet"||i.removeChild(D),D=B}}if(p===0){t.removeChild(y),Ii(r);return}p--}else i==="$"||i==="$?"||i==="$!"?p++:o=i.charCodeAt(0)-48;else o=0;i=y}while(i);Ii(r)}function mf(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":mf(i),xu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function b3(t,r,i,o){for(;t.nodeType===1;){var p=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Ks])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(y=t.getAttribute("rel"),y==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(y!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(y=t.getAttribute("src"),(y!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===y)return t}else return t;if(t=Bn(t.nextSibling),t===null)break}return null}function v3(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Bn(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function w3(t,r){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")r();else{var o=function(){r(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function Bn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var gf=null;function vy(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return t;r--}else i==="/$"&&r++}t=t.previousSibling}return null}function wy(t,r,i){switch(r=zo(i),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Li(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);xu(t)}var An=new Map,Sy=new Set;function Uo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var xr=v.d;v.d={f:S3,r:j3,D:T3,C:E3,L:A3,m:N3,X:_3,S:k3,M:O3};function S3(){var t=xr.f(),r=_o();return t||r}function j3(t){var r=Ia(t);r!==null&&r.tag===5&&r.type==="form"?Hg(r):xr.r(t)}var js=typeof document>"u"?null:document;function jy(t,r,i){var o=js;if(o&&typeof r=="string"&&r){var p=bn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),Sy.has(p)||(Sy.add(p),t={rel:t,crossOrigin:i,href:r},o.querySelector(p)===null&&(r=o.createElement("link"),Pt(r,"link",t),Ot(r),o.head.appendChild(r)))}}function T3(t){xr.D(t),jy("dns-prefetch",t,null)}function E3(t,r){xr.C(t,r),jy("preconnect",t,r)}function A3(t,r,i){xr.L(t,r,i);var o=js;if(o&&t&&r){var p='link[rel="preload"][as="'+bn(r)+'"]';r==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+bn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+bn(i.imageSizes)+'"]')):p+='[href="'+bn(t)+'"]';var y=p;switch(r){case"style":y=Ts(t);break;case"script":y=Es(t)}An.has(y)||(t=g({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),An.set(y,t),o.querySelector(p)!==null||r==="style"&&o.querySelector(Pi(y))||r==="script"&&o.querySelector(zi(y))||(r=o.createElement("link"),Pt(r,"link",t),Ot(r),o.head.appendChild(r)))}}function N3(t,r){xr.m(t,r);var i=js;if(i&&t){var o=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+bn(o)+'"][href="'+bn(t)+'"]',y=p;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Es(t)}if(!An.has(y)&&(t=g({rel:"modulepreload",href:t},r),An.set(y,t),i.querySelector(p)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(zi(y)))return}o=i.createElement("link"),Pt(o,"link",t),Ot(o),i.head.appendChild(o)}}}function k3(t,r,i){xr.S(t,r,i);var o=js;if(o&&t){var p=qa(o).hoistableStyles,y=Ts(t);r=r||"default";var D=p.get(y);if(!D){var B={loading:0,preload:null};if(D=o.querySelector(Pi(y)))B.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":r},i),(i=An.get(y))&&yf(t,i);var $=D=o.createElement("link");Ot($),Pt($,"link",t),$._p=new Promise(function(oe,ge){$.onload=oe,$.onerror=ge}),$.addEventListener("load",function(){B.loading|=1}),$.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Bo(D,r,o)}D={type:"stylesheet",instance:D,count:1,state:B},p.set(y,D)}}}function _3(t,r){xr.X(t,r);var i=js;if(i&&t){var o=qa(i).hoistableScripts,p=Es(t),y=o.get(p);y||(y=i.querySelector(zi(p)),y||(t=g({src:t,async:!0},r),(r=An.get(p))&&xf(t,r),y=i.createElement("script"),Ot(y),Pt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},o.set(p,y))}}function O3(t,r){xr.M(t,r);var i=js;if(i&&t){var o=qa(i).hoistableScripts,p=Es(t),y=o.get(p);y||(y=i.querySelector(zi(p)),y||(t=g({src:t,async:!0,type:"module"},r),(r=An.get(p))&&xf(t,r),y=i.createElement("script"),Ot(y),Pt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},o.set(p,y))}}function Ty(t,r,i,o){var p=(p=ie.current)?Uo(p):null;if(!p)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=Ts(i.href),i=qa(p).hoistableStyles,o=i.get(r),o||(o={type:"style",instance:null,count:0,state:null},i.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ts(i.href);var y=qa(p).hoistableStyles,D=y.get(t);if(D||(p=p.ownerDocument||p,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(t,D),(y=p.querySelector(Pi(t)))&&!y._p&&(D.instance=y,D.state.loading=5),An.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},An.set(t,i),y||R3(p,t,i,D.state))),r&&o===null)throw Error(s(528,""));return D}if(r&&o!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Es(i),i=qa(p).hoistableScripts,o=i.get(r),o||(o={type:"script",instance:null,count:0,state:null},i.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Ts(t){return'href="'+bn(t)+'"'}function Pi(t){return'link[rel="stylesheet"]['+t+"]"}function Ey(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function R3(t,r,i,o){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?o.loading=1:(r=t.createElement("link"),o.preload=r,r.addEventListener("load",function(){return o.loading|=1}),r.addEventListener("error",function(){return o.loading|=2}),Pt(r,"link",i),Ot(r),t.head.appendChild(r))}function Es(t){return'[src="'+bn(t)+'"]'}function zi(t){return"script[async]"+t}function Ay(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var o=t.querySelector('style[data-href~="'+bn(i.href)+'"]');if(o)return r.instance=o,Ot(o),o;var p=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Ot(o),Pt(o,"style",p),Bo(o,i.precedence,t),r.instance=o;case"stylesheet":p=Ts(i.href);var y=t.querySelector(Pi(p));if(y)return r.state.loading|=4,r.instance=y,Ot(y),y;o=Ey(i),(p=An.get(p))&&yf(o,p),y=(t.ownerDocument||t).createElement("link"),Ot(y);var D=y;return D._p=new Promise(function(B,$){D.onload=B,D.onerror=$}),Pt(y,"link",o),r.state.loading|=4,Bo(y,i.precedence,t),r.instance=y;case"script":return y=Es(i.src),(p=t.querySelector(zi(y)))?(r.instance=p,Ot(p),p):(o=i,(p=An.get(y))&&(o=g({},i),xf(o,p)),t=t.ownerDocument||t,p=t.createElement("script"),Ot(p),Pt(p,"link",o),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(o=r.instance,r.state.loading|=4,Bo(o,i.precedence,t));return r.instance}function Bo(t,r,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=o.length?o[o.length-1]:null,y=p,D=0;D<o.length;D++){var B=o[D];if(B.dataset.precedence===r)y=B;else if(y!==p)break}y?y.parentNode.insertBefore(t,y.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function yf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function xf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Fo=null;function Ny(t,r,i){if(Fo===null){var o=new Map,p=Fo=new Map;p.set(i,o)}else p=Fo,o=p.get(i),o||(o=new Map,p.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),p=0;p<i.length;p++){var y=i[p];if(!(y[Ks]||y[Bt]||t==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var D=y.getAttribute(r)||"";D=t+D;var B=o.get(D);B?B.push(y):o.set(D,[y])}}return o}function ky(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function C3(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function _y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ui=null;function D3(){}function M3(t,r,i){if(Ui===null)throw Error(s(475));var o=Ui;if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=Ts(i.href),y=t.querySelector(Pi(p));if(y){t=y._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=Vo.bind(o),t.then(o,o)),r.state.loading|=4,r.instance=y,Ot(y);return}y=t.ownerDocument||t,i=Ey(i),(p=An.get(p))&&yf(i,p),y=y.createElement("link"),Ot(y);var D=y;D._p=new Promise(function(B,$){D.onload=B,D.onerror=$}),Pt(y,"link",i),r.instance=y}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(o.count++,r=Vo.bind(o),t.addEventListener("load",r),t.addEventListener("error",r))}}function L3(){if(Ui===null)throw Error(s(475));var t=Ui;return t.stylesheets&&t.count===0&&bf(t,t.stylesheets),0<t.count?function(r){var i=setTimeout(function(){if(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Vo(){if(this.count--,this.count===0){if(this.stylesheets)bf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ho=null;function bf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ho=new Map,r.forEach(P3,t),Ho=null,Vo.call(t))}function P3(t,r){if(!(r.state.loading&4)){var i=Ho.get(t);if(i)var o=i.get(null);else{i=new Map,Ho.set(t,i);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var D=p[y];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(i.set(D.dataset.precedence,D),o=D)}o&&i.set(null,o)}p=r.instance,D=p.getAttribute("data-precedence"),y=i.get(D)||o,y===o&&i.set(null,p),i.set(D,p),this.count++,o=Vo.bind(this),p.addEventListener("load",o),p.addEventListener("error",o),y?y.parentNode.insertBefore(p,y.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var Bi={$$typeof:L,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function z3(t,r,i,o,p,y,D,B){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=Ba(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.hiddenUpdates=Ba(null),this.identifierPrefix=o,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function Oy(t,r,i,o,p,y,D,B,$,oe,ge,we){return t=new z3(t,r,i,D,B,$,oe,we),r=1,y===!0&&(r|=24),y=on(3,null,null,r),t.current=y,y.stateNode=t,r=Ju(),r.refCount++,t.pooledCache=r,r.refCount++,y.memoizedState={element:o,isDehydrated:i,cache:r},rd(y),t}function Ry(t){return t?(t=ns,t):ns}function Cy(t,r,i,o,p,y){p=Ry(p),o.context===null?o.context=p:o.pendingContext=p,o=Dr(r),o.payload={element:i},y=y===void 0?null:y,y!==null&&(o.callback=y),i=Mr(t,o,r),i!==null&&(hn(i,t,r),pi(i,t,r))}function Dy(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function vf(t,r){Dy(t,r),(t=t.alternate)&&Dy(t,r)}function My(t){if(t.tag===13){var r=ts(t,67108864);r!==null&&hn(r,t,67108864),vf(t,67108864)}}var Io=!0;function U3(t,r,i,o){var p=Z.T;Z.T=null;var y=v.p;try{v.p=2,wf(t,r,i,o)}finally{v.p=y,Z.T=p}}function B3(t,r,i,o){var p=Z.T;Z.T=null;var y=v.p;try{v.p=8,wf(t,r,i,o)}finally{v.p=y,Z.T=p}}function wf(t,r,i,o){if(Io){var p=Sf(o);if(p===null)of(t,r,o,qo,i),Py(t,o);else if(V3(p,t,r,i,o))o.stopPropagation();else if(Py(t,o),r&4&&-1<F3.indexOf(t)){for(;p!==null;){var y=Ia(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var D=Ln(y.pendingLanes);if(D!==0){var B=y;for(B.pendingLanes|=2,B.entangledLanes|=2;D;){var $=1<<31-He(D);B.entanglements[1]|=$,D&=~$}Qn(y),($e&6)===0&&(No=G()+500,Ci(0))}}break;case 13:B=ts(y,2),B!==null&&hn(B,y,2),_o(),vf(y,2)}if(y=Sf(o),y===null&&of(t,r,o,qo,i),y===p)break;p=y}p!==null&&o.stopPropagation()}else of(t,r,o,null,i)}}function Sf(t){return t=Au(t),jf(t)}var qo=null;function jf(t){if(qo=null,t=Ha(t),t!==null){var r=c(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=d(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return qo=t,null}function Ly(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(Y()){case te:return 2;case pe:return 8;case ye:case le:return 32;case je:return 268435456;default:return 32}default:return 32}}var Tf=!1,Xr=null,Zr=null,Wr=null,Fi=new Map,Vi=new Map,Kr=[],F3="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 Py(t,r){switch(t){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Zr=null;break;case"mouseover":case"mouseout":Wr=null;break;case"pointerover":case"pointerout":Fi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vi.delete(r.pointerId)}}function Hi(t,r,i,o,p,y){return t===null||t.nativeEvent!==y?(t={blockedOn:r,domEventName:i,eventSystemFlags:o,nativeEvent:y,targetContainers:[p]},r!==null&&(r=Ia(r),r!==null&&My(r)),t):(t.eventSystemFlags|=o,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function V3(t,r,i,o,p){switch(r){case"focusin":return Xr=Hi(Xr,t,r,i,o,p),!0;case"dragenter":return Zr=Hi(Zr,t,r,i,o,p),!0;case"mouseover":return Wr=Hi(Wr,t,r,i,o,p),!0;case"pointerover":var y=p.pointerId;return Fi.set(y,Hi(Fi.get(y)||null,t,r,i,o,p)),!0;case"gotpointercapture":return y=p.pointerId,Vi.set(y,Hi(Vi.get(y)||null,t,r,i,o,p)),!0}return!1}function zy(t){var r=Ha(t.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=d(i),r!==null){t.blockedOn=r,M2(t.priority,function(){if(i.tag===13){var o=fn();o=pu(o);var p=ts(i,o);p!==null&&hn(p,i,o),vf(i,o)}});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Go(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=Sf(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);Eu=o,i.target.dispatchEvent(o),Eu=null}else return r=Ia(i),r!==null&&My(r),t.blockedOn=i,!1;r.shift()}return!0}function Uy(t,r,i){Go(t)&&i.delete(r)}function H3(){Tf=!1,Xr!==null&&Go(Xr)&&(Xr=null),Zr!==null&&Go(Zr)&&(Zr=null),Wr!==null&&Go(Wr)&&(Wr=null),Fi.forEach(Uy),Vi.forEach(Uy)}function Yo(t,r){t.blockedOn===r&&(t.blockedOn=null,Tf||(Tf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,H3)))}var Xo=null;function By(t){Xo!==t&&(Xo=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Xo===t&&(Xo=null);for(var r=0;r<t.length;r+=3){var i=t[r],o=t[r+1],p=t[r+2];if(typeof o!="function"){if(jf(o||i)===null)continue;break}var y=Ia(i);y!==null&&(t.splice(r,3),r-=3,Sd(y,{pending:!0,data:p,method:i.method,action:o},o,p))}}))}function Ii(t){function r($){return Yo($,t)}Xr!==null&&Yo(Xr,t),Zr!==null&&Yo(Zr,t),Wr!==null&&Yo(Wr,t),Fi.forEach(r),Vi.forEach(r);for(var i=0;i<Kr.length;i++){var o=Kr[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<Kr.length&&(i=Kr[0],i.blockedOn===null);)zy(i),i.blockedOn===null&&Kr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var p=i[o],y=i[o+1],D=p[Kt]||null;if(typeof y=="function")D||By(i);else if(D){var B=null;if(y&&y.hasAttribute("formAction")){if(p=y,D=y[Kt]||null)B=D.formAction;else if(jf(p)!==null)continue}else B=D.action;typeof B=="function"?i[o+1]=B:(i.splice(o,3),o-=3),By(i)}}}function Ef(t){this._internalRoot=t}Zo.prototype.render=Ef.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,o=fn();Cy(i,o,t,r,null,null)},Zo.prototype.unmount=Ef.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Cy(t.current,2,null,t,null,null),_o(),r[Va]=null}};function Zo(t){this._internalRoot=t}Zo.prototype.unstable_scheduleHydration=function(t){if(t){var r=np();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Kr.length&&r!==0&&r<Kr[i].priority;i++);Kr.splice(i,0,t),i===0&&zy(t)}};var Fy=n.version;if(Fy!=="19.1.0")throw Error(s(527,Fy,"19.1.0"));v.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=h(r),t=t!==null?m(t):null,t=t===null?null:t.stateNode,t};var I3={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wo.isDisabled&&Wo.supportsFiber)try{xe=Wo.inject(I3),ke=Wo}catch{}}return Gi.createRoot=function(t,r){if(!l(t))throw Error(s(299));var i=!1,o="",p=n0,y=r0,D=a0,B=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(D=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(B=r.unstable_transitionCallbacks)),r=Oy(t,1,!1,null,null,i,o,p,y,D,B,null),t[Va]=r.current,lf(t),new Ef(r)},Gi.hydrateRoot=function(t,r,i){if(!l(t))throw Error(s(299));var o=!1,p="",y=n0,D=r0,B=a0,$=null,oe=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(D=i.onCaughtError),i.onRecoverableError!==void 0&&(B=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&($=i.unstable_transitionCallbacks),i.formState!==void 0&&(oe=i.formState)),r=Oy(t,1,!0,r,i??null,o,p,y,D,B,$,oe),r.context=Ry(null),i=r.current,o=fn(),o=pu(o),p=Dr(o),p.callback=null,Mr(i,p,o),i=o,r.current.lanes=i,Pn(r,i),Qn(r),t[Va]=r.current,lf(t),new Zo(r)},Gi.version="19.1.0",Gi}var Ky;function e4(){if(Ky)return kf.exports;Ky=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),kf.exports=J3(),kf.exports}var t4=e4(),Cf={exports:{}},Df={};/**
* @license React
* use-sync-external-store-with-selector.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 $y;function n4(){if($y)return Df;$y=1;var e=Cn();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var a=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,l=e.useRef,c=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Df.useSyncExternalStoreWithSelector=function(h,m,g,x,w){var T=l(null);if(T.current===null){var k={hasValue:!1,value:null};T.current=k}else k=T.current;T=d(function(){function A(N){if(!E){if(E=!0,C=N,N=x(N),w!==void 0&&k.hasValue){var z=k.value;if(w(z,N))return L=z}return L=N}if(z=L,a(C,N))return z;var F=x(N);return w!==void 0&&w(z,F)?(C=N,z):(C=N,L=F)}var E=!1,C,L,I=g===void 0?null:g;return[function(){return A(m())},I===null?void 0:function(){return A(I())}]},[m,g,x,w]);var S=s(h,T[0],T[1]);return c(function(){k.hasValue=!0,k.value=S},[S]),f(S),S},Df}var Qy;function r4(){return Qy||(Qy=1,Cf.exports=n4()),Cf.exports}var a4=r4();function s4(e){e()}function i4(){let e=null,n=null;return{clear(){e=null,n=null},notify(){s4(()=>{let a=e;for(;a;)a.callback(),a=a.next})},get(){const a=[];let s=e;for(;s;)a.push(s),s=s.next;return a},subscribe(a){let s=!0;const l=n={callback:a,next:null,prev:n};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Jy={notify(){},get:()=>[]};function l4(e,n){let a,s=Jy,l=0,c=!1;function d(S){g();const A=s.subscribe(S);let E=!1;return()=>{E||(E=!0,A(),x())}}function f(){s.notify()}function h(){k.onStateChange&&k.onStateChange()}function m(){return c}function g(){l++,a||(a=e.subscribe(h),s=i4())}function x(){l--,a&&l===0&&(a(),a=void 0,s.clear(),s=Jy)}function w(){c||(c=!0,g())}function T(){c&&(c=!1,x())}const k={addNestedSub:d,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:m,trySubscribe:w,tryUnsubscribe:T,getListeners:()=>s};return k}var o4=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",c4=o4(),u4=()=>typeof navigator<"u"&&navigator.product==="ReactNative",d4=u4(),f4=()=>c4||d4?X.useLayoutEffect:X.useEffect,h4=f4(),m4=Symbol.for("react-redux-context"),p4=typeof globalThis<"u"?globalThis:{};function g4(){if(!X.createContext)return{};const e=p4[m4]??=new Map;let n=e.get(X.createContext);return n||(n=X.createContext(null),e.set(X.createContext,n)),n}var ea=g4();function y4(e){const{children:n,context:a,serverState:s,store:l}=e,c=X.useMemo(()=>{const h=l4(l);return{store:l,subscription:h,getServerState:s?()=>s:void 0}},[l,s]),d=X.useMemo(()=>l.getState(),[l]);h4(()=>{const{subscription:h}=c;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==l.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[c,d]);const f=a||ea;return X.createElement(f.Provider,{value:c},n)}var x4=y4;function lm(e=ea){return function(){return X.useContext(e)}}var xv=lm();function bv(e=ea){const n=e===ea?xv:lm(e),a=()=>{const{store:s}=n();return s};return Object.assign(a,{withTypes:()=>a}),a}var b4=bv();function v4(e=ea){const n=e===ea?b4:bv(e),a=()=>n().dispatch;return Object.assign(a,{withTypes:()=>a}),a}var In=v4(),w4=(e,n)=>e===n;function S4(e=ea){const n=e===ea?xv:lm(e),a=(s,l={})=>{const{equalityFn:c=w4}=typeof l=="function"?{equalityFn:l}:l,d=n(),{store:f,subscription:h,getServerState:m}=d;X.useRef(!0);const g=X.useCallback({[s.name](w){return s(w)}}[s.name],[s]),x=a4.useSyncExternalStoreWithSelector(h.addNestedSub,f.getState,m||f.getState,g,c);return X.useDebugValue(x),x};return Object.assign(a,{withTypes:()=>a}),a}var Xe=S4();let j4={data:""},T4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||j4,E4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,A4=/\/\*[^]*?\*\/| +/g,ex=/\n+/g,Jr=(e,n)=>{let a="",s="",l="";for(let c in e){let d=e[c];c[0]=="@"?c[1]=="i"?a=c+" "+d+";":s+=c[1]=="f"?Jr(d,c):c+"{"+Jr(d,c[1]=="k"?"":n)+"}":typeof d=="object"?s+=Jr(d,n?n.replace(/([^,])+/g,f=>c.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):c):d!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=Jr.p?Jr.p(c,d):c+":"+d+";")}return a+(n&&l?n+"{"+l+"}":l)+s},br={},vv=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+vv(e[a]);return n}return e},N4=(e,n,a,s,l)=>{let c=vv(e),d=br[c]||(br[c]=(h=>{let m=0,g=11;for(;m<h.length;)g=101*g+h.charCodeAt(m++)>>>0;return"go"+g})(c));if(!br[d]){let h=c!==e?e:(m=>{let g,x,w=[{}];for(;g=E4.exec(m.replace(A4,""));)g[4]?w.shift():g[3]?(x=g[3].replace(ex," ").trim(),w.unshift(w[0][x]=w[0][x]||{})):w[0][g[1]]=g[2].replace(ex," ").trim();return w[0]})(e);br[d]=Jr(l?{["@keyframes "+d]:h}:h,a?"":"."+d)}let f=a&&br.g?br.g:null;return a&&(br.g=br[d]),((h,m,g,x)=>{x?m.data=m.data.replace(x,h):m.data.indexOf(h)===-1&&(m.data=g?h+m.data:m.data+h)})(br[d],n,s,f),d},k4=(e,n,a)=>e.reduce((s,l,c)=>{let d=n[c];if(d&&d.call){let f=d(a),h=f&&f.props&&f.props.className||/^go/.test(f)&&f;d=h?"."+h:f&&typeof f=="object"?f.props?"":Jr(f,""):f===!1?"":f}return s+l+(d??"")},"");function qc(e){let n=this||{},a=e.call?e(n.p):e;return N4(a.unshift?a.raw?k4(a,[].slice.call(arguments,1),n.p):a.reduce((s,l)=>Object.assign(s,l&&l.call?l(n.p):l),{}):a,T4(n.target),n.g,n.o,n.k)}let wv,vh,wh;qc.bind({g:1});let Sr=qc.bind({k:1});function _4(e,n,a,s){Jr.p=n,wv=e,vh=a,wh=s}function aa(e,n){let a=this||{};return function(){let s=arguments;function l(c,d){let f=Object.assign({},c),h=f.className||l.className;a.p=Object.assign({theme:vh&&vh()},f),a.o=/ *go\d+/.test(h),f.className=qc.apply(a,s)+(h?" "+h:"");let m=e;return e[0]&&(m=f.as||e,delete f.as),wh&&m[0]&&wh(f),wv(m,f)}return l}}var O4=e=>typeof e=="function",Ec=(e,n)=>O4(e)?e(n):e,R4=(()=>{let e=0;return()=>(++e).toString()})(),Sv=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),C4=20,jv=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,C4)};case 1:return{...e,toasts:e.toasts.map(c=>c.id===n.toast.id?{...c,...n.toast}:c)};case 2:let{toast:a}=n;return jv(e,{type:e.toasts.find(c=>c.id===a.id)?1:0,toast:a});case 3:let{toastId:s}=n;return{...e,toasts:e.toasts.map(c=>c.id===s||s===void 0?{...c,dismissed:!0,visible:!1}:c)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let l=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+l}))}}},ic=[],Na={toasts:[],pausedAt:void 0},Ua=e=>{Na=jv(Na,e),ic.forEach(n=>{n(Na)})},D4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},M4=(e={})=>{let[n,a]=X.useState(Na),s=X.useRef(Na);X.useEffect(()=>(s.current!==Na&&a(Na),ic.push(a),()=>{let c=ic.indexOf(a);c>-1&&ic.splice(c,1)}),[]);let l=n.toasts.map(c=>{var d,f,h;return{...e,...e[c.type],...c,removeDelay:c.removeDelay||((d=e[c.type])==null?void 0:d.removeDelay)||e?.removeDelay,duration:c.duration||((f=e[c.type])==null?void 0:f.duration)||e?.duration||D4[c.type],style:{...e.style,...(h=e[c.type])==null?void 0:h.style,...c.style}}});return{...n,toasts:l}},L4=(e,n="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:a?.id||R4()}),jl=e=>(n,a)=>{let s=L4(n,e,a);return Ua({type:2,toast:s}),s.id},Yt=(e,n)=>jl("blank")(e,n);Yt.error=jl("error");Yt.success=jl("success");Yt.loading=jl("loading");Yt.custom=jl("custom");Yt.dismiss=e=>{Ua({type:3,toastId:e})};Yt.remove=e=>Ua({type:4,toastId:e});Yt.promise=(e,n,a)=>{let s=Yt.loading(n.loading,{...a,...a?.loading});return typeof e=="function"&&(e=e()),e.then(l=>{let c=n.success?Ec(n.success,l):void 0;return c?Yt.success(c,{id:s,...a,...a?.success}):Yt.dismiss(s),l}).catch(l=>{let c=n.error?Ec(n.error,l):void 0;c?Yt.error(c,{id:s,...a,...a?.error}):Yt.dismiss(s)}),e};var P4=(e,n)=>{Ua({type:1,toast:{id:e,height:n}})},z4=()=>{Ua({type:5,time:Date.now()})},rl=new Map,U4=1e3,B4=(e,n=U4)=>{if(rl.has(e))return;let a=setTimeout(()=>{rl.delete(e),Ua({type:4,toastId:e})},n);rl.set(e,a)},F4=e=>{let{toasts:n,pausedAt:a}=M4(e);X.useEffect(()=>{if(a)return;let c=Date.now(),d=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(c-f.createdAt);if(h<0){f.visible&&Yt.dismiss(f.id);return}return setTimeout(()=>Yt.dismiss(f.id),h)});return()=>{d.forEach(f=>f&&clearTimeout(f))}},[n,a]);let s=X.useCallback(()=>{a&&Ua({type:6,time:Date.now()})},[a]),l=X.useCallback((c,d)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:m}=d||{},g=n.filter(T=>(T.position||m)===(c.position||m)&&T.height),x=g.findIndex(T=>T.id===c.id),w=g.filter((T,k)=>k<x&&T.visible).length;return g.filter(T=>T.visible).slice(...f?[w+1]:[0,w]).reduce((T,k)=>T+(k.height||0)+h,0)},[n]);return X.useEffect(()=>{n.forEach(c=>{if(c.dismissed)B4(c.id,c.removeDelay);else{let d=rl.get(c.id);d&&(clearTimeout(d),rl.delete(c.id))}})},[n]),{toasts:n,handlers:{updateHeight:P4,startPause:z4,endPause:s,calculateOffset:l}}},V4=Sr`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,H4=Sr`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,I4=Sr`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,q4=aa("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${V4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${H4} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${I4} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,G4=Sr`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,Y4=aa("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${G4} 1s linear infinite;
`,X4=Sr`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,Z4=Sr`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,W4=aa("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${X4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${Z4} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,K4=aa("div")`
position: absolute;
`,$4=aa("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,Q4=Sr`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,J4=aa("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${Q4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,ej=({toast:e})=>{let{icon:n,type:a,iconTheme:s}=e;return n!==void 0?typeof n=="string"?X.createElement(J4,null,n):n:a==="blank"?null:X.createElement($4,null,X.createElement(Y4,{...s}),a!=="loading"&&X.createElement(K4,null,a==="error"?X.createElement(q4,{...s}):X.createElement(W4,{...s})))},tj=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,nj=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,rj="0%{opacity:0;} 100%{opacity:1;}",aj="0%{opacity:1;} 100%{opacity:0;}",sj=aa("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,ij=aa("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,lj=(e,n)=>{let a=e.includes("top")?1:-1,[s,l]=Sv()?[rj,aj]:[tj(a),nj(a)];return{animation:n?`${Sr(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Sr(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},oj=X.memo(({toast:e,position:n,style:a,children:s})=>{let l=e.height?lj(e.position||n||"top-center",e.visible):{opacity:0},c=X.createElement(ej,{toast:e}),d=X.createElement(ij,{...e.ariaProps},Ec(e.message,e));return X.createElement(sj,{className:e.className,style:{...l,...a,...e.style}},typeof s=="function"?s({icon:c,message:d}):X.createElement(X.Fragment,null,c,d))});_4(X.createElement);var cj=({id:e,className:n,style:a,onHeightUpdate:s,children:l})=>{let c=X.useCallback(d=>{if(d){let f=()=>{let h=d.getBoundingClientRect().height;s(e,h)};f(),new MutationObserver(f).observe(d,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return X.createElement("div",{ref:c,className:n,style:a},l)},uj=(e,n)=>{let a=e.includes("top"),s=a?{top:0}:{bottom:0},l=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Sv()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(a?1:-1)}px)`,...s,...l}},dj=qc`
z-index: 9999;
> * {
pointer-events: auto;
}
`,Ko=16,fj=({reverseOrder:e,position:n="top-center",toastOptions:a,gutter:s,children:l,containerStyle:c,containerClassName:d})=>{let{toasts:f,handlers:h}=F4(a);return X.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Ko,left:Ko,right:Ko,bottom:Ko,pointerEvents:"none",...c},className:d,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(m=>{let g=m.position||n,x=h.calculateOffset(m,{reverseOrder:e,gutter:s,defaultPosition:n}),w=uj(g,x);return X.createElement(cj,{id:m.id,key:m.id,onHeightUpdate:h.updateHeight,className:m.visible?dj:"",style:w},m.type==="custom"?Ec(m.message,m):l?l(m):X.createElement(oj,{toast:m,position:g}))}))},Gc=Yt;function zt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var hj=typeof Symbol=="function"&&Symbol.observable||"@@observable",tx=hj,Mf=()=>Math.random().toString(36).substring(7).split("").join("."),mj={INIT:`@@redux/INIT${Mf()}`,REPLACE:`@@redux/REPLACE${Mf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Mf()}`},Ac=mj;function om(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function Tv(e,n,a){if(typeof e!="function")throw new Error(zt(2));if(typeof n=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(zt(0));if(typeof n=="function"&&typeof a>"u"&&(a=n,n=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(zt(1));return a(Tv)(e,n)}let s=e,l=n,c=new Map,d=c,f=0,h=!1;function m(){d===c&&(d=new Map,c.forEach((A,E)=>{d.set(E,A)}))}function g(){if(h)throw new Error(zt(3));return l}function x(A){if(typeof A!="function")throw new Error(zt(4));if(h)throw new Error(zt(5));let E=!0;m();const C=f++;return d.set(C,A),function(){if(E){if(h)throw new Error(zt(6));E=!1,m(),d.delete(C),c=null}}}function w(A){if(!om(A))throw new Error(zt(7));if(typeof A.type>"u")throw new Error(zt(8));if(typeof A.type!="string")throw new Error(zt(17));if(h)throw new Error(zt(9));try{h=!0,l=s(l,A)}finally{h=!1}return(c=d).forEach(C=>{C()}),A}function T(A){if(typeof A!="function")throw new Error(zt(10));s=A,w({type:Ac.REPLACE})}function k(){const A=x;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(zt(11));function C(){const I=E;I.next&&I.next(g())}return C(),{unsubscribe:A(C)}},[tx](){return this}}}return w({type:Ac.INIT}),{dispatch:w,subscribe:x,getState:g,replaceReducer:T,[tx]:k}}function pj(e){Object.keys(e).forEach(n=>{const a=e[n];if(typeof a(void 0,{type:Ac.INIT})>"u")throw new Error(zt(12));if(typeof a(void 0,{type:Ac.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(zt(13))})}function gj(e){const n=Object.keys(e),a={};for(let c=0;c<n.length;c++){const d=n[c];typeof e[d]=="function"&&(a[d]=e[d])}const s=Object.keys(a);let l;try{pj(a)}catch(c){l=c}return function(d={},f){if(l)throw l;let h=!1;const m={};for(let g=0;g<s.length;g++){const x=s[g],w=a[x],T=d[x],k=w(T,f);if(typeof k>"u")throw f&&f.type,new Error(zt(14));m[x]=k,h=h||k!==T}return h=h||s.length!==Object.keys(d).length,h?m:d}}function Nc(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,a)=>(...s)=>n(a(...s)))}function yj(...e){return n=>(a,s)=>{const l=n(a,s);let c=()=>{throw new Error(zt(15))};const d={getState:l.getState,dispatch:(h,...m)=>c(h,...m)},f=e.map(h=>h(d));return c=Nc(...f)(l.dispatch),{...l,dispatch:c}}}function xj(e){return om(e)&&"type"in e&&typeof e.type=="string"}var Ev=Symbol.for("immer-nothing"),nx=Symbol.for("immer-draftable"),pn=Symbol.for("immer-state");function Hn(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var zs=Object.getPrototypeOf;function La(e){return!!e&&!!e[pn]}function jr(e){return e?Av(e)||Array.isArray(e)||!!e[nx]||!!e.constructor?.[nx]||Xc(e)||Zc(e):!1}var bj=Object.prototype.constructor.toString();function Av(e){if(!e||typeof e!="object")return!1;const n=zs(e);if(n===null)return!0;const a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object?!0:typeof a=="function"&&Function.toString.call(a)===bj}function kc(e,n){Yc(e)===0?Reflect.ownKeys(e).forEach(a=>{n(a,e[a],e)}):e.forEach((a,s)=>n(s,a,e))}function Yc(e){const n=e[pn];return n?n.type_:Array.isArray(e)?1:Xc(e)?2:Zc(e)?3:0}function Sh(e,n){return Yc(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function Nv(e,n,a){const s=Yc(e);s===2?e.set(n,a):s===3?e.add(a):e[n]=a}function vj(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function Xc(e){return e instanceof Map}function Zc(e){return e instanceof Set}function Ea(e){return e.copy_||e.base_}function jh(e,n){if(Xc(e))return new Map(e);if(Zc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const a=Av(e);if(n===!0||n==="class_only"&&!a){const s=Object.getOwnPropertyDescriptors(e);delete s[pn];let l=Reflect.ownKeys(s);for(let c=0;c<l.length;c++){const d=l[c],f=s[d];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(s[d]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[d]})}return Object.create(zs(e),s)}else{const s=zs(e);if(s!==null&&a)return{...e};const l=Object.create(s);return Object.assign(l,e)}}function cm(e,n=!1){return Wc(e)||La(e)||!jr(e)||(Yc(e)>1&&(e.set=e.add=e.clear=e.delete=wj),Object.freeze(e),n&&Object.entries(e).forEach(([a,s])=>cm(s,!0))),e}function wj(){Hn(2)}function Wc(e){return Object.isFrozen(e)}var Sj={};function Pa(e){const n=Sj[e];return n||Hn(0,e),n}var dl;function kv(){return dl}function jj(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function rx(e,n){n&&(Pa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Th(e){Eh(e),e.drafts_.forEach(Tj),e.drafts_=null}function Eh(e){e===dl&&(dl=e.parent_)}function ax(e){return dl=jj(dl,e)}function Tj(e){const n=e[pn];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function sx(e,n){n.unfinalizedDrafts_=n.drafts_.length;const a=n.drafts_[0];return e!==void 0&&e!==a?(a[pn].modified_&&(Th(n),Hn(4)),jr(e)&&(e=_c(n,e),n.parent_||Oc(n,e)),n.patches_&&Pa("Patches").generateReplacementPatches_(a[pn].base_,e,n.patches_,n.inversePatches_)):e=_c(n,a,[]),Th(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==Ev?e:void 0}function _c(e,n,a){if(Wc(n))return n;const s=n[pn];if(!s)return kc(n,(l,c)=>ix(e,s,n,l,c,a)),n;if(s.scope_!==e)return n;if(!s.modified_)return Oc(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let c=l,d=!1;s.type_===3&&(c=new Set(l),l.clear(),d=!0),kc(c,(f,h)=>ix(e,s,l,f,h,a,d)),Oc(e,l,!1),a&&e.patches_&&Pa("Patches").generatePatches_(s,a,e.patches_,e.inversePatches_)}return s.copy_}function ix(e,n,a,s,l,c,d){if(La(l)){const f=c&&n&&n.type_!==3&&!Sh(n.assigned_,s)?c.concat(s):void 0,h=_c(e,l,f);if(Nv(a,s,h),La(h))e.canAutoFreeze_=!1;else return}else d&&a.add(l);if(jr(l)&&!Wc(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;_c(e,l),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(a,s)&&Oc(e,l)}}function Oc(e,n,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&cm(n,a)}function Ej(e,n){const a=Array.isArray(e),s={type_:a?1:0,scope_:n?n.scope_:kv(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,c=um;a&&(l=[s],c=fl);const{revoke:d,proxy:f}=Proxy.revocable(l,c);return s.draft_=f,s.revoke_=d,f}var um={get(e,n){if(n===pn)return e;const a=Ea(e);if(!Sh(a,n))return Aj(e,a,n);const s=a[n];return e.finalized_||!jr(s)?s:s===Lf(e.base_,n)?(Pf(e),e.copy_[n]=Nh(s,e)):s},has(e,n){return n in Ea(e)},ownKeys(e){return Reflect.ownKeys(Ea(e))},set(e,n,a){const s=_v(Ea(e),n);if(s?.set)return s.set.call(e.draft_,a),!0;if(!e.modified_){const l=Lf(Ea(e),n),c=l?.[pn];if(c&&c.base_===a)return e.copy_[n]=a,e.assigned_[n]=!1,!0;if(vj(a,l)&&(a!==void 0||Sh(e.base_,n)))return!0;Pf(e),Ah(e)}return e.copy_[n]===a&&(a!==void 0||n in e.copy_)||Number.isNaN(a)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=a,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Lf(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Pf(e),Ah(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const a=Ea(e),s=Reflect.getOwnPropertyDescriptor(a,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:a[n]}},defineProperty(){Hn(11)},getPrototypeOf(e){return zs(e.base_)},setPrototypeOf(){Hn(12)}},fl={};kc(um,(e,n)=>{fl[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});fl.deleteProperty=function(e,n){return fl.set.call(this,e,n,void 0)};fl.set=function(e,n,a){return um.set.call(this,e[0],n,a,e[0])};function Lf(e,n){const a=e[pn];return(a?Ea(a):e)[n]}function Aj(e,n,a){const s=_v(n,a);return s?"value"in s?s.value:s.get?.call(e.draft_):void 0}function _v(e,n){if(!(n in e))return;let a=zs(e);for(;a;){const s=Object.getOwnPropertyDescriptor(a,n);if(s)return s;a=zs(a)}}function Ah(e){e.modified_||(e.modified_=!0,e.parent_&&Ah(e.parent_))}function Pf(e){e.copy_||(e.copy_=jh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Nj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,a,s)=>{if(typeof n=="function"&&typeof a!="function"){const c=a;a=n;const d=this;return function(h=c,...m){return d.produce(h,g=>a.call(this,g,...m))}}typeof a!="function"&&Hn(6),s!==void 0&&typeof s!="function"&&Hn(7);let l;if(jr(n)){const c=ax(this),d=Nh(n,void 0);let f=!0;try{l=a(d),f=!1}finally{f?Th(c):Eh(c)}return rx(c,s),sx(l,c)}else if(!n||typeof n!="object"){if(l=a(n),l===void 0&&(l=n),l===Ev&&(l=void 0),this.autoFreeze_&&cm(l,!0),s){const c=[],d=[];Pa("Patches").generateReplacementPatches_(n,l,c,d),s(c,d)}return l}else Hn(1,n)},this.produceWithPatches=(n,a)=>{if(typeof n=="function")return(d,...f)=>this.produceWithPatches(d,h=>n(h,...f));let s,l;return[this.produce(n,a,(d,f)=>{s=d,l=f}),s,l]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){jr(e)||Hn(8),La(e)&&(e=kj(e));const n=ax(this),a=Nh(e,void 0);return a[pn].isManual_=!0,Eh(n),a}finishDraft(e,n){const a=e&&e[pn];(!a||!a.isManual_)&&Hn(9);const{scope_:s}=a;return rx(s,n),sx(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let a;for(a=n.length-1;a>=0;a--){const l=n[a];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}a>-1&&(n=n.slice(a+1));const s=Pa("Patches").applyPatches_;return La(e)?s(e,n):this.produce(e,l=>s(l,n))}};function Nh(e,n){const a=Xc(e)?Pa("MapSet").proxyMap_(e,n):Zc(e)?Pa("MapSet").proxySet_(e,n):Ej(e,n);return(n?n.scope_:kv()).drafts_.push(a),a}function kj(e){return La(e)||Hn(10,e),Ov(e)}function Ov(e){if(!jr(e)||Wc(e))return e;const n=e[pn];let a;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,a=jh(e,n.scope_.immer_.useStrictShallowCopy_)}else a=jh(e,!0);return kc(a,(s,l)=>{Nv(a,s,Ov(l))}),n&&(n.finalized_=!1),a}var gn=new Nj,Rv=gn.produce;gn.produceWithPatches.bind(gn);gn.setAutoFreeze.bind(gn);gn.setUseStrictShallowCopy.bind(gn);gn.applyPatches.bind(gn);gn.createDraft.bind(gn);gn.finishDraft.bind(gn);function Cv(e){return({dispatch:a,getState:s})=>l=>c=>typeof c=="function"?c(a,s,e):l(c)}var _j=Cv(),Oj=Cv,Rj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Nc:Nc.apply(null,arguments)},Cj=e=>e&&typeof e.match=="function";function al(e,n){function a(...s){if(n){let l=n(...s);if(!l)throw new Error(vr(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:s[0]}}return a.toString=()=>`${e}`,a.type=e,a.match=s=>xj(s)&&s.type===e,a}var Dv=class Ji extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Ji.prototype)}static get[Symbol.species](){return Ji}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Ji(...n[0].concat(this)):new Ji(...n.concat(this))}};function lx(e){return jr(e)?Rv(e,()=>{}):e}function $o(e,n,a){return e.has(n)?e.get(n):e.set(n,a(n)).get(n)}function Dj(e){return typeof e=="boolean"}var Mj=()=>function(n){const{thunk:a=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:c=!0}=n??{};let d=new Dv;return a&&(Dj(a)?d.push(_j):d.push(Oj(a.extraArgument))),d},Lj="RTK_autoBatch",ox=e=>n=>{setTimeout(n,e)},Pj=(e={type:"raf"})=>n=>(...a)=>{const s=n(...a);let l=!0,c=!1,d=!1;const f=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ox(10):e.type==="callback"?e.queueNotification:ox(e.timeout),m=()=>{d=!1,c&&(c=!1,f.forEach(g=>g()))};return Object.assign({},s,{subscribe(g){const x=()=>l&&g(),w=s.subscribe(x);return f.add(g),()=>{w(),f.delete(g)}},dispatch(g){try{return l=!g?.meta?.[Lj],c=!l,c&&(d||(d=!0,h(m))),s.dispatch(g)}finally{l=!0}}})},zj=e=>function(a){const{autoBatch:s=!0}=a??{};let l=new Dv(e);return s&&l.push(Pj(typeof s=="object"?s:void 0)),l};function Uj(e){const n=Mj(),{reducer:a=void 0,middleware:s,devTools:l=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{};let f;if(typeof a=="function")f=a;else if(om(a))f=gj(a);else throw new Error(vr(1));let h;typeof s=="function"?h=s(n):h=n();let m=Nc;l&&(m=Rj({trace:!1,...typeof l=="object"&&l}));const g=yj(...h),x=zj(g);let w=typeof d=="function"?d(x):x();const T=m(...w);return Tv(f,c,T)}function Mv(e){const n={},a=[];let s;const l={addCase(c,d){const f=typeof c=="string"?c:c.type;if(!f)throw new Error(vr(28));if(f in n)throw new Error(vr(29));return n[f]=d,l},addMatcher(c,d){return a.push({matcher:c,reducer:d}),l},addDefaultCase(c){return s=c,l}};return e(l),[n,a,s]}function Bj(e){return typeof e=="function"}function Fj(e,n){let[a,s,l]=Mv(n),c;if(Bj(e))c=()=>lx(e());else{const f=lx(e);c=()=>f}function d(f=c(),h){let m=[a[h.type],...s.filter(({matcher:g})=>g(h)).map(({reducer:g})=>g)];return m.filter(g=>!!g).length===0&&(m=[l]),m.reduce((g,x)=>{if(x)if(La(g)){const T=x(g,h);return T===void 0?g:T}else{if(jr(g))return Rv(g,w=>x(w,h));{const w=x(g,h);if(w===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}}return g},f)}return d.getInitialState=c,d}var Vj=(e,n)=>Cj(e)?e.match(n):e(n);function Hj(...e){return n=>e.some(a=>Vj(a,n))}var Ij="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qj=(e=21)=>{let n="",a=e;for(;a--;)n+=Ij[Math.random()*64|0];return n},Gj=["name","message","stack","code"],zf=class{constructor(e,n){this.payload=e,this.meta=n}_type},cx=class{constructor(e,n){this.payload=e,this.meta=n}_type},Yj=e=>{if(typeof e=="object"&&e!==null){const n={};for(const a of Gj)typeof e[a]=="string"&&(n[a]=e[a]);return n}return{message:String(e)}},ux="External signal was aborted",Dn=(()=>{function e(n,a,s){const l=al(n+"/fulfilled",(h,m,g,x)=>({payload:h,meta:{...x||{},arg:g,requestId:m,requestStatus:"fulfilled"}})),c=al(n+"/pending",(h,m,g)=>({payload:void 0,meta:{...g||{},arg:m,requestId:h,requestStatus:"pending"}})),d=al(n+"/rejected",(h,m,g,x,w)=>({payload:x,error:(s&&s.serializeError||Yj)(h||"Rejected"),meta:{...w||{},arg:g,requestId:m,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"}}));function f(h,{signal:m}={}){return(g,x,w)=>{const T=s?.idGenerator?s.idGenerator(h):qj(),k=new AbortController;let S,A;function E(L){A=L,k.abort()}m&&(m.aborted?E(ux):m.addEventListener("abort",()=>E(ux),{once:!0}));const C=async function(){let L;try{let N=s?.condition?.(h,{getState:x,extra:w});if(Zj(N)&&(N=await N),N===!1||k.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((F,H)=>{S=()=>{H({name:"AbortError",message:A||"Aborted"})},k.signal.addEventListener("abort",S)});g(c(T,h,s?.getPendingMeta?.({requestId:T,arg:h},{getState:x,extra:w}))),L=await Promise.race([z,Promise.resolve(a(h,{dispatch:g,getState:x,extra:w,requestId:T,signal:k.signal,abort:E,rejectWithValue:(F,H)=>new zf(F,H),fulfillWithValue:(F,H)=>new cx(F,H)})).then(F=>{if(F instanceof zf)throw F;return F instanceof cx?l(F.payload,T,h,F.meta):l(F,T,h)})])}catch(N){L=N instanceof zf?d(null,T,h,N.payload,N.meta):d(N,T,h)}finally{S&&k.signal.removeEventListener("abort",S)}return s&&!s.dispatchConditionRejection&&d.match(L)&&L.meta.condition||g(L),L}();return Object.assign(C,{abort:E,requestId:T,arg:h,unwrap(){return C.then(Xj)}})}}return Object.assign(f,{pending:c,rejected:d,fulfilled:l,settled:Hj(d,l),typePrefix:n})}return e.withTypes=()=>e,e})();function Xj(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Zj(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Wj=Symbol.for("rtk-slice-createasyncthunk");function Kj(e,n){return`${e}/${n}`}function $j({creators:e}={}){const n=e?.asyncThunk?.[Wj];return function(s){const{name:l,reducerPath:c=l}=s;if(!l)throw new Error(vr(11));const d=(typeof s.reducers=="function"?s.reducers(Jj()):s.reducers)||{},f=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(L,I){const N=typeof L=="string"?L:L.type;if(!N)throw new Error(vr(12));if(N in h.sliceCaseReducersByType)throw new Error(vr(13));return h.sliceCaseReducersByType[N]=I,m},addMatcher(L,I){return h.sliceMatchers.push({matcher:L,reducer:I}),m},exposeAction(L,I){return h.actionCreators[L]=I,m},exposeCaseReducer(L,I){return h.sliceCaseReducersByName[L]=I,m}};f.forEach(L=>{const I=d[L],N={reducerName:L,type:Kj(l,L),createNotation:typeof s.reducers=="function"};tT(I)?rT(N,I,m,n):eT(N,I,m)});function g(){const[L={},I=[],N=void 0]=typeof s.extraReducers=="function"?Mv(s.extraReducers):[s.extraReducers],z={...L,...h.sliceCaseReducersByType};return Fj(s.initialState,F=>{for(let H in z)F.addCase(H,z[H]);for(let H of h.sliceMatchers)F.addMatcher(H.matcher,H.reducer);for(let H of I)F.addMatcher(H.matcher,H.reducer);N&&F.addDefaultCase(N)})}const x=L=>L,w=new Map,T=new WeakMap;let k;function S(L,I){return k||(k=g()),k(L,I)}function A(){return k||(k=g()),k.getInitialState()}function E(L,I=!1){function N(F){let H=F[L];return typeof H>"u"&&I&&(H=$o(T,N,A)),H}function z(F=x){const H=$o(w,I,()=>new WeakMap);return $o(H,F,()=>{const M={};for(const[R,K]of Object.entries(s.selectors??{}))M[R]=Qj(K,F,()=>$o(T,F,A),I);return M})}return{reducerPath:L,getSelectors:z,get selectors(){return z(N)},selectSlice:N}}const C={name:l,reducer:S,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:A,...E(c),injectInto(L,{reducerPath:I,...N}={}){const z=I??c;return L.inject({reducerPath:z,reducer:S},N),{...C,...E(z,!0)}}};return C}}function Qj(e,n,a,s){function l(c,...d){let f=n(c);return typeof f>"u"&&s&&(f=a()),e(f,...d)}return l.unwrapped=e,l}var Kc=$j();function Jj(){function e(n,a){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...a}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...a){return n(...a)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,a){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:a}},asyncThunk:e}}function eT({type:e,reducerName:n,createNotation:a},s,l){let c,d;if("reducer"in s){if(a&&!nT(s))throw new Error(vr(17));c=s.reducer,d=s.prepare}else c=s;l.addCase(e,c).exposeCaseReducer(n,c).exposeAction(n,d?al(e,d):al(e))}function tT(e){return e._reducerDefinitionType==="asyncThunk"}function nT(e){return e._reducerDefinitionType==="reducerWithPrepare"}function rT({type:e,reducerName:n},a,s,l){if(!l)throw new Error(vr(18));const{payloadCreator:c,fulfilled:d,pending:f,rejected:h,settled:m,options:g}=a,x=l(e,c,g);s.exposeAction(n,x),d&&s.addCase(x.fulfilled,d),f&&s.addCase(x.pending,f),h&&s.addCase(x.rejected,h),m&&s.addMatcher(x.settled,m),s.exposeCaseReducer(n,{fulfilled:d||Qo,pending:f||Qo,rejected:h||Qo,settled:m||Qo})}function Qo(){}function vr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const ta=e=>{Gc.success(e,{duration:3e3,style:{background:"#10b981",color:"#fff",fontWeight:"500"}})},nt=e=>{Gc.error(e,{duration:4e3,style:{background:"#ef4444",color:"#fff",fontWeight:"500"}})},qn=(e="Loading...")=>Gc.loading(e,{style:{background:"#6b7280",color:"#fff",fontWeight:"500"}}),lt=e=>{Gc.dismiss(e)},Lv=e=>{typeof e=="string"&&nt(e)};function Pv(e,n){return function(){return e.apply(n,arguments)}}const{toString:aT}=Object.prototype,{getPrototypeOf:dm}=Object,{iterator:$c,toStringTag:zv}=Symbol,Qc=(e=>n=>{const a=aT.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),n=>Qc(n)===e),Jc=e=>n=>typeof n===e,{isArray:Hs}=Array,hl=Jc("undefined");function Tl(e){return e!==null&&!hl(e)&&e.constructor!==null&&!hl(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uv=Gn("ArrayBuffer");function sT(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Uv(e.buffer),n}const iT=Jc("string"),rn=Jc("function"),Bv=Jc("number"),El=e=>e!==null&&typeof e=="object",lT=e=>e===!0||e===!1,lc=e=>{if(Qc(e)!=="object")return!1;const n=dm(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(zv in e)&&!($c in e)},oT=e=>{if(!El(e)||Tl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cT=Gn("Date"),uT=Gn("File"),dT=Gn("Blob"),fT=Gn("FileList"),hT=e=>El(e)&&rn(e.pipe),mT=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||rn(e.append)&&((n=Qc(e))==="formdata"||n==="object"&&rn(e.toString)&&e.toString()==="[object FormData]"))},pT=Gn("URLSearchParams"),[gT,yT,xT,bT]=["ReadableStream","Request","Response","Headers"].map(Gn),vT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Al(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let s,l;if(typeof e!="object"&&(e=[e]),Hs(e))for(s=0,l=e.length;s<l;s++)n.call(null,e[s],s,e);else{if(Tl(e))return;const c=a?Object.getOwnPropertyNames(e):Object.keys(e),d=c.length;let f;for(s=0;s<d;s++)f=c[s],n.call(null,e[f],f,e)}}function Fv(e,n){if(Tl(e))return null;n=n.toLowerCase();const a=Object.keys(e);let s=a.length,l;for(;s-- >0;)if(l=a[s],n===l.toLowerCase())return l;return null}const ka=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vv=e=>!hl(e)&&e!==ka;function kh(){const{caseless:e}=Vv(this)&&this||{},n={},a=(s,l)=>{const c=e&&Fv(n,l)||l;lc(n[c])&&lc(s)?n[c]=kh(n[c],s):lc(s)?n[c]=kh({},s):Hs(s)?n[c]=s.slice():n[c]=s};for(let s=0,l=arguments.length;s<l;s++)arguments[s]&&Al(arguments[s],a);return n}const wT=(e,n,a,{allOwnKeys:s}={})=>(Al(n,(l,c)=>{a&&rn(l)?e[c]=Pv(l,a):e[c]=l},{allOwnKeys:s}),e),ST=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jT=(e,n,a,s)=>{e.prototype=Object.create(n.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),a&&Object.assign(e.prototype,a)},TT=(e,n,a,s)=>{let l,c,d;const f={};if(n=n||{},e==null)return n;do{for(l=Object.getOwnPropertyNames(e),c=l.length;c-- >0;)d=l[c],(!s||s(d,e,n))&&!f[d]&&(n[d]=e[d],f[d]=!0);e=a!==!1&&dm(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},ET=(e,n,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=n.length;const s=e.indexOf(n,a);return s!==-1&&s===a},AT=e=>{if(!e)return null;if(Hs(e))return e;let n=e.length;if(!Bv(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},NT=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&dm(Uint8Array)),kT=(e,n)=>{const s=(e&&e[$c]).call(e);let l;for(;(l=s.next())&&!l.done;){const c=l.value;n.call(e,c[0],c[1])}},_T=(e,n)=>{let a;const s=[];for(;(a=e.exec(n))!==null;)s.push(a);return s},OT=Gn("HTMLFormElement"),RT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,l){return s.toUpperCase()+l}),dx=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),CT=Gn("RegExp"),Hv=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),s={};Al(a,(l,c)=>{let d;(d=n(l,c,e))!==!1&&(s[c]=d||l)}),Object.defineProperties(e,s)},DT=e=>{Hv(e,(n,a)=>{if(rn(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(rn(s)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},MT=(e,n)=>{const a={},s=l=>{l.forEach(c=>{a[c]=!0})};return Hs(e)?s(e):s(String(e).split(n)),a},LT=()=>{},PT=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function zT(e){return!!(e&&rn(e.append)&&e[zv]==="FormData"&&e[$c])}const UT=e=>{const n=new Array(10),a=(s,l)=>{if(El(s)){if(n.indexOf(s)>=0)return;if(Tl(s))return s;if(!("toJSON"in s)){n[l]=s;const c=Hs(s)?[]:{};return Al(s,(d,f)=>{const h=a(d,l+1);!hl(h)&&(c[f]=h)}),n[l]=void 0,c}}return s};return a(e,0)},BT=Gn("AsyncFunction"),FT=e=>e&&(El(e)||rn(e))&&rn(e.then)&&rn(e.catch),Iv=((e,n)=>e?setImmediate:n?((a,s)=>(ka.addEventListener("message",({source:l,data:c})=>{l===ka&&c===a&&s.length&&s.shift()()},!1),l=>{s.push(l),ka.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",rn(ka.postMessage)),VT=typeof queueMicrotask<"u"?queueMicrotask.bind(ka):typeof process<"u"&&process.nextTick||Iv,HT=e=>e!=null&&rn(e[$c]),me={isArray:Hs,isArrayBuffer:Uv,isBuffer:Tl,isFormData:mT,isArrayBufferView:sT,isString:iT,isNumber:Bv,isBoolean:lT,isObject:El,isPlainObject:lc,isEmptyObject:oT,isReadableStream:gT,isRequest:yT,isResponse:xT,isHeaders:bT,isUndefined:hl,isDate:cT,isFile:uT,isBlob:dT,isRegExp:CT,isFunction:rn,isStream:hT,isURLSearchParams:pT,isTypedArray:NT,isFileList:fT,forEach:Al,merge:kh,extend:wT,trim:vT,stripBOM:ST,inherits:jT,toFlatObject:TT,kindOf:Qc,kindOfTest:Gn,endsWith:ET,toArray:AT,forEachEntry:kT,matchAll:_T,isHTMLForm:OT,hasOwnProperty:dx,hasOwnProp:dx,reduceDescriptors:Hv,freezeMethods:DT,toObjectSet:MT,toCamelCase:RT,noop:LT,toFiniteNumber:PT,findKey:Fv,global:ka,isContextDefined:Vv,isSpecCompliantForm:zT,toJSONObject:UT,isAsyncFn:BT,isThenable:FT,setImmediate:Iv,asap:VT,isIterable:HT};function Fe(e,n,a,s,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),s&&(this.request=s),l&&(this.response=l,this.status=l.status?l.status:null)}me.inherits(Fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:me.toJSONObject(this.config),code:this.code,status:this.status}}});const qv=Fe.prototype,Gv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Gv[e]={value:e}});Object.defineProperties(Fe,Gv);Object.defineProperty(qv,"isAxiosError",{value:!0});Fe.from=(e,n,a,s,l,c)=>{const d=Object.create(qv);return me.toFlatObject(e,d,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),Fe.call(d,e.message,n,a,s,l),d.cause=e,d.name=e.name,c&&Object.assign(d,c),d};const IT=null;function _h(e){return me.isPlainObject(e)||me.isArray(e)}function Yv(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function fx(e,n,a){return e?e.concat(n).map(function(l,c){return l=Yv(l),!a&&c?"["+l+"]":l}).join(a?".":""):n}function qT(e){return me.isArray(e)&&!e.some(_h)}const GT=me.toFlatObject(me,{},null,function(n){return/^is[A-Z]/.test(n)});function eu(e,n,a){if(!me.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,a=me.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,A){return!me.isUndefined(A[S])});const s=a.metaTokens,l=a.visitor||g,c=a.dots,d=a.indexes,h=(a.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(n);if(!me.isFunction(l))throw new TypeError("visitor must be a function");function m(k){if(k===null)return"";if(me.isDate(k))return k.toISOString();if(me.isBoolean(k))return k.toString();if(!h&&me.isBlob(k))throw new Fe("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(k)||me.isTypedArray(k)?h&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function g(k,S,A){let E=k;if(k&&!A&&typeof k=="object"){if(me.endsWith(S,"{}"))S=s?S:S.slice(0,-2),k=JSON.stringify(k);else if(me.isArray(k)&&qT(k)||(me.isFileList(k)||me.endsWith(S,"[]"))&&(E=me.toArray(k)))return S=Yv(S),E.forEach(function(L,I){!(me.isUndefined(L)||L===null)&&n.append(d===!0?fx([S],I,c):d===null?S:S+"[]",m(L))}),!1}return _h(k)?!0:(n.append(fx(A,S,c),m(k)),!1)}const x=[],w=Object.assign(GT,{defaultVisitor:g,convertValue:m,isVisitable:_h});function T(k,S){if(!me.isUndefined(k)){if(x.indexOf(k)!==-1)throw Error("Circular reference detected in "+S.join("."));x.push(k),me.forEach(k,function(E,C){(!(me.isUndefined(E)||E===null)&&l.call(n,E,me.isString(C)?C.trim():C,S,w))===!0&&T(E,S?S.concat(C):[C])}),x.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return T(e),n}function hx(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function fm(e,n){this._pairs=[],e&&eu(e,this,n)}const Xv=fm.prototype;Xv.append=function(n,a){this._pairs.push([n,a])};Xv.toString=function(n){const a=n?function(s){return n.call(this,s,hx)}:hx;return this._pairs.map(function(l){return a(l[0])+"="+a(l[1])},"").join("&")};function YT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zv(e,n,a){if(!n)return e;const s=a&&a.encode||YT;me.isFunction(a)&&(a={serialize:a});const l=a&&a.serialize;let c;if(l?c=l(n,a):c=me.isURLSearchParams(n)?n.toString():new fm(n,a).toString(s),c){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class mx{constructor(){this.handlers=[]}use(n,a,s){return this.handlers.push({fulfilled:n,rejected:a,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){me.forEach(this.handlers,function(s){s!==null&&n(s)})}}const Wv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},XT=typeof URLSearchParams<"u"?URLSearchParams:fm,ZT=typeof FormData<"u"?FormData:null,WT=typeof Blob<"u"?Blob:null,KT={isBrowser:!0,classes:{URLSearchParams:XT,FormData:ZT,Blob:WT},protocols:["http","https","file","blob","url","data"]},hm=typeof window<"u"&&typeof document<"u",Oh=typeof navigator=="object"&&navigator||void 0,$T=hm&&(!Oh||["ReactNative","NativeScript","NS"].indexOf(Oh.product)<0),QT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JT=hm&&window.location.href||"http://localhost",eE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hm,hasStandardBrowserEnv:$T,hasStandardBrowserWebWorkerEnv:QT,navigator:Oh,origin:JT},Symbol.toStringTag,{value:"Module"})),It={...eE,...KT};function tE(e,n){return eu(e,new It.classes.URLSearchParams,{visitor:function(a,s,l,c){return It.isNode&&me.isBuffer(a)?(this.append(s,a.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...n})}function nE(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function rE(e){const n={},a=Object.keys(e);let s;const l=a.length;let c;for(s=0;s<l;s++)c=a[s],n[c]=e[c];return n}function Kv(e){function n(a,s,l,c){let d=a[c++];if(d==="__proto__")return!0;const f=Number.isFinite(+d),h=c>=a.length;return d=!d&&me.isArray(l)?l.length:d,h?(me.hasOwnProp(l,d)?l[d]=[l[d],s]:l[d]=s,!f):((!l[d]||!me.isObject(l[d]))&&(l[d]=[]),n(a,s,l[d],c)&&me.isArray(l[d])&&(l[d]=rE(l[d])),!f)}if(me.isFormData(e)&&me.isFunction(e.entries)){const a={};return me.forEachEntry(e,(s,l)=>{n(nE(s),l,a,0)}),a}return null}function aE(e,n,a){if(me.isString(e))try{return(n||JSON.parse)(e),me.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(a||JSON.stringify)(e)}const Nl={transitional:Wv,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const s=a.getContentType()||"",l=s.indexOf("application/json")>-1,c=me.isObject(n);if(c&&me.isHTMLForm(n)&&(n=new FormData(n)),me.isFormData(n))return l?JSON.stringify(Kv(n)):n;if(me.isArrayBuffer(n)||me.isBuffer(n)||me.isStream(n)||me.isFile(n)||me.isBlob(n)||me.isReadableStream(n))return n;if(me.isArrayBufferView(n))return n.buffer;if(me.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(c){if(s.indexOf("application/x-www-form-urlencoded")>-1)return tE(n,this.formSerializer).toString();if((f=me.isFileList(n))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return eu(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return c||l?(a.setContentType("application/json",!1),aE(n)):n}],transformResponse:[function(n){const a=this.transitional||Nl.transitional,s=a&&a.forcedJSONParsing,l=this.responseType==="json";if(me.isResponse(n)||me.isReadableStream(n))return n;if(n&&me.isString(n)&&(s&&!this.responseType||l)){const d=!(a&&a.silentJSONParsing)&&l;try{return JSON.parse(n)}catch(f){if(d)throw f.name==="SyntaxError"?Fe.from(f,Fe.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{Nl.headers[e]={}});const sE=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iE=e=>{const n={};let a,s,l;return e&&e.split(`
`).forEach(function(d){l=d.indexOf(":"),a=d.substring(0,l).trim().toLowerCase(),s=d.substring(l+1).trim(),!(!a||n[a]&&sE[a])&&(a==="set-cookie"?n[a]?n[a].push(s):n[a]=[s]:n[a]=n[a]?n[a]+", "+s:s)}),n},px=Symbol("internals");function Yi(e){return e&&String(e).trim().toLowerCase()}function oc(e){return e===!1||e==null?e:me.isArray(e)?e.map(oc):String(e)}function lE(e){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=a.exec(e);)n[s[1]]=s[2];return n}const oE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Uf(e,n,a,s,l){if(me.isFunction(s))return s.call(this,n,a);if(l&&(n=a),!!me.isString(n)){if(me.isString(s))return n.indexOf(s)!==-1;if(me.isRegExp(s))return s.test(n)}}function cE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,s)=>a.toUpperCase()+s)}function uE(e,n){const a=me.toCamelCase(" "+n);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+a,{value:function(l,c,d){return this[s].call(this,n,l,c,d)},configurable:!0})})}let an=class{constructor(n){n&&this.set(n)}set(n,a,s){const l=this;function c(f,h,m){const g=Yi(h);if(!g)throw new Error("header name must be a non-empty string");const x=me.findKey(l,g);(!x||l[x]===void 0||m===!0||m===void 0&&l[x]!==!1)&&(l[x||h]=oc(f))}const d=(f,h)=>me.forEach(f,(m,g)=>c(m,g,h));if(me.isPlainObject(n)||n instanceof this.constructor)d(n,a);else if(me.isString(n)&&(n=n.trim())&&!oE(n))d(iE(n),a);else if(me.isObject(n)&&me.isIterable(n)){let f={},h,m;for(const g of n){if(!me.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[m=g[0]]=(h=f[m])?me.isArray(h)?[...h,g[1]]:[h,g[1]]:g[1]}d(f,a)}else n!=null&&c(a,n,s);return this}get(n,a){if(n=Yi(n),n){const s=me.findKey(this,n);if(s){const l=this[s];if(!a)return l;if(a===!0)return lE(l);if(me.isFunction(a))return a.call(this,l,s);if(me.isRegExp(a))return a.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=Yi(n),n){const s=me.findKey(this,n);return!!(s&&this[s]!==void 0&&(!a||Uf(this,this[s],s,a)))}return!1}delete(n,a){const s=this;let l=!1;function c(d){if(d=Yi(d),d){const f=me.findKey(s,d);f&&(!a||Uf(s,s[f],f,a))&&(delete s[f],l=!0)}}return me.isArray(n)?n.forEach(c):c(n),l}clear(n){const a=Object.keys(this);let s=a.length,l=!1;for(;s--;){const c=a[s];(!n||Uf(this,this[c],c,n,!0))&&(delete this[c],l=!0)}return l}normalize(n){const a=this,s={};return me.forEach(this,(l,c)=>{const d=me.findKey(s,c);if(d){a[d]=oc(l),delete a[c];return}const f=n?cE(c):String(c).trim();f!==c&&delete a[c],a[f]=oc(l),s[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return me.forEach(this,(s,l)=>{s!=null&&s!==!1&&(a[l]=n&&me.isArray(s)?s.join(", "):s)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const s=new this(n);return a.forEach(l=>s.set(l)),s}static accessor(n){const s=(this[px]=this[px]={accessors:{}}).accessors,l=this.prototype;function c(d){const f=Yi(d);s[f]||(uE(l,d),s[f]=!0)}return me.isArray(n)?n.forEach(c):c(n),this}};an.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(an.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(s){this[a]=s}}});me.freezeMethods(an);function Bf(e,n){const a=this||Nl,s=n||a,l=an.from(s.headers);let c=s.data;return me.forEach(e,function(f){c=f.call(a,c,l.normalize(),n?n.status:void 0)}),l.normalize(),c}function $v(e){return!!(e&&e.__CANCEL__)}function Is(e,n,a){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,n,a),this.name="CanceledError"}me.inherits(Is,Fe,{__CANCEL__:!0});function Qv(e,n,a){const s=a.config.validateStatus;!a.status||!s||s(a.status)?e(a):n(new Fe("Request failed with status code "+a.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function dE(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function fE(e,n){e=e||10;const a=new Array(e),s=new Array(e);let l=0,c=0,d;return n=n!==void 0?n:1e3,function(h){const m=Date.now(),g=s[c];d||(d=m),a[l]=h,s[l]=m;let x=c,w=0;for(;x!==l;)w+=a[x++],x=x%e;if(l=(l+1)%e,l===c&&(c=(c+1)%e),m-d<n)return;const T=g&&m-g;return T?Math.round(w*1e3/T):void 0}}function hE(e,n){let a=0,s=1e3/n,l,c;const d=(m,g=Date.now())=>{a=g,l=null,c&&(clearTimeout(c),c=null),e(...m)};return[(...m)=>{const g=Date.now(),x=g-a;x>=s?d(m,g):(l=m,c||(c=setTimeout(()=>{c=null,d(l)},s-x)))},()=>l&&d(l)]}const Rc=(e,n,a=3)=>{let s=0;const l=fE(50,250);return hE(c=>{const d=c.loaded,f=c.lengthComputable?c.total:void 0,h=d-s,m=l(h),g=d<=f;s=d;const x={loaded:d,total:f,progress:f?d/f:void 0,bytes:h,rate:m||void 0,estimated:m&&f&&g?(f-d)/m:void 0,event:c,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(x)},a)},gx=(e,n)=>{const a=e!=null;return[s=>n[0]({lengthComputable:a,total:e,loaded:s}),n[1]]},yx=e=>(...n)=>me.asap(()=>e(...n)),mE=It.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,It.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,pE=It.hasStandardBrowserEnv?{write(e,n,a,s,l,c){const d=[e+"="+encodeURIComponent(n)];me.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),me.isString(s)&&d.push("path="+s),me.isString(l)&&d.push("domain="+l),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yE(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Jv(e,n,a){let s=!gE(n);return e&&(s||a==!1)?yE(e,n):n}const xx=e=>e instanceof an?{...e}:e;function za(e,n){n=n||{};const a={};function s(m,g,x,w){return me.isPlainObject(m)&&me.isPlainObject(g)?me.merge.call({caseless:w},m,g):me.isPlainObject(g)?me.merge({},g):me.isArray(g)?g.slice():g}function l(m,g,x,w){if(me.isUndefined(g)){if(!me.isUndefined(m))return s(void 0,m,x,w)}else return s(m,g,x,w)}function c(m,g){if(!me.isUndefined(g))return s(void 0,g)}function d(m,g){if(me.isUndefined(g)){if(!me.isUndefined(m))return s(void 0,m)}else return s(void 0,g)}function f(m,g,x){if(x in n)return s(m,g);if(x in e)return s(void 0,m)}const h={url:c,method:c,data:c,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:f,headers:(m,g,x)=>l(xx(m),xx(g),x,!0)};return me.forEach(Object.keys({...e,...n}),function(g){const x=h[g]||l,w=x(e[g],n[g],g);me.isUndefined(w)&&x!==f||(a[g]=w)}),a}const e1=e=>{const n=za({},e);let{data:a,withXSRFToken:s,xsrfHeaderName:l,xsrfCookieName:c,headers:d,auth:f}=n;n.headers=d=an.from(d),n.url=Zv(Jv(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&d.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let h;if(me.isFormData(a)){if(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((h=d.getContentType())!==!1){const[m,...g]=h?h.split(";").map(x=>x.trim()).filter(Boolean):[];d.setContentType([m||"multipart/form-data",...g].join("; "))}}if(It.hasStandardBrowserEnv&&(s&&me.isFunction(s)&&(s=s(n)),s||s!==!1&&mE(n.url))){const m=l&&c&&pE.read(c);m&&d.set(l,m)}return n},xE=typeof XMLHttpRequest<"u",bE=xE&&function(e){return new Promise(function(a,s){const l=e1(e);let c=l.data;const d=an.from(l.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:m}=l,g,x,w,T,k;function S(){T&&T(),k&&k(),l.cancelToken&&l.cancelToken.unsubscribe(g),l.signal&&l.signal.removeEventListener("abort",g)}let A=new XMLHttpRequest;A.open(l.method.toUpperCase(),l.url,!0),A.timeout=l.timeout;function E(){if(!A)return;const L=an.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),N={data:!f||f==="text"||f==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:L,config:e,request:A};Qv(function(F){a(F),S()},function(F){s(F),S()},N),A=null}"onloadend"in A?A.onloadend=E:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(E)},A.onabort=function(){A&&(s(new Fe("Request aborted",Fe.ECONNABORTED,e,A)),A=null)},A.onerror=function(){s(new Fe("Network Error",Fe.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let I=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const N=l.transitional||Wv;l.timeoutErrorMessage&&(I=l.timeoutErrorMessage),s(new Fe(I,N.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,A)),A=null},c===void 0&&d.setContentType(null),"setRequestHeader"in A&&me.forEach(d.toJSON(),function(I,N){A.setRequestHeader(N,I)}),me.isUndefined(l.withCredentials)||(A.withCredentials=!!l.withCredentials),f&&f!=="json"&&(A.responseType=l.responseType),m&&([w,k]=Rc(m,!0),A.addEventListener("progress",w)),h&&A.upload&&([x,T]=Rc(h),A.upload.addEventListener("progress",x),A.upload.addEventListener("loadend",T)),(l.cancelToken||l.signal)&&(g=L=>{A&&(s(!L||L.type?new Is(null,e,A):L),A.abort(),A=null)},l.cancelToken&&l.cancelToken.subscribe(g),l.signal&&(l.signal.aborted?g():l.signal.addEventListener("abort",g)));const C=dE(l.url);if(C&&It.protocols.indexOf(C)===-1){s(new Fe("Unsupported protocol "+C+":",Fe.ERR_BAD_REQUEST,e));return}A.send(c||null)})},vE=(e,n)=>{const{length:a}=e=e?e.filter(Boolean):[];if(n||a){let s=new AbortController,l;const c=function(m){if(!l){l=!0,f();const g=m instanceof Error?m:this.reason;s.abort(g instanceof Fe?g:new Is(g instanceof Error?g.message:g))}};let d=n&&setTimeout(()=>{d=null,c(new Fe(`timeout ${n} of ms exceeded`,Fe.ETIMEDOUT))},n);const f=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(c):m.removeEventListener("abort",c)}),e=null)};e.forEach(m=>m.addEventListener("abort",c));const{signal:h}=s;return h.unsubscribe=()=>me.asap(f),h}},wE=function*(e,n){let a=e.byteLength;if(a<n){yield e;return}let s=0,l;for(;s<a;)l=s+n,yield e.slice(s,l),s=l},SE=async function*(e,n){for await(const a of jE(e))yield*wE(a,n)},jE=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:a,value:s}=await n.read();if(a)break;yield s}}finally{await n.cancel()}},bx=(e,n,a,s)=>{const l=SE(e,n);let c=0,d,f=h=>{d||(d=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await l.next();if(m){f(),h.close();return}let x=g.byteLength;if(a){let w=c+=x;a(w)}h.enqueue(new Uint8Array(g))}catch(m){throw f(m),m}},cancel(h){return f(h),l.return()}},{highWaterMark:2})},tu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",t1=tu&&typeof ReadableStream=="function",TE=tu&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),n1=(e,...n)=>{try{return!!e(...n)}catch{return!1}},EE=t1&&n1(()=>{let e=!1;const n=new Request(It.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),vx=64*1024,Rh=t1&&n1(()=>me.isReadableStream(new Response("").body)),Cc={stream:Rh&&(e=>e.body)};tu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Cc[n]&&(Cc[n]=me.isFunction(e[n])?a=>a[n]():(a,s)=>{throw new Fe(`Response type '${n}' is not supported`,Fe.ERR_NOT_SUPPORT,s)})})})(new Response);const AE=async e=>{if(e==null)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e))return(await new Request(It.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(me.isArrayBufferView(e)||me.isArrayBuffer(e))return e.byteLength;if(me.isURLSearchParams(e)&&(e=e+""),me.isString(e))return(await TE(e)).byteLength},NE=async(e,n)=>{const a=me.toFiniteNumber(e.getContentLength());return a??AE(n)},kE=tu&&(async e=>{let{url:n,method:a,data:s,signal:l,cancelToken:c,timeout:d,onDownloadProgress:f,onUploadProgress:h,responseType:m,headers:g,withCredentials:x="same-origin",fetchOptions:w}=e1(e);m=m?(m+"").toLowerCase():"text";let T=vE([l,c&&c.toAbortSignal()],d),k;const S=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let A;try{if(h&&EE&&a!=="get"&&a!=="head"&&(A=await NE(g,s))!==0){let N=new Request(n,{method:"POST",body:s,duplex:"half"}),z;if(me.isFormData(s)&&(z=N.headers.get("content-type"))&&g.setContentType(z),N.body){const[F,H]=gx(A,Rc(yx(h)));s=bx(N.body,vx,F,H)}}me.isString(x)||(x=x?"include":"omit");const E="credentials"in Request.prototype;k=new Request(n,{...w,signal:T,method:a.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:E?x:void 0});let C=await fetch(k,w);const L=Rh&&(m==="stream"||m==="response");if(Rh&&(f||L&&S)){const N={};["status","statusText","headers"].forEach(M=>{N[M]=C[M]});const z=me.toFiniteNumber(C.headers.get("content-length")),[F,H]=f&&gx(z,Rc(yx(f),!0))||[];C=new Response(bx(C.body,vx,F,()=>{H&&H(),S&&S()}),N)}m=m||"text";let I=await Cc[me.findKey(Cc,m)||"text"](C,e);return!L&&S&&S(),await new Promise((N,z)=>{Qv(N,z,{data:I,headers:an.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:k})})}catch(E){throw S&&S(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,k),{cause:E.cause||E}):Fe.from(E,E&&E.code,e,k)}}),Ch={http:IT,xhr:bE,fetch:kE};me.forEach(Ch,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const wx=e=>`- ${e}`,_E=e=>me.isFunction(e)||e===null||e===!1,r1={getAdapter:e=>{e=me.isArray(e)?e:[e];const{length:n}=e;let a,s;const l={};for(let c=0;c<n;c++){a=e[c];let d;if(s=a,!_E(a)&&(s=Ch[(d=String(a)).toLowerCase()],s===void 0))throw new Fe(`Unknown adapter '${d}'`);if(s)break;l[d||"#"+c]=s}if(!s){const c=Object.entries(l).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since :
`+c.map(wx).join(`
`):" "+wx(c[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return s},adapters:Ch};function Ff(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Is(null,e)}function Sx(e){return Ff(e),e.headers=an.from(e.headers),e.data=Bf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),r1.getAdapter(e.adapter||Nl.adapter)(e).then(function(s){return Ff(e),s.data=Bf.call(e,e.transformResponse,s),s.headers=an.from(s.headers),s},function(s){return $v(s)||(Ff(e),s&&s.response&&(s.response.data=Bf.call(e,e.transformResponse,s.response),s.response.headers=an.from(s.response.headers))),Promise.reject(s)})}const a1="1.11.0",nu={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{nu[e]=function(s){return typeof s===e||"a"+(n<1?"n ":" ")+e}});const jx={};nu.transitional=function(n,a,s){function l(c,d){return"[Axios v"+a1+"] Transitional option '"+c+"'"+d+(s?". "+s:"")}return(c,d,f)=>{if(n===!1)throw new Fe(l(d," has been removed"+(a?" in "+a:"")),Fe.ERR_DEPRECATED);return a&&!jx[d]&&(jx[d]=!0,console.warn(l(d," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(c,d,f):!0}};nu.spelling=function(n){return(a,s)=>(console.warn(`${s} is likely a misspelling of ${n}`),!0)};function OE(e,n,a){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let l=s.length;for(;l-- >0;){const c=s[l],d=n[c];if(d){const f=e[c],h=f===void 0||d(f,c,e);if(h!==!0)throw new Fe("option "+c+" must be "+h,Fe.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Fe("Unknown option "+c,Fe.ERR_BAD_OPTION)}}const cc={assertOptions:OE,validators:nu},Jn=cc.validators;let Ca=class{constructor(n){this.defaults=n||{},this.interceptors={request:new mx,response:new mx}}async request(n,a){try{return await this._request(n,a)}catch(s){if(s instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const c=l.stack?l.stack.replace(/^.+\n/,""):"";try{s.stack?c&&!String(s.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+c):s.stack=c}catch{}}throw s}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=za(this.defaults,a);const{transitional:s,paramsSerializer:l,headers:c}=a;s!==void 0&&cc.assertOptions(s,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)},!1),l!=null&&(me.isFunction(l)?a.paramsSerializer={serialize:l}:cc.assertOptions(l,{encode:Jn.function,serialize:Jn.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),cc.assertOptions(a,{baseUrl:Jn.spelling("baseURL"),withXsrfToken:Jn.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let d=c&&me.merge(c.common,c[a.method]);c&&me.forEach(["delete","get","head","post","put","patch","common"],k=>{delete c[k]}),a.headers=an.concat(d,c);const f=[];let h=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(a)===!1||(h=h&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const m=[];this.interceptors.response.forEach(function(S){m.push(S.fulfilled,S.rejected)});let g,x=0,w;if(!h){const k=[Sx.bind(this),void 0];for(k.unshift(...f),k.push(...m),w=k.length,g=Promise.resolve(a);x<w;)g=g.then(k[x++],k[x++]);return g}w=f.length;let T=a;for(x=0;x<w;){const k=f[x++],S=f[x++];try{T=k(T)}catch(A){S.call(this,A);break}}try{g=Sx.call(this,T)}catch(k){return Promise.reject(k)}for(x=0,w=m.length;x<w;)g=g.then(m[x++],m[x++]);return g}getUri(n){n=za(this.defaults,n);const a=Jv(n.baseURL,n.url,n.allowAbsoluteUrls);return Zv(a,n.params,n.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(n){Ca.prototype[n]=function(a,s){return this.request(za(s||{},{method:n,url:a,data:(s||{}).data}))}});me.forEach(["post","put","patch"],function(n){function a(s){return function(c,d,f){return this.request(za(f||{},{method:n,headers:s?{"Content-Type":"multipart/form-data"}:{},url:c,data:d}))}}Ca.prototype[n]=a(),Ca.prototype[n+"Form"]=a(!0)});let RE=class s1{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const s=this;this.promise.then(l=>{if(!s._listeners)return;let c=s._listeners.length;for(;c-- >0;)s._listeners[c](l);s._listeners=null}),this.promise.then=l=>{let c;const d=new Promise(f=>{s.subscribe(f),c=f}).then(l);return d.cancel=function(){s.unsubscribe(c)},d},n(function(c,d,f){s.reason||(s.reason=new Is(c,d,f),a(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=s=>{n.abort(s)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new s1(function(l){n=l}),cancel:n}}};function CE(e){return function(a){return e.apply(null,a)}}function DE(e){return me.isObject(e)&&e.isAxiosError===!0}const Dh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dh).forEach(([e,n])=>{Dh[n]=e});function i1(e){const n=new Ca(e),a=Pv(Ca.prototype.request,n);return me.extend(a,Ca.prototype,n,{allOwnKeys:!0}),me.extend(a,n,null,{allOwnKeys:!0}),a.create=function(l){return i1(za(e,l))},a}const pt=i1(Nl);pt.Axios=Ca;pt.CanceledError=Is;pt.CancelToken=RE;pt.isCancel=$v;pt.VERSION=a1;pt.toFormData=eu;pt.AxiosError=Fe;pt.Cancel=pt.CanceledError;pt.all=function(n){return Promise.all(n)};pt.spread=CE;pt.isAxiosError=DE;pt.mergeConfig=za;pt.AxiosHeaders=an;pt.formToJSON=e=>Kv(me.isHTMLForm(e)?new FormData(e):e);pt.getAdapter=r1.getAdapter;pt.HttpStatusCode=Dh;pt.default=pt;const{Axios:uD,AxiosError:dD,CanceledError:fD,isCancel:hD,CancelToken:mD,VERSION:pD,all:gD,Cancel:yD,isAxiosError:xD,spread:bD,toFormData:vD,AxiosHeaders:wD,HttpStatusCode:SD,formToJSON:jD,getAdapter:TD,mergeConfig:ED}=pt,tn="https://aaaogo.xyz/api",As="https://aaaogo.xyz/",at={SIGNUP:"/user/signup",LOGIN:"/user/login",VERIFY_OTP:"/user/verify-otp",GET_CURRENT_USER:"/drivers/get-current-user",LOGOUT:"/user/logout",FORGOT_PASSWORD:"/user/forgot-password",RESET_PASSWORD:"/user/reset-password",REFERRAL_TREE:"/user/referral-tree",GET_USER_BY_ID:"/user/referral-tree",RESEND_OTP:"/user/resend-otp",REFERRAL_LINK:"/user/referral-link",GET_USER_BY_USERNAME:"/user/by-username",SEND_EMAIL_OTP:"/email-verification/send-otp",MLM_USER_DASHBOARD:"/mlm/user-dashboard",DDR_LEADERBOARD:"/mlm/ddr/leaderboard",CRR_RANK_TRACKING:"/mlm/crr/rank-tracking",CRR_LEADERBOARD:"/mlm/crr/leaderboard",BBR_PAST_WINS:"/mlm/bbr/past-wins",HLR_PROGRESS:"/mlm/hlr/progress",HLR_LEADERBOARD:"/mlm/hlr/leaderboard",REGIONAL_PROGRESS:"/mlm/regional/progress",REGIONAL_LEADERBOARD:"/mlm/regional/leaderboard",REGIONAL_GLOBAL_AMBASSADORS:"/mlm/regional/global-ambassadors",REGIONAL_COUNTRY_UPDATE:"/mlm/regional/country-update-request"},ME={TIMEOUT:1e4},ru=e=>{if(!e)return null;let n=e.trim();return n=n.replace(/^["']|["']$/g,""),n.split(".").length!==3?(console.warn("Token does not appear to be in valid JWT format"),null):n},l1=e=>{if(!e)return!1;const n=ru(e);if(!n)return!1;const a=n.split(".");return a.length!==3?!1:a.every(s=>s&&s.length>0)};/*! js-cookie v3.0.5 | MIT */function Jo(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)e[s]=a[s]}return e}var LE={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Mh(e,n){function a(l,c,d){if(!(typeof document>"u")){d=Jo({},n,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var h in d)d[h]&&(f+="; "+h,d[h]!==!0&&(f+="="+d[h].split(";")[0]));return document.cookie=l+"="+e.write(c,l)+f}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var c=document.cookie?document.cookie.split("; "):[],d={},f=0;f<c.length;f++){var h=c[f].split("="),m=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(d[g]=e.read(m,g),l===g)break}catch{}}return l?d[l]:d}}return Object.create({set:a,get:s,remove:function(l,c){a(l,"",Jo({},c,{expires:-1}))},withAttributes:function(l){return Mh(this.converter,Jo({},this.attributes,l))},withConverter:function(l){return Mh(Jo({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var el=Mh(LE,{path:"/"});const Ht={TOKEN:"auth_token",USER:"auth_user",SIGNUP_EMAIL:"signup_email",SESSION_ID:"session_id"},PE={expires:7,secure:!0,sameSite:"strict"};class zE{constructor(){this.sessionId=this.generateSessionId(),this.initializeSession()}generateSessionId(){const n="session_"+Date.now()+"_"+Math.random().toString(36).substr(2,9);return console.log("SessionManager - Generated sessionId:",n),n}initializeSession(){const n=this.getSessionId();n?(this.sessionId=n,console.log("SessionManager - Using existing sessionId:",this.sessionId)):this.setSessionId(this.sessionId)}getSessionId(){const n=localStorage.getItem(Ht.SESSION_ID);return console.log("SessionManager - getSessionId:",n),n}setSessionId(n){localStorage.setItem(Ht.SESSION_ID,n),console.log("SessionManager - setSessionId:",n)}getToken(){const n=el.get(Ht.TOKEN),a=localStorage.getItem(Ht.TOKEN);return console.log("SessionManager - getToken - Cookie token:",n?"exists":"none"),console.log("SessionManager - getToken - LocalStorage token:",a?"exists":"none"),n||a}setToken(n){if(!n)return console.warn("SessionManager - setToken - Empty token provided"),!1;try{return el.set(Ht.TOKEN,n,PE),localStorage.setItem(Ht.TOKEN,n),console.log("SessionManager - setToken - Token stored successfully"),console.log("SessionManager - setToken - Token in cookies:",!!el.get(Ht.TOKEN)),console.log("SessionManager - setToken - Token in localStorage:",!!localStorage.getItem(Ht.TOKEN)),!0}catch(a){return console.error("SessionManager - setToken - Error:",a),!1}}removeToken(){try{return el.remove(Ht.TOKEN),localStorage.removeItem(Ht.TOKEN),console.log("SessionManager - removeToken - Token removed successfully"),!0}catch(n){return console.error("SessionManager - removeToken - Error:",n),!1}}getUser(){try{const n=localStorage.getItem(Ht.USER),a=n?JSON.parse(n):null;return console.log("SessionManager - getUser - Retrieved user:",a),a}catch(n){return console.error("SessionManager - getUser - Error parsing user data:",n),null}}setUser(n){if(!n)return console.warn("SessionManager - setUser - Empty user data provided"),!1;try{return localStorage.setItem(Ht.USER,JSON.stringify(n)),console.log("SessionManager - setUser - Stored user:",n),!0}catch(a){return console.error("SessionManager - setUser - Error storing user data:",a),!1}}removeUser(){try{return localStorage.removeItem(Ht.USER),console.log("SessionManager - removeUser - User data removed successfully"),!0}catch(n){return console.error("SessionManager - removeUser - Error:",n),!1}}getSignupEmail(){const n=localStorage.getItem(Ht.SIGNUP_EMAIL);return console.log("SessionManager - getSignupEmail:",n),n}setSignupEmail(n){n&&(localStorage.setItem(Ht.SIGNUP_EMAIL,n),console.log("SessionManager - setSignupEmail:",n))}removeSignupEmail(){localStorage.removeItem(Ht.SIGNUP_EMAIL),console.log("SessionManager - removeSignupEmail - Signup email removed")}isAuthenticated(){const n=this.getToken(),a=this.getUser(),s=!!(n&&a);return console.log("SessionManager - isAuthenticated:",{hasToken:!!n,hasUser:!!a,isAuthenticated:s}),s}createSession(n,a){console.log("SessionManager - createSession - Token:",n),console.log("SessionManager - createSession - User:",a);const s=this.setToken(n),l=this.setUser(a);return s&&l?(console.log("SessionManager - createSession - Session created successfully"),!0):(console.error("SessionManager - createSession - Failed"),!1)}clearSession(){console.log("SessionManager - clearSession"),this.removeToken(),this.removeUser(),this.removeSignupEmail(),console.log("SessionManager - clearSession - Session cleared successfully")}refreshSession(n,a){return console.log("SessionManager - refreshSession - Token:",n),console.log("SessionManager - refreshSession - User:",a),n&&a?this.createSession(n,a):(console.warn("SessionManager - refreshSession - Empty data provided"),!1)}getSessionInfo(){const n={sessionId:this.getSessionId(),hasToken:!!this.getToken(),hasUser:!!this.getUser(),isAuthenticated:this.isAuthenticated(),signupEmail:this.getSignupEmail(),tokenLength:this.getToken()?.length||0};return console.log("SessionManager - getSessionInfo:",n),n}validateTokenFormat(n){if(!n)return console.warn("SessionManager - validateTokenFormat - No token provided"),!1;const a=n.split("."),s=a.length===3&&a.every(l=>l&&l.length>0);return console.log("SessionManager - validateTokenFormat - Token valid:",s),s}}const ze=new zE,At=pt.create({baseURL:tn,headers:{"Content-Type":"application/json"},timeout:ME.TIMEOUT});At.interceptors.request.use(e=>{const n=ze.getToken();if(console.log("API Request - URL:",e.url,"Method:",e.method,"Data:",JSON.stringify(e.data,null,2),"Headers:",e.headers),n){const a=ru(n);l1(a)?e.headers.Authorization=`Bearer ${a}`:(console.warn("Invalid token format, proceeding with request"),e.headers.Authorization=`Bearer ${a}`)}return e},e=>(console.error("API Request - Interceptor error:",e),Promise.reject(e)));At.interceptors.response.use(e=>(console.log("API Response - Success:","Status:",e.status,"URL:",e.config.url,"Data:",JSON.stringify(e.data,null,2),"Headers:",e.headers),e),e=>(console.error("API Response - Error:","Status:",e.response?.status,"Message:",e.response?.data?.message,"URL:",e.config?.url,"Error Data:",JSON.stringify(e.response?.data,null,2),"Headers:",e.response?.headers),e.code==="ECONNABORTED"?(console.log("API Request - Timeout error"),Promise.reject({message:"Request timed out. Please try again."})):(e.response?.status===401&&(e.config?.url?.includes("/login")||e.config?.url?.includes("/signup")||e.config?.url?.includes("/logout")||e.config?.url?.includes("/verify-otp")||e.config?.url?.includes("/forgot-password")||e.config?.url?.includes("/reset-password")||(console.log("API Response - 401 Unauthorized, clearing session"),ze.clearSession(),window.dispatchEvent(new CustomEvent("sessionCleared",{detail:{reason:"401_unauthorized",endpoint:e.config?.url}})))),Promise.reject(e))));const mn={signup:e=>(console.log("authAPI.signup - Sending request with data:",JSON.stringify(e,null,2)),At.post(at.SIGNUP,e)),sendEmailOTP:e=>(console.log("authAPI.sendEmailOTP - Sending request with data:",JSON.stringify(e,null,2)),At.post(at.SEND_EMAIL_OTP,e)),verifyOTP:e=>(console.log("authAPI.verifyOTP - Sending request with data:",JSON.stringify(e,null,2)),At.post(at.VERIFY_OTP,e).then(n=>(console.log("authAPI.verifyOTP - Response received:",JSON.stringify(n.data,null,2)),n))),login:e=>(console.log("authAPI.login - Sending request with data:",JSON.stringify(e,null,2)),At.post(at.LOGIN,e)),getCurrentUser:()=>(console.log("authAPI.getCurrentUser - Sending request"),At.get(at.GET_CURRENT_USER)),logout:()=>(console.log("authAPI.logout - Sending request"),At.post(at.LOGOUT)),forgotPassword:e=>(console.log("authAPI.forgotPassword - Sending request with data:",JSON.stringify(e,null,2)),At.post(at.FORGOT_PASSWORD,e)),resetPassword:e=>(console.log("authAPI.resetPassword - Sending request with data:",JSON.stringify(e,null,2)),At.post(at.RESET_PASSWORD,e)),getReferralTree:e=>(console.log("authAPI.getReferralTree - Sending request with userId:",e),At.get(e?`${at.REFERRAL_TREE}?userId=${e}`:at.REFERRAL_TREE)),getUserById:e=>(console.log("authAPI.getUserById - Sending request with userId:",e),At.get(`${at.GET_USER_BY_ID}?userId=${e}`)),resendOTP:e=>(console.log("authAPI.resendOTP - Sending request with data:",JSON.stringify(e,null,2)),At.post(at.RESEND_OTP,e)),getReferralLink:()=>(console.log("authAPI.getReferralLink - Sending request"),At.get(at.REFERRAL_LINK)),getUserByUsername:e=>(console.log("authAPI.getUserByUsername - Sending request with username:",e),At.get(`${at.GET_USER_BY_USERNAME}?username=${e}`)),getMlmDashboard:e=>(console.log("authAPI.getMlmDashboard - Sending request with userId:",e),At.get(`${at.MLM_USER_DASHBOARD}/${e}`))},au={user:null,token:ze.getToken(),isAuthenticated:ze.isAuthenticated(),loading:!1,error:null,signupEmail:ze.getSignupEmail(),referralTree:null,referralTreeLoading:!1,referralTreeError:null,referralTreeAttempted:!1};console.log("=== REDUX INITIAL STATE ===");console.log("Session info:",ze.getSessionInfo());console.log("Initial state user:",au.user);console.log("Initial state token:",au.token);console.log("Initial state isAuthenticated:",au.isAuthenticated);console.log("==========================");const uc=Dn("user/login",async(e,{dispatch:n,rejectWithValue:a})=>{console.log("loginUser - Attempting login with credentials:",e);const s=qn("Logging in...");try{const l=await mn.login(e);lt(s);const{user:c,token:d}=l.data;if(!ze.createSession(d,c))throw new Error("Failed to create user session");return console.log("loginUser - Success, user:",c),ta("Login successful!"),{user:c,token:d}}catch(l){lt(s);const c=l.response?.data||{message:l.message||"Login failed"};return console.log("loginUser - Error:",c),nt(c.message||"Login failed"),a(c.message||"Login failed")}}),dc=Dn("user/signup",async(e,{rejectWithValue:n})=>{const a=qn("Creating account...");try{const s=await mn.signup(e);return lt(a),s.data.token&&s.data.user?ta(s.data.message||"Registration completed successfully"):ta(s.data.message||"Account created successfully"),s.data}catch(s){lt(a);const l=s.response?.data||{message:s.message||"Signup failed"};return console.log("signupUser - Error:",l),nt(l.message||"Signup failed"),n(l)}}),fc=Dn("user/forgotPassword",async(e,{rejectWithValue:n})=>{const a=qn("Sending password reset OTP...");try{const s=await mn.forgotPassword(e);return lt(a),ze.setSignupEmail(e.email),s.data.userId&&localStorage.setItem("signupUserId",s.data.userId),ta(s.data.message||"Reset OTP sent to email."),s.data}catch(s){lt(a);const l=s.response?.data||{message:s.message||"Failed to send reset OTP"};return nt(l.message||"Failed to send reset OTP"),n(l.message||"Failed to send reset OTP")}}),hc=Dn("user/resetPassword",async(e,{rejectWithValue:n})=>{const a=qn("Resetting password...");try{const s=await mn.resetPassword(e);return lt(a),ze.removeSignupEmail(),localStorage.removeItem("signupUserId"),ta(s.data.message||"Password reset successful."),s.data}catch(s){lt(a);const l=s.response?.data||{message:s.message||"Password reset failed"};return nt(l.message||"Password reset failed"),n(l.message||"Password reset failed")}}),mc=Dn("user/logout",async(e,{rejectWithValue:n})=>{const a=qn("Logging out...");try{return ze.clearSession(),lt(a),ta("Logged out successfully"),{message:"Logged out successfully"}}catch(s){lt(a);const l=s.message||"Logout failed";return nt(l),n(l)}}),Cs=Dn("user/checkCurrentUser",async(e,{rejectWithValue:n})=>{try{const a=await mn.getCurrentUser();console.log("checkCurrentUser - Raw response:",a.data);const{user:s,token:l}=a.data;if(!s||!l)throw new Error("Invalid response: user or token missing");if(!ze.createSession(l,s))throw new Error("Failed to create session");return console.log("checkCurrentUser - User data:",s),console.log("checkCurrentUser - Token:",l),{user:s,token:l}}catch(a){console.error("checkCurrentUser - Error:",a);const s=a.response?.data||{message:a.message||"Failed to get user data"};return a.response?.status===401&&(console.log("checkCurrentUser - 401 Unauthorized, clearing session"),ze.clearSession()),n(s.message||"Failed to get user data")}}),Vf=Dn("user/resendOTP",async(e,{rejectWithValue:n})=>{const a=qn("Resending OTP...");try{const s=await mn.resendOTP({email:e});return lt(a),ta(s.data.message||"OTP resent successfully!"),s.data}catch(s){lt(a);const l=s.response?.data||{message:s.message||"Failed to resend OTP"};return nt(l.message||"Failed to resend OTP"),n(l.message||"Failed to resend OTP")}}),Ds=Dn("user/fetchReferralTree",async(e,{rejectWithValue:n,getState:a})=>{const s=a();if(s.user.referralTreeAttempted&&s.user.referralTreeError)return console.log("fetchReferralTree - Already attempted and failed, skipping"),n("Referral tree fetch already attempted");const l=ze.getToken(),c=ze.getUser(),d=ze.isAuthenticated();if(!l||!c||!d)return console.log("fetchReferralTree - No valid session"),n("No valid session");const f=qn("Loading referral tree...");try{const h=await mn.getReferralTree();return lt(f),console.log("fetchReferralTree - Success:",h.data),h.data}catch{console.log("fetchReferralTree - API call failed, trying fetch directly");try{const m=ze.getToken().replace(/['"]/g,""),g=await fetch(`${tn}/user/referral-tree`,{method:"GET",headers:{Authorization:`Bearer ${m}`,"Content-Type":"application/json"}});if(g.ok){const x=await g.json();return lt(f),console.log("fetchReferralTree - Fetch call succeeded:",x),x}else{const x=await g.json();return console.log("fetchReferralTree - Fetch call failed:",g.status,x),lt(f),nt(x.message||"Failed to load referral tree"),n(x.message||"Failed to load referral tree")}}catch(m){return console.log("fetchReferralTree - Fetch call also failed:",m),lt(f),nt(m.message||"Failed to load referral tree"),n(m.message||"Failed to load referral tree")}}}),o1=Kc({name:"user",initialState:au,reducers:{setUser:(e,n)=>{e.user=n.payload,e.isAuthenticated=!0,ze.setUser(n.payload),console.log("setUser - Updated user:",n.payload)},setToken:(e,n)=>{e.token=n.payload,e.isAuthenticated=!0,ze.setToken(n.payload),console.log("setToken - Updated token:",n.payload)},logout:e=>{e.user=null,e.token=null,e.isAuthenticated=!1,e.error=null,e.signupEmail=null,e.referralTree=null,e.referralTreeError=null,e.referralTreeAttempted=!1,ze.clearSession(),console.log("logout - Session cleared"),ta("Logged out successfully")},clearError:e=>{e.error=null},setLoading:(e,n)=>{e.loading=n.payload},clearSignupEmail:e=>{e.signupEmail=null,ze.removeSignupEmail()},clearReferralTree:e=>{e.referralTree=null,e.referralTreeError=null,e.referralTreeAttempted=!1},syncWithSession:e=>{const n=ze.getUser(),a=ze.getToken();e.user=n,e.token=a,e.isAuthenticated=ze.isAuthenticated(),e.signupEmail=ze.getSignupEmail(),console.log("syncWithSession - Synced state:",{user:e.user,token:e.token,isAuthenticated:e.isAuthenticated,signupEmail:e.signupEmail})},resetReferralTreeAttempt:e=>{e.referralTreeAttempted=!1,e.referralTreeError=null}},extraReducers:e=>{e.addCase(uc.pending,n=>{n.loading=!0,n.error=null,console.log("loginUser - Pending")}).addCase(uc.fulfilled,(n,a)=>{n.loading=!1,n.user=a.payload.user,n.token=a.payload.token,n.isAuthenticated=!0,n.error=null,console.log("loginUser - Fulfilled, user:",a.payload.user)}).addCase(uc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("loginUser - Rejected:",a.payload)}).addCase(dc.pending,n=>{n.loading=!0,n.error=null,console.log("signupUser - Pending")}).addCase(dc.fulfilled,(n,a)=>{n.loading=!1,n.signupData=a.payload,n.signupEmail=ze.getSignupEmail(),n.error=null,console.log("signupUser - Fulfilled, signupEmail:",n.signupEmail)}).addCase(dc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("signupUser - Rejected:",a.payload)}).addCase(fc.pending,n=>{n.loading=!0,n.error=null,console.log("forgotPassword - Pending")}).addCase(fc.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=ze.getSignupEmail(),n.error=null,console.log("forgotPassword - Fulfilled, signupEmail:",n.signupEmail)}).addCase(fc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("forgotPassword - Rejected:",a.payload)}).addCase(hc.pending,n=>{n.loading=!0,n.error=null,console.log("resetPassword - Pending")}).addCase(hc.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=null,n.error=null,console.log("resetPassword - Fulfilled")}).addCase(hc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resetPassword - Rejected:",a.payload)}).addCase(mc.pending,n=>{n.loading=!0,n.error=null,console.log("logoutUser - Pending")}).addCase(mc.fulfilled,n=>{n.loading=!1,n.user=null,n.token=null,n.isAuthenticated=!1,n.error=null,n.signupEmail=null,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,console.log("logoutUser - Fulfilled")}).addCase(mc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,n.user=null,n.token=null,n.isAuthenticated=!1,n.signupEmail=null,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,ze.clearSession(),console.log("logoutUser - Rejected:",a.payload)}).addCase(Cs.pending,n=>{n.loading=!0,n.error=null,console.log("checkCurrentUser - Pending")}).addCase(Cs.fulfilled,(n,a)=>{n.loading=!1,n.user=a.payload.user,n.token=a.payload.token,n.isAuthenticated=!0,n.error=null,console.log("checkCurrentUser - Fulfilled, user:",a.payload.user)}).addCase(Cs.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,a.payload?.includes("401")||a.payload?.includes("Unauthorized")?(n.user=null,n.token=null,n.isAuthenticated=!1,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,ze.clearSession(),console.log("checkCurrentUser - Rejected: 401 Unauthorized, session cleared")):console.log("checkCurrentUser - Rejected, keeping session:",a.payload)}).addCase(Ds.pending,n=>{n.referralTreeLoading=!0,n.referralTreeError=null,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Pending")}).addCase(Ds.fulfilled,(n,a)=>{n.referralTreeLoading=!1,n.referralTree=a.payload.referralTree,n.referralTreeError=null,console.log("fetchReferralTree - Fulfilled")}).addCase(Ds.rejected,(n,a)=>{n.referralTreeLoading=!1,n.referralTreeError=a.payload,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Rejected:",a.payload)}).addCase(Vf.pending,n=>{n.loading=!0,n.error=null,console.log("resendOTP - Pending")}).addCase(Vf.fulfilled,(n,a)=>{n.loading=!1,n.error=null,console.log("resendOTP - Fulfilled")}).addCase(Vf.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resendOTP - Rejected:",a.payload)})}}),{setUser:AD,setToken:ND,logout:kD,clearError:Us,setLoading:Hf,clearSignupEmail:_D,clearReferralTree:OD,syncWithSession:Tx,resetReferralTreeAttempt:UE}=o1.actions,Nr=e=>e.user.user,c1=e=>e.user.token,mm=e=>e.user.isAuthenticated,kl=e=>e.user.loading,su=e=>e.user.error,BE=e=>e.user.signupEmail,FE=e=>e.user.referralTree,VE=e=>e.user.referralTreeLoading,HE=e=>e.user.referralTreeError,IE=o1.reducer,qE={mlmDashboard:null,loading:!1,error:null},sl=Dn("mlm/fetchDashboard",async(e,{rejectWithValue:n,getState:a})=>{const s=qn("Loading MLM dashboard...");try{const l=ze.getUser();if(console.log("User from session:",l),!l||!l._id)return lt(s),n("User not authenticated");console.log("Making API call to:",`${at.MLM_USER_DASHBOARD}/${l._id}`);const c=await At.get(`${at.MLM_USER_DASHBOARD}/${l._id}`);return lt(s),c.data}catch(l){lt(s);const c=l.response?.data||{message:l.message||"Failed to load MLM dashboard"};return nt(c.message||"Failed to load MLM dashboard"),n(c.message||"Failed to load MLM dashboard")}}),u1=Kc({name:"mlm",initialState:qE,reducers:{clearMlmDashboard:e=>{e.mlmDashboard=null,e.error=null},setLoading:(e,n)=>{e.loading=n.payload}},extraReducers:e=>{e.addCase(sl.pending,n=>{n.loading=!0,n.error=null,console.log("fetchMlmDashboard - Pending")}).addCase(sl.fulfilled,(n,a)=>{n.loading=!1,n.mlmDashboard=a.payload.data,n.error=null,console.log("fetchMlmDashboard - Fulfilled",a.payload)}).addCase(sl.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("fetchMlmDashboard - Rejected:",a.payload)})}}),{clearMlmDashboard:RD,setLoading:CD}=u1.actions,d1=e=>e.mlm.mlmDashboard,f1=e=>e.mlm.loading,GE=u1.reducer,YE={leaderboard:[],leaderboardLoading:!1,leaderboardError:null},pc=Dn("ddr/fetchLeaderboard",async(e,{rejectWithValue:n})=>{const a=qn("Loading DDR leaderboard...");try{const s=await At.get(at.DDR_LEADERBOARD);return lt(a),s.data}catch(s){lt(a);const l=s.response?.data||{message:s.message||"Failed to load DDR leaderboard"};return nt(l.message||"Failed to load DDR leaderboard"),n(l.message||"Failed to load DDR leaderboard")}}),h1=Kc({name:"ddr",initialState:YE,reducers:{clearLeaderboard:e=>{e.leaderboard=[],e.leaderboardError=null}},extraReducers:e=>{e.addCase(pc.pending,n=>{n.leaderboardLoading=!0,n.leaderboardError=null,console.log("fetchDdrLeaderboard - Pending")}).addCase(pc.fulfilled,(n,a)=>{n.leaderboardLoading=!1,n.leaderboard=a.payload.data.leaderboard,n.leaderboardError=null,console.log("fetchDdrLeaderboard - Fulfilled",a.payload)}).addCase(pc.rejected,(n,a)=>{n.leaderboardLoading=!1,n.leaderboardError=a.payload,console.log("fetchDdrLeaderboard - Rejected:",a.payload)})}}),{clearLeaderboard:DD}=h1.actions,XE=e=>e.ddr.leaderboard,ZE=e=>e.ddr.leaderboardLoading,WE=h1.reducer,KE={rankTracking:null,rankTrackingLoading:!1,rankTrackingError:null,leaderboard:null,leaderboardLoading:!1,leaderboardError:null},gc=Dn("crr/fetchRankTracking",async(e,{rejectWithValue:n})=>{const a=qn("Loading CRR rank tracking...");try{const s=ze.getUser();if(!s||!s._id)return lt(a),n("User not authenticated");const l=await At.get(`/mlm/crr/rank-tracking/${s._id}`);return lt(a),l.data}catch(s){lt(a);const l=s.response?.data||{message:s.message||"Failed to load CRR rank tracking"};return nt(l.message||"Failed to load CRR rank tracking"),n(l.message||"Failed to load CRR rank tracking")}}),yc=Dn("crr/fetchLeaderboard",async(e,{rejectWithValue:n})=>{const a=qn("Loading CRR leaderboard...");try{const s=await At.get(at.CRR_LEADERBOARD);return lt(a),s.data}catch(s){lt(a);const l=s.response?.data||{message:s.message||"Failed to load CRR leaderboard"};return nt(l.message||"Failed to load CRR leaderboard"),n(l.message||"Failed to load CRR leaderboard")}}),m1=Kc({name:"crr",initialState:KE,reducers:{clearRankTracking:e=>{e.rankTracking=null,e.rankTrackingError=null},clearLeaderboard:e=>{e.leaderboard=null,e.leaderboardError=null}},extraReducers:e=>{e.addCase(gc.pending,n=>{n.rankTrackingLoading=!0,n.rankTrackingError=null,console.log("fetchCrrRankTracking - Pending")}).addCase(gc.fulfilled,(n,a)=>{n.rankTrackingLoading=!1,n.rankTracking=a.payload.data,n.rankTrackingError=null,console.log("fetchCrrRankTracking - Fulfilled",a.payload)}).addCase(gc.rejected,(n,a)=>{n.rankTrackingLoading=!1,n.rankTrackingError=a.payload,console.log("fetchCrrRankTracking - Rejected:",a.payload)}).addCase(yc.pending,n=>{n.leaderboardLoading=!0,n.leaderboardError=null,console.log("fetchCrrLeaderboard - Pending")}).addCase(yc.fulfilled,(n,a)=>{n.leaderboardLoading=!1,n.leaderboard=a.payload.data.leaderboard,n.leaderboardError=null,console.log("fetchCrrLeaderboard - Fulfilled",a.payload)}).addCase(yc.rejected,(n,a)=>{n.leaderboardLoading=!1,n.leaderboardError=a.payload,console.log("fetchCrrLeaderboard - Rejected:",a.payload)})}}),{clearRankTracking:MD,clearLeaderboard:LD}=m1.actions,$E=e=>e.crr.rankTracking,QE=e=>e.crr.rankTrackingLoading,JE=e=>e.crr.leaderboard,eA=e=>e.crr.leaderboardLoading,tA=m1.reducer,nA=Uj({reducer:{user:IE,mlm:GE,ddr:WE,crr:tA},middleware:e=>e({serializableCheck:{ignoredActions:["user/setUser","user/logout"]}})});/**
* react-router v7.7.0
*
* 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 Ex="popstate";function rA(e={}){function n(s,l){let{pathname:c,search:d,hash:f}=s.location;return Lh("",{pathname:c,search:d,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(s,l){return typeof l=="string"?l:ml(l)}return sA(n,a,null,e)}function dt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Rn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function aA(){return Math.random().toString(36).substring(2,10)}function Ax(e,n){return{usr:e.state,key:e.key,idx:n}}function Lh(e,n,a=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?qs(n):n,state:a,key:n&&n.key||s||aA()}}function ml({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function qs(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let s=e.indexOf("?");s>=0&&(n.search=e.substring(s),e=e.substring(0,s)),e&&(n.pathname=e)}return n}function sA(e,n,a,s={}){let{window:l=document.defaultView,v5Compat:c=!1}=s,d=l.history,f="POP",h=null,m=g();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function g(){return(d.state||{idx:null}).idx}function x(){f="POP";let A=g(),E=A==null?null:A-m;m=A,h&&h({action:f,location:S.location,delta:E})}function w(A,E){f="PUSH";let C=Lh(S.location,A,E);m=g()+1;let L=Ax(C,m),I=S.createHref(C);try{d.pushState(L,"",I)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;l.location.assign(I)}c&&h&&h({action:f,location:S.location,delta:1})}function T(A,E){f="REPLACE";let C=Lh(S.location,A,E);m=g();let L=Ax(C,m),I=S.createHref(C);d.replaceState(L,"",I),c&&h&&h({action:f,location:S.location,delta:0})}function k(A){return iA(A)}let S={get action(){return f},get location(){return e(l,d)},listen(A){if(h)throw new Error("A history only accepts one active listener");return l.addEventListener(Ex,x),h=A,()=>{l.removeEventListener(Ex,x),h=null}},createHref(A){return n(l,A)},createURL:k,encodeLocation(A){let E=k(A);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:w,replace:T,go(A){return d.go(A)}};return S}function iA(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),dt(a,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:ml(e);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=a+s),new URL(s,a)}function p1(e,n,a="/"){return lA(e,n,a,!1)}function lA(e,n,a,s){let l=typeof n=="string"?qs(n):n,c=Tr(l.pathname||"/",a);if(c==null)return null;let d=g1(e);oA(d);let f=null;for(let h=0;f==null&&h<d.length;++h){let m=bA(c);f=yA(d[h],m,s)}return f}function g1(e,n=[],a=[],s=""){let l=(c,d,f)=>{let h={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};h.relativePath.startsWith("/")&&(dt(h.relativePath.startsWith(s),`Absolute route path "${h.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(s.length));let m=wr([s,h.relativePath]),g=a.concat(h);c.children&&c.children.length>0&&(dt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),g1(c.children,n,g,m)),!(c.path==null&&!c.index)&&n.push({path:m,score:pA(m,c.index),routesMeta:g})};return e.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))l(c,d);else for(let f of y1(c.path))l(c,d,f)}),n}function y1(e){let n=e.split("/");if(n.length===0)return[];let[a,...s]=n,l=a.endsWith("?"),c=a.replace(/\?$/,"");if(s.length===0)return l?[c,""]:[c];let d=y1(s.join("/")),f=[];return f.push(...d.map(h=>h===""?c:[c,h].join("/"))),l&&f.push(...d),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function oA(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:gA(n.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}var cA=/^:[\w-]+$/,uA=3,dA=2,fA=1,hA=10,mA=-2,Nx=e=>e==="*";function pA(e,n){let a=e.split("/"),s=a.length;return a.some(Nx)&&(s+=mA),n&&(s+=dA),a.filter(l=>!Nx(l)).reduce((l,c)=>l+(cA.test(c)?uA:c===""?fA:hA),s)}function gA(e,n){return e.length===n.length&&e.slice(0,-1).every((s,l)=>s===n[l])?e[e.length-1]-n[n.length-1]:0}function yA(e,n,a=!1){let{routesMeta:s}=e,l={},c="/",d=[];for(let f=0;f<s.length;++f){let h=s[f],m=f===s.length-1,g=c==="/"?n:n.slice(c.length)||"/",x=Dc({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),w=h.route;if(!x&&m&&a&&!s[s.length-1].route.index&&(x=Dc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!x)return null;Object.assign(l,x.params),d.push({params:l,pathname:wr([c,x.pathname]),pathnameBase:jA(wr([c,x.pathnameBase])),route:w}),x.pathnameBase!=="/"&&(c=wr([c,x.pathnameBase]))}return d}function Dc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=xA(e.path,e.caseSensitive,e.end),l=n.match(a);if(!l)return null;let c=l[0],d=c.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:s.reduce((m,{paramName:g,isOptional:x},w)=>{if(g==="*"){let k=f[w]||"";d=c.slice(0,c.length-k.length).replace(/(.)\/+$/,"$1")}const T=f[w];return x&&!T?m[g]=void 0:m[g]=(T||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:e}}function xA(e,n=!1,a=!0){Rn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,h)=>(s.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),s]}function bA(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Rn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Tr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,s=e.charAt(a);return s&&s!=="/"?null:e.slice(a)||"/"}function vA(e,n="/"){let{pathname:a,search:s="",hash:l=""}=typeof e=="string"?qs(e):e;return{pathname:a?a.startsWith("/")?a:wA(a,n):n,search:TA(s),hash:EA(l)}}function wA(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function If(e,n,a,s){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function SA(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function pm(e){let n=SA(e);return n.map((a,s)=>s===n.length-1?a.pathname:a.pathnameBase)}function gm(e,n,a,s=!1){let l;typeof e=="string"?l=qs(e):(l={...e},dt(!l.pathname||!l.pathname.includes("?"),If("?","pathname","search",l)),dt(!l.pathname||!l.pathname.includes("#"),If("#","pathname","hash",l)),dt(!l.search||!l.search.includes("#"),If("#","search","hash",l)));let c=e===""||l.pathname==="",d=c?"/":l.pathname,f;if(d==null)f=a;else{let x=n.length-1;if(!s&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),x-=1;l.pathname=w.join("/")}f=x>=0?n[x]:"/"}let h=vA(l,f),m=d&&d!=="/"&&d.endsWith("/"),g=(c||d===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}var wr=e=>e.join("/").replace(/\/\/+/g,"/"),jA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function AA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var x1=["POST","PUT","PATCH","DELETE"];new Set(x1);var NA=["GET",...x1];new Set(NA);var Gs=X.createContext(null);Gs.displayName="DataRouter";var iu=X.createContext(null);iu.displayName="DataRouterState";X.createContext(!1);var b1=X.createContext({isTransitioning:!1});b1.displayName="ViewTransition";var kA=X.createContext(new Map);kA.displayName="Fetchers";var _A=X.createContext(null);_A.displayName="Await";var Yn=X.createContext(null);Yn.displayName="Navigation";var _l=X.createContext(null);_l.displayName="Location";var Xn=X.createContext({outlet:null,matches:[],isDataRoute:!1});Xn.displayName="Route";var ym=X.createContext(null);ym.displayName="RouteError";function OA(e,{relative:n}={}){dt(Ys(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:s}=X.useContext(Yn),{hash:l,pathname:c,search:d}=Ol(e,{relative:n}),f=c;return a!=="/"&&(f=c==="/"?a:wr([a,c])),s.createHref({pathname:f,search:d,hash:l})}function Ys(){return X.useContext(_l)!=null}function Mn(){return dt(Ys(),"useLocation() may be used only in the context of a <Router> component."),X.useContext(_l).location}var v1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function w1(e){X.useContext(Yn).static||X.useLayoutEffect(e)}function Zt(){let{isDataRoute:e}=X.useContext(Xn);return e?qA():RA()}function RA(){dt(Ys(),"useNavigate() may be used only in the context of a <Router> component.");let e=X.useContext(Gs),{basename:n,navigator:a}=X.useContext(Yn),{matches:s}=X.useContext(Xn),{pathname:l}=Mn(),c=JSON.stringify(pm(s)),d=X.useRef(!1);return w1(()=>{d.current=!0}),X.useCallback((h,m={})=>{if(Rn(d.current,v1),!d.current)return;if(typeof h=="number"){a.go(h);return}let g=gm(h,JSON.parse(c),l,m.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:wr([n,g.pathname])),(m.replace?a.replace:a.push)(g,m.state,m)},[n,a,c,l,e])}X.createContext(null);function CA(){let{matches:e}=X.useContext(Xn),n=e[e.length-1];return n?n.params:{}}function Ol(e,{relative:n}={}){let{matches:a}=X.useContext(Xn),{pathname:s}=Mn(),l=JSON.stringify(pm(a));return X.useMemo(()=>gm(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function DA(e,n){return S1(e,n)}function S1(e,n,a,s){dt(Ys(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=X.useContext(Yn),{matches:c}=X.useContext(Xn),d=c[c.length-1],f=d?d.params:{},h=d?d.pathname:"/",m=d?d.pathnameBase:"/",g=d&&d.route;{let E=g&&g.path||"";j1(h,!g||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let x=Mn(),w;if(n){let E=typeof n=="string"?qs(n):n;dt(m==="/"||E.pathname?.startsWith(m),`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 "${m}" but pathname "${E.pathname}" was given in the \`location\` prop.`),w=E}else w=x;let T=w.pathname||"/",k=T;if(m!=="/"){let E=m.replace(/^\//,"").split("/");k="/"+T.replace(/^\//,"").split("/").slice(E.length).join("/")}let S=p1(e,{pathname:k});Rn(g||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Rn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 A=UA(S&&S.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:wr([m,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?m:wr([m,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),c,a,s);return n&&A?X.createElement(_l.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},A):A}function MA(){let e=IA(),n=AA(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=X.createElement(X.Fragment,null,X.createElement("p",null,"💿 Hey developer 👋"),X.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",X.createElement("code",{style:c},"ErrorBoundary")," or"," ",X.createElement("code",{style:c},"errorElement")," prop on your route.")),X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},n),a?X.createElement("pre",{style:l},a):null,d)}var LA=X.createElement(MA,null),PA=class extends X.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?X.createElement(Xn.Provider,{value:this.props.routeContext},X.createElement(ym.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zA({routeContext:e,match:n,children:a}){let s=X.useContext(Gs);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),X.createElement(Xn.Provider,{value:e},a)}function UA(e,n=[],a=null,s=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let l=e,c=a?.errors;if(c!=null){let h=l.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);dt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,h+1))}let d=!1,f=-1;if(a)for(let h=0;h<l.length;h++){let m=l[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=h),m.route.id){let{loaderData:g,errors:x}=a,w=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||w){d=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((h,m,g)=>{let x,w=!1,T=null,k=null;a&&(x=c&&m.route.id?c[m.route.id]:void 0,T=m.route.errorElement||LA,d&&(f<0&&g===0?(j1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,k=null):f===g&&(w=!0,k=m.route.hydrateFallbackElement||null)));let S=n.concat(l.slice(0,g+1)),A=()=>{let E;return x?E=T:w?E=k:m.route.Component?E=X.createElement(m.route.Component,null):m.route.element?E=m.route.element:E=h,X.createElement(zA,{match:m,routeContext:{outlet:h,matches:S,isDataRoute:a!=null},children:E})};return a&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?X.createElement(PA,{location:a.location,revalidation:a.revalidation,component:T,error:x,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):A()},null)}function xm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function BA(e){let n=X.useContext(Gs);return dt(n,xm(e)),n}function FA(e){let n=X.useContext(iu);return dt(n,xm(e)),n}function VA(e){let n=X.useContext(Xn);return dt(n,xm(e)),n}function bm(e){let n=VA(e),a=n.matches[n.matches.length-1];return dt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function HA(){return bm("useRouteId")}function IA(){let e=X.useContext(ym),n=FA("useRouteError"),a=bm("useRouteError");return e!==void 0?e:n.errors?.[a]}function qA(){let{router:e}=BA("useNavigate"),n=bm("useNavigate"),a=X.useRef(!1);return w1(()=>{a.current=!0}),X.useCallback(async(l,c={})=>{Rn(a.current,v1),a.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:n,...c}))},[e,n])}var kx={};function j1(e,n,a){!n&&!kx[e]&&(kx[e]=!0,Rn(!1,a))}X.memo(GA);function GA({routes:e,future:n,state:a}){return S1(e,void 0,a,n)}function Fn({to:e,replace:n,state:a,relative:s}){dt(Ys(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=X.useContext(Yn);Rn(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=X.useContext(Xn),{pathname:d}=Mn(),f=Zt(),h=gm(e,pm(c),d,s==="path"),m=JSON.stringify(h);return X.useEffect(()=>{f(JSON.parse(m),{replace:n,state:a,relative:s})},[f,m,s,n,a]),null}function St(e){dt(!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 YA({basename:e="/",children:n=null,location:a,navigationType:s="POP",navigator:l,static:c=!1}){dt(!Ys(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=X.useMemo(()=>({basename:d,navigator:l,static:c,future:{}}),[d,l,c]);typeof a=="string"&&(a=qs(a));let{pathname:h="/",search:m="",hash:g="",state:x=null,key:w="default"}=a,T=X.useMemo(()=>{let k=Tr(h,d);return k==null?null:{location:{pathname:k,search:m,hash:g,state:x,key:w},navigationType:s}},[d,h,m,g,x,w,s]);return Rn(T!=null,`<Router basename="${d}"> is not able to match the URL "${h}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:X.createElement(Yn.Provider,{value:f},X.createElement(_l.Provider,{children:n,value:T}))}function XA({children:e,location:n}){return DA(Ph(e),n)}function Ph(e,n=[]){let a=[];return X.Children.forEach(e,(s,l)=>{if(!X.isValidElement(s))return;let c=[...n,l];if(s.type===X.Fragment){a.push.apply(a,Ph(s.props.children,c));return}dt(s.type===St,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),dt(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=Ph(s.props.children,c)),a.push(d)}),a}var xc="get",bc="application/x-www-form-urlencoded";function lu(e){return e!=null&&typeof e.tagName=="string"}function ZA(e){return lu(e)&&e.tagName.toLowerCase()==="button"}function WA(e){return lu(e)&&e.tagName.toLowerCase()==="form"}function KA(e){return lu(e)&&e.tagName.toLowerCase()==="input"}function $A(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QA(e,n){return e.button===0&&(!n||n==="_self")&&!$A(e)}function zh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,a)=>{let s=e[a];return n.concat(Array.isArray(s)?s.map(l=>[a,l]):[[a,s]])},[]))}function JA(e,n){let a=zh(e);return n&&n.forEach((s,l)=>{a.has(l)||n.getAll(l).forEach(c=>{a.append(l,c)})}),a}var ec=null;function eN(){if(ec===null)try{new FormData(document.createElement("form"),0),ec=!1}catch{ec=!0}return ec}var tN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qf(e){return e!=null&&!tN.has(e)?(Rn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bc}"`),null):e}function nN(e,n){let a,s,l,c,d;if(WA(e)){let f=e.getAttribute("action");s=f?Tr(f,n):null,a=e.getAttribute("method")||xc,l=qf(e.getAttribute("enctype"))||bc,c=new FormData(e)}else if(ZA(e)||KA(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(s=h?Tr(h,n):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||xc,l=qf(e.getAttribute("formenctype"))||qf(f.getAttribute("enctype"))||bc,c=new FormData(f,e),!eN()){let{name:m,type:g,value:x}=e;if(g==="image"){let w=m?`${m}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else m&&c.append(m,x)}}else{if(lu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=xc,s=null,l=bc,d=e}return c&&l==="text/plain"&&(d=c,c=void 0),{action:s,method:a.toLowerCase(),encType:l,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function rN(e,n,a){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return s.pathname==="/"?s.pathname=`_root.${a}`:n&&Tr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function aN(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sN(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function iN(e,n,a){let s=await Promise.all(e.map(async l=>{let c=n.routes[l.route.id];if(c){let d=await aN(c,a);return d.links?d.links():[]}return[]}));return uN(s.flat(1).filter(sN).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function _x(e,n,a,s,l,c){let d=(h,m)=>a[m]?h.route.id!==a[m].route.id:!0,f=(h,m)=>a[m].pathname!==h.pathname||a[m].route.path?.endsWith("*")&&a[m].params["*"]!==h.params["*"];return c==="assets"?n.filter((h,m)=>d(h,m)||f(h,m)):c==="data"?n.filter((h,m)=>{let g=s.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(d(h,m)||f(h,m))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function lN(e,n,{includeHydrateFallback:a}={}){return oN(e.map(s=>{let l=n.routes[s.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),a&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function oN(e){return[...new Set(e)]}function cN(e){let n={},a=Object.keys(e).sort();for(let s of a)n[s]=e[s];return n}function uN(e,n){let a=new Set;return new Set(n),e.reduce((s,l)=>{let c=JSON.stringify(cN(l));return a.has(c)||(a.add(c),s.push({key:c,link:l})),s},[])}function T1(){let e=X.useContext(Gs);return vm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dN(){let e=X.useContext(iu);return vm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wm=X.createContext(void 0);wm.displayName="FrameworkContext";function E1(){let e=X.useContext(wm);return vm(e,"You must render this element inside a <HydratedRouter> element"),e}function fN(e,n){let a=X.useContext(wm),[s,l]=X.useState(!1),[c,d]=X.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:m,onMouseLeave:g,onTouchStart:x}=n,w=X.useRef(null);X.useEffect(()=>{if(e==="render"&&d(!0),e==="viewport"){let S=E=>{E.forEach(C=>{d(C.isIntersecting)})},A=new IntersectionObserver(S,{threshold:.5});return w.current&&A.observe(w.current),()=>{A.disconnect()}}},[e]),X.useEffect(()=>{if(s){let S=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(S)}}},[s]);let T=()=>{l(!0)},k=()=>{l(!1),d(!1)};return a?e!=="intent"?[c,w,{}]:[c,w,{onFocus:Xi(f,T),onBlur:Xi(h,k),onMouseEnter:Xi(m,T),onMouseLeave:Xi(g,k),onTouchStart:Xi(x,T)}]:[!1,w,{}]}function Xi(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function hN({page:e,...n}){let{router:a}=T1(),s=X.useMemo(()=>p1(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?X.createElement(pN,{page:e,matches:s,...n}):null}function mN(e){let{manifest:n,routeModules:a}=E1(),[s,l]=X.useState([]);return X.useEffect(()=>{let c=!1;return iN(e,n,a).then(d=>{c||l(d)}),()=>{c=!0}},[e,n,a]),s}function pN({page:e,matches:n,...a}){let s=Mn(),{manifest:l,routeModules:c}=E1(),{basename:d}=T1(),{loaderData:f,matches:h}=dN(),m=X.useMemo(()=>_x(e,n,h,l,s,"data"),[e,n,h,l,s]),g=X.useMemo(()=>_x(e,n,h,l,s,"assets"),[e,n,h,l,s]),x=X.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let k=new Set,S=!1;if(n.forEach(E=>{let C=l.routes[E.route.id];!C||!C.hasLoader||(!m.some(L=>L.route.id===E.route.id)&&E.route.id in f&&c[E.route.id]?.shouldRevalidate||C.hasClientLoader?S=!0:k.add(E.route.id))}),k.size===0)return[];let A=rN(e,d,"data");return S&&k.size>0&&A.searchParams.set("_routes",n.filter(E=>k.has(E.route.id)).map(E=>E.route.id).join(",")),[A.pathname+A.search]},[d,f,s,l,m,n,e,c]),w=X.useMemo(()=>lN(g,l),[g,l]),T=mN(g);return X.createElement(X.Fragment,null,x.map(k=>X.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...a})),w.map(k=>X.createElement("link",{key:k,rel:"modulepreload",href:k,...a})),T.map(({key:k,link:S})=>X.createElement("link",{key:k,...S})))}function gN(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A1&&(window.__reactRouterVersion="7.7.0")}catch{}function yN({basename:e,children:n,window:a}){let s=X.useRef();s.current==null&&(s.current=rA({window:a,v5Compat:!0}));let l=s.current,[c,d]=X.useState({action:l.action,location:l.location}),f=X.useCallback(h=>{X.startTransition(()=>d(h))},[d]);return X.useLayoutEffect(()=>l.listen(f),[l,f]),X.createElement(YA,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:l})}var N1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=X.forwardRef(function({onClick:n,discover:a="render",prefetch:s="none",relative:l,reloadDocument:c,replace:d,state:f,target:h,to:m,preventScrollReset:g,viewTransition:x,...w},T){let{basename:k}=X.useContext(Yn),S=typeof m=="string"&&N1.test(m),A,E=!1;if(typeof m=="string"&&S&&(A=m,A1))try{let M=new URL(window.location.href),R=m.startsWith("//")?new URL(M.protocol+m):new URL(m),K=Tr(R.pathname,k);R.origin===M.origin&&K!=null?m=K+R.search+R.hash:E=!0}catch{Rn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=OA(m,{relative:l}),[L,I,N]=fN(s,w),z=vN(m,{replace:d,state:f,target:h,preventScrollReset:g,relative:l,viewTransition:x});function F(M){n&&n(M),M.defaultPrevented||z(M)}let H=X.createElement("a",{...w,...N,href:A||C,onClick:E||c?n:F,ref:gN(T,I),target:h,"data-discover":!S&&a==="render"?"true":void 0});return L&&!S?X.createElement(X.Fragment,null,H,X.createElement(hN,{page:C})):H});xt.displayName="Link";var k1=X.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:s="",end:l=!1,style:c,to:d,viewTransition:f,children:h,...m},g){let x=Ol(d,{relative:m.relative}),w=Mn(),T=X.useContext(iu),{navigator:k,basename:S}=X.useContext(Yn),A=T!=null&&AN(x)&&f===!0,E=k.encodeLocation?k.encodeLocation(x).pathname:x.pathname,C=w.pathname,L=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(C=C.toLowerCase(),L=L?L.toLowerCase():null,E=E.toLowerCase()),L&&S&&(L=Tr(L,S)||L);const I=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let N=C===E||!l&&C.startsWith(E)&&C.charAt(I)==="/",z=L!=null&&(L===E||!l&&L.startsWith(E)&&L.charAt(E.length)==="/"),F={isActive:N,isPending:z,isTransitioning:A},H=N?n:void 0,M;typeof s=="function"?M=s(F):M=[s,N?"active":null,z?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let R=typeof c=="function"?c(F):c;return X.createElement(xt,{...m,"aria-current":H,className:M,ref:g,style:R,to:d,viewTransition:f},typeof h=="function"?h(F):h)});k1.displayName="NavLink";var xN=X.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:s,replace:l,state:c,method:d=xc,action:f,onSubmit:h,relative:m,preventScrollReset:g,viewTransition:x,...w},T)=>{let k=TN(),S=EN(f,{relative:m}),A=d.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&N1.test(f),C=L=>{if(h&&h(L),L.defaultPrevented)return;L.preventDefault();let I=L.nativeEvent.submitter,N=I?.getAttribute("formmethod")||d;k(I||L.currentTarget,{fetcherKey:n,method:N,navigate:a,replace:l,state:c,relative:m,preventScrollReset:g,viewTransition:x})};return X.createElement("form",{ref:T,method:A,action:S,onSubmit:s?h:C,...w,"data-discover":!E&&e==="render"?"true":void 0})});xN.displayName="Form";function bN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _1(e){let n=X.useContext(Gs);return dt(n,bN(e)),n}function vN(e,{target:n,replace:a,state:s,preventScrollReset:l,relative:c,viewTransition:d}={}){let f=Zt(),h=Mn(),m=Ol(e,{relative:c});return X.useCallback(g=>{if(QA(g,n)){g.preventDefault();let x=a!==void 0?a:ml(h)===ml(m);f(e,{replace:x,state:s,preventScrollReset:l,relative:c,viewTransition:d})}},[h,f,m,a,s,n,e,l,c,d])}function wN(e){Rn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=X.useRef(zh(e)),a=X.useRef(!1),s=Mn(),l=X.useMemo(()=>JA(s.search,a.current?null:n.current),[s.search]),c=Zt(),d=X.useCallback((f,h)=>{const m=zh(typeof f=="function"?f(new URLSearchParams(l)):f);a.current=!0,c("?"+m,h)},[c,l]);return[l,d]}var SN=0,jN=()=>`__${String(++SN)}__`;function TN(){let{router:e}=_1("useSubmit"),{basename:n}=X.useContext(Yn),a=HA();return X.useCallback(async(s,l={})=>{let{action:c,method:d,encType:f,formData:h,body:m}=nN(s,n);if(l.navigate===!1){let g=l.fetcherKey||jN();await e.fetch(g,a,l.action||c,{preventScrollReset:l.preventScrollReset,formData:h,body:m,formMethod:l.method||d,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||c,{preventScrollReset:l.preventScrollReset,formData:h,body:m,formMethod:l.method||d,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:a,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,n,a])}function EN(e,{relative:n}={}){let{basename:a}=X.useContext(Yn),s=X.useContext(Xn);dt(s,"useFormAction must be used inside a RouteContext");let[l]=s.matches.slice(-1),c={...Ol(e||".",{relative:n})},d=Mn();if(e==null){c.search=d.search;let f=new URLSearchParams(c.search),h=f.getAll("index");if(h.some(g=>g==="")){f.delete("index"),h.filter(x=>x).forEach(x=>f.append("index",x));let g=f.toString();c.search=g?`?${g}`:""}}return(!e||e===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:wr([a,c.pathname])),ml(c)}function AN(e,n={}){let a=X.useContext(b1);dt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=_1("useViewTransitionState"),l=Ol(e,{relative:n.relative});if(!a.isTransitioning)return!1;let c=Tr(a.currentLocation.pathname,s)||a.currentLocation.pathname,d=Tr(a.nextLocation.pathname,s)||a.nextLocation.pathname;return Dc(l.pathname,d)!=null||Dc(l.pathname,c)!=null}const O1=X.createContext(),NN=({children:e})=>{const[n,a]=X.useState(()=>localStorage.getItem("theme")||"light");X.useEffect(()=>{n==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",n)},[n]);const s=()=>{a(l=>l==="light"?"dark":"light")};return u.jsx(O1.Provider,{value:{theme:n,toggleTheme:s},children:e})},Rl=()=>X.useContext(O1),kN="/assets/logo-C1IfLRO8.png";var R1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ox=Ra.createContext&&Ra.createContext(R1),_N=["attr","size","title"];function ON(e,n){if(e==null)return{};var a=RN(e,n),s,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(l=0;l<c.length;l++)s=c[l],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}function RN(e,n){if(e==null)return{};var a={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(n.indexOf(s)>=0)continue;a[s]=e[s]}return a}function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Mc.apply(this,arguments)}function Rx(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,s)}return a}function Lc(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Rx(Object(a),!0).forEach(function(s){CN(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Rx(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function CN(e,n,a){return n=DN(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function DN(e){var n=MN(e,"string");return typeof n=="symbol"?n:n+""}function MN(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function C1(e){return e&&e.map((n,a)=>Ra.createElement(n.tag,Lc({key:a},n.attr),C1(n.child)))}function ot(e){return n=>Ra.createElement(LN,Mc({attr:Lc({},e.attr)},n),C1(e.child))}function LN(e){var n=a=>{var{attr:s,size:l,title:c}=e,d=ON(e,_N),f=l||a.size||"1em",h;return a.className&&(h=a.className),e.className&&(h=(h?h+" ":"")+e.className),Ra.createElement("svg",Mc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,s,d,{className:h,style:Lc(Lc({color:e.color||a.color},a.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&Ra.createElement("title",null,c),e.children)};return Ox!==void 0?Ra.createElement(Ox.Consumer,null,a=>n(a)):n(R1)}function PN(e){return ot({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"},child:[]}]})(e)}function zN(e){return ot({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}const UN=()=>{const e=Mn(),n=In(),a=Xe(mm),s=Xe(Nr),{theme:l,toggleTheme:c}=Rl(),[d,f]=X.useState(!1),h=()=>f(!d),m=()=>n(mc()),g=()=>window.scrollTo(0,0),x=[{name:"Home",path:"/"},{name:"About",path:"/about"},{name:"Services",path:"/services"},{name:"Team",path:"/team"},{name:"FAQs",path:"/faqs"},{name:"Contact",path:"/contact"}];return u.jsxs("nav",{className:"w-full px-6 py-3 bg-white dark:bg-gray-800 text-gray-900 dark:text-white shadow-md fixed top-0 left-0 z-50 max-lg:px-4 transition-colors duration-300",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("div",{className:"flex items-center gap-2",children:u.jsx(xt,{to:"/",onClick:g,children:u.jsx("img",{src:kN,alt:"Logo",className:"w-12 h-12 sm:w-14 sm:h-14 cursor-pointer hover:opacity-80 transition-opacity"})})}),u.jsx("ul",{className:"flex gap-6 text-base font-medium mr-4 max-lg:hidden",children:x.map(w=>u.jsx("li",{children:u.jsx(xt,{to:w.path,onClick:g,className:`transition-colors ${e.pathname===w.path?"text-[#FFB800] font-semibold":"text-gray-900 dark:text-white hover:text-[#FFB800] dark:hover:text-[#FFB800]"}`,children:w.name})},w.name))}),u.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[a?u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(xt,{to:"/profile",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Profile"}),u.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-red-600 text-white hover:bg-red-700 transition-all shadow-sm hover:scale-105",children:"Logout"})]}):u.jsxs(u.Fragment,{children:[u.jsx(xt,{to:"/login",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Login"}),u.jsx(xt,{to:"/signup",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Signup"})]}),u.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[u.jsx("input",{className:"sr-only peer",type:"checkbox",onChange:c,checked:l==="dark"}),u.jsx("div",{className:`w-14 h-6 rounded-full peer duration-300 bg-gray-200 dark:bg-gray-600 relative \r
before:content-['☀️'] before:absolute before:left-1 before:top-1/2 before:-translate-y-1/2 \r
before:w-4 before:h-4 before:flex before:items-center before:justify-center \r
before:transition-all peer-checked:before:opacity-0 \r
after:content-['🌑'] after:absolute after:right-1 after:top-1/2 after:-translate-y-1/2 \r
after:w-4 after:h-4 after:flex after:items-center after:justify-center \r
after:opacity-0 peer-checked:after:opacity-100`})]})]}),u.jsx("button",{onClick:h,className:"md:hidden text-2xl text-gray-900 dark:text-white",children:d?u.jsx(zN,{}):u.jsx(PN,{})})]}),d&&u.jsxs("div",{className:"md:hidden flex flex-col px-4 py-3 items-start space-y-2 bg-white dark:bg-gray-800 w-full absolute left-0 top-full shadow-md transition-all duration-300 ease-in-out origin-top animate-slide-down mb-4 rounded-b-lg",children:[x.map(w=>u.jsx(xt,{to:w.path,onClick:()=>{f(!1),g()},className:`w-full px-2 py-1.5 rounded-md text-sm font-medium text-center shadow-sm transition-all hover:scale-105 ${e.pathname===w.path?"bg-[#FFB800] text-white":"bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white hover:bg-[#FFB800] hover:text-white"}`,children:w.name},w.name)),a&&u.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[u.jsx(xt,{to:"/mlm",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"MLM"}),u.jsx(xt,{to:"/tree",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Tree"}),u.jsx(xt,{to:"/profile",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Profile"}),u.jsx("button",{onClick:()=>{m(),f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-red-600 text-white hover:bg-red-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Logout"}),u.jsxs("div",{className:"text-xs text-gray-600 dark:text-gray-300 text-center mt-1",children:["Welcome, ",s?.firstName||"User"]})]}),!a&&u.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[u.jsx(xt,{to:"/login",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Login"}),u.jsx(xt,{to:"/signup",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Signup"})]}),u.jsx("div",{className:"py-2 w-full flex justify-center",children:u.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[u.jsx("input",{className:"sr-only peer",type:"checkbox",onChange:c,checked:l==="dark"}),u.jsx("div",{className:`w-12 h-5 rounded-full peer duration-300 bg-gray-200 dark:bg-gray-600 relative \r
before:content-['☀️'] before:absolute before:left-1 before:top-1/2 before:-translate-y-1/2 \r
before:w-4 before:h-4 before:flex before:items-center before:justify-center \r
before:transition-all peer-checked:before:opacity-0 \r
after:content-['🌑'] after:absolute after:right-1 after:top-1/2 after:-translate-y-1/2 \r
after:w-4 after:h-4 after:flex after:items-center after:justify-center \r
after:opacity-0 peer-checked:after:opacity-100`})]})})]})]})};function ou(e){return ot({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(e)}function D1(e){return ot({attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(e)}function M1(e){return ot({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function L1(e){return ot({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(e)}function P1(e){return ot({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},child:[]}]})(e)}function z1(e){return ot({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(e)}function BN(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},child:[]}]})(e)}function Ms(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function FN(e){return ot({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function VN(e){return ot({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(e)}function HN(e){return ot({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"},child:[]}]})(e)}function IN(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function pl(e){return ot({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function gl(e){return ot({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function qN(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},child:[]}]})(e)}function GN(e){return ot({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}function U1(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"},child:[]}]})(e)}function YN(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"},child:[]}]})(e)}function B1(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"},child:[]}]})(e)}function XN(e){return ot({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function ZN(e){return ot({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},child:[]}]})(e)}function WN(e){return ot({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M16 2L21 7V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918C3 2.44405 3.44495 2 3.9934 2H16ZM13 12V8H11V12H8L12 16L16 12H13Z"},child:[]}]})(e)}function F1(e){return ot({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10.4883 14.651L15.25 21H22.25L14.3917 10.5223L20.9308 3H18.2808L13.1643 8.88578L8.75 3H1.75L9.26086 13.0145L2.31915 21H4.96917L10.4883 14.651ZM16.25 19L5.75 5H7.75L18.25 19H16.25Z"},child:[]}]})(e)}const KN="/assets/taxi2-mmWUoSgX.png",$N="/assets/powered-BnbR5ccL.png",QN=()=>{const{theme:e}=Rl(),n=()=>{window.scrollTo({top:0,behavior:"smooth"})},a=[{icon:ou,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:M1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:F1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:z1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:P1,url:"https://t.me/aaaogointl"}];return u.jsxs("footer",{className:`px-6 py-10 w-[95%] mx-auto rounded-3xl transition-colors duration-300 ${e==="dark"?"bg-gray-900 text-gray-200":"bg-[#083A06] text-white"}`,children:[u.jsxs("div",{className:"mx-auto grid grid-cols-1 md:grid-cols-4 gap-10",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Contact"}),u.jsxs("a",{href:"tel:+19174260742",className:"flex items-center gap-2 mb-2 hover:text-yellow-400 transition-colors",children:[u.jsx(U1,{className:e==="dark"?"text-yellow-400":"text-green-400"}),"+1 (917) 426-0742"]}),u.jsxs("a",{href:"mailto:support@aaaogo.com",className:"flex items-center gap-2 mb-4 hover:text-yellow-400 transition-colors",children:[u.jsx(IN,{className:e==="dark"?"text-yellow-400":"text-green-400"}),"support@aaaogo.com"]}),u.jsx("h4",{className:"text-lg font-semibold mb-2",children:"Social Accounts"}),u.jsx("div",{className:"flex gap-3",children:a.map(({icon:s,url:l},c)=>u.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:`p-2 rounded-full transition-colors ${e==="dark"?"bg-gray-700 hover:bg-yellow-500":"bg-green-800 hover:bg-green-600"}`,children:u.jsx(s,{className:e==="dark"?"text-yellow-400":"text-white"})},c))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Quick Links"}),u.jsx("ul",{className:"space-y-2",children:[{name:"Home",path:"/"},{name:"About",path:"/about"},{name:"Services",path:"/services"},{name:"Team",path:"/team"},{name:"FAQS",path:"/faqs"},{name:"Contact",path:"/contact"}].map(s=>u.jsx("li",{children:u.jsx(k1,{to:s.path,onClick:n,className:({isActive:l})=>`transition-colors duration-200 ${l?e==="dark"?"text-yellow-400 font-semibold":"text-green-400 font-semibold":e==="dark"?"text-gray-200 hover:text-yellow-400":"text-white hover:text-green-400"}`,children:s.name})},s.name))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Support"}),u.jsx("ul",{className:"space-y-2",children:["Terms And Conditions","Privacy Policy","Refer A Friend","Become A Member"].map(s=>u.jsx("li",{className:`cursor-pointer transition-colors ${e==="dark"?"text-gray-200 hover:text-yellow-400":"text-white hover:text-green-400"}`,children:s},s))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Our Office"}),u.jsx("p",{children:"Office Address: Alabraj"}),u.jsx("p",{children:"Street Business Bay Dubai"}),u.jsx("p",{children:"UAE"})]})]}),u.jsx("div",{className:"relative w-full mt-10 h-16 overflow-hidden",children:u.jsx("img",{src:KN,alt:"taxi",className:"w-16 h-16 absolute top-0 animate-moveTaxiMobile sm:animate-moveTaxiDesktop"})}),u.jsx("div",{className:`border-t pt-4 text-center text-sm flex flex-col items-center gap-2 ${e==="dark"?"border-gray-700":"border-white"}`,children:u.jsxs("p",{className:`flex gap-2 items-center ${e==="dark"?"text-gray-200":"text-white"}`,children:["POWERED BY ",u.jsx("span",{className:"font-bold",children:"I AM AAAO"}),u.jsx("img",{src:$N,className:"w-5 rounded-full",alt:"powered"})]})})]})};var Zi={},tl={exports:{}},JN=tl.exports,Cx;function ek(){return Cx||(Cx=1,function(e,n){(function(a,s){s(n)})(JN,function(a){var s=function(){return s=Object.assign||function(c){for(var d,f=1,h=arguments.length;f<h;f++)for(var m in d=arguments[f])Object.prototype.hasOwnProperty.call(d,m)&&(c[m]=d[m]);return c},s.apply(this,arguments)},l=function(){function c(d,f,h){var m=this;this.endVal=f,this.options=h,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(g){m.startTime||(m.startTime=g);var x=g-m.startTime;m.remaining=m.duration-x,m.useEasing?m.countDown?m.frameVal=m.startVal-m.easingFn(x,0,m.startVal-m.endVal,m.duration):m.frameVal=m.easingFn(x,m.startVal,m.endVal-m.startVal,m.duration):m.frameVal=m.startVal+(m.endVal-m.startVal)*(x/m.duration);var w=m.countDown?m.frameVal<m.endVal:m.frameVal>m.endVal;m.frameVal=w?m.endVal:m.frameVal,m.frameVal=Number(m.frameVal.toFixed(m.options.decimalPlaces)),m.printValue(m.frameVal),x<m.duration?m.rAF=requestAnimationFrame(m.count):m.finalEndVal!==null?m.update(m.finalEndVal):m.options.onCompleteCallback&&m.options.onCompleteCallback()},this.formatNumber=function(g){var x,w,T,k,S=g<0?"-":"";x=Math.abs(g).toFixed(m.options.decimalPlaces);var A=(x+="").split(".");if(w=A[0],T=A.length>1?m.options.decimal+A[1]:"",m.options.useGrouping){k="";for(var E=3,C=0,L=0,I=w.length;L<I;++L)m.options.useIndianSeparators&&L===4&&(E=2,C=1),L!==0&&C%E==0&&(k=m.options.separator+k),C++,k=w[I-L-1]+k;w=k}return m.options.numerals&&m.options.numerals.length&&(w=w.replace(/[0-9]/g,function(N){return m.options.numerals[+N]}),T=T.replace(/[0-9]/g,function(N){return m.options.numerals[+N]})),S+m.options.prefix+w+T+m.options.suffix},this.easeOutExpo=function(g,x,w,T){return w*(1-Math.pow(2,-10*g/T))*1024/1023+x},this.options=s(s({},this.defaults),h),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el=typeof d=="string"?document.getElementById(d):d,f=f??this.parse(this.el.innerHTML),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(f),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,d):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return m.handleScroll(m)}),window.onscroll=function(){window.onScrollFns.forEach(function(g){return g()})},this.handleScroll(this)))}return c.prototype.handleScroll=function(d){if(d&&window&&!d.once){var f=window.innerHeight+window.scrollY,h=d.el.getBoundingClientRect(),m=h.top+window.pageYOffset,g=h.top+h.height+window.pageYOffset;g<f&&g>window.scrollY&&d.paused?(d.paused=!1,setTimeout(function(){return d.start()},d.options.scrollSpyDelay),d.options.scrollSpyOnce&&(d.once=!0)):(window.scrollY>g||m>f)&&!d.paused&&d.reset()}},c.prototype.determineDirectionAndSmartEasing=function(){var d=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>d;var f=d-this.startVal;if(Math.abs(f)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=d;var h=this.countDown?1:-1;this.endVal=d+h*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=d,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},c.prototype.start=function(d){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),d&&(this.options.onCompleteCallback=d),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},c.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},c.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},c.prototype.update=function(d){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(d),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},c.prototype.printValue=function(d){var f;if(this.el){var h=this.formattingFn(d);!((f=this.options.plugin)===null||f===void 0)&&f.render?this.options.plugin.render(this.el,h):this.el.tagName==="INPUT"?this.el.value=h:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=h:this.el.innerHTML=h}},c.prototype.ensureNumber=function(d){return typeof d=="number"&&!isNaN(d)},c.prototype.validateValue=function(d){var f=Number(d);return this.ensureNumber(f)?f:(this.error="[CountUp] invalid start or end value: ".concat(d),null)},c.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},c.prototype.parse=function(d){var f=function(x){return x.replace(/([.,' ])/g,"\\$1")},h=f(this.options.separator),m=f(this.options.decimal),g=d.replace(new RegExp(h,"g"),"").replace(new RegExp(m,"g"),".");return parseFloat(g)},c}();a.CountUp=l})}(tl,tl.exports)),tl.exports}var Dx;function tk(){if(Dx)return Zi;Dx=1,Object.defineProperty(Zi,"__esModule",{value:!0});var e=Cn(),n=ek();function a(H,M){var R=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(R!=null){var K,P,V,j,W=[],Z=!0,v=!1;try{if(V=(R=R.call(H)).next,M!==0)for(;!(Z=(K=V.call(R)).done)&&(W.push(K.value),W.length!==M);Z=!0);}catch(ue){v=!0,P=ue}finally{try{if(!Z&&R.return!=null&&(j=R.return(),Object(j)!==j))return}finally{if(v)throw P}}return W}}function s(H,M){var R=Object.keys(H);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);M&&(K=K.filter(function(P){return Object.getOwnPropertyDescriptor(H,P).enumerable})),R.push.apply(R,K)}return R}function l(H){for(var M=1;M<arguments.length;M++){var R=arguments[M]!=null?arguments[M]:{};M%2?s(Object(R),!0).forEach(function(K){f(H,K,R[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(K){Object.defineProperty(H,K,Object.getOwnPropertyDescriptor(R,K))})}return H}function c(H,M){if(typeof H!="object"||!H)return H;var R=H[Symbol.toPrimitive];if(R!==void 0){var K=R.call(H,M);if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(H)}function d(H){var M=c(H,"string");return typeof M=="symbol"?M:String(M)}function f(H,M,R){return M=d(M),M in H?Object.defineProperty(H,M,{value:R,enumerable:!0,configurable:!0,writable:!0}):H[M]=R,H}function h(){return h=Object.assign?Object.assign.bind():function(H){for(var M=1;M<arguments.length;M++){var R=arguments[M];for(var K in R)Object.prototype.hasOwnProperty.call(R,K)&&(H[K]=R[K])}return H},h.apply(this,arguments)}function m(H,M){if(H==null)return{};var R={},K=Object.keys(H),P,V;for(V=0;V<K.length;V++)P=K[V],!(M.indexOf(P)>=0)&&(R[P]=H[P]);return R}function g(H,M){if(H==null)return{};var R=m(H,M),K,P;if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(H);for(P=0;P<V.length;P++)K=V[P],!(M.indexOf(K)>=0)&&Object.prototype.propertyIsEnumerable.call(H,K)&&(R[K]=H[K])}return R}function x(H,M){return w(H)||a(H,M)||T(H,M)||S()}function w(H){if(Array.isArray(H))return H}function T(H,M){if(H){if(typeof H=="string")return k(H,M);var R=Object.prototype.toString.call(H).slice(8,-1);if(R==="Object"&&H.constructor&&(R=H.constructor.name),R==="Map"||R==="Set")return Array.from(H);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return k(H,M)}}function k(H,M){(M==null||M>H.length)&&(M=H.length);for(var R=0,K=new Array(M);R<M;R++)K[R]=H[R];return K}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?e.useLayoutEffect:e.useEffect;function E(H){var M=e.useRef(H);return A(function(){M.current=H}),e.useCallback(function(){for(var R=arguments.length,K=new Array(R),P=0;P<R;P++)K[P]=arguments[P];return M.current.apply(void 0,K)},[])}var C=function(M,R){var K=R.decimal,P=R.decimals,V=R.duration,j=R.easingFn,W=R.end,Z=R.formattingFn,v=R.numerals,ue=R.prefix,q=R.separator,b=R.start,O=R.suffix,U=R.useEasing,J=R.useGrouping,Q=R.useIndianSeparators,ne=R.enableScrollSpy,ie=R.scrollSpyDelay,ve=R.scrollSpyOnce,Se=R.plugin;return new n.CountUp(M,W,{startVal:b,duration:V,decimal:K,decimalPlaces:P,easingFn:j,formattingFn:Z,numerals:v,separator:q,prefix:ue,suffix:O,plugin:Se,useEasing:U,useIndianSeparators:Q,useGrouping:J,enableScrollSpy:ne,scrollSpyDelay:ie,scrollSpyOnce:ve})},L=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],I={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},N=function(M){var R=Object.fromEntries(Object.entries(M).filter(function(Re){var _=x(Re,2),de=_[1];return de!==void 0})),K=e.useMemo(function(){return l(l({},I),R)},[M]),P=K.ref,V=K.startOnMount,j=K.enableReinitialize,W=K.delay,Z=K.onEnd,v=K.onStart,ue=K.onPauseResume,q=K.onReset,b=K.onUpdate,O=g(K,L),U=e.useRef(),J=e.useRef(),Q=e.useRef(!1),ne=E(function(){return C(typeof P=="string"?P:P.current,O)}),ie=E(function(Re){var _=U.current;if(_&&!Re)return _;var de=ne();return U.current=de,de}),ve=E(function(){var Re=function(){return ie(!0).start(function(){Z?.({pauseResume:Se,reset:Te,start:Oe,update:Ne})})};W&&W>0?J.current=setTimeout(Re,W*1e3):Re(),v?.({pauseResume:Se,reset:Te,update:Ne})}),Se=E(function(){ie().pauseResume(),ue?.({reset:Te,start:Oe,update:Ne})}),Te=E(function(){ie().el&&(J.current&&clearTimeout(J.current),ie().reset(),q?.({pauseResume:Se,start:Oe,update:Ne}))}),Ne=E(function(Re){ie().update(Re),b?.({pauseResume:Se,reset:Te,start:Oe})}),Oe=E(function(){Te(),ve()}),Le=E(function(Re){V&&(Re&&Te(),ve())});return e.useEffect(function(){Q.current?j&&Le(!0):(Q.current=!0,Le())},[j,Q,Le,W,M.start,M.suffix,M.prefix,M.duration,M.separator,M.decimals,M.decimal,M.formattingFn]),e.useEffect(function(){return function(){Te()}},[Te]),{start:Oe,pauseResume:Se,reset:Te,update:Ne,getCountUp:ie}},z=["className","redraw","containerProps","children","style"],F=function(M){var R=M.className,K=M.redraw,P=M.containerProps,V=M.children,j=M.style,W=g(M,z),Z=e.useRef(null),v=e.useRef(!1),ue=N(l(l({},W),{},{ref:Z,startOnMount:typeof V!="function"||M.delay===0,enableReinitialize:!1})),q=ue.start,b=ue.reset,O=ue.update,U=ue.pauseResume,J=ue.getCountUp,Q=E(function(){q()}),ne=E(function(Se){M.preserveValue||b(),O(Se)}),ie=E(function(){if(typeof M.children=="function"&&!(Z.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}J()});e.useEffect(function(){ie()},[ie]),e.useEffect(function(){v.current&&ne(M.end)},[M.end,ne]);var ve=K&&M;return e.useEffect(function(){K&&v.current&&Q()},[Q,K,ve]),e.useEffect(function(){!K&&v.current&&Q()},[Q,K,M.start,M.suffix,M.prefix,M.duration,M.separator,M.decimals,M.decimal,M.className,M.formattingFn]),e.useEffect(function(){v.current=!0},[]),typeof V=="function"?V({countUpRef:Z,start:q,reset:b,update:O,pauseResume:U,getCountUp:J}):e.createElement("span",h({className:R,ref:Z,style:j},P),typeof M.start<"u"?J().formattingFn(M.start):"")};return Zi.default=F,Zi.useCountUp=N,Zi}var nk=tk();const Ls=Ic(nk);var Uh=new Map,tc=new WeakMap,Mx=0,rk=void 0;function ak(e){return e?(tc.has(e)||(Mx+=1,tc.set(e,Mx.toString())),tc.get(e)):"0"}function sk(e){return Object.keys(e).sort().filter(n=>e[n]!==void 0).map(n=>`${n}_${n==="root"?ak(e.root):e[n]}`).toString()}function ik(e){const n=sk(e);let a=Uh.get(n);if(!a){const s=new Map;let l;const c=new IntersectionObserver(d=>{d.forEach(f=>{var h;const m=f.isIntersecting&&l.some(g=>f.intersectionRatio>=g);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=m),(h=s.get(f.target))==null||h.forEach(g=>{g(m,f)})})},e);l=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:n,observer:c,elements:s},Uh.set(n,a)}return a}function lk(e,n,a={},s=rk){if(typeof window.IntersectionObserver>"u"&&s!==void 0){const h=e.getBoundingClientRect();return n(s,{isIntersecting:s,target:e,intersectionRatio:typeof a.threshold=="number"?a.threshold:0,time:0,boundingClientRect:h,intersectionRect:h,rootBounds:h}),()=>{}}const{id:l,observer:c,elements:d}=ik(a),f=d.get(e)||[];return d.has(e)||d.set(e,f),f.push(n),c.observe(e),function(){f.splice(f.indexOf(n),1),f.length===0&&(d.delete(e),c.unobserve(e)),d.size===0&&(c.disconnect(),Uh.delete(l))}}function V1({threshold:e,delay:n,trackVisibility:a,rootMargin:s,root:l,triggerOnce:c,skip:d,initialInView:f,fallbackInView:h,onChange:m}={}){var g;const[x,w]=X.useState(null),T=X.useRef(m),[k,S]=X.useState({inView:!!f,entry:void 0});T.current=m,X.useEffect(()=>{if(d||!x)return;let L;return L=lk(x,(I,N)=>{S({inView:I,entry:N}),T.current&&T.current(I,N),N.isIntersecting&&c&&L&&(L(),L=void 0)},{root:l,rootMargin:s,threshold:e,trackVisibility:a,delay:n},h),()=>{L&&L()}},[Array.isArray(e)?e.toString():e,x,l,s,c,d,a,h,n]);const A=(g=k.entry)==null?void 0:g.target,E=X.useRef(void 0);!x&&A&&!c&&!d&&E.current!==A&&(E.current=A,S({inView:!!f,entry:void 0}));const C=[w,k.inView,k.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}function nc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gf={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var Lx;function ok(){return Lx||(Lx=1,function(e,n){(function(a){e.exports=a()})(function(){return function a(s,l,c){function d(m,g){if(!l[m]){if(!s[m]){var x=typeof nc=="function"&&nc;if(!g&&x)return x(m,!0);if(f)return f(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var T=l[m]={exports:{}};s[m][0].call(T.exports,function(k){var S=s[m][1][k];return d(S||k)},T,T.exports,a,s,l,c)}return l[m].exports}for(var f=typeof nc=="function"&&nc,h=0;h<c.length;h++)d(c[h]);return d}({1:[function(a,s,l){var c=a("./utils"),d=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";l.encode=function(h){for(var m,g,x,w,T,k,S,A=[],E=0,C=h.length,L=C,I=c.getTypeOf(h)!=="string";E<h.length;)L=C-E,x=I?(m=h[E++],g=E<C?h[E++]:0,E<C?h[E++]:0):(m=h.charCodeAt(E++),g=E<C?h.charCodeAt(E++):0,E<C?h.charCodeAt(E++):0),w=m>>2,T=(3&m)<<4|g>>4,k=1<L?(15&g)<<2|x>>6:64,S=2<L?63&x:64,A.push(f.charAt(w)+f.charAt(T)+f.charAt(k)+f.charAt(S));return A.join("")},l.decode=function(h){var m,g,x,w,T,k,S=0,A=0,E="data:";if(h.substr(0,E.length)===E)throw new Error("Invalid base64 input, it looks like a data url.");var C,L=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===f.charAt(64)&&L--,h.charAt(h.length-2)===f.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(C=d.uint8array?new Uint8Array(0|L):new Array(0|L);S<h.length;)m=f.indexOf(h.charAt(S++))<<2|(w=f.indexOf(h.charAt(S++)))>>4,g=(15&w)<<4|(T=f.indexOf(h.charAt(S++)))>>2,x=(3&T)<<6|(k=f.indexOf(h.charAt(S++))),C[A++]=m,T!==64&&(C[A++]=g),k!==64&&(C[A++]=x);return C}},{"./support":30,"./utils":32}],2:[function(a,s,l){var c=a("./external"),d=a("./stream/DataWorker"),f=a("./stream/Crc32Probe"),h=a("./stream/DataLengthProbe");function m(g,x,w,T,k){this.compressedSize=g,this.uncompressedSize=x,this.crc32=w,this.compression=T,this.compressedContent=k}m.prototype={getContentWorker:function(){var g=new d(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),x=this;return g.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new d(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(g,x,w){return g.pipe(new f).pipe(new h("uncompressedSize")).pipe(x.compressWorker(w)).pipe(new h("compressedSize")).withStreamInfo("compression",x)},s.exports=m},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,s,l){var c=a("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},l.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,s,l){var c=a("./utils"),d=function(){for(var f,h=[],m=0;m<256;m++){f=m;for(var g=0;g<8;g++)f=1&f?3988292384^f>>>1:f>>>1;h[m]=f}return h}();s.exports=function(f,h){return f!==void 0&&f.length?c.getTypeOf(f)!=="string"?function(m,g,x,w){var T=d,k=w+x;m^=-1;for(var S=w;S<k;S++)m=m>>>8^T[255&(m^g[S])];return-1^m}(0|h,f,f.length,0):function(m,g,x,w){var T=d,k=w+x;m^=-1;for(var S=w;S<k;S++)m=m>>>8^T[255&(m^g.charCodeAt(S))];return-1^m}(0|h,f,f.length,0):0}},{"./utils":32}],5:[function(a,s,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(a,s,l){var c=null;c=typeof Promise<"u"?Promise:a("lie"),s.exports={Promise:c}},{lie:37}],7:[function(a,s,l){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",d=a("pako"),f=a("./utils"),h=a("./stream/GenericWorker"),m=c?"uint8array":"array";function g(x,w){h.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=w,this.meta={}}l.magic="\b\0",f.inherits(g,h),g.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(f.transformTo(m,x.data),!1)},g.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},g.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},g.prototype._createPako=function(){this._pako=new d[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(w){x.push({data:w,meta:x.meta})}},l.compressWorker=function(x){return new g("Deflate",x)},l.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,s,l){function c(T,k){var S,A="";for(S=0;S<k;S++)A+=String.fromCharCode(255&T),T>>>=8;return A}function d(T,k,S,A,E,C){var L,I,N=T.file,z=T.compression,F=C!==m.utf8encode,H=f.transformTo("string",C(N.name)),M=f.transformTo("string",m.utf8encode(N.name)),R=N.comment,K=f.transformTo("string",C(R)),P=f.transformTo("string",m.utf8encode(R)),V=M.length!==N.name.length,j=P.length!==R.length,W="",Z="",v="",ue=N.dir,q=N.date,b={crc32:0,compressedSize:0,uncompressedSize:0};k&&!S||(b.crc32=T.crc32,b.compressedSize=T.compressedSize,b.uncompressedSize=T.uncompressedSize);var O=0;k&&(O|=8),F||!V&&!j||(O|=2048);var U=0,J=0;ue&&(U|=16),E==="UNIX"?(J=798,U|=function(ne,ie){var ve=ne;return ne||(ve=ie?16893:33204),(65535&ve)<<16}(N.unixPermissions,ue)):(J=20,U|=function(ne){return 63&(ne||0)}(N.dosPermissions)),L=q.getUTCHours(),L<<=6,L|=q.getUTCMinutes(),L<<=5,L|=q.getUTCSeconds()/2,I=q.getUTCFullYear()-1980,I<<=4,I|=q.getUTCMonth()+1,I<<=5,I|=q.getUTCDate(),V&&(Z=c(1,1)+c(g(H),4)+M,W+="up"+c(Z.length,2)+Z),j&&(v=c(1,1)+c(g(K),4)+P,W+="uc"+c(v.length,2)+v);var Q="";return Q+=`
\0`,Q+=c(O,2),Q+=z.magic,Q+=c(L,2),Q+=c(I,2),Q+=c(b.crc32,4),Q+=c(b.compressedSize,4),Q+=c(b.uncompressedSize,4),Q+=c(H.length,2),Q+=c(W.length,2),{fileRecord:x.LOCAL_FILE_HEADER+Q+H+W,dirRecord:x.CENTRAL_FILE_HEADER+c(J,2)+Q+c(K.length,2)+"\0\0\0\0"+c(U,4)+c(A,4)+H+W+K}}var f=a("../utils"),h=a("../stream/GenericWorker"),m=a("../utf8"),g=a("../crc32"),x=a("../signature");function w(T,k,S,A){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=k,this.zipPlatform=S,this.encodeFileName=A,this.streamFiles=T,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(w,h),w.prototype.push=function(T){var k=T.meta.percent||0,S=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(T):(this.bytesWritten+=T.data.length,h.prototype.push.call(this,{data:T.data,meta:{currentFile:this.currentFile,percent:S?(k+100*(S-A-1))/S:100}}))},w.prototype.openedSource=function(T){this.currentSourceOffset=this.bytesWritten,this.currentFile=T.file.name;var k=this.streamFiles&&!T.file.dir;if(k){var S=d(T,k,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},w.prototype.closedSource=function(T){this.accumulate=!1;var k=this.streamFiles&&!T.file.dir,S=d(T,k,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),k)this.push({data:function(A){return x.DATA_DESCRIPTOR+c(A.crc32,4)+c(A.compressedSize,4)+c(A.uncompressedSize,4)}(T),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},w.prototype.flush=function(){for(var T=this.bytesWritten,k=0;k<this.dirRecords.length;k++)this.push({data:this.dirRecords[k],meta:{percent:100}});var S=this.bytesWritten-T,A=function(E,C,L,I,N){var z=f.transformTo("string",N(I));return x.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(E,2)+c(E,2)+c(C,4)+c(L,4)+c(z.length,2)+z}(this.dirRecords.length,S,T,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},w.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},w.prototype.registerPrevious=function(T){this._sources.push(T);var k=this;return T.on("data",function(S){k.processChunk(S)}),T.on("end",function(){k.closedSource(k.previous.streamInfo),k._sources.length?k.prepareNextSource():k.end()}),T.on("error",function(S){k.error(S)}),this},w.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},w.prototype.error=function(T){var k=this._sources;if(!h.prototype.error.call(this,T))return!1;for(var S=0;S<k.length;S++)try{k[S].error(T)}catch{}return!0},w.prototype.lock=function(){h.prototype.lock.call(this);for(var T=this._sources,k=0;k<T.length;k++)T[k].lock()},s.exports=w},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,s,l){var c=a("../compressions"),d=a("./ZipFileWorker");l.generateWorker=function(f,h,m){var g=new d(h.streamFiles,m,h.platform,h.encodeFileName),x=0;try{f.forEach(function(w,T){x++;var k=function(C,L){var I=C||L,N=c[I];if(!N)throw new Error(I+" is not a valid compression method !");return N}(T.options.compression,h.compression),S=T.options.compressionOptions||h.compressionOptions||{},A=T.dir,E=T.date;T._compressWorker(k,S).withStreamInfo("file",{name:w,dir:A,date:E,comment:T.comment||"",unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions}).pipe(g)}),g.entriesCount=x}catch(w){g.error(w)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,s,l){function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var d=new c;for(var f in this)typeof this[f]!="function"&&(d[f]=this[f]);return d}}(c.prototype=a("./object")).loadAsync=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.version="3.10.1",c.loadAsync=function(d,f){return new c().loadAsync(d,f)},c.external=a("./external"),s.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,s,l){var c=a("./utils"),d=a("./external"),f=a("./utf8"),h=a("./zipEntries"),m=a("./stream/Crc32Probe"),g=a("./nodejsUtils");function x(w){return new d.Promise(function(T,k){var S=w.decompressed.getContentWorker().pipe(new m);S.on("error",function(A){k(A)}).on("end",function(){S.streamInfo.crc32!==w.decompressed.crc32?k(new Error("Corrupted zip : CRC32 mismatch")):T()}).resume()})}s.exports=function(w,T){var k=this;return T=c.extend(T||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),g.isNode&&g.isStream(w)?d.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",w,!0,T.optimizedBinaryString,T.base64).then(function(S){var A=new h(T);return A.load(S),A}).then(function(S){var A=[d.Promise.resolve(S)],E=S.files;if(T.checkCRC32)for(var C=0;C<E.length;C++)A.push(x(E[C]));return d.Promise.all(A)}).then(function(S){for(var A=S.shift(),E=A.files,C=0;C<E.length;C++){var L=E[C],I=L.fileNameStr,N=c.resolve(L.fileNameStr);k.file(N,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:T.createFolders}),L.dir||(k.file(N).unsafeOriginalName=I)}return A.zipComment.length&&(k.comment=A.zipComment),k})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,s,l){var c=a("../utils"),d=a("../stream/GenericWorker");function f(h,m){d.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(m)}c.inherits(f,d),f.prototype._bindStream=function(h){var m=this;(this._stream=h).pause(),h.on("data",function(g){m.push({data:g,meta:{percent:0}})}).on("error",function(g){m.isPaused?this.generatedError=g:m.error(g)}).on("end",function(){m.isPaused?m._upstreamEnded=!0:m.end()})},f.prototype.pause=function(){return!!d.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=f},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,s,l){var c=a("readable-stream").Readable;function d(f,h,m){c.call(this,h),this._helper=f;var g=this;f.on("data",function(x,w){g.push(x)||g._helper.pause(),m&&m(w)}).on("error",function(x){g.emit("error",x)}).on("end",function(){g.push(null)})}a("../utils").inherits(d,c),d.prototype._read=function(){this._helper.resume()},s.exports=d},{"../utils":32,"readable-stream":16}],14:[function(a,s,l){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,d){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,d);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,d)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var d=new Buffer(c);return d.fill(0),d},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(a,s,l){function c(N,z,F){var H,M=f.getTypeOf(z),R=f.extend(F||{},g);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(N=E(N)),R.createFolders&&(H=A(N))&&C.call(this,H,!0);var K=M==="string"&&R.binary===!1&&R.base64===!1;F&&F.binary!==void 0||(R.binary=!K),(z instanceof x&&z.uncompressedSize===0||R.dir||!z||z.length===0)&&(R.base64=!1,R.binary=!0,z="",R.compression="STORE",M="string");var P=null;P=z instanceof x||z instanceof h?z:k.isNode&&k.isStream(z)?new S(N,z):f.prepareContent(N,z,R.binary,R.optimizedBinaryString,R.base64);var V=new w(N,P,R);this.files[N]=V}var d=a("./utf8"),f=a("./utils"),h=a("./stream/GenericWorker"),m=a("./stream/StreamHelper"),g=a("./defaults"),x=a("./compressedObject"),w=a("./zipObject"),T=a("./generate"),k=a("./nodejsUtils"),S=a("./nodejs/NodejsStreamInputAdapter"),A=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var z=N.lastIndexOf("/");return 0<z?N.substring(0,z):""},E=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},C=function(N,z){return z=z!==void 0?z:g.createFolders,N=E(N),this.files[N]||c.call(this,N,null,{dir:!0,createFolders:z}),this.files[N]};function L(N){return Object.prototype.toString.call(N)==="[object RegExp]"}var I={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(N){var z,F,H;for(z in this.files)H=this.files[z],(F=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&N(F,H)},filter:function(N){var z=[];return this.forEach(function(F,H){N(F,H)&&z.push(H)}),z},file:function(N,z,F){if(arguments.length!==1)return N=this.root+N,c.call(this,N,z,F),this;if(L(N)){var H=N;return this.filter(function(R,K){return!K.dir&&H.test(R)})}var M=this.files[this.root+N];return M&&!M.dir?M:null},folder:function(N){if(!N)return this;if(L(N))return this.filter(function(M,R){return R.dir&&N.test(M)});var z=this.root+N,F=C.call(this,z),H=this.clone();return H.root=F.name,H},remove:function(N){N=this.root+N;var z=this.files[N];if(z||(N.slice(-1)!=="/"&&(N+="/"),z=this.files[N]),z&&!z.dir)delete this.files[N];else for(var F=this.filter(function(M,R){return R.name.slice(0,N.length)===N}),H=0;H<F.length;H++)delete this.files[F[H].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var z,F={};try{if((F=f.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");f.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var H=F.comment||this.comment||"";z=T.generateWorker(this,F,H)}catch(M){(z=new h("error")).error(M)}return new m(z,F.type||"string",F.mimeType)},generateAsync:function(N,z){return this.generateInternalStream(N).accumulate(z)},generateNodeStream:function(N,z){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(z)}};s.exports=I},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,s,l){s.exports=a("stream")},{stream:void 0}],17:[function(a,s,l){var c=a("./DataReader");function d(f){c.call(this,f);for(var h=0;h<this.data.length;h++)f[h]=255&f[h]}a("../utils").inherits(d,c),d.prototype.byteAt=function(f){return this.data[this.zero+f]},d.prototype.lastIndexOfSignature=function(f){for(var h=f.charCodeAt(0),m=f.charCodeAt(1),g=f.charCodeAt(2),x=f.charCodeAt(3),w=this.length-4;0<=w;--w)if(this.data[w]===h&&this.data[w+1]===m&&this.data[w+2]===g&&this.data[w+3]===x)return w-this.zero;return-1},d.prototype.readAndCheckSignature=function(f){var h=f.charCodeAt(0),m=f.charCodeAt(1),g=f.charCodeAt(2),x=f.charCodeAt(3),w=this.readData(4);return h===w[0]&&m===w[1]&&g===w[2]&&x===w[3]},d.prototype.readData=function(f){if(this.checkOffset(f),f===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./DataReader":18}],18:[function(a,s,l){var c=a("../utils");function d(f){this.data=f,this.length=f.length,this.index=0,this.zero=0}d.prototype={checkOffset:function(f){this.checkIndex(this.index+f)},checkIndex:function(f){if(this.length<this.zero+f||f<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+f+"). Corrupted zip ?")},setIndex:function(f){this.checkIndex(f),this.index=f},skip:function(f){this.setIndex(this.index+f)},byteAt:function(){},readInt:function(f){var h,m=0;for(this.checkOffset(f),h=this.index+f-1;h>=this.index;h--)m=(m<<8)+this.byteAt(h);return this.index+=f,m},readString:function(f){return c.transformTo("string",this.readData(f))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var f=this.readInt(4);return new Date(Date.UTC(1980+(f>>25&127),(f>>21&15)-1,f>>16&31,f>>11&31,f>>5&63,(31&f)<<1))}},s.exports=d},{"../utils":32}],19:[function(a,s,l){var c=a("./Uint8ArrayReader");function d(f){c.call(this,f)}a("../utils").inherits(d,c),d.prototype.readData=function(f){this.checkOffset(f);var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,s,l){var c=a("./DataReader");function d(f){c.call(this,f)}a("../utils").inherits(d,c),d.prototype.byteAt=function(f){return this.data.charCodeAt(this.zero+f)},d.prototype.lastIndexOfSignature=function(f){return this.data.lastIndexOf(f)-this.zero},d.prototype.readAndCheckSignature=function(f){return f===this.readData(4)},d.prototype.readData=function(f){this.checkOffset(f);var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./DataReader":18}],21:[function(a,s,l){var c=a("./ArrayReader");function d(f){c.call(this,f)}a("../utils").inherits(d,c),d.prototype.readData=function(f){if(this.checkOffset(f),f===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./ArrayReader":17}],22:[function(a,s,l){var c=a("../utils"),d=a("../support"),f=a("./ArrayReader"),h=a("./StringReader"),m=a("./NodeBufferReader"),g=a("./Uint8ArrayReader");s.exports=function(x){var w=c.getTypeOf(x);return c.checkSupport(w),w!=="string"||d.uint8array?w==="nodebuffer"?new m(x):d.uint8array?new g(c.transformTo("uint8array",x)):new f(c.transformTo("array",x)):new h(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,s,l){l.LOCAL_FILE_HEADER="PK",l.CENTRAL_FILE_HEADER="PK",l.CENTRAL_DIRECTORY_END="PK",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,s,l){var c=a("./GenericWorker"),d=a("../utils");function f(h){c.call(this,"ConvertWorker to "+h),this.destType=h}d.inherits(f,c),f.prototype.processChunk=function(h){this.push({data:d.transformTo(this.destType,h.data),meta:h.meta})},s.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(a,s,l){var c=a("./GenericWorker"),d=a("../crc32");function f(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(f,c),f.prototype.processChunk=function(h){this.streamInfo.crc32=d(h.data,this.streamInfo.crc32||0),this.push(h)},s.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,s,l){var c=a("../utils"),d=a("./GenericWorker");function f(h){d.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}c.inherits(f,d),f.prototype.processChunk=function(h){if(h){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+h.data.length}d.prototype.processChunk.call(this,h)},s.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(a,s,l){var c=a("../utils"),d=a("./GenericWorker");function f(h){d.call(this,"DataWorker");var m=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(g){m.dataIsReady=!0,m.data=g,m.max=g&&g.length||0,m.type=c.getTypeOf(g),m.isPaused||m._tickAndRepeat()},function(g){m.error(g)})}c.inherits(f,d),f.prototype.cleanUp=function(){d.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,m=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,m);break;case"uint8array":h=this.data.subarray(this.index,m);break;case"array":case"nodebuffer":h=this.data.slice(this.index,m)}return this.index=m,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=f},{"../utils":32,"./GenericWorker":28}],28:[function(a,s,l){function c(d){this.name=d||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(d){this.emit("data",d)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(d){this.emit("error",d)}return!0},error:function(d){return!this.isFinished&&(this.isPaused?this.generatedError=d:(this.isFinished=!0,this.emit("error",d),this.previous&&this.previous.error(d),this.cleanUp()),!0)},on:function(d,f){return this._listeners[d].push(f),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(d,f){if(this._listeners[d])for(var h=0;h<this._listeners[d].length;h++)this._listeners[d][h].call(this,f)},pipe:function(d){return d.registerPrevious(this)},registerPrevious:function(d){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=d.streamInfo,this.mergeStreamInfo(),this.previous=d;var f=this;return d.on("data",function(h){f.processChunk(h)}),d.on("end",function(){f.end()}),d.on("error",function(h){f.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var d=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),d=!0),this.previous&&this.previous.resume(),!d},flush:function(){},processChunk:function(d){this.push(d)},withStreamInfo:function(d,f){return this.extraStreamInfo[d]=f,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var d in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,d)&&(this.streamInfo[d]=this.extraStreamInfo[d])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var d="Worker "+this.name;return this.previous?this.previous+" -> "+d:d}},s.exports=c},{}],29:[function(a,s,l){var c=a("../utils"),d=a("./ConvertWorker"),f=a("./GenericWorker"),h=a("../base64"),m=a("../support"),g=a("../external"),x=null;if(m.nodestream)try{x=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function w(k,S){return new g.Promise(function(A,E){var C=[],L=k._internalType,I=k._outputType,N=k._mimeType;k.on("data",function(z,F){C.push(z),S&&S(F)}).on("error",function(z){C=[],E(z)}).on("end",function(){try{var z=function(F,H,M){switch(F){case"blob":return c.newBlob(c.transformTo("arraybuffer",H),M);case"base64":return h.encode(H);default:return c.transformTo(F,H)}}(I,function(F,H){var M,R=0,K=null,P=0;for(M=0;M<H.length;M++)P+=H[M].length;switch(F){case"string":return H.join("");case"array":return Array.prototype.concat.apply([],H);case"uint8array":for(K=new Uint8Array(P),M=0;M<H.length;M++)K.set(H[M],R),R+=H[M].length;return K;case"nodebuffer":return Buffer.concat(H);default:throw new Error("concat : unsupported type '"+F+"'")}}(L,C),N);A(z)}catch(F){E(F)}C=[]}).resume()})}function T(k,S,A){var E=S;switch(S){case"blob":case"arraybuffer":E="uint8array";break;case"base64":E="string"}try{this._internalType=E,this._outputType=S,this._mimeType=A,c.checkSupport(E),this._worker=k.pipe(new d(E)),k.lock()}catch(C){this._worker=new f("error"),this._worker.error(C)}}T.prototype={accumulate:function(k){return w(this,k)},on:function(k,S){var A=this;return k==="data"?this._worker.on(k,function(E){S.call(A,E.data,E.meta)}):this._worker.on(k,function(){c.delay(S,arguments,A)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(k){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new x(this,{objectMode:this._outputType!=="nodebuffer"},k)}},s.exports=T},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,s,l){if(l.base64=!0,l.array=!0,l.string=!0,l.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l.nodebuffer=typeof Buffer<"u",l.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")l.blob=!1;else{var c=new ArrayBuffer(0);try{l.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);d.append(c),l.blob=d.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!a("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(a,s,l){for(var c=a("./utils"),d=a("./support"),f=a("./nodejsUtils"),h=a("./stream/GenericWorker"),m=new Array(256),g=0;g<256;g++)m[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;m[254]=m[254]=1;function x(){h.call(this,"utf-8 decode"),this.leftOver=null}function w(){h.call(this,"utf-8 encode")}l.utf8encode=function(T){return d.nodebuffer?f.newBufferFrom(T,"utf-8"):function(k){var S,A,E,C,L,I=k.length,N=0;for(C=0;C<I;C++)(64512&(A=k.charCodeAt(C)))==55296&&C+1<I&&(64512&(E=k.charCodeAt(C+1)))==56320&&(A=65536+(A-55296<<10)+(E-56320),C++),N+=A<128?1:A<2048?2:A<65536?3:4;for(S=d.uint8array?new Uint8Array(N):new Array(N),C=L=0;L<N;C++)(64512&(A=k.charCodeAt(C)))==55296&&C+1<I&&(64512&(E=k.charCodeAt(C+1)))==56320&&(A=65536+(A-55296<<10)+(E-56320),C++),A<128?S[L++]=A:(A<2048?S[L++]=192|A>>>6:(A<65536?S[L++]=224|A>>>12:(S[L++]=240|A>>>18,S[L++]=128|A>>>12&63),S[L++]=128|A>>>6&63),S[L++]=128|63&A);return S}(T)},l.utf8decode=function(T){return d.nodebuffer?c.transformTo("nodebuffer",T).toString("utf-8"):function(k){var S,A,E,C,L=k.length,I=new Array(2*L);for(S=A=0;S<L;)if((E=k[S++])<128)I[A++]=E;else if(4<(C=m[E]))I[A++]=65533,S+=C-1;else{for(E&=C===2?31:C===3?15:7;1<C&&S<L;)E=E<<6|63&k[S++],C--;1<C?I[A++]=65533:E<65536?I[A++]=E:(E-=65536,I[A++]=55296|E>>10&1023,I[A++]=56320|1023&E)}return I.length!==A&&(I.subarray?I=I.subarray(0,A):I.length=A),c.applyFromCharCode(I)}(T=c.transformTo(d.uint8array?"uint8array":"array",T))},c.inherits(x,h),x.prototype.processChunk=function(T){var k=c.transformTo(d.uint8array?"uint8array":"array",T.data);if(this.leftOver&&this.leftOver.length){if(d.uint8array){var S=k;(k=new Uint8Array(S.length+this.leftOver.length)).set(this.leftOver,0),k.set(S,this.leftOver.length)}else k=this.leftOver.concat(k);this.leftOver=null}var A=function(C,L){var I;for((L=L||C.length)>C.length&&(L=C.length),I=L-1;0<=I&&(192&C[I])==128;)I--;return I<0||I===0?L:I+m[C[I]]>L?I:L}(k),E=k;A!==k.length&&(d.uint8array?(E=k.subarray(0,A),this.leftOver=k.subarray(A,k.length)):(E=k.slice(0,A),this.leftOver=k.slice(A,k.length))),this.push({data:l.utf8decode(E),meta:T.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=x,c.inherits(w,h),w.prototype.processChunk=function(T){this.push({data:l.utf8encode(T.data),meta:T.meta})},l.Utf8EncodeWorker=w},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,s,l){var c=a("./support"),d=a("./base64"),f=a("./nodejsUtils"),h=a("./external");function m(S){return S}function g(S,A){for(var E=0;E<S.length;++E)A[E]=255&S.charCodeAt(E);return A}a("setimmediate"),l.newBlob=function(S,A){l.checkSupport("blob");try{return new Blob([S],{type:A})}catch{try{var E=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return E.append(S),E.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var x={stringifyByChunk:function(S,A,E){var C=[],L=0,I=S.length;if(I<=E)return String.fromCharCode.apply(null,S);for(;L<I;)A==="array"||A==="nodebuffer"?C.push(String.fromCharCode.apply(null,S.slice(L,Math.min(L+E,I)))):C.push(String.fromCharCode.apply(null,S.subarray(L,Math.min(L+E,I)))),L+=E;return C.join("")},stringifyByChar:function(S){for(var A="",E=0;E<S.length;E++)A+=String.fromCharCode(S[E]);return A},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,f.allocBuffer(1)).length===1}catch{return!1}}()}};function w(S){var A=65536,E=l.getTypeOf(S),C=!0;if(E==="uint8array"?C=x.applyCanBeUsed.uint8array:E==="nodebuffer"&&(C=x.applyCanBeUsed.nodebuffer),C)for(;1<A;)try{return x.stringifyByChunk(S,E,A)}catch{A=Math.floor(A/2)}return x.stringifyByChar(S)}function T(S,A){for(var E=0;E<S.length;E++)A[E]=S[E];return A}l.applyFromCharCode=w;var k={};k.string={string:m,array:function(S){return g(S,new Array(S.length))},arraybuffer:function(S){return k.string.uint8array(S).buffer},uint8array:function(S){return g(S,new Uint8Array(S.length))},nodebuffer:function(S){return g(S,f.allocBuffer(S.length))}},k.array={string:w,array:m,arraybuffer:function(S){return new Uint8Array(S).buffer},uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return f.newBufferFrom(S)}},k.arraybuffer={string:function(S){return w(new Uint8Array(S))},array:function(S){return T(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:m,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return f.newBufferFrom(new Uint8Array(S))}},k.uint8array={string:w,array:function(S){return T(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:m,nodebuffer:function(S){return f.newBufferFrom(S)}},k.nodebuffer={string:w,array:function(S){return T(S,new Array(S.length))},arraybuffer:function(S){return k.nodebuffer.uint8array(S).buffer},uint8array:function(S){return T(S,new Uint8Array(S.length))},nodebuffer:m},l.transformTo=function(S,A){if(A=A||"",!S)return A;l.checkSupport(S);var E=l.getTypeOf(A);return k[E][S](A)},l.resolve=function(S){for(var A=S.split("/"),E=[],C=0;C<A.length;C++){var L=A[C];L==="."||L===""&&C!==0&&C!==A.length-1||(L===".."?E.pop():E.push(L))}return E.join("/")},l.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":c.nodebuffer&&f.isBuffer(S)?"nodebuffer":c.uint8array&&S instanceof Uint8Array?"uint8array":c.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},l.checkSupport=function(S){if(!c[S.toLowerCase()])throw new Error(S+" is not supported by this platform")},l.MAX_VALUE_16BITS=65535,l.MAX_VALUE_32BITS=-1,l.pretty=function(S){var A,E,C="";for(E=0;E<(S||"").length;E++)C+="\\x"+((A=S.charCodeAt(E))<16?"0":"")+A.toString(16).toUpperCase();return C},l.delay=function(S,A,E){setImmediate(function(){S.apply(E||null,A||[])})},l.inherits=function(S,A){function E(){}E.prototype=A.prototype,S.prototype=new E},l.extend=function(){var S,A,E={};for(S=0;S<arguments.length;S++)for(A in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],A)&&E[A]===void 0&&(E[A]=arguments[S][A]);return E},l.prepareContent=function(S,A,E,C,L){return h.Promise.resolve(A).then(function(I){return c.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1)&&typeof FileReader<"u"?new h.Promise(function(N,z){var F=new FileReader;F.onload=function(H){N(H.target.result)},F.onerror=function(H){z(H.target.error)},F.readAsArrayBuffer(I)}):I}).then(function(I){var N=l.getTypeOf(I);return N?(N==="arraybuffer"?I=l.transformTo("uint8array",I):N==="string"&&(L?I=d.decode(I):E&&C!==!0&&(I=function(z){return g(z,c.uint8array?new Uint8Array(z.length):new Array(z.length))}(I))),I):h.Promise.reject(new Error("Can't read the data of '"+S+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(a,s,l){var c=a("./reader/readerFor"),d=a("./utils"),f=a("./signature"),h=a("./zipEntry"),m=a("./support");function g(x){this.files=[],this.loadOptions=x}g.prototype={checkSignature:function(x){if(!this.reader.readAndCheckSignature(x)){this.reader.index-=4;var w=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+d.pretty(w)+", expected "+d.pretty(x)+")")}},isSignature:function(x,w){var T=this.reader.index;this.reader.setIndex(x);var k=this.reader.readString(4)===w;return this.reader.setIndex(T),k},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var x=this.reader.readData(this.zipCommentLength),w=m.uint8array?"uint8array":"array",T=d.transformTo(w,x);this.zipComment=this.loadOptions.decodeFileName(T)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var x,w,T,k=this.zip64EndOfCentralSize-44;0<k;)x=this.reader.readInt(2),w=this.reader.readInt(4),T=this.reader.readData(w),this.zip64ExtensibleData[x]={id:x,length:w,value:T}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var x,w;for(x=0;x<this.files.length;x++)w=this.files[x],this.reader.setIndex(w.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),w.readLocalPart(this.reader),w.handleUTF8(),w.processAttributes()},readCentralDir:function(){var x;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(x=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(x);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var x=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(x<0)throw this.isSignature(0,f.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(x);var w=x;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===d.MAX_VALUE_16BITS||this.diskWithCentralDirStart===d.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===d.MAX_VALUE_16BITS||this.centralDirRecords===d.MAX_VALUE_16BITS||this.centralDirSize===d.MAX_VALUE_32BITS||this.centralDirOffset===d.MAX_VALUE_32BITS){if(this.zip64=!0,(x=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(x),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var T=this.centralDirOffset+this.centralDirSize;this.zip64&&(T+=20,T+=12+this.zip64EndOfCentralSize);var k=w-T;if(0<k)this.isSignature(w,f.CENTRAL_FILE_HEADER)||(this.reader.zero=k);else if(k<0)throw new Error("Corrupted zip: missing "+Math.abs(k)+" bytes.")},prepareReader:function(x){this.reader=c(x)},load:function(x){this.prepareReader(x),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(a,s,l){var c=a("./reader/readerFor"),d=a("./utils"),f=a("./compressedObject"),h=a("./crc32"),m=a("./utf8"),g=a("./compressions"),x=a("./support");function w(T,k){this.options=T,this.loadOptions=k}w.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(T){var k,S;if(T.skip(22),this.fileNameLength=T.readInt(2),S=T.readInt(2),this.fileName=T.readData(this.fileNameLength),T.skip(S),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((k=function(A){for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)&&g[E].magic===A)return g[E];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+d.pretty(this.compressionMethod)+" unknown (inner file : "+d.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,k,T.readData(this.compressedSize))},readCentralPart:function(T){this.versionMadeBy=T.readInt(2),T.skip(2),this.bitFlag=T.readInt(2),this.compressionMethod=T.readString(2),this.date=T.readDate(),this.crc32=T.readInt(4),this.compressedSize=T.readInt(4),this.uncompressedSize=T.readInt(4);var k=T.readInt(2);if(this.extraFieldsLength=T.readInt(2),this.fileCommentLength=T.readInt(2),this.diskNumberStart=T.readInt(2),this.internalFileAttributes=T.readInt(2),this.externalFileAttributes=T.readInt(4),this.localHeaderOffset=T.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");T.skip(k),this.readExtraFields(T),this.parseZIP64ExtraField(T),this.fileComment=T.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var T=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),T==0&&(this.dosPermissions=63&this.externalFileAttributes),T==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var T=c(this.extraFields[1].value);this.uncompressedSize===d.MAX_VALUE_32BITS&&(this.uncompressedSize=T.readInt(8)),this.compressedSize===d.MAX_VALUE_32BITS&&(this.compressedSize=T.readInt(8)),this.localHeaderOffset===d.MAX_VALUE_32BITS&&(this.localHeaderOffset=T.readInt(8)),this.diskNumberStart===d.MAX_VALUE_32BITS&&(this.diskNumberStart=T.readInt(4))}},readExtraFields:function(T){var k,S,A,E=T.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});T.index+4<E;)k=T.readInt(2),S=T.readInt(2),A=T.readData(S),this.extraFields[k]={id:k,length:S,value:A};T.setIndex(E)},handleUTF8:function(){var T=x.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=m.utf8decode(this.fileName),this.fileCommentStr=m.utf8decode(this.fileComment);else{var k=this.findExtraFieldUnicodePath();if(k!==null)this.fileNameStr=k;else{var S=d.transformTo(T,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var E=d.transformTo(T,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(E)}}},findExtraFieldUnicodePath:function(){var T=this.extraFields[28789];if(T){var k=c(T.value);return k.readInt(1)!==1||h(this.fileName)!==k.readInt(4)?null:m.utf8decode(k.readData(T.length-5))}return null},findExtraFieldUnicodeComment:function(){var T=this.extraFields[25461];if(T){var k=c(T.value);return k.readInt(1)!==1||h(this.fileComment)!==k.readInt(4)?null:m.utf8decode(k.readData(T.length-5))}return null}},s.exports=w},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,s,l){function c(k,S,A){this.name=k,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=S,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var d=a("./stream/StreamHelper"),f=a("./stream/DataWorker"),h=a("./utf8"),m=a("./compressedObject"),g=a("./stream/GenericWorker");c.prototype={internalStream:function(k){var S=null,A="string";try{if(!k)throw new Error("No output type specified.");var E=(A=k.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),S=this._decompressWorker();var C=!this._dataBinary;C&&!E&&(S=S.pipe(new h.Utf8EncodeWorker)),!C&&E&&(S=S.pipe(new h.Utf8DecodeWorker))}catch(L){(S=new g("error")).error(L)}return new d(S,A,"")},async:function(k,S){return this.internalStream(k).accumulate(S)},nodeStream:function(k,S){return this.internalStream(k||"nodebuffer").toNodejsStream(S)},_compressWorker:function(k,S){if(this._data instanceof m&&this._data.compression.magic===k.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new h.Utf8EncodeWorker)),m.createWorkerFrom(A,k,S)},_decompressWorker:function(){return this._data instanceof m?this._data.getContentWorker():this._data instanceof g?this._data:new f(this._data)}};for(var x=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],w=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},T=0;T<x.length;T++)c.prototype[x[T]]=w;s.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,s,l){(function(c){var d,f,h=c.MutationObserver||c.WebKitMutationObserver;if(h){var m=0,g=new h(k),x=c.document.createTextNode("");g.observe(x,{characterData:!0}),d=function(){x.data=m=++m%2}}else if(c.setImmediate||c.MessageChannel===void 0)d="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var S=c.document.createElement("script");S.onreadystatechange=function(){k(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},c.document.documentElement.appendChild(S)}:function(){setTimeout(k,0)};else{var w=new c.MessageChannel;w.port1.onmessage=k,d=function(){w.port2.postMessage(0)}}var T=[];function k(){var S,A;f=!0;for(var E=T.length;E;){for(A=T,T=[],S=-1;++S<E;)A[S]();E=T.length}f=!1}s.exports=function(S){T.push(S)!==1||f||d()}}).call(this,typeof _n<"u"?_n:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,s,l){var c=a("immediate");function d(){}var f={},h=["REJECTED"],m=["FULFILLED"],g=["PENDING"];function x(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,E!==d&&S(this,E)}function w(E,C,L){this.promise=E,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function T(E,C,L){c(function(){var I;try{I=C(L)}catch(N){return f.reject(E,N)}I===E?f.reject(E,new TypeError("Cannot resolve promise with itself")):f.resolve(E,I)})}function k(E){var C=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof C=="function")return function(){C.apply(E,arguments)}}function S(E,C){var L=!1;function I(F){L||(L=!0,f.reject(E,F))}function N(F){L||(L=!0,f.resolve(E,F))}var z=A(function(){C(N,I)});z.status==="error"&&I(z.value)}function A(E,C){var L={};try{L.value=E(C),L.status="success"}catch(I){L.status="error",L.value=I}return L}(s.exports=x).prototype.finally=function(E){if(typeof E!="function")return this;var C=this.constructor;return this.then(function(L){return C.resolve(E()).then(function(){return L})},function(L){return C.resolve(E()).then(function(){throw L})})},x.prototype.catch=function(E){return this.then(null,E)},x.prototype.then=function(E,C){if(typeof E!="function"&&this.state===m||typeof C!="function"&&this.state===h)return this;var L=new this.constructor(d);return this.state!==g?T(L,this.state===m?E:C,this.outcome):this.queue.push(new w(L,E,C)),L},w.prototype.callFulfilled=function(E){f.resolve(this.promise,E)},w.prototype.otherCallFulfilled=function(E){T(this.promise,this.onFulfilled,E)},w.prototype.callRejected=function(E){f.reject(this.promise,E)},w.prototype.otherCallRejected=function(E){T(this.promise,this.onRejected,E)},f.resolve=function(E,C){var L=A(k,C);if(L.status==="error")return f.reject(E,L.value);var I=L.value;if(I)S(E,I);else{E.state=m,E.outcome=C;for(var N=-1,z=E.queue.length;++N<z;)E.queue[N].callFulfilled(C)}return E},f.reject=function(E,C){E.state=h,E.outcome=C;for(var L=-1,I=E.queue.length;++L<I;)E.queue[L].callRejected(C);return E},x.resolve=function(E){return E instanceof this?E:f.resolve(new this(d),E)},x.reject=function(E){var C=new this(d);return f.reject(C,E)},x.all=function(E){var C=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=E.length,I=!1;if(!L)return this.resolve([]);for(var N=new Array(L),z=0,F=-1,H=new this(d);++F<L;)M(E[F],F);return H;function M(R,K){C.resolve(R).then(function(P){N[K]=P,++z!==L||I||(I=!0,f.resolve(H,N))},function(P){I||(I=!0,f.reject(H,P))})}},x.race=function(E){var C=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=E.length,I=!1;if(!L)return this.resolve([]);for(var N=-1,z=new this(d);++N<L;)F=E[N],C.resolve(F).then(function(H){I||(I=!0,f.resolve(z,H))},function(H){I||(I=!0,f.reject(z,H))});var F;return z}},{immediate:36}],38:[function(a,s,l){var c={};(0,a("./lib/utils/common").assign)(c,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),s.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,s,l){var c=a("./zlib/deflate"),d=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/messages"),m=a("./zlib/zstream"),g=Object.prototype.toString,x=0,w=-1,T=0,k=8;function S(E){if(!(this instanceof S))return new S(E);this.options=d.assign({level:w,method:k,chunkSize:16384,windowBits:15,memLevel:8,strategy:T,to:""},E||{});var C=this.options;C.raw&&0<C.windowBits?C.windowBits=-C.windowBits:C.gzip&&0<C.windowBits&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var L=c.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(L!==x)throw new Error(h[L]);if(C.header&&c.deflateSetHeader(this.strm,C.header),C.dictionary){var I;if(I=typeof C.dictionary=="string"?f.string2buf(C.dictionary):g.call(C.dictionary)==="[object ArrayBuffer]"?new Uint8Array(C.dictionary):C.dictionary,(L=c.deflateSetDictionary(this.strm,I))!==x)throw new Error(h[L]);this._dict_set=!0}}function A(E,C){var L=new S(C);if(L.push(E,!0),L.err)throw L.msg||h[L.err];return L.result}S.prototype.push=function(E,C){var L,I,N=this.strm,z=this.options.chunkSize;if(this.ended)return!1;I=C===~~C?C:C===!0?4:0,typeof E=="string"?N.input=f.string2buf(E):g.call(E)==="[object ArrayBuffer]"?N.input=new Uint8Array(E):N.input=E,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new d.Buf8(z),N.next_out=0,N.avail_out=z),(L=c.deflate(N,I))!==1&&L!==x)return this.onEnd(L),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||I!==4&&I!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(d.shrinkBuf(N.output,N.next_out))):this.onData(d.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&L!==1);return I===4?(L=c.deflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===x):I!==2||(this.onEnd(x),!(N.avail_out=0))},S.prototype.onData=function(E){this.chunks.push(E)},S.prototype.onEnd=function(E){E===x&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},l.Deflate=S,l.deflate=A,l.deflateRaw=function(E,C){return(C=C||{}).raw=!0,A(E,C)},l.gzip=function(E,C){return(C=C||{}).gzip=!0,A(E,C)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,s,l){var c=a("./zlib/inflate"),d=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/constants"),m=a("./zlib/messages"),g=a("./zlib/zstream"),x=a("./zlib/gzheader"),w=Object.prototype.toString;function T(S){if(!(this instanceof T))return new T(S);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},S||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||S&&S.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&(15&A.windowBits)==0&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var E=c.inflateInit2(this.strm,A.windowBits);if(E!==h.Z_OK)throw new Error(m[E]);this.header=new x,c.inflateGetHeader(this.strm,this.header)}function k(S,A){var E=new T(A);if(E.push(S,!0),E.err)throw E.msg||m[E.err];return E.result}T.prototype.push=function(S,A){var E,C,L,I,N,z,F=this.strm,H=this.options.chunkSize,M=this.options.dictionary,R=!1;if(this.ended)return!1;C=A===~~A?A:A===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof S=="string"?F.input=f.binstring2buf(S):w.call(S)==="[object ArrayBuffer]"?F.input=new Uint8Array(S):F.input=S,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new d.Buf8(H),F.next_out=0,F.avail_out=H),(E=c.inflate(F,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&M&&(z=typeof M=="string"?f.string2buf(M):w.call(M)==="[object ArrayBuffer]"?new Uint8Array(M):M,E=c.inflateSetDictionary(this.strm,z)),E===h.Z_BUF_ERROR&&R===!0&&(E=h.Z_OK,R=!1),E!==h.Z_STREAM_END&&E!==h.Z_OK)return this.onEnd(E),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&E!==h.Z_STREAM_END&&(F.avail_in!==0||C!==h.Z_FINISH&&C!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=f.utf8border(F.output,F.next_out),I=F.next_out-L,N=f.buf2string(F.output,L),F.next_out=I,F.avail_out=H-I,I&&d.arraySet(F.output,F.output,L,I,0),this.onData(N)):this.onData(d.shrinkBuf(F.output,F.next_out)))),F.avail_in===0&&F.avail_out===0&&(R=!0)}while((0<F.avail_in||F.avail_out===0)&&E!==h.Z_STREAM_END);return E===h.Z_STREAM_END&&(C=h.Z_FINISH),C===h.Z_FINISH?(E=c.inflateEnd(this.strm),this.onEnd(E),this.ended=!0,E===h.Z_OK):C!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(F.avail_out=0))},T.prototype.onData=function(S){this.chunks.push(S)},T.prototype.onEnd=function(S){S===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},l.Inflate=T,l.inflate=k,l.inflateRaw=function(S,A){return(A=A||{}).raw=!0,k(S,A)},l.ungzip=k},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,s,l){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";l.assign=function(h){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var g=m.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])}}return h},l.shrinkBuf=function(h,m){return h.length===m?h:h.subarray?h.subarray(0,m):(h.length=m,h)};var d={arraySet:function(h,m,g,x,w){if(m.subarray&&h.subarray)h.set(m.subarray(g,g+x),w);else for(var T=0;T<x;T++)h[w+T]=m[g+T]},flattenChunks:function(h){var m,g,x,w,T,k;for(m=x=0,g=h.length;m<g;m++)x+=h[m].length;for(k=new Uint8Array(x),m=w=0,g=h.length;m<g;m++)T=h[m],k.set(T,w),w+=T.length;return k}},f={arraySet:function(h,m,g,x,w){for(var T=0;T<x;T++)h[w+T]=m[g+T]},flattenChunks:function(h){return[].concat.apply([],h)}};l.setTyped=function(h){h?(l.Buf8=Uint8Array,l.Buf16=Uint16Array,l.Buf32=Int32Array,l.assign(l,d)):(l.Buf8=Array,l.Buf16=Array,l.Buf32=Array,l.assign(l,f))},l.setTyped(c)},{}],42:[function(a,s,l){var c=a("./common"),d=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch{d=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{f=!1}for(var h=new c.Buf8(256),m=0;m<256;m++)h[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;function g(x,w){if(w<65537&&(x.subarray&&f||!x.subarray&&d))return String.fromCharCode.apply(null,c.shrinkBuf(x,w));for(var T="",k=0;k<w;k++)T+=String.fromCharCode(x[k]);return T}h[254]=h[254]=1,l.string2buf=function(x){var w,T,k,S,A,E=x.length,C=0;for(S=0;S<E;S++)(64512&(T=x.charCodeAt(S)))==55296&&S+1<E&&(64512&(k=x.charCodeAt(S+1)))==56320&&(T=65536+(T-55296<<10)+(k-56320),S++),C+=T<128?1:T<2048?2:T<65536?3:4;for(w=new c.Buf8(C),S=A=0;A<C;S++)(64512&(T=x.charCodeAt(S)))==55296&&S+1<E&&(64512&(k=x.charCodeAt(S+1)))==56320&&(T=65536+(T-55296<<10)+(k-56320),S++),T<128?w[A++]=T:(T<2048?w[A++]=192|T>>>6:(T<65536?w[A++]=224|T>>>12:(w[A++]=240|T>>>18,w[A++]=128|T>>>12&63),w[A++]=128|T>>>6&63),w[A++]=128|63&T);return w},l.buf2binstring=function(x){return g(x,x.length)},l.binstring2buf=function(x){for(var w=new c.Buf8(x.length),T=0,k=w.length;T<k;T++)w[T]=x.charCodeAt(T);return w},l.buf2string=function(x,w){var T,k,S,A,E=w||x.length,C=new Array(2*E);for(T=k=0;T<E;)if((S=x[T++])<128)C[k++]=S;else if(4<(A=h[S]))C[k++]=65533,T+=A-1;else{for(S&=A===2?31:A===3?15:7;1<A&&T<E;)S=S<<6|63&x[T++],A--;1<A?C[k++]=65533:S<65536?C[k++]=S:(S-=65536,C[k++]=55296|S>>10&1023,C[k++]=56320|1023&S)}return g(C,k)},l.utf8border=function(x,w){var T;for((w=w||x.length)>x.length&&(w=x.length),T=w-1;0<=T&&(192&x[T])==128;)T--;return T<0||T===0?w:T+h[x[T]]>w?T:w}},{"./common":41}],43:[function(a,s,l){s.exports=function(c,d,f,h){for(var m=65535&c|0,g=c>>>16&65535|0,x=0;f!==0;){for(f-=x=2e3<f?2e3:f;g=g+(m=m+d[h++]|0)|0,--x;);m%=65521,g%=65521}return m|g<<16|0}},{}],44:[function(a,s,l){s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(a,s,l){var c=function(){for(var d,f=[],h=0;h<256;h++){d=h;for(var m=0;m<8;m++)d=1&d?3988292384^d>>>1:d>>>1;f[h]=d}return f}();s.exports=function(d,f,h,m){var g=c,x=m+h;d^=-1;for(var w=m;w<x;w++)d=d>>>8^g[255&(d^f[w])];return-1^d}},{}],46:[function(a,s,l){var c,d=a("../utils/common"),f=a("./trees"),h=a("./adler32"),m=a("./crc32"),g=a("./messages"),x=0,w=4,T=0,k=-2,S=-1,A=4,E=2,C=8,L=9,I=286,N=30,z=19,F=2*I+1,H=15,M=3,R=258,K=R+M+1,P=42,V=113,j=1,W=2,Z=3,v=4;function ue(_,de){return _.msg=g[de],de}function q(_){return(_<<1)-(4<_?9:0)}function b(_){for(var de=_.length;0<=--de;)_[de]=0}function O(_){var de=_.state,ce=de.pending;ce>_.avail_out&&(ce=_.avail_out),ce!==0&&(d.arraySet(_.output,de.pending_buf,de.pending_out,ce,_.next_out),_.next_out+=ce,de.pending_out+=ce,_.total_out+=ce,_.avail_out-=ce,de.pending-=ce,de.pending===0&&(de.pending_out=0))}function U(_,de){f._tr_flush_block(_,0<=_.block_start?_.block_start:-1,_.strstart-_.block_start,de),_.block_start=_.strstart,O(_.strm)}function J(_,de){_.pending_buf[_.pending++]=de}function Q(_,de){_.pending_buf[_.pending++]=de>>>8&255,_.pending_buf[_.pending++]=255&de}function ne(_,de){var ce,G,Y=_.max_chain_length,te=_.strstart,pe=_.prev_length,ye=_.nice_match,le=_.strstart>_.w_size-K?_.strstart-(_.w_size-K):0,je=_.window,Ee=_.w_mask,ee=_.prev,xe=_.strstart+R,ke=je[te+pe-1],Ce=je[te+pe];_.prev_length>=_.good_match&&(Y>>=2),ye>_.lookahead&&(ye=_.lookahead);do if(je[(ce=de)+pe]===Ce&&je[ce+pe-1]===ke&&je[ce]===je[te]&&je[++ce]===je[te+1]){te+=2,ce++;do;while(je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&te<xe);if(G=R-(xe-te),te=xe-R,pe<G){if(_.match_start=de,ye<=(pe=G))break;ke=je[te+pe-1],Ce=je[te+pe]}}while((de=ee[de&Ee])>le&&--Y!=0);return pe<=_.lookahead?pe:_.lookahead}function ie(_){var de,ce,G,Y,te,pe,ye,le,je,Ee,ee=_.w_size;do{if(Y=_.window_size-_.lookahead-_.strstart,_.strstart>=ee+(ee-K)){for(d.arraySet(_.window,_.window,ee,ee,0),_.match_start-=ee,_.strstart-=ee,_.block_start-=ee,de=ce=_.hash_size;G=_.head[--de],_.head[de]=ee<=G?G-ee:0,--ce;);for(de=ce=ee;G=_.prev[--de],_.prev[de]=ee<=G?G-ee:0,--ce;);Y+=ee}if(_.strm.avail_in===0)break;if(pe=_.strm,ye=_.window,le=_.strstart+_.lookahead,je=Y,Ee=void 0,Ee=pe.avail_in,je<Ee&&(Ee=je),ce=Ee===0?0:(pe.avail_in-=Ee,d.arraySet(ye,pe.input,pe.next_in,Ee,le),pe.state.wrap===1?pe.adler=h(pe.adler,ye,Ee,le):pe.state.wrap===2&&(pe.adler=m(pe.adler,ye,Ee,le)),pe.next_in+=Ee,pe.total_in+=Ee,Ee),_.lookahead+=ce,_.lookahead+_.insert>=M)for(te=_.strstart-_.insert,_.ins_h=_.window[te],_.ins_h=(_.ins_h<<_.hash_shift^_.window[te+1])&_.hash_mask;_.insert&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[te+M-1])&_.hash_mask,_.prev[te&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=te,te++,_.insert--,!(_.lookahead+_.insert<M)););}while(_.lookahead<K&&_.strm.avail_in!==0)}function ve(_,de){for(var ce,G;;){if(_.lookahead<K){if(ie(_),_.lookahead<K&&de===x)return j;if(_.lookahead===0)break}if(ce=0,_.lookahead>=M&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),ce!==0&&_.strstart-ce<=_.w_size-K&&(_.match_length=ne(_,ce)),_.match_length>=M)if(G=f._tr_tally(_,_.strstart-_.match_start,_.match_length-M),_.lookahead-=_.match_length,_.match_length<=_.max_lazy_match&&_.lookahead>=M){for(_.match_length--;_.strstart++,_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart,--_.match_length!=0;);_.strstart++}else _.strstart+=_.match_length,_.match_length=0,_.ins_h=_.window[_.strstart],_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+1])&_.hash_mask;else G=f._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++;if(G&&(U(_,!1),_.strm.avail_out===0))return j}return _.insert=_.strstart<M-1?_.strstart:M-1,de===w?(U(_,!0),_.strm.avail_out===0?Z:v):_.last_lit&&(U(_,!1),_.strm.avail_out===0)?j:W}function Se(_,de){for(var ce,G,Y;;){if(_.lookahead<K){if(ie(_),_.lookahead<K&&de===x)return j;if(_.lookahead===0)break}if(ce=0,_.lookahead>=M&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),_.prev_length=_.match_length,_.prev_match=_.match_start,_.match_length=M-1,ce!==0&&_.prev_length<_.max_lazy_match&&_.strstart-ce<=_.w_size-K&&(_.match_length=ne(_,ce),_.match_length<=5&&(_.strategy===1||_.match_length===M&&4096<_.strstart-_.match_start)&&(_.match_length=M-1)),_.prev_length>=M&&_.match_length<=_.prev_length){for(Y=_.strstart+_.lookahead-M,G=f._tr_tally(_,_.strstart-1-_.prev_match,_.prev_length-M),_.lookahead-=_.prev_length-1,_.prev_length-=2;++_.strstart<=Y&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),--_.prev_length!=0;);if(_.match_available=0,_.match_length=M-1,_.strstart++,G&&(U(_,!1),_.strm.avail_out===0))return j}else if(_.match_available){if((G=f._tr_tally(_,0,_.window[_.strstart-1]))&&U(_,!1),_.strstart++,_.lookahead--,_.strm.avail_out===0)return j}else _.match_available=1,_.strstart++,_.lookahead--}return _.match_available&&(G=f._tr_tally(_,0,_.window[_.strstart-1]),_.match_available=0),_.insert=_.strstart<M-1?_.strstart:M-1,de===w?(U(_,!0),_.strm.avail_out===0?Z:v):_.last_lit&&(U(_,!1),_.strm.avail_out===0)?j:W}function Te(_,de,ce,G,Y){this.good_length=_,this.max_lazy=de,this.nice_length=ce,this.max_chain=G,this.func=Y}function Ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new d.Buf16(2*F),this.dyn_dtree=new d.Buf16(2*(2*N+1)),this.bl_tree=new d.Buf16(2*(2*z+1)),b(this.dyn_ltree),b(this.dyn_dtree),b(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(H+1),this.heap=new d.Buf16(2*I+1),b(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*I+1),b(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Oe(_){var de;return _&&_.state?(_.total_in=_.total_out=0,_.data_type=E,(de=_.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?P:V,_.adler=de.wrap===2?0:1,de.last_flush=x,f._tr_init(de),T):ue(_,k)}function Le(_){var de=Oe(_);return de===T&&function(ce){ce.window_size=2*ce.w_size,b(ce.head),ce.max_lazy_match=c[ce.level].max_lazy,ce.good_match=c[ce.level].good_length,ce.nice_match=c[ce.level].nice_length,ce.max_chain_length=c[ce.level].max_chain,ce.strstart=0,ce.block_start=0,ce.lookahead=0,ce.insert=0,ce.match_length=ce.prev_length=M-1,ce.match_available=0,ce.ins_h=0}(_.state),de}function Re(_,de,ce,G,Y,te){if(!_)return k;var pe=1;if(de===S&&(de=6),G<0?(pe=0,G=-G):15<G&&(pe=2,G-=16),Y<1||L<Y||ce!==C||G<8||15<G||de<0||9<de||te<0||A<te)return ue(_,k);G===8&&(G=9);var ye=new Ne;return(_.state=ye).strm=_,ye.wrap=pe,ye.gzhead=null,ye.w_bits=G,ye.w_size=1<<ye.w_bits,ye.w_mask=ye.w_size-1,ye.hash_bits=Y+7,ye.hash_size=1<<ye.hash_bits,ye.hash_mask=ye.hash_size-1,ye.hash_shift=~~((ye.hash_bits+M-1)/M),ye.window=new d.Buf8(2*ye.w_size),ye.head=new d.Buf16(ye.hash_size),ye.prev=new d.Buf16(ye.w_size),ye.lit_bufsize=1<<Y+6,ye.pending_buf_size=4*ye.lit_bufsize,ye.pending_buf=new d.Buf8(ye.pending_buf_size),ye.d_buf=1*ye.lit_bufsize,ye.l_buf=3*ye.lit_bufsize,ye.level=de,ye.strategy=te,ye.method=ce,Le(_)}c=[new Te(0,0,0,0,function(_,de){var ce=65535;for(ce>_.pending_buf_size-5&&(ce=_.pending_buf_size-5);;){if(_.lookahead<=1){if(ie(_),_.lookahead===0&&de===x)return j;if(_.lookahead===0)break}_.strstart+=_.lookahead,_.lookahead=0;var G=_.block_start+ce;if((_.strstart===0||_.strstart>=G)&&(_.lookahead=_.strstart-G,_.strstart=G,U(_,!1),_.strm.avail_out===0)||_.strstart-_.block_start>=_.w_size-K&&(U(_,!1),_.strm.avail_out===0))return j}return _.insert=0,de===w?(U(_,!0),_.strm.avail_out===0?Z:v):(_.strstart>_.block_start&&(U(_,!1),_.strm.avail_out),j)}),new Te(4,4,8,4,ve),new Te(4,5,16,8,ve),new Te(4,6,32,32,ve),new Te(4,4,16,16,Se),new Te(8,16,32,32,Se),new Te(8,16,128,128,Se),new Te(8,32,128,256,Se),new Te(32,128,258,1024,Se),new Te(32,258,258,4096,Se)],l.deflateInit=function(_,de){return Re(_,de,C,15,8,0)},l.deflateInit2=Re,l.deflateReset=Le,l.deflateResetKeep=Oe,l.deflateSetHeader=function(_,de){return _&&_.state?_.state.wrap!==2?k:(_.state.gzhead=de,T):k},l.deflate=function(_,de){var ce,G,Y,te;if(!_||!_.state||5<de||de<0)return _?ue(_,k):k;if(G=_.state,!_.output||!_.input&&_.avail_in!==0||G.status===666&&de!==w)return ue(_,_.avail_out===0?-5:k);if(G.strm=_,ce=G.last_flush,G.last_flush=de,G.status===P)if(G.wrap===2)_.adler=0,J(G,31),J(G,139),J(G,8),G.gzhead?(J(G,(G.gzhead.text?1:0)+(G.gzhead.hcrc?2:0)+(G.gzhead.extra?4:0)+(G.gzhead.name?8:0)+(G.gzhead.comment?16:0)),J(G,255&G.gzhead.time),J(G,G.gzhead.time>>8&255),J(G,G.gzhead.time>>16&255),J(G,G.gzhead.time>>24&255),J(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),J(G,255&G.gzhead.os),G.gzhead.extra&&G.gzhead.extra.length&&(J(G,255&G.gzhead.extra.length),J(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(_.adler=m(_.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(J(G,0),J(G,0),J(G,0),J(G,0),J(G,0),J(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),J(G,3),G.status=V);else{var pe=C+(G.w_bits-8<<4)<<8;pe|=(2<=G.strategy||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6,G.strstart!==0&&(pe|=32),pe+=31-pe%31,G.status=V,Q(G,pe),G.strstart!==0&&(Q(G,_.adler>>>16),Q(G,65535&_.adler)),_.adler=1}if(G.status===69)if(G.gzhead.extra){for(Y=G.pending;G.gzindex<(65535&G.gzhead.extra.length)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>Y&&(_.adler=m(_.adler,G.pending_buf,G.pending-Y,Y)),O(_),Y=G.pending,G.pending!==G.pending_buf_size));)J(G,255&G.gzhead.extra[G.gzindex]),G.gzindex++;G.gzhead.hcrc&&G.pending>Y&&(_.adler=m(_.adler,G.pending_buf,G.pending-Y,Y)),G.gzindex===G.gzhead.extra.length&&(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){Y=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>Y&&(_.adler=m(_.adler,G.pending_buf,G.pending-Y,Y)),O(_),Y=G.pending,G.pending===G.pending_buf_size)){te=1;break}te=G.gzindex<G.gzhead.name.length?255&G.gzhead.name.charCodeAt(G.gzindex++):0,J(G,te)}while(te!==0);G.gzhead.hcrc&&G.pending>Y&&(_.adler=m(_.adler,G.pending_buf,G.pending-Y,Y)),te===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===91)if(G.gzhead.comment){Y=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>Y&&(_.adler=m(_.adler,G.pending_buf,G.pending-Y,Y)),O(_),Y=G.pending,G.pending===G.pending_buf_size)){te=1;break}te=G.gzindex<G.gzhead.comment.length?255&G.gzhead.comment.charCodeAt(G.gzindex++):0,J(G,te)}while(te!==0);G.gzhead.hcrc&&G.pending>Y&&(_.adler=m(_.adler,G.pending_buf,G.pending-Y,Y)),te===0&&(G.status=103)}else G.status=103;if(G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&O(_),G.pending+2<=G.pending_buf_size&&(J(G,255&_.adler),J(G,_.adler>>8&255),_.adler=0,G.status=V)):G.status=V),G.pending!==0){if(O(_),_.avail_out===0)return G.last_flush=-1,T}else if(_.avail_in===0&&q(de)<=q(ce)&&de!==w)return ue(_,-5);if(G.status===666&&_.avail_in!==0)return ue(_,-5);if(_.avail_in!==0||G.lookahead!==0||de!==x&&G.status!==666){var ye=G.strategy===2?function(le,je){for(var Ee;;){if(le.lookahead===0&&(ie(le),le.lookahead===0)){if(je===x)return j;break}if(le.match_length=0,Ee=f._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++,Ee&&(U(le,!1),le.strm.avail_out===0))return j}return le.insert=0,je===w?(U(le,!0),le.strm.avail_out===0?Z:v):le.last_lit&&(U(le,!1),le.strm.avail_out===0)?j:W}(G,de):G.strategy===3?function(le,je){for(var Ee,ee,xe,ke,Ce=le.window;;){if(le.lookahead<=R){if(ie(le),le.lookahead<=R&&je===x)return j;if(le.lookahead===0)break}if(le.match_length=0,le.lookahead>=M&&0<le.strstart&&(ee=Ce[xe=le.strstart-1])===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]){ke=le.strstart+R;do;while(ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&xe<ke);le.match_length=R-(ke-xe),le.match_length>le.lookahead&&(le.match_length=le.lookahead)}if(le.match_length>=M?(Ee=f._tr_tally(le,1,le.match_length-M),le.lookahead-=le.match_length,le.strstart+=le.match_length,le.match_length=0):(Ee=f._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++),Ee&&(U(le,!1),le.strm.avail_out===0))return j}return le.insert=0,je===w?(U(le,!0),le.strm.avail_out===0?Z:v):le.last_lit&&(U(le,!1),le.strm.avail_out===0)?j:W}(G,de):c[G.level].func(G,de);if(ye!==Z&&ye!==v||(G.status=666),ye===j||ye===Z)return _.avail_out===0&&(G.last_flush=-1),T;if(ye===W&&(de===1?f._tr_align(G):de!==5&&(f._tr_stored_block(G,0,0,!1),de===3&&(b(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),O(_),_.avail_out===0))return G.last_flush=-1,T}return de!==w?T:G.wrap<=0?1:(G.wrap===2?(J(G,255&_.adler),J(G,_.adler>>8&255),J(G,_.adler>>16&255),J(G,_.adler>>24&255),J(G,255&_.total_in),J(G,_.total_in>>8&255),J(G,_.total_in>>16&255),J(G,_.total_in>>24&255)):(Q(G,_.adler>>>16),Q(G,65535&_.adler)),O(_),0<G.wrap&&(G.wrap=-G.wrap),G.pending!==0?T:1)},l.deflateEnd=function(_){var de;return _&&_.state?(de=_.state.status)!==P&&de!==69&&de!==73&&de!==91&&de!==103&&de!==V&&de!==666?ue(_,k):(_.state=null,de===V?ue(_,-3):T):k},l.deflateSetDictionary=function(_,de){var ce,G,Y,te,pe,ye,le,je,Ee=de.length;if(!_||!_.state||(te=(ce=_.state).wrap)===2||te===1&&ce.status!==P||ce.lookahead)return k;for(te===1&&(_.adler=h(_.adler,de,Ee,0)),ce.wrap=0,Ee>=ce.w_size&&(te===0&&(b(ce.head),ce.strstart=0,ce.block_start=0,ce.insert=0),je=new d.Buf8(ce.w_size),d.arraySet(je,de,Ee-ce.w_size,ce.w_size,0),de=je,Ee=ce.w_size),pe=_.avail_in,ye=_.next_in,le=_.input,_.avail_in=Ee,_.next_in=0,_.input=de,ie(ce);ce.lookahead>=M;){for(G=ce.strstart,Y=ce.lookahead-(M-1);ce.ins_h=(ce.ins_h<<ce.hash_shift^ce.window[G+M-1])&ce.hash_mask,ce.prev[G&ce.w_mask]=ce.head[ce.ins_h],ce.head[ce.ins_h]=G,G++,--Y;);ce.strstart=G,ce.lookahead=M-1,ie(ce)}return ce.strstart+=ce.lookahead,ce.block_start=ce.strstart,ce.insert=ce.lookahead,ce.lookahead=0,ce.match_length=ce.prev_length=M-1,ce.match_available=0,_.next_in=ye,_.input=le,_.avail_in=pe,ce.wrap=te,T},l.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,s,l){s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(a,s,l){s.exports=function(c,d){var f,h,m,g,x,w,T,k,S,A,E,C,L,I,N,z,F,H,M,R,K,P,V,j,W;f=c.state,h=c.next_in,j=c.input,m=h+(c.avail_in-5),g=c.next_out,W=c.output,x=g-(d-c.avail_out),w=g+(c.avail_out-257),T=f.dmax,k=f.wsize,S=f.whave,A=f.wnext,E=f.window,C=f.hold,L=f.bits,I=f.lencode,N=f.distcode,z=(1<<f.lenbits)-1,F=(1<<f.distbits)-1;e:do{L<15&&(C+=j[h++]<<L,L+=8,C+=j[h++]<<L,L+=8),H=I[C&z];t:for(;;){if(C>>>=M=H>>>24,L-=M,(M=H>>>16&255)===0)W[g++]=65535&H;else{if(!(16&M)){if((64&M)==0){H=I[(65535&H)+(C&(1<<M)-1)];continue t}if(32&M){f.mode=12;break e}c.msg="invalid literal/length code",f.mode=30;break e}R=65535&H,(M&=15)&&(L<M&&(C+=j[h++]<<L,L+=8),R+=C&(1<<M)-1,C>>>=M,L-=M),L<15&&(C+=j[h++]<<L,L+=8,C+=j[h++]<<L,L+=8),H=N[C&F];n:for(;;){if(C>>>=M=H>>>24,L-=M,!(16&(M=H>>>16&255))){if((64&M)==0){H=N[(65535&H)+(C&(1<<M)-1)];continue n}c.msg="invalid distance code",f.mode=30;break e}if(K=65535&H,L<(M&=15)&&(C+=j[h++]<<L,(L+=8)<M&&(C+=j[h++]<<L,L+=8)),T<(K+=C&(1<<M)-1)){c.msg="invalid distance too far back",f.mode=30;break e}if(C>>>=M,L-=M,(M=g-x)<K){if(S<(M=K-M)&&f.sane){c.msg="invalid distance too far back",f.mode=30;break e}if(V=E,(P=0)===A){if(P+=k-M,M<R){for(R-=M;W[g++]=E[P++],--M;);P=g-K,V=W}}else if(A<M){if(P+=k+A-M,(M-=A)<R){for(R-=M;W[g++]=E[P++],--M;);if(P=0,A<R){for(R-=M=A;W[g++]=E[P++],--M;);P=g-K,V=W}}}else if(P+=A-M,M<R){for(R-=M;W[g++]=E[P++],--M;);P=g-K,V=W}for(;2<R;)W[g++]=V[P++],W[g++]=V[P++],W[g++]=V[P++],R-=3;R&&(W[g++]=V[P++],1<R&&(W[g++]=V[P++]))}else{for(P=g-K;W[g++]=W[P++],W[g++]=W[P++],W[g++]=W[P++],2<(R-=3););R&&(W[g++]=W[P++],1<R&&(W[g++]=W[P++]))}break}}break}}while(h<m&&g<w);h-=R=L>>3,C&=(1<<(L-=R<<3))-1,c.next_in=h,c.next_out=g,c.avail_in=h<m?m-h+5:5-(h-m),c.avail_out=g<w?w-g+257:257-(g-w),f.hold=C,f.bits=L}},{}],49:[function(a,s,l){var c=a("../utils/common"),d=a("./adler32"),f=a("./crc32"),h=a("./inffast"),m=a("./inftrees"),g=1,x=2,w=0,T=-2,k=1,S=852,A=592;function E(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function C(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(P){var V;return P&&P.state?(V=P.state,P.total_in=P.total_out=V.total=0,P.msg="",V.wrap&&(P.adler=1&V.wrap),V.mode=k,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new c.Buf32(S),V.distcode=V.distdyn=new c.Buf32(A),V.sane=1,V.back=-1,w):T}function I(P){var V;return P&&P.state?((V=P.state).wsize=0,V.whave=0,V.wnext=0,L(P)):T}function N(P,V){var j,W;return P&&P.state?(W=P.state,V<0?(j=0,V=-V):(j=1+(V>>4),V<48&&(V&=15)),V&&(V<8||15<V)?T:(W.window!==null&&W.wbits!==V&&(W.window=null),W.wrap=j,W.wbits=V,I(P))):T}function z(P,V){var j,W;return P?(W=new C,(P.state=W).window=null,(j=N(P,V))!==w&&(P.state=null),j):T}var F,H,M=!0;function R(P){if(M){var V;for(F=new c.Buf32(512),H=new c.Buf32(32),V=0;V<144;)P.lens[V++]=8;for(;V<256;)P.lens[V++]=9;for(;V<280;)P.lens[V++]=7;for(;V<288;)P.lens[V++]=8;for(m(g,P.lens,0,288,F,0,P.work,{bits:9}),V=0;V<32;)P.lens[V++]=5;m(x,P.lens,0,32,H,0,P.work,{bits:5}),M=!1}P.lencode=F,P.lenbits=9,P.distcode=H,P.distbits=5}function K(P,V,j,W){var Z,v=P.state;return v.window===null&&(v.wsize=1<<v.wbits,v.wnext=0,v.whave=0,v.window=new c.Buf8(v.wsize)),W>=v.wsize?(c.arraySet(v.window,V,j-v.wsize,v.wsize,0),v.wnext=0,v.whave=v.wsize):(W<(Z=v.wsize-v.wnext)&&(Z=W),c.arraySet(v.window,V,j-W,Z,v.wnext),(W-=Z)?(c.arraySet(v.window,V,j-W,W,0),v.wnext=W,v.whave=v.wsize):(v.wnext+=Z,v.wnext===v.wsize&&(v.wnext=0),v.whave<v.wsize&&(v.whave+=Z))),0}l.inflateReset=I,l.inflateReset2=N,l.inflateResetKeep=L,l.inflateInit=function(P){return z(P,15)},l.inflateInit2=z,l.inflate=function(P,V){var j,W,Z,v,ue,q,b,O,U,J,Q,ne,ie,ve,Se,Te,Ne,Oe,Le,Re,_,de,ce,G,Y=0,te=new c.Buf8(4),pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return T;(j=P.state).mode===12&&(j.mode=13),ue=P.next_out,Z=P.output,b=P.avail_out,v=P.next_in,W=P.input,q=P.avail_in,O=j.hold,U=j.bits,J=q,Q=b,de=w;e:for(;;)switch(j.mode){case k:if(j.wrap===0){j.mode=13;break}for(;U<16;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(2&j.wrap&&O===35615){te[j.check=0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0),U=O=0,j.mode=2;break}if(j.flags=0,j.head&&(j.head.done=!1),!(1&j.wrap)||(((255&O)<<8)+(O>>8))%31){P.msg="incorrect header check",j.mode=30;break}if((15&O)!=8){P.msg="unknown compression method",j.mode=30;break}if(U-=4,_=8+(15&(O>>>=4)),j.wbits===0)j.wbits=_;else if(_>j.wbits){P.msg="invalid window size",j.mode=30;break}j.dmax=1<<_,P.adler=j.check=1,j.mode=512&O?10:12,U=O=0;break;case 2:for(;U<16;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(j.flags=O,(255&j.flags)!=8){P.msg="unknown compression method",j.mode=30;break}if(57344&j.flags){P.msg="unknown header flags set",j.mode=30;break}j.head&&(j.head.text=O>>8&1),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),U=O=0,j.mode=3;case 3:for(;U<32;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}j.head&&(j.head.time=O),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,te[2]=O>>>16&255,te[3]=O>>>24&255,j.check=f(j.check,te,4,0)),U=O=0,j.mode=4;case 4:for(;U<16;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}j.head&&(j.head.xflags=255&O,j.head.os=O>>8),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),U=O=0,j.mode=5;case 5:if(1024&j.flags){for(;U<16;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}j.length=O,j.head&&(j.head.extra_len=O),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),U=O=0}else j.head&&(j.head.extra=null);j.mode=6;case 6:if(1024&j.flags&&(q<(ne=j.length)&&(ne=q),ne&&(j.head&&(_=j.head.extra_len-j.length,j.head.extra||(j.head.extra=new Array(j.head.extra_len)),c.arraySet(j.head.extra,W,v,ne,_)),512&j.flags&&(j.check=f(j.check,W,ne,v)),q-=ne,v+=ne,j.length-=ne),j.length))break e;j.length=0,j.mode=7;case 7:if(2048&j.flags){if(q===0)break e;for(ne=0;_=W[v+ne++],j.head&&_&&j.length<65536&&(j.head.name+=String.fromCharCode(_)),_&&ne<q;);if(512&j.flags&&(j.check=f(j.check,W,ne,v)),q-=ne,v+=ne,_)break e}else j.head&&(j.head.name=null);j.length=0,j.mode=8;case 8:if(4096&j.flags){if(q===0)break e;for(ne=0;_=W[v+ne++],j.head&&_&&j.length<65536&&(j.head.comment+=String.fromCharCode(_)),_&&ne<q;);if(512&j.flags&&(j.check=f(j.check,W,ne,v)),q-=ne,v+=ne,_)break e}else j.head&&(j.head.comment=null);j.mode=9;case 9:if(512&j.flags){for(;U<16;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(O!==(65535&j.check)){P.msg="header crc mismatch",j.mode=30;break}U=O=0}j.head&&(j.head.hcrc=j.flags>>9&1,j.head.done=!0),P.adler=j.check=0,j.mode=12;break;case 10:for(;U<32;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}P.adler=j.check=E(O),U=O=0,j.mode=11;case 11:if(j.havedict===0)return P.next_out=ue,P.avail_out=b,P.next_in=v,P.avail_in=q,j.hold=O,j.bits=U,2;P.adler=j.check=1,j.mode=12;case 12:if(V===5||V===6)break e;case 13:if(j.last){O>>>=7&U,U-=7&U,j.mode=27;break}for(;U<3;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}switch(j.last=1&O,U-=1,3&(O>>>=1)){case 0:j.mode=14;break;case 1:if(R(j),j.mode=20,V!==6)break;O>>>=2,U-=2;break e;case 2:j.mode=17;break;case 3:P.msg="invalid block type",j.mode=30}O>>>=2,U-=2;break;case 14:for(O>>>=7&U,U-=7&U;U<32;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if((65535&O)!=(O>>>16^65535)){P.msg="invalid stored block lengths",j.mode=30;break}if(j.length=65535&O,U=O=0,j.mode=15,V===6)break e;case 15:j.mode=16;case 16:if(ne=j.length){if(q<ne&&(ne=q),b<ne&&(ne=b),ne===0)break e;c.arraySet(Z,W,v,ne,ue),q-=ne,v+=ne,b-=ne,ue+=ne,j.length-=ne;break}j.mode=12;break;case 17:for(;U<14;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(j.nlen=257+(31&O),O>>>=5,U-=5,j.ndist=1+(31&O),O>>>=5,U-=5,j.ncode=4+(15&O),O>>>=4,U-=4,286<j.nlen||30<j.ndist){P.msg="too many length or distance symbols",j.mode=30;break}j.have=0,j.mode=18;case 18:for(;j.have<j.ncode;){for(;U<3;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}j.lens[pe[j.have++]]=7&O,O>>>=3,U-=3}for(;j.have<19;)j.lens[pe[j.have++]]=0;if(j.lencode=j.lendyn,j.lenbits=7,ce={bits:j.lenbits},de=m(0,j.lens,0,19,j.lencode,0,j.work,ce),j.lenbits=ce.bits,de){P.msg="invalid code lengths set",j.mode=30;break}j.have=0,j.mode=19;case 19:for(;j.have<j.nlen+j.ndist;){for(;Te=(Y=j.lencode[O&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(Ne<16)O>>>=Se,U-=Se,j.lens[j.have++]=Ne;else{if(Ne===16){for(G=Se+2;U<G;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(O>>>=Se,U-=Se,j.have===0){P.msg="invalid bit length repeat",j.mode=30;break}_=j.lens[j.have-1],ne=3+(3&O),O>>>=2,U-=2}else if(Ne===17){for(G=Se+3;U<G;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}U-=Se,_=0,ne=3+(7&(O>>>=Se)),O>>>=3,U-=3}else{for(G=Se+7;U<G;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}U-=Se,_=0,ne=11+(127&(O>>>=Se)),O>>>=7,U-=7}if(j.have+ne>j.nlen+j.ndist){P.msg="invalid bit length repeat",j.mode=30;break}for(;ne--;)j.lens[j.have++]=_}}if(j.mode===30)break;if(j.lens[256]===0){P.msg="invalid code -- missing end-of-block",j.mode=30;break}if(j.lenbits=9,ce={bits:j.lenbits},de=m(g,j.lens,0,j.nlen,j.lencode,0,j.work,ce),j.lenbits=ce.bits,de){P.msg="invalid literal/lengths set",j.mode=30;break}if(j.distbits=6,j.distcode=j.distdyn,ce={bits:j.distbits},de=m(x,j.lens,j.nlen,j.ndist,j.distcode,0,j.work,ce),j.distbits=ce.bits,de){P.msg="invalid distances set",j.mode=30;break}if(j.mode=20,V===6)break e;case 20:j.mode=21;case 21:if(6<=q&&258<=b){P.next_out=ue,P.avail_out=b,P.next_in=v,P.avail_in=q,j.hold=O,j.bits=U,h(P,Q),ue=P.next_out,Z=P.output,b=P.avail_out,v=P.next_in,W=P.input,q=P.avail_in,O=j.hold,U=j.bits,j.mode===12&&(j.back=-1);break}for(j.back=0;Te=(Y=j.lencode[O&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(Te&&(240&Te)==0){for(Oe=Se,Le=Te,Re=Ne;Te=(Y=j.lencode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=U);){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}O>>>=Oe,U-=Oe,j.back+=Oe}if(O>>>=Se,U-=Se,j.back+=Se,j.length=Ne,Te===0){j.mode=26;break}if(32&Te){j.back=-1,j.mode=12;break}if(64&Te){P.msg="invalid literal/length code",j.mode=30;break}j.extra=15&Te,j.mode=22;case 22:if(j.extra){for(G=j.extra;U<G;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}j.length+=O&(1<<j.extra)-1,O>>>=j.extra,U-=j.extra,j.back+=j.extra}j.was=j.length,j.mode=23;case 23:for(;Te=(Y=j.distcode[O&(1<<j.distbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if((240&Te)==0){for(Oe=Se,Le=Te,Re=Ne;Te=(Y=j.distcode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=U);){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}O>>>=Oe,U-=Oe,j.back+=Oe}if(O>>>=Se,U-=Se,j.back+=Se,64&Te){P.msg="invalid distance code",j.mode=30;break}j.offset=Ne,j.extra=15&Te,j.mode=24;case 24:if(j.extra){for(G=j.extra;U<G;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}j.offset+=O&(1<<j.extra)-1,O>>>=j.extra,U-=j.extra,j.back+=j.extra}if(j.offset>j.dmax){P.msg="invalid distance too far back",j.mode=30;break}j.mode=25;case 25:if(b===0)break e;if(ne=Q-b,j.offset>ne){if((ne=j.offset-ne)>j.whave&&j.sane){P.msg="invalid distance too far back",j.mode=30;break}ie=ne>j.wnext?(ne-=j.wnext,j.wsize-ne):j.wnext-ne,ne>j.length&&(ne=j.length),ve=j.window}else ve=Z,ie=ue-j.offset,ne=j.length;for(b<ne&&(ne=b),b-=ne,j.length-=ne;Z[ue++]=ve[ie++],--ne;);j.length===0&&(j.mode=21);break;case 26:if(b===0)break e;Z[ue++]=j.length,b--,j.mode=21;break;case 27:if(j.wrap){for(;U<32;){if(q===0)break e;q--,O|=W[v++]<<U,U+=8}if(Q-=b,P.total_out+=Q,j.total+=Q,Q&&(P.adler=j.check=j.flags?f(j.check,Z,Q,ue-Q):d(j.check,Z,Q,ue-Q)),Q=b,(j.flags?O:E(O))!==j.check){P.msg="incorrect data check",j.mode=30;break}U=O=0}j.mode=28;case 28:if(j.wrap&&j.flags){for(;U<32;){if(q===0)break e;q--,O+=W[v++]<<U,U+=8}if(O!==(4294967295&j.total)){P.msg="incorrect length check",j.mode=30;break}U=O=0}j.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return T}return P.next_out=ue,P.avail_out=b,P.next_in=v,P.avail_in=q,j.hold=O,j.bits=U,(j.wsize||Q!==P.avail_out&&j.mode<30&&(j.mode<27||V!==4))&&K(P,P.output,P.next_out,Q-P.avail_out)?(j.mode=31,-4):(J-=P.avail_in,Q-=P.avail_out,P.total_in+=J,P.total_out+=Q,j.total+=Q,j.wrap&&Q&&(P.adler=j.check=j.flags?f(j.check,Z,Q,P.next_out-Q):d(j.check,Z,Q,P.next_out-Q)),P.data_type=j.bits+(j.last?64:0)+(j.mode===12?128:0)+(j.mode===20||j.mode===15?256:0),(J==0&&Q===0||V===4)&&de===w&&(de=-5),de)},l.inflateEnd=function(P){if(!P||!P.state)return T;var V=P.state;return V.window&&(V.window=null),P.state=null,w},l.inflateGetHeader=function(P,V){var j;return P&&P.state?(2&(j=P.state).wrap)==0?T:((j.head=V).done=!1,w):T},l.inflateSetDictionary=function(P,V){var j,W=V.length;return P&&P.state?(j=P.state).wrap!==0&&j.mode!==11?T:j.mode===11&&d(1,V,W,0)!==j.check?-3:K(P,V,W,W)?(j.mode=31,-4):(j.havedict=1,w):T},l.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,s,l){var c=a("../utils/common"),d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];s.exports=function(g,x,w,T,k,S,A,E){var C,L,I,N,z,F,H,M,R,K=E.bits,P=0,V=0,j=0,W=0,Z=0,v=0,ue=0,q=0,b=0,O=0,U=null,J=0,Q=new c.Buf16(16),ne=new c.Buf16(16),ie=null,ve=0;for(P=0;P<=15;P++)Q[P]=0;for(V=0;V<T;V++)Q[x[w+V]]++;for(Z=K,W=15;1<=W&&Q[W]===0;W--);if(W<Z&&(Z=W),W===0)return k[S++]=20971520,k[S++]=20971520,E.bits=1,0;for(j=1;j<W&&Q[j]===0;j++);for(Z<j&&(Z=j),P=q=1;P<=15;P++)if(q<<=1,(q-=Q[P])<0)return-1;if(0<q&&(g===0||W!==1))return-1;for(ne[1]=0,P=1;P<15;P++)ne[P+1]=ne[P]+Q[P];for(V=0;V<T;V++)x[w+V]!==0&&(A[ne[x[w+V]]++]=V);if(F=g===0?(U=ie=A,19):g===1?(U=d,J-=257,ie=f,ve-=257,256):(U=h,ie=m,-1),P=j,z=S,ue=V=O=0,I=-1,N=(b=1<<(v=Z))-1,g===1&&852<b||g===2&&592<b)return 1;for(;;){for(H=P-ue,R=A[V]<F?(M=0,A[V]):A[V]>F?(M=ie[ve+A[V]],U[J+A[V]]):(M=96,0),C=1<<P-ue,j=L=1<<v;k[z+(O>>ue)+(L-=C)]=H<<24|M<<16|R|0,L!==0;);for(C=1<<P-1;O&C;)C>>=1;if(C!==0?(O&=C-1,O+=C):O=0,V++,--Q[P]==0){if(P===W)break;P=x[w+A[V]]}if(Z<P&&(O&N)!==I){for(ue===0&&(ue=Z),z+=j,q=1<<(v=P-ue);v+ue<W&&!((q-=Q[v+ue])<=0);)v++,q<<=1;if(b+=1<<v,g===1&&852<b||g===2&&592<b)return 1;k[I=O&N]=Z<<24|v<<16|z-S|0}}return O!==0&&(k[z+O]=P-ue<<24|64<<16|0),E.bits=Z,0}},{"../utils/common":41}],51:[function(a,s,l){s.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(a,s,l){var c=a("../utils/common"),d=0,f=1;function h(Y){for(var te=Y.length;0<=--te;)Y[te]=0}var m=0,g=29,x=256,w=x+1+g,T=30,k=19,S=2*w+1,A=15,E=16,C=7,L=256,I=16,N=17,z=18,F=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],H=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=new Array(2*(w+2));h(K);var P=new Array(2*T);h(P);var V=new Array(512);h(V);var j=new Array(256);h(j);var W=new Array(g);h(W);var Z,v,ue,q=new Array(T);function b(Y,te,pe,ye,le){this.static_tree=Y,this.extra_bits=te,this.extra_base=pe,this.elems=ye,this.max_length=le,this.has_stree=Y&&Y.length}function O(Y,te){this.dyn_tree=Y,this.max_code=0,this.stat_desc=te}function U(Y){return Y<256?V[Y]:V[256+(Y>>>7)]}function J(Y,te){Y.pending_buf[Y.pending++]=255&te,Y.pending_buf[Y.pending++]=te>>>8&255}function Q(Y,te,pe){Y.bi_valid>E-pe?(Y.bi_buf|=te<<Y.bi_valid&65535,J(Y,Y.bi_buf),Y.bi_buf=te>>E-Y.bi_valid,Y.bi_valid+=pe-E):(Y.bi_buf|=te<<Y.bi_valid&65535,Y.bi_valid+=pe)}function ne(Y,te,pe){Q(Y,pe[2*te],pe[2*te+1])}function ie(Y,te){for(var pe=0;pe|=1&Y,Y>>>=1,pe<<=1,0<--te;);return pe>>>1}function ve(Y,te,pe){var ye,le,je=new Array(A+1),Ee=0;for(ye=1;ye<=A;ye++)je[ye]=Ee=Ee+pe[ye-1]<<1;for(le=0;le<=te;le++){var ee=Y[2*le+1];ee!==0&&(Y[2*le]=ie(je[ee]++,ee))}}function Se(Y){var te;for(te=0;te<w;te++)Y.dyn_ltree[2*te]=0;for(te=0;te<T;te++)Y.dyn_dtree[2*te]=0;for(te=0;te<k;te++)Y.bl_tree[2*te]=0;Y.dyn_ltree[2*L]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Te(Y){8<Y.bi_valid?J(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Ne(Y,te,pe,ye){var le=2*te,je=2*pe;return Y[le]<Y[je]||Y[le]===Y[je]&&ye[te]<=ye[pe]}function Oe(Y,te,pe){for(var ye=Y.heap[pe],le=pe<<1;le<=Y.heap_len&&(le<Y.heap_len&&Ne(te,Y.heap[le+1],Y.heap[le],Y.depth)&&le++,!Ne(te,ye,Y.heap[le],Y.depth));)Y.heap[pe]=Y.heap[le],pe=le,le<<=1;Y.heap[pe]=ye}function Le(Y,te,pe){var ye,le,je,Ee,ee=0;if(Y.last_lit!==0)for(;ye=Y.pending_buf[Y.d_buf+2*ee]<<8|Y.pending_buf[Y.d_buf+2*ee+1],le=Y.pending_buf[Y.l_buf+ee],ee++,ye===0?ne(Y,le,te):(ne(Y,(je=j[le])+x+1,te),(Ee=F[je])!==0&&Q(Y,le-=W[je],Ee),ne(Y,je=U(--ye),pe),(Ee=H[je])!==0&&Q(Y,ye-=q[je],Ee)),ee<Y.last_lit;);ne(Y,L,te)}function Re(Y,te){var pe,ye,le,je=te.dyn_tree,Ee=te.stat_desc.static_tree,ee=te.stat_desc.has_stree,xe=te.stat_desc.elems,ke=-1;for(Y.heap_len=0,Y.heap_max=S,pe=0;pe<xe;pe++)je[2*pe]!==0?(Y.heap[++Y.heap_len]=ke=pe,Y.depth[pe]=0):je[2*pe+1]=0;for(;Y.heap_len<2;)je[2*(le=Y.heap[++Y.heap_len]=ke<2?++ke:0)]=1,Y.depth[le]=0,Y.opt_len--,ee&&(Y.static_len-=Ee[2*le+1]);for(te.max_code=ke,pe=Y.heap_len>>1;1<=pe;pe--)Oe(Y,je,pe);for(le=xe;pe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Oe(Y,je,1),ye=Y.heap[1],Y.heap[--Y.heap_max]=pe,Y.heap[--Y.heap_max]=ye,je[2*le]=je[2*pe]+je[2*ye],Y.depth[le]=(Y.depth[pe]>=Y.depth[ye]?Y.depth[pe]:Y.depth[ye])+1,je[2*pe+1]=je[2*ye+1]=le,Y.heap[1]=le++,Oe(Y,je,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(Ce,He){var sn,ft,yn,st,rr,Ln,Wt=He.dyn_tree,kr=He.max_code,mu=He.stat_desc.static_tree,zl=He.stat_desc.has_stree,Ul=He.stat_desc.extra_bits,Ba=He.stat_desc.extra_base,Pn=He.stat_desc.max_length,Fa=0;for(st=0;st<=A;st++)Ce.bl_count[st]=0;for(Wt[2*Ce.heap[Ce.heap_max]+1]=0,sn=Ce.heap_max+1;sn<S;sn++)Pn<(st=Wt[2*Wt[2*(ft=Ce.heap[sn])+1]+1]+1)&&(st=Pn,Fa++),Wt[2*ft+1]=st,kr<ft||(Ce.bl_count[st]++,rr=0,Ba<=ft&&(rr=Ul[ft-Ba]),Ln=Wt[2*ft],Ce.opt_len+=Ln*(st+rr),zl&&(Ce.static_len+=Ln*(mu[2*ft+1]+rr)));if(Fa!==0){do{for(st=Pn-1;Ce.bl_count[st]===0;)st--;Ce.bl_count[st]--,Ce.bl_count[st+1]+=2,Ce.bl_count[Pn]--,Fa-=2}while(0<Fa);for(st=Pn;st!==0;st--)for(ft=Ce.bl_count[st];ft!==0;)kr<(yn=Ce.heap[--sn])||(Wt[2*yn+1]!==st&&(Ce.opt_len+=(st-Wt[2*yn+1])*Wt[2*yn],Wt[2*yn+1]=st),ft--)}}(Y,te),ve(je,ke,Y.bl_count)}function _(Y,te,pe){var ye,le,je=-1,Ee=te[1],ee=0,xe=7,ke=4;for(Ee===0&&(xe=138,ke=3),te[2*(pe+1)+1]=65535,ye=0;ye<=pe;ye++)le=Ee,Ee=te[2*(ye+1)+1],++ee<xe&&le===Ee||(ee<ke?Y.bl_tree[2*le]+=ee:le!==0?(le!==je&&Y.bl_tree[2*le]++,Y.bl_tree[2*I]++):ee<=10?Y.bl_tree[2*N]++:Y.bl_tree[2*z]++,je=le,ke=(ee=0)===Ee?(xe=138,3):le===Ee?(xe=6,3):(xe=7,4))}function de(Y,te,pe){var ye,le,je=-1,Ee=te[1],ee=0,xe=7,ke=4;for(Ee===0&&(xe=138,ke=3),ye=0;ye<=pe;ye++)if(le=Ee,Ee=te[2*(ye+1)+1],!(++ee<xe&&le===Ee)){if(ee<ke)for(;ne(Y,le,Y.bl_tree),--ee!=0;);else le!==0?(le!==je&&(ne(Y,le,Y.bl_tree),ee--),ne(Y,I,Y.bl_tree),Q(Y,ee-3,2)):ee<=10?(ne(Y,N,Y.bl_tree),Q(Y,ee-3,3)):(ne(Y,z,Y.bl_tree),Q(Y,ee-11,7));je=le,ke=(ee=0)===Ee?(xe=138,3):le===Ee?(xe=6,3):(xe=7,4)}}h(q);var ce=!1;function G(Y,te,pe,ye){Q(Y,(m<<1)+(ye?1:0),3),function(le,je,Ee,ee){Te(le),J(le,Ee),J(le,~Ee),c.arraySet(le.pending_buf,le.window,je,Ee,le.pending),le.pending+=Ee}(Y,te,pe)}l._tr_init=function(Y){ce||(function(){var te,pe,ye,le,je,Ee=new Array(A+1);for(le=ye=0;le<g-1;le++)for(W[le]=ye,te=0;te<1<<F[le];te++)j[ye++]=le;for(j[ye-1]=le,le=je=0;le<16;le++)for(q[le]=je,te=0;te<1<<H[le];te++)V[je++]=le;for(je>>=7;le<T;le++)for(q[le]=je<<7,te=0;te<1<<H[le]-7;te++)V[256+je++]=le;for(pe=0;pe<=A;pe++)Ee[pe]=0;for(te=0;te<=143;)K[2*te+1]=8,te++,Ee[8]++;for(;te<=255;)K[2*te+1]=9,te++,Ee[9]++;for(;te<=279;)K[2*te+1]=7,te++,Ee[7]++;for(;te<=287;)K[2*te+1]=8,te++,Ee[8]++;for(ve(K,w+1,Ee),te=0;te<T;te++)P[2*te+1]=5,P[2*te]=ie(te,5);Z=new b(K,F,x+1,w,A),v=new b(P,H,0,T,A),ue=new b(new Array(0),M,0,k,C)}(),ce=!0),Y.l_desc=new O(Y.dyn_ltree,Z),Y.d_desc=new O(Y.dyn_dtree,v),Y.bl_desc=new O(Y.bl_tree,ue),Y.bi_buf=0,Y.bi_valid=0,Se(Y)},l._tr_stored_block=G,l._tr_flush_block=function(Y,te,pe,ye){var le,je,Ee=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(ee){var xe,ke=4093624447;for(xe=0;xe<=31;xe++,ke>>>=1)if(1&ke&&ee.dyn_ltree[2*xe]!==0)return d;if(ee.dyn_ltree[18]!==0||ee.dyn_ltree[20]!==0||ee.dyn_ltree[26]!==0)return f;for(xe=32;xe<x;xe++)if(ee.dyn_ltree[2*xe]!==0)return f;return d}(Y)),Re(Y,Y.l_desc),Re(Y,Y.d_desc),Ee=function(ee){var xe;for(_(ee,ee.dyn_ltree,ee.l_desc.max_code),_(ee,ee.dyn_dtree,ee.d_desc.max_code),Re(ee,ee.bl_desc),xe=k-1;3<=xe&&ee.bl_tree[2*R[xe]+1]===0;xe--);return ee.opt_len+=3*(xe+1)+5+5+4,xe}(Y),le=Y.opt_len+3+7>>>3,(je=Y.static_len+3+7>>>3)<=le&&(le=je)):le=je=pe+5,pe+4<=le&&te!==-1?G(Y,te,pe,ye):Y.strategy===4||je===le?(Q(Y,2+(ye?1:0),3),Le(Y,K,P)):(Q(Y,4+(ye?1:0),3),function(ee,xe,ke,Ce){var He;for(Q(ee,xe-257,5),Q(ee,ke-1,5),Q(ee,Ce-4,4),He=0;He<Ce;He++)Q(ee,ee.bl_tree[2*R[He]+1],3);de(ee,ee.dyn_ltree,xe-1),de(ee,ee.dyn_dtree,ke-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,Ee+1),Le(Y,Y.dyn_ltree,Y.dyn_dtree)),Se(Y),ye&&Te(Y)},l._tr_tally=function(Y,te,pe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=te>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&te,Y.pending_buf[Y.l_buf+Y.last_lit]=255&pe,Y.last_lit++,te===0?Y.dyn_ltree[2*pe]++:(Y.matches++,te--,Y.dyn_ltree[2*(j[pe]+x+1)]++,Y.dyn_dtree[2*U(te)]++),Y.last_lit===Y.lit_bufsize-1},l._tr_align=function(Y){Q(Y,2,3),ne(Y,L,K),function(te){te.bi_valid===16?(J(te,te.bi_buf),te.bi_buf=0,te.bi_valid=0):8<=te.bi_valid&&(te.pending_buf[te.pending++]=255&te.bi_buf,te.bi_buf>>=8,te.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(a,s,l){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,s,l){(function(c){(function(d,f){if(!d.setImmediate){var h,m,g,x,w=1,T={},k=!1,S=d.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(d);A=A&&A.setTimeout?A:d,h={}.toString.call(d.process)==="[object process]"?function(I){process.nextTick(function(){C(I)})}:function(){if(d.postMessage&&!d.importScripts){var I=!0,N=d.onmessage;return d.onmessage=function(){I=!1},d.postMessage("","*"),d.onmessage=N,I}}()?(x="setImmediate$"+Math.random()+"$",d.addEventListener?d.addEventListener("message",L,!1):d.attachEvent("onmessage",L),function(I){d.postMessage(x+I,"*")}):d.MessageChannel?((g=new MessageChannel).port1.onmessage=function(I){C(I.data)},function(I){g.port2.postMessage(I)}):S&&"onreadystatechange"in S.createElement("script")?(m=S.documentElement,function(I){var N=S.createElement("script");N.onreadystatechange=function(){C(I),N.onreadystatechange=null,m.removeChild(N),N=null},m.appendChild(N)}):function(I){setTimeout(C,0,I)},A.setImmediate=function(I){typeof I!="function"&&(I=new Function(""+I));for(var N=new Array(arguments.length-1),z=0;z<N.length;z++)N[z]=arguments[z+1];var F={callback:I,args:N};return T[w]=F,h(w),w++},A.clearImmediate=E}function E(I){delete T[I]}function C(I){if(k)setTimeout(C,0,I);else{var N=T[I];if(N){k=!0;try{(function(z){var F=z.callback,H=z.args;switch(H.length){case 0:F();break;case 1:F(H[0]);break;case 2:F(H[0],H[1]);break;case 3:F(H[0],H[1],H[2]);break;default:F.apply(f,H)}})(N)}finally{E(I),k=!1}}}}function L(I){I.source===d&&typeof I.data=="string"&&I.data.indexOf(x)===0&&C(+I.data.slice(x.length))}})(typeof self>"u"?c===void 0?this:c:self)}).call(this,typeof _n<"u"?_n:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Gf)),Gf.exports}var ck=ok();const uk=Ic(ck);var vc={exports:{}},dk=vc.exports,Px;function fk(){return Px||(Px=1,function(e,n){(function(a,s){s()})(dk,function(){function a(m,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function s(m,g,x){var w=new XMLHttpRequest;w.open("GET",m),w.responseType="blob",w.onload=function(){h(w.response,g,x)},w.onerror=function(){console.error("could not download file")},w.send()}function l(m){var g=new XMLHttpRequest;g.open("HEAD",m,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function c(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(g)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof _n=="object"&&_n.global===_n?_n:void 0,f=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(m,g,x){var w=d.URL||d.webkitURL,T=document.createElement("a");g=g||m.name||"download",T.download=g,T.rel="noopener",typeof m=="string"?(T.href=m,T.origin===location.origin?c(T):l(T.href)?s(m,g,x):c(T,T.target="_blank")):(T.href=w.createObjectURL(m),setTimeout(function(){w.revokeObjectURL(T.href)},4e4),setTimeout(function(){c(T)},0))}:"msSaveOrOpenBlob"in navigator?function(m,g,x){if(g=g||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(a(m,x),g);else if(l(m))s(m,g,x);else{var w=document.createElement("a");w.href=m,w.target="_blank",setTimeout(function(){c(w)})}}:function(m,g,x,w){if(w=w||open("","_blank"),w&&(w.document.title=w.document.body.innerText="downloading..."),typeof m=="string")return s(m,g,x);var T=m.type==="application/octet-stream",k=/constructor/i.test(d.HTMLElement)||d.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||T&&k||f)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var L=A.result;L=S?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=L:location=L,w=null},A.readAsDataURL(m)}else{var E=d.URL||d.webkitURL,C=E.createObjectURL(m);w?w.location=C:location.href=C,w=null,setTimeout(function(){E.revokeObjectURL(C)},4e4)}});d.saveAs=h.saveAs=h,e.exports=h})}(vc)),vc.exports}var hk=fk();const mk="/assets/bg-CTZfS44-.jpg",pk="/assets/mobile-DVtmHUcA.png",gk="/assets/wherego-CxrpFa6S.jpeg",yk="/assets/futuresee-vF3riMDq.jpeg",xk="/assets/map-DfwT83pC.png",H1="/assets/direction-DvSXpJ92.png",bk="/assets/rides-DHFaS9Zp.png",vk="/assets/connectors-DxMTDBst.png",wk="/assets/recoveries-CVwWHeuA.png",Sk="/assets/delivery-D2UlqJpG.png",jk="/assets/shifting-DYqoMp4y.png",Tk="/assets/tourism-Dr_CLv8Q.png",I1="/assets/bg2-C1RXNloV.png",q1="/assets/book-DZfcrvd8.png",G1="/assets/booklady-CV6x7ftQ.jpg",Y1="/assets/playbutton-BmD_M-Vz.png",X1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAABYCAYAAAAJD2m8AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA7ZSURBVHgB7Z3tuQ3LEsfHvff7IQJEgAgQASIgA0SACBABIkAEiAAR4JtviGDf9Vvn/J1WqmZ6Zk3PzNrq9zz17LXX6qnp6ZeafqnuPtN13UmXJEni8J8uSZIkIA1EkiQhaSCSJAlJA5EkSUgaiCRJQtJAJEkSkgYiSZKQNBBJkoSkgUiSJCQNRJIkIWkgkiQJSQORJElIGogkSULSQCRJEpIGIkmSkDQQSZKEpIFIkiTkvzt52CV/PA8fPuyuXbvWvX37tluTO3fudDdv3uw+f/7cff/+vTsWSDviTpy/fv3anSZOjll2GXPy5MmTkzdv3ix6X+756dOnX+T9+/f7eOwq28mFCxcWjc+hItaOB+kH5OvacbFy9uzZfb7y1/5GnsPOSGwu3ofI/7ojhbfM48ePu12GdWuwKyThvXmb3L17t7t371734sWLLjkdXL58udsZsH0r6/r1692fwNGNQVAxnz171r18+fKXCvrhw4duDR49etSdOXNmL+fOndsXnFevXu3j+fz5872xSJJj5ahaEFQ6rPelS5d+++3Lly/d2tD/JH4IxuH27dvdgwcPfuvX8xy0MHgj8ZnrXr9+vb9G0EK6cePG/nsMjtB1T58+/cUoch8M5v379/f6dL1aMFyne3Ft7VhDTVzLsPTDr169uv8M3D8KW+rlGae0tjDAPKvKBGMXGG3+lpTpo7ThvlF4C61B4groYcyGtNh1NX8LSziejXBD6UU4vURq47I0R9Mf2iXyScTSfT/Fhb6n9zv9VFGOR/CZ8QqPXcvoZzj64PY7RNcyBmLvxW/6Tn3iXTfMvZft43tjELVxVRzKsOVnb3xoZ9x+06kxHC9+nuwq10nEzjj/ElZ6ibfl27dv7riCl+4lXnrzF32WnYEJ05bw5TU27ivLZiLSKxiAiDKjlpIhA4FQ4GH3xvrtul0X6Weh3L1xfhYWFSR+U8HRtYTzntkzJiqwQNppgE33t5VWlN8RR+AaL66lUVb+lM9VVoKywvOMegZ9T1illw3vCeG9yqfntpVeBsLeU/Hry0eF1TOii/9Lw1+mN/FRemPIvTLq3ZdyojwfMlgLyiYiMShl4bFY67yE1BgIFUpVJBVqCoCd5VAlLyuurldYVSzdW4VIhbM0RPrOvukVB1tghQ1XG9dIVEFKY6K8tK0+GcUaAxE9X5luZbmweSFRpff0WOl77ig+ZUuyRo+XXmvKUYxB0KdT/8/y8eNHtx+4RTSoytiB7WdqPKEc1KTvyv8IfVj6zYTT+AZ9aT7T5y91lJA+JbX927FxFXzHtbreC6O8LMdWgP4694ry2tNBGlmUbt5YlX2Wufv7dixMz1QOqJefGcsoUZzXmp2zHIWBiGYCSHgqyVZRJqsQ9mW65xSkgUQMgGZENMBIeH1PZfEqcqR3StyHdBKeKcDyGblWg5Uenp7a+P7111+j9G4JpRH55pWJoXRbkqOY5vQSkbfPlStXNjfiKxjN1yi2KrrevF7m6xnLwk14/lcrAvTW5S2JcdQswLt377o5UTy8t7kXV6ae+R4DxnQv074XL17c/x/p9tKhtmLoTd2Xlj9+/Oi2iMoseUkaecKsyRY4CgOhQqDKhq/BrVu3NvumoDIzrQbl1J3ch703B90HsN0EDAFh5cYrY8NfTZOBba4filoptXFVGE3/CXV/SnSdrQToqOlelDroaln03dpu4xGKFwbeGjien7yuTYclWH0gxI4IW2HkPPqd7xn0QQi31OhvORvAABUil2/BVJ6NjwazGCRkIIp474zJz2vKgcau+3X2ZmcE3MGvcqbD3scb7KoZpOyKAbMorqS3wuq5+Z3vCVtOsXozHkAYwjKgyH1qBynLaVUGBglP2mnmxT5fNH0aTSdH5VDprfSw6e0NWiueXnyIL3oox6SBnn9DrvrL35SHpyDZmQkShwQbGsHV+otojh696GiZyH0+GTwHBSUyVqp49hpvNqY0BDZdVMhKw2EL7CEGgnt7z+nFtZz+FPwvvwMbj3JaUJAuul+NH4R3T93X5v0cBqLUY9NwrIEgbb2ZORmfQ8rmnHLmnw+LQHOKGQevWWihOU5TjCY6f2l+ygNujPsyTV680+ZGo/UWDRYOdX/KcQXCMtgYXaOmKOlQjrkoDtzTdk0082OvAXVXym4J34Hn8VcbV+KiOHFP9Kvb4MWj7DoRf8Loei98hMZiQJ6s3jN4eklXrR6t7ZJIV5mGSm8vL5R/Q2mrNNta13kRS4Sl9jzMlgBLvaEmW0rKMUn7m9A3XBuMxIa801JSjkKaz2LQFGMKbG1o/o3pmiRJ8jdNLVA0kLg0a7hjp6ScAmmnvG+B1ZKctl1+UlIWlHbKt9B6GFqll5KSEkuzaU76+/jmrwnTRritLg1TWtYTTm7Tyb9ogxkWKMllHEgnBPdxpv3W2i0s+ZsmlsdzhFmatboWnnNRtmT+FWaT8KCsnfbW/gvH9IynSNooLj3O1mKtaU2va8U06xpx2ZpE3o814H17TM96SqSN4rXHH5beBl/SNzC7xa3cl5S+LexAxwf0tSz6ZqP4jXyXlGtFUiZLG8VrU+7ZuKSwLmJrcdqKaCFVCRUZw2lbe1TuaB1I1N2w4f90gzyTtFG8Nmv0+ct9EsFuRuqtuvxTpNxPc0wecZ1tUUSGNg3E/NLEk3Iru+EsjfXUZIv1cgSedPlTvTntczPDZLdb8yD97KYzNYv9knloYiC2MJ13/vz5bmlswdVq1L4wh1Lu/7hlvXba1+6V2Yfdc7TvVLM50ArUcup1DhTvmrgr7NxxmEKTpslaKzfF0s15273QIGm5U7PiVTO7QvO4HHArN5LRbxa+q9lLo4XeIbHNf28PiymiTXoQW+Z0zoakr0vD83k6pIf7DE21sqeE7sV4i9Vd4qUn5YKZmmiPC/SvMN3bRvEWvCiX7INav4+yANiBy5p1IXY2RPq8g18sfX4Dnl4K5qF6aypySd9g4xgZM53ubQpDHGp1RJv6eGVem8lE6WoNBIcA1b5UF57ubaO4b8elpVhyqtMaxLLwa9eiMfHyKnJ0SpZHtLy9ld6xzwOkmd1ib6wcYiCGpl0jogpqDUS5PZ+lNBB94SLIs7nLcCBtFOuQl7VZohUxZABsNwOGKpmtUOVRdejijUwY0jkyxl4haqV3SLw0EBgd7jclr7iOio/Yyk4zX78h9q3tGQfyDp0YLoQ08MJ5cS3D2RksfiM+SNm18/ZKUZcOA8YsDmE8Q7iQp3AbxbbSrMVcTdk+sRXJyzgbZmiKL3K4ogJ7xiV6G9qwrfTWVuaa/FIlHWswxkxzem/tqMJ5aeAd9xiNHfTFw17TVy5sN3ahcbZ2ytceqBTeJqZzSl/3QjK2m+FV5KGNVbmvTXNb4FrprZWxa3TGDM6NMRBjKmaUBla/Z0T64m1bDzXu+LYlsUALuZ3yLYxDiFa7BdtM7hudHypgpXgVuaaS2ApoDVErvWNkzMBgCV2bvpZLrYGwxrr2TWwHWqOT18VQeZvi2GXL2wLeue2Ub6WbUTL3wGVN9yIqYEPTbiW1i708b84+vbXpMaR3iugsiDHGom+QtLbC2a5O7ZSrLc/Rid1iaC2I3fZ+Sj60XgTY9GxO7YGwJc/KMQ46Q/Bc1vGp74QrftNJWMDnGm9CqD1aT1vuK83lcBNtIV+bHmP11urECUqOUHhb4hjUd7QBv3NqGV6qU7GOSrX7TdhwQw5PQ3pL5zHSdsr+Ka3rVlMDwUPjJqtj6LbAnCeB24ODed7dKHVXi1yva85jGOOdOsYot9I7BZ1pQR7pvArKjq2IHNnHWSdTPXbtM9QaOe9+6JoSDxuHqW74LT1Kofnp3mQ2b8ottCI4uGTOw35t62FKJlMJWp8heYxrY3RAj8SmNenmHUSzNHMZiK3S3EBsqRUx5wlbOkXqUCj49sBbjzEFyobt032I3qWgxUC3o7z/nG/OQ55r6gvHXkcecSD11mhuIGALrYi5Ww/WOGgfxRrKwq1Wx9Dp3OzbWKt7TBO6ld4Sb4/OMa0mHc0310pYG+/aNLDPcOiiRDums9V9S0+WkDU9K1v4QYyd0irFjtp7Mwl2tqF2kdfQ7EcrvX1ip+Zq71mKHfH3ZoBqZzG8+EwpwzbfbJkYWw42un/FcjebMvc9B3P7P3ibn4wxQJ4vQo3HY42Lsy2kdq7e01vj9DSkt0/KE8rHPIvETu2BV5msgYjWeXhu3zWVc+ilMNZADBmcSIirZIFt9bqTpWTq4phDGFOQa8UWxLG+FV4BtasEI5fo3ZhFqNdbOWgL/lx6xxZM7+VQsyrR2+TWc3P28qUv761PylAr06aBF36sgfDKQV8+INZFfIH1GN3JkrKk8xQZ1mJn60O6F1FhrvF4FBRW0pECinj7DUC5J8GceqcY3SjfSUvugyFQXnFvwkeeuFF6e91YWire29ZznS7jogoc7ZHhtbrGGgjEcz33XMu9eLReQtCtYSCGCulctEo8r6BPuc+QHptG0arCsc/fSu/UyjAW4jsmTUtquls1RC3GKQYCseMrAgPWt8v3Ua/mHJKhQUstPaYfqTcaBYBE8XZHLmlpWefaGclrXpZvJVt4+a22i4beqAvg6a09q4Iwh/Z5DzESNesO+tb/eC0fyuGYRYWUvahVOtVAoG/M+NzQxjUzS3eyllDgywzVUl+MwlDXgGspMKX1JYMogK0OzPEq9SFW3NtlSb95FdlLM3v90MrHVnoPyfchtDV+rX6e0XsrR12jmvi8MdvzeTLVQJTx7jPUemkuue1cs7M5x3KoX/9SWAedQ+LM3HfkW8CZlbsC/fN7nLzKdRvyLVB8uK5mHr2V3iloU1b8G9hkWGnBPX/8+LG/L/4hh7hUl+lbk1fERRvLyrcFn42aa+cqG0p/+Z6gp2U+DHGSsj2J3vRb1ZtyOqXJtvdJkpwO0kAkSRKSBiJJkpA0EEmShCyymjMZD6PW5X4HtbseraU3OZ1sZpozSZLtkV2MJElC0kAkSRKSBiJJkpA0EEmShKSBSJIkJA1EkiQhaSCSJAlJA5EkSUgaiCRJQtJAJEkSkgYiSZKQNBBJkoSkgUiSJOT/mUlQwvIYn3YAAAAASUVORK5CYII=",Ek="/assets/countless1-CVck5bx4.jpg",Ak="/assets/countless2-b-eUsns6.png",Nk="/assets/countless3-DjmIYyMw.png",kk="/assets/brochure-C8xBBGg_.pdf",_k="/assets/document1-49tq_C5-.pdf",Ok="/assets/guide-DwMDUa26.pdf";var Yf={},Xf={},Wi={},Zf={},zx;function Rk(){return zx||(zx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=n}(Zf)),Zf}var Wf,Ux;function Ck(){if(Ux)return Wf;Ux=1;var e="Expected a function",n=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=typeof _n=="object"&&_n&&_n.Object===Object&&_n,m=typeof self=="object"&&self&&self.Object===Object&&self,g=h||m||Function("return this")(),x=Object.prototype,w=x.toString,T=Math.max,k=Math.min,S=function(){return g.Date.now()};function A(N,z,F){var H,M,R,K,P,V,j=0,W=!1,Z=!1,v=!0;if(typeof N!="function")throw new TypeError(e);z=I(z)||0,E(F)&&(W=!!F.leading,Z="maxWait"in F,R=Z?T(I(F.maxWait)||0,z):R,v="trailing"in F?!!F.trailing:v);function ue(ve){var Se=H,Te=M;return H=M=void 0,j=ve,K=N.apply(Te,Se),K}function q(ve){return j=ve,P=setTimeout(U,z),W?ue(ve):K}function b(ve){var Se=ve-V,Te=ve-j,Ne=z-Se;return Z?k(Ne,R-Te):Ne}function O(ve){var Se=ve-V,Te=ve-j;return V===void 0||Se>=z||Se<0||Z&&Te>=R}function U(){var ve=S();if(O(ve))return J(ve);P=setTimeout(U,b(ve))}function J(ve){return P=void 0,v&&H?ue(ve):(H=M=void 0,K)}function Q(){P!==void 0&&clearTimeout(P),j=0,H=V=M=P=void 0}function ne(){return P===void 0?K:J(S())}function ie(){var ve=S(),Se=O(ve);if(H=arguments,M=this,V=ve,Se){if(P===void 0)return q(V);if(Z)return P=setTimeout(U,z),ue(V)}return P===void 0&&(P=setTimeout(U,z)),K}return ie.cancel=Q,ie.flush=ne,ie}function E(N){var z=typeof N;return!!N&&(z=="object"||z=="function")}function C(N){return!!N&&typeof N=="object"}function L(N){return typeof N=="symbol"||C(N)&&w.call(N)==a}function I(N){if(typeof N=="number")return N;if(L(N))return n;if(E(N)){var z=typeof N.valueOf=="function"?N.valueOf():N;N=E(z)?z+"":z}if(typeof N!="string")return N===0?N:+N;N=N.replace(s,"");var F=c.test(N);return F||d.test(N)?f(N.slice(2),F?2:8):l.test(N)?n:+N}return Wf=A,Wf}var Kf={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var Bx;function cu(){return Bx||(Bx=1,function(e){(function(){var n={}.hasOwnProperty;function a(){for(var c="",d=0;d<arguments.length;d++){var f=arguments[d];f&&(c=l(c,s(f)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return a.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var f in c)n.call(c,f)&&c[f]&&(d=l(d,f));return d}function l(c,d){return d?c?c+" "+d:c+d:c}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(Kf)),Kf.exports}var Ae={},$f={},Fx;function Z1(){return Fx||(Fx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(Cn());function a(l){return l&&l.__esModule?l:{default:l}}var s={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(c){return n.default.createElement("ul",{style:{display:"block"}},c)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(c){return n.default.createElement("button",null,c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=s}($f)),$f}var Vx;function Cl(){if(Vx)return Ae;Vx=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.checkSpecKeys=Ae.checkNavigable=Ae.changeSlide=Ae.canUseDOM=Ae.canGoNext=void 0,Ae.clamp=m,Ae.extractObject=void 0,Ae.filterSettings=ue,Ae.validSettings=Ae.swipeStart=Ae.swipeMove=Ae.swipeEnd=Ae.slidesOnRight=Ae.slidesOnLeft=Ae.slideHandler=Ae.siblingDirection=Ae.safePreventDefault=Ae.lazyStartIndex=Ae.lazySlidesOnRight=Ae.lazySlidesOnLeft=Ae.lazyEndIndex=Ae.keyHandler=Ae.initializedState=Ae.getWidth=Ae.getTrackLeft=Ae.getTrackCSS=Ae.getTrackAnimateCSS=Ae.getTotalSlides=Ae.getSwipeDirection=Ae.getSlideCount=Ae.getRequiredLazySlides=Ae.getPreClones=Ae.getPostClones=Ae.getOnDemandLazySlides=Ae.getNavigableIndexes=Ae.getHeight=void 0;var e=a(Cn()),n=a(Z1());function a(q){return q&&q.__esModule?q:{default:q}}function s(q){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},s(q)}function l(q,b){var O=Object.keys(q);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(q);b&&(U=U.filter(function(J){return Object.getOwnPropertyDescriptor(q,J).enumerable})),O.push.apply(O,U)}return O}function c(q){for(var b=1;b<arguments.length;b++){var O=arguments[b]!=null?arguments[b]:{};b%2?l(Object(O),!0).forEach(function(U){d(q,U,O[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(O)):l(Object(O)).forEach(function(U){Object.defineProperty(q,U,Object.getOwnPropertyDescriptor(O,U))})}return q}function d(q,b,O){return b=f(b),b in q?Object.defineProperty(q,b,{value:O,enumerable:!0,configurable:!0,writable:!0}):q[b]=O,q}function f(q){var b=h(q,"string");return s(b)=="symbol"?b:String(b)}function h(q,b){if(s(q)!="object"||!q)return q;var O=q[Symbol.toPrimitive];if(O!==void 0){var U=O.call(q,b);if(s(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(q)}function m(q,b,O){return Math.max(b,Math.min(q,O))}var g=Ae.safePreventDefault=function(b){var O=["onTouchStart","onTouchMove","onWheel"];O.includes(b._reactName)||b.preventDefault()},x=Ae.getOnDemandLazySlides=function(b){for(var O=[],U=w(b),J=T(b),Q=U;Q<J;Q++)b.lazyLoadedList.indexOf(Q)<0&&O.push(Q);return O};Ae.getRequiredLazySlides=function(b){for(var O=[],U=w(b),J=T(b),Q=U;Q<J;Q++)O.push(Q);return O};var w=Ae.lazyStartIndex=function(b){return b.currentSlide-k(b)},T=Ae.lazyEndIndex=function(b){return b.currentSlide+S(b)},k=Ae.lazySlidesOnLeft=function(b){return b.centerMode?Math.floor(b.slidesToShow/2)+(parseInt(b.centerPadding)>0?1:0):0},S=Ae.lazySlidesOnRight=function(b){return b.centerMode?Math.floor((b.slidesToShow-1)/2)+1+(parseInt(b.centerPadding)>0?1:0):b.slidesToShow},A=Ae.getWidth=function(b){return b&&b.offsetWidth||0},E=Ae.getHeight=function(b){return b&&b.offsetHeight||0},C=Ae.getSwipeDirection=function(b){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U,J,Q,ne;return U=b.startX-b.curX,J=b.startY-b.curY,Q=Math.atan2(J,U),ne=Math.round(Q*180/Math.PI),ne<0&&(ne=360-Math.abs(ne)),ne<=45&&ne>=0||ne<=360&&ne>=315?"left":ne>=135&&ne<=225?"right":O===!0?ne>=35&&ne<=135?"up":"down":"vertical"},L=Ae.canGoNext=function(b){var O=!0;return b.infinite||(b.centerMode&&b.currentSlide>=b.slideCount-1||b.slideCount<=b.slidesToShow||b.currentSlide>=b.slideCount-b.slidesToShow)&&(O=!1),O};Ae.extractObject=function(b,O){var U={};return O.forEach(function(J){return U[J]=b[J]}),U},Ae.initializedState=function(b){var O=e.default.Children.count(b.children),U=b.listRef,J=Math.ceil(A(U)),Q=b.trackRef&&b.trackRef.node,ne=Math.ceil(A(Q)),ie;if(b.vertical)ie=J;else{var ve=b.centerMode&&parseInt(b.centerPadding)*2;typeof b.centerPadding=="string"&&b.centerPadding.slice(-1)==="%"&&(ve*=J/100),ie=Math.ceil((J-ve)/b.slidesToShow)}var Se=U&&E(U.querySelector('[data-index="0"]')),Te=Se*b.slidesToShow,Ne=b.currentSlide===void 0?b.initialSlide:b.currentSlide;b.rtl&&b.currentSlide===void 0&&(Ne=O-1-b.initialSlide);var Oe=b.lazyLoadedList||[],Le=x(c(c({},b),{},{currentSlide:Ne,lazyLoadedList:Oe}));Oe=Oe.concat(Le);var Re={slideCount:O,slideWidth:ie,listWidth:J,trackWidth:ne,currentSlide:Ne,slideHeight:Se,listHeight:Te,lazyLoadedList:Oe};return b.autoplaying===null&&b.autoplay&&(Re.autoplaying="playing"),Re},Ae.slideHandler=function(b){var O=b.waitForAnimate,U=b.animating,J=b.fade,Q=b.infinite,ne=b.index,ie=b.slideCount,ve=b.lazyLoad,Se=b.currentSlide,Te=b.centerMode,Ne=b.slidesToScroll,Oe=b.slidesToShow,Le=b.useCSS,Re=b.lazyLoadedList;if(O&&U)return{};var _=ne,de,ce,G,Y={},te={},pe=Q?ne:m(ne,0,ie-1);if(J){if(!Q&&(ne<0||ne>=ie))return{};ne<0?_=ne+ie:ne>=ie&&(_=ne-ie),ve&&Re.indexOf(_)<0&&(Re=Re.concat(_)),Y={animating:!0,currentSlide:_,lazyLoadedList:Re,targetSlide:_},te={animating:!1,targetSlide:_}}else de=_,_<0?(de=_+ie,Q?ie%Ne!==0&&(de=ie-ie%Ne):de=0):!L(b)&&_>Se?_=de=Se:Te&&_>=ie?(_=Q?ie:ie-1,de=Q?0:ie-1):_>=ie&&(de=_-ie,Q?ie%Ne!==0&&(de=0):de=ie-Oe),!Q&&_+Oe>=ie&&(de=ie-Oe),ce=R(c(c({},b),{},{slideIndex:_})),G=R(c(c({},b),{},{slideIndex:de})),Q||(ce===G&&(_=de),ce=G),ve&&(Re=Re.concat(x(c(c({},b),{},{currentSlide:_})))),Le?(Y={animating:!0,currentSlide:de,trackStyle:M(c(c({},b),{},{left:ce})),lazyLoadedList:Re,targetSlide:pe},te={animating:!1,currentSlide:de,trackStyle:H(c(c({},b),{},{left:G})),swipeLeft:null,targetSlide:pe}):Y={currentSlide:de,trackStyle:H(c(c({},b),{},{left:G})),lazyLoadedList:Re,targetSlide:pe};return{state:Y,nextState:te}},Ae.changeSlide=function(b,O){var U,J,Q,ne,ie,ve=b.slidesToScroll,Se=b.slidesToShow,Te=b.slideCount,Ne=b.currentSlide,Oe=b.targetSlide,Le=b.lazyLoad,Re=b.infinite;if(ne=Te%ve!==0,U=ne?0:(Te-Ne)%ve,O.message==="previous")Q=U===0?ve:Se-U,ie=Ne-Q,Le&&!Re&&(J=Ne-Q,ie=J===-1?Te-1:J),Re||(ie=Oe-ve);else if(O.message==="next")Q=U===0?ve:U,ie=Ne+Q,Le&&!Re&&(ie=(Ne+ve)%Te+U),Re||(ie=Oe+ve);else if(O.message==="dots")ie=O.index*O.slidesToScroll;else if(O.message==="children"){if(ie=O.index,Re){var _=j(c(c({},b),{},{targetSlide:ie}));ie>O.currentSlide&&_==="left"?ie=ie-Te:ie<O.currentSlide&&_==="right"&&(ie=ie+Te)}}else O.message==="index"&&(ie=Number(O.index));return ie},Ae.keyHandler=function(b,O,U){return b.target.tagName.match("TEXTAREA|INPUT|SELECT")||!O?"":b.keyCode===37?U?"next":"previous":b.keyCode===39?U?"previous":"next":""},Ae.swipeStart=function(b,O,U){return b.target.tagName==="IMG"&&g(b),!O||!U&&b.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:b.touches?b.touches[0].pageX:b.clientX,startY:b.touches?b.touches[0].pageY:b.clientY,curX:b.touches?b.touches[0].pageX:b.clientX,curY:b.touches?b.touches[0].pageY:b.clientY}}},Ae.swipeMove=function(b,O){var U=O.scrolling,J=O.animating,Q=O.vertical,ne=O.swipeToSlide,ie=O.verticalSwiping,ve=O.rtl,Se=O.currentSlide,Te=O.edgeFriction,Ne=O.edgeDragged,Oe=O.onEdge,Le=O.swiped,Re=O.swiping,_=O.slideCount,de=O.slidesToScroll,ce=O.infinite,G=O.touchObject,Y=O.swipeEvent,te=O.listHeight,pe=O.listWidth;if(!U){if(J)return g(b);Q&&ne&&ie&&g(b);var ye,le={},je=R(O);G.curX=b.touches?b.touches[0].pageX:b.clientX,G.curY=b.touches?b.touches[0].pageY:b.clientY,G.swipeLength=Math.round(Math.sqrt(Math.pow(G.curX-G.startX,2)));var Ee=Math.round(Math.sqrt(Math.pow(G.curY-G.startY,2)));if(!ie&&!Re&&Ee>10)return{scrolling:!0};ie&&(G.swipeLength=Ee);var ee=(ve?-1:1)*(G.curX>G.startX?1:-1);ie&&(ee=G.curY>G.startY?1:-1);var xe=Math.ceil(_/de),ke=C(O.touchObject,ie),Ce=G.swipeLength;return ce||(Se===0&&(ke==="right"||ke==="down")||Se+1>=xe&&(ke==="left"||ke==="up")||!L(O)&&(ke==="left"||ke==="up"))&&(Ce=G.swipeLength*Te,Ne===!1&&Oe&&(Oe(ke),le.edgeDragged=!0)),!Le&&Y&&(Y(ke),le.swiped=!0),Q?ye=je+Ce*(te/pe)*ee:ve?ye=je-Ce*ee:ye=je+Ce*ee,ie&&(ye=je+Ce*ee),le=c(c({},le),{},{touchObject:G,swipeLeft:ye,trackStyle:H(c(c({},O),{},{left:ye}))}),Math.abs(G.curX-G.startX)<Math.abs(G.curY-G.startY)*.8||G.swipeLength>10&&(le.swiping=!0,g(b)),le}},Ae.swipeEnd=function(b,O){var U=O.dragging,J=O.swipe,Q=O.touchObject,ne=O.listWidth,ie=O.touchThreshold,ve=O.verticalSwiping,Se=O.listHeight,Te=O.swipeToSlide,Ne=O.scrolling,Oe=O.onSwipe,Le=O.targetSlide,Re=O.currentSlide,_=O.infinite;if(!U)return J&&g(b),{};var de=ve?Se/ie:ne/ie,ce=C(Q,ve),G={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ne||!Q.swipeLength)return G;if(Q.swipeLength>de){g(b),Oe&&Oe(ce);var Y,te,pe=_?Re:Le;switch(ce){case"left":case"up":te=pe+z(O),Y=Te?N(O,te):te,G.currentDirection=0;break;case"right":case"down":te=pe-z(O),Y=Te?N(O,te):te,G.currentDirection=1;break;default:Y=pe}G.triggerSlideHandler=Y}else{var ye=R(O);G.trackStyle=M(c(c({},O),{},{left:ye}))}return G};var I=Ae.getNavigableIndexes=function(b){for(var O=b.infinite?b.slideCount*2:b.slideCount,U=b.infinite?b.slidesToShow*-1:0,J=b.infinite?b.slidesToShow*-1:0,Q=[];U<O;)Q.push(U),U=J+b.slidesToScroll,J+=Math.min(b.slidesToScroll,b.slidesToShow);return Q},N=Ae.checkNavigable=function(b,O){var U=I(b),J=0;if(O>U[U.length-1])O=U[U.length-1];else for(var Q in U){if(O<U[Q]){O=J;break}J=U[Q]}return O},z=Ae.getSlideCount=function(b){var O=b.centerMode?b.slideWidth*Math.floor(b.slidesToShow/2):0;if(b.swipeToSlide){var U,J=b.listRef,Q=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from(Q).every(function(ve){if(b.vertical){if(ve.offsetTop+E(ve)/2>b.swipeLeft*-1)return U=ve,!1}else if(ve.offsetLeft-O+A(ve)/2>b.swipeLeft*-1)return U=ve,!1;return!0}),!U)return 0;var ne=b.rtl===!0?b.slideCount-b.currentSlide:b.currentSlide,ie=Math.abs(U.dataset.index-ne)||1;return ie}else return b.slidesToScroll},F=Ae.checkSpecKeys=function(b,O){return O.reduce(function(U,J){return U&&b.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",b)},H=Ae.getTrackCSS=function(b){F(b,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var O,U,J=b.slideCount+2*b.slidesToShow;b.vertical?U=J*b.slideHeight:O=V(b)*b.slideWidth;var Q={opacity:1,transition:"",WebkitTransition:""};if(b.useTransform){var ne=b.vertical?"translate3d(0px, "+b.left+"px, 0px)":"translate3d("+b.left+"px, 0px, 0px)",ie=b.vertical?"translate3d(0px, "+b.left+"px, 0px)":"translate3d("+b.left+"px, 0px, 0px)",ve=b.vertical?"translateY("+b.left+"px)":"translateX("+b.left+"px)";Q=c(c({},Q),{},{WebkitTransform:ne,transform:ie,msTransform:ve})}else b.vertical?Q.top=b.left:Q.left=b.left;return b.fade&&(Q={opacity:1}),O&&(Q.width=O),U&&(Q.height=U),window&&!window.addEventListener&&window.attachEvent&&(b.vertical?Q.marginTop=b.left+"px":Q.marginLeft=b.left+"px"),Q},M=Ae.getTrackAnimateCSS=function(b){F(b,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var O=H(b);return b.useTransform?(O.WebkitTransition="-webkit-transform "+b.speed+"ms "+b.cssEase,O.transition="transform "+b.speed+"ms "+b.cssEase):b.vertical?O.transition="top "+b.speed+"ms "+b.cssEase:O.transition="left "+b.speed+"ms "+b.cssEase,O},R=Ae.getTrackLeft=function(b){if(b.unslick)return 0;F(b,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var O=b.slideIndex,U=b.trackRef,J=b.infinite,Q=b.centerMode,ne=b.slideCount,ie=b.slidesToShow,ve=b.slidesToScroll,Se=b.slideWidth,Te=b.listWidth,Ne=b.variableWidth,Oe=b.slideHeight,Le=b.fade,Re=b.vertical,_=0,de,ce,G=0;if(Le||b.slideCount===1)return 0;var Y=0;if(J?(Y=-K(b),ne%ve!==0&&O+ve>ne&&(Y=-(O>ne?ie-(O-ne):ne%ve)),Q&&(Y+=parseInt(ie/2))):(ne%ve!==0&&O+ve>ne&&(Y=ie-ne%ve),Q&&(Y=parseInt(ie/2))),_=Y*Se,G=Y*Oe,Re?de=O*Oe*-1+G:de=O*Se*-1+_,Ne===!0){var te,pe=U&&U.node;if(te=O+K(b),ce=pe&&pe.childNodes[te],de=ce?ce.offsetLeft*-1:0,Q===!0){te=J?O+K(b):O,ce=pe&&pe.children[te],de=0;for(var ye=0;ye<te;ye++)de-=pe&&pe.children[ye]&&pe.children[ye].offsetWidth;de-=parseInt(b.centerPadding),de+=ce&&(Te-ce.offsetWidth)/2}}return de},K=Ae.getPreClones=function(b){return b.unslick||!b.infinite?0:b.variableWidth?b.slideCount:b.slidesToShow+(b.centerMode?1:0)},P=Ae.getPostClones=function(b){return b.unslick||!b.infinite?0:b.slideCount},V=Ae.getTotalSlides=function(b){return b.slideCount===1?1:K(b)+b.slideCount+P(b)},j=Ae.siblingDirection=function(b){return b.targetSlide>b.currentSlide?b.targetSlide>b.currentSlide+W(b)?"left":"right":b.targetSlide<b.currentSlide-Z(b)?"right":"left"},W=Ae.slidesOnRight=function(b){var O=b.slidesToShow,U=b.centerMode,J=b.rtl,Q=b.centerPadding;if(U){var ne=(O-1)/2+1;return parseInt(Q)>0&&(ne+=1),J&&O%2===0&&(ne+=1),ne}return J?0:O-1},Z=Ae.slidesOnLeft=function(b){var O=b.slidesToShow,U=b.centerMode,J=b.rtl,Q=b.centerPadding;if(U){var ne=(O-1)/2+1;return parseInt(Q)>0&&(ne+=1),!J&&O%2===0&&(ne+=1),ne}return J?O-1:0};Ae.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var v=Ae.validSettings=Object.keys(n.default);function ue(q){return v.reduce(function(b,O){return q.hasOwnProperty(O)&&(b[O]=q[O]),b},{})}return Ae}var Ki={},Hx;function Dk(){if(Hx)return Ki;Hx=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.Track=void 0;var e=s(Cn()),n=s(cu()),a=Cl();function s(M){return M&&M.__esModule?M:{default:M}}function l(M){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},l(M)}function c(){return c=Object.assign?Object.assign.bind():function(M){for(var R=1;R<arguments.length;R++){var K=arguments[R];for(var P in K)Object.prototype.hasOwnProperty.call(K,P)&&(M[P]=K[P])}return M},c.apply(this,arguments)}function d(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}function f(M,R){for(var K=0;K<R.length;K++){var P=R[K];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,L(P.key),P)}}function h(M,R,K){return R&&f(M.prototype,R),Object.defineProperty(M,"prototype",{writable:!1}),M}function m(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),R&&g(M,R)}function g(M,R){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,V){return P.__proto__=V,P},g(M,R)}function x(M){var R=k();return function(){var P=S(M),V;if(R){var j=S(this).constructor;V=Reflect.construct(P,arguments,j)}else V=P.apply(this,arguments);return w(this,V)}}function w(M,R){if(R&&(l(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(M)}function T(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function k(){try{var M=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k=function(){return!!M})()}function S(M){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},S(M)}function A(M,R){var K=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);R&&(P=P.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),K.push.apply(K,P)}return K}function E(M){for(var R=1;R<arguments.length;R++){var K=arguments[R]!=null?arguments[R]:{};R%2?A(Object(K),!0).forEach(function(P){C(M,P,K[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(K)):A(Object(K)).forEach(function(P){Object.defineProperty(M,P,Object.getOwnPropertyDescriptor(K,P))})}return M}function C(M,R,K){return R=L(R),R in M?Object.defineProperty(M,R,{value:K,enumerable:!0,configurable:!0,writable:!0}):M[R]=K,M}function L(M){var R=I(M,"string");return l(R)=="symbol"?R:String(R)}function I(M,R){if(l(M)!="object"||!M)return M;var K=M[Symbol.toPrimitive];if(K!==void 0){var P=K.call(M,R);if(l(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(M)}var N=function(R){var K,P,V,j,W;R.rtl?W=R.slideCount-1-R.index:W=R.index,V=W<0||W>=R.slideCount,R.centerMode?(j=Math.floor(R.slidesToShow/2),P=(W-R.currentSlide)%R.slideCount===0,W>R.currentSlide-j-1&&W<=R.currentSlide+j&&(K=!0)):K=R.currentSlide<=W&&W<R.currentSlide+R.slidesToShow;var Z;R.targetSlide<0?Z=R.targetSlide+R.slideCount:R.targetSlide>=R.slideCount?Z=R.targetSlide-R.slideCount:Z=R.targetSlide;var v=W===Z;return{"slick-slide":!0,"slick-active":K,"slick-center":P,"slick-cloned":V,"slick-current":v}},z=function(R){var K={};return(R.variableWidth===void 0||R.variableWidth===!1)&&(K.width=R.slideWidth),R.fade&&(K.position="relative",R.vertical?K.top=-R.index*parseInt(R.slideHeight):K.left=-R.index*parseInt(R.slideWidth),K.opacity=R.currentSlide===R.index?1:0,K.zIndex=R.currentSlide===R.index?999:998,R.useCSS&&(K.transition="opacity "+R.speed+"ms "+R.cssEase+", visibility "+R.speed+"ms "+R.cssEase)),K},F=function(R,K){return R.key||K},H=function(R){var K,P=[],V=[],j=[],W=e.default.Children.count(R.children),Z=(0,a.lazyStartIndex)(R),v=(0,a.lazyEndIndex)(R);return e.default.Children.forEach(R.children,function(ue,q){var b,O={message:"children",index:q,slidesToScroll:R.slidesToScroll,currentSlide:R.currentSlide};!R.lazyLoad||R.lazyLoad&&R.lazyLoadedList.indexOf(q)>=0?b=ue:b=e.default.createElement("div",null);var U=z(E(E({},R),{},{index:q})),J=b.props.className||"",Q=N(E(E({},R),{},{index:q}));if(P.push(e.default.cloneElement(b,{key:"original"+F(b,q),"data-index":q,className:(0,n.default)(Q,J),tabIndex:"-1","aria-hidden":!Q["slick-active"],style:E(E({outline:"none"},b.props.style||{}),U),onClick:function(ve){b.props&&b.props.onClick&&b.props.onClick(ve),R.focusOnSelect&&R.focusOnSelect(O)}})),R.infinite&&R.fade===!1){var ne=W-q;ne<=(0,a.getPreClones)(R)&&(K=-ne,K>=Z&&(b=ue),Q=N(E(E({},R),{},{index:K})),V.push(e.default.cloneElement(b,{key:"precloned"+F(b,K),"data-index":K,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:E(E({},b.props.style||{}),U),onClick:function(ve){b.props&&b.props.onClick&&b.props.onClick(ve),R.focusOnSelect&&R.focusOnSelect(O)}}))),K=W+q,K<v&&(b=ue),Q=N(E(E({},R),{},{index:K})),j.push(e.default.cloneElement(b,{key:"postcloned"+F(b,K),"data-index":K,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:E(E({},b.props.style||{}),U),onClick:function(ve){b.props&&b.props.onClick&&b.props.onClick(ve),R.focusOnSelect&&R.focusOnSelect(O)}}))}}),R.rtl?V.concat(P,j).reverse():V.concat(P,j)};return Ki.Track=function(M){m(K,M);var R=x(K);function K(){var P;d(this,K);for(var V=arguments.length,j=new Array(V),W=0;W<V;W++)j[W]=arguments[W];return P=R.call.apply(R,[this].concat(j)),C(T(P),"node",null),C(T(P),"handleRef",function(Z){P.node=Z}),P}return h(K,[{key:"render",value:function(){var V=H(this.props),j=this.props,W=j.onMouseEnter,Z=j.onMouseOver,v=j.onMouseLeave,ue={onMouseEnter:W,onMouseOver:Z,onMouseLeave:v};return e.default.createElement("div",c({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ue),V)}}]),K}(e.default.PureComponent),Ki}var $i={},Ix;function Mk(){if(Ix)return $i;Ix=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(N)}Object.defineProperty($i,"__esModule",{value:!0}),$i.Dots=void 0;var n=l(Cn()),a=l(cu()),s=Cl();function l(N){return N&&N.__esModule?N:{default:N}}function c(N,z){var F=Object.keys(N);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);z&&(H=H.filter(function(M){return Object.getOwnPropertyDescriptor(N,M).enumerable})),F.push.apply(F,H)}return F}function d(N){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?c(Object(F),!0).forEach(function(H){f(N,H,F[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(F)):c(Object(F)).forEach(function(H){Object.defineProperty(N,H,Object.getOwnPropertyDescriptor(F,H))})}return N}function f(N,z,F){return z=x(z),z in N?Object.defineProperty(N,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[z]=F,N}function h(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}function m(N,z){for(var F=0;F<z.length;F++){var H=z[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,x(H.key),H)}}function g(N,z,F){return z&&m(N.prototype,z),Object.defineProperty(N,"prototype",{writable:!1}),N}function x(N){var z=w(N,"string");return e(z)=="symbol"?z:String(z)}function w(N,z){if(e(N)!="object"||!N)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var H=F.call(N,z);if(e(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function T(N,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(z&&z.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),z&&k(N,z)}function k(N,z){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,M){return H.__proto__=M,H},k(N,z)}function S(N){var z=C();return function(){var H=L(N),M;if(z){var R=L(this).constructor;M=Reflect.construct(H,arguments,R)}else M=H.apply(this,arguments);return A(this,M)}}function A(N,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E(N)}function E(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function C(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C=function(){return!!N})()}function L(N){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},L(N)}var I=function(z){var F;return z.infinite?F=Math.ceil(z.slideCount/z.slidesToScroll):F=Math.ceil((z.slideCount-z.slidesToShow)/z.slidesToScroll)+1,F};return $i.Dots=function(N){T(F,N);var z=S(F);function F(){return h(this,F),z.apply(this,arguments)}return g(F,[{key:"clickHandler",value:function(M,R){R.preventDefault(),this.props.clickHandler(M)}},{key:"render",value:function(){for(var M=this.props,R=M.onMouseEnter,K=M.onMouseOver,P=M.onMouseLeave,V=M.infinite,j=M.slidesToScroll,W=M.slidesToShow,Z=M.slideCount,v=M.currentSlide,ue=I({slideCount:Z,slidesToScroll:j,slidesToShow:W,infinite:V}),q={onMouseEnter:R,onMouseOver:K,onMouseLeave:P},b=[],O=0;O<ue;O++){var U=(O+1)*j-1,J=V?U:(0,s.clamp)(U,0,Z-1),Q=J-(j-1),ne=V?Q:(0,s.clamp)(Q,0,Z-1),ie=(0,a.default)({"slick-active":V?v>=ne&&v<=J:v===ne}),ve={message:"dots",index:O,slidesToScroll:j,currentSlide:v},Se=this.clickHandler.bind(this,ve);b=b.concat(n.default.createElement("li",{key:O,className:ie},n.default.cloneElement(this.props.customPaging(O),{onClick:Se})))}return n.default.cloneElement(this.props.appendDots(b),d({className:this.props.dotsClass},q))}}]),F}(n.default.PureComponent),$i}var ja={},qx;function Lk(){if(qx)return ja;qx=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(N)}Object.defineProperty(ja,"__esModule",{value:!0}),ja.PrevArrow=ja.NextArrow=void 0;var n=l(Cn()),a=l(cu()),s=Cl();function l(N){return N&&N.__esModule?N:{default:N}}function c(){return c=Object.assign?Object.assign.bind():function(N){for(var z=1;z<arguments.length;z++){var F=arguments[z];for(var H in F)Object.prototype.hasOwnProperty.call(F,H)&&(N[H]=F[H])}return N},c.apply(this,arguments)}function d(N,z){var F=Object.keys(N);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);z&&(H=H.filter(function(M){return Object.getOwnPropertyDescriptor(N,M).enumerable})),F.push.apply(F,H)}return F}function f(N){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?d(Object(F),!0).forEach(function(H){h(N,H,F[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(F)):d(Object(F)).forEach(function(H){Object.defineProperty(N,H,Object.getOwnPropertyDescriptor(F,H))})}return N}function h(N,z,F){return z=w(z),z in N?Object.defineProperty(N,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[z]=F,N}function m(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}function g(N,z){for(var F=0;F<z.length;F++){var H=z[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,w(H.key),H)}}function x(N,z,F){return z&&g(N.prototype,z),Object.defineProperty(N,"prototype",{writable:!1}),N}function w(N){var z=T(N,"string");return e(z)=="symbol"?z:String(z)}function T(N,z){if(e(N)!="object"||!N)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var H=F.call(N,z);if(e(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function k(N,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(z&&z.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),z&&S(N,z)}function S(N,z){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,M){return H.__proto__=M,H},S(N,z)}function A(N){var z=L();return function(){var H=I(N),M;if(z){var R=I(this).constructor;M=Reflect.construct(H,arguments,R)}else M=H.apply(this,arguments);return E(this,M)}}function E(N,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(N)}function C(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function L(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!N})()}function I(N){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},I(N)}return ja.PrevArrow=function(N){k(F,N);var z=A(F);function F(){return m(this,F),z.apply(this,arguments)}return x(F,[{key:"clickHandler",value:function(M,R){R&&R.preventDefault(),this.props.clickHandler(M,R)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-prev":!0},R=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(M["slick-disabled"]=!0,R=null);var K={key:"0","data-role":"none",className:(0,a.default)(M),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},V;return this.props.prevArrow?V=n.default.cloneElement(this.props.prevArrow,f(f({},K),P)):V=n.default.createElement("button",c({key:"0",type:"button"},K)," ","Previous"),V}}]),F}(n.default.PureComponent),ja.NextArrow=function(N){k(F,N);var z=A(F);function F(){return m(this,F),z.apply(this,arguments)}return x(F,[{key:"clickHandler",value:function(M,R){R&&R.preventDefault(),this.props.clickHandler(M,R)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-next":!0},R=this.clickHandler.bind(this,{message:"next"});(0,s.canGoNext)(this.props)||(M["slick-disabled"]=!0,R=null);var K={key:"1","data-role":"none",className:(0,a.default)(M),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},V;return this.props.nextArrow?V=n.default.cloneElement(this.props.nextArrow,f(f({},K),P)):V=n.default.createElement("button",c({key:"1",type:"button"},K)," ","Next"),V}}]),F}(n.default.PureComponent),ja}var W1=function(){if(typeof Map<"u")return Map;function e(n,a){var s=-1;return n.some(function(l,c){return l[0]===a?(s=c,!0):!1}),s}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var s=e(this.__entries__,a),l=this.__entries__[s];return l&&l[1]},n.prototype.set=function(a,s){var l=e(this.__entries__,a);~l?this.__entries__[l][1]=s:this.__entries__.push([a,s])},n.prototype.delete=function(a){var s=this.__entries__,l=e(s,a);~l&&s.splice(l,1)},n.prototype.has=function(a){return!!~e(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,s){s===void 0&&(s=null);for(var l=0,c=this.__entries__;l<c.length;l++){var d=c[l];a.call(s,d[1],d[0])}},n}()}(),Bh=typeof window<"u"&&typeof document<"u"&&window.document===document,Pc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Pk=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),zk=2;function Uk(e,n){var a=!1,s=!1,l=0;function c(){a&&(a=!1,e()),s&&f()}function d(){Pk(c)}function f(){var h=Date.now();if(a){if(h-l<zk)return;s=!0}else a=!0,s=!1,setTimeout(d,n);l=h}return f}var Bk=20,Fk=["top","right","bottom","left","width","height","size","weight"],Vk=typeof MutationObserver<"u",Hk=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Uk(this.refresh.bind(this),Bk)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var a=this.observers_,s=a.indexOf(n);~s&&a.splice(s,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return n.forEach(function(a){return a.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Bh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vk?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Bh||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var a=n.propertyName,s=a===void 0?"":a,l=Fk.some(function(c){return!!~s.indexOf(c)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),K1=function(e,n){for(var a=0,s=Object.keys(n);a<s.length;a++){var l=s[a];Object.defineProperty(e,l,{value:n[l],enumerable:!1,writable:!1,configurable:!0})}return e},Bs=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Pc},$1=uu(0,0,0,0);function zc(e){return parseFloat(e)||0}function Gx(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(s,l){var c=e["border-"+l+"-width"];return s+zc(c)},0)}function Ik(e){for(var n=["top","right","bottom","left"],a={},s=0,l=n;s<l.length;s++){var c=l[s],d=e["padding-"+c];a[c]=zc(d)}return a}function qk(e){var n=e.getBBox();return uu(0,0,n.width,n.height)}function Gk(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return $1;var s=Bs(e).getComputedStyle(e),l=Ik(s),c=l.left+l.right,d=l.top+l.bottom,f=zc(s.width),h=zc(s.height);if(s.boxSizing==="border-box"&&(Math.round(f+c)!==n&&(f-=Gx(s,"left","right")+c),Math.round(h+d)!==a&&(h-=Gx(s,"top","bottom")+d)),!Xk(e)){var m=Math.round(f+c)-n,g=Math.round(h+d)-a;Math.abs(m)!==1&&(f-=m),Math.abs(g)!==1&&(h-=g)}return uu(l.left,l.top,f,h)}var Yk=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Bs(e).SVGGraphicsElement}:function(e){return e instanceof Bs(e).SVGElement&&typeof e.getBBox=="function"}}();function Xk(e){return e===Bs(e).document.documentElement}function Zk(e){return Bh?Yk(e)?qk(e):Gk(e):$1}function Wk(e){var n=e.x,a=e.y,s=e.width,l=e.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(c.prototype);return K1(d,{x:n,y:a,width:s,height:l,top:a,right:n+s,bottom:l+a,left:n}),d}function uu(e,n,a,s){return{x:e,y:n,width:a,height:s}}var Kk=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=uu(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=Zk(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),$k=function(){function e(n,a){var s=Wk(a);K1(this,{target:n,contentRect:s})}return e}(),Qk=function(){function e(n,a,s){if(this.activeObservations_=[],this.observations_=new W1,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=a,this.callbackCtx_=s}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Bs(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new Kk(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Bs(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)&&(a.delete(n),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&n.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,a=this.activeObservations_.map(function(s){return new $k(s.target,s.broadcastRect())});this.callback_.call(n,a,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Q1=typeof WeakMap<"u"?new WeakMap:new W1,J1=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=Hk.getInstance(),s=new Qk(n,a,this);Q1.set(this,s)}return e}();["observe","unobserve","disconnect"].forEach(function(e){J1.prototype[e]=function(){var n;return(n=Q1.get(this))[e].apply(n,arguments)}});var Jk=function(){return typeof Pc.ResizeObserver<"u"?Pc.ResizeObserver:J1}();const e_=Object.freeze(Object.defineProperty({__proto__:null,default:Jk},Symbol.toStringTag,{value:"Module"})),t_=G3(e_);var Yx;function n_(){if(Yx)return Wi;Yx=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.InnerSlider=void 0;var e=m(Cn()),n=m(Rk()),a=m(Ck()),s=m(cu()),l=Cl(),c=Dk(),d=Mk(),f=Lk(),h=m(t_);function m(V){return V&&V.__esModule?V:{default:V}}function g(V){"@babel/helpers - typeof";return g=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},g(V)}function x(){return x=Object.assign?Object.assign.bind():function(V){for(var j=1;j<arguments.length;j++){var W=arguments[j];for(var Z in W)Object.prototype.hasOwnProperty.call(W,Z)&&(V[Z]=W[Z])}return V},x.apply(this,arguments)}function w(V,j){if(V==null)return{};var W=T(V,j),Z,v;if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(V);for(v=0;v<ue.length;v++)Z=ue[v],!(j.indexOf(Z)>=0)&&Object.prototype.propertyIsEnumerable.call(V,Z)&&(W[Z]=V[Z])}return W}function T(V,j){if(V==null)return{};var W={},Z=Object.keys(V),v,ue;for(ue=0;ue<Z.length;ue++)v=Z[ue],!(j.indexOf(v)>=0)&&(W[v]=V[v]);return W}function k(V,j){var W=Object.keys(V);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(V);j&&(Z=Z.filter(function(v){return Object.getOwnPropertyDescriptor(V,v).enumerable})),W.push.apply(W,Z)}return W}function S(V){for(var j=1;j<arguments.length;j++){var W=arguments[j]!=null?arguments[j]:{};j%2?k(Object(W),!0).forEach(function(Z){R(V,Z,W[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(W)):k(Object(W)).forEach(function(Z){Object.defineProperty(V,Z,Object.getOwnPropertyDescriptor(W,Z))})}return V}function A(V,j){if(!(V instanceof j))throw new TypeError("Cannot call a class as a function")}function E(V,j){for(var W=0;W<j.length;W++){var Z=j[W];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(V,K(Z.key),Z)}}function C(V,j,W){return j&&E(V.prototype,j),Object.defineProperty(V,"prototype",{writable:!1}),V}function L(V,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(j&&j.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),j&&I(V,j)}function I(V,j){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,v){return Z.__proto__=v,Z},I(V,j)}function N(V){var j=H();return function(){var Z=M(V),v;if(j){var ue=M(this).constructor;v=Reflect.construct(Z,arguments,ue)}else v=Z.apply(this,arguments);return z(this,v)}}function z(V,j){if(j&&(g(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(V)}function F(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function H(){try{var V=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H=function(){return!!V})()}function M(V){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},M(V)}function R(V,j,W){return j=K(j),j in V?Object.defineProperty(V,j,{value:W,enumerable:!0,configurable:!0,writable:!0}):V[j]=W,V}function K(V){var j=P(V,"string");return g(j)=="symbol"?j:String(j)}function P(V,j){if(g(V)!="object"||!V)return V;var W=V[Symbol.toPrimitive];if(W!==void 0){var Z=W.call(V,j);if(g(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(V)}return Wi.InnerSlider=function(V){L(W,V);var j=N(W);function W(Z){var v;A(this,W),v=j.call(this,Z),R(F(v),"listRefHandler",function(q){return v.list=q}),R(F(v),"trackRefHandler",function(q){return v.track=q}),R(F(v),"adaptHeight",function(){if(v.props.adaptiveHeight&&v.list){var q=v.list.querySelector('[data-index="'.concat(v.state.currentSlide,'"]'));v.list.style.height=(0,l.getHeight)(q)+"px"}}),R(F(v),"componentDidMount",function(){if(v.props.onInit&&v.props.onInit(),v.props.lazyLoad){var q=(0,l.getOnDemandLazySlides)(S(S({},v.props),v.state));q.length>0&&(v.setState(function(O){return{lazyLoadedList:O.lazyLoadedList.concat(q)}}),v.props.onLazyLoad&&v.props.onLazyLoad(q))}var b=S({listRef:v.list,trackRef:v.track},v.props);v.updateState(b,!0,function(){v.adaptHeight(),v.props.autoplay&&v.autoPlay("update")}),v.props.lazyLoad==="progressive"&&(v.lazyLoadTimer=setInterval(v.progressiveLazyLoad,1e3)),v.ro=new h.default(function(){v.state.animating?(v.onWindowResized(!1),v.callbackTimers.push(setTimeout(function(){return v.onWindowResized()},v.props.speed))):v.onWindowResized()}),v.ro.observe(v.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(O){O.onfocus=v.props.pauseOnFocus?v.onSlideFocus:null,O.onblur=v.props.pauseOnFocus?v.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",v.onWindowResized):window.attachEvent("onresize",v.onWindowResized)}),R(F(v),"componentWillUnmount",function(){v.animationEndCallback&&clearTimeout(v.animationEndCallback),v.lazyLoadTimer&&clearInterval(v.lazyLoadTimer),v.callbackTimers.length&&(v.callbackTimers.forEach(function(q){return clearTimeout(q)}),v.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",v.onWindowResized):window.detachEvent("onresize",v.onWindowResized),v.autoplayTimer&&clearInterval(v.autoplayTimer),v.ro.disconnect()}),R(F(v),"componentDidUpdate",function(q){if(v.checkImagesLoad(),v.props.onReInit&&v.props.onReInit(),v.props.lazyLoad){var b=(0,l.getOnDemandLazySlides)(S(S({},v.props),v.state));b.length>0&&(v.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(b)}}),v.props.onLazyLoad&&v.props.onLazyLoad(b))}v.adaptHeight();var O=S(S({listRef:v.list,trackRef:v.track},v.props),v.state),U=v.didPropsChange(q);U&&v.updateState(O,U,function(){v.state.currentSlide>=e.default.Children.count(v.props.children)&&v.changeSlide({message:"index",index:e.default.Children.count(v.props.children)-v.props.slidesToShow,currentSlide:v.state.currentSlide}),v.props.autoplay?v.autoPlay("update"):v.pause("paused")})}),R(F(v),"onWindowResized",function(q){v.debouncedResize&&v.debouncedResize.cancel(),v.debouncedResize=(0,a.default)(function(){return v.resizeWindow(q)},50),v.debouncedResize()}),R(F(v),"resizeWindow",function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,b=!!(v.track&&v.track.node);if(b){var O=S(S({listRef:v.list,trackRef:v.track},v.props),v.state);v.updateState(O,q,function(){v.props.autoplay?v.autoPlay("update"):v.pause("paused")}),v.setState({animating:!1}),clearTimeout(v.animationEndCallback),delete v.animationEndCallback}}),R(F(v),"updateState",function(q,b,O){var U=(0,l.initializedState)(q);q=S(S(S({},q),U),{},{slideIndex:U.currentSlide});var J=(0,l.getTrackLeft)(q);q=S(S({},q),{},{left:J});var Q=(0,l.getTrackCSS)(q);(b||e.default.Children.count(v.props.children)!==e.default.Children.count(q.children))&&(U.trackStyle=Q),v.setState(U,O)}),R(F(v),"ssrInit",function(){if(v.props.variableWidth){var q=0,b=0,O=[],U=(0,l.getPreClones)(S(S(S({},v.props),v.state),{},{slideCount:v.props.children.length})),J=(0,l.getPostClones)(S(S(S({},v.props),v.state),{},{slideCount:v.props.children.length}));v.props.children.forEach(function(ce){O.push(ce.props.style.width),q+=ce.props.style.width});for(var Q=0;Q<U;Q++)b+=O[O.length-1-Q],q+=O[O.length-1-Q];for(var ne=0;ne<J;ne++)q+=O[ne];for(var ie=0;ie<v.state.currentSlide;ie++)b+=O[ie];var ve={width:q+"px",left:-b+"px"};if(v.props.centerMode){var Se="".concat(O[v.state.currentSlide],"px");ve.left="calc(".concat(ve.left," + (100% - ").concat(Se,") / 2 ) ")}return{trackStyle:ve}}var Te=e.default.Children.count(v.props.children),Ne=S(S(S({},v.props),v.state),{},{slideCount:Te}),Oe=(0,l.getPreClones)(Ne)+(0,l.getPostClones)(Ne)+Te,Le=100/v.props.slidesToShow*Oe,Re=100/Oe,_=-Re*((0,l.getPreClones)(Ne)+v.state.currentSlide)*Le/100;v.props.centerMode&&(_+=(100-Re*Le/100)/2);var de={width:Le+"%",left:_+"%"};return{slideWidth:Re+"%",trackStyle:de}}),R(F(v),"checkImagesLoad",function(){var q=v.list&&v.list.querySelectorAll&&v.list.querySelectorAll(".slick-slide img")||[],b=q.length,O=0;Array.prototype.forEach.call(q,function(U){var J=function(){return++O&&O>=b&&v.onWindowResized()};if(!U.onclick)U.onclick=function(){return U.parentNode.focus()};else{var Q=U.onclick;U.onclick=function(ne){Q(ne),U.parentNode.focus()}}U.onload||(v.props.lazyLoad?U.onload=function(){v.adaptHeight(),v.callbackTimers.push(setTimeout(v.onWindowResized,v.props.speed))}:(U.onload=J,U.onerror=function(){J(),v.props.onLazyLoadError&&v.props.onLazyLoadError()}))})}),R(F(v),"progressiveLazyLoad",function(){for(var q=[],b=S(S({},v.props),v.state),O=v.state.currentSlide;O<v.state.slideCount+(0,l.getPostClones)(b);O++)if(v.state.lazyLoadedList.indexOf(O)<0){q.push(O);break}for(var U=v.state.currentSlide-1;U>=-(0,l.getPreClones)(b);U--)if(v.state.lazyLoadedList.indexOf(U)<0){q.push(U);break}q.length>0?(v.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(q)}}),v.props.onLazyLoad&&v.props.onLazyLoad(q)):v.lazyLoadTimer&&(clearInterval(v.lazyLoadTimer),delete v.lazyLoadTimer)}),R(F(v),"slideHandler",function(q){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=v.props,U=O.asNavFor,J=O.beforeChange,Q=O.onLazyLoad,ne=O.speed,ie=O.afterChange,ve=v.state.currentSlide,Se=(0,l.slideHandler)(S(S(S({index:q},v.props),v.state),{},{trackRef:v.track,useCSS:v.props.useCSS&&!b})),Te=Se.state,Ne=Se.nextState;if(Te){J&&J(ve,Te.currentSlide);var Oe=Te.lazyLoadedList.filter(function(Le){return v.state.lazyLoadedList.indexOf(Le)<0});Q&&Oe.length>0&&Q(Oe),!v.props.waitForAnimate&&v.animationEndCallback&&(clearTimeout(v.animationEndCallback),ie&&ie(ve),delete v.animationEndCallback),v.setState(Te,function(){U&&v.asNavForIndex!==q&&(v.asNavForIndex=q,U.innerSlider.slideHandler(q)),Ne&&(v.animationEndCallback=setTimeout(function(){var Le=Ne.animating,Re=w(Ne,["animating"]);v.setState(Re,function(){v.callbackTimers.push(setTimeout(function(){return v.setState({animating:Le})},10)),ie&&ie(Te.currentSlide),delete v.animationEndCallback})},ne))})}}),R(F(v),"changeSlide",function(q){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=S(S({},v.props),v.state),U=(0,l.changeSlide)(O,q);if(!(U!==0&&!U)&&(b===!0?v.slideHandler(U,b):v.slideHandler(U),v.props.autoplay&&v.autoPlay("update"),v.props.focusOnSelect)){var J=v.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),R(F(v),"clickHandler",function(q){v.clickable===!1&&(q.stopPropagation(),q.preventDefault()),v.clickable=!0}),R(F(v),"keyHandler",function(q){var b=(0,l.keyHandler)(q,v.props.accessibility,v.props.rtl);b!==""&&v.changeSlide({message:b})}),R(F(v),"selectHandler",function(q){v.changeSlide(q)}),R(F(v),"disableBodyScroll",function(){var q=function(O){O=O||window.event,O.preventDefault&&O.preventDefault(),O.returnValue=!1};window.ontouchmove=q}),R(F(v),"enableBodyScroll",function(){window.ontouchmove=null}),R(F(v),"swipeStart",function(q){v.props.verticalSwiping&&v.disableBodyScroll();var b=(0,l.swipeStart)(q,v.props.swipe,v.props.draggable);b!==""&&v.setState(b)}),R(F(v),"swipeMove",function(q){var b=(0,l.swipeMove)(q,S(S(S({},v.props),v.state),{},{trackRef:v.track,listRef:v.list,slideIndex:v.state.currentSlide}));b&&(b.swiping&&(v.clickable=!1),v.setState(b))}),R(F(v),"swipeEnd",function(q){var b=(0,l.swipeEnd)(q,S(S(S({},v.props),v.state),{},{trackRef:v.track,listRef:v.list,slideIndex:v.state.currentSlide}));if(b){var O=b.triggerSlideHandler;delete b.triggerSlideHandler,v.setState(b),O!==void 0&&(v.slideHandler(O),v.props.verticalSwiping&&v.enableBodyScroll())}}),R(F(v),"touchEnd",function(q){v.swipeEnd(q),v.clickable=!0}),R(F(v),"slickPrev",function(){v.callbackTimers.push(setTimeout(function(){return v.changeSlide({message:"previous"})},0))}),R(F(v),"slickNext",function(){v.callbackTimers.push(setTimeout(function(){return v.changeSlide({message:"next"})},0))}),R(F(v),"slickGoTo",function(q){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q=Number(q),isNaN(q))return"";v.callbackTimers.push(setTimeout(function(){return v.changeSlide({message:"index",index:q,currentSlide:v.state.currentSlide},b)},0))}),R(F(v),"play",function(){var q;if(v.props.rtl)q=v.state.currentSlide-v.props.slidesToScroll;else if((0,l.canGoNext)(S(S({},v.props),v.state)))q=v.state.currentSlide+v.props.slidesToScroll;else return!1;v.slideHandler(q)}),R(F(v),"autoPlay",function(q){v.autoplayTimer&&clearInterval(v.autoplayTimer);var b=v.state.autoplaying;if(q==="update"){if(b==="hovered"||b==="focused"||b==="paused")return}else if(q==="leave"){if(b==="paused"||b==="focused")return}else if(q==="blur"&&(b==="paused"||b==="hovered"))return;v.autoplayTimer=setInterval(v.play,v.props.autoplaySpeed+50),v.setState({autoplaying:"playing"})}),R(F(v),"pause",function(q){v.autoplayTimer&&(clearInterval(v.autoplayTimer),v.autoplayTimer=null);var b=v.state.autoplaying;q==="paused"?v.setState({autoplaying:"paused"}):q==="focused"?(b==="hovered"||b==="playing")&&v.setState({autoplaying:"focused"}):b==="playing"&&v.setState({autoplaying:"hovered"})}),R(F(v),"onDotsOver",function(){return v.props.autoplay&&v.pause("hovered")}),R(F(v),"onDotsLeave",function(){return v.props.autoplay&&v.state.autoplaying==="hovered"&&v.autoPlay("leave")}),R(F(v),"onTrackOver",function(){return v.props.autoplay&&v.pause("hovered")}),R(F(v),"onTrackLeave",function(){return v.props.autoplay&&v.state.autoplaying==="hovered"&&v.autoPlay("leave")}),R(F(v),"onSlideFocus",function(){return v.props.autoplay&&v.pause("focused")}),R(F(v),"onSlideBlur",function(){return v.props.autoplay&&v.state.autoplaying==="focused"&&v.autoPlay("blur")}),R(F(v),"render",function(){var q=(0,s.default)("slick-slider",v.props.className,{"slick-vertical":v.props.vertical,"slick-initialized":!0}),b=S(S({},v.props),v.state),O=(0,l.extractObject)(b,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),U=v.props.pauseOnHover;O=S(S({},O),{},{onMouseEnter:U?v.onTrackOver:null,onMouseLeave:U?v.onTrackLeave:null,onMouseOver:U?v.onTrackOver:null,focusOnSelect:v.props.focusOnSelect&&v.clickable?v.selectHandler:null});var J;if(v.props.dots===!0&&v.state.slideCount>=v.props.slidesToShow){var Q=(0,l.extractObject)(b,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),ne=v.props.pauseOnDotsHover;Q=S(S({},Q),{},{clickHandler:v.changeSlide,onMouseEnter:ne?v.onDotsLeave:null,onMouseOver:ne?v.onDotsOver:null,onMouseLeave:ne?v.onDotsLeave:null}),J=e.default.createElement(d.Dots,Q)}var ie,ve,Se=(0,l.extractObject)(b,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Se.clickHandler=v.changeSlide,v.props.arrows&&(ie=e.default.createElement(f.PrevArrow,Se),ve=e.default.createElement(f.NextArrow,Se));var Te=null;v.props.vertical&&(Te={height:v.state.listHeight});var Ne=null;v.props.vertical===!1?v.props.centerMode===!0&&(Ne={padding:"0px "+v.props.centerPadding}):v.props.centerMode===!0&&(Ne={padding:v.props.centerPadding+" 0px"});var Oe=S(S({},Te),Ne),Le=v.props.touchMove,Re={className:"slick-list",style:Oe,onClick:v.clickHandler,onMouseDown:Le?v.swipeStart:null,onMouseMove:v.state.dragging&&Le?v.swipeMove:null,onMouseUp:Le?v.swipeEnd:null,onMouseLeave:v.state.dragging&&Le?v.swipeEnd:null,onTouchStart:Le?v.swipeStart:null,onTouchMove:v.state.dragging&&Le?v.swipeMove:null,onTouchEnd:Le?v.touchEnd:null,onTouchCancel:v.state.dragging&&Le?v.swipeEnd:null,onKeyDown:v.props.accessibility?v.keyHandler:null},_={className:q,dir:"ltr",style:v.props.style};return v.props.unslick&&(Re={className:"slick-list"},_={className:q}),e.default.createElement("div",_,v.props.unslick?"":ie,e.default.createElement("div",x({ref:v.listRefHandler},Re),e.default.createElement(c.Track,x({ref:v.trackRefHandler},O),v.props.children)),v.props.unslick?"":ve,v.props.unslick?"":J)}),v.list=null,v.track=null,v.state=S(S({},n.default),{},{currentSlide:v.props.initialSlide,targetSlide:v.props.initialSlide?v.props.initialSlide:0,slideCount:e.default.Children.count(v.props.children)}),v.callbackTimers=[],v.clickable=!0,v.debouncedResize=null;var ue=v.ssrInit();return v.state=S(S({},v.state),ue),v}return C(W,[{key:"didPropsChange",value:function(v){for(var ue=!1,q=0,b=Object.keys(this.props);q<b.length;q++){var O=b[q];if(!v.hasOwnProperty(O)){ue=!0;break}if(!(g(v[O])==="object"||typeof v[O]=="function"||isNaN(v[O]))&&v[O]!==this.props[O]){ue=!0;break}}return ue||e.default.Children.count(this.props.children)!==e.default.Children.count(v.children)}}]),W}(e.default.Component),Wi}var Qf,Xx;function r_(){if(Xx)return Qf;Xx=1;var e=function(n){return n.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return Qf=e,Qf}var Jf,Zx;function a_(){if(Zx)return Jf;Zx=1;var e=r_(),n=function(l){var c=/[height|width]$/;return c.test(l)},a=function(l){var c="",d=Object.keys(l);return d.forEach(function(f,h){var m=l[f];f=e(f),n(f)&&typeof m=="number"&&(m=m+"px"),m===!0?c+=f:m===!1?c+="not "+f:c+="("+f+": "+m+")",h<d.length-1&&(c+=" and ")}),c},s=function(l){var c="";return typeof l=="string"?l:l instanceof Array?(l.forEach(function(d,f){c+=a(d),f<l.length-1&&(c+=", ")}),c):a(l)};return Jf=s,Jf}var eh,Wx;function s_(){if(Wx)return eh;Wx=1;function e(n){this.options=n,!n.deferSetup&&this.setup()}return e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(n){return this.options===n||this.options.match===n}},eh=e,eh}var th,Kx;function ew(){if(Kx)return th;Kx=1;function e(s,l){var c=0,d=s.length,f;for(c;c<d&&(f=l(s[c],c),f!==!1);c++);}function n(s){return Object.prototype.toString.apply(s)==="[object Array]"}function a(s){return typeof s=="function"}return th={isFunction:a,isArray:n,each:e},th}var nh,$x;function i_(){if($x)return nh;$x=1;var e=s_(),n=ew().each;function a(s,l){this.query=s,this.isUnconditional=l,this.handlers=[],this.mql=window.matchMedia(s);var c=this;this.listener=function(d){c.mql=d.currentTarget||d,c.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(s){var l=new e(s);this.handlers.push(l),this.matches()&&l.on()},removeHandler:function(s){var l=this.handlers;n(l,function(c,d){if(c.equals(s))return c.destroy(),!l.splice(d,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){n(this.handlers,function(s){s.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var s=this.matches()?"on":"off";n(this.handlers,function(l){l[s]()})}},nh=a,nh}var rh,Qx;function l_(){if(Qx)return rh;Qx=1;var e=i_(),n=ew(),a=n.each,s=n.isFunction,l=n.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return c.prototype={constructor:c,register:function(d,f,h){var m=this.queries,g=h&&this.browserIsIncapable;return m[d]||(m[d]=new e(d,g)),s(f)&&(f={match:f}),l(f)||(f=[f]),a(f,function(x){s(x)&&(x={match:x}),m[d].addHandler(x)}),this},unregister:function(d,f){var h=this.queries[d];return h&&(f?h.removeHandler(f):(h.clear(),delete this.queries[d])),this}},rh=c,rh}var ah,Jx;function o_(){if(Jx)return ah;Jx=1;var e=l_();return ah=new e,ah}var eb;function c_(){return eb||(eb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=d(Cn()),a=n_(),s=d(a_()),l=d(Z1()),c=Cl();function d(M){return M&&M.__esModule?M:{default:M}}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(M)}function h(){return h=Object.assign?Object.assign.bind():function(M){for(var R=1;R<arguments.length;R++){var K=arguments[R];for(var P in K)Object.prototype.hasOwnProperty.call(K,P)&&(M[P]=K[P])}return M},h.apply(this,arguments)}function m(M,R){var K=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);R&&(P=P.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),K.push.apply(K,P)}return K}function g(M){for(var R=1;R<arguments.length;R++){var K=arguments[R]!=null?arguments[R]:{};R%2?m(Object(K),!0).forEach(function(P){N(M,P,K[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(K)):m(Object(K)).forEach(function(P){Object.defineProperty(M,P,Object.getOwnPropertyDescriptor(K,P))})}return M}function x(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}function w(M,R){for(var K=0;K<R.length;K++){var P=R[K];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,z(P.key),P)}}function T(M,R,K){return R&&w(M.prototype,R),Object.defineProperty(M,"prototype",{writable:!1}),M}function k(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),R&&S(M,R)}function S(M,R){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,V){return P.__proto__=V,P},S(M,R)}function A(M){var R=L();return function(){var P=I(M),V;if(R){var j=I(this).constructor;V=Reflect.construct(P,arguments,j)}else V=P.apply(this,arguments);return E(this,V)}}function E(M,R){if(R&&(f(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(M)}function C(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function L(){try{var M=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!M})()}function I(M){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},I(M)}function N(M,R,K){return R=z(R),R in M?Object.defineProperty(M,R,{value:K,enumerable:!0,configurable:!0,writable:!0}):M[R]=K,M}function z(M){var R=F(M,"string");return f(R)=="symbol"?R:String(R)}function F(M,R){if(f(M)!="object"||!M)return M;var K=M[Symbol.toPrimitive];if(K!==void 0){var P=K.call(M,R);if(f(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(M)}var H=(0,c.canUseDOM)()&&o_();e.default=function(M){k(K,M);var R=A(K);function K(P){var V;return x(this,K),V=R.call(this,P),N(C(V),"innerSliderRefHandler",function(j){return V.innerSlider=j}),N(C(V),"slickPrev",function(){return V.innerSlider.slickPrev()}),N(C(V),"slickNext",function(){return V.innerSlider.slickNext()}),N(C(V),"slickGoTo",function(j){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return V.innerSlider.slickGoTo(j,W)}),N(C(V),"slickPause",function(){return V.innerSlider.pause("paused")}),N(C(V),"slickPlay",function(){return V.innerSlider.autoPlay("play")}),V.state={breakpoint:null},V._responsiveMediaHandlers=[],V}return T(K,[{key:"media",value:function(V,j){H.register(V,j),this._responsiveMediaHandlers.push({query:V,handler:j})}},{key:"componentDidMount",value:function(){var V=this;if(this.props.responsive){var j=this.props.responsive.map(function(Z){return Z.breakpoint});j.sort(function(Z,v){return Z-v}),j.forEach(function(Z,v){var ue;v===0?ue=(0,s.default)({minWidth:0,maxWidth:Z}):ue=(0,s.default)({minWidth:j[v-1]+1,maxWidth:Z}),(0,c.canUseDOM)()&&V.media(ue,function(){V.setState({breakpoint:Z})})});var W=(0,s.default)({minWidth:j.slice(-1)[0]});(0,c.canUseDOM)()&&this.media(W,function(){V.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(V){H.unregister(V.query,V.handler)})}},{key:"render",value:function(){var V=this,j,W;this.state.breakpoint?(W=this.props.responsive.filter(function(ne){return ne.breakpoint===V.state.breakpoint}),j=W[0].settings==="unslick"?"unslick":g(g(g({},l.default),this.props),W[0].settings)):j=g(g({},l.default),this.props),j.centerMode&&(j.slidesToScroll>1,j.slidesToScroll=1),j.fade&&(j.slidesToShow>1,j.slidesToScroll>1,j.slidesToShow=1,j.slidesToScroll=1);var Z=n.default.Children.toArray(this.props.children);Z=Z.filter(function(ne){return typeof ne=="string"?!!ne.trim():!!ne}),j.variableWidth&&(j.rows>1||j.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),j.variableWidth=!1);for(var v=[],ue=null,q=0;q<Z.length;q+=j.rows*j.slidesPerRow){for(var b=[],O=q;O<q+j.rows*j.slidesPerRow;O+=j.slidesPerRow){for(var U=[],J=O;J<O+j.slidesPerRow&&(j.variableWidth&&Z[J].props.style&&(ue=Z[J].props.style.width),!(J>=Z.length));J+=1)U.push(n.default.cloneElement(Z[J],{key:100*q+10*O+J,tabIndex:-1,style:{width:"".concat(100/j.slidesPerRow,"%"),display:"inline-block"}}));b.push(n.default.createElement("div",{key:10*q+O},U))}j.variableWidth?v.push(n.default.createElement("div",{key:q,style:{width:ue}},b)):v.push(n.default.createElement("div",{key:q},b))}if(j==="unslick"){var Q="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:Q},Z)}else v.length<=j.slidesToShow&&!j.infinite&&(j.unslick=!0);return n.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,c.filterSettings)(j)),v)}}]),K}(n.default.Component)}(Xf)),Xf}var tb;function u_(){return tb||(tb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(c_());function a(s){return s&&s.__esModule?s:{default:s}}e.default=n.default}(Yf)),Yf}var d_=u_();const f_=Ic(d_),h_=[{name:"Sarah Harvey",review:"Cabsy commitment to excellence is evident, prioritize customer satisfaction, making them the best choice for reliable and enjoyable rides.",rating:4.5},{name:"James Wright",review:"The drivers are always punctual and polite. The app is intuitive and booking is seamless. I never have to worry about my daily commute anymore!",rating:5},{name:"Emily Johnson",review:"Great service every time! I love how clean the vehicles are and how safe I feel. Definitely recommend AAAO GO to friends.",rating:4},{name:"Amir Qureshi",review:"Fantastic experience! The driver was professional and arrived on time. The whole journey was smooth and safe.",rating:5},{name:"Linda Carter",review:"Highly impressed with the service quality. From booking to drop-off, the whole process was fast and reliable.",rating:4.5}],m_=[{title:"Regional Rides",description:"Smooth and reliable rides within your city – whenever, wherever.",Image:bk},{title:"City Connectors",description:"Connecting cities with affordable, comfortable, and safe travel.",Image:vk},{title:"Car Recoveries",description:"Stuck on the road? We recover your car quickly and safely.",Image:wk},{title:"Courier Delivery",description:"Fast, secure, and on-time courier delivery across your city.",Image:Sk},{title:"Shifting Movers (Home & Office Shifting)",description:"Hassle-free home and office shifting, handled with care.",Image:jk},{title:"Tourism Discovery",description:"Discover breathtaking destinations with guided local travel.",Image:Tk}],nb=[{title:"Airport Transfers",description:"Swift rides to or from the airport – on time, every time",icon:"🛫"},{title:"Hourly Rentals",description:"Ride on your time. Rent by the hour with full flexibility.",icon:"⏱️"},{title:"Ride-Sharing",description:"Split the ride, save the cost—go greener together.",icon:"👥"},{title:"Move Your Car (Car Recovery)",description:"Stranded? We'll move your car—fast, safe, and reliable.",icon:"🚗"},{title:"Package Delivery",description:"From parcels to full house moves—labour, fixer, and vehicle included.",icon:"📦"},{title:"Custom Delivery",description:"Sed adipisci velit, sed quia non numquam eius modi tempora",icon:"📨"},{title:"Scheduled Rides",description:"Plan ahead. Book now, ride later—your time, your way.",icon:"📅"},{title:"Corporate Accounts",description:"Business travel made easy with centralized billing & control.",icon:"💳"}],p_=()=>{const e={dots:!1,infinite:!0,speed:600,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,arrows:!1},[n,a]=V1({triggerOnce:!0,threshold:.3});let s=[],l=0,c=[3,2,3],d=0;for(;l<nb.length;){const m=c[d%c.length];s.push(nb.slice(l,l+m)),l+=m,d++}const f=[{name:"brochure.pdf",file:kk},{name:"document1.pdf",file:_k},{name:"guide.pdf",file:Ok}],h=async()=>{try{const m=new uk;for(const x of f){const T=await(await fetch(x.file)).blob();m.file(x.name,T)}const g=await m.generateAsync({type:"blob"});hk.saveAs(g,"assets_pdfs.zip")}catch(m){console.error("Error downloading PDFs:",m),alert("Failed to download PDFs. Please try again.")}};return u.jsxs("div",{className:"bg-white p-2 sm:p-3 lg:p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[u.jsxs("div",{className:"relative mt-12 sm:mt-16 lg:mt-20 w-full sm:w-[98%] lg:w-[95%] my-4 sm:my-6 lg:my-7 rounded-2xl sm:rounded-3xl mx-auto min-h-[70vh] sm:min-h-[80vh] lg:h-[120vh] bg-cover bg-center flex flex-col-reverse lg:flex-row-reverse items-center justify-center p-4 sm:p-6 lg:p-0",style:{backgroundImage:`url(${mk})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black opacity-50 rounded-2xl sm:rounded-3xl"}),u.jsxs("div",{className:"relative z-10 w-full lg:w-[60%] text-white text-center px-2 sm:px-4 lg:px-4 max-w-4xl",children:[u.jsx("div",{className:"inline-block bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-xs sm:text-sm lg:text-md px-4 sm:px-6 lg:px-8 py-2 rounded-full mb-3 sm:mb-4",children:"The Perfect Ride Awaits"}),u.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-[2.5rem] font-semibold mb-3 sm:mb-4 leading-tight sm:leading-tight lg:leading-normal",children:"AAAO GO – WHEREVER YOU GO"}),u.jsx("p",{className:"text-sm sm:text-base md:text-lg lg:text-xl mb-4 sm:mb-6 leading-relaxed sm:leading-relaxed lg:leading-normal px-2 sm:px-4 lg:px-0",children:"A revolutionary ride-hailing platform designed for drivers, customers, and service providers. We are building not just a business, but a community that grows together."}),u.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-2 sm:gap-4",children:[u.jsx("button",{className:"bg-[#319A64] hover:bg-green-700 dark:hover:bg-green-700 text-white px-4 sm:px-6 py-2 sm:py-3 rounded-lg text-sm sm:text-base lg:text-lg font-semibold",children:"Download App"}),u.jsxs("button",{onClick:h,className:"bg-[#319A64] hover:bg-green-800 dark:hover:bg-green-800 text-white flex gap-2 items-center justify-center px-4 sm:px-6 py-2 sm:py-3 rounded-lg text-sm sm:text-base lg:text-lg font-semibold",children:[u.jsx(WN,{className:"text-white"})," Download PDFs"]})]})]}),u.jsx("div",{className:"flex gap-4 w-full sm:w-[60%] md:w-[50%] lg:w-[30%] z-10 mb-6 lg:mb-0",children:u.jsx("img",{src:pk,alt:"Phone 1",className:"w-full rounded-xl shadow-lg"})})]}),u.jsxs("div",{className:"px-2 sm:px-4 lg:px-4 relative py-8 sm:py-10 lg:py-12 mb-10 sm:mb-16 lg:mb-20 max-w-7xl mx-auto flex flex-col lg:flex-row items-center justify-between gap-8 lg:gap-0",children:[u.jsxs("div",{className:"w-full lg:w-[45%]",children:[u.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#0B996F] mb-3 sm:mb-4 leading-tight",children:"Who We Are?"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-6 sm:mb-8 lg:mb-10 text-base sm:text-lg lg:text-xl leading-relaxed",children:"Driven by Purpose—Powered by People"}),u.jsxs("div",{className:"space-y-6 sm:space-y-8 lg:space-y-10",children:[u.jsxs("div",{className:"pl-2 sm:pl-4 lg:pl-5",children:[u.jsxs("p",{className:"text-lg sm:text-xl font-semibold flex items-start gap-2 mb-2 sm:mb-3",children:["🚀 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-lg sm:text-xl font-bold",children:"Our Mission :"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base lg:text-base leading-relaxed",children:"To revolutionize transportation by putting fairness, transparency, and driver empowerment at the heart of everything we do."})]}),u.jsxs("div",{className:"pl-2 sm:pl-4 lg:pl-5",children:[u.jsxs("p",{className:"text-lg sm:text-xl font-semibold flex items-start gap-2 mb-2 sm:mb-3",children:["🔄 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-lg sm:text-xl font-bold",children:"More Than Just Rides:"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base lg:text-base leading-relaxed",children:"We offer ride-hailing, car recovery services, and will expand into mobility support and lifestyle logistics — all under one unified platform."})]}),u.jsxs("div",{className:"pl-2 sm:pl-4 lg:pl-5",children:[u.jsxs("p",{className:"text-lg sm:text-xl font-semibold flex items-start gap-2 mb-2 sm:mb-3",children:["🤝 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-lg sm:text-xl font-bold",children:"A Community-First Approach:"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base lg:text-base leading-relaxed",children:"Built under the I AM AAO empire, AAO Go is committed to creating a profitable, people-centered ecosystem where every rider, driver, and user can grow and thrive together."})]}),u.jsxs("div",{className:"pl-2 sm:pl-4 lg:pl-5",children:[u.jsxs("p",{className:"text-lg sm:text-xl font-semibold flex items-start gap-2 mb-2 sm:mb-3",children:["🧭 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-lg sm:text-xl font-bold",children:"Our Movement :"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base lg:text-base leading-relaxed",children:"AAAO Go is more than just a ride-hailing app—it's a movement toward freedom, fairness, and future-forward innovation."})]})]})]}),u.jsx("img",{src:xk,alt:"",className:"w-[20%] absolute left-[45%] right-0 -bottom-14 hidden lg:block"}),u.jsx("div",{className:"w-full lg:w-[45%] flex justify-center mt-6 lg:mt-10",children:u.jsx("img",{src:gk,alt:"Driver and woman",className:"rounded-2xl w-full object-cover"})})]}),u.jsxs("div",{className:"max-w-7xl mx-auto px-2 sm:px-4 lg:px-4 relative mb-16 sm:mb-24 lg:mb-32 py-8 sm:py-10 lg:py-12 flex flex-col lg:flex-row items-center gap-6 sm:gap-8 lg:gap-10",children:[u.jsx("div",{className:"w-full lg:w-[50%] order-2 lg:order-1",children:u.jsx("img",{src:yk,alt:"Driver with customer",className:"rounded-3xl w-full object-cover"})}),u.jsxs("div",{className:"w-full lg:w-[50%] order-1 lg:order-2",children:[u.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#0B996F] mb-4 sm:mb-6 leading-tight",children:"The Future We See"}),u.jsxs("ul",{className:"space-y-3 sm:space-y-4 mb-4 sm:mb-6 text-gray-700 dark:text-gray-300",children:[u.jsxs("li",{className:"flex items-start gap-2 sm:gap-3",children:[u.jsx(Ms,{className:"text-[#0B996F] dark:text-green-400 mt-1 flex-shrink-0"}),u.jsx("span",{className:"text-sm sm:text-base leading-relaxed",children:"A global ride-hailing network that empowers drivers & customers."})]}),u.jsxs("li",{className:"flex items-start gap-2 sm:gap-3",children:[u.jsx(Ms,{className:"text-[#0B996F] dark:text-green-400 mt-1 flex-shrink-0"}),u.jsx("span",{className:"text-sm sm:text-base leading-relaxed",children:"Creating financial freedom and opportunities."})]}),u.jsxs("li",{className:"flex items-start gap-2 sm:gap-3",children:[u.jsx(Ms,{className:"text-[#0B996F] dark:text-green-400 mt-1 flex-shrink-0"}),u.jsx("span",{className:"text-sm sm:text-base leading-relaxed",children:"Sustainable & innovative mobility solutions."})]})]}),u.jsxs("p",{className:"mb-4 sm:mb-6 text-sm sm:text-base leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:"Our vision is simple"})," – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."]}),u.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 p-3 sm:p-4 lg:p-2 rounded-lg",children:[u.jsx("div",{className:"bg-green-200 dark:bg-green-800 p-2 sm:p-3 rounded-full flex-shrink-0",children:u.jsx(B1,{className:"text-[#0B996F] dark:text-green-300 text-xl sm:text-2xl"})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-bold text-[#0B996F] dark:text-green-400 text-base sm:text-lg mb-1 sm:mb-2",children:"Safety Measures"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-xs sm:text-sm leading-relaxed",children:"Verified drivers, real-time tracking & No Male Companion rides for ladies and families – your peace of mind comes first."})]})]})]}),u.jsx("img",{src:H1,alt:"",className:"absolute left-[22%] w-[40%] -bottom-28 hidden lg:block"})]}),u.jsxs("div",{ref:n,className:"bg-[#e8f9f1] dark:bg-gray-800 text-center py-10 sm:py-12 lg:py-16 px-4 mb-8 sm:mb-10 lg:mb-12",children:[u.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-[#0B996F] dark:text-green-400 mb-8 sm:mb-10 lg:mb-12 leading-tight px-2",children:["Breaking Barriers, Building a Fairer Future",u.jsx("br",{className:"hidden sm:block"}),"for One Billion People"]}),u.jsxs("div",{className:"flex flex-col sm:flex-row justify-center items-center gap-12 sm:gap-16 md:gap-24 lg:gap-36",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&u.jsx(Ls,{end:5,duration:2})}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"countries"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&u.jsx(Ls,{end:144,duration:2})}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"cities"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&u.jsx(Ls,{end:1500,duration:2.5,separator:","})}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"Registered Members"})]})]})]}),u.jsxs("div",{className:"bg-white dark:bg-gray-900 px-2 sm:px-4 lg:px-4 mb-8 sm:mb-10 lg:mb-12",children:[u.jsxs("div",{className:"text-center mb-8 sm:mb-10 lg:mb-12",children:[u.jsx("button",{className:"bg-[#1E784B] text-white text-xs sm:text-sm font-semibold px-6 sm:px-8 py-2 sm:py-3 rounded-full mb-3 sm:mb-4",children:"The Perfect Ride Awaits"}),u.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#0B996F] dark:text-green-400 leading-tight px-2",children:"One App, Unlimited Possibilities"})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 max-w-6xl mx-auto",children:m_.map((m,g)=>u.jsxs("div",{className:"bg-[#e8f9f1] dark:bg-gray-800 rounded-lg p-4 sm:p-6 flex flex-col items-center text-center shadow-md hover:shadow-2xl transition-shadow duration-300",children:[u.jsx("img",{src:m.Image,alt:"",className:"w-20 sm:w-24 lg:w-32 mb-3 sm:mb-4 brightness-100 dark:brightness-125"}),u.jsx("h3",{className:"text-lg sm:text-xl lg:text-2xl font-bold text-[#0A4624] dark:text-white mb-2 leading-tight",children:m.title}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base leading-relaxed",children:m.description})]},g))})]}),u.jsxs("div",{className:"bg-white dark:bg-gray-900 py-10 sm:py-12 lg:py-16 px-2 sm:px-4 lg:px-4",children:[u.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-start lg:items-end w-full pb-6 sm:pb-8 lg:pb-10 gap-4 sm:gap-6 lg:gap-5",children:[u.jsx("h2",{className:"w-full lg:w-[55%] text-3xl sm:text-4xl lg:text-5xl font-bold text-[#0B996F] dark:text-green-400 leading-tight",children:"Beyond Rides — The Ultimate Experience awaits"}),u.jsx("p",{className:"w-full lg:w-[42%] text-sm sm:text-base lg:text-lg text-gray-700 dark:text-gray-300 leading-relaxed",children:"Get ready for the ultimate taxi experience — reliable rides, friendly drivers, and seamless journeys, all at your fingertips"})]}),u.jsx("div",{className:"max-w-7xl mx-auto",children:s.map((m,g)=>u.jsx("div",{className:`grid gap-4 sm:gap-6 ${m.length===3?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 lg:justify-center"} mb-6 sm:mb-8 lg:mb-10`,children:m.map((x,w)=>u.jsxs("div",{className:"rounded-2xl sm:rounded-3xl p-4 sm:p-6 lg:p-6 py-6 sm:py-8 lg:py-10 bg-white dark:bg-gray-800 text-gray-900 dark:text-white border border-gray-200 dark:border-gray-700 shadow-md transition-all duration-300 hover:bg-[#0B996F] hover:text-white hover:shadow-lg group cursor-pointer",children:[u.jsx("div",{className:"w-12 h-12 sm:w-14 sm:h-14 lg:w-16 lg:h-16 rounded-full flex items-center justify-center mb-3 sm:mb-4 bg-[#e8f9f1] dark:bg-gray-700 text-[#0B996F] dark:text-white group-hover:bg-white group-hover:text-[#0ea36e] transition-all duration-300 text-lg sm:text-xl lg:text-2xl",children:x.icon}),u.jsx("h3",{className:"text-lg sm:text-xl lg:text-2xl font-bold mb-2 sm:mb-3 leading-tight",children:x.title}),u.jsx("p",{className:"text-sm sm:text-base leading-relaxed",children:x.description})]},w))},g))})]}),u.jsxs("div",{className:"bg-[#e8f7f0] dark:bg-gray-800 relative py-12 sm:py-16 lg:py-20 mb-4 sm:mb-5 px-4 sm:px-6 lg:px-6 min-h-[70vh] sm:min-h-[80vh] lg:h-[130vh] items-center flex w-full sm:w-[98%] lg:w-[95%] rounded-2xl sm:rounded-3xl mx-auto",style:{backgroundImage:`url(${I1})`},children:[u.jsx("div",{className:"absolute inset-0 bg-[#E2F4EA] dark:bg-gray-900/50 opacity-50 rounded-2xl sm:rounded-3xl"}),u.jsxs("div",{className:"w-full px-2 sm:px-3 lg:px-3 z-10 mx-auto flex flex-col lg:flex-row items-center justify-between gap-8 sm:gap-12 lg:gap-16",children:[u.jsxs("div",{className:"text-center lg:text-left max-w-xl w-full lg:w-auto",children:[u.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-[#0B996F] dark:text-green-400 mb-3 sm:mb-4 leading-tight",children:["The Easiest Way to Book ",u.jsx("br",{className:"hidden sm:block"}),"Your Ride Register Now for ",u.jsx("br",{className:"hidden sm:block"}),"Instant Access"]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base lg:text-lg mb-4 sm:mb-6 leading-relaxed px-2 lg:px-0",children:"Book your ride quickly and effortlessly with just a few taps on our app"}),u.jsxs("div",{className:"flex flex-row justify-center lg:justify-start gap-3 sm:gap-4",children:[u.jsx("a",{href:"#",children:u.jsx("img",{src:Y1,alt:"Google Play",className:"h-10 sm:h-12 rounded-lg"})}),u.jsx("a",{href:"#",children:u.jsx("img",{src:X1,alt:"App Store",className:"h-10 sm:h-12 rounded-lg"})})]})]}),u.jsxs("div",{className:"relative w-full lg:w-auto flex justify-center",children:[u.jsx("img",{src:G1,alt:"Happy user",className:"w-full max-w-sm sm:max-w-md h-[50vh] sm:h-[60vh] lg:h-[100vh] object-cover rounded-2xl"}),u.jsx("img",{src:q1,alt:"App Screenshot",className:"absolute top-16 sm:top-20 lg:top-32 -left-6 sm:-left-8 lg:-left-28 w-16 sm:w-20 md:w-24 lg:w-60 drop-shadow-xl"})]})]})]}),u.jsx("div",{className:"py-12 sm:py-16 lg:py-20 px-4 sm:px-6 lg:px-6 bg-white dark:bg-gray-900",children:u.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-8 sm:gap-10 lg:gap-12 items-center",children:[u.jsxs("div",{className:"order-2 lg:order-1",children:[u.jsxs("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-[#0B996F] dark:text-green-400 mb-3 sm:mb-4 leading-tight",children:["Bringing Countless ",u.jsx("br",{}),"Smiles with Every Ride"]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-6 sm:mb-8 text-sm sm:text-base leading-relaxed",children:"At AAAO Go, we turn every ride into a reason to smile — with punctual drivers, premium service, and comfort that feels like home."}),u.jsxs("div",{className:"flex gap-8 sm:gap-12 mb-6 sm:mb-8 lg:mb-10",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl sm:text-3xl font-bold text-green-600 dark:text-green-400",children:"97%"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-xs sm:text-sm",children:"Satisfaction Rate"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl sm:text-3xl font-bold text-green-600 dark:text-green-400",children:"50+"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-xs sm:text-sm",children:"years of combined experience"})]})]}),u.jsx("img",{src:Nk,alt:"Path",className:"h-32 sm:h-40 lg:h-48 brightness-100 dark:brightness-125"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:gap-4 order-1 lg:order-2",children:[u.jsx("div",{className:"col-span-2 bg-green-100 dark:bg-gray-800 p-4 sm:p-6 rounded-2xl shadow-md",children:u.jsx(f_,{...e,children:h_.map((m,g)=>u.jsx("div",{className:"px-1 sm:px-2",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-green-600 dark:text-green-400 text-base sm:text-lg mb-2",children:"★★★★★"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-3 sm:mb-4 text-xs sm:text-sm leading-relaxed",children:m.review}),u.jsxs("p",{className:"font-semibold text-green-800 dark:text-green-300 text-sm sm:text-base",children:["— ",m.name]})]})},g))})}),u.jsx("img",{src:Ek,alt:"Man with tablet",className:"w-full h-32 sm:h-40 lg:h-full object-cover rounded-2xl brightness-100 dark:brightness-110"}),u.jsx("img",{src:Ak,alt:"Woman in car",className:"w-full h-32 sm:h-40 lg:h-full object-cover rounded-2xl brightness-100 dark:brightness-110"})]})]})})]})},tw="/assets/bg-BbOJe-ta.jpeg",g_="/assets/enjoy-CVNWmoEC.jpg",y_="/assets/map-DfwT83pC.png",x_="/assets/whyjoin-B-Bkqsbz.jpg",b_="/assets/aim-DEi6q9Iw.jpg",v_="/assets/direction-DvSXpJ92.png",w_=()=>u.jsxs("div",{className:"bg-white p-2 sm:p-3 lg:p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[u.jsx("div",{className:"min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl my-4 sm:my-6 lg:my-7 w-full sm:w-[98%] lg:w-[95%] mx-auto text-white",children:u.jsxs("div",{className:"relative mt-12 sm:mt-16 lg:mt-20 bg-cover bg-center min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl overflow-hidden flex items-center justify-center p-4 sm:p-6",style:{backgroundImage:`url(${tw})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),u.jsx("div",{className:"relative z-10 text-center px-2 sm:px-4",children:u.jsxs("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold leading-tight sm:leading-tight lg:leading-tight",children:["Our Story of Service and ",u.jsx("br",{className:"hidden lg:block"})," ","Excellence"]})})]})}),u.jsxs("div",{className:"w-full relative px-3 sm:px-6 lg:px-6 py-8 sm:py-10 lg:py-12 md:px-20 flex flex-col lg:flex-row justify-between gap-6 sm:gap-8 lg:gap-10",children:[u.jsxs("div",{className:"w-full lg:w-1/2",children:[u.jsxs("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-[#0B996F] leading-tight mb-4 sm:mb-6",children:["Enjoy Seamless Travel –",u.jsx("br",{}),"Comfort, Clarity & Control at",u.jsx("br",{}),"Every Step"]}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-6 sm:mb-8 lg:mb-10 text-sm sm:text-base leading-relaxed",children:"We take the stress out of travel by managing the details for you. With AAAO Go, your ride is more than just a destination — it's a smooth, relaxing experience from start to finish."}),u.jsxs("div",{className:"space-y-4 sm:space-y-5 lg:space-y-6",children:[u.jsxs("div",{children:[u.jsx("h4",{className:"text-lg sm:text-xl font-semibold text-green-900 dark:text-green-300 mb-1 sm:mb-2",children:"🌟 Easy-to-Use Mobile App"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base leading-relaxed",children:"📱 Book, track, and manage your rides in seconds."})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-lg sm:text-xl font-semibold text-green-900 dark:text-green-300 mb-1 sm:mb-2",children:"🌟 Professional Drivers"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base leading-relaxed",children:"🚗 Trusted and trained to deliver safety and reliability."})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-lg sm:text-xl font-semibold text-green-900 dark:text-green-300 mb-1 sm:mb-2",children:"🌟 Transparent, Honest Pricing"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base leading-relaxed",children:"💳 No surprises — what you see is exactly what you pay."})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-lg sm:text-xl font-semibold text-green-900 dark:text-green-300 mb-1 sm:mb-2",children:"🌟 A Vehicle for Every Need"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base leading-relaxed",children:"🚌 Whether solo or group, budget or luxury — we've got it."})]}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 sm:gap-8 lg:gap-10 pt-4 sm:pt-6",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("p",{className:"text-3xl sm:text-4xl font-medium",children:["50",u.jsx("span",{className:"text-[#0B996F]",children:"+"})]}),u.jsx("p",{className:"text-xs sm:text-sm text-gray-600 dark:text-gray-300 leading-relaxed",children:"Years of combine Experience"})]}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("p",{className:"text-3xl sm:text-4xl font-medium",children:["1,297 ",u.jsx("span",{className:"text-[#0B996F]",children:"+"})]}),u.jsx("p",{className:"text-xs sm:text-sm text-gray-600 dark:text-gray-300 leading-relaxed",children:"Professional Drivers"})]})]})]})]}),u.jsx("img",{src:y_,alt:"",className:"absolute left-[50%] w-60 top-72 hidden xl:block"}),u.jsx("div",{className:"w-full lg:w-1/2 flex justify-center lg:justify-end mt-6 lg:mt-0",children:u.jsx("img",{src:g_,alt:"Travel",className:"rounded-2xl shadow-lg w-full h-64 sm:h-80 lg:h-[25rem] object-cover max-w-sm sm:max-w-md"})})]}),u.jsxs("div",{className:"w-full px-3 sm:px-6 lg:px-6 py-8 sm:py-10 lg:py-12 md:px-20 flex flex-col lg:flex-row items-center justify-between gap-6 sm:gap-8 lg:gap-10",children:[u.jsx("div",{className:"w-full lg:w-1/2 order-2 lg:order-1",children:u.jsx("img",{src:x_,alt:"Why Join AAAO Go",className:"rounded-2xl shadow-lg object-cover w-full h-64 sm:h-80 lg:h-[33rem] max-w-sm sm:max-w-md mx-auto lg:mx-0"})}),u.jsxs("div",{className:"w-full lg:w-1/2 order-1 lg:order-2",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-[#0B996F] mb-3 sm:mb-4 leading-tight",children:"Why Join AAAO Go?"}),u.jsx("h3",{className:"text-base sm:text-lg font-semibold text-[#0B996F] mb-4 sm:mb-6",children:"A Life-Changing Opportunity"}),u.jsxs("ul",{className:"space-y-2 sm:space-y-3 mb-4 sm:mb-6 text-gray-700 dark:text-gray-300",children:[u.jsxs("li",{className:"flex items-center gap-2 text-sm sm:text-base",children:["✅ ",u.jsx("span",{children:"Higher Earnings & Fair Commission"})]}),u.jsxs("li",{className:"flex items-center gap-2 text-sm sm:text-base",children:["✅ ",u.jsx("span",{children:"Transparent Policies & Support System"})]}),u.jsxs("li",{className:"flex items-center gap-2 text-sm sm:text-base",children:["✅ ",u.jsx("span",{children:"Higher Earnings & Fair Commission"})]})]}),u.jsxs("div",{className:"space-y-3 sm:space-y-4 lg:space-y-5 text-gray-700 dark:text-gray-300",children:[u.jsxs("p",{className:"text-sm sm:text-base leading-relaxed",children:["💡 ",u.jsx("strong",{children:"AAAO Go is different"}),". We believe in fair earnings, driver empowerment, and long-term financial growth for everyone in our community."]}),u.jsxs("p",{className:"text-sm sm:text-base leading-relaxed",children:["💸 ",u.jsx("strong",{children:"Earn even while you sleep"})," through our multi-level referral rewards and service team usage — because your effort today builds income for tomorrow."]}),u.jsxs("p",{className:"text-sm sm:text-base leading-relaxed",children:["🏔️ ",u.jsx("strong",{children:"Retire with dignity"})," — Enjoy long-term benefits including Retirement Support and Tribute Assistance to protect your loved ones in times of need."]})]})]})]}),u.jsxs("div",{className:"w-full relative px-3 sm:px-6 lg:px-6 py-8 sm:py-10 lg:py-12 md:px-20 flex flex-col lg:flex-row items-center justify-between gap-6 sm:gap-8 lg:gap-10",children:[u.jsxs("div",{className:"w-full lg:w-1/2",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-[#0B996F] mb-3 sm:mb-4 leading-tight",children:"What We Aim to Achieve"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-4 sm:mb-6 text-sm sm:text-base leading-relaxed",children:"Driven by Vision – Powered by You"}),u.jsxs("ul",{className:"space-y-3 sm:space-y-4 lg:space-y-5 text-gray-800 dark:text-gray-200",children:[u.jsxs("li",{className:"text-sm sm:text-base leading-relaxed",children:[u.jsxs("span",{className:"text-lg sm:text-xl",children:["🚀 ",u.jsx("strong",{children:"Short-Term"}),":"]})," ","Expand rapidly into key cities and markets by onboarding drivers, customers, and service providers across our service range."]}),u.jsxs("li",{className:"text-sm sm:text-base leading-relaxed",children:[u.jsxs("span",{className:"text-lg sm:text-xl",children:["🤝 ",u.jsx("strong",{children:"Mid-Term"}),":"]})," ","Establish a community-powered ride-hailing network where earnings, opportunities, and loyalty grow together."]}),u.jsxs("li",{className:"text-sm sm:text-base leading-relaxed",children:[u.jsxs("span",{className:"text-lg sm:text-xl",children:["🌍 ",u.jsx("strong",{children:"Long-Term"}),":"]})," ","Lead the way in global mobility innovation, introducing smart tech, international operations, and sustainable solutions."]}),u.jsxs("li",{className:"text-sm sm:text-base leading-relaxed",children:[u.jsxs("span",{className:"text-lg sm:text-xl",children:["💬 ",u.jsx("strong",{children:`"We're not just launching an app"`}),":"]})," ","— we're shaping the future of transportation with YOU at the center of it."]})]})]}),u.jsx("img",{src:v_,alt:"",className:"absolute left-[45%] w-[25rem] hidden xl:block"}),u.jsx("div",{className:"w-full lg:w-1/2 flex justify-center lg:justify-end",children:u.jsx("img",{src:b_,alt:"Vision Goals",className:"rounded-2xl shadow-xl w-full h-64 sm:h-80 lg:h-auto object-cover max-w-sm sm:max-w-md"})})]}),u.jsx("div",{className:"w-full sm:w-[98%] lg:w-[95%] bg-green-100 dark:bg-gray-800 mx-auto mb-6 sm:mb-8 lg:mb-10 py-8 sm:py-10 lg:py-12 px-3 sm:px-6 lg:px-20 rounded-2xl sm:rounded-3xl lg:rounded-[2rem]",children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-6 sm:gap-8 items-center justify-center",children:[u.jsxs("div",{className:"bg-[#DDF3EB] dark:bg-gray-700 hover:bg-[#079B72] hover:text-white text-gray-900 dark:text-white rounded-2xl sm:rounded-3xl p-6 sm:p-8 w-full lg:w-1/2 shadow-lg transition-all duration-300 group",children:[u.jsxs("div",{className:"flex items-start sm:items-center mb-3 sm:mb-4",children:[u.jsx("div",{className:"bg-white dark:bg-gray-600 text-[#079B72] group-hover:text-[#079B72] rounded-full p-2 sm:p-3 mr-3 sm:mr-4 flex-shrink-0",children:u.jsx(HN,{size:20,className:"sm:w-6 sm:h-6"})}),u.jsx("h2",{className:"text-xl sm:text-2xl font-semibold text-green-800 dark:text-green-300 group-hover:text-white",children:"Our Vision"})]}),u.jsx("p",{className:"text-sm sm:text-base leading-relaxed",children:'"Our vision is simple – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."'})]}),u.jsxs("div",{className:"bg-[#DDF3EB] dark:bg-gray-700 hover:bg-[#079B72] hover:text-white border border-[#B2E2D2] dark:border-gray-600 text-gray-800 dark:text-white rounded-2xl sm:rounded-3xl p-6 sm:p-8 w-full lg:w-1/2 shadow-md transition-all duration-300 group",children:[u.jsxs("div",{className:"flex items-start sm:items-center mb-3 sm:mb-4",children:[u.jsx("div",{className:"bg-white dark:bg-gray-600 text-[#079B72] group-hover:text-[#079B72] rounded-full p-2 sm:p-3 mr-3 sm:mr-4 flex-shrink-0",children:u.jsx(qN,{size:20,className:"sm:w-6 sm:h-6"})}),u.jsx("h2",{className:"text-xl sm:text-2xl font-semibold text-green-800 dark:text-green-300 group-hover:text-white",children:"Our Mission"})]}),u.jsx("p",{className:"text-sm sm:text-base leading-relaxed",children:"AAAO Go is a dynamic and innovative ride-hailing platform designed to redefine urban mobility. We connect riders with reliable drivers through a seamless, technology-driven experience, ensuring safety, affordability, and convenience. Our commitment goes beyond transportation—we empower individuals with flexible earning opportunities while enhancing everyday travel. Whether it's daily commutes, business trips, or on-demand rides, AAAO Go is your trusted partner in moving smarter, faster, and better."})]})]})})]}),S_="/assets/bg-6SAdu_b3.jpg",j_="/assets/future--MMH-1BG.jpg",T_="/assets/card1-CngeeMsl.png",E_="/assets/card2-o4McaAYV.png",A_="/assets/card3-BdCC1t9j.png",N_="/assets/card4-DwGgvalC.png",k_="/assets/card5-BRuLiB6I.png",__="/assets/card6-DhonLssf.png",O_="/assets/card7-BtLXKe8h.png",R_="/assets/card8-D0qhdoR6.png",C_="/assets/card9-CP2MyyTJ.png",D_="/assets/recovery-BXEv-XSB.jpeg",M_="/assets/rides-Bkxyhe-g.jpeg",L_="/assets/shifting--UhfRry8.jpeg",P_="/assets/autofix-j6AEHwbR.jpeg",z_="/assets/tyrezone-BB2vwwox.jpeg",U_="/assets/keyassist-Usw68JbA.jpeg",B_="/assets/autohub-BicU1udc.jpeg",F_="/assets/tourism-CEey8P9M.jpeg",V_="/assets/wash-CvccX4aW.jpeg",H_=[{title:"Car Recovery Services",icon:"🚨",image:T_,need:"Why You Might Need Car Recovery:",cardimg:D_,span1:"🔋 Dead Battery",p1:" – Vehicle won't start? We'll recharge or tow.",span2:"🛠️ Engine Failure",p2:" – Sudden breakdowns require expert towing.",span3:"🚧 Accidents or Collisions",p3:" – Reliable recovery after any incident.",span4:"🚗 Overheating or Mechanical Trouble",p4:" – Prevent further damage.",span5:"⚫ Flat Tires or Wheel Problems",p5:" – Fast recovery when you're stuck.",span6:"⛺ Stuck in Desert/Sand",p6:" – Special recovery vehicles for off-road issues.",span7:"🌙 Night-Time Emergencies",p7:" – Round-the-clock assistance.",span8:"📑 Pre-Registration Transport",p8:" – Move for registration/testing.",span9:"🚛 Car Export/Import",p9:" – Support for port transfers.",span10:"🏙️ Car Transfer Between Cities",p10:" – Safe city-to-city vehicle movement.",description:"Get back on the road — safely and swiftly. AAAO Go offers 24/7 car recovery support across the UAE. Whether it's an unexpected breakdown or a scheduled vehicle movement, our trained team ensures smooth, secure transport — anytime, anywhere."},{title:"AAAO rides / cab services",icon:"🚖",image:E_,need:"Why Choose AAAO Go Cabs?",cardimg:M_,span1:"📱 Instant Booking via App",p1:" – Book a ride within seconds.",span2:"⏱️ On-Time Pickups",p2:" – Real-time tracking & punctual arrivals.",span3:"🚗 Wide Range of Vehicles",p3:" – From economy to luxury.",span4:"💳 Transparent Pricing",p4:" – No hidden fees. No surprises.",span5:"🕒 Time-Based or Hourly Fares",p5:" – Book by trip or by the hour — perfect for city tours or meetings.",span6:"✈️ Airport Transfers",p6:" – Fast, professional airport pick-ups & drop-offs.",span7:"👩👧 PINK RIDES /Family-Friendly Options",p7:" – No male companion rides available for women & families (optional filter).",span8:"👨✈️ Professional Drivers",p8:" – Verified, trained, and polite.",span9:"🌙 24/7 Availability",p9:" – Day or night, we're always on the move.",description:"Your ride, your way –with AAAO Go. We provide fast, comfortable, and affordable cab services across the UAE, tailored to your lifestyle. Whether it's a short ride or an all-day booking, AAAO Go gets you there – safely and on time."},{title:"Packers & Shifting Movers",icon:"📦",image:A_,need:"Why Choose AAAO Go Movers?",cardimg:L_,span1:"🪑 Furniture & Luggage Shifting",p1:" - From delicate items to heavy furniture, we move your belongings with care and precision.",span2:"🔧 Fixing Experts (On-Demand)",p2:" - Need help assembling or disassembling? Our skilled technicians are available on request to handle installations and setups.",span3:"🧳 Helpers for Lifting & Loading",p3:" - Professional helpers can be booked along with your move to assist in loading, unloading, and organizing items — saving your time and effort.",description:"Hassle-free moving services tailored to your needs — whether it's a single item or a full house."},{title:"AAAO AutoFix – Trusted Repairing Services",icon:"🛠️",image:N_,cardimg:P_,span1:"🚗 Verified Workshops",p1:" - We list only registered workshops that meet our quality and service standards.",span2:"📊 Performance-Based Suggestions",p2:" - Our smart system recommends workshops based on customer ratings, service history, and pricing – ensuring you get the best value every time.",span3:"📍 Nearby & Transparent",p3:" - Easily find nearby workshops with real-time tracking, price monitoring, and honest customer reviews – all within the AAAO Go app.",description:"AAAO AutoFix connects you with the top-rated workshops registered on our platform, offering reliable, affordable, and fast repair services."},{title:"AAAO TyreZone – Smart Tyre Solutions",icon:"⚙️",image:k_,cardimg:z_,span1:"✅ Verified Tyre Shops",p1:" - All listed tyre vendors are registered and meet our quality and service benchmarks.",span2:"📈 Rating-Based Recommendations",p2:" - Our system suggests the best tyre shops using real-time customer reviews, service quality history, and competitive pricing.",span3:"📍 Nearby & Honest",p3:" - Get quick access to the nearest tyre shop with live tracking, price comparisons, and service guarantees, all within the AAAO Go platform.",description:"AAAO TyreZone helps you find top-rated tyre shops near you, offering a wide range of services from tyre replacement to wheel balancing, all based on customer satisfaction and pricing transparency."},{title:"AAAO KeyAssist – Fast & Reliable Unlocking & Road Help",icon:"🔑",image:__,cardimg:U_,span1:"✅ Certified Locksmiths & Road Experts",p1:" - All service providers are licensed, background-checked, and trained to deliver fast, damage-free solutions with professional care.",span2:"📍 Nearby & On-Demand",p2:" - Instantly locate the closest expert for unlocking or roadside help, with real-time tracking, upfront pricing, and service guarantees.",span3:"🔧 Comprehensive Road Assistance",p3:" - From jump-starting your battery to helping with flat tyres, fuel delivery, or minor mechanical issues — AAAO KeyAssist has your back.",span4:"🔐 Safe, Transparent, & Stress-Free",p4:" - Forget the panic. AAAO Go ensures you get reliable help with live support, secure payments, and complete peace of mind.",description:"AAAO KeyAssist is your trusted companion for emergency key unlocking and roadside assistance. Whether you're locked out of your car, home, or office — or facing minor breakdowns on the road — help is just a tap away inside the AAAO Go platform"},{title:"AAAO AutoHub – Verified Showrooms & Car Dealers",icon:"🚘",image:O_,cardimg:B_,span1:"✅Verified Dealers Only",p1:" - We list only officially registered showrooms and dealers who meet our quality, service, and trust standards.",span2:"📈 Rating-Based Listings",p2:" - Dealers are ranked using customer reviews, service history, pricing fairness, and after-sale support.",span3:"🚗 New & Pre-Owned Options",p3:" - Browse a wide variety of vehicles — from brand-new cars to inspected and certified pre-owned models.",span4:"💼 Smart Filters & Deals",p4:" - Search by brand, price range, location, or car type. Get access to exclusive AAAO Go deals and showroom offers.",span5:"📍 Nearby & Contact",p5:"- Free Booking -Find the nearest dealer, book a test drive, or schedule a visit — all within the AAAO Go platform.",description:"AAAO AutoHub connects you with trusted car showrooms and licensed vehicle dealers near you — offering a wide selection of new and used vehicles, financing options, and transparent dealer ratings, all inside the AAAO Go ecosystem."},{title:"AAAO Explore – Complete Tourism, Events & Local Experience Hub",icon:"🌍",image:R_,cardimg:F_,span1:"✅ Expert Tour Guides & Custom Tours",p1:" - Hire trusted local guides for hourly or daily trips — from city walks to desert safaris — with transparent, fixed pricing.",span2:"🏨 Verified Hotels & Guest Houses",p2:" - Book AAAO-approved accommodations with real reviews, clear amenities, and best-price guarantees — no hidden costs.",span3:"🍽️ Top-Rated Local Restaurants",p3:" - Dine smart with budget-friendly, highly-rated eateries near you — searchable by cuisine, price, and open status.",span4:"🎉 Event Planning & Management",p4:" - Plan birthdays, weddings, corporate retreats, or travel events with ease. AAAO connects you with certified event planners, venues, and services that match your style and budget.",span5:"📍 All Nearby, All in One Place",p5:" - Use AAAO Go to instantly locate and book all services — tours, stays, meals, and events — with real-time tracking and 24/7 support.",description:"AAAO Explore is your smart gateway to discover, book, and enjoy unforgettable experiences — combining guided tours, verified hotels, affordable dining, and event planning into one powerful platform."},{title:"AAAO ShineZone – Trusted Car Wash & Detailing Near You",icon:"🚿",image:C_,cardimg:V_,span1:"✅ Verified Wash Centers & Mobile Teams",p1:" - Only AAAO-approved providers offering quality, eco-friendly, and reliable service.",span2:"🚗 From Quick Wash to Full Detailing",p2:" - Choose from basic exterior wash, interior vacuuming, waxing, or full premium detailing packages.",span3:"💵 Transparent & Affordable Rates",p3:" - No overcharging — get fixed, visible pricing for every service, including packages for daily, weekly, or monthly care.",span4:"📍 Nearby & On-Demand",p4:" - Find the closest wash station or book a mobile car wash at your home or office via the AAAO Go app.",span5:"🕒 Real-Time Availability",p5:" - Book instantly, view service hours, and track your service live — all from your phone.",description:"AAAO ShineZone connects you with verified car wash professionals offering on-site or drive-in services — from basic cleaning to premium detailing, all at fair, upfront prices."}],I_=()=>{const[e,n]=V1({triggerOnce:!0,threshold:.3}),[a,s]=X.useState(null),l=()=>{window.scrollTo({top:0,behavior:"smooth"})};return u.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-2 sm:p-3 lg:p-5",children:[u.jsx("div",{className:"min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl my-4 sm:my-6 lg:my-7 w-full sm:w-[98%] lg:w-[95%] mx-auto bg-black dark:bg-gray-900 text-white dark:text-white",children:u.jsxs("div",{className:"relative mt-12 sm:mt-16 lg:mt-20 bg-cover bg-center min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl overflow-hidden flex items-center justify-center dark:bg-gray-900 p-4 sm:p-6",style:{backgroundImage:`url(${S_})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-60 dark:bg-opacity-80"}),u.jsxs("div",{className:"relative z-10 text-center px-2 sm:px-4",children:[u.jsxs("nav",{className:"text-xs sm:text-sm text-white dark:text-gray-200 mb-3 sm:mb-4 flex items-center justify-center",children:[u.jsx(xt,{to:"/",onClick:l,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),u.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-lg sm:text-2xl -mt-1",children:"›"}),u.jsx("span",{className:"text-white dark:text-gray-200",children:"Services"})]}),u.jsxs("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-white dark:text-white leading-tight",children:["Experience Convenience Our Service"," ",u.jsx("br",{className:"hidden lg:block"})," Offerings"]})]})]})}),u.jsxs("div",{className:"max-w-7xl mx-auto px-2 sm:px-4 lg:px-4 relative mb-16 sm:mb-24 lg:mb-32 py-8 sm:py-10 lg:py-12 flex flex-col lg:flex-row items-center gap-6 sm:gap-8 lg:gap-10",children:[u.jsx("div",{className:"w-full lg:w-[50%] order-2 lg:order-1",children:u.jsx("img",{src:j_,alt:"Driver with customer",className:"rounded-2xl sm:rounded-3xl w-full h-64 sm:h-80 lg:h-auto object-cover"})}),u.jsxs("div",{className:"w-full lg:w-[50%] order-1 lg:order-2",children:[u.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#0B996F] dark:text-yellow-400 mb-3 sm:mb-4 leading-tight",children:"The Future We See"}),u.jsxs("ul",{className:"space-y-2 sm:space-y-3 mb-4 sm:mb-6 text-gray-700 dark:text-gray-200",children:[u.jsxs("li",{className:"flex items-start gap-2 sm:gap-3 text-sm sm:text-base",children:[u.jsx(Ms,{className:"text-[#0B996F] dark:text-yellow-400 mt-1 flex-shrink-0"}),u.jsx("span",{className:"leading-relaxed",children:"A global ride-hailing network that empowers drivers & customers."})]}),u.jsxs("li",{className:"flex items-start gap-2 sm:gap-3 text-sm sm:text-base",children:[u.jsx(Ms,{className:"text-[#0B996F] dark:text-yellow-400 mt-1 flex-shrink-0"}),u.jsx("span",{className:"leading-relaxed",children:"Creating financial freedom and opportunities."})]}),u.jsxs("li",{className:"flex items-start gap-2 sm:gap-3 text-sm sm:text-base",children:[u.jsx(Ms,{className:"text-[#0B996F] dark:text-yellow-400 mt-1 flex-shrink-0"}),u.jsx("span",{className:"leading-relaxed",children:"Sustainable & innovative mobility solutions."})]})]}),u.jsxs("p",{className:"mb-4 sm:mb-6 text-gray-700 dark:text-gray-200 text-sm sm:text-base leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:"Our vision is simple"})," – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."]}),u.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 p-2 sm:p-3 lg:p-2 rounded-lg",children:[u.jsx("div",{className:"bg-green-200 dark:bg-gray-700 p-2 sm:p-3 rounded-full flex-shrink-0",children:u.jsx(B1,{className:"text-[#0B996F] dark:text-yellow-400 text-xl sm:text-2xl"})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-bold text-[#0B996F] dark:text-yellow-400 text-base sm:text-lg mb-1 sm:mb-2",children:"Safety Measures"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-200 text-xs sm:text-sm leading-relaxed",children:"Verified drivers, real-time tracking & No Male Companion rides for ladies and families – your peace of mind comes first."})]})]})]}),u.jsx("img",{src:H1,alt:"",className:"absolute left-[22%] w-[40%] -bottom-28 hidden xl:block"})]}),u.jsxs("div",{className:"text-center mb-8 sm:mb-10 lg:mb-12 px-2 sm:px-4",children:[u.jsx("button",{className:"bg-[#1E784B] dark:bg-yellow-500 dark:text-gray-900 text-white text-xs sm:text-sm font-semibold px-6 sm:px-8 py-2 sm:py-3 rounded-full mb-3 sm:mb-4 hover:bg-green-700 dark:hover:bg-yellow-400 transition-colors duration-300",children:"The Perfect Ride Awaits"}),u.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#0B996F] dark:text-yellow-400 leading-tight",children:"One App, Unlimited Possibilities"})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 py-4 sm:py-6 px-3 sm:px-6 lg:px-20 bg-white dark:bg-gray-800 rounded-lg sm:rounded-xl mx-2 sm:mx-4 lg:mx-0",children:H_.map((c,d)=>u.jsxs("div",{className:"bg-[#E2F4EA] dark:bg-gray-700 rounded-lg shadow p-4 sm:p-5 lg:px-5 lg:py-3 flex flex-col justify-between min-h-[280px] sm:min-h-[320px]",children:[u.jsxs("div",{children:[u.jsx("img",{src:c.image,alt:c.title,className:"h-24 sm:h-28 lg:h-32 w-full rounded-xl sm:rounded-2xl object-cover mb-3 sm:mb-4"}),u.jsxs("h3",{className:"text-base sm:text-lg lg:text-xl font-semibold text-gray-900 dark:text-white mb-2 sm:mb-3 leading-tight",children:[u.jsx("span",{className:"mr-2 text-sm",children:c.icon}),c.title]}),u.jsx("p",{className:"text-xs sm:text-sm lg:text-xs text-gray-700 dark:text-gray-200 flex-grow leading-relaxed line-clamp-4",children:c.description})]}),u.jsx("button",{onClick:()=>s(c),className:"bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-3 sm:px-4 py-2 mt-3 sm:mt-4 rounded text-sm hover:bg-green-700 dark:hover:bg-yellow-400 w-fit transition-colors duration-300",children:"View Details"})]},d))}),a&&u.jsx("div",{className:"fixed inset-0 bg-black dark:bg-gray-900 bg-opacity-60 z-50 flex justify-center items-center p-2 sm:p-4",children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 sm:gap-6 lg:gap-10 rounded-xl bg-white dark:bg-gray-800 p-4 sm:p-6 max-w-5xl w-full relative overflow-y-auto max-h-[95vh] sm:max-h-[90vh]",children:[u.jsx("button",{onClick:()=>s(null),className:"absolute top-2 right-2 sm:top-3 sm:right-3 text-gray-600 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-400 text-xl sm:text-2xl z-10 bg-white dark:bg-gray-800 rounded-full w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center",children:"×"}),u.jsx("div",{className:"w-full lg:w-[40%]",children:u.jsx("img",{src:a.cardimg,alt:a.title,className:"w-full h-48 sm:h-64 lg:h-full max-h-[300px] lg:max-h-[500px] object-cover rounded-xl"})}),u.jsxs("div",{className:"w-full lg:w-[60%] overflow-y-auto pr-2",children:[u.jsx("h3",{className:"text-xl sm:text-2xl font-semibold mb-2 sm:mb-3 text-gray-800 dark:text-white leading-tight",children:a.title}),u.jsx("p",{className:"text-sm sm:text-base text-gray-700 dark:text-gray-200 mb-3 sm:mb-4 leading-relaxed",children:a.description}),u.jsx("h4",{className:"font-semibold text-sm sm:text-base mb-2 sm:mb-3 text-gray-800 dark:text-white",children:a.need}),u.jsxs("ul",{className:"text-xs sm:text-sm text-gray-700 dark:text-gray-200 space-y-2 sm:space-y-3",children:[a.span1&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span1}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p1})]}),a.span2&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span2}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p2})]}),a.span3&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span3}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p3})]}),a.span4&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span4}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p4})]}),a.span5&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span5}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p5})]}),a.span6&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span6}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p6})]}),a.span7&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span7}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p7})]}),a.span8&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span8}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p8})]}),a.span9&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span9}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p9})]}),a.span10&&u.jsxs("li",{className:"list-none leading-relaxed",children:[u.jsx("span",{className:"font-bold",children:a.span10}),u.jsx("span",{className:"text-xs sm:text-sm",children:a.p10})]})]})]})]})}),u.jsxs("div",{ref:e,className:"bg-[#e8f9f1] dark:bg-gray-800 text-center py-10 sm:py-12 lg:py-16 px-4 mb-8 sm:mb-10 lg:mb-12 mx-2 sm:mx-4 lg:mx-0 rounded-lg sm:rounded-xl",children:[u.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-[#0B996F] dark:text-yellow-400 mb-8 sm:mb-10 lg:mb-12 leading-tight px-2",children:["Breaking Barriers, Building a Fairer Future",u.jsx("br",{}),"for One Billion People"]}),u.jsxs("div",{className:"flex flex-col sm:flex-row justify-center items-center gap-12 sm:gap-16 md:gap-24 lg:gap-36",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#555D55] dark:text-white",children:n&&u.jsx(Ls,{end:5,duration:2})}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"countries"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#555D55] dark:text-white",children:n&&u.jsx(Ls,{end:144,duration:2})}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"cities"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-[#555D55] dark:text-white",children:n&&u.jsx(Ls,{end:1500,duration:2.5,separator:","})}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"Registered Members"})]})]})]})]})},q_="/assets/team-B2G7j71p.webp",G_="/assets/ceo-pov2ltjX.webp",Y_="/assets/tahir-nVzPZBOR.webp",X_="/assets/wardag-BCdJGmKz.webp",Z_="/assets/samad-kLWTUiYE.jpeg",W_=()=>{const[e,n]=X.useState(null),a=()=>{window.scrollTo({top:0,behavior:"smooth"})},s=[{name:"Mr Tahir Zaman",role:"COO",title:"Chief Operation Officer (COO)",image:Y_,description:"Tahir is an experienced professional with a diverse background spanning over a decade in various industries. Since 2011, he has demonstrated exceptional skills in team management and leadership, as well as expertise in human resources across multiple companies. Tahir brings a wealth of knowledge and a proven track record of driving operational excellence and fostering team collaboration. He is committed to elevating the company's position to the highest level by leveraging his strategic vision and adaptability in challenging situations"},{name:"Mr RAFIULLAH WARDAG",role:"CMO",title:"Chief Marketing Officer",image:X_,description:"Rafi is a certified entrepreneur and a business tycoon with expertise across multiple industries. A mastermind in creative leadership, he is driven by a bold vision—to connect people worldwide on a single, unified platform. With his innovative approach and strategic thinking, he is reshaping industries and pioneering solutions that bridge global communities, making connectivity seamless and accessible for all."},{name:"Sardar Muhammad Abdul Samad Khan",role:"CTO",image:Z_,title:"Chief Technology Officer",description:"Meet our CTO officer, his name is Sardar Muhammad Abdul Samad Khan. He has a Master's degree in Software Engineering. He has 10 years of experience in mobile application and website development. He has his own software house in which 100 employees work and he is the CEO of their company. He has received the Best Developer Award from the Government of Pakistan in 2018."}];return u.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-2 sm:p-3 lg:p-5",children:[u.jsx("div",{className:"min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl my-4 sm:my-6 lg:my-7 w-full sm:w-[98%] lg:w-[95%] mx-auto bg-black dark:bg-gray-900 text-white dark:text-white",children:u.jsxs("div",{className:"relative bg-cover bg-center mt-12 sm:mt-16 lg:mt-20 min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl overflow-hidden flex items-center justify-center dark:bg-gray-900 p-4 sm:p-6",style:{backgroundImage:`url(${tw})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-50 dark:bg-opacity-80"}),u.jsxs("div",{className:"relative z-10 text-center px-2 sm:px-4",children:[u.jsxs("nav",{className:"text-xs sm:text-sm text-white dark:text-gray-200 mb-3 sm:mb-4 flex items-center justify-center",children:[u.jsx(xt,{to:"/",onClick:a,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),u.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-lg sm:text-2xl -mt-1",children:"›"}),u.jsx("span",{className:"text-white dark:text-gray-200",children:"Our Team"})]}),u.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-white dark:text-white leading-tight",children:"Meet Our Team"})]})]})}),u.jsxs("div",{className:"px-3 sm:px-6 lg:px-6 py-6 sm:py-8 lg:py-10 md:px-10 flex flex-col lg:flex-row items-start gap-6 sm:gap-8 lg:gap-10",children:[u.jsx("div",{className:"flex-shrink-0 w-full lg:w-[50%]",children:u.jsx("img",{src:q_,alt:"Team",className:"w-full h-64 sm:h-80 lg:h-[450px] rounded-md object-cover"})}),u.jsxs("div",{className:"flex flex-col w-full lg:w-[55%]",children:[u.jsx("h2",{className:"text-xl sm:text-2xl lg:text-3xl font-semibold text-black dark:text-white mb-3 sm:mb-4 leading-tight",children:"Meet the AAAO Core Team – Driven by Experience, Powered by Vision"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-sm sm:text-base lg:text-[.9rem] leading-relaxed mb-4 sm:mb-6",children:"Behind AAAO Go is a strategic team of experts with deep-rooted experience in technology, transportation, tourism, hospitality, finance, retail, and smart services."}),u.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 mb-4 sm:mb-6",children:[u.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-2 sm:p-3 rounded-full flex-shrink-0",children:u.jsx(BN,{className:"text-sm sm:text-base lg:text-lg"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-base sm:text-lg font-semibold text-green-800 dark:text-yellow-400 mb-1 sm:mb-2",children:"Combined Experience of 50+ Years"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-xs sm:text-sm leading-relaxed",children:"Our leadership team holds over 50 years of combined industry experience, ensuring AAAO Go is built with insight, integrity, and future-focused strategy."})]})]}),u.jsxs("div",{className:"flex items-start gap-3 sm:gap-4",children:[u.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-2 sm:p-3 rounded-full flex-shrink-0",children:u.jsx(YN,{className:"text-sm sm:text-base lg:text-lg"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-base sm:text-lg font-semibold text-green-800 dark:text-yellow-400 mb-1 sm:mb-2",children:"Built to Scale, Structured to Lead"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-xs sm:text-sm leading-relaxed",children:"This team is architecting the AAAO Empire with clarity and commitment."})]})]})]})]}),u.jsxs("div",{className:"flex flex-col lg:flex-row items-center justify-between px-4 sm:px-6 lg:px-8 py-8 sm:py-10 lg:py-12 gap-6 sm:gap-8 lg:gap-10",children:[u.jsxs("div",{className:"w-full lg:w-1/2 space-y-3 sm:space-y-4 order-2 lg:order-1",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-black dark:text-white leading-tight",children:"MEET OUR FOUNDER"}),u.jsx("h3",{className:"text-lg sm:text-xl font-semibold text-black dark:text-white leading-tight",children:"A VISIONARY ARCHITECT OF INNOVATION"}),u.jsx("div",{className:"bg-black dark:bg-gray-700 text-white dark:text-gray-200 px-3 sm:px-4 py-2 inline-block font-semibold tracking-wider text-xs sm:text-sm lg:text-base",children:"MR MI KHAN BUDDA KHEL"}),u.jsx("h4",{className:"font-bold text-base sm:text-lg text-black dark:text-white mt-2",children:"(CEO)"}),u.jsx("p",{className:"text-gray-800 dark:text-gray-200 text-sm sm:text-base text-justify mb-4 sm:mb-5 leading-relaxed",children:"Starting as a laborer and rising to global leadership, Founder is a true embodiment of resilience and ambition. With 10 years of experience... driving innovation and inspiring change."}),u.jsx("button",{className:"bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-4 sm:px-6 py-2 rounded text-sm sm:text-base hover:bg-green-700 dark:hover:bg-yellow-400 mt-3 sm:mt-5 transition-colors duration-300",children:u.jsx("a",{href:"https://digitalcontacts.info/mikhanbuddakhel",target:"_blank",rel:"noopener noreferrer",children:"Visit Profile"})})]}),u.jsx("div",{className:"w-full sm:w-3/4 lg:w-[40%] order-1 lg:order-2 flex justify-center",children:u.jsx("img",{src:G_,alt:"Founder",className:"max-w-full h-64 sm:h-80 lg:h-auto w-full object-cover rounded-lg shadow-lg"})})]}),u.jsxs("div",{className:"px-2 sm:px-4 py-8 sm:py-10 lg:py-12 text-center bg-white dark:bg-gray-800 mx-2 sm:mx-4 lg:mx-0 rounded-lg sm:rounded-xl",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-black dark:text-white mb-6 sm:mb-8",children:"MEET OUR TEAM"}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 lg:gap-8 max-w-5xl mx-auto",children:s.map((l,c)=>u.jsxs("div",{className:"bg-gray-100 dark:bg-gray-700 rounded-lg overflow-hidden p-3 sm:p-4 flex flex-col items-center",style:{boxShadow:"1px 1px 10px #585858"},children:[u.jsx("img",{src:l.image,alt:l.name,className:"w-full h-48 sm:h-56 lg:h-60 object-cover rounded"}),u.jsx("h3",{className:"mt-3 sm:mt-4 text-base sm:text-lg font-semibold text-black dark:text-white text-center leading-tight px-2",children:l.name}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-sm sm:text-base mt-1",children:l.role}),u.jsxs("button",{onClick:()=>n(l),className:"mt-3 sm:mt-4 bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-3 sm:px-4 py-2 rounded text-sm sm:text-base hover:bg-green-700 dark:hover:bg-yellow-400 transition-colors duration-300 flex items-center gap-1",children:["Read More ",u.jsx("span",{children:"→"})]})]},c))})]}),e&&u.jsx("div",{className:"fixed inset-0 bg-black dark:bg-gray-900 bg-opacity-60 flex justify-center items-center z-50 p-2 sm:p-4",children:u.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg max-w-4xl w-full p-4 sm:p-6 relative shadow-lg max-h-[95vh] sm:max-h-[90vh] overflow-y-auto",children:[u.jsx("button",{onClick:()=>n(null),className:"absolute top-2 right-2 sm:top-3 sm:right-3 text-gray-600 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-400 z-10 bg-white dark:bg-gray-800 rounded-full w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center",children:u.jsx(XN,{size:16,className:"sm:w-5 sm:h-5"})}),u.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 sm:gap-6",children:[u.jsx("div",{className:"w-full lg:w-[40%]",children:u.jsx("div",{className:"w-full h-48 sm:h-60 lg:h-60 rounded overflow-hidden bg-gray-200 dark:bg-gray-600 flex items-center justify-center",children:u.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover object-center",onError:l=>{l.target.style.display="none",l.target.parentElement.innerHTML='<div class="w-full h-full flex items-center justify-center text-gray-500 dark:text-gray-400 text-sm">Image Loading...</div>'}})})}),u.jsxs("div",{className:"w-full lg:w-[60%] lg:max-h-60 lg:overflow-y-auto lg:pr-2",children:[u.jsx("p",{className:"text-red-700 dark:text-yellow-400 font-semibold mb-2 text-sm sm:text-base",children:e.title}),u.jsx("h3",{className:"text-lg sm:text-xl font-bold text-black dark:text-white mb-2 sm:mb-3 leading-tight",children:e.name}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-xs sm:text-sm leading-relaxed whitespace-pre-line",children:e.description})]})]})]})})]})},K_="/assets/bg-4H183NQt.jpg",$_=()=>{const e=[{icon:ou,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:M1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:F1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:z1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:P1,url:"https://t.me/aaaogointl"}];return u.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-2 sm:p-5",children:[u.jsx("div",{className:"h-[300px] sm:h-[400px] md:h-[500px] rounded-2xl sm:rounded-3xl my-4 sm:my-7 w-[95%] mx-auto bg-black text-white",children:u.jsxs("div",{className:"relative mt-10 sm:mt-20 bg-cover bg-center h-[300px] sm:h-[400px] md:h-[500px] rounded-2xl sm:rounded-3xl overflow-hidden flex items-center justify-center",style:{backgroundImage:`url(${K_})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),u.jsxs("div",{className:"relative z-10 text-center px-4 sm:px-6",children:[u.jsxs("nav",{className:"text-xs sm:text-sm text-white/80 mb-2 sm:mb-4 flex items-center justify-center",children:[u.jsx(xt,{to:"/",className:"hover:underline text-white",children:"Home"}),u.jsx("span",{className:"mx-1 sm:mx-2 text-[#387B55] text-lg sm:text-2xl -mt-1",children:"›"}),u.jsx("span",{children:"Contact"})]}),u.jsxs("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold leading-tight px-2",children:["Connect with Us for Any Questions ",u.jsx("br",{className:"hidden sm:block lg:hidden xl:block"}),u.jsx("span",{className:"block sm:hidden",children:"or Concerns"}),u.jsx("span",{className:"hidden sm:block lg:block xl:hidden",children:"or Concerns"})]})]})]})}),u.jsxs("div",{className:"w-[95%] mx-auto text-green-800 dark:text-green-300 px-3 sm:px-6 py-6 sm:py-10 md:flex md:justify-between md:items-start gap-6 lg:gap-10",children:[u.jsxs("div",{className:"md:w-1/2 space-y-4 sm:space-y-6",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold",children:"Get In Touch With Us"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm sm:text-base",children:"Get in Touch – Your Ride is Just a Call Away!"}),u.jsxs("div",{className:"flex flex-col sm:flex-row sm:gap-8 lg:flex-col xl:flex-row space-y-6 sm:space-y-0 lg:space-y-6 xl:space-y-0",children:[u.jsxs("div",{className:"flex items-start gap-3 sm:gap-4",children:[u.jsx("div",{className:"bg-green-100 dark:bg-gray-700 p-2 sm:p-3 rounded-full flex-shrink-0",children:u.jsx(GN,{className:"text-green-600 dark:text-green-300 text-lg sm:text-xl"})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("h3",{className:"font-bold text-sm sm:text-base",children:"Our Office"}),u.jsxs("p",{className:"text-gray-600 dark:text-gray-300 text-xs sm:text-sm leading-relaxed",children:["Office Address: Alabraj Street",u.jsx("br",{}),"Business Bay Dubai UAE"]})]})]}),u.jsxs("div",{className:"flex items-start gap-3 sm:gap-4",children:[u.jsx("div",{className:"bg-green-100 dark:bg-gray-700 p-2 sm:p-3 rounded-full flex-shrink-0",children:u.jsx(U1,{className:"text-green-600 dark:text-green-300 text-lg sm:text-xl"})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("h3",{className:"font-bold text-sm sm:text-base",children:"Contact Info"}),u.jsxs("p",{className:"text-gray-600 dark:text-gray-300 text-xs sm:text-sm leading-relaxed",children:["+1 (917) 426-0742",u.jsx("br",{}),"support@aaaogo.com"]})]})]})]}),u.jsx("hr",{className:"border-gray-300 dark:border-gray-600"}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-sm sm:text-base mb-2 sm:mb-3",children:"Our Social Media :"}),u.jsx("div",{className:"flex gap-3 sm:gap-4",children:e.map(({icon:n,url:a},s)=>u.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"p-2 sm:p-2 rounded-full hover:bg-green-100 dark:hover:bg-gray-700 transition-colors duration-200",children:u.jsx(n,{className:"text-gray-900 dark:text-white text-base sm:text-lg"})},s))})]})]}),u.jsxs("div",{className:"md:w-1/2 mt-8 sm:mt-10 md:mt-0 bg-green-100 dark:bg-gray-800 p-4 sm:p-6 rounded-xl sm:rounded-2xl",children:[u.jsx("h3",{className:"text-xl sm:text-2xl font-bold mb-3 sm:mb-4",children:"Leave Us A Message"}),u.jsxs("form",{className:"space-y-3 sm:space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block mb-1 text-sm sm:text-base font-medium",children:"Name"}),u.jsx("input",{type:"text",placeholder:"Enter your name",className:"w-full p-2 sm:p-3 text-sm sm:text-base rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400 transition-all duration-200"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block mb-1 text-sm sm:text-base font-medium",children:"Email"}),u.jsx("input",{type:"email",placeholder:"Enter your email",className:"w-full p-2 sm:p-3 text-sm sm:text-base rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400 transition-all duration-200"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block mb-1 text-sm sm:text-base font-medium",children:"Message"}),u.jsx("textarea",{rows:"4",placeholder:"Enter your message",className:"w-full p-2 sm:p-3 text-sm sm:text-base rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400 transition-all duration-200 resize-none"})]}),u.jsx("button",{type:"submit",className:"w-full bg-green-600 text-white font-semibold py-2 sm:py-3 text-sm sm:text-base rounded hover:bg-green-700 dark:hover:bg-green-700 transition-colors duration-200 active:transform active:scale-[0.98]",children:"Send Message"})]})]})]})]})},Q_="/assets/bg-CMsJHjiS.jpg",J_=[{title:"PASSIVE EARNING SYSTEM",content:"Unlike traditional ride-hailing services, AAAO Go offers a unique team-based earnings model. You can build a network, and even while you sleep, you earn bonuses from the rides and activities of your team."},{title:"MULTIPLE PAYMENT OPTIONS",content:"AAAO Go supports crypto, bank transfers, and mobile wallets, giving drivers and customers full flexibility in managing their earnings."},{title:"NO REGISTRATION FEES",content:"Most platforms charge drivers to join, but AAAO Go has zero registration fees, allowing more drivers to start earning without upfront costs."},{title:"INSTANT WITHDRAWALS",content:"Drivers don't have to wait for weekly payments—they can withdraw their earnings anytime in crypto, to their bank, or mobile wallets."},{title:"ACCOUNT TRANSFER AFTER DEATH",content:"Unlike other ride-hailing apps, AAAO Go ensures that earnings and accounts can be legally transferred to family members in case of unforeseen circumstances."},{title:"MORE THAN JUST RIDES",content:"AAAO Go isn't just for ride-hailing—it also supports services like car recovery, moving, delivery, and other on-demand services, creating more earning opportunities for drivers and service providers."}],e5=[{title:"WHAT IS AAAO GO ?",content:"AAAO Go is an online ride-hailing platform that connects passengers with drivers, offering safe, reliable, and affordable transportation services."},{title:"HOW IS AAAO GO DIFFERENT FROM OTHER RIDE-HAILING SERVICES ?",content:"AAAO Go offers flexible payment options, multiple service categories (including car recovery and delivery), and a seamless experience for both riders and drivers."},{title:"WHERE IS AAAO GO AVAILABLE ?",content:"Currently, AAAO Go is launching in the UAE, with plans for expansion to other regions."},{title:"IS THERE A REGISTRATION FEE FOR DRIVERS OR CUSTOMERS ?",content:"No, AAAO Go does not charge any registration fees for drivers or customers."}],t5=[{title:"HOW DO I BOOK A RIDE ON AAAO GO ?",content:"Simply download the AAAO Go app, sign up, enter your destination, choose your ride type, and confirm your booking."},{title:"WHAT PAYMENT METHODS DOES AAAO GO ACCEPT ?",content:"We accept cash, credit/debit cards, mobile wallets, and cryptocurrency payments for ride bookings."},{title:"CAN I SCHEDULE A RIDE IN ADVANCE ?",content:"Yes, AAAO Go allows you to schedule rides for a future time and date."},{title:"HOW CAN I TRACK MY RIDE ?",content:"You can track your ride in real time through the app after booking."},{title:"WHAT IF I FORGET SOMETHING IN THE CAR ?",content:"You can report lost items through the app, and we will assist in retrieving them."}],n5=[{title:"HOW CAN I BECOME A DRIVER WITH AAAO GO ?",content:"You can sign up as a driver through the app or website by providing the required documents and completing the verification process."},{title:"HOW DO DRIVERS GET PAID ?",content:"Drivers can withdraw their earnings anytime through crypto, bank transfers, or mobile wallets."},{title:"WHAT TYPE OF CAR CAN BE USED FOR AAAO GO ?",content:"AAAO Go accepts various car types depending on the service category. Details are available in the driver registration section."},{title:"IS THERE A DRIVER SUPPORT CENTER ?",content:"Yes, we have dedicated customer support for drivers to assist with any issues."}],r5=[{title:"HOW DO CUSTOMERS AND DRIVERS WITHDRAW MONEY ?",content:"Both customers and drivers can withdraw their AAAO Go balance anytime via bank transfers, mobile wallets, or cryptocurrency."},{title:"WHAT HAPPEN TO MY AAAO GO ACCOUNT IF I PASS AWAY ?",content:"AAAO Go allows account transfers to legal heirs after verification, ensuring continuity of earnings or service."}],a5=[{title:"IS AAAO GO SAFE FOR RIDERS AND DRIVERS ?",content:"Yes, we have strict safety measures, including driver verification, real-time tracking, and emergency contact features."},{title:"Can I share my ride details with family or friends?",content:"Yes, AAAO Go allows you to share your live ride location with trusted contacts."}],s5=[{title:"How can I contact AAAO Go for support ?",content:"You can reach our support team through the app's help center, email, or customer service hotline."}],i5=()=>{const[e,n]=X.useState({general:null,questions:null,riders:null,drivers:null,payments:null,safety:null,contact:null}),a=(l,c)=>{n(d=>({...d,[l]:d[l]===c?null:c}))},s=(l,c,d)=>u.jsx("div",{className:"px-3 sm:px-4 lg:px-6 py-6 sm:py-8 lg:py-10 text-green-800 dark:text-green-300",children:u.jsxs("div",{className:"w-full",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold mb-4 sm:mb-6 leading-tight",children:l}),u.jsx("div",{className:"space-y-2 sm:space-y-3",children:d.map((f,h)=>u.jsxs("div",{className:"border-b border-green-300 dark:border-gray-600 py-3 sm:py-4 cursor-pointer",children:[u.jsxs("div",{onClick:()=>a(c,h),className:"flex justify-between items-start gap-4",children:[u.jsx("h3",{className:`font-bold text-xs sm:text-sm lg:text-sm leading-relaxed flex-1 ${e[c]===h?"text-[#0B996F]":"text-[#0A4624] dark:text-green-300"}`,children:f.title}),u.jsx("div",{className:"flex-shrink-0 mt-1",children:e[c]===h?u.jsx(VN,{className:"text-[#0B996F] text-sm"}):u.jsx(FN,{className:"text-[#0B996F] text-sm"})})]}),e[c]===h&&f.content&&u.jsx("div",{className:"mt-3 sm:mt-4 pl-0",children:u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-xs sm:text-sm leading-relaxed",children:f.content})})]},h))})]})});return u.jsxs("div",{className:"bg-white p-2 sm:p-3 lg:p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[u.jsx("div",{className:"min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl my-4 sm:my-6 lg:my-7 w-full sm:w-[98%] lg:w-[95%] mx-auto bg-black text-white",children:u.jsxs("div",{className:"relative bg-cover bg-center min-h-[300px] sm:min-h-[400px] lg:h-[500px] rounded-2xl sm:rounded-3xl overflow-hidden flex items-center mt-12 sm:mt-16 lg:mt-20 justify-center p-4 sm:p-6",style:{backgroundImage:`url(${Q_})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-70"}),u.jsxs("div",{className:"relative z-10 text-center px-2 sm:px-4",children:[u.jsxs("nav",{className:"text-xs sm:text-sm text-white/80 mb-3 sm:mb-4 flex items-center justify-center",children:[u.jsx(xt,{to:"/",className:"hover:underline text-white",children:"Home"}),u.jsx("span",{className:"mx-2 text-[#387B55] text-lg sm:text-2xl -mt-1",children:"›"}),u.jsx("span",{children:"FAQ"})]}),u.jsxs("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold leading-tight",children:["Answers to Common Questions about Our"," ",u.jsx("br",{className:"hidden lg:block"})," Services and Policies"]})]})]})}),u.jsxs("div",{className:"flex flex-col xl:flex-row w-full gap-6 lg:gap-8",children:[u.jsxs("div",{className:"w-full xl:w-[75%]",children:[s("FAQS!","general",J_),s("General Questions","questions",e5),s("For Riders","riders",t5),s("For Drivers","drivers",n5),s("Payments & Account Transfer","payments",r5),s("Safety & Security","safety",a5),s("Support & Contact","contact",s5)]}),u.jsx("div",{className:"w-full xl:w-[25%] px-3 sm:px-4 lg:px-6 pb-8 sm:pb-12 lg:pb-16 text-green-800 dark:text-green-300 xl:mt-16",children:u.jsxs("div",{className:"bg-green-50 dark:bg-gray-800 rounded-2xl p-4 sm:p-6 shadow-sm sticky top-6",children:[u.jsx("div",{className:"bg-white dark:bg-gray-700 w-10 h-10 sm:w-12 sm:h-12 flex items-center justify-center rounded-full mb-3 sm:mb-4 shadow",children:u.jsx(ZN,{className:"text-green-600 dark:text-green-300 text-lg sm:text-xl"})}),u.jsx("h3",{className:"text-lg sm:text-xl font-semibold text-green-700 dark:text-green-300 mb-2 sm:mb-3 leading-tight",children:"You have a different question?"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-xs sm:text-sm mb-4 sm:mb-6 leading-relaxed",children:"Reach out to our customer support team for prompt and personalized assistance."}),u.jsx(xt,{to:"/contact",className:"inline-block bg-[#0B996F] text-white font-semibold py-2 sm:py-3 px-4 sm:px-6 rounded text-sm sm:text-base hover:bg-green-700 dark:hover:bg-green-700 transition-colors duration-300",children:"Contact Us"})]})})]}),u.jsxs("div",{className:"bg-[#e8f7f0] dark:bg-gray-800 relative py-12 sm:py-16 lg:py-20 mb-4 sm:mb-5 px-4 sm:px-6 lg:px-6 min-h-[70vh] sm:min-h-[80vh] lg:h-[130vh] items-center flex w-full sm:w-[98%] lg:w-[95%] rounded-2xl sm:rounded-3xl mx-auto",style:{backgroundImage:`url(${I1})`},children:[u.jsx("div",{className:"absolute inset-0 bg-[#E2F4EA] dark:bg-gray-900/50 opacity-50 rounded-2xl sm:rounded-3xl"}),u.jsxs("div",{className:"w-full px-2 sm:px-3 lg:px-3 z-10 mx-auto flex flex-col lg:flex-row items-center justify-between gap-8 sm:gap-12 lg:gap-16",children:[u.jsxs("div",{className:"text-center lg:text-left max-w-xl w-full lg:w-auto",children:[u.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-[#0B996F] mb-3 sm:mb-4 leading-tight",children:["The Easiest Way to Book ",u.jsx("br",{className:"hidden sm:block"}),"Your Ride Register Now for ",u.jsx("br",{className:"hidden sm:block"}),"Instant Access"]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base lg:text-lg mb-4 sm:mb-6 leading-relaxed px-2 lg:px-0",children:"Book your ride quickly and effortlessly with just a few taps on our app"}),u.jsxs("div",{className:"flex flex-row justify-center lg:justify-start gap-3 sm:gap-4",children:[u.jsx("a",{href:"#",className:"block",children:u.jsx("img",{src:Y1,alt:"Google Play",className:"h-10 sm:h-12 rounded-lg"})}),u.jsx("a",{href:"#",className:"block",children:u.jsx("img",{src:X1,alt:"App Store",className:"h-10 sm:h-12 rounded-lg"})})]})]}),u.jsxs("div",{className:"relative w-full lg:w-auto flex justify-center",children:[u.jsx("img",{src:G1,alt:"Happy user",className:"w-full max-w-sm sm:max-w-md h-[50vh] sm:h-[60vh] lg:h-[100vh] object-cover rounded-2xl"}),u.jsx("img",{src:q1,alt:"App Screenshot",className:"absolute top-16 sm:top-20 lg:top-32 -left-6 sm:-left-8 lg:-left-28 w-16 sm:w-20 md:w-24 lg:w-60 drop-shadow-xl"})]})]})]})]})},nw="/assets/logo-C1IfLRO8.png",l5=()=>{const e=In(),n=Zt(),a=Xe(kl),s=Xe(su),{theme:l}=Rl(),[c,d]=X.useState({identifier:"",password:""}),[f,h]=X.useState(!1),[m,g]=X.useState({}),x=S=>{const{name:A,value:E}=S.target;d(C=>({...C,[A]:E})),g(C=>({...C,[A]:"",form:""}))},w=S=>/\S+@\S+\.\S+/.test(S)?{email:S,phoneNumber:"",username:""}:/^\+?\d{10,15}$/.test(S.replace(/\s/g,""))?{email:"",phoneNumber:S,username:""}:{email:"",phoneNumber:"",username:S},T=()=>{const S={};return c.identifier.trim()||(S.identifier="Email, phone number, or username is required"),c.password||(S.password="Password is required"),g(S),Object.keys(S).length===0};X.useEffect(()=>{s&&(g({form:typeof s=="string"?s:s.message||"An error occurred"}),e(Us()))},[s,e]);const k=async S=>{if(S.preventDefault(),g({}),e(Us()),!T())return;const A={...w(c.identifier),password:c.password};try{const E=await e(uc(A)).unwrap();console.log("Login successful:",E),n("/profile")}catch(E){console.error("Login failed:",E)}};return u.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${l==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gray-100"}`,children:u.jsxs("div",{className:`shadow-lg rounded-2xl flex flex-col md:flex-row w-full max-w-6xl my-8 sm:my-12 overflow-hidden transition-colors duration-300 ${l==="dark"?"bg-gray-800":"bg-white"}`,children:[u.jsxs("div",{className:"w-full md:w-1/2 flex flex-col justify-center items-center p-6 sm:p-10",children:[u.jsx("h2",{className:`text-2xl sm:text-3xl font-semibold mb-4 text-center ${l==="dark"?"text-yellow-400":"text-[#013220]"}`,children:"Sign in to Your Account"}),m.form&&u.jsx("p",{className:`text-sm mb-4 text-center ${l==="dark"?"text-red-400":"text-red-600"}`,children:m.form}),u.jsx("div",{className:"flex space-x-3 mb-5",children:[ou,D1,L1].map((S,A)=>u.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${l==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:a,children:u.jsx(S,{className:l==="dark"?"text-gray-300":"text-gray-600"})},A))}),u.jsxs("form",{onSubmit:k,className:"w-full max-w-sm space-y-4",children:[u.jsxs("div",{children:[m.identifier&&u.jsx("p",{className:`text-sm mb-1 ${l==="dark"?"text-red-400":"text-red-600"}`,children:m.identifier}),u.jsx("input",{type:"text",name:"identifier",value:c.identifier,onChange:x,placeholder:"Email, Phone, or Username",disabled:a,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${l==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${m.identifier?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${m.identifier?"!border-red-600":""}`}`})]}),u.jsxs("div",{children:[m.password&&u.jsx("p",{className:`text-sm mb-1 ${l==="dark"?"text-red-400":"text-red-600"}`,children:m.password}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:f?"text":"password",name:"password",value:c.password,onChange:x,placeholder:"Password",disabled:a,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${l==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${m.password?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${m.password?"!border-red-600":""}`}`}),u.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${l==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>h(!f),children:f?u.jsx(pl,{}):u.jsx(gl,{})})]})]}),u.jsxs("div",{className:`flex justify-between items-center text-sm ${l==="dark"?"text-gray-300":"text-gray-600"}`,children:[u.jsxs("label",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",className:`w-4 h-4 ${l==="dark"?"text-yellow-400":"text-[#013220]"}`}),"Remember me"]}),u.jsx(xt,{to:"/forgot-password",className:`hover:underline ${l==="dark"?"text-teal-400":"text-teal-600"}`,children:"Forgot password?"})]}),u.jsx("button",{type:"submit",disabled:a,className:`w-full p-3 font-semibold rounded-full transition-colors duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${l==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400"}`,children:a?"Signing in...":"Sign In"})]})]}),u.jsxs("div",{className:`w-full md:w-1/2 flex flex-col justify-center items-center p-8 transition-colors duration-300 ${l==="dark"?"bg-gradient-to-b from-gray-900 to-gray-700 text-yellow-400":"bg-gradient-to-b from-green-900 to-green-700 text-yellow-400"}`,children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsx("img",{src:nw,alt:"Aao Go Logo",className:"w-20 h-20 object-contain mb-2"}),u.jsx("h2",{className:"text-xl font-semibold text-yellow-400",children:"Welcome to Aao Go"})]}),u.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-400",children:"Sign in and continue your journey with us."}),u.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Don’t have an account? Sign up now!"}),u.jsx(xt,{to:"/signup",className:`border px-6 py-2 rounded-full transition text-sm ${l==="dark"?"border-yellow-400 hover:bg-yellow-400 hover:text-gray-900":"border-yellow-400 hover:bg-yellow-400 hover:text-green-900"}`,children:"Sign Up"})]})]})})},o5=[{code:"+1",label:"US (+1)"},{code:"+44",label:"UK (+44)"},{code:"+92",label:"Pakistan (+92)"},{code:"+91",label:"India (+91)"},{code:"+971",label:"UAE (+971)"},{code:"+61",label:"Australia (+61)"},{code:"+81",label:"Japan (+81)"},{code:"+86",label:"China (+86)"}],c5=()=>{const e=In(),n=Zt(),[a]=wN(),s=Xe(kl),l=Xe(su),{theme:c}=Rl(),[d,f]=X.useState({username:"",firstName:"",lastName:"",email:"",countryCode:"+92",phoneNumber:"",password:"",confirmPassword:"",sponsorBy:"",gender:"",otp:""}),[h,m]=X.useState({}),[g,x]=X.useState(!1),[w,T]=X.useState(!1),[k,S]=X.useState(""),[A,E]=X.useState(""),[C,L]=X.useState(!1),[I,N]=X.useState(0),[z,F]=X.useState(!0),[H,M]=X.useState(!1);X.useEffect(()=>{const j=a.get("ref");j&&f(W=>({...W,sponsorBy:j}))},[a]),X.useEffect(()=>{let j;return I>0&&(j=setInterval(()=>{N(W=>W<=1?(F(!0),0):W-1)},1e3)),()=>{j&&clearInterval(j)}},[I]),X.useEffect(()=>{const W=setTimeout(async()=>{if(d.sponsorBy.trim())try{const v=(await pt.get(`${tn}${at.GET_USER_BY_USERNAME}?username=${d.sponsorBy}`,{headers:{"Content-Type":"application/json"}})).data.user;v&&v.firstName&&v.lastName?(S(`${v.firstName} ${v.lastName}`),E("")):(S(""),E("Sponsor not found"))}catch(Z){console.error("Error fetching sponsor name:",Z),S(""),E(Z.response?.status===404?"Invalid sponsor username":"Error fetching sponsor details")}else S(""),E("")},500);return()=>clearTimeout(W)},[d.sponsorBy]),X.useEffect(()=>{if(l){const j={};typeof l=="string"?j.form=l:l.errors?Object.entries(l.errors).forEach(([W,Z])=>{j[W]=Z}):l.message&&(j.form=l.message),m(j),e(Us())}},[l,e]);const R=j=>{const{name:W,value:Z}=j.target;f(v=>({...v,[W]:Z})),m(v=>({...v,[W]:"",form:""}))},K=()=>{let j=!0;const W={};return d.username.trim()?/^[a-zA-Z0-9_]{3,30}$/.test(d.username)||(W.username="Username must be 3-30 characters and contain only letters, numbers, or underscores",j=!1):(W.username="Username is required",j=!1),d.firstName.trim()||(W.firstName="First name is required",j=!1),d.email.trim()?/^\S+@\S+\.\S+$/.test(d.email)||(W.email="Email is invalid",j=!1):(W.email="Email is required",j=!1),d.phoneNumber.trim()?/^\d{10}$/.test(d.phoneNumber)||(W.phoneNumber="Phone number must be 10 digits",j=!1):(W.phoneNumber="Phone number is required",j=!1),d.password?d.password.length<8?(W.password="Password must be at least 8 characters",j=!1):(!/[A-Z]/.test(d.password)||!/[0-9]/.test(d.password))&&(W.password="Password must contain at least one uppercase letter and one number",j=!1):(W.password="Password is required",j=!1),d.confirmPassword?d.password!==d.confirmPassword&&(W.confirmPassword="Passwords do not match",j=!1):(W.confirmPassword="Confirm password is required",j=!1),d.gender||(W.gender="Gender is required",j=!1),C&&!d.otp.trim()?(W.otp="OTP is required",j=!1):C&&d.otp.length!==6&&(W.otp="OTP must be 6 digits",j=!1),m(W),j},P=async()=>{const j={};if(d.email.trim()){if(!/\S+@\S+\.\S+/.test(d.email)){j.email="Email is invalid",m(j);return}}else{j.email="Email is required",m(j);return}try{M(!0);const W=await pt.post(`${tn}/email-verification/send-otp`,{email:d.email.trim()});console.log("OTP sent successfully:",W.data),L(!0),F(!1),N(60)}catch(W){console.error("Failed to send OTP:",W),m(Z=>({...Z,email:W.response?.data?.message||"Failed to send OTP"}))}finally{M(!1)}},V=async j=>{if(j.preventDefault(),m({}),e(Us()),!!K())try{const W=`${d.countryCode}${d.phoneNumber}`,Z={...d,phoneNumber:W},v=await e(dc(Z)).unwrap();console.log("Signup successful:",v),ze.createSession(v.token,v.user),n("/")}catch(W){console.error("Signup failed:",W)}};return u.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gray-100"}`,children:u.jsxs("div",{className:`shadow-lg rounded-2xl flex flex-col md:flex-row w-full max-w-6xl my-8 sm:my-12 overflow-hidden transition-colors duration-300 ${c==="dark"?"bg-gray-800":"bg-white"}`,children:[u.jsxs("div",{className:"w-full md:w-1/2 flex flex-col justify-center items-center p-6 sm:p-10",children:[u.jsx("h2",{className:`text-2xl sm:text-3xl font-semibold mb-4 text-center ${c==="dark"?"text-yellow-400":"text-[#013220]"}`,children:"Create Your Account"}),h.form&&u.jsx("p",{className:`text-sm mb-4 text-center ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.form}),u.jsx("div",{className:"flex space-x-3 mb-5",children:[ou,D1,L1].map((j,W)=>u.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${c==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:s,children:u.jsx(j,{className:c==="dark"?"text-gray-300":"text-gray-600"})},W))}),u.jsxs("form",{onSubmit:V,className:"w-full max-w-sm space-y-4",children:[u.jsxs("div",{children:[h.username&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.username}),u.jsx("input",{type:"text",name:"username",value:d.username,onChange:R,placeholder:"Username *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.username?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.username?"border-red-600":""}`}`})]}),u.jsxs("div",{className:"flex gap-3",children:[u.jsxs("div",{className:"w-1/2",children:[h.firstName&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.firstName}),u.jsx("input",{type:"text",name:"firstName",value:d.firstName,onChange:R,placeholder:"First Name *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.firstName?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.firstName?"border-red-600":""}`}`})]}),u.jsxs("div",{className:"w-1/2",children:[h.lastName&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.lastName}),u.jsx("input",{type:"text",name:"lastName",value:d.lastName,onChange:R,placeholder:"Last Name",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.lastName?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.lastName?"border-red-600":""}`}`})]})]}),u.jsxs("div",{children:[h.email&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.email}),u.jsx("input",{type:"email",name:"email",value:d.email,onChange:R,placeholder:"Email *",disabled:s||C,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.email?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.email?"border-red-600":""}`}`})]}),u.jsxs("div",{children:[h.otp&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.otp}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",name:"otp",value:d.otp,onChange:R,placeholder:"Enter 6-digit OTP *",maxLength:6,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.otp?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.otp?"border-red-600":""}`}`}),u.jsx("button",{type:"button",onClick:P,disabled:s||H||!C&&!d.email||C&&!z,className:`px-3 py-2 font-semibold rounded-lg transition-colors duration-300 whitespace-nowrap ${c==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400 disabled:bg-gray-600 disabled:text-gray-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400 disabled:bg-gray-300 disabled:text-gray-600"} disabled:opacity-50 disabled:cursor-not-allowed`,children:H?"Sending...":C?z?"Resend":`Resend (${I}s)`:"Send OTP"})]})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("div",{className:"w-1/3",children:u.jsxs("select",{name:"countryCode",value:d.countryCode,onChange:R,disabled:s,className:`w-full rounded-lg px-2 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none text-sm sm:text-base transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white ${h.phoneNumber?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 ${h.phoneNumber?"border-red-600":""}`}`,children:[u.jsx("option",{value:"",disabled:!0,children:"Select Code *"}),o5.map(j=>u.jsx("option",{value:j.code,children:j.label},j.code))]})}),u.jsxs("div",{className:"w-2/3",children:[h.phoneNumber&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.phoneNumber}),u.jsx("input",{type:"tel",name:"phoneNumber",value:d.phoneNumber,onChange:R,placeholder:"Phone Number *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.phoneNumber?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.phoneNumber?"border-red-600":""}`}`})]})]}),u.jsxs("div",{children:[h.gender&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.gender}),u.jsxs("select",{name:"gender",value:d.gender,onChange:R,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white ${h.gender?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 ${h.gender?"border-red-600":""}`}`,children:[u.jsx("option",{value:"",children:"Select Gender *"}),u.jsx("option",{value:"Male",children:"Male"}),u.jsx("option",{value:"Female",children:"Female"}),u.jsx("option",{value:"Other",children:"Other"})]})]}),u.jsxs("div",{children:[A&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:A}),u.jsx("input",{type:"text",name:"sponsorBy",value:d.sponsorBy,onChange:R,placeholder:"Sponsor Code (Optional)",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${A?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${A?"border-red-600":""}`}`}),k&&u.jsxs("p",{className:`text-sm mt-1 ${c==="dark"?"text-gray-300":"text-gray-600"}`,children:["Sponsor: ",k]})]}),u.jsxs("div",{children:[h.password&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.password}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:g?"text":"password",name:"password",value:d.password,onChange:R,placeholder:"Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.password?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.password?"border-red-600":""}`}`}),u.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>x(!g),children:g?u.jsx(pl,{}):u.jsx(gl,{})})]})]}),u.jsxs("div",{children:[h.confirmPassword&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.confirmPassword}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:w?"text":"password",name:"confirmPassword",value:d.confirmPassword,onChange:R,placeholder:"Confirm Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.confirmPassword?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.confirmPassword?"border-red-600":""}`}`}),u.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>T(!w),children:w?u.jsx(pl,{}):u.jsx(gl,{})})]})]}),u.jsx("button",{type:"submit",disabled:s,className:`w-full p-3 font-semibold rounded-full transition-colors duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${c==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400"}`,children:s?"Creating Account...":"Sign Up"})]})]}),u.jsxs("div",{className:`w-full md:w-1/2 flex flex-col justify-center items-center p-8 transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-900 to-gray-700":"bg-gradient-to-b from-green-900 to-green-700"} text-yellow-400`,children:[u.jsx("img",{src:nw,alt:"AAO GO Logo",className:"w-28 sm:w-36 md:w-44 mb-4"}),u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center",children:"Welcome to AAO GO"}),u.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-200",children:"Sign up and start your journey with us."}),u.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Already have an account? Sign in to continue!"}),u.jsx(xt,{to:"/login",className:`border px-6 py-2 rounded-full transition text-sm ${c==="dark"?"border-yellow-400 hover:bg-yellow-400 hover:text-gray-900":"border-yellow-400 hover:bg-yellow-400 hover:text-green-900"}`,children:"Sign In"})]})]})})},u5=()=>{const e=In(),n=Zt(),a=Xe(kl),s=Xe(su),[l,c]=X.useState({email:""}),[d,f]=X.useState({}),h=x=>{const{name:w,value:T}=x.target;c(k=>({...k,[w]:T})),d[w]&&f(k=>({...k,[w]:""}))},m=()=>{const x={};return l.email.trim()?/\S+@\S+\.\S+/.test(l.email)||(x.email="Email is invalid"):x.email="Email is required",f(x),Object.keys(x).length===0},g=async x=>{if(x.preventDefault(),e(Us()),!m()){Lv(d);return}try{console.log("ForgotPassword - Starting password reset for email:",l.email);const w=await e(fc({email:l.email})).unwrap();if(console.log("ForgotPassword - OTP sent, result:",w),!w.userId){console.error("ForgotPassword - No userId in response, received:",w),nt("Failed to initiate password reset. Please try again.");return}console.log("ForgotPassword - Navigating to reset-password with state:",{userId:w.userId,email:l.email,token:w.token}),n("/reset-password",{state:{userId:w.userId,email:l.email}})}catch(w){console.error("ForgotPassword failed:",w),nt(w||"Failed to send OTP. Please try again.")}};return u.jsx("div",{className:"min-h-screen flex items-center justify-center rounded-xl bg-gradient-to-b from-green-200 to-green-300 dark:from-gray-800 dark:to-gray-900",children:u.jsxs("div",{className:"bg-[#E4E4E4] dark:bg-gray-800 rounded-2xl shadow-md dark:shadow-gray-700 w-[90%] max-w-md p-6 md:p-8",children:[u.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-gray-900 dark:text-white",children:"Forgot Password"}),s&&u.jsx("div",{className:"bg-red-500 bg-opacity-20 text-red-500 dark:text-red-400 p-3 rounded-lg mb-4 text-center",children:s}),u.jsxs("form",{onSubmit:g,className:"space-y-5",children:[u.jsxs("div",{children:[u.jsxs("label",{className:"block text-sm font-semibold text-[#0A4624] dark:text-gray-200 mb-1",children:["Email ",u.jsx("span",{className:"text-red-500 dark:text-red-400",children:"*"})]}),u.jsx("input",{type:"email",name:"email",value:l.email,onChange:h,className:"w-full bg-white dark:bg-gray-700 text-gray-900 dark:text-white border border-gray-300 dark:border-gray-600 rounded px-4 py-1 outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 placeholder-gray-400 dark:placeholder-gray-400",placeholder:"Enter your email"}),d.email&&u.jsx("p",{className:"text-red-500 dark:text-red-400 text-xs mt-1",children:d.email})]}),u.jsx("button",{type:"submit",disabled:a,className:"w-full bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-500 disabled:opacity-50 disabled:cursor-not-allowed transition",children:a?"Sending OTP...":"Send OTP"})]})]})})},d5=()=>{const e=In(),n=Zt(),a=Mn(),s=Xe(kl),l=Xe(su),{theme:c}=Rl(),{userId:d,email:f}=a.state||{},h=d||localStorage.getItem("signupUserId"),m=f||localStorage.getItem("signupEmail");console.log("ResetPassword - location.state:",{stateUserId:d,stateEmail:f}),console.log("ResetPassword - localStorage:",{userId:h,email:m}),d&&f&&(localStorage.setItem("signupUserId",d),localStorage.setItem("signupEmail",f));const[g,x]=X.useState({resetOtp:"",password:"",confirmPassword:""}),[w,T]=X.useState(!1),[k,S]=X.useState(!1),[A,E]=X.useState({}),C=N=>{const{name:z,value:F}=N.target;x(H=>({...H,[z]:F})),A[z]&&E(H=>({...H,[z]:""}))},L=()=>{const N={};return g.resetOtp.trim()||(N.resetOtp="OTP is required"),g.password?g.password.length<8&&(N.password="Password must be at least 8 characters"):N.password="Password is required",g.password!==g.confirmPassword&&(N.confirmPassword="Passwords do not match"),E(N),Object.keys(N).length===0},I=async N=>{if(N.preventDefault(),e(Us()),!L()){Lv(A),e(Hf(!1));return}if(!h){nt("Cannot reset password: User ID is missing."),e(Hf(!1));return}try{console.log("ResetPassword - Starting password reset for userId:",h);const z={userId:h,resetOtp:g.resetOtp,password:g.password},F=await e(hc(z)).unwrap();console.log("ResetPassword - Password reset successful, result:",F),localStorage.removeItem("signupUserId"),localStorage.removeItem("signupEmail"),n("/login",{replace:!0})}catch(z){console.error("ResetPassword failed:",z),e(Hf(!1)),nt(z.message||"Failed to reset password.")}};return u.jsx("div",{className:`min-h-screen flex items-center justify-center transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gradient-to-b from-green-200 to-green-300"}`,children:u.jsxs("div",{className:`rounded-2xl shadow-md w-[90%] max-w-md p-6 md:p-8 transition-colors duration-300 ${c==="dark"?"bg-gray-700 text-white":"bg-[#E4E4E4] text-gray-900"}`,children:[u.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Reset Password"}),l&&u.jsx("div",{className:`bg-red-500 bg-opacity-20 p-3 rounded-lg mb-4 text-center ${c==="dark"?"text-red-300":"text-red-500"}`,children:l}),u.jsxs("form",{onSubmit:I,className:"space-y-5",children:[u.jsxs("div",{children:[u.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["OTP ",u.jsx("span",{className:"text-red-500",children:"*"})]}),u.jsx("input",{type:"text",name:"resetOtp",value:g.resetOtp,onChange:C,className:`w-full border rounded px-4 py-1 outline-none transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Enter the OTP sent to your email",disabled:s}),A.resetOtp&&u.jsx("p",{className:"text-red-500 text-xs mt-1",children:A.resetOtp})]}),u.jsxs("div",{className:"relative",children:[u.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["New Password ",u.jsx("span",{className:"text-red-500",children:"*"})]}),u.jsx("input",{type:w?"text":"password",name:"password",value:g.password,onChange:C,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Enter your new password",disabled:s}),u.jsx("div",{className:`absolute right-3 top-9 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>T(!w),children:w?u.jsx(pl,{}):u.jsx(gl,{})}),A.password&&u.jsx("p",{className:"text-red-500 text-xs mt-1",children:A.password})]}),u.jsxs("div",{className:"relative",children:[u.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["Confirm Password ",u.jsx("span",{className:"text-red-500",children:"*"})]}),u.jsx("input",{type:k?"text":"password",name:"confirmPassword",value:g.confirmPassword,onChange:C,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Confirm your new password",disabled:s}),u.jsx("div",{className:`absolute right-3 top-9 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>S(!k),children:k?u.jsx(pl,{}):u.jsx(gl,{})}),A.confirmPassword&&u.jsx("p",{className:"text-red-500 text-xs mt-1",children:A.confirmPassword})]}),u.jsx("button",{type:"submit",disabled:s,className:`w-full px-6 py-2 rounded text-white font-medium transition-all duration-300 shadow-sm hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed ${c==="dark"?"bg-blue-600 hover:bg-blue-700":"bg-blue-500 hover:bg-blue-600"}`,children:s?"Resetting...":"Reset Password"})]})]})})},f5=({label:e,amount:n,link:a})=>u.jsxs(xt,{to:a,className:"shadow rounded-xl p-4 flex flex-col items-center w-36 cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #013220, #083A06)",border:"1px solid #FFD700",color:"#FFD700",textDecoration:"none"},children:[u.jsx("span",{className:"font-medium text-center",children:e}),u.jsxs("span",{className:"text-lg font-bold",children:["AED ",n.toFixed(2)]})]});function h5(){const e=Zt(),n=In(),a=Xe(d1),s=Xe(f1);Xe(Nr),X.useEffect(()=>{n(sl())},[n]);const l=a?.summary||{totalEarnings:{ddr:0,crr:0,bbr:0,hlr:0,countryAmbassador:0}},c=a?.wallet||{currentBalance:0,totalEarned:0},d=[{label:"DDR",amount:l.totalEarnings.ddr||0,link:"/ddr"},{label:"CRR",amount:l.totalEarnings.crr||0,link:"/crr"},{label:"BBR",amount:l.totalEarnings.bbr||0,link:"/bbr"},{label:"HLR",amount:l.totalEarnings.hlr||0,link:"/hlr"},{label:"COUNTRY Ambassador",amount:l.totalEarnings.countryAmbassador||0,link:"/RegionalAmbassador"}];return u.jsxs("div",{className:"min-h-screen mb-10 flex flex-col items-center p-6 mt-20 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-lg mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold mb-6",children:"MLM Bonuses"}),u.jsxs("div",{className:"grid grid-cols-2 gap-6 rounded-2xl p-6 w-full max-w-lg mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Total Earned (Lifetime)"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",c.totalEarned.toFixed(2)]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Available Balance"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",c.currentBalance.toFixed(2)]})]})]}),a?.user&&u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-lg mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"User Information"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Username"}),u.jsx("p",{className:"font-bold",children:a.user.username})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Name"}),u.jsxs("p",{className:"font-bold",children:[a.user.firstName," ",a.user.lastName]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Sponsor ID"}),u.jsx("p",{className:"font-bold",children:a.user.sponsorId})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Joined"}),u.jsx("p",{className:"font-bold",children:new Date(a.user.joinedAt).toLocaleDateString()})]})]})]}),s&&u.jsx("div",{className:"text-center py-8",children:u.jsx("p",{className:"text-xl",children:"Loading MLM dashboard data..."})}),u.jsx("div",{className:"flex gap-4 flex-wrap justify-center mb-6",children:d.map((f,h)=>u.jsx(f5,{label:f.label,amount:f.amount,link:f.link},h))})]})}const rb=()=>{const e=In(),n=Zt(),{userId:a}=CA(),s=Xe(FE),l=Xe(VE),c=Xe(HE),d=Xe(Nr),f=Xe(c1),h=Xe(mm),[m,g]=X.useState(null),[x,w]=X.useState(!0),[T,k]=X.useState(1),[S,A]=X.useState(null),[E,C]=X.useState(!1),[L,I]=X.useState(null),[N,z]=X.useState([]),[F,H]=X.useState(!1),[M,R]=X.useState(""),[K,P]=X.useState(!1),[V,j]=X.useState(!1),[W,Z]=X.useState(null),[v,ue]=X.useState(null),[q,b]=X.useState([]),[O,U]=X.useState({}),[J,Q]=X.useState(!1),[ne,ie]=X.useState(null),ve=()=>{const ee=ze.getToken(),xe=ze.getUser(),ke=ze.isAuthenticated(),Ce=!!(ee&&xe&&ke);return w(Ce),console.log("MLMTree - Session validity check:",{sessionToken:!!ee,sessionUser:!!xe,sessionIsAuth:ke,isValid:Ce}),Ce},Se=async ee=>{try{H(!0),I(null),console.log("Loading specific user tree for:",ee);const xe=await mn.getReferralTree(ee);console.log("Specific user tree response:",xe.data),console.log("Response structure:",{hasReferralTree:!!xe.data.referralTree,hasUser:!!xe.data.user,referralTreeUser:xe.data.referralTree?.user,directUser:xe.data.user}),A(xe.data);const ke=xe.data.referralTree?.user||xe.data.user;if(console.log("Setting selectedMember to:",ke),g(ke),(xe.data.referralTree?.user||xe.data.user)&&(!(window.location.pathname===`/user-tree/${ee}`)||N.length===0)){const He=[...N,{member:xe.data.referralTree?.user||xe.data.user}];z(He),sessionStorage.setItem("treeHistory",JSON.stringify(He))}}catch(xe){console.error("Error loading specific user tree:",xe),I(xe.response?.data?.message||"Failed to load user tree")}finally{H(!1)}},Te=async()=>{try{const ee=await mn.getReferralLink();return R(ee.data.referralLink),ee.data.referralLink}catch(ee){return console.error("Error fetching referral link:",ee),P(!1),alert("Failed to fetch referral link. Please try again."),null}},Ne=async()=>{try{const ee=M||await Te();ee&&(await navigator.clipboard.writeText(ee),P(!0),setTimeout(()=>P(!1),2e3))}catch(ee){console.error("Error copying referral link:",ee),P(!1),alert("Failed to copy referral link. Please try again.")}},Oe=async ee=>{try{return(await mn.getUserById(ee)).data.user}catch(xe){return console.error(`Error fetching details for user ${ee}:`,xe),null}},Le=async ee=>{Q(!0),ie(null);try{const xe=ee.map(async He=>{if(O[He.id])return{id:He.id,details:O[He.id]};const sn=await Oe(He.id);return{id:He.id,details:sn}}),Ce=(await Promise.all(xe)).reduce((He,{id:sn,details:ft})=>(ft&&(He[sn]=ft),He),{...O});U(Ce)}catch(xe){console.error("Error fetching level members details:",xe),ie("Failed to load member details")}finally{Q(!1)}},Re=async ee=>{try{Z(ee),j(!0);const xe=await mn.getUserById(ee.id);ue(xe.data.user);const ke=await mn.getReferralTree(ee.id),Ce=ke.data.referralTree?.members||ke.data.referralTree?.levels?.members||ke.data.members||{},He=Object.keys(Ce).filter(ft=>ft.startsWith("level")).reduce((ft,yn)=>[...ft,...Ce[yn]],[]),sn=await Promise.all(He.map(async ft=>{try{return(await mn.getUserById(ft.id)).data.user}catch(yn){return console.error(`Error fetching details for user ${ft.id}:`,yn),{...ft,selfieImage:null}}}));b(sn)}catch(xe){console.error("Error fetching member details:",xe),ue(null),b([]),alert("Failed to load member details. Please try again.")}},_=ee=>{console.log("=== handleNavigateToMemberTree DEBUG ==="),console.log("Full member object:",ee),console.log("Member ID:",ee.id),console.log("Member _id:",ee._id),console.log("Member userId:",ee.userId),console.log("All member keys:",Object.keys(ee)),console.log("Navigating to:",`/user-tree/${ee.id}`),console.log("=== END DEBUG ===");const xe=[...N,{member:ee}];z(xe),sessionStorage.setItem("treeHistory",JSON.stringify(xe)),n(`/user-tree/${ee.id}`)},de=ee=>{const xe=N[ee];if(xe){const ke=N.slice(0,ee+1);z(ke),sessionStorage.setItem("treeHistory",JSON.stringify(ke)),n(`/user-tree/${xe.member.id}`)}},ce=()=>{z([]),sessionStorage.removeItem("treeHistory"),n("/tree")};X.useEffect(()=>{console.log("=== TreeView useEffect triggered ==="),console.log("MLMTree component mounted"),console.log("Current token:",f),console.log("Current user:",d),console.log("Is authenticated:",h),console.log("URL userId:",a),console.log("URL pathname:",window.location.pathname),console.log("useParams userId:",a);const ee=ve();console.log("Session valid:",ee),ee?a?(console.log("=== LOADING SPECIFIC USER TREE ==="),console.log("Target userId:",a),console.log("Loading specific user tree from URL"),A(null),g(null),Se(a)):(console.log("=== LOADING MAIN TREE ==="),console.log("Dispatching fetchReferralTree with valid session"),A(null),g(null),e(Ds()),Te()):console.log("No valid session found, skipping API call"),console.log("=== End of useEffect ===")},[e,f,d,h,a]),X.useEffect(()=>{const ee=xe=>{console.log("MLMTree - Session cleared event received:",xe.detail),w(!1),e(UE())};return window.addEventListener("sessionCleared",ee),()=>window.removeEventListener("sessionCleared",ee)},[e]),X.useEffect(()=>{const ee=sessionStorage.getItem("treeHistory");if(ee)try{z(JSON.parse(ee))}catch(xe){console.error("Error parsing tree history:",xe),sessionStorage.removeItem("treeHistory")}},[]),X.useEffect(()=>{const xe=!!a?S:s,Ce=(xe?.referralTree?.members||xe?.referralTree?.levels?.members||xe?.members||{})[`level${T}`]||[];Ce.length>0?Le(Ce):U({})},[T,S,s]);const G=ee=>ee?new Date(ee).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}):"N/A";if(!x||!h||!d)return u.jsx("div",{className:"min-h-screen mt-18",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"Authentication Required"}),u.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:x?"Please log in to view your referral tree.":"Your session has expired. Please log in again."}),u.jsx("button",{onClick:()=>n("/login"),className:"px-8 py-3 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Go to Login"})]})})});if(l||F||J)return u.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 mx-auto mb-4",style:{borderColor:"#FFD700"}}),u.jsx("p",{className:"text-xl",style:{color:"#FFD700"},children:a?"Loading user tree...":J?"Loading member details...":"Loading your referral tree..."})]})})});if(c||L||ne)return u.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"Error Loading Referral Tree"}),u.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:L||c||ne}),u.jsxs("div",{className:"flex gap-4 justify-center",children:[u.jsx("button",{onClick:()=>{a?Se(a):e(Ds())},className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Try Again"}),u.jsx("button",{onClick:ce,className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#013220",color:"#FFD700",border:"1px solid #FFD700"},children:"Back to Main Tree"})]})]})})});const Y=!!a,te=Y?S:s,pe=te?.referralTree?.members||te?.referralTree?.levels?.members||te?.members||{},ye=te?.referralTree?.counts||te?.referralTree?.levels?.counts||te?.counts||{},le=Object.keys(pe).filter(ee=>ee.startsWith("level")).map(ee=>parseInt(ee.replace("level",""),10)).sort((ee,xe)=>ee-xe),je=pe[`level${T}`]||[],Ee=Y?S?.referralTree?.user||m:s?.referralTree?.user||s?.user||d;return console.log("Display logic:",{isViewingSpecificUser:Y,userId:a,selectedMember:m,displayUser:Ee,memberTreeDataUser:S?.referralTree?.user,memberTreeData:!!S}),!te||!te.referralTree&&!te.members?u.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"No Referral Tree Data"}),u.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:a?"This user's referral tree data is not available.":"Your referral tree data is not available."}),u.jsx("button",{onClick:()=>{a?Se(a):e(Ds())},className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Refresh"})]})})}):u.jsx("div",{className:"min-h-screen mt-20 mb-10",style:{backgroundColor:"#083A06"},children:u.jsxs("div",{className:"container mx-auto px-2 sm:px-4 py-4 sm:py-8",children:[!a&&u.jsx("div",{className:"mb-4 sm:mb-6",children:u.jsx("button",{onClick:()=>n(-1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"← Back"})}),a&&u.jsxs("div",{className:"mb-4 sm:mb-6 flex flex-col sm:flex-row gap-2",children:[u.jsx("button",{onClick:()=>{if(N.length>0){const ee=N[N.length-1],xe=N.slice(0,-1);z(xe),sessionStorage.setItem("treeHistory",JSON.stringify(xe)),n(`/user-tree/${ee.member.id}`)}else ce()},className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Back"}),u.jsx("button",{onClick:ce,className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Back to Main Tree"}),N.length>0&&u.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[u.jsx("span",{style:{color:"#FFD700"},children:"History:"}),N.map((ee,xe)=>u.jsxs("button",{onClick:()=>de(xe),className:"text-yellow-400 hover:text-yellow-300 text-sm",children:[ee.member.name||ee.member.username," ",">"]},xe))]})]}),u.jsx("div",{className:"bg-white bg-opacity-10 rounded-lg p-4 sm:p-6 mb-6 sm:mb-8 backdrop-blur-sm",style:{border:"1px solid #FFD700"},children:u.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4 sm:gap-6",children:[Ee?.selfieImage?u.jsx("img",{src:`${As}${Ee.selfieImage}`,alt:"Selfie",className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full object-cover",style:{border:"2px solid #FFD700"}}):u.jsx("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"2px solid #FFD700"},children:u.jsx("span",{className:"text-2xl sm:text-3xl",style:{color:"#FFD700"},children:Ee?.name?.charAt(0)||Ee?.firstName?.charAt(0)||Ee?.username?.charAt(0)||"U"})}),u.jsxs("div",{className:"flex-1 w-full",children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2 sm:gap-4",children:[u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Name:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Ee?.name||(Ee?.firstName&&Ee?.lastName?`${Ee.firstName} ${Ee.lastName}`:"N/A")})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Username:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Ee?.username||"N/A"})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Team Members:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:ye?.totalReferrals||0})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["KYC Status:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Ee?.kycStatus||"N/A"})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Country:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Ee?.country||"N/A"})]})]}),u.jsx("div",{className:"mt-4",children:u.jsx("button",{onClick:Ne,className:`px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base ${K?"bg-green-500":"bg-yellow-400"}`,style:{color:"#013220"},children:K?"Link Copied!":"Share Referral Link"})})]})]})}),u.jsx("div",{className:"flex flex-nowrap gap-1 sm:gap-2 md:gap-4 mb-6 sm:mb-8 justify-center overflow-x-auto",children:le.map(ee=>u.jsxs("button",{onClick:()=>k(ee),className:`px-2 sm:px-4 md:px-8 py-2 sm:py-3 rounded-lg font-semibold transition-colors text-xs sm:text-sm md:text-base whitespace-nowrap flex-shrink-0 ${T===ee?"text-green-900":"text-yellow-400"}`,style:{backgroundColor:T===ee?"#FFD700":"transparent",border:T===ee?"none":"1px solid #FFD700"},children:["Level ",ee," (",ye?.[`level${ee}`]||0,")"]},ee))}),u.jsxs("div",{className:"bg-white bg-opacity-10 rounded-lg overflow-hidden backdrop-blur-sm",style:{border:"1px solid #FFD700"},children:[u.jsx("div",{className:"block sm:hidden",children:je.length>0?u.jsx("div",{className:"p-4 space-y-3",children:je.map((ee,xe)=>u.jsxs("div",{className:"bg-white bg-opacity-5 rounded-lg p-3 border border-yellow-400 border-opacity-30",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[O[ee.id]?.selfieImage?u.jsx("img",{src:`${As}${O[ee.id].selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):u.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:u.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})}),u.jsx("span",{style:{color:"#FFD700"},children:ee.name||ee.username||"N/A"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"ID:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:String(xe+1).padStart(3,"0")})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Rank:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:ee.crrRank?.current||"None"})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:ee.username||"N/A"})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Username:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:ee.name||(ee.firstName&&ee.lastName?`${ee.firstName} ${ee.lastName}`:ee.firstName||ee.lastName||"N/A")})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Created At:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:G(ee.joinedDate)})]}),u.jsxs("div",{className:"col-span-2 flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"TGP:"})," ",u.jsxs("div",{className:"flex items-center justify-center",children:[u.jsx("div",{className:"mb-1 text-[#FFD700]",children:ee.qualificationPoints?.tgp?.monthly||0}),u.jsx("img",{className:"w-[7%] h-[7%]",src:"/images.png",alt:""})]})]}),u.jsxs("div",{className:"col-span-2 flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"PGP:"})," ",u.jsxs("div",{className:"flex items-center justify-center",children:[u.jsx("div",{className:"mb-1 text-[#FFD700]",children:ee.qualificationPoints?.pgp?.monthly||0}),u.jsx("img",{className:"w-[7%] h-[7%]",src:"/images.png",alt:""})]})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Total Amount:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:"AED 0"})]}),u.jsxs("div",{className:"col-span-2 flex gap-2",children:[u.jsx("button",{onClick:()=>Re(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Detail"}),u.jsx("button",{onClick:()=>_(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Tree"})]})]})]},ee.id||xe))}):u.jsxs("div",{className:"p-4 text-center text-xs",style:{color:"#FFD700"},children:["No members found in Level ",T]})}),u.jsx("div",{className:"hidden sm:block overflow-x-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-transparent",children:u.jsxs("table",{className:"w-full min-w-[1200px]",children:[u.jsx("thead",{children:u.jsxs("tr",{style:{backgroundColor:"#013220",borderBottom:"1px solid #FFD700"},children:[u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:"Image"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:"ID"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:"Name"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:"Username"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-20",style:{color:"#FFD700"},children:"Rank"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"TGP"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"PGP"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"Created At"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"Total Amount"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-24 sm:w-32",style:{color:"#FFD700"},children:"Actions"})]})}),u.jsx("tbody",{children:je.length>0?je.map((ee,xe)=>u.jsxs("tr",{className:"hover:bg-opacity-20 hover:bg-yellow-400 transition-colors",style:{borderBottom:"1px solid #FFD700"},children:[u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:O[ee.id]?.selfieImage?u.jsx("img",{src:`${As}${O[ee.id].selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):u.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:u.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})})}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:String(xe+1).padStart(3,"0")}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:ee.name||(ee.firstName&&ee.lastName?`${ee.firstName} ${ee.lastName}`:ee.firstName||ee.lastName||"N/A")}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:ee.username||"N/A"}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-20",style:{color:"#FFD700"},children:ee.crrRank?.current||"None"}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:u.jsxs("div",{className:"flex items-center justify-center",children:[u.jsx("div",{className:"mb-1",children:ee.qualificationPoints?.tgp?.monthly||0}),u.jsx("img",{className:"w-[25%] h-[25%]",src:"/images.png",alt:""})]})}),u.jsxs("td",{className:"px-1 mt-3 flex items-center justify-center sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:[u.jsx("div",{className:"mb-1",children:ee.qualificationPoints?.pgp?.monthly||0}),u.jsx("img",{width:"50%",src:"/images.png",alt:""})]}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:G(ee.joinedDate)}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"AED 0"}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 w-24 sm:w-32",children:u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>Re(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs sm:text-sm md:text-base",children:"View Detail"}),u.jsx("button",{onClick:()=>_(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs sm:text-sm md:text-base",children:"View Tree"})]})})]},ee.id||xe)):u.jsx("tr",{children:u.jsxs("td",{colSpan:"10",className:"px-2 sm:px-3 md:px-6 py-4 sm:py-6 md:py-8 text-center text-xs sm:text-sm md:text-base",style:{color:"#FFD700"},children:["No members found in Level ",T]})})})]})})]}),V&&W&&u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:u.jsxs("div",{className:"bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur-sm max-w-md w-full",style:{border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4 text-center",style:{color:"#FFD700"},children:"Member Details"}),u.jsxs("div",{className:"grid grid-cols-1 gap-3 text-sm",children:[v?.selfieImage?u.jsx("div",{className:"flex justify-center mb-4",children:u.jsx("img",{src:`${As}${v.selfieImage}`,alt:"Selfie",className:"w-32 h-32 rounded-full object-cover",style:{border:"2px solid #FFD700"}})}):u.jsx("div",{className:"flex justify-center mb-4 w-32 h-32 rounded-full items-center",style:{backgroundColor:"#013220",border:"2px solid #FFD700"},children:u.jsx("span",{className:"text-2xl",style:{color:"#FFD700"},children:W?.name?.charAt(0)||W?.username?.charAt(0)||"U"})}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Level:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:W.level||0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:W.name||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Username:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:W.username||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Email:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:W.email||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"KYC Status:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:W.kycStatus||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Created At:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:G(W.joinedDate)})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Total Amount:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:"AED 0"})]}),q.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Referral Levels:"}),u.jsx("div",{className:"mt-2 max-h-40 overflow-y-auto",children:q.map((ee,xe)=>u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[ee.selfieImage?u.jsx("img",{src:`${As}${ee.selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):u.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:u.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"#FFD700"},children:ee.name||ee.username||"Unknown"}),u.jsxs("span",{className:"text-xs ml-2",style:{color:"#FFD700"},children:["(Level ",ee.level||"N/A",")"]})]})]},ee.id||xe))})]})]}),u.jsxs("div",{className:"mt-6 flex justify-center gap-4",children:[u.jsx("button",{onClick:()=>_(W),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"View Tree"}),u.jsx("button",{onClick:()=>j(!1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Close"})]})]})})]})})},m5=()=>{const e=Zt(),n=In(),a=Xe(Nr),s=Xe(kl);if(X.useEffect(()=>{n(Cs())},[]),X.useEffect(()=>{!a&&!s&&n(Cs())},[n,a,s]),s||!a)return u.jsx("div",{className:"text-center mt-24",style:{color:"#FFD700",backgroundColor:"#083A06",minHeight:"100vh"},children:"Loading..."});const l=a?.firstName&&a?.lastName?`${a.firstName} ${a.lastName}`:a?.username||"N/A",c=a?.createdAt?new Date(a.createdAt).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"Not available",d=a?.selfieImage?`${As}/${a.selfieImage}`:null;return u.jsx("div",{className:"min-h-screen flex flex-col mb-10 items-center justify-center p-6",style:{backgroundColor:"#083A06",color:"#FFD700"},children:u.jsxs("div",{className:"relative max-w-md w-full rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.8)",border:"1px solid #FFD700"},children:[u.jsx("div",{className:"flex justify-center",children:d?u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:d,alt:"User",className:"w-28 h-28 rounded-full border-2 shadow-md",style:{borderColor:"#FFD700"},onError:f=>f.target.style.display="none"}),u.jsx("div",{className:"absolute inset-0 rounded-full ring-2 ring-yellow-400 blur-sm"})]}):u.jsx("div",{className:"w-28 h-28 rounded-full flex items-center justify-center text-lg font-semibold",style:{backgroundColor:"#013220",color:"#FFD700"},children:"No Img"})}),u.jsx("h1",{className:"text-center text-2xl font-bold mt-4",children:l}),u.jsxs("p",{className:"text-center text-sm mt-1",style:{color:"#FFD700"},children:["Joining Date: ",c]}),u.jsx("div",{className:"mt-4 flex justify-center",children:u.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-lg",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:[u.jsx("span",{className:"text-lg",children:"👑"}),u.jsx("span",{className:"font-semibold text-yellow-400",children:"Tycoon Starter"})]})}),u.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4",children:[u.jsxs("div",{onClick:()=>e("/mlm"),className:"p-4 rounded-xl cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #013220, #083A06)",border:"1px solid #FFD700",color:"#FFD700"},children:[u.jsx("h2",{className:"font-bold text-lg",children:"My Wallet"}),u.jsx("p",{className:"text-sm mt-1",children:"Check Balance, Transactions, Withdrawals"})]}),u.jsxs("div",{onClick:()=>e("/tree"),className:"p-4 rounded-xl cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #FFD700, #b8860b)",color:"#013220"},children:[u.jsx("h2",{className:"font-bold text-lg",children:"My Team"}),u.jsx("p",{className:"text-sm mt-1",children:"View Directs, Team Stack Growth"})]})]})]})})};function p5(){const e=In(),n=Zt(),a=Xe(d1),s=Xe(f1),l=Xe(Nr),c=Xe(XE),d=Xe(ZE),[f,h]=X.useState(null);X.useEffect(()=>{a||e(sl()),e(pc())},[e,a]);const m=a?.ddr?.earnings?.total||0,g=a?.wallet?.currentBalance||0,x=a?.user?.joinedAt?new Date(a.user.joinedAt).toISOString().split("T")[0]:"",w=[{level:"L1",amount:a?.ddr?.earnings?.level1||0,history:[]},{level:"L2",amount:a?.ddr?.earnings?.level2||0,history:[]},{level:"L3",amount:a?.ddr?.earnings?.level3||0,history:[]},{level:"L4",amount:a?.ddr?.earnings?.level4||0,history:[]}],T=c?.topEarners&&c.topEarners.length>0?c.topEarners.map(A=>({rank:A.rank,name:A.name,username:A.username?`@${A.username}`:"",amount:A.earnings,isCurrentUser:A.isCurrentUser||!1,levelBreakdown:A.levelBreakdown})):[{rank:1,name:"Ali Khan",username:"@ali",amount:15200},{rank:2,name:"Maria Sohail",username:"@maria",amount:14750},{rank:3,name:"Zain Malik",username:"@zain",amount:13900},{rank:4,name:"Fatima Noor",username:"@fatima",amount:13200},{rank:5,name:"John Smith",username:"@john",amount:12800},{rank:6,name:l?.firstName?`${l.firstName} ${l.lastName||""}`:"You",username:l?.username?`@${l.username}`:"@you",amount:m,isCurrentUser:!0}],k=c?.title||"Leaderboard",S=c?.tip||'💡 "Active L1–L4 growth boosts all levels and increases your DDR income!"';return s?u.jsx("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-10 flex flex-col items-center justify-center p-6 mt-20",style:{backgroundColor:"#083A06",color:"#FFD700"},children:u.jsx("div",{className:"text-2xl font-bold",children:"Loading DDR data..."})}):u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-10 flex flex-col items-center p-6 mt-20 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-4xl mb-4",children:u.jsx("button",{onClick:()=>n(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsxs("h1",{className:"text-2xl font-bold my-6",children:[" ","🌙 DREAM DIVIDEND REWARDS (DDR)"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-6 rounded-2xl p-6 w-full max-w-4xl mb-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Total Earned (Lifetime)"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",m.toFixed(2)]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Available Balance"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",g.toFixed(2)]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Joining Date"}),u.jsx("p",{className:"text-3xl font-bold text-yellow-400",children:x})]})]}),u.jsxs("div",{className:"w-full max-w-4xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Level Earnings"}),w.map((A,E)=>u.jsxs("div",{className:"mb-3 p-4 rounded-lg shadow-lg cursor-pointer",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},onClick:()=>h(f===E?null:E),children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsxs("span",{children:[A.level," Earned"]}),u.jsxs("span",{className:"font-bold",children:["AED ",A.amount]})]}),f===E&&u.jsx("div",{className:"mt-3 max-h-40 overflow-y-auto text-sm",children:A.history.length>0?A.history.map((C,L)=>u.jsxs("div",{className:"flex justify-between py-1 border-b border-yellow-700",children:[u.jsx("span",{children:C.date}),u.jsx("span",{children:C.source}),u.jsxs("span",{className:"font-bold",children:["AED ",C.amount]})]},L)):u.jsx("p",{className:"text-gray-300",children:"No history available."})})]},E))]}),u.jsxs("div",{className:"w-full max-w-4xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:k}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d?u.jsx("div",{className:"flex justify-center items-center p-6",children:u.jsx("p",{children:"Loading leaderboard data..."})}):T.length>0?T.map(A=>u.jsxs("div",{className:`flex justify-between px-4 py-2 ${A.isCurrentUser?"bg-yellow-900 font-bold sticky top-0":""}`,children:[u.jsx("span",{children:A.rank}),u.jsxs("span",{children:[A.name," ",u.jsx("small",{className:"text-gray-300",children:A.username})]}),u.jsxs("span",{children:["AED ",A.amount.toFixed(2)]})]},A.rank)):u.jsx("div",{className:"flex justify-center items-center p-6",children:u.jsx("p",{children:"No leaderboard data available"})})})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-2xl shadow-lg mb-4",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsx("p",{className:"italic",children:S})})]})}const ab=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function g5(){const e=In(),n=Zt(),a=Xe(Nr),s=Xe($E),l=Xe(QE),c=Xe(JE),d=Xe(eA),[f,h]=X.useState(!1),[m,g]=X.useState(null),[x,w]=X.useState(!1),T=async()=>{if(a?._id){w(!0);try{const V=ze.getToken(),j=await fetch(`${tn}mlm/user-dashboard/${a._id}`,{method:"GET",headers:{Authorization:`Bearer ${V}`,"Content-Type":"application/json"}});if(j.ok){const W=await j.json();W.success&&g(W.data)}else console.error("Failed to fetch user dashboard:",j.statusText)}catch(V){console.error("Error fetching user dashboard:",V),nt("Failed to load user dashboard")}finally{w(!1)}}};X.useEffect(()=>{e(gc()),e(yc()),T()},[e,a?._id]);const k=[{name:"Challenger",bonus:1e3,icon:"🥇",achieved:!1},{name:"Warrior",bonus:5e3,icon:"🥈",achieved:!1},{name:"Tycoon",bonus:2e4,icon:"🥉",achieved:!1},{name:"Champion",bonus:5e4,icon:"🏅",achieved:!1},{name:"Boss",bonus:2e5,icon:"🎖️",achieved:!1}],S="Challenger",A={value:0,max:2500},E={value:0,max:5e4},C=30,L=m?.crr?.earnings?.totalEarnings||0,I=m?.wallet?.currentBalance||0,N=m?.crr?.earnings?.totalEarnings||0,z=s?.rankTracking?.map(V=>({name:V.rank,bonus:V.reward,icon:V.icon,achieved:V.isAchieved}))||k,F=s?.rankTracking?.find(V=>!V.isAchieved&&!V.isLocked),H=F?.rank||S,M={value:m?.crr?.qualificationPoints?.pgp?.monthly||F?.currentPoints?.pgp||A.value,max:F?.requirements?.pgp||A.max},R={value:m?.crr?.qualificationPoints?.tgp?.monthly||F?.currentPoints?.tgp||E.value,max:F?.requirements?.tgp||E.max},K=C,P=c?.topEarners?.map(V=>({rank:V.position,name:V.name,username:`@${V.username||""}`,userRank:V.rank,rankIcon:V.rankIcon,earnings:V.earnings,isCurrentUser:a&&a.name===V.name}))||[{rank:1,name:"Ali Khan",username:"@ali",userRank:3,earnings:2e3},{rank:2,name:"Maria Sohail",username:"@maria",userRank:4,earnings:3500},{rank:3,name:"Zain Malik",username:"@zain",userRank:2,earnings:1200},{rank:4,name:"Fatima Noor",username:"@fatima",userRank:3,earnings:2e3},{rank:5,name:"John Smith",username:"@john",userRank:5,earnings:5e3},{rank:6,name:"You",username:"@you",userRank:2,earnings:1800}];return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 transition-colors duration-300 mb-10",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>n(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold my-6",children:"🏆 CRR – Championship Rank Rewards"}),x?u.jsxs("div",{className:"text-center py-4 mb-6",children:[u.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-yellow-400 mx-auto"}),u.jsx("p",{className:"mt-2",children:"Loading user data..."})]}):m?.user?u.jsx("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 text-center",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Name"}),u.jsxs("p",{className:"text-lg font-semibold text-yellow-400",children:[m.user.firstName," ",m.user.lastName]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Username"}),u.jsxs("p",{className:"text-lg font-semibold text-yellow-400",children:["@",m.user.username]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Current Rank"}),u.jsx("p",{className:"text-lg font-semibold text-yellow-400",children:m.crr?.earnings?.currentRank||"None"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Joined Date"}),u.jsx("p",{className:"text-lg font-semibold text-yellow-400",children:new Date(m.user.joinedAt).toLocaleDateString()})]})]})}):null,u.jsxs("div",{className:"grid grid-cols-3 gap-6 rounded-2xl p-6 w-full max-w-5xl mb-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Total Earned"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",L.toLocaleString()]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Available Balance"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",I.toLocaleString()]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"💰 CRR Wallet"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",N.toLocaleString()]})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Ranks Progress"}),l?u.jsx("div",{className:"text-center py-4",children:"Loading rank data..."}):u.jsx("div",{className:"flex justify-between items-center",children:z.map((V,j)=>u.jsxs("div",{className:"flex flex-col items-center text-center",children:[u.jsx("div",{className:`w-12 h-12 flex items-center justify-center rounded-full mb-2 shadow-lg ${V.achieved?"bg-yellow-400 text-black font-bold":"bg-yellow-900 text-yellow-300"}`,children:V.achieved?"✓":"⭕"}),u.jsxs("span",{className:"text-sm",children:[V.icon," ",V.name]}),u.jsxs("span",{className:"text-xs",children:["AED ",V.bonus.toLocaleString()]}),u.jsx("span",{className:"text-xs italic",children:V.achieved?"Achieved":"Locked"})]},j))})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-10 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("h2",{className:"text-xl font-bold mb-4",children:["Your Journey To Achieve Next Rank: (",H,")"]}),l?u.jsx("div",{className:"text-center py-4",children:"Loading progress data..."}):u.jsxs(u.Fragment,{children:[u.jsx(ab,{label:"PGP Progress",value:M.value,max:M.max}),u.jsx(ab,{label:"TGP Progress",value:R.value,max:R.max}),u.jsxs("p",{className:"mt-2",children:["⏳ ",K," days left"]})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:c?.title||"Leaderboard – Rank Achievers"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d?u.jsx("div",{className:"text-center py-4",children:"Loading leaderboard data..."}):P.length>0?(f?P:P.slice(0,5)).map(V=>u.jsxs("div",{className:`flex justify-between px-4 py-2 ${V.isCurrentUser?"bg-yellow-900 font-bold sticky top-0":""}`,children:[u.jsx("span",{children:V.rank}),u.jsxs("span",{children:[V.name," ",u.jsx("small",{className:"text-gray-300",children:V.username})]}),u.jsxs("span",{children:[V.rankIcon," ",V.userRank]}),u.jsxs("span",{children:["AED ",V.earnings.toLocaleString()]})]},V.rank)):u.jsx("div",{className:"text-center py-4",children:"No leaderboard data available"})}),P.length>5&&u.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>h(!f),children:f?"Show Less":"View All"})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg mb-5",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsxs("p",{className:"italic ",children:["💡 ",c?.tip||"Tip: Progress is updated hourly or in real-time. Stay consistent!"]})})]})}const rw=X.createContext({});function y5(e){const n=X.useRef(null);return n.current===null&&(n.current=e()),n.current}const Sm=typeof window<"u",x5=Sm?X.useLayoutEffect:X.useEffect,jm=X.createContext(null);function Tm(e,n){e.indexOf(n)===-1&&e.push(n)}function Em(e,n){const a=e.indexOf(n);a>-1&&e.splice(a,1)}const Er=(e,n,a)=>a>n?n:a<e?e:a;let Am=()=>{};const Ar={},aw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function sw(e){return typeof e=="object"&&e!==null}const iw=e=>/^0[^.\s]+$/u.test(e);function Nm(e){let n;return()=>(n===void 0&&(n=e()),n)}const On=e=>e,b5=(e,n)=>a=>n(e(a)),Dl=(...e)=>e.reduce(b5),yl=(e,n,a)=>{const s=n-e;return s===0?1:(a-e)/s};class km{constructor(){this.subscriptions=[]}add(n){return Tm(this.subscriptions,n),()=>Em(this.subscriptions,n)}notify(n,a,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](n,a,s);else for(let c=0;c<l;c++){const d=this.subscriptions[c];d&&d(n,a,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const er=e=>e*1e3,tr=e=>e/1e3;function lw(e,n){return n?e*(1e3/n):0}const ow=(e,n,a)=>(((1-3*a+3*n)*e+(3*a-6*n))*e+3*n)*e,v5=1e-7,w5=12;function S5(e,n,a,s,l){let c,d,f=0;do d=n+(a-n)/2,c=ow(d,s,l)-e,c>0?a=d:n=d;while(Math.abs(c)>v5&&++f<w5);return d}function Ml(e,n,a,s){if(e===n&&a===s)return On;const l=c=>S5(c,0,1,e,a);return c=>c===0||c===1?c:ow(l(c),n,s)}const cw=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,uw=e=>n=>1-e(1-n),dw=Ml(.33,1.53,.69,.99),_m=uw(dw),fw=cw(_m),hw=e=>(e*=2)<1?.5*_m(e):.5*(2-Math.pow(2,-10*(e-1))),Om=e=>1-Math.sin(Math.acos(e)),mw=uw(Om),pw=cw(Om),j5=Ml(.42,0,1,1),T5=Ml(0,0,.58,1),gw=Ml(.42,0,.58,1),E5=e=>Array.isArray(e)&&typeof e[0]!="number",yw=e=>Array.isArray(e)&&typeof e[0]=="number",A5={linear:On,easeIn:j5,easeInOut:gw,easeOut:T5,circIn:Om,circInOut:pw,circOut:mw,backIn:_m,backInOut:fw,backOut:dw,anticipate:hw},N5=e=>typeof e=="string",sb=e=>{if(yw(e)){Am(e.length===4);const[n,a,s,l]=e;return Ml(n,a,s,l)}else if(N5(e))return A5[e];return e},rc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function k5(e,n){let a=new Set,s=new Set,l=!1,c=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(g){d.has(g)&&(m.schedule(g),e()),g(f)}const m={schedule:(g,x=!1,w=!1)=>{const k=w&&l?a:s;return x&&d.add(g),k.has(g)||k.add(g),g},cancel:g=>{s.delete(g),d.delete(g)},process:g=>{if(f=g,l){c=!0;return}l=!0,[a,s]=[s,a],a.forEach(h),a.clear(),l=!1,c&&(c=!1,m.process(g))}};return m}const _5=40;function xw(e,n){let a=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,d=rc.reduce((L,I)=>(L[I]=k5(c),L),{}),{setup:f,read:h,resolveKeyframes:m,preUpdate:g,update:x,preRender:w,render:T,postRender:k}=d,S=()=>{const L=Ar.useManualTiming?l.timestamp:performance.now();a=!1,Ar.useManualTiming||(l.delta=s?1e3/60:Math.max(Math.min(L-l.timestamp,_5),1)),l.timestamp=L,l.isProcessing=!0,f.process(l),h.process(l),m.process(l),g.process(l),x.process(l),w.process(l),T.process(l),k.process(l),l.isProcessing=!1,a&&n&&(s=!1,e(S))},A=()=>{a=!0,s=!0,l.isProcessing||e(S)};return{schedule:rc.reduce((L,I)=>{const N=d[I];return L[I]=(z,F=!1,H=!1)=>(a||A(),N.schedule(z,F,H)),L},{}),cancel:L=>{for(let I=0;I<rc.length;I++)d[rc[I]].cancel(L)},state:l,steps:d}}const{schedule:ut,cancel:na,state:Ut,steps:sh}=xw(typeof requestAnimationFrame<"u"?requestAnimationFrame:On,!0);let wc;function O5(){wc=void 0}const nn={now:()=>(wc===void 0&&nn.set(Ut.isProcessing||Ar.useManualTiming?Ut.timestamp:performance.now()),wc),set:e=>{wc=e,queueMicrotask(O5)}},bw=e=>n=>typeof n=="string"&&n.startsWith(e),Rm=bw("--"),R5=bw("var(--"),Cm=e=>R5(e)?C5.test(e.split("/*")[0].trim()):!1,C5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Xs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xl={...Xs,transform:e=>Er(0,1,e)},ac={...Xs,default:1},il=e=>Math.round(e*1e5)/1e5,Dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function D5(e){return e==null}const M5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mm=(e,n)=>a=>!!(typeof a=="string"&&M5.test(a)&&a.startsWith(e)||n&&!D5(a)&&Object.prototype.hasOwnProperty.call(a,n)),vw=(e,n,a)=>s=>{if(typeof s!="string")return s;const[l,c,d,f]=s.match(Dm);return{[e]:parseFloat(l),[n]:parseFloat(c),[a]:parseFloat(d),alpha:f!==void 0?parseFloat(f):1}},L5=e=>Er(0,255,e),ih={...Xs,transform:e=>Math.round(L5(e))},_a={test:Mm("rgb","red"),parse:vw("red","green","blue"),transform:({red:e,green:n,blue:a,alpha:s=1})=>"rgba("+ih.transform(e)+", "+ih.transform(n)+", "+ih.transform(a)+", "+il(xl.transform(s))+")"};function P5(e){let n="",a="",s="",l="";return e.length>5?(n=e.substring(1,3),a=e.substring(3,5),s=e.substring(5,7),l=e.substring(7,9)):(n=e.substring(1,2),a=e.substring(2,3),s=e.substring(3,4),l=e.substring(4,5),n+=n,a+=a,s+=s,l+=l),{red:parseInt(n,16),green:parseInt(a,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const Fh={test:Mm("#"),parse:P5,transform:_a.transform},Ll=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Qr=Ll("deg"),nr=Ll("%"),Be=Ll("px"),z5=Ll("vh"),U5=Ll("vw"),ib={...nr,parse:e=>nr.parse(e)/100,transform:e=>nr.transform(e*100)},Ns={test:Mm("hsl","hue"),parse:vw("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:a,alpha:s=1})=>"hsla("+Math.round(e)+", "+nr.transform(il(n))+", "+nr.transform(il(a))+", "+il(xl.transform(s))+")"},Nt={test:e=>_a.test(e)||Fh.test(e)||Ns.test(e),parse:e=>_a.test(e)?_a.parse(e):Ns.test(e)?Ns.parse(e):Fh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_a.transform(e):Ns.transform(e),getAnimatableNone:e=>{const n=Nt.parse(e);return n.alpha=0,Nt.transform(n)}},B5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function F5(e){return isNaN(e)&&typeof e=="string"&&(e.match(Dm)?.length||0)+(e.match(B5)?.length||0)>0}const ww="number",Sw="color",V5="var",H5="var(",lb="${}",I5=/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 bl(e){const n=e.toString(),a=[],s={color:[],number:[],var:[]},l=[];let c=0;const f=n.replace(I5,h=>(Nt.test(h)?(s.color.push(c),l.push(Sw),a.push(Nt.parse(h))):h.startsWith(H5)?(s.var.push(c),l.push(V5),a.push(h)):(s.number.push(c),l.push(ww),a.push(parseFloat(h))),++c,lb)).split(lb);return{values:a,split:f,indexes:s,types:l}}function jw(e){return bl(e).values}function Tw(e){const{split:n,types:a}=bl(e),s=n.length;return l=>{let c="";for(let d=0;d<s;d++)if(c+=n[d],l[d]!==void 0){const f=a[d];f===ww?c+=il(l[d]):f===Sw?c+=Nt.transform(l[d]):c+=l[d]}return c}}const q5=e=>typeof e=="number"?0:Nt.test(e)?Nt.getAnimatableNone(e):e;function G5(e){const n=jw(e);return Tw(e)(n.map(q5))}const ra={test:F5,parse:jw,createTransformer:Tw,getAnimatableNone:G5};function lh(e,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(n-e)*6*a:a<1/2?n:a<2/3?e+(n-e)*(2/3-a)*6:e}function Y5({hue:e,saturation:n,lightness:a,alpha:s}){e/=360,n/=100,a/=100;let l=0,c=0,d=0;if(!n)l=c=d=a;else{const f=a<.5?a*(1+n):a+n-a*n,h=2*a-f;l=lh(h,f,e+1/3),c=lh(h,f,e),d=lh(h,f,e-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(d*255),alpha:s}}function Uc(e,n){return a=>a>0?n:e}const mt=(e,n,a)=>e+(n-e)*a,oh=(e,n,a)=>{const s=e*e,l=a*(n*n-s)+s;return l<0?0:Math.sqrt(l)},X5=[Fh,_a,Ns],Z5=e=>X5.find(n=>n.test(e));function ob(e){const n=Z5(e);if(!n)return!1;let a=n.parse(e);return n===Ns&&(a=Y5(a)),a}const cb=(e,n)=>{const a=ob(e),s=ob(n);if(!a||!s)return Uc(e,n);const l={...a};return c=>(l.red=oh(a.red,s.red,c),l.green=oh(a.green,s.green,c),l.blue=oh(a.blue,s.blue,c),l.alpha=mt(a.alpha,s.alpha,c),_a.transform(l))},Vh=new Set(["none","hidden"]);function W5(e,n){return Vh.has(e)?a=>a<=0?e:n:a=>a>=1?n:e}function K5(e,n){return a=>mt(e,n,a)}function Lm(e){return typeof e=="number"?K5:typeof e=="string"?Cm(e)?Uc:Nt.test(e)?cb:J5:Array.isArray(e)?Ew:typeof e=="object"?Nt.test(e)?cb:$5:Uc}function Ew(e,n){const a=[...e],s=a.length,l=e.map((c,d)=>Lm(c)(c,n[d]));return c=>{for(let d=0;d<s;d++)a[d]=l[d](c);return a}}function $5(e,n){const a={...e,...n},s={};for(const l in a)e[l]!==void 0&&n[l]!==void 0&&(s[l]=Lm(e[l])(e[l],n[l]));return l=>{for(const c in s)a[c]=s[c](l);return a}}function Q5(e,n){const a=[],s={color:0,var:0,number:0};for(let l=0;l<n.values.length;l++){const c=n.types[l],d=e.indexes[c][s[c]],f=e.values[d]??0;a[l]=f,s[c]++}return a}const J5=(e,n)=>{const a=ra.createTransformer(n),s=bl(e),l=bl(n);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?Vh.has(e)&&!l.values.length||Vh.has(n)&&!s.values.length?W5(e,n):Dl(Ew(Q5(s,l),l.values),a):Uc(e,n)};function Aw(e,n,a){return typeof e=="number"&&typeof n=="number"&&typeof a=="number"?mt(e,n,a):Lm(e)(e,n)}const eO=e=>{const n=({timestamp:a})=>e(a);return{start:(a=!0)=>ut.update(n,a),stop:()=>na(n),now:()=>Ut.isProcessing?Ut.timestamp:nn.now()}},Nw=(e,n,a=10)=>{let s="";const l=Math.max(Math.round(n/a),2);for(let c=0;c<l;c++)s+=Math.round(e(c/(l-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Bc=2e4;function Pm(e){let n=0;const a=50;let s=e.next(n);for(;!s.done&&n<Bc;)n+=a,s=e.next(n);return n>=Bc?1/0:n}function tO(e,n=100,a){const s=a({...e,keyframes:[0,n]}),l=Math.min(Pm(s),Bc);return{type:"keyframes",ease:c=>s.next(l*c).value/n,duration:tr(l)}}const nO=5;function kw(e,n,a){const s=Math.max(n-nO,0);return lw(a-e(s),n-s)}const bt={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},ch=.001;function rO({duration:e=bt.duration,bounce:n=bt.bounce,velocity:a=bt.velocity,mass:s=bt.mass}){let l,c,d=1-n;d=Er(bt.minDamping,bt.maxDamping,d),e=Er(bt.minDuration,bt.maxDuration,tr(e)),d<1?(l=m=>{const g=m*d,x=g*e,w=g-a,T=Hh(m,d),k=Math.exp(-x);return ch-w/T*k},c=m=>{const x=m*d*e,w=x*a+a,T=Math.pow(d,2)*Math.pow(m,2)*e,k=Math.exp(-x),S=Hh(Math.pow(m,2),d);return(-l(m)+ch>0?-1:1)*((w-T)*k)/S}):(l=m=>{const g=Math.exp(-m*e),x=(m-a)*e+1;return-ch+g*x},c=m=>{const g=Math.exp(-m*e),x=(a-m)*(e*e);return g*x});const f=5/e,h=sO(l,c,f);if(e=er(e),isNaN(h))return{stiffness:bt.stiffness,damping:bt.damping,duration:e};{const m=Math.pow(h,2)*s;return{stiffness:m,damping:d*2*Math.sqrt(s*m),duration:e}}}const aO=12;function sO(e,n,a){let s=a;for(let l=1;l<aO;l++)s=s-e(s)/n(s);return s}function Hh(e,n){return e*Math.sqrt(1-n*n)}const iO=["duration","bounce"],lO=["stiffness","damping","mass"];function ub(e,n){return n.some(a=>e[a]!==void 0)}function oO(e){let n={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!ub(e,lO)&&ub(e,iO))if(e.visualDuration){const a=e.visualDuration,s=2*Math.PI/(a*1.2),l=s*s,c=2*Er(.05,1,1-(e.bounce||0))*Math.sqrt(l);n={...n,mass:bt.mass,stiffness:l,damping:c}}else{const a=rO(e);n={...n,...a,mass:bt.mass},n.isResolvedFromDuration=!0}return n}function Fc(e=bt.visualDuration,n=bt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:l}=a;const c=a.keyframes[0],d=a.keyframes[a.keyframes.length-1],f={done:!1,value:c},{stiffness:h,damping:m,mass:g,duration:x,velocity:w,isResolvedFromDuration:T}=oO({...a,velocity:-tr(a.velocity||0)}),k=w||0,S=m/(2*Math.sqrt(h*g)),A=d-c,E=tr(Math.sqrt(h/g)),C=Math.abs(A)<5;s||(s=C?bt.restSpeed.granular:bt.restSpeed.default),l||(l=C?bt.restDelta.granular:bt.restDelta.default);let L;if(S<1){const N=Hh(E,S);L=z=>{const F=Math.exp(-S*E*z);return d-F*((k+S*E*A)/N*Math.sin(N*z)+A*Math.cos(N*z))}}else if(S===1)L=N=>d-Math.exp(-E*N)*(A+(k+E*A)*N);else{const N=E*Math.sqrt(S*S-1);L=z=>{const F=Math.exp(-S*E*z),H=Math.min(N*z,300);return d-F*((k+S*E*A)*Math.sinh(H)+N*A*Math.cosh(H))/N}}const I={calculatedDuration:T&&x||null,next:N=>{const z=L(N);if(T)f.done=N>=x;else{let F=N===0?k:0;S<1&&(F=N===0?er(k):kw(L,N,z));const H=Math.abs(F)<=s,M=Math.abs(d-z)<=l;f.done=H&&M}return f.value=f.done?d:z,f},toString:()=>{const N=Math.min(Pm(I),Bc),z=Nw(F=>I.next(N*F).value,N,30);return N+"ms "+z},toTransition:()=>{}};return I}Fc.applyToOptions=e=>{const n=tO(e,100,Fc);return e.ease=n.ease,e.duration=er(n.duration),e.type="keyframes",e};function Ih({keyframes:e,velocity:n=0,power:a=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:d,min:f,max:h,restDelta:m=.5,restSpeed:g}){const x=e[0],w={done:!1,value:x},T=H=>f!==void 0&&H<f||h!==void 0&&H>h,k=H=>f===void 0?h:h===void 0||Math.abs(f-H)<Math.abs(h-H)?f:h;let S=a*n;const A=x+S,E=d===void 0?A:d(A);E!==A&&(S=E-x);const C=H=>-S*Math.exp(-H/s),L=H=>E+C(H),I=H=>{const M=C(H),R=L(H);w.done=Math.abs(M)<=m,w.value=w.done?E:R};let N,z;const F=H=>{T(w.value)&&(N=H,z=Fc({keyframes:[w.value,k(w.value)],velocity:kw(L,H,w.value),damping:l,stiffness:c,restDelta:m,restSpeed:g}))};return F(0),{calculatedDuration:null,next:H=>{let M=!1;return!z&&N===void 0&&(M=!0,I(H),F(H)),N!==void 0&&H>=N?z.next(H-N):(!M&&I(H),w)}}}function cO(e,n,a){const s=[],l=a||Ar.mix||Aw,c=e.length-1;for(let d=0;d<c;d++){let f=l(e[d],e[d+1]);if(n){const h=Array.isArray(n)?n[d]||On:n;f=Dl(h,f)}s.push(f)}return s}function uO(e,n,{clamp:a=!0,ease:s,mixer:l}={}){const c=e.length;if(Am(c===n.length),c===1)return()=>n[0];if(c===2&&n[0]===n[1])return()=>n[1];const d=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),n=[...n].reverse());const f=cO(n,s,l),h=f.length,m=g=>{if(d&&g<e[0])return n[0];let x=0;if(h>1)for(;x<e.length-2&&!(g<e[x+1]);x++);const w=yl(e[x],e[x+1],g);return f[x](w)};return a?g=>m(Er(e[0],e[c-1],g)):m}function dO(e,n){const a=e[e.length-1];for(let s=1;s<=n;s++){const l=yl(0,n,s);e.push(mt(a,1,l))}}function fO(e){const n=[0];return dO(n,e.length-1),n}function hO(e,n){return e.map(a=>a*n)}function mO(e,n){return e.map(()=>n||gw).splice(0,e.length-1)}function ll({duration:e=300,keyframes:n,times:a,ease:s="easeInOut"}){const l=E5(s)?s.map(sb):sb(s),c={done:!1,value:n[0]},d=hO(a&&a.length===n.length?a:fO(n),e),f=uO(d,n,{ease:Array.isArray(l)?l:mO(n,l)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const pO=e=>e!==null;function zm(e,{repeat:n,repeatType:a="loop"},s,l=1){const c=e.filter(pO),f=l<0||n&&a!=="loop"&&n%2===1?0:c.length-1;return!f||s===void 0?c[f]:s}const gO={decay:Ih,inertia:Ih,tween:ll,keyframes:ll,spring:Fc};function _w(e){typeof e.type=="string"&&(e.type=gO[e.type])}class Um{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,a){return this.finished.then(n,a)}}const yO=e=>e/100;class Bm extends Um{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==nn.now()&&this.tick(nn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;_w(n);const{type:a=ll,repeat:s=0,repeatDelay:l=0,repeatType:c,velocity:d=0}=n;let{keyframes:f}=n;const h=a||ll;h!==ll&&typeof f[0]!="number"&&(this.mixKeyframes=Dl(yO,Aw(f[0],f[1])),f=[0,100]);const m=h({...n,keyframes:f});c==="mirror"&&(this.mirroredGenerator=h({...n,keyframes:[...f].reverse(),velocity:-d})),m.calculatedDuration===null&&(m.calculatedDuration=Pm(m));const{calculatedDuration:g}=m;this.calculatedDuration=g,this.resolvedDuration=g+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=m}updateTime(n){const a=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(n,a=!1){const{generator:s,totalDuration:l,mixKeyframes:c,mirroredGenerator:d,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:m=0,keyframes:g,repeat:x,repeatType:w,repeatDelay:T,type:k,onUpdate:S,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-l/this.speed,this.startTime)),a?this.currentTime=n:this.updateTime(n);const E=this.currentTime-m*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?E<0:E>l;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let L=this.currentTime,I=s;if(x){const H=Math.min(this.currentTime,l)/f;let M=Math.floor(H),R=H%1;!R&&H>=1&&(R=1),R===1&&M--,M=Math.min(M,x+1),!!(M%2)&&(w==="reverse"?(R=1-R,T&&(R-=T/f)):w==="mirror"&&(I=d)),L=Er(0,1,R)*f}const N=C?{done:!1,value:g[0]}:I.next(L);c&&(N.value=c(N.value));let{done:z}=N;!C&&h!==null&&(z=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return F&&k!==Ih&&(N.value=zm(g,this.options,A,this.speed)),S&&S(N.value),F&&this.finish(),N}then(n,a){return this.finished.then(n,a)}get duration(){return tr(this.calculatedDuration)}get time(){return tr(this.currentTime)}set time(n){n=er(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(nn.now());const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=tr(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=eO,startTime:a}=this.options;this.driver||(this.driver=n(l=>this.tick(l))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=a??s),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(nn.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(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),n.observe(this)}}function xO(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const Oa=e=>e*180/Math.PI,qh=e=>{const n=Oa(Math.atan2(e[1],e[0]));return Gh(n)},bO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qh,rotateZ:qh,skewX:e=>Oa(Math.atan(e[1])),skewY:e=>Oa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gh=e=>(e=e%360,e<0&&(e+=360),e),db=qh,fb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fb,scaleY:hb,scale:e=>(fb(e)+hb(e))/2,rotateX:e=>Gh(Oa(Math.atan2(e[6],e[5]))),rotateY:e=>Gh(Oa(Math.atan2(-e[2],e[0]))),rotateZ:db,rotate:db,skewX:e=>Oa(Math.atan(e[4])),skewY:e=>Oa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Yh(e){return e.includes("scale")?1:0}function Xh(e,n){if(!e||e==="none")return Yh(n);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(a)s=vO,l=a;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=bO,l=f}if(!l)return Yh(n);const c=s[n],d=l[1].split(",").map(SO);return typeof c=="function"?c(d):d[c]}const wO=(e,n)=>{const{transform:a="none"}=getComputedStyle(e);return Xh(a,n)};function SO(e){return parseFloat(e.trim())}const Zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ws=new Set(Zs),mb=e=>e===Xs||e===Be,jO=new Set(["x","y","z"]),TO=Zs.filter(e=>!jO.has(e));function EO(e){const n=[];return TO.forEach(a=>{const s=e.getValue(a);s!==void 0&&(n.push([a,s.get()]),s.set(a.startsWith("scale")?1:0))}),n}const Da={width:({x:e},{paddingLeft:n="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),height:({y:e},{paddingTop:n="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>Xh(n,"x"),y:(e,{transform:n})=>Xh(n,"y")};Da.translateX=Da.x;Da.translateY=Da.y;const Ma=new Set;let Zh=!1,Wh=!1,Kh=!1;function Ow(){if(Wh){const e=Array.from(Ma).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),a=new Map;n.forEach(s=>{const l=EO(s);l.length&&(a.set(s,l),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const l=a.get(s);l&&l.forEach(([c,d])=>{s.getValue(c)?.set(d)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Wh=!1,Zh=!1,Ma.forEach(e=>e.complete(Kh)),Ma.clear()}function Rw(){Ma.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wh=!0)})}function AO(){Kh=!0,Rw(),Ow(),Kh=!1}class Fm{constructor(n,a,s,l,c,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=a,this.name=s,this.motionValue=l,this.element=c,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ma.add(this),Zh||(Zh=!0,ut.read(Rw),ut.resolveKeyframes(Ow))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:a,element:s,motionValue:l}=this;if(n[0]===null){const c=l?.get(),d=n[n.length-1];if(c!==void 0)n[0]=c;else if(s&&a){const f=s.readValue(a,d);f!=null&&(n[0]=f)}n[0]===void 0&&(n[0]=d),l&&c===void 0&&l.set(n[0])}xO(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),Ma.delete(this)}cancel(){this.state==="scheduled"&&(Ma.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const NO=e=>e.startsWith("--");function kO(e,n,a){NO(n)?e.style.setProperty(n,a):e.style[n]=a}const _O=Nm(()=>window.ScrollTimeline!==void 0),OO={};function RO(e,n){const a=Nm(e);return()=>OO[n]??a()}const Cw=RO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nl=([e,n,a,s])=>`cubic-bezier(${e}, ${n}, ${a}, ${s})`,pb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nl([0,.65,.55,1]),circOut:nl([.55,0,1,.45]),backIn:nl([.31,.01,.66,-.59]),backOut:nl([.33,1.53,.69,.99])};function Dw(e,n){if(e)return typeof e=="function"?Cw()?Nw(e,n):"ease-out":yw(e)?nl(e):Array.isArray(e)?e.map(a=>Dw(a,n)||pb.easeOut):pb[e]}function CO(e,n,a,{delay:s=0,duration:l=300,repeat:c=0,repeatType:d="loop",ease:f="easeOut",times:h}={},m=void 0){const g={[n]:a};h&&(g.offset=h);const x=Dw(f,l);Array.isArray(x)&&(g.easing=x);const w={delay:s,duration:l,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:d==="reverse"?"alternate":"normal"};return m&&(w.pseudoElement=m),e.animate(g,w)}function Mw(e){return typeof e=="function"&&"applyToOptions"in e}function DO({type:e,...n}){return Mw(e)&&Cw()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class MO extends Um{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,!n)return;const{element:a,name:s,keyframes:l,pseudoElement:c,allowFlatten:d=!1,finalKeyframe:f,onComplete:h}=n;this.isPseudoElement=!!c,this.allowFlatten=d,this.options=n,Am(typeof n.type!="string");const m=DO(n);this.animation=CO(a,s,l,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const g=zm(l,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(g):kO(a,s,g),this.animation.cancel()}h?.(),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:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const n=this.animation.effect?.getComputedTiming?.().duration||0;return tr(Number(n))}get time(){return tr(Number(this.animation.currentTime)||0)}set time(n){this.finishedTime=null,this.animation.currentTime=er(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(n){this.animation.startTime=n}attachTimeline({timeline:n,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,n&&_O()?(this.animation.timeline=n,On):a(this)}}const Lw={anticipate:hw,backInOut:fw,circInOut:pw};function LO(e){return e in Lw}function PO(e){typeof e.ease=="string"&&LO(e.ease)&&(e.ease=Lw[e.ease])}const gb=10;class zO extends MO{constructor(n){PO(n),_w(n),super(n),n.startTime&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:a,onUpdate:s,onComplete:l,element:c,...d}=this.options;if(!a)return;if(n!==void 0){a.set(n);return}const f=new Bm({...d,autoplay:!1}),h=er(this.finishedTime??this.time);a.setWithVelocity(f.sample(h-gb).value,f.sample(h).value,gb),f.stop()}}const yb=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ra.test(e)||e==="0")&&!e.startsWith("url("));function UO(e){const n=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==n)return!0}function BO(e,n,a,s){const l=e[0];if(l===null)return!1;if(n==="display"||n==="visibility")return!0;const c=e[e.length-1],d=yb(l,n),f=yb(c,n);return!d||!f?!1:UO(e)||(a==="spring"||Mw(a))&&s}function $h(e){e.duration=0,e.type}const FO=new Set(["opacity","clipPath","filter","transform"]),VO=Nm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function HO(e){const{motionValue:n,name:a,repeatDelay:s,repeatType:l,damping:c,type:d}=e;if(!(n?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=n.owner.getProps();return VO()&&a&&FO.has(a)&&(a!=="transform"||!m)&&!h&&!s&&l!=="mirror"&&c!==0&&d!=="inertia"}const IO=40;class qO extends Um{constructor({autoplay:n=!0,delay:a=0,type:s="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:d="loop",keyframes:f,name:h,motionValue:m,element:g,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=nn.now();const w={autoplay:n,delay:a,type:s,repeat:l,repeatDelay:c,repeatType:d,name:h,motionValue:m,element:g,...x},T=g?.KeyframeResolver||Fm;this.keyframeResolver=new T(f,(k,S,A)=>this.onKeyframesResolved(k,S,w,!A),h,m,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,s,l){this.keyframeResolver=void 0;const{name:c,type:d,velocity:f,delay:h,isHandoff:m,onUpdate:g}=s;this.resolvedAt=nn.now(),BO(n,c,d,f)||((Ar.instantAnimations||!h)&&g?.(zm(n,s,a)),n[0]=n[n.length-1],$h(s),s.repeat=0);const w={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>IO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...s,keyframes:n},T=!m&&HO(w)?new zO({...w,element:w.motionValue.owner.current}):new Bm(w);T.finished.then(()=>this.notifyFinished()).catch(On),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(n,a){return this.finished.finally(n).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),AO()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const GO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YO(e){const n=GO.exec(e);if(!n)return[,];const[,a,s,l]=n;return[`--${a??s}`,l]}function Pw(e,n,a=1){const[s,l]=YO(e);if(!s)return;const c=window.getComputedStyle(n).getPropertyValue(s);if(c){const d=c.trim();return aw(d)?parseFloat(d):d}return Cm(l)?Pw(l,n,a+1):l}function Vm(e,n){return e?.[n]??e?.default??e}const zw=new Set(["width","height","top","left","right","bottom",...Zs]),XO={test:e=>e==="auto",parse:e=>e},Uw=e=>n=>n.test(e),Bw=[Xs,Be,nr,Qr,U5,z5,XO],xb=e=>Bw.find(Uw(e));function ZO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||iw(e):!0}const WO=new Set(["brightness","contrast","saturate","opacity"]);function KO(e){const[n,a]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=a.match(Dm)||[];if(!s)return e;const l=a.replace(s,"");let c=WO.has(n)?1:0;return s!==a&&(c*=100),n+"("+c+l+")"}const $O=/\b([a-z-]*)\(.*?\)/gu,Qh={...ra,getAnimatableNone:e=>{const n=e.match($O);return n?n.map(KO).join(" "):e}},bb={...Xs,transform:Math.round},QO={rotate:Qr,rotateX:Qr,rotateY:Qr,rotateZ:Qr,scale:ac,scaleX:ac,scaleY:ac,scaleZ:ac,skew:Qr,skewX:Qr,skewY:Qr,distance:Be,translateX:Be,translateY:Be,translateZ:Be,x:Be,y:Be,z:Be,perspective:Be,transformPerspective:Be,opacity:xl,originX:ib,originY:ib,originZ:Be},Hm={borderWidth:Be,borderTopWidth:Be,borderRightWidth:Be,borderBottomWidth:Be,borderLeftWidth:Be,borderRadius:Be,radius:Be,borderTopLeftRadius:Be,borderTopRightRadius:Be,borderBottomRightRadius:Be,borderBottomLeftRadius:Be,width:Be,maxWidth:Be,height:Be,maxHeight:Be,top:Be,right:Be,bottom:Be,left:Be,padding:Be,paddingTop:Be,paddingRight:Be,paddingBottom:Be,paddingLeft:Be,margin:Be,marginTop:Be,marginRight:Be,marginBottom:Be,marginLeft:Be,backgroundPositionX:Be,backgroundPositionY:Be,...QO,zIndex:bb,fillOpacity:xl,strokeOpacity:xl,numOctaves:bb},JO={...Hm,color:Nt,backgroundColor:Nt,outlineColor:Nt,fill:Nt,stroke:Nt,borderColor:Nt,borderTopColor:Nt,borderRightColor:Nt,borderBottomColor:Nt,borderLeftColor:Nt,filter:Qh,WebkitFilter:Qh},Fw=e=>JO[e];function Vw(e,n){let a=Fw(e);return a!==Qh&&(a=ra),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const eR=new Set(["auto","none","0"]);function tR(e,n,a){let s=0,l;for(;s<e.length&&!l;){const c=e[s];typeof c=="string"&&!eR.has(c)&&bl(c).values.length&&(l=e[s]),s++}if(l&&a)for(const c of n)e[c]=Vw(a,l)}class nR extends Fm{constructor(n,a,s,l,c){super(n,a,s,l,c,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:a,name:s}=this;if(!a||!a.current)return;super.readKeyframes();for(let h=0;h<n.length;h++){let m=n[h];if(typeof m=="string"&&(m=m.trim(),Cm(m))){const g=Pw(m,a.current);g!==void 0&&(n[h]=g),h===n.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!zw.has(s)||n.length!==2)return;const[l,c]=n,d=xb(l),f=xb(c);if(d!==f)if(mb(d)&&mb(f))for(let h=0;h<n.length;h++){const m=n[h];typeof m=="string"&&(n[h]=parseFloat(m))}else Da[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:a}=this,s=[];for(let l=0;l<n.length;l++)(n[l]===null||ZO(n[l]))&&s.push(l);s.length&&tR(n,s,a)}measureInitialState(){const{element:n,unresolvedKeyframes:a,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Da[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a[0]=this.measuredOrigin;const l=a[a.length-1];l!==void 0&&n.getValue(s,l).jump(l,!1)}measureEndState(){const{element:n,name:a,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const l=n.getValue(a);l&&l.jump(this.measuredOrigin,!1);const c=s.length-1,d=s[c];s[c]=Da[a](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function rR(e,n,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const l=a?.[e]??s.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}const Hw=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function aR(e){return sw(e)&&"offsetHeight"in e}const vb=30,sR=e=>!isNaN(parseFloat(e));class iR{constructor(n,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const l=nn.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=a.owner}setCurrent(n){this.current=n,this.updatedAt=nn.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=sR(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,a){this.events[n]||(this.events[n]=new km);const s=this.events[n].add(a);return n==="change"?()=>{s(),ut.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,a){this.passiveEffect=n,this.stopPassiveEffect=a}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,a,s){this.set(a),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,a=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>vb)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,vb);return lw(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(n){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=n(a),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 Fs(e,n){return new iR(e,n)}const{schedule:Im}=xw(queueMicrotask,!1),Vn={x:!1,y:!1};function Iw(){return Vn.x||Vn.y}function lR(e){return e==="x"||e==="y"?Vn[e]?null:(Vn[e]=!0,()=>{Vn[e]=!1}):Vn.x||Vn.y?null:(Vn.x=Vn.y=!0,()=>{Vn.x=Vn.y=!1})}function qw(e,n){const a=rR(e),s=new AbortController,l={passive:!0,...n,signal:s.signal};return[a,l,()=>s.abort()]}function wb(e){return!(e.pointerType==="touch"||Iw())}function oR(e,n,a={}){const[s,l,c]=qw(e,a),d=f=>{if(!wb(f))return;const{target:h}=f,m=n(h,f);if(typeof m!="function"||!h)return;const g=x=>{wb(x)&&(m(x),h.removeEventListener("pointerleave",g))};h.addEventListener("pointerleave",g,l)};return s.forEach(f=>{f.addEventListener("pointerenter",d,l)}),c}const Gw=(e,n)=>n?e===n?!0:Gw(e,n.parentElement):!1,qm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,cR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uR(e){return cR.has(e.tagName)||e.tabIndex!==-1}const Sc=new WeakSet;function Sb(e){return n=>{n.key==="Enter"&&e(n)}}function uh(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const dR=(e,n)=>{const a=e.currentTarget;if(!a)return;const s=Sb(()=>{if(Sc.has(a))return;uh(a,"down");const l=Sb(()=>{uh(a,"up")}),c=()=>uh(a,"cancel");a.addEventListener("keyup",l,n),a.addEventListener("blur",c,n)});a.addEventListener("keydown",s,n),a.addEventListener("blur",()=>a.removeEventListener("keydown",s),n)};function jb(e){return qm(e)&&!Iw()}function fR(e,n,a={}){const[s,l,c]=qw(e,a),d=f=>{const h=f.currentTarget;if(!jb(f))return;Sc.add(h);const m=n(h,f),g=(T,k)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",w),Sc.has(h)&&Sc.delete(h),jb(T)&&typeof m=="function"&&m(T,{success:k})},x=T=>{g(T,h===window||h===document||a.useGlobalTarget||Gw(h,T.target))},w=T=>{g(T,!1)};window.addEventListener("pointerup",x,l),window.addEventListener("pointercancel",w,l)};return s.forEach(f=>{(a.useGlobalTarget?window:f).addEventListener("pointerdown",d,l),aR(f)&&(f.addEventListener("focus",m=>dR(m,l)),!uR(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}function Yw(e){return sw(e)&&"ownerSVGElement"in e}function hR(e){return Yw(e)&&e.tagName==="svg"}const qt=e=>!!(e&&e.getVelocity),mR=[...Bw,Nt,ra],pR=e=>mR.find(Uw(e)),Xw=X.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function gR(e=!0){const n=X.useContext(jm);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:s,register:l}=n,c=X.useId();X.useEffect(()=>{if(e)return l(c)},[e]);const d=X.useCallback(()=>e&&s&&s(c),[c,s,e]);return!a&&s?[!1,d]:[!0]}const Zw=X.createContext({strict:!1}),Tb={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"]},Vs={};for(const e in Tb)Vs[e]={isEnabled:n=>Tb[e].some(a=>!!n[a])};function yR(e){for(const n in e)Vs[n]={...Vs[n],...e[n]}}const xR=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 Vc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xR.has(e)}let Ww=e=>!Vc(e);function bR(e){typeof e=="function"&&(Ww=n=>n.startsWith("on")?!Vc(n):e(n))}try{bR(require("@emotion/is-prop-valid").default)}catch{}function vR(e,n,a){const s={};for(const l in e)l==="values"&&typeof e.values=="object"||(Ww(l)||a===!0&&Vc(l)||!n&&!Vc(l)||e.draggable&&l.startsWith("onDrag"))&&(s[l]=e[l]);return s}const du=X.createContext({});function fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vl(e){return typeof e=="string"||Array.isArray(e)}const Gm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ym=["initial",...Gm];function hu(e){return fu(e.animate)||Ym.some(n=>vl(e[n]))}function Kw(e){return!!(hu(e)||e.variants)}function wR(e,n){if(hu(e)){const{initial:a,animate:s}=e;return{initial:a===!1||vl(a)?a:void 0,animate:vl(s)?s:void 0}}return e.inherit!==!1?n:{}}function SR(e){const{initial:n,animate:a}=wR(e,X.useContext(du));return X.useMemo(()=>({initial:n,animate:a}),[Eb(n),Eb(a)])}function Eb(e){return Array.isArray(e)?e.join(" "):e}const wl={};function jR(e){for(const n in e)wl[n]=e[n],Rm(n)&&(wl[n].isCSSVariable=!0)}function $w(e,{layout:n,layoutId:a}){return Ws.has(e)||e.startsWith("origin")||(n||a!==void 0)&&(!!wl[e]||e==="opacity")}const TR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ER=Zs.length;function AR(e,n,a){let s="",l=!0;for(let c=0;c<ER;c++){const d=Zs[c],f=e[d];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(d.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||a){const m=Hw(f,Hm[d]);if(!h){l=!1;const g=TR[d]||d;s+=`${g}(${m}) `}a&&(n[d]=m)}}return s=s.trim(),a?s=a(n,l?"":s):l&&(s="none"),s}function Xm(e,n,a){const{style:s,vars:l,transformOrigin:c}=e;let d=!1,f=!1;for(const h in n){const m=n[h];if(Ws.has(h)){d=!0;continue}else if(Rm(h)){l[h]=m;continue}else{const g=Hw(m,Hm[h]);h.startsWith("origin")?(f=!0,c[h]=g):s[h]=g}}if(n.transform||(d||a?s.transform=AR(n,e.transform,a):s.transform&&(s.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:g=0}=c;s.transformOrigin=`${h} ${m} ${g}`}}const Zm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qw(e,n,a){for(const s in n)!qt(n[s])&&!$w(s,a)&&(e[s]=n[s])}function NR({transformTemplate:e},n){return X.useMemo(()=>{const a=Zm();return Xm(a,n,e),Object.assign({},a.vars,a.style)},[n])}function kR(e,n){const a=e.style||{},s={};return Qw(s,a,e),Object.assign(s,NR(e,n)),s}function _R(e,n){const a={},s=kR(e,n);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=s,a}const OR={offset:"stroke-dashoffset",array:"stroke-dasharray"},RR={offset:"strokeDashoffset",array:"strokeDasharray"};function CR(e,n,a=1,s=0,l=!0){e.pathLength=1;const c=l?OR:RR;e[c.offset]=Be.transform(-s);const d=Be.transform(n),f=Be.transform(a);e[c.array]=`${d} ${f}`}function Jw(e,{attrX:n,attrY:a,attrScale:s,pathLength:l,pathSpacing:c=1,pathOffset:d=0,...f},h,m,g){if(Xm(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:w}=e;x.transform&&(w.transform=x.transform,delete x.transform),(w.transform||x.transformOrigin)&&(w.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),w.transform&&(w.transformBox=g?.transformBox??"fill-box",delete x.transformBox),n!==void 0&&(x.x=n),a!==void 0&&(x.y=a),s!==void 0&&(x.scale=s),l!==void 0&&CR(x,l,c,d,!1)}const e2=()=>({...Zm(),attrs:{}}),t2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DR(e,n,a,s){const l=X.useMemo(()=>{const c=e2();return Jw(c,n,t2(s),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[n]);if(e.style){const c={};Qw(c,e.style,e),l.style={...c,...l.style}}return l}const MR=["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 Wm(e){return typeof e!="string"||e.includes("-")?!1:!!(MR.indexOf(e)>-1||/[A-Z]/u.test(e))}function LR(e,n,a,{latestValues:s},l,c=!1){const f=(Wm(e)?DR:_R)(n,s,l,e),h=vR(n,typeof e=="string",c),m=e!==X.Fragment?{...h,...f,ref:a}:{},{children:g}=n,x=X.useMemo(()=>qt(g)?g.get():g,[g]);return X.createElement(e,{...m,children:x})}function Ab(e){const n=[{},{}];return e?.values.forEach((a,s)=>{n[0][s]=a.get(),n[1][s]=a.getVelocity()}),n}function Km(e,n,a,s){if(typeof n=="function"){const[l,c]=Ab(s);n=n(a!==void 0?a:e.custom,l,c)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[l,c]=Ab(s);n=n(a!==void 0?a:e.custom,l,c)}return n}function jc(e){return qt(e)?e.get():e}function PR({scrapeMotionValuesFromProps:e,createRenderState:n},a,s,l){return{latestValues:zR(a,s,l,e),renderState:n()}}function zR(e,n,a,s){const l={},c=s(e,{});for(const w in c)l[w]=jc(c[w]);let{initial:d,animate:f}=e;const h=hu(e),m=Kw(e);n&&m&&!h&&e.inherit!==!1&&(d===void 0&&(d=n.initial),f===void 0&&(f=n.animate));let g=a?a.initial===!1:!1;g=g||d===!1;const x=g?f:d;if(x&&typeof x!="boolean"&&!fu(x)){const w=Array.isArray(x)?x:[x];for(let T=0;T<w.length;T++){const k=Km(e,w[T]);if(k){const{transitionEnd:S,transition:A,...E}=k;for(const C in E){let L=E[C];if(Array.isArray(L)){const I=g?L.length-1:0;L=L[I]}L!==null&&(l[C]=L)}for(const C in S)l[C]=S[C]}}}return l}const n2=e=>(n,a)=>{const s=X.useContext(du),l=X.useContext(jm),c=()=>PR(e,n,s,l);return a?c():y5(c)};function $m(e,n,a){const{style:s}=e,l={};for(const c in s)(qt(s[c])||n.style&&qt(n.style[c])||$w(c,e)||a?.getValue(c)?.liveStyle!==void 0)&&(l[c]=s[c]);return l}const UR=n2({scrapeMotionValuesFromProps:$m,createRenderState:Zm});function r2(e,n,a){const s=$m(e,n,a);for(const l in e)if(qt(e[l])||qt(n[l])){const c=Zs.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[c]=e[l]}return s}const BR=n2({scrapeMotionValuesFromProps:r2,createRenderState:e2}),FR=Symbol.for("motionComponentSymbol");function ks(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VR(e,n,a){return X.useCallback(s=>{s&&e.onMount&&e.onMount(s),n&&(s?n.mount(s):n.unmount()),a&&(typeof a=="function"?a(s):ks(a)&&(a.current=s))},[n])}const Qm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),HR="framerAppearId",a2="data-"+Qm(HR),s2=X.createContext({});function IR(e,n,a,s,l){const{visualElement:c}=X.useContext(du),d=X.useContext(Zw),f=X.useContext(jm),h=X.useContext(Xw).reducedMotion,m=X.useRef(null);s=s||d.renderer,!m.current&&s&&(m.current=s(e,{visualState:n,parent:c,props:a,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,x=X.useContext(s2);g&&!g.projection&&l&&(g.type==="html"||g.type==="svg")&&qR(m.current,a,l,x);const w=X.useRef(!1);X.useInsertionEffect(()=>{g&&w.current&&g.update(a,f)});const T=a[a2],k=X.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return x5(()=>{g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),k.current&&g.animationState&&g.animationState.animateChanges())}),X.useEffect(()=>{g&&(!k.current&&g.animationState&&g.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),k.current=!1),g.enteringChildren=void 0)}),g}function qR(e,n,a,s){const{layoutId:l,layout:c,drag:d,dragConstraints:f,layoutScroll:h,layoutRoot:m,layoutCrossfade:g}=n;e.projection=new a(e.latestValues,n["data-framer-portal-id"]?void 0:i2(e.parent)),e.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||f&&ks(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:h,layoutRoot:m})}function i2(e){if(e)return e.options.allowProjection!==!1?e.projection:i2(e.parent)}function dh(e,{forwardMotionProps:n=!1}={},a,s){a&&yR(a);const l=Wm(e)?BR:UR;function c(f,h){let m;const g={...X.useContext(Xw),...f,layoutId:GR(f)},{isStatic:x}=g,w=SR(f),T=l(f,x);if(!x&&Sm){YR();const k=XR(g);m=k.MeasureLayout,w.visualElement=IR(e,T,g,s,k.ProjectionNode)}return u.jsxs(du.Provider,{value:w,children:[m&&w.visualElement?u.jsx(m,{visualElement:w.visualElement,...g}):null,LR(e,f,VR(T,w.visualElement,h),T,x,n)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=X.forwardRef(c);return d[FR]=e,d}function GR({layoutId:e}){const n=X.useContext(rw).id;return n&&e!==void 0?n+"-"+e:e}function YR(e,n){X.useContext(Zw).strict}function XR(e){const{drag:n,layout:a}=Vs;if(!n&&!a)return{};const s={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function ZR(e,n){if(typeof Proxy>"u")return dh;const a=new Map,s=(c,d)=>dh(c,d,e,n),l=(c,d)=>s(c,d);return new Proxy(l,{get:(c,d)=>d==="create"?s:(a.has(d)||a.set(d,dh(d,void 0,e,n)),a.get(d))})}function l2({top:e,left:n,right:a,bottom:s}){return{x:{min:n,max:a},y:{min:e,max:s}}}function WR({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function KR(e,n){if(!n)return e;const a=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}function fh(e){return e===void 0||e===1}function Jh({scale:e,scaleX:n,scaleY:a}){return!fh(e)||!fh(n)||!fh(a)}function Aa(e){return Jh(e)||o2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function o2(e){return Nb(e.x)||Nb(e.y)}function Nb(e){return e&&e!=="0%"}function Hc(e,n,a){const s=e-a,l=n*s;return a+l}function kb(e,n,a,s,l){return l!==void 0&&(e=Hc(e,l,s)),Hc(e,a,s)+n}function em(e,n=0,a=1,s,l){e.min=kb(e.min,n,a,s,l),e.max=kb(e.max,n,a,s,l)}function c2(e,{x:n,y:a}){em(e.x,n.translate,n.scale,n.originPoint),em(e.y,a.translate,a.scale,a.originPoint)}const _b=.999999999999,Ob=1.0000000000001;function $R(e,n,a,s=!1){const l=a.length;if(!l)return;n.x=n.y=1;let c,d;for(let f=0;f<l;f++){c=a[f],d=c.projectionDelta;const{visualElement:h}=c.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Os(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),d&&(n.x*=d.x.scale,n.y*=d.y.scale,c2(e,d)),s&&Aa(c.latestValues)&&Os(e,c.latestValues))}n.x<Ob&&n.x>_b&&(n.x=1),n.y<Ob&&n.y>_b&&(n.y=1)}function _s(e,n){e.min=e.min+n,e.max=e.max+n}function Rb(e,n,a,s,l=.5){const c=mt(e.min,e.max,l);em(e,n,a,c,s)}function Os(e,n){Rb(e.x,n.x,n.scaleX,n.scale,n.originX),Rb(e.y,n.y,n.scaleY,n.scale,n.originY)}function u2(e,n){return l2(KR(e.getBoundingClientRect(),n))}function QR(e,n,a){const s=u2(e,a),{scroll:l}=n;return l&&(_s(s.x,l.offset.x),_s(s.y,l.offset.y)),s}const Cb=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rs=()=>({x:Cb(),y:Cb()}),Db=()=>({min:0,max:0}),jt=()=>({x:Db(),y:Db()}),tm={current:null},d2={current:!1};function JR(){if(d2.current=!0,!!Sm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>tm.current=e.matches;e.addEventListener("change",n),n()}else tm.current=!1}const e6=new WeakMap;function t6(e,n,a){for(const s in n){const l=n[s],c=a[s];if(qt(l))e.addValue(s,l);else if(qt(c))e.addValue(s,Fs(l,{owner:e}));else if(c!==l)if(e.hasValue(s)){const d=e.getValue(s);d.liveStyle===!0?d.jump(l):d.hasAnimated||d.set(l)}else{const d=e.getStaticValue(s);e.addValue(s,Fs(d!==void 0?d:l,{owner:e}))}}for(const s in a)n[s]===void 0&&e.removeValue(s);return n}const Mb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class n6{scrapeMotionValuesFromProps(n,a,s){return{}}constructor({parent:n,props:a,presenceContext:s,reducedMotionConfig:l,blockInitialAnimation:c,visualState:d},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Fm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=nn.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,ut.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=d;this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=m,this.parent=n,this.props=a,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=l,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=hu(a),this.isVariantNode=Kw(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(a,{},this);for(const w in x){const T=x[w];h[w]!==void 0&&qt(T)&&T.set(h[w])}}mount(n){this.current=n,e6.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),d2.current||JR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:tm.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),na(this.notifyUpdate),na(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,a){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const s=Ws.has(n);s&&this.onBindTransform&&this.onBindTransform();const l=a.on("change",d=>{this.latestValues[n]=d,this.props.onUpdate&&ut.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,a)),this.valueSubscriptions.set(n,()=>{l(),c&&c(),a.owner&&a.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in Vs){const a=Vs[n];if(!a)continue;const{isEnabled:s,Feature:l}=a;if(!this.features[n]&&l&&s(this.props)&&(this.features[n]=new l(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jt()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,a){this.latestValues[n]=a}update(n,a){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let s=0;s<Mb.length;s++){const l=Mb[s];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const c="on"+l,d=n[c];d&&(this.propEventSubscriptions[l]=this.on(l,d))}this.prevMotionValues=t6(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]: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(n){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(n),()=>a.variantChildren.delete(n)}addValue(n,a){const s=this.values.get(n);a!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,a),this.values.set(n,a),this.latestValues[n]=a.get())}removeValue(n){this.values.delete(n);const a=this.valueSubscriptions.get(n);a&&(a(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,a){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&a!==void 0&&(s=Fs(a===null?void 0:a,{owner:this}),this.addValue(n,s)),s}readValue(n,a){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(aw(s)||iw(s))?s=parseFloat(s):!pR(s)&&ra.test(a)&&(s=Vw(n,a)),this.setBaseTarget(n,qt(s)?s.get():s)),qt(s)?s.get():s}setBaseTarget(n,a){this.baseTarget[n]=a}getBaseTarget(n){const{initial:a}=this.props;let s;if(typeof a=="string"||typeof a=="object"){const c=Km(this.props,a,this.presenceContext?.custom);c&&(s=c[n])}if(a&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,n);return l!==void 0&&!qt(l)?l:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,a){return this.events[n]||(this.events[n]=new km),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}scheduleRenderMicrotask(){Im.render(this.render)}}class f2 extends n6{constructor(){super(...arguments),this.KeyframeResolver=nR}sortInstanceNodePosition(n,a){return n.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(n,a){return n.style?n.style[a]:void 0}removeValueFromRenderState(n,{vars:a,style:s}){delete a[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;qt(n)&&(this.childSubscription=n.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function h2(e,{style:n,vars:a},s,l){const c=e.style;let d;for(d in n)c[d]=n[d];l?.applyProjectionStyles(c,s);for(d in a)c.setProperty(d,a[d])}function r6(e){return window.getComputedStyle(e)}class a6 extends f2{constructor(){super(...arguments),this.type="html",this.renderInstance=h2}readValueFromInstance(n,a){if(Ws.has(a))return this.projection?.isProjecting?Yh(a):wO(n,a);{const s=r6(n),l=(Rm(a)?s.getPropertyValue(a):s[a])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(n,{transformPagePoint:a}){return u2(n,a)}build(n,a,s){Xm(n,a,s.transformTemplate)}scrapeMotionValuesFromProps(n,a,s){return $m(n,a,s)}}const m2=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 s6(e,n,a,s){h2(e,n,void 0,s);for(const l in n.attrs)e.setAttribute(m2.has(l)?l:Qm(l),n.attrs[l])}class i6 extends f2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=jt}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if(Ws.has(a)){const s=Fw(a);return s&&s.default||0}return a=m2.has(a)?a:Qm(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,s){return r2(n,a,s)}build(n,a,s){Jw(n,a,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,a,s,l){s6(n,a,s,l)}mount(n){this.isSVGTag=t2(n.tagName),super.mount(n)}}const l6=(e,n)=>Wm(e)?new i6(n):new a6(n,{allowProjection:e!==X.Fragment});function Ps(e,n,a){const s=e.getProps();return Km(s,n,a!==void 0?a:s.custom,e)}const nm=e=>Array.isArray(e);function o6(e,n,a){e.hasValue(n)?e.getValue(n).set(a):e.addValue(n,Fs(a))}function c6(e){return nm(e)?e[e.length-1]||0:e}function u6(e,n){const a=Ps(e,n);let{transitionEnd:s={},transition:l={},...c}=a||{};c={...c,...s};for(const d in c){const f=c6(c[d]);o6(e,d,f)}}function d6(e){return!!(qt(e)&&e.add)}function rm(e,n){const a=e.getValue("willChange");if(d6(a))return a.add(n);if(!a&&Ar.WillChange){const s=new Ar.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function p2(e){return e.props[a2]}const f6=e=>e!==null;function h6(e,{repeat:n,repeatType:a="loop"},s){const l=e.filter(f6),c=n&&a!=="loop"&&n%2===1?0:l.length-1;return l[c]}const m6={type:"spring",stiffness:500,damping:25,restSpeed:10},p6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),g6={type:"keyframes",duration:.8},y6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},x6=(e,{keyframes:n})=>n.length>2?g6:Ws.has(e)?e.startsWith("scale")?p6(n[1]):m6:y6;function b6({when:e,delay:n,delayChildren:a,staggerChildren:s,staggerDirection:l,repeat:c,repeatType:d,repeatDelay:f,from:h,elapsed:m,...g}){return!!Object.keys(g).length}const Jm=(e,n,a,s={},l,c)=>d=>{const f=Vm(s,e)||{},h=f.delay||s.delay||0;let{elapsed:m=0}=s;m=m-er(h);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-m,onUpdate:w=>{n.set(w),f.onUpdate&&f.onUpdate(w)},onComplete:()=>{d(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:c?void 0:l};b6(f)||Object.assign(g,x6(e,g)),g.duration&&(g.duration=er(g.duration)),g.repeatDelay&&(g.repeatDelay=er(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&($h(g),g.delay===0&&(x=!0)),(Ar.instantAnimations||Ar.skipAnimations)&&(x=!0,$h(g),g.delay=0),g.allowFlatten=!f.type&&!f.ease,x&&!c&&n.get()!==void 0){const w=h6(g.keyframes,f);if(w!==void 0){ut.update(()=>{g.onUpdate(w),g.onComplete()});return}}return f.isSync?new Bm(g):new qO(g)};function v6({protectedKeys:e,needsAnimating:n},a){const s=e.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,s}function g2(e,n,{delay:a=0,transitionOverride:s,type:l}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:d,...f}=n;s&&(c=s);const h=[],m=l&&e.animationState&&e.animationState.getState()[l];for(const g in f){const x=e.getValue(g,e.latestValues[g]??null),w=f[g];if(w===void 0||m&&v6(m,g))continue;const T={delay:a,...Vm(c||{},g)},k=x.get();if(k!==void 0&&!x.isAnimating&&!Array.isArray(w)&&w===k&&!T.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const E=p2(e);if(E){const C=window.MotionHandoffAnimation(E,g,ut);C!==null&&(T.startTime=C,S=!0)}}rm(e,g),x.start(Jm(g,x,w,e.shouldReduceMotion&&zw.has(g)?{type:!1}:T,e,S));const A=x.animation;A&&h.push(A)}return d&&Promise.all(h).then(()=>{ut.update(()=>{d&&u6(e,d)})}),h}function y2(e,n,a,s=0,l=1){const c=Array.from(e).sort((m,g)=>m.sortNodePosition(g)).indexOf(n),d=e.size,f=(d-1)*s;return typeof a=="function"?a(c,d):l===1?c*s:f-c*s}function am(e,n,a={}){const s=Ps(e,n,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(l=a.transitionOverride);const c=s?()=>Promise.all(g2(e,s,a)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:x}=l;return w6(e,n,h,m,g,x,a)}:()=>Promise.resolve(),{when:f}=l;if(f){const[h,m]=f==="beforeChildren"?[c,d]:[d,c];return h().then(()=>m())}else return Promise.all([c(),d(a.delay)])}function w6(e,n,a=0,s=0,l=0,c=1,d){const f=[];for(const h of e.variantChildren)h.notify("AnimationStart",n),f.push(am(h,n,{...d,delay:a+(typeof s=="function"?0:s)+y2(e.variantChildren,h,s,l,c)}).then(()=>h.notify("AnimationComplete",n)));return Promise.all(f)}function S6(e,n,a={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const l=n.map(c=>am(e,c,a));s=Promise.all(l)}else if(typeof n=="string")s=am(e,n,a);else{const l=typeof n=="function"?Ps(e,n,a.custom):n;s=Promise.all(g2(e,l,a))}return s.then(()=>{e.notify("AnimationComplete",n)})}function x2(e,n){if(!Array.isArray(n))return!1;const a=n.length;if(a!==e.length)return!1;for(let s=0;s<a;s++)if(n[s]!==e[s])return!1;return!0}const j6=Ym.length;function b2(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?b2(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const n={};for(let a=0;a<j6;a++){const s=Ym[a],l=e.props[s];(vl(l)||l===!1)&&(n[s]=l)}return n}const T6=[...Gm].reverse(),E6=Gm.length;function A6(e){return n=>Promise.all(n.map(({animation:a,options:s})=>S6(e,a,s)))}function N6(e){let n=A6(e),a=Lb(),s=!0;const l=h=>(m,g)=>{const x=Ps(e,g,h==="exit"?e.presenceContext?.custom:void 0);if(x){const{transition:w,transitionEnd:T,...k}=x;m={...m,...k,...T}}return m};function c(h){n=h(e)}function d(h){const{props:m}=e,g=b2(e.parent)||{},x=[],w=new Set;let T={},k=1/0;for(let A=0;A<E6;A++){const E=T6[A],C=a[E],L=m[E]!==void 0?m[E]:g[E],I=vl(L),N=E===h?C.isActive:null;N===!1&&(k=A);let z=L===g[E]&&L!==m[E]&&I;if(z&&s&&e.manuallyAnimateOnMount&&(z=!1),C.protectedKeys={...T},!C.isActive&&N===null||!L&&!C.prevProp||fu(L)||typeof L=="boolean")continue;const F=k6(C.prevProp,L);let H=F||E===h&&C.isActive&&!z&&I||A>k&&I,M=!1;const R=Array.isArray(L)?L:[L];let K=R.reduce(l(E),{});N===!1&&(K={});const{prevResolvedValues:P={}}=C,V={...P,...K},j=v=>{H=!0,w.has(v)&&(M=!0,w.delete(v)),C.needsAnimating[v]=!0;const ue=e.getValue(v);ue&&(ue.liveStyle=!1)};for(const v in V){const ue=K[v],q=P[v];if(T.hasOwnProperty(v))continue;let b=!1;nm(ue)&&nm(q)?b=!x2(ue,q):b=ue!==q,b?ue!=null?j(v):w.add(v):ue!==void 0&&w.has(v)?j(v):C.protectedKeys[v]=!0}C.prevProp=L,C.prevResolvedValues=K,C.isActive&&(T={...T,...K}),s&&e.blockInitialAnimation&&(H=!1);const W=z&&F;H&&(!W||M)&&x.push(...R.map(v=>{const ue={type:E};if(typeof v=="string"&&s&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,b=Ps(q,v);if(q.enteringChildren&&b){const{delayChildren:O}=b.transition||{};ue.delay=y2(q.enteringChildren,e,O)}}return{animation:v,options:ue}}))}if(w.size){const A={};if(typeof m.initial!="boolean"){const E=Ps(e,Array.isArray(m.initial)?m.initial[0]:m.initial);E&&E.transition&&(A.transition=E.transition)}w.forEach(E=>{const C=e.getBaseTarget(E),L=e.getValue(E);L&&(L.liveStyle=!0),A[E]=C??null}),x.push({animation:A})}let S=!!x.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?n(x):Promise.resolve()}function f(h,m){if(a[h].isActive===m)return Promise.resolve();e.variantChildren?.forEach(x=>x.animationState?.setActive(h,m)),a[h].isActive=m;const g=d(h);for(const x in a)a[x].protectedKeys={};return g}return{animateChanges:d,setActive:f,setAnimateFunction:c,getState:()=>a,reset:()=>{a=Lb(),s=!0}}}function k6(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!x2(n,e):!1}function Ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lb(){return{animate:Ta(!0),whileInView:Ta(),whileHover:Ta(),whileTap:Ta(),whileDrag:Ta(),whileFocus:Ta(),exit:Ta()}}class sa{constructor(n){this.isMounted=!1,this.node=n}update(){}}class _6 extends sa{constructor(n){super(n),n.animationState||(n.animationState=N6(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();fu(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:a}=this.node.prevProps||{};n!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let O6=0;class R6 extends sa{constructor(){super(...arguments),this.id=O6++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:a}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;const l=this.node.animationState.setActive("exit",!n);a&&!n&&l.then(()=>{a(this.id)})}mount(){const{register:n,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const C6={animation:{Feature:_6},exit:{Feature:R6}};function Sl(e,n,a,s={passive:!0}){return e.addEventListener(n,a,s),()=>e.removeEventListener(n,a)}function Pl(e){return{point:{x:e.pageX,y:e.pageY}}}const D6=e=>n=>qm(n)&&e(n,Pl(n));function ol(e,n,a,s){return Sl(e,n,D6(a),s)}const v2=1e-4,M6=1-v2,L6=1+v2,w2=.01,P6=0-w2,z6=0+w2;function Xt(e){return e.max-e.min}function U6(e,n,a){return Math.abs(e-n)<=a}function Pb(e,n,a,s=.5){e.origin=s,e.originPoint=mt(n.min,n.max,e.origin),e.scale=Xt(a)/Xt(n),e.translate=mt(a.min,a.max,e.origin)-e.originPoint,(e.scale>=M6&&e.scale<=L6||isNaN(e.scale))&&(e.scale=1),(e.translate>=P6&&e.translate<=z6||isNaN(e.translate))&&(e.translate=0)}function cl(e,n,a,s){Pb(e.x,n.x,a.x,s?s.originX:void 0),Pb(e.y,n.y,a.y,s?s.originY:void 0)}function zb(e,n,a){e.min=a.min+n.min,e.max=e.min+Xt(n)}function B6(e,n,a){zb(e.x,n.x,a.x),zb(e.y,n.y,a.y)}function Ub(e,n,a){e.min=n.min-a.min,e.max=e.min+Xt(n)}function ul(e,n,a){Ub(e.x,n.x,a.x),Ub(e.y,n.y,a.y)}function kn(e){return[e("x"),e("y")]}const S2=({current:e})=>e?e.ownerDocument.defaultView:null,Bb=(e,n)=>Math.abs(e-n);function F6(e,n){const a=Bb(e.x,n.x),s=Bb(e.y,n.y);return Math.sqrt(a**2+s**2)}class j2{constructor(n,a,{transformPagePoint:s,contextWindow:l=window,dragSnapToOrigin:c=!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 w=mh(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,k=F6(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!k)return;const{point:S}=w,{timestamp:A}=Ut;this.history.push({...S,timestamp:A});const{onStart:E,onMove:C}=this.handlers;T||(E&&E(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,w)},this.handlePointerMove=(w,T)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=hh(T,this.transformPagePoint),ut.update(this.updatePoint,!0)},this.handlePointerUp=(w,T)=>{this.end();const{onEnd:k,onSessionEnd:S,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=mh(w.type==="pointercancel"?this.lastMoveEventInfo:hh(T,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,E),S&&S(w,E)},!qm(n))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=s,this.distanceThreshold=d,this.contextWindow=l||window;const f=Pl(n),h=hh(f,this.transformPagePoint),{point:m}=h,{timestamp:g}=Ut;this.history=[{...m,timestamp:g}];const{onSessionStart:x}=a;x&&x(n,mh(h,this.history)),this.removeListeners=Dl(ol(this.contextWindow,"pointermove",this.handlePointerMove),ol(this.contextWindow,"pointerup",this.handlePointerUp),ol(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),na(this.updatePoint)}}function hh(e,n){return n?{point:n(e.point)}:e}function Fb(e,n){return{x:e.x-n.x,y:e.y-n.y}}function mh({point:e},n){return{point:e,delta:Fb(e,T2(n)),offset:Fb(e,V6(n)),velocity:H6(n,.1)}}function V6(e){return e[0]}function T2(e){return e[e.length-1]}function H6(e,n){if(e.length<2)return{x:0,y:0};let a=e.length-1,s=null;const l=T2(e);for(;a>=0&&(s=e[a],!(l.timestamp-s.timestamp>er(n)));)a--;if(!s)return{x:0,y:0};const c=tr(l.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const d={x:(l.x-s.x)/c,y:(l.y-s.y)/c};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function I6(e,{min:n,max:a},s){return n!==void 0&&e<n?e=s?mt(n,e,s.min):Math.max(e,n):a!==void 0&&e>a&&(e=s?mt(a,e,s.max):Math.min(e,a)),e}function Vb(e,n,a){return{min:n!==void 0?e.min+n:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function q6(e,{top:n,left:a,bottom:s,right:l}){return{x:Vb(e.x,a,l),y:Vb(e.y,n,s)}}function Hb(e,n){let a=n.min-e.min,s=n.max-e.max;return n.max-n.min<e.max-e.min&&([a,s]=[s,a]),{min:a,max:s}}function G6(e,n){return{x:Hb(e.x,n.x),y:Hb(e.y,n.y)}}function Y6(e,n){let a=.5;const s=Xt(e),l=Xt(n);return l>s?a=yl(n.min,n.max-s,e.min):s>l&&(a=yl(e.min,e.max-l,n.min)),Er(0,1,a)}function X6(e,n){const a={};return n.min!==void 0&&(a.min=n.min-e.min),n.max!==void 0&&(a.max=n.max-e.min),a}const sm=.35;function Z6(e=sm){return e===!1?e=0:e===!0&&(e=sm),{x:Ib(e,"left","right"),y:Ib(e,"top","bottom")}}function Ib(e,n,a){return{min:qb(e,n),max:qb(e,a)}}function qb(e,n){return typeof e=="number"?e:e[n]||0}const W6=new WeakMap;class K6{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:a=!1,distanceThreshold:s}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const c=x=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Pl(x).point)},d=(x,w)=>{const{drag:T,dragPropagation:k,onDragStart:S}=this.getProps();if(T&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lR(T),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kn(E=>{let C=this.getAxisMotionValue(E).get()||0;if(nr.test(C)){const{projection:L}=this.visualElement;if(L&&L.layout){const I=L.layout.layoutBox[E];I&&(C=Xt(I)*(parseFloat(C)/100))}}this.originPoint[E]=C}),S&&ut.postRender(()=>S(x,w)),rm(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},f=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w;const{dragPropagation:T,dragDirectionLock:k,onDirectionLock:S,onDrag:A}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:E}=w;if(k&&this.currentDirection===null){this.currentDirection=$6(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",w.point,E),this.updateAxis("y",w.point,E),this.visualElement.render(),A&&A(x,w)},h=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w,this.stop(x,w),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>kn(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new j2(n,{onSessionStart:c,onStart:d,onMove:f,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:S2(this.visualElement)})}stop(n,a){const s=n||this.latestPointerEvent,l=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!l||!s)return;const{velocity:d}=l;this.startAnimation(d);const{onDragEnd:f}=this.getProps();f&&ut.postRender(()=>f(s,l))}cancel(){this.isDragging=!1;const{projection:n,animationState:a}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(n,a,s){const{drag:l}=this.getProps();if(!s||!sc(n,l,this.currentDirection))return;const c=this.getAxisMotionValue(n);let d=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(d=I6(d,this.constraints[n],this.elastic[n])),c.set(d)}resolveConstraints(){const{dragConstraints:n,dragElastic:a}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;n&&ks(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=q6(s.layoutBox,n):this.constraints=!1,this.elastic=Z6(a),l!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&kn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=X6(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!ks(n))return!1;const s=n.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=QR(s,l.root,this.visualElement.getTransformPagePoint());let d=G6(l.layout.layoutBox,c);if(a){const f=a(WR(d));this.hasMutatedConstraints=!!f,f&&(d=l2(f))}return d}startAnimation(n){const{drag:a,dragMomentum:s,dragElastic:l,dragTransition:c,dragSnapToOrigin:d,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=kn(g=>{if(!sc(g,a,this.currentDirection))return;let x=h&&h[g]||{};d&&(x={min:0,max:0});const w=l?200:1e6,T=l?40:1e7,k={type:"inertia",velocity:s?n[g]:0,bounceStiffness:w,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(g,k)});return Promise.all(m).then(f)}startAxisValueAnimation(n,a){const s=this.getAxisMotionValue(n);return rm(this.visualElement,n),s.start(Jm(n,s,0,a,this.visualElement,!1))}stopAnimation(){kn(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){kn(n=>this.getAxisMotionValue(n).animation?.pause())}getAnimationState(n){return this.getAxisMotionValue(n).animation?.state}getAxisMotionValue(n){const a=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),l=s[a];return l||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){kn(a=>{const{drag:s}=this.getProps();if(!sc(a,s,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(a);if(l&&l.layout){const{min:d,max:f}=l.layout.layoutBox[a];c.set(n[a]-mt(d,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:s}=this.visualElement;if(!ks(a)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};kn(d=>{const f=this.getAxisMotionValue(d);if(f&&this.constraints!==!1){const h=f.get();l[d]=Y6({min:h,max:h},this.constraints[d])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),kn(d=>{if(!sc(d,n,null))return;const f=this.getAxisMotionValue(d),{min:h,max:m}=this.constraints[d];f.set(mt(h,m,l[d]))})}addListeners(){if(!this.visualElement.current)return;W6.set(this.visualElement,this);const n=this.visualElement.current,a=ol(n,"pointerdown",h=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();ks(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,c=l.addEventListener("measure",s);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),ut.read(s);const d=Sl(window,"resize",()=>this.scalePositionWithinConstraints()),f=l.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(kn(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=h[g].translate,x.set(x.get()+h[g].translate))}),this.visualElement.render())});return()=>{d(),a(),c(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:d=sm,dragMomentum:f=!0}=n;return{...n,drag:a,dragDirectionLock:s,dragPropagation:l,dragConstraints:c,dragElastic:d,dragMomentum:f}}}function sc(e,n,a){return(n===!0||n===e)&&(a===null||a===e)}function $6(e,n=10){let a=null;return Math.abs(e.y)>n?a="y":Math.abs(e.x)>n&&(a="x"),a}class Q6 extends sa{constructor(n){super(n),this.removeGroupControls=On,this.removeListeners=On,this.controls=new K6(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||On}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gb=e=>(n,a)=>{e&&ut.postRender(()=>e(n,a))};class J6 extends sa{constructor(){super(...arguments),this.removePointerDownListener=On}onPointerDown(n){this.session=new j2(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S2(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:Gb(n),onStart:Gb(a),onMove:s,onEnd:(c,d)=>{delete this.session,l&&ut.postRender(()=>l(c,d))}}}mount(){this.removePointerDownListener=ol(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yb(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Qi={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(Be.test(e))e=parseFloat(e);else return e;const a=Yb(e,n.target.x),s=Yb(e,n.target.y);return`${a}% ${s}%`}},eC={correct:(e,{treeScale:n,projectionDelta:a})=>{const s=e,l=ra.parse(e);if(l.length>5)return s;const c=ra.createTransformer(e),d=typeof l[0]!="number"?1:0,f=a.x.scale*n.x,h=a.y.scale*n.y;l[0+d]/=f,l[1+d]/=h;const m=mt(f,h,.5);return typeof l[2+d]=="number"&&(l[2+d]/=m),typeof l[3+d]=="number"&&(l[3+d]/=m),c(l)}};let ph=!1;class tC extends X.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s,layoutId:l}=this.props,{projection:c}=n;jR(nC),c&&(a.group&&a.group.add(c),s&&s.register&&l&&s.register(c),ph&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:s,drag:l,isPresent:c}=this.props,{projection:d}=s;return d&&(d.isPresent=c,ph=!0,l||n.layoutDependency!==a||a===void 0||n.isPresent!==c?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||ut.postRender(()=>{const f=d.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Im.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s}=this.props,{projection:l}=n;ph=!0,l&&(l.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function E2(e){const[n,a]=gR(),s=X.useContext(rw);return u.jsx(tC,{...e,layoutGroup:s,switchLayoutGroup:X.useContext(s2),isPresent:n,safeToRemove:a})}const nC={borderRadius:{...Qi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qi,borderTopRightRadius:Qi,borderBottomLeftRadius:Qi,borderBottomRightRadius:Qi,boxShadow:eC};function rC(e,n,a){const s=qt(e)?e:Fs(e);return s.start(Jm("",s,n,a)),s.animation}const aC=(e,n)=>e.depth-n.depth;class sC{constructor(){this.children=[],this.isDirty=!1}add(n){Tm(this.children,n),this.isDirty=!0}remove(n){Em(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(aC),this.isDirty=!1,this.children.forEach(n)}}function iC(e,n){const a=nn.now(),s=({timestamp:l})=>{const c=l-a;c>=n&&(na(s),e(c-n))};return ut.setup(s,!0),()=>na(s)}const A2=["TopLeft","TopRight","BottomLeft","BottomRight"],lC=A2.length,Xb=e=>typeof e=="string"?parseFloat(e):e,Zb=e=>typeof e=="number"||Be.test(e);function oC(e,n,a,s,l,c){l?(e.opacity=mt(0,a.opacity??1,cC(s)),e.opacityExit=mt(n.opacity??1,0,uC(s))):c&&(e.opacity=mt(n.opacity??1,a.opacity??1,s));for(let d=0;d<lC;d++){const f=`border${A2[d]}Radius`;let h=Wb(n,f),m=Wb(a,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||Zb(h)===Zb(m)?(e[f]=Math.max(mt(Xb(h),Xb(m),s),0),(nr.test(m)||nr.test(h))&&(e[f]+="%")):e[f]=m}(n.rotate||a.rotate)&&(e.rotate=mt(n.rotate||0,a.rotate||0,s))}function Wb(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const cC=N2(0,.5,mw),uC=N2(.5,.95,On);function N2(e,n,a){return s=>s<e?0:s>n?1:a(yl(e,n,s))}function Kb(e,n){e.min=n.min,e.max=n.max}function Nn(e,n){Kb(e.x,n.x),Kb(e.y,n.y)}function $b(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function Qb(e,n,a,s,l){return e-=n,e=Hc(e,1/a,s),l!==void 0&&(e=Hc(e,1/l,s)),e}function dC(e,n=0,a=1,s=.5,l,c=e,d=e){if(nr.test(n)&&(n=parseFloat(n),n=mt(d.min,d.max,n/100)-d.min),typeof n!="number")return;let f=mt(c.min,c.max,s);e===c&&(f-=n),e.min=Qb(e.min,n,a,f,l),e.max=Qb(e.max,n,a,f,l)}function Jb(e,n,[a,s,l],c,d){dC(e,n[a],n[s],n[l],n.scale,c,d)}const fC=["x","scaleX","originX"],hC=["y","scaleY","originY"];function ev(e,n,a,s){Jb(e.x,n,fC,a?a.x:void 0,s?s.x:void 0),Jb(e.y,n,hC,a?a.y:void 0,s?s.y:void 0)}function tv(e){return e.translate===0&&e.scale===1}function k2(e){return tv(e.x)&&tv(e.y)}function nv(e,n){return e.min===n.min&&e.max===n.max}function mC(e,n){return nv(e.x,n.x)&&nv(e.y,n.y)}function rv(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function _2(e,n){return rv(e.x,n.x)&&rv(e.y,n.y)}function av(e){return Xt(e.x)/Xt(e.y)}function sv(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class pC{constructor(){this.members=[]}add(n){Tm(this.members,n),n.scheduleRender()}remove(n){if(Em(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(n){const a=this.members.findIndex(l=>n===l);if(a===0)return!1;let s;for(let l=a;l>=0;l--){const c=this.members[l];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(n,a){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.instance&&s.scheduleRender(),n.scheduleRender(),n.resumeFrom=s,a&&(n.resumeFrom.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:l}=n.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:a,resumingFrom:s}=n;a.onExitComplete&&a.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function gC(e,n,a){let s="";const l=e.x.translate/n.x,c=e.y.translate/n.y,d=a?.z||0;if((l||c||d)&&(s=`translate3d(${l}px, ${c}px, ${d}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),a){const{transformPerspective:m,rotate:g,rotateX:x,rotateY:w,skewX:T,skewY:k}=a;m&&(s=`perspective(${m}px) ${s}`),g&&(s+=`rotate(${g}deg) `),x&&(s+=`rotateX(${x}deg) `),w&&(s+=`rotateY(${w}deg) `),T&&(s+=`skewX(${T}deg) `),k&&(s+=`skewY(${k}deg) `)}const f=e.x.scale*n.x,h=e.y.scale*n.y;return(f!==1||h!==1)&&(s+=`scale(${f}, ${h})`),s||"none"}const gh=["","X","Y","Z"],yC=1e3;let xC=0;function yh(e,n,a,s){const{latestValues:l}=n;l[e]&&(a[e]=l[e],n.setStaticValue(e,0),s&&(s[e]=0))}function O2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const a=p2(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:l,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",ut,!(l||c))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&O2(s)}function R2({attachResizeListener:e,defaultParent:n,measureScroll:a,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(d={},f=n?.()){this.id=xC++,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(wC),this.nodes.forEach(EC),this.nodes.forEach(AC),this.nodes.forEach(SC)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new sC)}addEventListener(d,f){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new km),this.eventHandlers.get(d).add(f)}notifyListeners(d,...f){const h=this.eventHandlers.get(d);h&&h.notify(...f)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Yw(d)&&!hR(d),this.instance=d;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||f)&&(this.isLayoutDirty=!0),e){let g,x=0;const w=()=>this.root.updateBlockedByResize=!1;ut.read(()=>{x=window.innerWidth}),e(d,()=>{const T=window.innerWidth;T!==x&&(x=T,this.root.updateBlockedByResize=!0,g&&g(),g=iC(w,250),Tc.hasAnimatedSinceResize&&(Tc.hasAnimatedSinceResize=!1,this.nodes.forEach(ov)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:w,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||m.getDefaultTransition()||RC,{onLayoutAnimationStart:S,onLayoutAnimationComplete:A}=m.getProps(),E=!this.targetLayout||!_2(this.targetLayout,T),C=!x&&w;if(this.options.layoutRoot||this.resumeFrom||C||x&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...Vm(k,"layout"),onPlay:S,onComplete:A};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,C)}else x||ov(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}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(),na(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(NC),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&&O2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(lv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(TC),this.nodes.forEach(bC),this.nodes.forEach(vC)):this.nodes.forEach(lv),this.clearAllSnapshots();const f=nn.now();Ut.delta=Er(0,1e3/60,f-Ut.timestamp),Ut.timestamp=f,Ut.isProcessing=!0,sh.update.process(Ut),sh.preRender.process(Ut),sh.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Im.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jC),this.sharedNodes.forEach(kC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ut.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Xt(this.snapshot.measuredBox.x)&&!Xt(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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=jt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(f=!1),f&&this.instance){const h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:h,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!l)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!k2(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;d&&this.instance&&(f||Aa(this.latestValues)||g)&&(l(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return d&&(h=this.removeTransform(h)),CC(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return jt();const f=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(DC))){const{scroll:m}=this.root;m&&(_s(f.x,m.offset.x),_s(f.y,m.offset.y))}return f}removeElementScroll(d){const f=jt();if(Nn(f,d),this.scroll?.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:x}=m;m!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&Nn(f,d),_s(f.x,g.offset.x),_s(f.y,g.offset.y))}return f}applyTransform(d,f=!1){const h=jt();Nn(h,d);for(let m=0;m<this.path.length;m++){const g=this.path[m];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Os(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Aa(g.latestValues)&&Os(h,g.latestValues)}return Aa(this.latestValues)&&Os(h,this.latestValues),h}removeTransform(d){const f=jt();Nn(f,d);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Aa(m.latestValues))continue;Jh(m.latestValues)&&m.updateSnapshot();const g=jt(),x=m.measurePageBox();Nn(g,x),ev(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return Aa(this.latestValues)&&ev(f,this.latestValues),f}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!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(d||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jt(),this.relativeTargetOrigin=jt(),ul(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=jt(),this.targetWithTransforms=jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nn(this.target,this.layout.layoutBox),c2(this.target,this.targetDelta)):Nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jt(),this.relativeTargetOrigin=jt(),ul(this.relativeTargetOrigin,this.target,w.target),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Jh(this.parent.latestValues)||o2(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(),f=!!this.resumingFrom||this!==d;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(h=!1),h)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;Nn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,w=this.treeScale.y;$R(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=jt());const{target:T}=d;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($b(this.prevProjectionDelta.x,this.projectionDelta.x),$b(this.prevProjectionDelta.y,this.projectionDelta.y)),cl(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==w||!sv(this.projectionDelta.x,this.prevProjectionDelta.x)||!sv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rs(),this.projectionDelta=Rs(),this.projectionDeltaWithTransform=Rs()}setAnimationOrigin(d,f=!1){const h=this.snapshot,m=h?h.latestValues:{},g={...this.latestValues},x=Rs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const w=jt(),T=h?h.source:void 0,k=this.layout?this.layout.source:void 0,S=T!==k,A=this.getStack(),E=!A||A.members.length<=1,C=!!(S&&!E&&this.options.crossfade===!0&&!this.path.some(OC));this.animationProgress=0;let L;this.mixTargetDelta=I=>{const N=I/1e3;cv(x.x,d.x,N),cv(x.y,d.y,N),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ul(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_C(this.relativeTarget,this.relativeTargetOrigin,w,N),L&&mC(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=jt()),Nn(L,this.relativeTarget)),S&&(this.animationValues=g,oC(g,m,this.latestValues,N,C,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(na(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ut.update(()=>{Tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fs(0)),this.currentAnimation=rC(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),d.onUpdate&&d.onUpdate(f)},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(yC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:g}=d;if(!(!f||!h||!m)){if(this!==d&&this.layout&&m&&C2(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||jt();const x=Xt(this.layout.layoutBox.x);h.x.min=d.target.x.min,h.x.max=h.x.min+x;const w=Xt(this.layout.layoutBox.y);h.y.min=d.target.y.min,h.y.max=h.y.min+w}Nn(f,h),Os(f,g),cl(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(d,f){this.sharedNodes.has(d)||this.sharedNodes.set(d,new pC),this.sharedNodes.get(d).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):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:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),d&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let f=!1;const{latestValues:h}=d;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&yh("z",d,m,this.animationValues);for(let g=0;g<gh.length;g++)yh(`rotate${gh[g]}`,d,m,this.animationValues),yh(`skew${gh[g]}`,d,m,this.animationValues);d.render();for(const g in m)d.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);d.scheduleRender()}applyProjectionStyles(d,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=jc(f?.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=jc(f?.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(d.transform=h?h({},""):"none",this.hasProjected=!1);return}d.visibility="";const g=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=gC(this.projectionDeltaWithTransform,this.treeScale,g);h&&(x=h(g,x)),d.transform=x;const{x:w,y:T}=this.projectionDelta;d.transformOrigin=`${w.origin*100}% ${T.origin*100}% 0`,m.animationValues?d.opacity=m===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const k in wl){if(g[k]===void 0)continue;const{correct:S,applyTo:A,isCSSVariable:E}=wl[k],C=x==="none"?g[k]:S(g[k],m);if(A){const L=A.length;for(let I=0;I<L;I++)d[A[I]]=C}else E?this.options.visualElement.renderState.vars[k]=C:d[k]=C}this.options.layoutId&&(d.pointerEvents=m===this?jc(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(iv),this.root.sharedNodes.clear()}}}function bC(e){e.updateLayout()}function vC(e){const n=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:s}=e.layout,{animationType:l}=e.options,c=n.source!==e.layout.source;l==="size"?kn(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],w=Xt(x);x.min=a[g].min,x.max=x.min+w}):C2(l,n.layoutBox,a)&&kn(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],w=Xt(a[g]);x.max=x.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+w)});const d=Rs();cl(d,a,n.layoutBox);const f=Rs();c?cl(f,e.applyTransform(s,!0),n.measuredBox):cl(f,a,n.layoutBox);const h=!k2(d);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:w}=g;if(x&&w){const T=jt();ul(T,n.layoutBox,x.layoutBox);const k=jt();ul(k,a,w.layoutBox),_2(T,k)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=T,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function wC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function SC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jC(e){e.clearSnapshot()}function iv(e){e.clearMeasurements()}function lv(e){e.isLayoutDirty=!1}function TC(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function ov(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function EC(e){e.resolveTargetDelta()}function AC(e){e.calcProjection()}function NC(e){e.resetSkewAndRotation()}function kC(e){e.removeLeadSnapshot()}function cv(e,n,a){e.translate=mt(n.translate,0,a),e.scale=mt(n.scale,1,a),e.origin=n.origin,e.originPoint=n.originPoint}function uv(e,n,a,s){e.min=mt(n.min,a.min,s),e.max=mt(n.max,a.max,s)}function _C(e,n,a,s){uv(e.x,n.x,a.x,s),uv(e.y,n.y,a.y,s)}function OC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const RC={duration:.45,ease:[.4,0,.1,1]},dv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fv=dv("applewebkit/")&&!dv("chrome/")?Math.round:On;function hv(e){e.min=fv(e.min),e.max=fv(e.max)}function CC(e){hv(e.x),hv(e.y)}function C2(e,n,a){return e==="position"||e==="preserve-aspect"&&!U6(av(n),av(a),.2)}function DC(e){return e!==e.root&&e.scroll?.wasRoot}const MC=R2({attachResizeListener:(e,n)=>Sl(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xh={current:void 0},D2=R2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xh.current){const e=new MC({});e.mount(window),e.setOptions({layoutScroll:!0}),xh.current=e}return xh.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),LC={pan:{Feature:J6},drag:{Feature:Q6,ProjectionNode:D2,MeasureLayout:E2}};function mv(e,n,a){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",a==="Start");const l="onHover"+a,c=s[l];c&&ut.postRender(()=>c(n,Pl(n)))}class PC extends sa{mount(){const{current:n}=this.node;n&&(this.unmount=oR(n,(a,s)=>(mv(this.node,s,"Start"),l=>mv(this.node,l,"End"))))}unmount(){}}class zC extends sa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=Dl(Sl(this.node.current,"focus",()=>this.onFocus()),Sl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pv(e,n,a){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",a==="Start");const l="onTap"+(a==="End"?"":a),c=s[l];c&&ut.postRender(()=>c(n,Pl(n)))}class UC extends sa{mount(){const{current:n}=this.node;n&&(this.unmount=fR(n,(a,s)=>(pv(this.node,s,"Start"),(l,{success:c})=>pv(this.node,l,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const im=new WeakMap,bh=new WeakMap,BC=e=>{const n=im.get(e.target);n&&n(e)},FC=e=>{e.forEach(BC)};function VC({root:e,...n}){const a=e||document;bh.has(a)||bh.set(a,{});const s=bh.get(a),l=JSON.stringify(n);return s[l]||(s[l]=new IntersectionObserver(FC,{root:e,...n})),s[l]}function HC(e,n,a){const s=VC(n);return im.set(e,a),s.observe(e),()=>{im.delete(e),s.unobserve(e)}}const IC={some:0,all:1};class qC extends sa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:a,margin:s,amount:l="some",once:c}=n,d={root:a?a.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:IC[l]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),w=m?g:x;w&&w(h)};return HC(this.node.current,d,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:a}=this.node;["amount","margin","root"].some(GC(n,a))&&this.startObserver()}unmount(){}}function GC({viewport:e={}},{viewport:n={}}={}){return a=>e[a]!==n[a]}const YC={inView:{Feature:qC},tap:{Feature:UC},focus:{Feature:zC},hover:{Feature:PC}},XC={layout:{ProjectionNode:D2,MeasureLayout:E2}},ZC={...C6,...YC,...LC,...XC},WC=ZR(ZC,l6),KC=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm text-yellow-400",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx(WC.div,{initial:{width:0},animate:{width:`${s}%`},transition:{duration:1.2},className:"h-full bg-yellow-400"})})]})};function $C(){const e=Zt(),[n,a]=X.useState("3 Days 4 Hours"),[s,l]=X.useState([]),[c,d]=X.useState(!1),[f,h]=X.useState(null),[m,g]=X.useState(!1),[x,w]=X.useState(null),[T,k]=X.useState(!1),S=Xe(Nr),A=async()=>{if(S?._id){g(!0);try{const I=ze.getToken(),N=await fetch(`${tn}/mlm/bbr/current-campaign/${S._id}`,{method:"GET",headers:{Authorization:`Bearer ${I}`,"Content-Type":"application/json"}});if(N.ok){const z=await N.json();z.success&&z.data&&h(z.data)}else console.error("Failed to fetch current campaign:",N.statusText)}catch(I){console.error("Error fetching current campaign:",I),nt("Failed to load current campaign")}finally{g(!1)}}},E=async()=>{k(!0);try{const I=ze.getToken(),N=await fetch(`${tn}/mlm/bbr/leaderboard`,{method:"GET",headers:{Authorization:`Bearer ${I}`,"Content-Type":"application/json"}});if(N.ok){const z=await N.json();z.success&&z.data&&w(z.data)}else console.error("Failed to fetch leaderboard:",N.statusText)}catch(I){console.error("Error fetching leaderboard:",I),nt("Failed to load leaderboard")}finally{k(!1)}},C=async()=>{if(S?._id){d(!0);try{const I=ze.getToken(),N=await fetch(`${tn}${at.BBR_PAST_WINS}/${S._id}`,{method:"GET",headers:{Authorization:`Bearer ${I}`,"Content-Type":"application/json"}});if(N.ok){const z=await N.json();z.success&&z.data.pastWins&&l(z.data.pastWins)}else console.error("Failed to fetch past wins:",N.statusText)}catch(I){console.error("Error fetching past wins:",I),nt("Failed to load past wins")}finally{d(!1)}}};X.useEffect(()=>{S?._id&&(A(),E(),C())},[S?._id]),X.useEffect(()=>{if(f?.currentCampaign?.timeLeft){const{days:I,hours:N}=f.currentCampaign.timeLeft;a(`${I} Days ${N} Hours`)}},[f]);const L=I=>new Date(I).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-5 flex flex-col items-center p-6 pt-20 pb-12 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("div",{className:"w-full md:mt-24 max-w-5xl mb-8 p-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)"},children:u.jsx("h2",{className:"text-3xl font-extrabold flex items-center justify-center gap-2",children:"🚀 Bonus Booster Rewards (BBR)"})}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📢 Current Campaign"}),m?u.jsx("div",{className:"text-center py-4 text-yellow-300",children:"Loading campaign data..."}):f?.currentCampaign?u.jsxs("ul",{className:"space-y-2 text-yellow-300",children:[u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Name:"})," ",f.currentCampaign.name]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Requirement:"})," ",f.currentCampaign.requirement," Rides"]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Duration:"})," ",f.currentCampaign.duration," Days"]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Period:"})," ",f.currentCampaign.period]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Type:"})," ",f.currentCampaign.type==="solo"?"Solo":"Team",f.currentCampaign.newbieRidesOnly&&" (Newbie rides only)"]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Reward:"})," AED ",f.currentCampaign.reward?.amount||0]})]}):u.jsx("div",{className:"text-center py-4 text-yellow-300",children:"No active campaign found"})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📊 Progress Tracker"}),m?u.jsx("div",{className:"text-center py-4 text-yellow-300",children:"Loading progress data..."}):f?.progress?u.jsxs(u.Fragment,{children:[u.jsx(KC,{label:"Total Rides",value:f.progress.totalRides||0,max:f.currentCampaign?.requirement||100}),u.jsxs("div",{className:"text-yellow-300 space-y-2",children:[u.jsxs("p",{children:["• Solo Rides: ",f.progress.soloRides||0," Rides"]}),u.jsxs("p",{children:["• Team Rides: ",f.progress.teamRides||0," Rides"]}),u.jsxs("p",{children:["• Progress: ",f.progress.progressPercentage||0,"%"]}),u.jsxs("p",{children:["• Rides Needed: ",f.progress.ridesNeeded||0," more"]}),u.jsxs("p",{className:"text-sm",children:["⏳ Time Left: ",n]}),u.jsx("p",{className:`text-sm font-semibold ${f.progress.isQualified?"text-green-400":"text-red-400"}`,children:f.progress.isQualified?"✅ Qualified!":"🔒 Not Qualified Yet"})]})]}):u.jsx("div",{className:"text-center py-4 text-yellow-300",children:"No progress data available"})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"🔥 Motivation Zone"}),u.jsxs("div",{className:"text-yellow-300 space-y-2",children:[u.jsxs("p",{children:["• You need ",u.jsx("span",{className:"font-semibold",children:"13 more rides/day"})," ","to win!"]}),u.jsx("p",{children:"• 3 of your newbie team members are active — motivate them!"})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"🏅 Reward Preview"}),m?u.jsx("div",{className:"text-center py-4 text-yellow-300",children:"Loading reward data..."}):f?.currentCampaign?.reward?u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-yellow-300 font-semibold",children:["🎁 AED ",f.currentCampaign.reward.amount," Bonus",f.currentCampaign.reward.perks?.length>0&&` + ${f.currentCampaign.reward.perks.join(", ")}`]}),u.jsx("p",{className:`font-semibold mt-2 ${f.progress?.isQualified?"text-green-400":"text-red-400"}`,children:f.progress?.isQualified?"✅ Reward Unlocked!":`🔒 Locked until ${f.currentCampaign.requirement} rides achieved`})]}):u.jsx("div",{className:"text-center py-4 text-yellow-300",children:"No reward information available"})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8",children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📈 Leaderboard"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-64 overflow-y-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-[#013220]",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:T?u.jsx("div",{className:"text-center py-8 text-yellow-300",children:"Loading leaderboard..."}):x?.leaderboard?.length>0?u.jsxs("table",{className:"w-full text-left text-yellow-400",children:[u.jsx("thead",{className:"sticky top-0 bg-[rgba(1,50,32,1)]",children:u.jsxs("tr",{className:"border-b border-yellow-600",children:[u.jsx("th",{className:"p-4",children:"Rank"}),u.jsx("th",{className:"p-4",children:"Name"}),u.jsx("th",{className:"p-4",children:"Role"}),u.jsx("th",{className:"p-4",children:"Rides"}),u.jsx("th",{className:"p-4",children:"Reward"}),u.jsx("th",{className:"p-4",children:"Status"})]})}),u.jsx("tbody",{children:x.leaderboard.map((I,N)=>u.jsxs("tr",{className:`border-b border-yellow-700/50 hover:bg-yellow-900/20 ${I.rank===x.userPosition?.rank?"bg-yellow-900/50 font-bold":""}`,children:[u.jsx("td",{className:"p-4",children:I.rank}),u.jsx("td",{className:"p-4",children:I.name}),u.jsx("td",{className:"p-4 capitalize",children:I.role}),u.jsxs("td",{className:"p-4",children:[I.rides," rides"]}),u.jsxs("td",{className:"p-4",children:["AED ",I.reward]}),u.jsx("td",{className:"p-4",children:u.jsx("span",{className:`px-2 py-1 rounded text-xs ${I.status==="Locked"?"bg-red-600 text-white":"bg-green-600 text-white"}`,children:I.status})})]},N))})]}):u.jsx("div",{className:"text-center py-8 text-yellow-300",children:"No leaderboard data available"})})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8",children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📜 Past Booster Wins"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-64 overflow-y-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-[#013220]",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsxs("table",{className:"w-full text-left text-yellow-400",children:[u.jsx("thead",{className:"sticky top-0 bg-[rgba(1,50,32,1)]",children:u.jsxs("tr",{className:"border-b border-yellow-600",children:[u.jsx("th",{className:"p-4",children:"Campaign"}),u.jsx("th",{className:"p-4",children:"Reward"}),u.jsx("th",{className:"p-4",children:"Date"}),u.jsx("th",{className:"p-4",children:"Status"})]})}),u.jsx("tbody",{children:c?u.jsx("tr",{children:u.jsx("td",{colSpan:"4",className:"p-4 text-center text-yellow-300",children:"Loading past wins..."})}):s.length>0?s.map((I,N)=>u.jsxs("tr",{className:"border-b border-yellow-700/50 hover:bg-yellow-900/20",children:[u.jsx("td",{className:"p-4",children:I.name}),u.jsxs("td",{className:"p-4",children:["AED ",I.reward]}),u.jsx("td",{className:"p-4",children:L(I.date)}),u.jsx("td",{className:"p-4 text-green-400",children:I.status})]},N)):u.jsx("tr",{children:u.jsx("td",{colSpan:"4",className:"p-4 text-center text-yellow-300",children:"No past wins found"})})})]})})]}),u.jsxs("div",{className:"rounded-xl p-6 mb-4 text-center max-w-3xl shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center justify-center gap-2 text-yellow-400",children:"💡 Tips"}),u.jsxs("ul",{className:"list-disc list-inside text-yellow-300 space-y-2",children:[u.jsx("li",{children:"✔ Focus on peak hours to get more rides"}),u.jsx("li",{children:"✔ Encourage newbie team to stay active"})]})]}),u.jsx("style",{children:`
.scrollbar-thin::-webkit-scrollbar {
width: 8px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
background-color: #ffd700;
border-radius: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
background-color: #013220;
}
`})]})}const gv=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function QC(){const e=Zt(),[n,a]=X.useState(!1),[s,l]=X.useState(null),[c,d]=X.useState([]),[f,h]=X.useState(!1),[m,g]=X.useState(!1),x=Xe(Nr),w=async()=>{if(x?._id){h(!0);try{const A=ze.getToken(),E=await fetch(`${tn}${at.HLR_PROGRESS}/${x._id}`,{method:"GET",headers:{Authorization:`Bearer ${A}`,"Content-Type":"application/json"}});if(E.ok){const C=await E.json();C.success&&l(C.data)}else console.error("Failed to fetch HLR progress:",E.statusText)}catch(A){console.error("Error fetching HLR progress:",A),nt("Failed to load HLR progress")}finally{h(!1)}}},T=async()=>{g(!0);try{const A=ze.getToken(),E=await fetch(`${tn}${at.HLR_LEADERBOARD}?page=1&limit=20`,{method:"GET",headers:{Authorization:`Bearer ${A}`,"Content-Type":"application/json"}});if(E.ok){const C=await E.json();C.success&&C.data.leaderboard&&d(C.data.leaderboard)}else console.error("Failed to fetch HLR leaderboard:",E.statusText)}catch(A){console.error("Error fetching HLR leaderboard:",A),nt("Failed to load HLR leaderboard")}finally{g(!1)}};X.useEffect(()=>{w(),T()},[x?._id]);const k=s?{value:s.progress.currentPGP,max:s.requirements.requiredPGP}:{value:0,max:2e5},S=s?{value:s.progress.currentTGP,max:s.requirements.requiredTGP}:{value:0,max:6e6};return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 transition-colors duration-300 mb-10",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold my-6 text-center",children:"🏆 HonorPay Loyalty Rewards (HLR)"}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg text-left",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-3",children:"🎯 Reward Conditions"}),u.jsxs("ul",{className:"list-disc ml-6 text-sm leading-6",children:[u.jsxs("li",{children:["One-time reward given at retirement (Age ",s?.requirements?.retirementAge||55,")."]}),u.jsx("li",{children:"Or instantly if qualified and passed away."}),u.jsxs("li",{children:["Required PGP: ",u.jsx("b",{children:s?.requirements?.requiredPGP?.toLocaleString()||"200,000"})]}),u.jsxs("li",{children:["Required TGP: ",u.jsx("b",{children:s?.requirements?.requiredTGP?.toLocaleString()||"6,000,000"})]}),u.jsxs("li",{children:["Reward Amount: ",u.jsxs("b",{children:["AED ",s?.requirements?.rewardAmount?.toLocaleString()||"60,000"]})]})]})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"📊 Your Progress"}),f?u.jsx("div",{className:"text-center text-yellow-300 py-4",children:"Loading progress data..."}):u.jsxs(u.Fragment,{children:[u.jsx(gv,{label:"PGP Progress",value:k.value,max:k.max}),u.jsx(gv,{label:"TGP Progress",value:S.value,max:S.max}),u.jsxs("p",{className:"mt-2 italic text-sm text-gray-200",children:["▓▓▓▓▓▓▓▓░░░░"," ",s?.progress?.overallProgress?(s.progress.overallProgress*100).toFixed(0):((k.value/k.max+S.value/S.max)/2*100).toFixed(0),"% Complete"]}),s?.qualification&&u.jsx("div",{className:"mt-4 p-3 rounded-lg bg-yellow-900/30",children:u.jsxs("p",{className:"text-sm",children:[u.jsx("span",{className:s.qualification.isQualified?"text-green-400":"text-red-400",children:s.qualification.isQualified?"✅ Qualified":"❌ Not Qualified"}),s.qualification.isRetirementEligible&&u.jsx("span",{className:"ml-4 text-green-400",children:"🎂 Retirement Eligible"})]})})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"🏅 Leaderboard – Qualified Members"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:m?u.jsx("div",{className:"text-center text-yellow-300 py-4",children:"Loading leaderboard..."}):c.length>0?(n?c:c.slice(0,5)).map(A=>u.jsxs("div",{className:"flex justify-between px-4 py-2 border-b border-yellow-900",children:[u.jsxs("span",{children:[A.rank,"."]}),u.jsxs("span",{children:[A.name," – ",A.flag," ",A.country]}),u.jsx("span",{className:A.isQualified?"text-green-400":"text-yellow-400",children:A.rewardClaimed?`AED ${A.totalPoints?.toLocaleString()||0}`:A.status})]},A.rank)):u.jsx("div",{className:"text-center text-yellow-300 py-4",children:"No leaderboard data available"})}),u.jsxs("p",{className:"mt-2 text-sm italic",children:["Total Qualified: ",u.jsxs("b",{children:[c.filter(A=>A.isQualified).length," Members"]})]}),c.length>5&&u.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>a(!n),children:n?"Show Less":"View All"})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg mb-5",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsx("p",{className:"italic",children:"💡 Tip: Boost your TGP by mentoring active leaders in your team."})})]})}const JC=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[s.toFixed(0),"% Achieved"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function eD(){const e=Zt(),n=Xe(Nr),[a,s]=X.useState(null),[l,c]=X.useState([]),[d,f]=X.useState([]),[h,m]=X.useState(!0),[g,x]=X.useState(!0),[w,T]=X.useState(!0),k=async()=>{try{const C=ze.getToken();if(!C||!n?._id)return;const L=await fetch(`${tn}${at.REGIONAL_PROGRESS}/${n._id}`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const I=await L.json();I.success&&s(I.data)}}catch(C){console.error("Error fetching progress data:",C),nt("Failed to load progress data")}finally{m(!1)}},S=async()=>{try{const C=ze.getToken();if(!C)return;const L=await fetch(`${tn}${at.REGIONAL_LEADERBOARD}?page=1&limit=20`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const I=await L.json();I.success&&c(I.data.leaderboard||[])}}catch(C){console.error("Error fetching leaderboard data:",C),nt("Failed to load leaderboard data")}finally{x(!1)}},A=async()=>{try{const C=ze.getToken();if(!C)return;const L=await fetch(`${tn}${at.REGIONAL_GLOBAL_AMBASSADORS}?page=1&limit=20`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const I=await L.json();I.success&&f(I.data.ambassadors||[])}}catch(C){console.error("Error fetching global ambassadors:",C),nt("Failed to load global ambassadors")}finally{T(!1)}};X.useEffect(()=>{n?._id&&(k(),S(),A())},[n?._id]);const E=async()=>{const C=prompt("Enter your new country:");if(!(!C||!n?._id))try{const L=ze.getToken();if(!L)return;(await fetch(`${tn}${at.REGIONAL_COUNTRY_UPDATE}`,{method:"POST",headers:{Authorization:`Bearer ${L}`,"Content-Type":"application/json"},body:JSON.stringify({userId:n._id,newCountry:C})})).ok?alert("Country update request sent to admin for verification."):nt("Failed to send country update request")}catch(L){console.error("Error updating country:",L),nt("Failed to send country update request")}};return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 mb-10 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold my-6",children:"🏆 Regional Ambassador Program"}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Total Earnings"}),h?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading earnings..."})]}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-lg",children:["Regional Shares: ",u.jsxs("span",{className:"font-bold",children:["$",a?.totalEarnings?.regionalShares||"0.00"]})]}),u.jsxs("div",{className:"flex items-center mt-4",children:[u.jsx("img",{src:"https://placehold.co/40x40",alt:"Title Holder",className:"w-10 h-10 rounded-full mr-3"}),u.jsxs("div",{className:"flex items-center",children:[u.jsx("span",{className:"text-2xl mr-2",children:a?.titleHolder?.flag||"🌍"}),u.jsxs("div",{children:[u.jsxs("p",{className:"font-bold",children:["Title Holder: ",a?.titleHolder?.name||"N/A"]}),u.jsx("p",{className:"text-sm text-gray-300",children:"Global"})]})]}),u.jsx("button",{className:"ml-4 text-sm bg-yellow-700 text-yellow-300 px-2 py-1 rounded-full",onClick:()=>alert("Total Earnings Info: Regional shares based on performance metrics."),children:"ℹ Info"})]})]})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"👤 Your Progress"}),h?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading progress..."})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center mb-2",children:[u.jsxs("p",{className:"text-lg flex items-center",children:["Your Current Rank: ",a?.yourProgress?.currentRank?.name||"N/A"," (Level ",a?.yourProgress?.currentRank?.level||"N/A",")"," ",u.jsx("span",{className:"text-2xl ml-2",children:"🌍"})]}),u.jsx("button",{className:"ml-4 text-sm bg-yellow-700 text-yellow-300 px-2 py-1 rounded-full",onClick:E,children:"🔄 Update Country"})]}),u.jsxs("p",{className:"text-lg mb-2",children:["Victory Rank: ",a?.yourProgress?.victoryRank||"N/A"]}),u.jsx(JC,{label:`Progress (${a?.yourProgress?.progress?.achieved||"0% Achieved"})`,value:a?.yourProgress?.progress?.percentage||0,max:100}),a?.yourProgress?.nextRank&&u.jsxs("p",{className:"text-sm text-gray-300 mt-2",children:["Next Rank: ",a.yourProgress.nextRank.name," (Requirement: ",a.yourProgress.nextRank.requirement,")"]})]})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"🏁 Regional Race Leaderboard"}),g?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading leaderboard..."})]}):u.jsx(u.Fragment,{children:u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full text-left",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-yellow-700",children:[u.jsx("th",{className:"py-2 px-4",children:"#"}),u.jsx("th",{className:"py-2 px-4",children:"Name"}),u.jsx("th",{className:"py-2 px-4",children:"Username"}),u.jsx("th",{className:"py-2 px-4",children:"Rank"}),u.jsx("th",{className:"py-2 px-4",children:"Points"})]})}),u.jsx("tbody",{children:l.length>0?l.map((C,L)=>u.jsxs("tr",{className:"border-b border-yellow-700 last:border-none",children:[u.jsx("td",{className:"py-2 px-4",children:C.rank}),u.jsxs("td",{className:"py-2 px-4 flex items-center",children:[u.jsx("img",{src:"https://placehold.co/40x40",alt:C.name,className:"w-8 h-8 rounded-full mr-2"}),C.name," ",u.jsx("span",{className:"text-xl ml-2",children:C.flag})]}),u.jsx("td",{className:"py-2 px-4",children:C.username}),u.jsxs("td",{className:"py-2 px-4 flex items-center",children:[u.jsx("span",{className:"mr-1",children:C.rankIcon}),C.crrRank]}),u.jsx("td",{className:"py-2 px-4",children:C.totalPoints})]},L)):u.jsx("tr",{children:u.jsx("td",{colSpan:"5",className:"py-4 text-center text-gray-400",children:"No leaderboard data available"})})})]})})})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"🌍 Global Ambassadors"}),w?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading ambassadors..."})]}):u.jsx("div",{className:"overflow-x-auto",children:u.jsx("div",{className:"flex space-x-4 pb-4",children:d.length>0?d.map((C,L)=>u.jsxs("div",{className:"flex-none w-64 p-4 rounded-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.9)"},children:[u.jsx("img",{src:C.profilePicture||"https://placehold.co/40x40",alt:C.name,className:"w-10 h-10 rounded-full mb-2"}),u.jsx("p",{className:"font-bold",children:C.name}),u.jsxs("p",{className:"text-sm text-gray-400",children:["@",C.username]}),u.jsxs("div",{className:"flex items-center mt-1",children:[u.jsx("span",{className:"text-lg mr-2",children:C.flag}),u.jsx("p",{className:"text-sm text-gray-300",children:C.country||"Global"})]}),u.jsxs("div",{className:"flex items-center mt-1",children:[u.jsx("span",{className:"mr-1",children:C.rankIcon}),u.jsx("p",{className:"text-sm",children:C.rank})]}),u.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Earnings: $",C.totalEarnings||0]}),C.isPermanent&&u.jsx("span",{className:"inline-block bg-yellow-600 text-yellow-200 text-xs px-2 py-1 rounded mt-2",children:"Permanent"})]},L)):u.jsx("div",{className:"w-full text-center py-8 text-gray-400",children:"No global ambassadors available"})})})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsx("p",{className:"italic",children:"💡 Tip: Ambassadors play a key role in expanding our network. Keep pushing to climb the ranks!"})})]})}const yv=["/login","/signup","/forgot-password","/reset-password"];function tD(){const e=In(),n=Mn(),a=Xe(c1),s=Xe(mm),l=Xe(BE),c=yv.includes(n.pathname);return X.useEffect(()=>{console.log("App - Initializing session sync"),e(Tx()),console.log("App - Session info:",ze.getSessionInfo())},[e]),X.useEffect(()=>{a&&!s?(console.log("App - Token exists but not authenticated, checking current user"),e(Cs())):console.log(a&&s?"App - User is already authenticated":"App - No token found, user not authenticated")},[e,a,s]),X.useEffect(()=>{const d=f=>{console.log("App - Session cleared event received:",f.detail),e(Tx()),s&&!yv.includes(n.pathname)&&(console.log("App - Redirecting to login due to session clear"),window.location.href="/login")};return window.addEventListener("sessionCleared",d),()=>window.removeEventListener("sessionCleared",d)},[e,s,n.pathname]),X.useEffect(()=>{console.log("App - Route changed to:",n.pathname),console.log("App - Should hide navbar/footer:",c),console.log("App - signupEmail in Redux:",l),console.log("App - signupEmail in localStorage:",localStorage.getItem("signup_email"))},[n.pathname,c,l]),u.jsxs("div",{className:"App bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[!c&&u.jsx(UN,{}),u.jsxs(XA,{children:[u.jsx(St,{path:"/",element:u.jsx(p_,{})})," ",u.jsx(St,{path:"/about",element:u.jsx(w_,{})}),u.jsx(St,{path:"/services",element:u.jsx(I_,{})}),u.jsx(St,{path:"/team",element:u.jsx(W_,{})}),u.jsx(St,{path:"/contact",element:u.jsx($_,{})}),u.jsx(St,{path:"/faqs",element:u.jsx(i5,{})}),u.jsx(St,{path:"/login",element:u.jsx(l5,{})}),u.jsx(St,{path:"/signup",element:u.jsx(c5,{})}),u.jsx(St,{path:"/forgot-password",element:l||localStorage.getItem("signup_email")?u.jsx(Fn,{to:"/reset-password",replace:!0}):u.jsx(u5,{})}),u.jsx(St,{path:"/reset-password",element:u.jsx(d5,{})}),u.jsx(St,{path:"/mlm",element:s?u.jsx(h5,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/ddr",element:s?u.jsx(p5,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/crr",element:s?u.jsx(g5,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/bbr",element:s?u.jsx($C,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/hlr",element:s?u.jsx(QC,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/RegionalAmbassador",element:s?u.jsx(eD,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/tree",element:s?u.jsx(rb,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/user-tree/:userId",element:s?u.jsx(rb,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"/profile",element:s?u.jsx(m5,{}):u.jsx(Fn,{to:"/login",replace:!0})}),u.jsx(St,{path:"*",element:u.jsx(Fn,{to:"/",replace:!0})})]}),!c&&u.jsx(QN,{})]})}function nD(){return u.jsx(yN,{children:u.jsx(NN,{children:u.jsx(tD,{})})})}const rD=()=>{const e=el.get("auth_token"),n=localStorage.getItem("auth_token"),a=ze.getToken();if(console.log("=== TOKEN DEBUG INFO ==="),console.log("Cookie token:",e?"exists":"none"),console.log("LocalStorage token:",n?"exists":"none"),console.log("SessionManager token:",a?"exists":"none"),a){const s=ru(a),l=l1(s);console.log("Token length:",a.length),console.log("Token starts with:",a.substring(0,20)+"..."),console.log("Cleaned token:",s),console.log("Token is valid:",l);try{const c=s.split(".");if(console.log("JWT parts:",c.length),c.length===3){const d=JSON.parse(atob(c[0].replace(/-/g,"+").replace(/_/g,"/"))),f=JSON.parse(atob(c[1].replace(/-/g,"+").replace(/_/g,"/")));console.log("JWT Header:",d),console.log("JWT Payload:",f),console.log("Token expires at:",new Date(f.exp*1e3)),console.log("Token issued at:",new Date(f.iat*1e3)),console.log("Token is expired:",Date.now()>f.exp*1e3)}}catch(c){console.log("Error decoding JWT:",c.message)}}console.log("========================")},aD=()=>{const e=ze.getToken();console.log("=== LOGOUT REQUEST TEST ==="),console.log("Token to send:",e),console.log("Authorization header:",`Bearer ${e}`),console.log("===========================")},sD=async()=>{const e=ze.getToken();console.log("=== CURRENT USER ENDPOINT TEST ===");try{const n=await fetch("https://api.aaogobackend.xyz/api/drivers/get-current-user",{method:"GET",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}});console.log("Response status:",n.status),console.log("Response headers:",Object.fromEntries(n.headers.entries()));const a=await n.json();return console.log("Response data:",a),{status:n.status,data:a}}catch(n){return console.error("Fetch error:",n),{error:n.message}}},iD=async()=>{const e=ze.getToken();console.log("=== REFERRAL TREE ENDPOINT TEST ===");try{const n=ru(e),a=await fetch("https://api.aaogobackend.xyz/api/user/referral-tree",{method:"GET",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}});console.log("Response status:",a.status),console.log("Response headers:",Object.fromEntries(a.headers.entries()));const s=await a.json();return console.log("Response data:",s),{status:a.status,data:s}}catch(n){return console.error("Fetch error:",n),{error:n.message}}},lD=()=>{console.log("=== MANUAL LOGOUT ==="),ze.clearSession(),console.log("Session cleared"),window.location.reload()};typeof window<"u"&&(window.debugTokenStatus=rD,window.testLogoutRequest=aD,window.testCurrentUserEndpoint=sD,window.testReferralTreeEndpoint=iD,window.manualLogout=lD);t4.createRoot(document.getElementById("root")).render(u.jsx(X.StrictMode,{children:u.jsxs(x4,{store:nA,children:[u.jsx(nD,{}),u.jsx(fj,{position:"top-right",toastOptions:{duration:4e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,iconTheme:{primary:"#4ade80",secondary:"#fff"}},error:{duration:4e3,iconTheme:{primary:"#ef4444",secondary:"#fff"}}}})]})}));