const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-3E2Mx5J3.js","assets/check-DNvq86-2.js","assets/Register-boNCZJue.js","assets/select-nrwtAqzc.js","assets/Landing-ClBCm9Vd.js","assets/CourseCard-BlcG-iJP.js","assets/Courses-cN09QA5x.js","assets/pagination-Bb4EKQd6.js","assets/Books-DDyoe4Wt.js","assets/AccountSettings-BfC_o4Uu.js","assets/MyCourses-Du6-9x6l.js"])))=>i.map(i=>d[i]);
function Fj(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function Pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tK(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var F3={exports:{}},d1={};/**
 * @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 zd;function Bj(){if(zd)return d1;zd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,l){var u=null;if(l!==void 0&&(u=""+l),s.key!==void 0&&(u=""+s.key),"key"in s){l={};for(var d in s)d!=="key"&&(l[d]=s[d])}else l=s;return s=l.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:l}}return d1.Fragment=t,d1.jsx=n,d1.jsxs=n,d1}var Fd;function Uj(){return Fd||(Fd=1,F3.exports=Bj()),F3.exports}var c=Uj(),B3={exports:{}},ke={};/**
 * @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 Bd;function Hj(){if(Bd)return ke;Bd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),C=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=C&&R[C]||R["@@iterator"],typeof R=="function"?R:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function E(R,Z,F){this.props=R,this.context=Z,this.refs=S,this.updater=F||w}E.prototype.isReactComponent={},E.prototype.setState=function(R,Z){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,Z,"setState")},E.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function j(){}j.prototype=E.prototype;function T(R,Z,F){this.props=R,this.context=Z,this.refs=S,this.updater=F||w}var L=T.prototype=new j;L.constructor=T,b(L,E.prototype),L.isPureReactComponent=!0;var D=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function O(R,Z,F,G,ee,se){return F=se.ref,{$$typeof:e,type:R,key:Z,ref:F!==void 0?F:null,props:se}}function z(R,Z){return O(R.type,Z,void 0,void 0,void 0,R.props)}function I(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function ne(R){var Z={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(F){return Z[F]})}var Q=/\/+/g;function le(R,Z){return typeof R=="object"&&R!==null&&R.key!=null?ne(""+R.key):Z.toString(36)}function he(){}function ie(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(he,he):(R.status="pending",R.then(function(Z){R.status==="pending"&&(R.status="fulfilled",R.value=Z)},function(Z){R.status==="pending"&&(R.status="rejected",R.reason=Z)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function J(R,Z,F,G,ee){var se=typeof R;(se==="undefined"||se==="boolean")&&(R=null);var ce=!1;if(R===null)ce=!0;else switch(se){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(R.$$typeof){case e:case t:ce=!0;break;case p:return ce=R._init,J(ce(R._payload),Z,F,G,ee)}}if(ce)return ee=ee(R),ce=G===""?"."+le(R,0):G,D(ee)?(F="",ce!=null&&(F=ce.replace(Q,"$&/")+"/"),J(ee,Z,F,"",function(be){return be})):ee!=null&&(I(ee)&&(ee=z(ee,F+(ee.key==null||R&&R.key===ee.key?"":(""+ee.key).replace(Q,"$&/")+"/")+ce)),Z.push(ee)),1;ce=0;var de=G===""?".":G+":";if(D(R))for(var ye=0;ye<R.length;ye++)G=R[ye],se=de+le(G,ye),ce+=J(G,Z,F,se,ee);else if(ye=v(R),typeof ye=="function")for(R=ye.call(R),ye=0;!(G=R.next()).done;)G=G.value,se=de+le(G,ye++),ce+=J(G,Z,F,se,ee);else if(se==="object"){if(typeof R.then=="function")return J(ie(R),Z,F,G,ee);throw Z=String(R),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ce}function _(R,Z,F){if(R==null)return R;var G=[],ee=0;return J(R,G,"","",function(se){return Z.call(F,se,ee++)}),G}function U(R){if(R._status===-1){var Z=R._result;Z=Z(),Z.then(function(F){(R._status===0||R._status===-1)&&(R._status=1,R._result=F)},function(F){(R._status===0||R._status===-1)&&(R._status=2,R._result=F)}),R._status===-1&&(R._status=0,R._result=Z)}if(R._status===1)return R._result.default;throw R._result}var V=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function q(){}return ke.Children={map:_,forEach:function(R,Z,F){_(R,function(){Z.apply(this,arguments)},F)},count:function(R){var Z=0;return _(R,function(){Z++}),Z},toArray:function(R){return _(R,function(Z){return Z})||[]},only:function(R){if(!I(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},ke.Component=E,ke.Fragment=n,ke.Profiler=s,ke.PureComponent=T,ke.StrictMode=i,ke.Suspense=h,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,ke.__COMPILER_RUNTIME={__proto__:null,c:function(R){return M.H.useMemoCache(R)}},ke.cache=function(R){return function(){return R.apply(null,arguments)}},ke.cloneElement=function(R,Z,F){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var G=b({},R.props),ee=R.key,se=void 0;if(Z!=null)for(ce in Z.ref!==void 0&&(se=void 0),Z.key!==void 0&&(ee=""+Z.key),Z)!k.call(Z,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&Z.ref===void 0||(G[ce]=Z[ce]);var ce=arguments.length-2;if(ce===1)G.children=F;else if(1<ce){for(var de=Array(ce),ye=0;ye<ce;ye++)de[ye]=arguments[ye+2];G.children=de}return O(R.type,ee,void 0,void 0,se,G)},ke.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:l,_context:R},R},ke.createElement=function(R,Z,F){var G,ee={},se=null;if(Z!=null)for(G in Z.key!==void 0&&(se=""+Z.key),Z)k.call(Z,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(ee[G]=Z[G]);var ce=arguments.length-2;if(ce===1)ee.children=F;else if(1<ce){for(var de=Array(ce),ye=0;ye<ce;ye++)de[ye]=arguments[ye+2];ee.children=de}if(R&&R.defaultProps)for(G in ce=R.defaultProps,ce)ee[G]===void 0&&(ee[G]=ce[G]);return O(R,se,void 0,void 0,null,ee)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(R){return{$$typeof:d,render:R}},ke.isValidElement=I,ke.lazy=function(R){return{$$typeof:p,_payload:{_status:-1,_result:R},_init:U}},ke.memo=function(R,Z){return{$$typeof:m,type:R,compare:Z===void 0?null:Z}},ke.startTransition=function(R){var Z=M.T,F={};M.T=F;try{var G=R(),ee=M.S;ee!==null&&ee(F,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(q,V)}catch(se){V(se)}finally{M.T=Z}},ke.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},ke.use=function(R){return M.H.use(R)},ke.useActionState=function(R,Z,F){return M.H.useActionState(R,Z,F)},ke.useCallback=function(R,Z){return M.H.useCallback(R,Z)},ke.useContext=function(R){return M.H.useContext(R)},ke.useDebugValue=function(){},ke.useDeferredValue=function(R,Z){return M.H.useDeferredValue(R,Z)},ke.useEffect=function(R,Z,F){var G=M.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return G.useEffect(R,Z)},ke.useId=function(){return M.H.useId()},ke.useImperativeHandle=function(R,Z,F){return M.H.useImperativeHandle(R,Z,F)},ke.useInsertionEffect=function(R,Z){return M.H.useInsertionEffect(R,Z)},ke.useLayoutEffect=function(R,Z){return M.H.useLayoutEffect(R,Z)},ke.useMemo=function(R,Z){return M.H.useMemo(R,Z)},ke.useOptimistic=function(R,Z){return M.H.useOptimistic(R,Z)},ke.useReducer=function(R,Z,F){return M.H.useReducer(R,Z,F)},ke.useRef=function(R){return M.H.useRef(R)},ke.useState=function(R){return M.H.useState(R)},ke.useSyncExternalStore=function(R,Z,F){return M.H.useSyncExternalStore(R,Z,F)},ke.useTransition=function(){return M.H.useTransition()},ke.version="19.1.0",ke}var Ud;function Ic(){return Ud||(Ud=1,B3.exports=Hj()),B3.exports}var y=Ic();const ue=Pi(y),Og=Fj({__proto__:null,default:ue},[y]);var U3={exports:{}},h1={},H3={exports:{}},I3={};/**
 * @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 Hd;function Ij(){return Hd||(Hd=1,function(e){function t(_,U){var V=_.length;_.push(U);e:for(;0<V;){var q=V-1>>>1,R=_[q];if(0<s(R,U))_[q]=U,_[V]=R,V=q;else break e}}function n(_){return _.length===0?null:_[0]}function i(_){if(_.length===0)return null;var U=_[0],V=_.pop();if(V!==U){_[0]=V;e:for(var q=0,R=_.length,Z=R>>>1;q<Z;){var F=2*(q+1)-1,G=_[F],ee=F+1,se=_[ee];if(0>s(G,V))ee<R&&0>s(se,G)?(_[q]=se,_[ee]=V,q=ee):(_[q]=G,_[F]=V,q=F);else if(ee<R&&0>s(se,V))_[q]=se,_[ee]=V,q=ee;else break e}}return U}function s(_,U){var V=_.sortIndex-U.sortIndex;return V!==0?V:_.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var h=[],m=[],p=1,C=null,v=3,w=!1,b=!1,S=!1,E=!1,j=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function D(_){for(var U=n(m);U!==null;){if(U.callback===null)i(m);else if(U.startTime<=_)i(m),U.sortIndex=U.expirationTime,t(h,U);else break;U=n(m)}}function M(_){if(S=!1,D(_),!b)if(n(h)!==null)b=!0,k||(k=!0,le());else{var U=n(m);U!==null&&J(M,U.startTime-_)}}var k=!1,O=-1,z=5,I=-1;function ne(){return E?!0:!(e.unstable_now()-I<z)}function Q(){if(E=!1,k){var _=e.unstable_now();I=_;var U=!0;try{e:{b=!1,S&&(S=!1,T(O),O=-1),w=!0;var V=v;try{t:{for(D(_),C=n(h);C!==null&&!(C.expirationTime>_&&ne());){var q=C.callback;if(typeof q=="function"){C.callback=null,v=C.priorityLevel;var R=q(C.expirationTime<=_);if(_=e.unstable_now(),typeof R=="function"){C.callback=R,D(_),U=!0;break t}C===n(h)&&i(h),D(_)}else i(h);C=n(h)}if(C!==null)U=!0;else{var Z=n(m);Z!==null&&J(M,Z.startTime-_),U=!1}}break e}finally{C=null,v=V,w=!1}U=void 0}}finally{U?le():k=!1}}}var le;if(typeof L=="function")le=function(){L(Q)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ie=he.port2;he.port1.onmessage=Q,le=function(){ie.postMessage(null)}}else le=function(){j(Q,0)};function J(_,U){O=j(function(){_(e.unstable_now())},U)}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(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var U=3;break;default:U=v}var V=v;v=U;try{return _()}finally{v=V}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(_,U){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=v;v=_;try{return U()}finally{v=V}},e.unstable_scheduleCallback=function(_,U,V){var q=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?q+V:q):V=q,_){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=V+R,_={id:p++,callback:U,priorityLevel:_,startTime:V,expirationTime:R,sortIndex:-1},V>q?(_.sortIndex=V,t(m,_),n(h)===null&&_===n(m)&&(S?(T(O),O=-1):S=!0,J(M,V-q))):(_.sortIndex=R,t(h,_),b||w||(b=!0,k||(k=!0,le()))),_},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(_){var U=v;return function(){var V=v;v=U;try{return _.apply(this,arguments)}finally{v=V}}}}(I3)),I3}var Id;function Zj(){return Id||(Id=1,H3.exports=Ij()),H3.exports}var Z3={exports:{}},Gt={};/**
 * @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 Zd;function Gj(){if(Zd)return Gt;Zd=1;var e=Ic();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)m+="&args[]="+encodeURIComponent(arguments[p])}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 n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(h,m,p){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:C==null?null:""+C,children:h,containerInfo:m,implementation:p}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Gt.createPortal=function(h,m){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return l(h,m,null,p)},Gt.flushSync=function(h){var m=u.T,p=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=m,i.p=p,i.d.f()}},Gt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(h,m))},Gt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Gt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var p=m.as,C=d(p,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;p==="style"?i.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:C,integrity:v,fetchPriority:w}):p==="script"&&i.d.X(h,{crossOrigin:C,integrity:v,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Gt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var p=d(m.as,m.crossOrigin);i.d.M(h,{crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(h)},Gt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var p=m.as,C=d(p,m.crossOrigin);i.d.L(h,p,{crossOrigin:C,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})}},Gt.preloadModule=function(h,m){if(typeof h=="string")if(m){var p=d(m.as,m.crossOrigin);i.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(h)},Gt.requestFormReset=function(h){i.d.r(h)},Gt.unstable_batchedUpdates=function(h,m){return h(m)},Gt.useFormState=function(h,m,p){return u.H.useFormState(h,m,p)},Gt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Gt.version="19.1.0",Gt}var Gd;function _g(){if(Gd)return Z3.exports;Gd=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(t){console.error(t)}}return e(),Z3.exports=Gj(),Z3.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 Yd;function Yj(){if(Yd)return h1;Yd=1;var e=Zj(),t=Ic(),n=_g();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var a=r,o=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(o=a.return),r=a.return;while(r)}return a.tag===3?o:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(l(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=l(r),a===null)throw Error(i(188));return a!==r?null:r}for(var o=r,f=a;;){var g=o.return;if(g===null)break;var x=g.alternate;if(x===null){if(f=g.return,f!==null){o=f;continue}break}if(g.child===x.child){for(x=g.child;x;){if(x===o)return d(g),r;if(x===f)return d(g),a;x=x.sibling}throw Error(i(188))}if(o.return!==f.return)o=g,f=x;else{for(var A=!1,N=g.child;N;){if(N===o){A=!0,o=g,f=x;break}if(N===f){A=!0,f=g,o=x;break}N=N.sibling}if(!A){for(N=x.child;N;){if(N===o){A=!0,o=x,f=g;break}if(N===f){A=!0,f=x,o=g;break}N=N.sibling}if(!A)throw Error(i(189))}}if(o.alternate!==f)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:a}function m(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=m(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,C=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),L=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function le(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var he=Symbol.for("react.client.reference");function ie(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===he?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case b:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case k:return"SuspenseList";case I:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case L:return(r.displayName||"Context")+".Provider";case T:return(r._context.displayName||"Context")+".Consumer";case D:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case O:return a=r.displayName||null,a!==null?a:ie(r.type)||"Memo";case z:a=r._payload,r=r._init;try{return ie(r(a))}catch{}}return null}var J=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},q=[],R=-1;function Z(r){return{current:r}}function F(r){0>R||(r.current=q[R],q[R]=null,R--)}function G(r,a){R++,q[R]=r.current,r.current=a}var ee=Z(null),se=Z(null),ce=Z(null),de=Z(null);function ye(r,a){switch(G(ce,a),G(se,r),G(ee,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?dd(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=dd(a),r=hd(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}F(ee),G(ee,r)}function be(){F(ee),F(se),F(ce)}function Ve(r){r.memoizedState!==null&&G(de,r);var a=ee.current,o=hd(a,r.type);a!==o&&(G(se,r),G(ee,o))}function lt(r){se.current===r&&(F(ee),F(se)),de.current===r&&(F(de),o1._currentValue=V)}var At=Object.prototype.hasOwnProperty,Vt=e.unstable_scheduleCallback,ei=e.unstable_cancelCallback,uo=e.unstable_shouldYield,fo=e.unstable_requestPaint,en=e.unstable_now,ho=e.unstable_getCurrentPriorityLevel,Hn=e.unstable_ImmediatePriority,Cl=e.unstable_UserBlockingPriority,za=e.unstable_NormalPriority,X=e.unstable_LowPriority,me=e.unstable_IdlePriority,ve=e.log,we=e.unstable_setDisableYieldValue,Le=null,Te=null;function ct(r){if(typeof ve=="function"&&we(r),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(Le,r)}catch{}}var dt=Math.clz32?Math.clz32:Mu,mo=Math.log,po=Math.LN2;function Mu(r){return r>>>=0,r===0?32:31-(mo(r)/po|0)|0}var Hi=256,Fa=4194304;function Ii(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vl(r,a,o){var f=r.pendingLanes;if(f===0)return 0;var g=0,x=r.suspendedLanes,A=r.pingedLanes;r=r.warmLanes;var N=f&134217727;return N!==0?(f=N&~x,f!==0?g=Ii(f):(A&=N,A!==0?g=Ii(A):o||(o=N&~r,o!==0&&(g=Ii(o))))):(N=f&~x,N!==0?g=Ii(N):A!==0?g=Ii(A):o||(o=f&~r,o!==0&&(g=Ii(o)))),g===0?0:a!==0&&a!==g&&(a&x)===0&&(x=g&-g,o=a&-a,x>=o||x===32&&(o&4194048)!==0)?a:g}function go(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function AS(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 W8(){var r=Hi;return Hi<<=1,(Hi&4194048)===0&&(Hi=256),r}function q8(){var r=Fa;return Fa<<=1,(Fa&62914560)===0&&(Fa=4194304),r}function Lu(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function Co(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function MS(r,a,o,f,g,x){var A=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var N=r.entanglements,P=r.expirationTimes,$=r.hiddenUpdates;for(o=A&~o;0<o;){var re=31-dt(o),oe=1<<re;N[re]=0,P[re]=-1;var W=$[re];if(W!==null)for($[re]=null,re=0;re<W.length;re++){var K=W[re];K!==null&&(K.lane&=-536870913)}o&=~oe}f!==0&&K8(r,f,0),x!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=x&~(A&~a))}function K8(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var f=31-dt(a);r.entangledLanes|=a,r.entanglements[f]=r.entanglements[f]|1073741824|o&4194090}function Q8(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var f=31-dt(o),g=1<<f;g&a|r[f]&a&&(r[f]|=a),o&=~g}}function Tu(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Nu(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function X8(){var r=U.p;return r!==0?r:(r=window.event,r===void 0?32:Dd(r.type))}function LS(r,a){var o=U.p;try{return U.p=r,a()}finally{U.p=o}}var ti=Math.random().toString(36).slice(2),It="__reactFiber$"+ti,tn="__reactProps$"+ti,Ba="__reactContainer$"+ti,Ru="__reactEvents$"+ti,TS="__reactListeners$"+ti,NS="__reactHandles$"+ti,J8="__reactResources$"+ti,vo="__reactMarker$"+ti;function Du(r){delete r[It],delete r[tn],delete r[Ru],delete r[TS],delete r[NS]}function Ua(r){var a=r[It];if(a)return a;for(var o=r.parentNode;o;){if(a=o[Ba]||o[It]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=Cd(r);r!==null;){if(o=r[It])return o;r=Cd(r)}return a}r=o,o=r.parentNode}return null}function Ha(r){if(r=r[It]||r[Ba]){var a=r.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return r}return null}function xo(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ia(r){var a=r[J8];return a||(a=r[J8]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Dt(r){r[vo]=!0}var e5=new Set,t5={};function Zi(r,a){Za(r,a),Za(r+"Capture",a)}function Za(r,a){for(t5[r]=a,r=0;r<a.length;r++)e5.add(a[r])}var RS=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]*$"),n5={},r5={};function DS(r){return At.call(r5,r)?!0:At.call(n5,r)?!1:RS.test(r)?r5[r]=!0:(n5[r]=!0,!1)}function xl(r,a,o){if(DS(a))if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+o)}}function yl(r,a,o){if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+o)}}function yr(r,a,o,f){if(f===null)r.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(a,o,""+f)}}var ku,i5;function Ga(r){if(ku===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);ku=a&&a[1]||"",i5=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ku+r+i5}var Ou=!1;function _u(r,a){if(!r||Ou)return"";Ou=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(K){var W=K}Reflect.construct(r,[],oe)}else{try{oe.call()}catch(K){W=K}r.call(oe.prototype)}}else{try{throw Error()}catch(K){W=K}(oe=r())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(K){if(K&&W&&typeof K.stack=="string")return[K.stack,W.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=f.DetermineComponentFrameRoot(),A=x[0],N=x[1];if(A&&N){var P=A.split(`
`),$=N.split(`
`);for(g=f=0;f<P.length&&!P[f].includes("DetermineComponentFrameRoot");)f++;for(;g<$.length&&!$[g].includes("DetermineComponentFrameRoot");)g++;if(f===P.length||g===$.length)for(f=P.length-1,g=$.length-1;1<=f&&0<=g&&P[f]!==$[g];)g--;for(;1<=f&&0<=g;f--,g--)if(P[f]!==$[g]){if(f!==1||g!==1)do if(f--,g--,0>g||P[f]!==$[g]){var re=`
`+P[f].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),re}while(1<=f&&0<=g);break}}}finally{Ou=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Ga(o):""}function kS(r){switch(r.tag){case 26:case 27:case 5:return Ga(r.type);case 16:return Ga("Lazy");case 13:return Ga("Suspense");case 19:return Ga("SuspenseList");case 0:case 15:return _u(r.type,!1);case 11:return _u(r.type.render,!1);case 1:return _u(r.type,!0);case 31:return Ga("Activity");default:return""}}function a5(r){try{var a="";do a+=kS(r),r=r.return;while(r);return a}catch(o){return`
Error generating stack: `+o.message+`
`+o.stack}}function En(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function s5(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function OS(r){var a=s5(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),f=""+r[a];if(!r.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var g=o.get,x=o.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(A){f=""+A,x.call(this,A)}}),Object.defineProperty(r,a,{enumerable:o.enumerable}),{getValue:function(){return f},setValue:function(A){f=""+A},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function bl(r){r._valueTracker||(r._valueTracker=OS(r))}function o5(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),f="";return r&&(f=s5(r)?r.checked?"true":"false":r.value),r=f,r!==o?(a.setValue(r),!0):!1}function wl(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var _S=/[\n"\\]/g;function jn(r){return r.replace(_S,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Pu(r,a,o,f,g,x,A,N){r.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.type=A:r.removeAttribute("type"),a!=null?A==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+En(a)):r.value!==""+En(a)&&(r.value=""+En(a)):A!=="submit"&&A!=="reset"||r.removeAttribute("value"),a!=null?Vu(r,A,En(a)):o!=null?Vu(r,A,En(o)):f!=null&&r.removeAttribute("value"),g==null&&x!=null&&(r.defaultChecked=!!x),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?r.name=""+En(N):r.removeAttribute("name")}function l5(r,a,o,f,g,x,A,N){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.type=x),a!=null||o!=null){if(!(x!=="submit"&&x!=="reset"||a!=null))return;o=o!=null?""+En(o):"",a=a!=null?""+En(a):o,N||a===r.value||(r.value=a),r.defaultValue=a}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=N?r.checked:!!f,r.defaultChecked=!!f,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(r.name=A)}function Vu(r,a,o){a==="number"&&wl(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function Ya(r,a,o,f){if(r=r.options,a){a={};for(var g=0;g<o.length;g++)a["$"+o[g]]=!0;for(o=0;o<r.length;o++)g=a.hasOwnProperty("$"+r[o].value),r[o].selected!==g&&(r[o].selected=g),g&&f&&(r[o].defaultSelected=!0)}else{for(o=""+En(o),a=null,g=0;g<r.length;g++){if(r[g].value===o){r[g].selected=!0,f&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function c5(r,a,o){if(a!=null&&(a=""+En(a),a!==r.value&&(r.value=a),o==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=o!=null?""+En(o):""}function u5(r,a,o,f){if(a==null){if(f!=null){if(o!=null)throw Error(i(92));if(J(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),a=o}o=En(a),r.defaultValue=o,f=r.textContent,f===o&&f!==""&&f!==null&&(r.value=f)}function $a(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var PS=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 f5(r,a,o){var f=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?f?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":f?r.setProperty(a,o):typeof o!="number"||o===0||PS.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function d5(r,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,o!=null){for(var f in o)!o.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="");for(var g in a)f=a[g],a.hasOwnProperty(g)&&o[g]!==f&&f5(r,g,f)}else for(var x in a)a.hasOwnProperty(x)&&f5(r,x,a[x])}function zu(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var VS=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"]]),zS=/^[\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 Sl(r){return zS.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var Fu=null;function Bu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Wa=null,qa=null;function h5(r){var a=Ha(r);if(a&&(r=a.stateNode)){var o=r[tn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Pu(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+jn(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var f=o[a];if(f!==r&&f.form===r.form){var g=f[tn]||null;if(!g)throw Error(i(90));Pu(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<o.length;a++)f=o[a],f.form===r.form&&o5(f)}break e;case"textarea":c5(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Ya(r,!!o.multiple,a,!1)}}}var Uu=!1;function m5(r,a,o){if(Uu)return r(a,o);Uu=!0;try{var f=r(a);return f}finally{if(Uu=!1,(Wa!==null||qa!==null)&&(l2(),Wa&&(a=Wa,r=qa,qa=Wa=null,h5(a),r)))for(a=0;a<r.length;a++)h5(r[a])}}function yo(r,a){var o=r.stateNode;if(o===null)return null;var f=o[tn]||null;if(f===null)return null;o=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(r=r.type,f=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!f;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hu=!1;if(br)try{var bo={};Object.defineProperty(bo,"passive",{get:function(){Hu=!0}}),window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,bo)}catch{Hu=!1}var ni=null,Iu=null,El=null;function p5(){if(El)return El;var r,a=Iu,o=a.length,f,g="value"in ni?ni.value:ni.textContent,x=g.length;for(r=0;r<o&&a[r]===g[r];r++);var A=o-r;for(f=1;f<=A&&a[o-f]===g[x-f];f++);return El=g.slice(r,1<f?1-f:void 0)}function jl(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Al(){return!0}function g5(){return!1}function nn(r){function a(o,f,g,x,A){this._reactName=o,this._targetInst=g,this.type=f,this.nativeEvent=x,this.target=A,this.currentTarget=null;for(var N in r)r.hasOwnProperty(N)&&(o=r[N],this[N]=o?o(x):x[N]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Al:g5,this.isPropagationStopped=g5,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),a}var Gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ml=nn(Gi),wo=p({},Gi,{view:0,detail:0}),FS=nn(wo),Zu,Gu,So,Ll=p({},wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$u,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==So&&(So&&r.type==="mousemove"?(Zu=r.screenX-So.screenX,Gu=r.screenY-So.screenY):Gu=Zu=0,So=r),Zu)},movementY:function(r){return"movementY"in r?r.movementY:Gu}}),C5=nn(Ll),BS=p({},Ll,{dataTransfer:0}),US=nn(BS),HS=p({},wo,{relatedTarget:0}),Yu=nn(HS),IS=p({},Gi,{animationName:0,elapsedTime:0,pseudoElement:0}),ZS=nn(IS),GS=p({},Gi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),YS=nn(GS),$S=p({},Gi,{data:0}),v5=nn($S),WS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qS={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"},KS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QS(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=KS[r])?!!a[r]:!1}function $u(){return QS}var XS=p({},wo,{key:function(r){if(r.key){var a=WS[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=jl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?qS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$u,charCode:function(r){return r.type==="keypress"?jl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?jl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),JS=nn(XS),eE=p({},Ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),x5=nn(eE),tE=p({},wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$u}),nE=nn(tE),rE=p({},Gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),iE=nn(rE),aE=p({},Ll,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),sE=nn(aE),oE=p({},Gi,{newState:0,oldState:0}),lE=nn(oE),cE=[9,13,27,32],Wu=br&&"CompositionEvent"in window,Eo=null;br&&"documentMode"in document&&(Eo=document.documentMode);var uE=br&&"TextEvent"in window&&!Eo,y5=br&&(!Wu||Eo&&8<Eo&&11>=Eo),b5=" ",w5=!1;function S5(r,a){switch(r){case"keyup":return cE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E5(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ka=!1;function fE(r,a){switch(r){case"compositionend":return E5(a);case"keypress":return a.which!==32?null:(w5=!0,b5);case"textInput":return r=a.data,r===b5&&w5?null:r;default:return null}}function dE(r,a){if(Ka)return r==="compositionend"||!Wu&&S5(r,a)?(r=p5(),El=Iu=ni=null,Ka=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return y5&&a.locale!=="ko"?null:a.data;default:return null}}var hE={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 j5(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!hE[r.type]:a==="textarea"}function A5(r,a,o,f){Wa?qa?qa.push(f):qa=[f]:Wa=f,a=m2(a,"onChange"),0<a.length&&(o=new Ml("onChange","change",null,o,f),r.push({event:o,listeners:a}))}var jo=null,Ao=null;function mE(r){od(r,0)}function Tl(r){var a=xo(r);if(o5(a))return r}function M5(r,a){if(r==="change")return a}var L5=!1;if(br){var qu;if(br){var Ku="oninput"in document;if(!Ku){var T5=document.createElement("div");T5.setAttribute("oninput","return;"),Ku=typeof T5.oninput=="function"}qu=Ku}else qu=!1;L5=qu&&(!document.documentMode||9<document.documentMode)}function N5(){jo&&(jo.detachEvent("onpropertychange",R5),Ao=jo=null)}function R5(r){if(r.propertyName==="value"&&Tl(Ao)){var a=[];A5(a,Ao,r,Bu(r)),m5(mE,a)}}function pE(r,a,o){r==="focusin"?(N5(),jo=a,Ao=o,jo.attachEvent("onpropertychange",R5)):r==="focusout"&&N5()}function gE(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Tl(Ao)}function CE(r,a){if(r==="click")return Tl(a)}function vE(r,a){if(r==="input"||r==="change")return Tl(a)}function xE(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var mn=typeof Object.is=="function"?Object.is:xE;function Mo(r,a){if(mn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var o=Object.keys(r),f=Object.keys(a);if(o.length!==f.length)return!1;for(f=0;f<o.length;f++){var g=o[f];if(!At.call(a,g)||!mn(r[g],a[g]))return!1}return!0}function D5(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function k5(r,a){var o=D5(r);r=0;for(var f;o;){if(o.nodeType===3){if(f=r+o.textContent.length,r<=a&&f>=a)return{node:o,offset:a-r};r=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=D5(o)}}function O5(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?O5(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function _5(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=wl(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=wl(r.document)}return a}function Qu(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var yE=br&&"documentMode"in document&&11>=document.documentMode,Qa=null,Xu=null,Lo=null,Ju=!1;function P5(r,a,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ju||Qa==null||Qa!==wl(f)||(f=Qa,"selectionStart"in f&&Qu(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Lo&&Mo(Lo,f)||(Lo=f,f=m2(Xu,"onSelect"),0<f.length&&(a=new Ml("onSelect","select",null,a,o),r.push({event:a,listeners:f}),a.target=Qa)))}function Yi(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var Xa={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionrun:Yi("Transition","TransitionRun"),transitionstart:Yi("Transition","TransitionStart"),transitioncancel:Yi("Transition","TransitionCancel"),transitionend:Yi("Transition","TransitionEnd")},e0={},V5={};br&&(V5=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function $i(r){if(e0[r])return e0[r];if(!Xa[r])return r;var a=Xa[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in V5)return e0[r]=a[o];return r}var z5=$i("animationend"),F5=$i("animationiteration"),B5=$i("animationstart"),bE=$i("transitionrun"),wE=$i("transitionstart"),SE=$i("transitioncancel"),U5=$i("transitionend"),H5=new Map,t0="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(" ");t0.push("scrollEnd");function In(r,a){H5.set(r,a),Zi(a,[r])}var I5=new WeakMap;function An(r,a){if(typeof r=="object"&&r!==null){var o=I5.get(r);return o!==void 0?o:(a={value:r,source:a,stack:a5(a)},I5.set(r,a),a)}return{value:r,source:a,stack:a5(a)}}var Mn=[],Ja=0,n0=0;function Nl(){for(var r=Ja,a=n0=Ja=0;a<r;){var o=Mn[a];Mn[a++]=null;var f=Mn[a];Mn[a++]=null;var g=Mn[a];Mn[a++]=null;var x=Mn[a];if(Mn[a++]=null,f!==null&&g!==null){var A=f.pending;A===null?g.next=g:(g.next=A.next,A.next=g),f.pending=g}x!==0&&Z5(o,g,x)}}function Rl(r,a,o,f){Mn[Ja++]=r,Mn[Ja++]=a,Mn[Ja++]=o,Mn[Ja++]=f,n0|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function r0(r,a,o,f){return Rl(r,a,o,f),Dl(r)}function es(r,a){return Rl(r,null,null,a),Dl(r)}function Z5(r,a,o){r.lanes|=o;var f=r.alternate;f!==null&&(f.lanes|=o);for(var g=!1,x=r.return;x!==null;)x.childLanes|=o,f=x.alternate,f!==null&&(f.childLanes|=o),x.tag===22&&(r=x.stateNode,r===null||r._visibility&1||(g=!0)),r=x,x=x.return;return r.tag===3?(x=r.stateNode,g&&a!==null&&(g=31-dt(o),r=x.hiddenUpdates,f=r[g],f===null?r[g]=[a]:f.push(a),a.lane=o|536870912),x):null}function Dl(r){if(50<Jo)throw Jo=0,c3=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var ts={};function EE(r,a,o,f){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(r,a,o,f){return new EE(r,a,o,f)}function i0(r){return r=r.prototype,!(!r||!r.isReactComponent)}function wr(r,a){var o=r.alternate;return o===null?(o=pn(r.tag,a,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=a,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,a=r.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function G5(r,a){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,a=o.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function kl(r,a,o,f,g,x){var A=0;if(f=r,typeof r=="function")i0(r)&&(A=1);else if(typeof r=="string")A=Aj(r,o,ee.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case I:return r=pn(31,o,a,g),r.elementType=I,r.lanes=x,r;case b:return Wi(o.children,g,x,a);case S:A=8,g|=24;break;case E:return r=pn(12,o,a,g|2),r.elementType=E,r.lanes=x,r;case M:return r=pn(13,o,a,g),r.elementType=M,r.lanes=x,r;case k:return r=pn(19,o,a,g),r.elementType=k,r.lanes=x,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case j:case L:A=10;break e;case T:A=9;break e;case D:A=11;break e;case O:A=14;break e;case z:A=16,f=null;break e}A=29,o=Error(i(130,r===null?"null":typeof r,"")),f=null}return a=pn(A,o,a,g),a.elementType=r,a.type=f,a.lanes=x,a}function Wi(r,a,o,f){return r=pn(7,r,f,a),r.lanes=o,r}function a0(r,a,o){return r=pn(6,r,null,a),r.lanes=o,r}function s0(r,a,o){return a=pn(4,r.children!==null?r.children:[],r.key,a),a.lanes=o,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var ns=[],rs=0,Ol=null,_l=0,Ln=[],Tn=0,qi=null,Sr=1,Er="";function Ki(r,a){ns[rs++]=_l,ns[rs++]=Ol,Ol=r,_l=a}function Y5(r,a,o){Ln[Tn++]=Sr,Ln[Tn++]=Er,Ln[Tn++]=qi,qi=r;var f=Sr;r=Er;var g=32-dt(f)-1;f&=~(1<<g),o+=1;var x=32-dt(a)+g;if(30<x){var A=g-g%5;x=(f&(1<<A)-1).toString(32),f>>=A,g-=A,Sr=1<<32-dt(a)+g|o<<g|f,Er=x+r}else Sr=1<<x|o<<g|f,Er=r}function o0(r){r.return!==null&&(Ki(r,1),Y5(r,1,0))}function l0(r){for(;r===Ol;)Ol=ns[--rs],ns[rs]=null,_l=ns[--rs],ns[rs]=null;for(;r===qi;)qi=Ln[--Tn],Ln[Tn]=null,Er=Ln[--Tn],Ln[Tn]=null,Sr=Ln[--Tn],Ln[Tn]=null}var qt=null,pt=null,Ye=!1,Qi=null,rr=!1,c0=Error(i(519));function Xi(r){var a=Error(i(418,""));throw Ro(An(a,r)),c0}function $5(r){var a=r.stateNode,o=r.type,f=r.memoizedProps;switch(a[It]=r,a[tn]=f,o){case"dialog":Fe("cancel",a),Fe("close",a);break;case"iframe":case"object":case"embed":Fe("load",a);break;case"video":case"audio":for(o=0;o<t1.length;o++)Fe(t1[o],a);break;case"source":Fe("error",a);break;case"img":case"image":case"link":Fe("error",a),Fe("load",a);break;case"details":Fe("toggle",a);break;case"input":Fe("invalid",a),l5(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),bl(a);break;case"select":Fe("invalid",a);break;case"textarea":Fe("invalid",a),u5(a,f.value,f.defaultValue,f.children),bl(a)}o=f.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||f.suppressHydrationWarning===!0||fd(a.textContent,o)?(f.popover!=null&&(Fe("beforetoggle",a),Fe("toggle",a)),f.onScroll!=null&&Fe("scroll",a),f.onScrollEnd!=null&&Fe("scrollend",a),f.onClick!=null&&(a.onclick=p2),a=!0):a=!1,a||Xi(r)}function W5(r){for(qt=r.return;qt;)switch(qt.tag){case 5:case 13:rr=!1;return;case 27:case 3:rr=!0;return;default:qt=qt.return}}function To(r){if(r!==qt)return!1;if(!Ye)return W5(r),Ye=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||j3(r.type,r.memoizedProps)),o=!o),o&&pt&&Xi(r),W5(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));e:{for(r=r.nextSibling,a=0;r;){if(r.nodeType===8)if(o=r.data,o==="/$"){if(a===0){pt=Gn(r.nextSibling);break e}a--}else o!=="$"&&o!=="$!"&&o!=="$?"||a++;r=r.nextSibling}pt=null}}else a===27?(a=pt,vi(r.type)?(r=T3,T3=null,pt=r):pt=a):pt=qt?Gn(r.stateNode.nextSibling):null;return!0}function No(){pt=qt=null,Ye=!1}function q5(){var r=Qi;return r!==null&&(sn===null?sn=r:sn.push.apply(sn,r),Qi=null),r}function Ro(r){Qi===null?Qi=[r]:Qi.push(r)}var u0=Z(null),Ji=null,jr=null;function ri(r,a,o){G(u0,a._currentValue),a._currentValue=o}function Ar(r){r._currentValue=u0.current,F(u0)}function f0(r,a,o){for(;r!==null;){var f=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),r===o)break;r=r.return}}function d0(r,a,o,f){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var x=g.dependencies;if(x!==null){var A=g.child;x=x.firstContext;e:for(;x!==null;){var N=x;x=g;for(var P=0;P<a.length;P++)if(N.context===a[P]){x.lanes|=o,N=x.alternate,N!==null&&(N.lanes|=o),f0(x.return,o,r),f||(A=null);break e}x=N.next}}else if(g.tag===18){if(A=g.return,A===null)throw Error(i(341));A.lanes|=o,x=A.alternate,x!==null&&(x.lanes|=o),f0(A,o,r),A=null}else A=g.child;if(A!==null)A.return=g;else for(A=g;A!==null;){if(A===r){A=null;break}if(g=A.sibling,g!==null){g.return=A.return,A=g;break}A=A.return}g=A}}function Do(r,a,o,f){r=null;for(var g=a,x=!1;g!==null;){if(!x){if((g.flags&524288)!==0)x=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var A=g.alternate;if(A===null)throw Error(i(387));if(A=A.memoizedProps,A!==null){var N=g.type;mn(g.pendingProps.value,A.value)||(r!==null?r.push(N):r=[N])}}else if(g===de.current){if(A=g.alternate,A===null)throw Error(i(387));A.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(o1):r=[o1])}g=g.return}r!==null&&d0(a,r,o,f),a.flags|=262144}function Pl(r){for(r=r.firstContext;r!==null;){if(!mn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ea(r){Ji=r,jr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Zt(r){return K5(Ji,r)}function Vl(r,a){return Ji===null&&ea(r),K5(r,a)}function K5(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},jr===null){if(r===null)throw Error(i(308));jr=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else jr=jr.next=a;return o}var jE=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(o,f){r.push(f)}};this.abort=function(){a.aborted=!0,r.forEach(function(o){return o()})}},AE=e.unstable_scheduleCallback,ME=e.unstable_NormalPriority,Mt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function h0(){return{controller:new jE,data:new Map,refCount:0}}function ko(r){r.refCount--,r.refCount===0&&AE(ME,function(){r.controller.abort()})}var Oo=null,m0=0,is=0,as=null;function LE(r,a){if(Oo===null){var o=Oo=[];m0=0,is=g3(),as={status:"pending",value:void 0,then:function(f){o.push(f)}}}return m0++,a.then(Q5,Q5),a}function Q5(){if(--m0===0&&Oo!==null){as!==null&&(as.status="fulfilled");var r=Oo;Oo=null,is=0,as=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function TE(r,a){var o=[],f={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return r.then(function(){f.status="fulfilled",f.value=a;for(var g=0;g<o.length;g++)(0,o[g])(a)},function(g){for(f.status="rejected",f.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),f}var X5=_.S;_.S=function(r,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&LE(r,a),X5!==null&&X5(r,a)};var ta=Z(null);function p0(){var r=ta.current;return r!==null?r:nt.pooledCache}function zl(r,a){a===null?G(ta,ta.current):G(ta,a.pool)}function J5(){var r=p0();return r===null?null:{parent:Mt._currentValue,pool:r}}var _o=Error(i(460)),e9=Error(i(474)),Fl=Error(i(542)),g0={then:function(){}};function t9(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Bl(){}function n9(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(Bl,Bl),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,i9(r),r;default:if(typeof a.status=="string")a.then(Bl,Bl);else{if(r=nt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(f){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=f}},function(f){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,i9(r),r}throw Po=a,_o}}var Po=null;function r9(){if(Po===null)throw Error(i(459));var r=Po;return Po=null,r}function i9(r){if(r===_o||r===Fl)throw Error(i(483))}var ii=!1;function C0(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function v0(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ai(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function si(r,a,o){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(qe&2)!==0){var g=f.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),f.pending=a,a=Dl(r),Z5(r,null,o),a}return Rl(r,f,a,o),Dl(r)}function Vo(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,Q8(r,o)}}function x0(r,a){var o=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,o===f)){var g=null,x=null;if(o=o.firstBaseUpdate,o!==null){do{var A={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};x===null?g=x=A:x=x.next=A,o=o.next}while(o!==null);x===null?g=x=a:x=x.next=a}else g=x=a;o={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:x,shared:f.shared,callbacks:f.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=a:r.next=a,o.lastBaseUpdate=a}var y0=!1;function zo(){if(y0){var r=as;if(r!==null)throw r}}function Fo(r,a,o,f){y0=!1;var g=r.updateQueue;ii=!1;var x=g.firstBaseUpdate,A=g.lastBaseUpdate,N=g.shared.pending;if(N!==null){g.shared.pending=null;var P=N,$=P.next;P.next=null,A===null?x=$:A.next=$,A=P;var re=r.alternate;re!==null&&(re=re.updateQueue,N=re.lastBaseUpdate,N!==A&&(N===null?re.firstBaseUpdate=$:N.next=$,re.lastBaseUpdate=P))}if(x!==null){var oe=g.baseState;A=0,re=$=P=null,N=x;do{var W=N.lane&-536870913,K=W!==N.lane;if(K?(Ie&W)===W:(f&W)===W){W!==0&&W===is&&(y0=!0),re!==null&&(re=re.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Ae=r,Se=N;W=a;var Je=o;switch(Se.tag){case 1:if(Ae=Se.payload,typeof Ae=="function"){oe=Ae.call(Je,oe,W);break e}oe=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Se.payload,W=typeof Ae=="function"?Ae.call(Je,oe,W):Ae,W==null)break e;oe=p({},oe,W);break e;case 2:ii=!0}}W=N.callback,W!==null&&(r.flags|=64,K&&(r.flags|=8192),K=g.callbacks,K===null?g.callbacks=[W]:K.push(W))}else K={lane:W,tag:N.tag,payload:N.payload,callback:N.callback,next:null},re===null?($=re=K,P=oe):re=re.next=K,A|=W;if(N=N.next,N===null){if(N=g.shared.pending,N===null)break;K=N,N=K.next,K.next=null,g.lastBaseUpdate=K,g.shared.pending=null}}while(!0);re===null&&(P=oe),g.baseState=P,g.firstBaseUpdate=$,g.lastBaseUpdate=re,x===null&&(g.shared.lanes=0),mi|=A,r.lanes=A,r.memoizedState=oe}}function a9(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function s9(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)a9(o[r],a)}var ss=Z(null),Ul=Z(0);function o9(r,a){r=kr,G(Ul,r),G(ss,a),kr=r|a.baseLanes}function b0(){G(Ul,kr),G(ss,ss.current)}function w0(){kr=Ul.current,F(ss),F(Ul)}var oi=0,Oe=null,Qe=null,bt=null,Hl=!1,os=!1,na=!1,Il=0,Bo=0,ls=null,NE=0;function xt(){throw Error(i(321))}function S0(r,a){if(a===null)return!1;for(var o=0;o<a.length&&o<r.length;o++)if(!mn(r[o],a[o]))return!1;return!0}function E0(r,a,o,f,g,x){return oi=x,Oe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,_.H=r===null||r.memoizedState===null?Z9:G9,na=!1,x=o(f,g),na=!1,os&&(x=c9(a,o,f,g)),l9(r),x}function l9(r){_.H=ql;var a=Qe!==null&&Qe.next!==null;if(oi=0,bt=Qe=Oe=null,Hl=!1,Bo=0,ls=null,a)throw Error(i(300));r===null||kt||(r=r.dependencies,r!==null&&Pl(r)&&(kt=!0))}function c9(r,a,o,f){Oe=r;var g=0;do{if(os&&(ls=null),Bo=0,os=!1,25<=g)throw Error(i(301));if(g+=1,bt=Qe=null,r.updateQueue!=null){var x=r.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}_.H=VE,x=a(o,f)}while(os);return x}function RE(){var r=_.H,a=r.useState()[0];return a=typeof a.then=="function"?Uo(a):a,r=r.useState()[0],(Qe!==null?Qe.memoizedState:null)!==r&&(Oe.flags|=1024),a}function j0(){var r=Il!==0;return Il=0,r}function A0(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function M0(r){if(Hl){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Hl=!1}oi=0,bt=Qe=Oe=null,os=!1,Bo=Il=0,ls=null}function rn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Oe.memoizedState=bt=r:bt=bt.next=r,bt}function wt(){if(Qe===null){var r=Oe.alternate;r=r!==null?r.memoizedState:null}else r=Qe.next;var a=bt===null?Oe.memoizedState:bt.next;if(a!==null)bt=a,Qe=r;else{if(r===null)throw Oe.alternate===null?Error(i(467)):Error(i(310));Qe=r,r={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},bt===null?Oe.memoizedState=bt=r:bt=bt.next=r}return bt}function L0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uo(r){var a=Bo;return Bo+=1,ls===null&&(ls=[]),r=n9(ls,r,a),a=Oe,(bt===null?a.memoizedState:bt.next)===null&&(a=a.alternate,_.H=a===null||a.memoizedState===null?Z9:G9),r}function Zl(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Uo(r);if(r.$$typeof===L)return Zt(r)}throw Error(i(438,String(r)))}function T0(r){var a=null,o=Oe.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var f=Oe.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=L0(),Oe.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(r),f=0;f<r;f++)o[f]=ne;return a.index++,o}function Mr(r,a){return typeof a=="function"?a(r):a}function Gl(r){var a=wt();return N0(a,Qe,r)}function N0(r,a,o){var f=r.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=o;var g=r.baseQueue,x=f.pending;if(x!==null){if(g!==null){var A=g.next;g.next=x.next,x.next=A}a.baseQueue=g=x,f.pending=null}if(x=r.baseState,g===null)r.memoizedState=x;else{a=g.next;var N=A=null,P=null,$=a,re=!1;do{var oe=$.lane&-536870913;if(oe!==$.lane?(Ie&oe)===oe:(oi&oe)===oe){var W=$.revertLane;if(W===0)P!==null&&(P=P.next={lane:0,revertLane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),oe===is&&(re=!0);else if((oi&W)===W){$=$.next,W===is&&(re=!0);continue}else oe={lane:0,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},P===null?(N=P=oe,A=x):P=P.next=oe,Oe.lanes|=W,mi|=W;oe=$.action,na&&o(x,oe),x=$.hasEagerState?$.eagerState:o(x,oe)}else W={lane:oe,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},P===null?(N=P=W,A=x):P=P.next=W,Oe.lanes|=oe,mi|=oe;$=$.next}while($!==null&&$!==a);if(P===null?A=x:P.next=N,!mn(x,r.memoizedState)&&(kt=!0,re&&(o=as,o!==null)))throw o;r.memoizedState=x,r.baseState=A,r.baseQueue=P,f.lastRenderedState=x}return g===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function R0(r){var a=wt(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var f=o.dispatch,g=o.pending,x=a.memoizedState;if(g!==null){o.pending=null;var A=g=g.next;do x=r(x,A.action),A=A.next;while(A!==g);mn(x,a.memoizedState)||(kt=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),o.lastRenderedState=x}return[x,f]}function u9(r,a,o){var f=Oe,g=wt(),x=Ye;if(x){if(o===void 0)throw Error(i(407));o=o()}else o=a();var A=!mn((Qe||g).memoizedState,o);A&&(g.memoizedState=o,kt=!0),g=g.queue;var N=h9.bind(null,f,g,r);if(Ho(2048,8,N,[r]),g.getSnapshot!==a||A||bt!==null&&bt.memoizedState.tag&1){if(f.flags|=2048,cs(9,Yl(),d9.bind(null,f,g,o,a),null),nt===null)throw Error(i(349));x||(oi&124)!==0||f9(f,a,o)}return o}function f9(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=Oe.updateQueue,a===null?(a=L0(),Oe.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function d9(r,a,o,f){a.value=o,a.getSnapshot=f,m9(a)&&p9(r)}function h9(r,a,o){return o(function(){m9(a)&&p9(r)})}function m9(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!mn(r,o)}catch{return!0}}function p9(r){var a=es(r,2);a!==null&&yn(a,r,2)}function D0(r){var a=rn();if(typeof r=="function"){var o=r;if(r=o(),na){ct(!0);try{o()}finally{ct(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:r},a}function g9(r,a,o,f){return r.baseState=o,N0(r,Qe,typeof f=="function"?f:Mr)}function DE(r,a,o,f,g){if(Wl(r))throw Error(i(485));if(r=a.action,r!==null){var x={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){x.listeners.push(A)}};_.T!==null?o(!0):x.isTransition=!1,f(x),o=a.pending,o===null?(x.next=a.pending=x,C9(a,x)):(x.next=o.next,a.pending=o.next=x)}}function C9(r,a){var o=a.action,f=a.payload,g=r.state;if(a.isTransition){var x=_.T,A={};_.T=A;try{var N=o(g,f),P=_.S;P!==null&&P(A,N),v9(r,a,N)}catch($){k0(r,a,$)}finally{_.T=x}}else try{x=o(g,f),v9(r,a,x)}catch($){k0(r,a,$)}}function v9(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(f){x9(r,a,f)},function(f){return k0(r,a,f)}):x9(r,a,o)}function x9(r,a,o){a.status="fulfilled",a.value=o,y9(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,C9(r,o)))}function k0(r,a,o){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=o,y9(a),a=a.next;while(a!==f)}r.action=null}function y9(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function b9(r,a){return a}function w9(r,a){if(Ye){var o=nt.formState;if(o!==null){e:{var f=Oe;if(Ye){if(pt){t:{for(var g=pt,x=rr;g.nodeType!==8;){if(!x){g=null;break t}if(g=Gn(g.nextSibling),g===null){g=null;break t}}x=g.data,g=x==="F!"||x==="F"?g:null}if(g){pt=Gn(g.nextSibling),f=g.data==="F!";break e}}Xi(f)}f=!1}f&&(a=o[0])}}return o=rn(),o.memoizedState=o.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b9,lastRenderedState:a},o.queue=f,o=U9.bind(null,Oe,f),f.dispatch=o,f=D0(!1),x=z0.bind(null,Oe,!1,f.queue),f=rn(),g={state:a,dispatch:null,action:r,pending:null},f.queue=g,o=DE.bind(null,Oe,g,x,o),g.dispatch=o,f.memoizedState=r,[a,o,!1]}function S9(r){var a=wt();return E9(a,Qe,r)}function E9(r,a,o){if(a=N0(r,a,b9)[0],r=Gl(Mr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var f=Uo(a)}catch(A){throw A===_o?Fl:A}else f=a;a=wt();var g=a.queue,x=g.dispatch;return o!==a.memoizedState&&(Oe.flags|=2048,cs(9,Yl(),kE.bind(null,g,o),null)),[f,x,r]}function kE(r,a){r.action=a}function j9(r){var a=wt(),o=Qe;if(o!==null)return E9(a,o,r);wt(),a=a.memoizedState,o=wt();var f=o.queue.dispatch;return o.memoizedState=r,[a,f,!1]}function cs(r,a,o,f){return r={tag:r,create:o,deps:f,inst:a,next:null},a=Oe.updateQueue,a===null&&(a=L0(),Oe.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=r.next=r:(f=o.next,o.next=r,r.next=f,a.lastEffect=r),r}function Yl(){return{destroy:void 0,resource:void 0}}function A9(){return wt().memoizedState}function $l(r,a,o,f){var g=rn();f=f===void 0?null:f,Oe.flags|=r,g.memoizedState=cs(1|a,Yl(),o,f)}function Ho(r,a,o,f){var g=wt();f=f===void 0?null:f;var x=g.memoizedState.inst;Qe!==null&&f!==null&&S0(f,Qe.memoizedState.deps)?g.memoizedState=cs(a,x,o,f):(Oe.flags|=r,g.memoizedState=cs(1|a,x,o,f))}function M9(r,a){$l(8390656,8,r,a)}function L9(r,a){Ho(2048,8,r,a)}function T9(r,a){return Ho(4,2,r,a)}function N9(r,a){return Ho(4,4,r,a)}function R9(r,a){if(typeof a=="function"){r=r();var o=a(r);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function D9(r,a,o){o=o!=null?o.concat([r]):null,Ho(4,4,R9.bind(null,a,r),o)}function O0(){}function k9(r,a){var o=wt();a=a===void 0?null:a;var f=o.memoizedState;return a!==null&&S0(a,f[1])?f[0]:(o.memoizedState=[r,a],r)}function O9(r,a){var o=wt();a=a===void 0?null:a;var f=o.memoizedState;if(a!==null&&S0(a,f[1]))return f[0];if(f=r(),na){ct(!0);try{r()}finally{ct(!1)}}return o.memoizedState=[f,a],f}function _0(r,a,o){return o===void 0||(oi&1073741824)!==0?r.memoizedState=a:(r.memoizedState=o,r=zf(),Oe.lanes|=r,mi|=r,o)}function _9(r,a,o,f){return mn(o,a)?o:ss.current!==null?(r=_0(r,o,f),mn(r,a)||(kt=!0),r):(oi&42)===0?(kt=!0,r.memoizedState=o):(r=zf(),Oe.lanes|=r,mi|=r,a)}function P9(r,a,o,f,g){var x=U.p;U.p=x!==0&&8>x?x:8;var A=_.T,N={};_.T=N,z0(r,!1,a,o);try{var P=g(),$=_.S;if($!==null&&$(N,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var re=TE(P,f);Io(r,a,re,xn(r))}else Io(r,a,f,xn(r))}catch(oe){Io(r,a,{then:function(){},status:"rejected",reason:oe},xn())}finally{U.p=x,_.T=A}}function OE(){}function P0(r,a,o,f){if(r.tag!==5)throw Error(i(476));var g=V9(r).queue;P9(r,g,a,V,o===null?OE:function(){return z9(r),o(f)})}function V9(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:V},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function z9(r){var a=V9(r).next.queue;Io(r,a,{},xn())}function V0(){return Zt(o1)}function F9(){return wt().memoizedState}function B9(){return wt().memoizedState}function _E(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=xn();r=ai(o);var f=si(a,r,o);f!==null&&(yn(f,a,o),Vo(f,a,o)),a={cache:h0()},r.payload=a;return}a=a.return}}function PE(r,a,o){var f=xn();o={lane:f,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Wl(r)?H9(a,o):(o=r0(r,a,o,f),o!==null&&(yn(o,r,f),I9(o,a,f)))}function U9(r,a,o){var f=xn();Io(r,a,o,f)}function Io(r,a,o,f){var g={lane:f,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Wl(r))H9(a,g);else{var x=r.alternate;if(r.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var A=a.lastRenderedState,N=x(A,o);if(g.hasEagerState=!0,g.eagerState=N,mn(N,A))return Rl(r,a,g,0),nt===null&&Nl(),!1}catch{}finally{}if(o=r0(r,a,g,f),o!==null)return yn(o,r,f),I9(o,a,f),!0}return!1}function z0(r,a,o,f){if(f={lane:2,revertLane:g3(),action:f,hasEagerState:!1,eagerState:null,next:null},Wl(r)){if(a)throw Error(i(479))}else a=r0(r,o,f,2),a!==null&&yn(a,r,2)}function Wl(r){var a=r.alternate;return r===Oe||a!==null&&a===Oe}function H9(r,a){os=Hl=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function I9(r,a,o){if((o&4194048)!==0){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,Q8(r,o)}}var ql={readContext:Zt,use:Zl,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt},Z9={readContext:Zt,use:Zl,useCallback:function(r,a){return rn().memoizedState=[r,a===void 0?null:a],r},useContext:Zt,useEffect:M9,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,$l(4194308,4,R9.bind(null,a,r),o)},useLayoutEffect:function(r,a){return $l(4194308,4,r,a)},useInsertionEffect:function(r,a){$l(4,2,r,a)},useMemo:function(r,a){var o=rn();a=a===void 0?null:a;var f=r();if(na){ct(!0);try{r()}finally{ct(!1)}}return o.memoizedState=[f,a],f},useReducer:function(r,a,o){var f=rn();if(o!==void 0){var g=o(a);if(na){ct(!0);try{o(a)}finally{ct(!1)}}}else g=a;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=PE.bind(null,Oe,r),[f.memoizedState,r]},useRef:function(r){var a=rn();return r={current:r},a.memoizedState=r},useState:function(r){r=D0(r);var a=r.queue,o=U9.bind(null,Oe,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:O0,useDeferredValue:function(r,a){var o=rn();return _0(o,r,a)},useTransition:function(){var r=D0(!1);return r=P9.bind(null,Oe,r.queue,!0,!1),rn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var f=Oe,g=rn();if(Ye){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),nt===null)throw Error(i(349));(Ie&124)!==0||f9(f,a,o)}g.memoizedState=o;var x={value:o,getSnapshot:a};return g.queue=x,M9(h9.bind(null,f,x,r),[r]),f.flags|=2048,cs(9,Yl(),d9.bind(null,f,x,o,a),null),o},useId:function(){var r=rn(),a=nt.identifierPrefix;if(Ye){var o=Er,f=Sr;o=(f&~(1<<32-dt(f)-1)).toString(32)+o,a="«"+a+"R"+o,o=Il++,0<o&&(a+="H"+o.toString(32)),a+="»"}else o=NE++,a="«"+a+"r"+o.toString(32)+"»";return r.memoizedState=a},useHostTransitionStatus:V0,useFormState:w9,useActionState:w9,useOptimistic:function(r){var a=rn();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=z0.bind(null,Oe,!0,o),o.dispatch=a,[r,a]},useMemoCache:T0,useCacheRefresh:function(){return rn().memoizedState=_E.bind(null,Oe)}},G9={readContext:Zt,use:Zl,useCallback:k9,useContext:Zt,useEffect:L9,useImperativeHandle:D9,useInsertionEffect:T9,useLayoutEffect:N9,useMemo:O9,useReducer:Gl,useRef:A9,useState:function(){return Gl(Mr)},useDebugValue:O0,useDeferredValue:function(r,a){var o=wt();return _9(o,Qe.memoizedState,r,a)},useTransition:function(){var r=Gl(Mr)[0],a=wt().memoizedState;return[typeof r=="boolean"?r:Uo(r),a]},useSyncExternalStore:u9,useId:F9,useHostTransitionStatus:V0,useFormState:S9,useActionState:S9,useOptimistic:function(r,a){var o=wt();return g9(o,Qe,r,a)},useMemoCache:T0,useCacheRefresh:B9},VE={readContext:Zt,use:Zl,useCallback:k9,useContext:Zt,useEffect:L9,useImperativeHandle:D9,useInsertionEffect:T9,useLayoutEffect:N9,useMemo:O9,useReducer:R0,useRef:A9,useState:function(){return R0(Mr)},useDebugValue:O0,useDeferredValue:function(r,a){var o=wt();return Qe===null?_0(o,r,a):_9(o,Qe.memoizedState,r,a)},useTransition:function(){var r=R0(Mr)[0],a=wt().memoizedState;return[typeof r=="boolean"?r:Uo(r),a]},useSyncExternalStore:u9,useId:F9,useHostTransitionStatus:V0,useFormState:j9,useActionState:j9,useOptimistic:function(r,a){var o=wt();return Qe!==null?g9(o,Qe,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:T0,useCacheRefresh:B9},us=null,Zo=0;function Kl(r){var a=Zo;return Zo+=1,us===null&&(us=[]),n9(us,r,a)}function Go(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Ql(r,a){throw a.$$typeof===C?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Y9(r){var a=r._init;return a(r._payload)}function $9(r){function a(H,B){if(r){var Y=H.deletions;Y===null?(H.deletions=[B],H.flags|=16):Y.push(B)}}function o(H,B){if(!r)return null;for(;B!==null;)a(H,B),B=B.sibling;return null}function f(H){for(var B=new Map;H!==null;)H.key!==null?B.set(H.key,H):B.set(H.index,H),H=H.sibling;return B}function g(H,B){return H=wr(H,B),H.index=0,H.sibling=null,H}function x(H,B,Y){return H.index=Y,r?(Y=H.alternate,Y!==null?(Y=Y.index,Y<B?(H.flags|=67108866,B):Y):(H.flags|=67108866,B)):(H.flags|=1048576,B)}function A(H){return r&&H.alternate===null&&(H.flags|=67108866),H}function N(H,B,Y,ae){return B===null||B.tag!==6?(B=a0(Y,H.mode,ae),B.return=H,B):(B=g(B,Y),B.return=H,B)}function P(H,B,Y,ae){var pe=Y.type;return pe===b?re(H,B,Y.props.children,ae,Y.key):B!==null&&(B.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===z&&Y9(pe)===B.type)?(B=g(B,Y.props),Go(B,Y),B.return=H,B):(B=kl(Y.type,Y.key,Y.props,null,H.mode,ae),Go(B,Y),B.return=H,B)}function $(H,B,Y,ae){return B===null||B.tag!==4||B.stateNode.containerInfo!==Y.containerInfo||B.stateNode.implementation!==Y.implementation?(B=s0(Y,H.mode,ae),B.return=H,B):(B=g(B,Y.children||[]),B.return=H,B)}function re(H,B,Y,ae,pe){return B===null||B.tag!==7?(B=Wi(Y,H.mode,ae,pe),B.return=H,B):(B=g(B,Y),B.return=H,B)}function oe(H,B,Y){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=a0(""+B,H.mode,Y),B.return=H,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case v:return Y=kl(B.type,B.key,B.props,null,H.mode,Y),Go(Y,B),Y.return=H,Y;case w:return B=s0(B,H.mode,Y),B.return=H,B;case z:var ae=B._init;return B=ae(B._payload),oe(H,B,Y)}if(J(B)||le(B))return B=Wi(B,H.mode,Y,null),B.return=H,B;if(typeof B.then=="function")return oe(H,Kl(B),Y);if(B.$$typeof===L)return oe(H,Vl(H,B),Y);Ql(H,B)}return null}function W(H,B,Y,ae){var pe=B!==null?B.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return pe!==null?null:N(H,B,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return Y.key===pe?P(H,B,Y,ae):null;case w:return Y.key===pe?$(H,B,Y,ae):null;case z:return pe=Y._init,Y=pe(Y._payload),W(H,B,Y,ae)}if(J(Y)||le(Y))return pe!==null?null:re(H,B,Y,ae,null);if(typeof Y.then=="function")return W(H,B,Kl(Y),ae);if(Y.$$typeof===L)return W(H,B,Vl(H,Y),ae);Ql(H,Y)}return null}function K(H,B,Y,ae,pe){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return H=H.get(Y)||null,N(B,H,""+ae,pe);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case v:return H=H.get(ae.key===null?Y:ae.key)||null,P(B,H,ae,pe);case w:return H=H.get(ae.key===null?Y:ae.key)||null,$(B,H,ae,pe);case z:var Pe=ae._init;return ae=Pe(ae._payload),K(H,B,Y,ae,pe)}if(J(ae)||le(ae))return H=H.get(Y)||null,re(B,H,ae,pe,null);if(typeof ae.then=="function")return K(H,B,Y,Kl(ae),pe);if(ae.$$typeof===L)return K(H,B,Y,Vl(B,ae),pe);Ql(B,ae)}return null}function Ae(H,B,Y,ae){for(var pe=null,Pe=null,xe=B,je=B=0,_t=null;xe!==null&&je<Y.length;je++){xe.index>je?(_t=xe,xe=null):_t=xe.sibling;var Ge=W(H,xe,Y[je],ae);if(Ge===null){xe===null&&(xe=_t);break}r&&xe&&Ge.alternate===null&&a(H,xe),B=x(Ge,B,je),Pe===null?pe=Ge:Pe.sibling=Ge,Pe=Ge,xe=_t}if(je===Y.length)return o(H,xe),Ye&&Ki(H,je),pe;if(xe===null){for(;je<Y.length;je++)xe=oe(H,Y[je],ae),xe!==null&&(B=x(xe,B,je),Pe===null?pe=xe:Pe.sibling=xe,Pe=xe);return Ye&&Ki(H,je),pe}for(xe=f(xe);je<Y.length;je++)_t=K(xe,H,je,Y[je],ae),_t!==null&&(r&&_t.alternate!==null&&xe.delete(_t.key===null?je:_t.key),B=x(_t,B,je),Pe===null?pe=_t:Pe.sibling=_t,Pe=_t);return r&&xe.forEach(function(Si){return a(H,Si)}),Ye&&Ki(H,je),pe}function Se(H,B,Y,ae){if(Y==null)throw Error(i(151));for(var pe=null,Pe=null,xe=B,je=B=0,_t=null,Ge=Y.next();xe!==null&&!Ge.done;je++,Ge=Y.next()){xe.index>je?(_t=xe,xe=null):_t=xe.sibling;var Si=W(H,xe,Ge.value,ae);if(Si===null){xe===null&&(xe=_t);break}r&&xe&&Si.alternate===null&&a(H,xe),B=x(Si,B,je),Pe===null?pe=Si:Pe.sibling=Si,Pe=Si,xe=_t}if(Ge.done)return o(H,xe),Ye&&Ki(H,je),pe;if(xe===null){for(;!Ge.done;je++,Ge=Y.next())Ge=oe(H,Ge.value,ae),Ge!==null&&(B=x(Ge,B,je),Pe===null?pe=Ge:Pe.sibling=Ge,Pe=Ge);return Ye&&Ki(H,je),pe}for(xe=f(xe);!Ge.done;je++,Ge=Y.next())Ge=K(xe,H,je,Ge.value,ae),Ge!==null&&(r&&Ge.alternate!==null&&xe.delete(Ge.key===null?je:Ge.key),B=x(Ge,B,je),Pe===null?pe=Ge:Pe.sibling=Ge,Pe=Ge);return r&&xe.forEach(function(zj){return a(H,zj)}),Ye&&Ki(H,je),pe}function Je(H,B,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===b&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:e:{for(var pe=Y.key;B!==null;){if(B.key===pe){if(pe=Y.type,pe===b){if(B.tag===7){o(H,B.sibling),ae=g(B,Y.props.children),ae.return=H,H=ae;break e}}else if(B.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===z&&Y9(pe)===B.type){o(H,B.sibling),ae=g(B,Y.props),Go(ae,Y),ae.return=H,H=ae;break e}o(H,B);break}else a(H,B);B=B.sibling}Y.type===b?(ae=Wi(Y.props.children,H.mode,ae,Y.key),ae.return=H,H=ae):(ae=kl(Y.type,Y.key,Y.props,null,H.mode,ae),Go(ae,Y),ae.return=H,H=ae)}return A(H);case w:e:{for(pe=Y.key;B!==null;){if(B.key===pe)if(B.tag===4&&B.stateNode.containerInfo===Y.containerInfo&&B.stateNode.implementation===Y.implementation){o(H,B.sibling),ae=g(B,Y.children||[]),ae.return=H,H=ae;break e}else{o(H,B);break}else a(H,B);B=B.sibling}ae=s0(Y,H.mode,ae),ae.return=H,H=ae}return A(H);case z:return pe=Y._init,Y=pe(Y._payload),Je(H,B,Y,ae)}if(J(Y))return Ae(H,B,Y,ae);if(le(Y)){if(pe=le(Y),typeof pe!="function")throw Error(i(150));return Y=pe.call(Y),Se(H,B,Y,ae)}if(typeof Y.then=="function")return Je(H,B,Kl(Y),ae);if(Y.$$typeof===L)return Je(H,B,Vl(H,Y),ae);Ql(H,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,B!==null&&B.tag===6?(o(H,B.sibling),ae=g(B,Y),ae.return=H,H=ae):(o(H,B),ae=a0(Y,H.mode,ae),ae.return=H,H=ae),A(H)):o(H,B)}return function(H,B,Y,ae){try{Zo=0;var pe=Je(H,B,Y,ae);return us=null,pe}catch(xe){if(xe===_o||xe===Fl)throw xe;var Pe=pn(29,xe,null,H.mode);return Pe.lanes=ae,Pe.return=H,Pe}finally{}}}var fs=$9(!0),W9=$9(!1),Nn=Z(null),ir=null;function li(r){var a=r.alternate;G(Lt,Lt.current&1),G(Nn,r),ir===null&&(a===null||ss.current!==null||a.memoizedState!==null)&&(ir=r)}function q9(r){if(r.tag===22){if(G(Lt,Lt.current),G(Nn,r),ir===null){var a=r.alternate;a!==null&&a.memoizedState!==null&&(ir=r)}}else ci()}function ci(){G(Lt,Lt.current),G(Nn,Nn.current)}function Lr(r){F(Nn),ir===r&&(ir=null),F(Lt)}var Lt=Z(0);function Xl(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||L3(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function F0(r,a,o,f){a=r.memoizedState,o=o(f,a),o=o==null?a:p({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var B0={enqueueSetState:function(r,a,o){r=r._reactInternals;var f=xn(),g=ai(f);g.payload=a,o!=null&&(g.callback=o),a=si(r,g,f),a!==null&&(yn(a,r,f),Vo(a,r,f))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var f=xn(),g=ai(f);g.tag=1,g.payload=a,o!=null&&(g.callback=o),a=si(r,g,f),a!==null&&(yn(a,r,f),Vo(a,r,f))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=xn(),f=ai(o);f.tag=2,a!=null&&(f.callback=a),a=si(r,f,o),a!==null&&(yn(a,r,o),Vo(a,r,o))}};function K9(r,a,o,f,g,x,A){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,x,A):a.prototype&&a.prototype.isPureReactComponent?!Mo(o,f)||!Mo(g,x):!0}function Q9(r,a,o,f){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,f),a.state!==r&&B0.enqueueReplaceState(a,a.state,null)}function ra(r,a){var o=a;if("ref"in a){o={};for(var f in a)f!=="ref"&&(o[f]=a[f])}if(r=r.defaultProps){o===a&&(o=p({},o));for(var g in r)o[g]===void 0&&(o[g]=r[g])}return o}var Jl=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function X9(r){Jl(r)}function J9(r){console.error(r)}function ef(r){Jl(r)}function e2(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function tf(r,a,o){try{var f=r.onCaughtError;f(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function U0(r,a,o){return o=ai(o),o.tag=3,o.payload={element:null},o.callback=function(){e2(r,a)},o}function nf(r){return r=ai(r),r.tag=3,r}function rf(r,a,o,f){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var x=f.value;r.payload=function(){return g(x)},r.callback=function(){tf(a,o,f)}}var A=o.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(r.callback=function(){tf(a,o,f),typeof g!="function"&&(pi===null?pi=new Set([this]):pi.add(this));var N=f.stack;this.componentDidCatch(f.value,{componentStack:N!==null?N:""})})}function zE(r,a,o,f,g){if(o.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=o.alternate,a!==null&&Do(a,o,g,!0),o=Nn.current,o!==null){switch(o.tag){case 13:return ir===null?f3():o.alternate===null&&gt===0&&(gt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,f===g0?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([f]):a.add(f),h3(r,f,g)),!1;case 22:return o.flags|=65536,f===g0?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([f]):o.add(f)),h3(r,f,g)),!1}throw Error(i(435,o.tag))}return h3(r,f,g),f3(),!1}if(Ye)return a=Nn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,f!==c0&&(r=Error(i(422),{cause:f}),Ro(An(r,o)))):(f!==c0&&(a=Error(i(423),{cause:f}),Ro(An(a,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,f=An(f,o),g=U0(r.stateNode,f,g),x0(r,g),gt!==4&&(gt=2)),!1;var x=Error(i(520),{cause:f});if(x=An(x,o),Xo===null?Xo=[x]:Xo.push(x),gt!==4&&(gt=2),a===null)return!0;f=An(f,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=g&-g,o.lanes|=r,r=U0(o.stateNode,f,r),x0(o,r),!1;case 1:if(a=o.type,x=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(pi===null||!pi.has(x))))return o.flags|=65536,g&=-g,o.lanes|=g,g=nf(g),rf(g,r,o,f),x0(o,g),!1}o=o.return}while(o!==null);return!1}var af=Error(i(461)),kt=!1;function zt(r,a,o,f){a.child=r===null?W9(a,null,o,f):fs(a,r.child,o,f)}function sf(r,a,o,f,g){o=o.render;var x=a.ref;if("ref"in f){var A={};for(var N in f)N!=="ref"&&(A[N]=f[N])}else A=f;return ea(a),f=E0(r,a,o,A,x,g),N=j0(),r!==null&&!kt?(A0(r,a,g),Tr(r,a,g)):(Ye&&N&&o0(a),a.flags|=1,zt(r,a,f,g),a.child)}function of(r,a,o,f,g){if(r===null){var x=o.type;return typeof x=="function"&&!i0(x)&&x.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=x,lf(r,a,x,f,g)):(r=kl(o.type,null,f,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(x=r.child,!q0(r,g)){var A=x.memoizedProps;if(o=o.compare,o=o!==null?o:Mo,o(A,f)&&r.ref===a.ref)return Tr(r,a,g)}return a.flags|=1,r=wr(x,f),r.ref=a.ref,r.return=a,a.child=r}function lf(r,a,o,f,g){if(r!==null){var x=r.memoizedProps;if(Mo(x,f)&&r.ref===a.ref)if(kt=!1,a.pendingProps=f=x,q0(r,g))(r.flags&131072)!==0&&(kt=!0);else return a.lanes=r.lanes,Tr(r,a,g)}return H0(r,a,o,f,g)}function cf(r,a,o){var f=a.pendingProps,g=f.children,x=r!==null?r.memoizedState:null;if(f.mode==="hidden"){if((a.flags&128)!==0){if(f=x!==null?x.baseLanes|o:o,r!==null){for(g=a.child=r.child,x=0;g!==null;)x=x|g.lanes|g.childLanes,g=g.sibling;a.childLanes=x&~f}else a.childLanes=0,a.child=null;return uf(r,a,f,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&zl(a,x!==null?x.cachePool:null),x!==null?o9(a,x):b0(),q9(a);else return a.lanes=a.childLanes=536870912,uf(r,a,x!==null?x.baseLanes|o:o,o)}else x!==null?(zl(a,x.cachePool),o9(a,x),ci(),a.memoizedState=null):(r!==null&&zl(a,null),b0(),ci());return zt(r,a,g,o),a.child}function uf(r,a,o,f){var g=p0();return g=g===null?null:{parent:Mt._currentValue,pool:g},a.memoizedState={baseLanes:o,cachePool:g},r!==null&&zl(a,null),b0(),q9(a),r!==null&&Do(r,a,f,!0),null}function t2(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function H0(r,a,o,f,g){return ea(a),o=E0(r,a,o,f,void 0,g),f=j0(),r!==null&&!kt?(A0(r,a,g),Tr(r,a,g)):(Ye&&f&&o0(a),a.flags|=1,zt(r,a,o,g),a.child)}function ff(r,a,o,f,g,x){return ea(a),a.updateQueue=null,o=c9(a,f,o,g),l9(r),f=j0(),r!==null&&!kt?(A0(r,a,x),Tr(r,a,x)):(Ye&&f&&o0(a),a.flags|=1,zt(r,a,o,x),a.child)}function df(r,a,o,f,g){if(ea(a),a.stateNode===null){var x=ts,A=o.contextType;typeof A=="object"&&A!==null&&(x=Zt(A)),x=new o(f,x),a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=B0,a.stateNode=x,x._reactInternals=a,x=a.stateNode,x.props=f,x.state=a.memoizedState,x.refs={},C0(a),A=o.contextType,x.context=typeof A=="object"&&A!==null?Zt(A):ts,x.state=a.memoizedState,A=o.getDerivedStateFromProps,typeof A=="function"&&(F0(a,o,A,f),x.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(A=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),A!==x.state&&B0.enqueueReplaceState(x,x.state,null),Fo(a,f,x,g),zo(),x.state=a.memoizedState),typeof x.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(r===null){x=a.stateNode;var N=a.memoizedProps,P=ra(o,N);x.props=P;var $=x.context,re=o.contextType;A=ts,typeof re=="object"&&re!==null&&(A=Zt(re));var oe=o.getDerivedStateFromProps;re=typeof oe=="function"||typeof x.getSnapshotBeforeUpdate=="function",N=a.pendingProps!==N,re||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(N||$!==A)&&Q9(a,x,f,A),ii=!1;var W=a.memoizedState;x.state=W,Fo(a,f,x,g),zo(),$=a.memoizedState,N||W!==$||ii?(typeof oe=="function"&&(F0(a,o,oe,f),$=a.memoizedState),(P=ii||K9(a,o,P,f,W,$,A))?(re||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(a.flags|=4194308)):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=$),x.props=f,x.state=$,x.context=A,f=P):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{x=a.stateNode,v0(r,a),A=a.memoizedProps,re=ra(o,A),x.props=re,oe=a.pendingProps,W=x.context,$=o.contextType,P=ts,typeof $=="object"&&$!==null&&(P=Zt($)),N=o.getDerivedStateFromProps,($=typeof N=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(A!==oe||W!==P)&&Q9(a,x,f,P),ii=!1,W=a.memoizedState,x.state=W,Fo(a,f,x,g),zo();var K=a.memoizedState;A!==oe||W!==K||ii||r!==null&&r.dependencies!==null&&Pl(r.dependencies)?(typeof N=="function"&&(F0(a,o,N,f),K=a.memoizedState),(re=ii||K9(a,o,re,f,W,K,P)||r!==null&&r.dependencies!==null&&Pl(r.dependencies))?($||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,K,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,K,P)),typeof x.componentDidUpdate=="function"&&(a.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof x.componentDidUpdate!="function"||A===r.memoizedProps&&W===r.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&W===r.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=K),x.props=f,x.state=K,x.context=P,f=re):(typeof x.componentDidUpdate!="function"||A===r.memoizedProps&&W===r.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&W===r.memoizedState||(a.flags|=1024),f=!1)}return x=f,t2(r,a),f=(a.flags&128)!==0,x||f?(x=a.stateNode,o=f&&typeof o.getDerivedStateFromError!="function"?null:x.render(),a.flags|=1,r!==null&&f?(a.child=fs(a,r.child,null,g),a.child=fs(a,null,o,g)):zt(r,a,o,g),a.memoizedState=x.state,r=a.child):r=Tr(r,a,g),r}function hf(r,a,o,f){return No(),a.flags|=256,zt(r,a,o,f),a.child}var I0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Z0(r){return{baseLanes:r,cachePool:J5()}}function G0(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Rn),r}function mf(r,a,o){var f=a.pendingProps,g=!1,x=(a.flags&128)!==0,A;if((A=x)||(A=r!==null&&r.memoizedState===null?!1:(Lt.current&2)!==0),A&&(g=!0,a.flags&=-129),A=(a.flags&32)!==0,a.flags&=-33,r===null){if(Ye){if(g?li(a):ci(),Ye){var N=pt,P;if(P=N){e:{for(P=N,N=rr;P.nodeType!==8;){if(!N){N=null;break e}if(P=Gn(P.nextSibling),P===null){N=null;break e}}N=P}N!==null?(a.memoizedState={dehydrated:N,treeContext:qi!==null?{id:Sr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},P=pn(18,null,null,0),P.stateNode=N,P.return=a,a.child=P,qt=a,pt=null,P=!0):P=!1}P||Xi(a)}if(N=a.memoizedState,N!==null&&(N=N.dehydrated,N!==null))return L3(N)?a.lanes=32:a.lanes=536870912,null;Lr(a)}return N=f.children,f=f.fallback,g?(ci(),g=a.mode,N=n2({mode:"hidden",children:N},g),f=Wi(f,g,o,null),N.return=a,f.return=a,N.sibling=f,a.child=N,g=a.child,g.memoizedState=Z0(o),g.childLanes=G0(r,A,o),a.memoizedState=I0,f):(li(a),Y0(a,N))}if(P=r.memoizedState,P!==null&&(N=P.dehydrated,N!==null)){if(x)a.flags&256?(li(a),a.flags&=-257,a=$0(r,a,o)):a.memoizedState!==null?(ci(),a.child=r.child,a.flags|=128,a=null):(ci(),g=f.fallback,N=a.mode,f=n2({mode:"visible",children:f.children},N),g=Wi(g,N,o,null),g.flags|=2,f.return=a,g.return=a,f.sibling=g,a.child=f,fs(a,r.child,null,o),f=a.child,f.memoizedState=Z0(o),f.childLanes=G0(r,A,o),a.memoizedState=I0,a=g);else if(li(a),L3(N)){if(A=N.nextSibling&&N.nextSibling.dataset,A)var $=A.dgst;A=$,f=Error(i(419)),f.stack="",f.digest=A,Ro({value:f,source:null,stack:null}),a=$0(r,a,o)}else if(kt||Do(r,a,o,!1),A=(o&r.childLanes)!==0,kt||A){if(A=nt,A!==null&&(f=o&-o,f=(f&42)!==0?1:Tu(f),f=(f&(A.suspendedLanes|o))!==0?0:f,f!==0&&f!==P.retryLane))throw P.retryLane=f,es(r,f),yn(A,r,f),af;N.data==="$?"||f3(),a=$0(r,a,o)}else N.data==="$?"?(a.flags|=192,a.child=r.child,a=null):(r=P.treeContext,pt=Gn(N.nextSibling),qt=a,Ye=!0,Qi=null,rr=!1,r!==null&&(Ln[Tn++]=Sr,Ln[Tn++]=Er,Ln[Tn++]=qi,Sr=r.id,Er=r.overflow,qi=a),a=Y0(a,f.children),a.flags|=4096);return a}return g?(ci(),g=f.fallback,N=a.mode,P=r.child,$=P.sibling,f=wr(P,{mode:"hidden",children:f.children}),f.subtreeFlags=P.subtreeFlags&65011712,$!==null?g=wr($,g):(g=Wi(g,N,o,null),g.flags|=2),g.return=a,f.return=a,f.sibling=g,a.child=f,f=g,g=a.child,N=r.child.memoizedState,N===null?N=Z0(o):(P=N.cachePool,P!==null?($=Mt._currentValue,P=P.parent!==$?{parent:$,pool:$}:P):P=J5(),N={baseLanes:N.baseLanes|o,cachePool:P}),g.memoizedState=N,g.childLanes=G0(r,A,o),a.memoizedState=I0,f):(li(a),o=r.child,r=o.sibling,o=wr(o,{mode:"visible",children:f.children}),o.return=a,o.sibling=null,r!==null&&(A=a.deletions,A===null?(a.deletions=[r],a.flags|=16):A.push(r)),a.child=o,a.memoizedState=null,o)}function Y0(r,a){return a=n2({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function n2(r,a){return r=pn(22,r,null,a),r.lanes=0,r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function $0(r,a,o){return fs(a,r.child,null,o),r=Y0(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function pf(r,a,o){r.lanes|=a;var f=r.alternate;f!==null&&(f.lanes|=a),f0(r.return,a,o)}function W0(r,a,o,f,g){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:g}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=o,x.tailMode=g)}function gf(r,a,o){var f=a.pendingProps,g=f.revealOrder,x=f.tail;if(zt(r,a,f.children,o),f=Lt.current,(f&2)!==0)f=f&1|2,a.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&pf(r,o,a);else if(r.tag===19)pf(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}f&=1}switch(G(Lt,f),g){case"forwards":for(o=a.child,g=null;o!==null;)r=o.alternate,r!==null&&Xl(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),W0(a,!1,g,o,x);break;case"backwards":for(o=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&Xl(r)===null){a.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}W0(a,!0,o,null,x);break;case"together":W0(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Tr(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),mi|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(Do(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,o=wr(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=wr(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function q0(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Pl(r)))}function FE(r,a,o){switch(a.tag){case 3:ye(a,a.stateNode.containerInfo),ri(a,Mt,r.memoizedState.cache),No();break;case 27:case 5:Ve(a);break;case 4:ye(a,a.stateNode.containerInfo);break;case 10:ri(a,a.type,a.memoizedProps.value);break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(li(a),a.flags|=128,null):(o&a.child.childLanes)!==0?mf(r,a,o):(li(a),r=Tr(r,a,o),r!==null?r.sibling:null);li(a);break;case 19:var g=(r.flags&128)!==0;if(f=(o&a.childLanes)!==0,f||(Do(r,a,o,!1),f=(o&a.childLanes)!==0),g){if(f)return gf(r,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),G(Lt,Lt.current),f)break;return null;case 22:case 23:return a.lanes=0,cf(r,a,o);case 24:ri(a,Mt,r.memoizedState.cache)}return Tr(r,a,o)}function Cf(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)kt=!0;else{if(!q0(r,o)&&(a.flags&128)===0)return kt=!1,FE(r,a,o);kt=(r.flags&131072)!==0}else kt=!1,Ye&&(a.flags&1048576)!==0&&Y5(a,_l,a.index);switch(a.lanes=0,a.tag){case 16:e:{r=a.pendingProps;var f=a.elementType,g=f._init;if(f=g(f._payload),a.type=f,typeof f=="function")i0(f)?(r=ra(f,r),a.tag=1,a=df(null,a,f,r,o)):(a.tag=0,a=H0(null,a,f,r,o));else{if(f!=null){if(g=f.$$typeof,g===D){a.tag=11,a=sf(null,a,f,r,o);break e}else if(g===O){a.tag=14,a=of(null,a,f,r,o);break e}}throw a=ie(f)||f,Error(i(306,a,""))}}return a;case 0:return H0(r,a,a.type,a.pendingProps,o);case 1:return f=a.type,g=ra(f,a.pendingProps),df(r,a,f,g,o);case 3:e:{if(ye(a,a.stateNode.containerInfo),r===null)throw Error(i(387));f=a.pendingProps;var x=a.memoizedState;g=x.element,v0(r,a),Fo(a,f,null,o);var A=a.memoizedState;if(f=A.cache,ri(a,Mt,f),f!==x.cache&&d0(a,[Mt],o,!0),zo(),f=A.element,x.isDehydrated)if(x={element:f,isDehydrated:!1,cache:A.cache},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){a=hf(r,a,f,o);break e}else if(f!==g){g=An(Error(i(424)),a),Ro(g),a=hf(r,a,f,o);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(pt=Gn(r.firstChild),qt=a,Ye=!0,Qi=null,rr=!0,o=W9(a,null,f,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(No(),f===g){a=Tr(r,a,o);break e}zt(r,a,f,o)}a=a.child}return a;case 26:return t2(r,a),r===null?(o=bd(a.type,null,a.pendingProps,null))?a.memoizedState=o:Ye||(o=a.type,r=a.pendingProps,f=g2(ce.current).createElement(o),f[It]=a,f[tn]=r,Bt(f,o,r),Dt(f),a.stateNode=f):a.memoizedState=bd(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Ve(a),r===null&&Ye&&(f=a.stateNode=vd(a.type,a.pendingProps,ce.current),qt=a,rr=!0,g=pt,vi(a.type)?(T3=g,pt=Gn(f.firstChild)):pt=g),zt(r,a,a.pendingProps.children,o),t2(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Ye&&((g=f=pt)&&(f=hj(f,a.type,a.pendingProps,rr),f!==null?(a.stateNode=f,qt=a,pt=Gn(f.firstChild),rr=!1,g=!0):g=!1),g||Xi(a)),Ve(a),g=a.type,x=a.pendingProps,A=r!==null?r.memoizedProps:null,f=x.children,j3(g,x)?f=null:A!==null&&j3(g,A)&&(a.flags|=32),a.memoizedState!==null&&(g=E0(r,a,RE,null,null,o),o1._currentValue=g),t2(r,a),zt(r,a,f,o),a.child;case 6:return r===null&&Ye&&((r=o=pt)&&(o=mj(o,a.pendingProps,rr),o!==null?(a.stateNode=o,qt=a,pt=null,r=!0):r=!1),r||Xi(a)),null;case 13:return mf(r,a,o);case 4:return ye(a,a.stateNode.containerInfo),f=a.pendingProps,r===null?a.child=fs(a,null,f,o):zt(r,a,f,o),a.child;case 11:return sf(r,a,a.type,a.pendingProps,o);case 7:return zt(r,a,a.pendingProps,o),a.child;case 8:return zt(r,a,a.pendingProps.children,o),a.child;case 12:return zt(r,a,a.pendingProps.children,o),a.child;case 10:return f=a.pendingProps,ri(a,a.type,f.value),zt(r,a,f.children,o),a.child;case 9:return g=a.type._context,f=a.pendingProps.children,ea(a),g=Zt(g),f=f(g),a.flags|=1,zt(r,a,f,o),a.child;case 14:return of(r,a,a.type,a.pendingProps,o);case 15:return lf(r,a,a.type,a.pendingProps,o);case 19:return gf(r,a,o);case 31:return f=a.pendingProps,o=a.mode,f={mode:f.mode,children:f.children},r===null?(o=n2(f,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=wr(r.child,f),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return cf(r,a,o);case 24:return ea(a),f=Zt(Mt),r===null?(g=p0(),g===null&&(g=nt,x=h0(),g.pooledCache=x,x.refCount++,x!==null&&(g.pooledCacheLanes|=o),g=x),a.memoizedState={parent:f,cache:g},C0(a),ri(a,Mt,g)):((r.lanes&o)!==0&&(v0(r,a),Fo(a,null,null,o),zo()),g=r.memoizedState,x=a.memoizedState,g.parent!==f?(g={parent:f,cache:f},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),ri(a,Mt,f)):(f=x.cache,ri(a,Mt,f),f!==g.cache&&d0(a,[Mt],o,!0))),zt(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Nr(r){r.flags|=4}function vf(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Ad(a)){if(a=Nn.current,a!==null&&((Ie&4194048)===Ie?ir!==null:(Ie&62914560)!==Ie&&(Ie&536870912)===0||a!==ir))throw Po=g0,e9;r.flags|=8192}}function r2(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?q8():536870912,r.lanes|=a,ps|=a)}function Yo(r,a){if(!Ye)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function ht(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,f=0;if(a)for(var g=r.child;g!==null;)o|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)o|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=f,r.childLanes=o,a}function BE(r,a,o){var f=a.pendingProps;switch(l0(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(a),null;case 1:return ht(a),null;case 3:return o=a.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),Ar(Mt),be(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(To(a)?Nr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,q5())),ht(a),null;case 26:return o=a.memoizedState,r===null?(Nr(a),o!==null?(ht(a),vf(a,o)):(ht(a),a.flags&=-16777217)):o?o!==r.memoizedState?(Nr(a),ht(a),vf(a,o)):(ht(a),a.flags&=-16777217):(r.memoizedProps!==f&&Nr(a),ht(a),a.flags&=-16777217),null;case 27:lt(a),o=ce.current;var g=a.type;if(r!==null&&a.stateNode!=null)r.memoizedProps!==f&&Nr(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return ht(a),null}r=ee.current,To(a)?$5(a):(r=vd(g,f,o),a.stateNode=r,Nr(a))}return ht(a),null;case 5:if(lt(a),o=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&Nr(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return ht(a),null}if(r=ee.current,To(a))$5(a);else{switch(g=g2(ce.current),r){case 1:r=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=g.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof f.is=="string"?g.createElement("select",{is:f.is}):g.createElement("select"),f.multiple?r.multiple=!0:f.size&&(r.size=f.size);break;default:r=typeof f.is=="string"?g.createElement(o,{is:f.is}):g.createElement(o)}}r[It]=a,r[tn]=f;e:for(g=a.child;g!==null;){if(g.tag===5||g.tag===6)r.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===a)break e;for(;g.sibling===null;){if(g.return===null||g.return===a)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}a.stateNode=r;e:switch(Bt(r,o,f),o){case"button":case"input":case"select":case"textarea":r=!!f.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Nr(a)}}return ht(a),a.flags&=-16777217,null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==f&&Nr(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(i(166));if(r=ce.current,To(a)){if(r=a.stateNode,o=a.memoizedProps,f=null,g=qt,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[It]=a,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||fd(r.nodeValue,o)),r||Xi(a)}else r=g2(r).createTextNode(f),r[It]=a,a.stateNode=r}return ht(a),null;case 13:if(f=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=To(a),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[It]=a}else No(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ht(a),g=!1}else g=q5(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(Lr(a),a):(Lr(a),null)}if(Lr(a),(a.flags&128)!==0)return a.lanes=o,a;if(o=f!==null,r=r!==null&&r.memoizedState!==null,o){f=a.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool);var x=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),x!==g&&(f.flags|=2048)}return o!==r&&o&&(a.child.flags|=8192),r2(a,a.updateQueue),ht(a),null;case 4:return be(),r===null&&y3(a.stateNode.containerInfo),ht(a),null;case 10:return Ar(a.type),ht(a),null;case 19:if(F(Lt),g=a.memoizedState,g===null)return ht(a),null;if(f=(a.flags&128)!==0,x=g.rendering,x===null)if(f)Yo(g,!1);else{if(gt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(x=Xl(r),x!==null){for(a.flags|=128,Yo(g,!1),r=x.updateQueue,a.updateQueue=r,r2(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)G5(o,r),o=o.sibling;return G(Lt,Lt.current&1|2),a.child}r=r.sibling}g.tail!==null&&en()>s2&&(a.flags|=128,f=!0,Yo(g,!1),a.lanes=4194304)}else{if(!f)if(r=Xl(x),r!==null){if(a.flags|=128,f=!0,r=r.updateQueue,a.updateQueue=r,r2(a,r),Yo(g,!0),g.tail===null&&g.tailMode==="hidden"&&!x.alternate&&!Ye)return ht(a),null}else 2*en()-g.renderingStartTime>s2&&o!==536870912&&(a.flags|=128,f=!0,Yo(g,!1),a.lanes=4194304);g.isBackwards?(x.sibling=a.child,a.child=x):(r=g.last,r!==null?r.sibling=x:a.child=x,g.last=x)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=en(),a.sibling=null,r=Lt.current,G(Lt,f?r&1|2:r&1),a):(ht(a),null);case 22:case 23:return Lr(a),w0(),f=a.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?(o&536870912)!==0&&(a.flags&128)===0&&(ht(a),a.subtreeFlags&6&&(a.flags|=8192)):ht(a),o=a.updateQueue,o!==null&&r2(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==o&&(a.flags|=2048),r!==null&&F(ta),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Ar(Mt),ht(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function UE(r,a){switch(l0(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Ar(Mt),be(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return lt(a),null;case 13:if(Lr(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));No()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return F(Lt),null;case 4:return be(),null;case 10:return Ar(a.type),null;case 22:case 23:return Lr(a),w0(),r!==null&&F(ta),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Ar(Mt),null;case 25:return null;default:return null}}function xf(r,a){switch(l0(a),a.tag){case 3:Ar(Mt),be();break;case 26:case 27:case 5:lt(a);break;case 4:be();break;case 13:Lr(a);break;case 19:F(Lt);break;case 10:Ar(a.type);break;case 22:case 23:Lr(a),w0(),r!==null&&F(ta);break;case 24:Ar(Mt)}}function $o(r,a){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var g=f.next;o=g;do{if((o.tag&r)===r){f=void 0;var x=o.create,A=o.inst;f=x(),A.destroy=f}o=o.next}while(o!==g)}}catch(N){et(a,a.return,N)}}function ui(r,a,o){try{var f=a.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var x=g.next;f=x;do{if((f.tag&r)===r){var A=f.inst,N=A.destroy;if(N!==void 0){A.destroy=void 0,g=a;var P=o,$=N;try{$()}catch(re){et(g,P,re)}}}f=f.next}while(f!==x)}}catch(re){et(a,a.return,re)}}function yf(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{s9(a,o)}catch(f){et(r,r.return,f)}}}function bf(r,a,o){o.props=ra(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(f){et(r,a,f)}}function Wo(r,a){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var f=r.stateNode;break;case 30:f=r.stateNode;break;default:f=r.stateNode}typeof o=="function"?r.refCleanup=o(f):o.current=f}}catch(g){et(r,a,g)}}function ar(r,a){var o=r.ref,f=r.refCleanup;if(o!==null)if(typeof f=="function")try{f()}catch(g){et(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){et(r,a,g)}else o.current=null}function wf(r){var a=r.type,o=r.memoizedProps,f=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&f.focus();break e;case"img":o.src?f.src=o.src:o.srcSet&&(f.srcset=o.srcSet)}}catch(g){et(r,r.return,g)}}function K0(r,a,o){try{var f=r.stateNode;lj(f,r.type,o,a),f[tn]=a}catch(g){et(r,r.return,g)}}function Sf(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&vi(r.type)||r.tag===4}function Q0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Sf(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&vi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function X0(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=p2));else if(f!==4&&(f===27&&vi(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(X0(r,a,o),r=r.sibling;r!==null;)X0(r,a,o),r=r.sibling}function i2(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(f!==4&&(f===27&&vi(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(i2(r,a,o),r=r.sibling;r!==null;)i2(r,a,o),r=r.sibling}function Ef(r){var a=r.stateNode,o=r.memoizedProps;try{for(var f=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);Bt(a,f,o),a[It]=r,a[tn]=o}catch(x){et(r,r.return,x)}}var Rr=!1,yt=!1,J0=!1,jf=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function HE(r,a){if(r=r.containerInfo,S3=w2,r=_5(r),Qu(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var f=o.getSelection&&o.getSelection();if(f&&f.rangeCount!==0){o=f.anchorNode;var g=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{o.nodeType,x.nodeType}catch{o=null;break e}var A=0,N=-1,P=-1,$=0,re=0,oe=r,W=null;t:for(;;){for(var K;oe!==o||g!==0&&oe.nodeType!==3||(N=A+g),oe!==x||f!==0&&oe.nodeType!==3||(P=A+f),oe.nodeType===3&&(A+=oe.nodeValue.length),(K=oe.firstChild)!==null;)W=oe,oe=K;for(;;){if(oe===r)break t;if(W===o&&++$===g&&(N=A),W===x&&++re===f&&(P=A),(K=oe.nextSibling)!==null)break;oe=W,W=oe.parentNode}oe=K}o=N===-1||P===-1?null:{start:N,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(E3={focusedElem:r,selectionRange:o},w2=!1,Ot=a;Ot!==null;)if(a=Ot,r=a.child,(a.subtreeFlags&1024)!==0&&r!==null)r.return=a,Ot=r;else for(;Ot!==null;){switch(a=Ot,x=a.alternate,r=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&x!==null){r=void 0,o=a,g=x.memoizedProps,x=x.memoizedState,f=o.stateNode;try{var Ae=ra(o.type,g,o.elementType===o.type);r=f.getSnapshotBeforeUpdate(Ae,x),f.__reactInternalSnapshotBeforeUpdate=r}catch(Se){et(o,o.return,Se)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)M3(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":M3(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Ot=r;break}Ot=a.return}}function Af(r,a,o){var f=o.flags;switch(o.tag){case 0:case 11:case 15:fi(r,o),f&4&&$o(5,o);break;case 1:if(fi(r,o),f&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(A){et(o,o.return,A)}else{var g=ra(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(A){et(o,o.return,A)}}f&64&&yf(o),f&512&&Wo(o,o.return);break;case 3:if(fi(r,o),f&64&&(r=o.updateQueue,r!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{s9(r,a)}catch(A){et(o,o.return,A)}}break;case 27:a===null&&f&4&&Ef(o);case 26:case 5:fi(r,o),a===null&&f&4&&wf(o),f&512&&Wo(o,o.return);break;case 12:fi(r,o);break;case 13:fi(r,o),f&4&&Tf(r,o),f&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=QE.bind(null,o),pj(r,o))));break;case 22:if(f=o.memoizedState!==null||Rr,!f){a=a!==null&&a.memoizedState!==null||yt,g=Rr;var x=yt;Rr=f,(yt=a)&&!x?di(r,o,(o.subtreeFlags&8772)!==0):fi(r,o),Rr=g,yt=x}break;case 30:break;default:fi(r,o)}}function Mf(r){var a=r.alternate;a!==null&&(r.alternate=null,Mf(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Du(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var ut=null,an=!1;function Dr(r,a,o){for(o=o.child;o!==null;)Lf(r,a,o),o=o.sibling}function Lf(r,a,o){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(Le,o)}catch{}switch(o.tag){case 26:yt||ar(o,a),Dr(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:yt||ar(o,a);var f=ut,g=an;vi(o.type)&&(ut=o.stateNode,an=!1),Dr(r,a,o),r1(o.stateNode),ut=f,an=g;break;case 5:yt||ar(o,a);case 6:if(f=ut,g=an,ut=null,Dr(r,a,o),ut=f,an=g,ut!==null)if(an)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(o.stateNode)}catch(x){et(o,a,x)}else try{ut.removeChild(o.stateNode)}catch(x){et(o,a,x)}break;case 18:ut!==null&&(an?(r=ut,gd(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),f1(r)):gd(ut,o.stateNode));break;case 4:f=ut,g=an,ut=o.stateNode.containerInfo,an=!0,Dr(r,a,o),ut=f,an=g;break;case 0:case 11:case 14:case 15:yt||ui(2,o,a),yt||ui(4,o,a),Dr(r,a,o);break;case 1:yt||(ar(o,a),f=o.stateNode,typeof f.componentWillUnmount=="function"&&bf(o,a,f)),Dr(r,a,o);break;case 21:Dr(r,a,o);break;case 22:yt=(f=yt)||o.memoizedState!==null,Dr(r,a,o),yt=f;break;default:Dr(r,a,o)}}function Tf(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{f1(r)}catch(o){et(a,a.return,o)}}function IE(r){switch(r.tag){case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new jf),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new jf),a;default:throw Error(i(435,r.tag))}}function e3(r,a){var o=IE(r);a.forEach(function(f){var g=XE.bind(null,r,f);o.has(f)||(o.add(f),f.then(g,g))})}function gn(r,a){var o=a.deletions;if(o!==null)for(var f=0;f<o.length;f++){var g=o[f],x=r,A=a,N=A;e:for(;N!==null;){switch(N.tag){case 27:if(vi(N.type)){ut=N.stateNode,an=!1;break e}break;case 5:ut=N.stateNode,an=!1;break e;case 3:case 4:ut=N.stateNode.containerInfo,an=!0;break e}N=N.return}if(ut===null)throw Error(i(160));Lf(x,A,g),ut=null,an=!1,x=g.alternate,x!==null&&(x.return=null),g.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Nf(a,r),a=a.sibling}var Zn=null;function Nf(r,a){var o=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:gn(a,r),Cn(r),f&4&&(ui(3,r,r.return),$o(3,r),ui(5,r,r.return));break;case 1:gn(a,r),Cn(r),f&512&&(yt||o===null||ar(o,o.return)),f&64&&Rr&&(r=r.updateQueue,r!==null&&(f=r.callbacks,f!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?f:o.concat(f))));break;case 26:var g=Zn;if(gn(a,r),Cn(r),f&512&&(yt||o===null||ar(o,o.return)),f&4){var x=o!==null?o.memoizedState:null;if(f=r.memoizedState,o===null)if(f===null)if(r.stateNode===null){e:{f=r.type,o=r.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":x=g.getElementsByTagName("title")[0],(!x||x[vo]||x[It]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=g.createElement(f),g.head.insertBefore(x,g.querySelector("head > title"))),Bt(x,f,o),x[It]=r,Dt(x),f=x;break e;case"link":var A=Ed("link","href",g).get(f+(o.href||""));if(A){for(var N=0;N<A.length;N++)if(x=A[N],x.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&x.getAttribute("rel")===(o.rel==null?null:o.rel)&&x.getAttribute("title")===(o.title==null?null:o.title)&&x.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){A.splice(N,1);break t}}x=g.createElement(f),Bt(x,f,o),g.head.appendChild(x);break;case"meta":if(A=Ed("meta","content",g).get(f+(o.content||""))){for(N=0;N<A.length;N++)if(x=A[N],x.getAttribute("content")===(o.content==null?null:""+o.content)&&x.getAttribute("name")===(o.name==null?null:o.name)&&x.getAttribute("property")===(o.property==null?null:o.property)&&x.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&x.getAttribute("charset")===(o.charSet==null?null:o.charSet)){A.splice(N,1);break t}}x=g.createElement(f),Bt(x,f,o),g.head.appendChild(x);break;default:throw Error(i(468,f))}x[It]=r,Dt(x),f=x}r.stateNode=f}else jd(g,r.type,r.stateNode);else r.stateNode=Sd(g,f,r.memoizedProps);else x!==f?(x===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):x.count--,f===null?jd(g,r.type,r.stateNode):Sd(g,f,r.memoizedProps)):f===null&&r.stateNode!==null&&K0(r,r.memoizedProps,o.memoizedProps)}break;case 27:gn(a,r),Cn(r),f&512&&(yt||o===null||ar(o,o.return)),o!==null&&f&4&&K0(r,r.memoizedProps,o.memoizedProps);break;case 5:if(gn(a,r),Cn(r),f&512&&(yt||o===null||ar(o,o.return)),r.flags&32){g=r.stateNode;try{$a(g,"")}catch(K){et(r,r.return,K)}}f&4&&r.stateNode!=null&&(g=r.memoizedProps,K0(r,g,o!==null?o.memoizedProps:g)),f&1024&&(J0=!0);break;case 6:if(gn(a,r),Cn(r),f&4){if(r.stateNode===null)throw Error(i(162));f=r.memoizedProps,o=r.stateNode;try{o.nodeValue=f}catch(K){et(r,r.return,K)}}break;case 3:if(x2=null,g=Zn,Zn=C2(a.containerInfo),gn(a,r),Zn=g,Cn(r),f&4&&o!==null&&o.memoizedState.isDehydrated)try{f1(a.containerInfo)}catch(K){et(r,r.return,K)}J0&&(J0=!1,Rf(r));break;case 4:f=Zn,Zn=C2(r.stateNode.containerInfo),gn(a,r),Cn(r),Zn=f;break;case 12:gn(a,r),Cn(r);break;case 13:gn(a,r),Cn(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(s3=en()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,e3(r,f)));break;case 22:g=r.memoizedState!==null;var P=o!==null&&o.memoizedState!==null,$=Rr,re=yt;if(Rr=$||g,yt=re||P,gn(a,r),yt=re,Rr=$,Cn(r),f&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||P||Rr||yt||ia(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){P=o=a;try{if(x=P.stateNode,g)A=x.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{N=P.stateNode;var oe=P.memoizedProps.style,W=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;N.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(K){et(P,P.return,K)}}}else if(a.tag===6){if(o===null){P=a;try{P.stateNode.nodeValue=g?"":P.memoizedProps}catch(K){et(P,P.return,K)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=r.updateQueue,f!==null&&(o=f.retryQueue,o!==null&&(f.retryQueue=null,e3(r,o))));break;case 19:gn(a,r),Cn(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,e3(r,f)));break;case 30:break;case 21:break;default:gn(a,r),Cn(r)}}function Cn(r){var a=r.flags;if(a&2){try{for(var o,f=r.return;f!==null;){if(Sf(f)){o=f;break}f=f.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var g=o.stateNode,x=Q0(r);i2(r,x,g);break;case 5:var A=o.stateNode;o.flags&32&&($a(A,""),o.flags&=-33);var N=Q0(r);i2(r,N,A);break;case 3:case 4:var P=o.stateNode.containerInfo,$=Q0(r);X0(r,$,P);break;default:throw Error(i(161))}}catch(re){et(r,r.return,re)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Rf(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Rf(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function fi(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Af(r,a.alternate,a),a=a.sibling}function ia(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:ui(4,a,a.return),ia(a);break;case 1:ar(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&bf(a,a.return,o),ia(a);break;case 27:r1(a.stateNode);case 26:case 5:ar(a,a.return),ia(a);break;case 22:a.memoizedState===null&&ia(a);break;case 30:ia(a);break;default:ia(a)}r=r.sibling}}function di(r,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,g=r,x=a,A=x.flags;switch(x.tag){case 0:case 11:case 15:di(g,x,o),$o(4,x);break;case 1:if(di(g,x,o),f=x,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch($){et(f,f.return,$)}if(f=x,g=f.updateQueue,g!==null){var N=f.stateNode;try{var P=g.shared.hiddenCallbacks;if(P!==null)for(g.shared.hiddenCallbacks=null,g=0;g<P.length;g++)a9(P[g],N)}catch($){et(f,f.return,$)}}o&&A&64&&yf(x),Wo(x,x.return);break;case 27:Ef(x);case 26:case 5:di(g,x,o),o&&f===null&&A&4&&wf(x),Wo(x,x.return);break;case 12:di(g,x,o);break;case 13:di(g,x,o),o&&A&4&&Tf(g,x);break;case 22:x.memoizedState===null&&di(g,x,o),Wo(x,x.return);break;case 30:break;default:di(g,x,o)}a=a.sibling}}function t3(r,a){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&ko(o))}function n3(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&ko(r))}function sr(r,a,o,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Df(r,a,o,f),a=a.sibling}function Df(r,a,o,f){var g=a.flags;switch(a.tag){case 0:case 11:case 15:sr(r,a,o,f),g&2048&&$o(9,a);break;case 1:sr(r,a,o,f);break;case 3:sr(r,a,o,f),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&ko(r)));break;case 12:if(g&2048){sr(r,a,o,f),r=a.stateNode;try{var x=a.memoizedProps,A=x.id,N=x.onPostCommit;typeof N=="function"&&N(A,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(P){et(a,a.return,P)}}else sr(r,a,o,f);break;case 13:sr(r,a,o,f);break;case 23:break;case 22:x=a.stateNode,A=a.alternate,a.memoizedState!==null?x._visibility&2?sr(r,a,o,f):qo(r,a):x._visibility&2?sr(r,a,o,f):(x._visibility|=2,ds(r,a,o,f,(a.subtreeFlags&10256)!==0)),g&2048&&t3(A,a);break;case 24:sr(r,a,o,f),g&2048&&n3(a.alternate,a);break;default:sr(r,a,o,f)}}function ds(r,a,o,f,g){for(g=g&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var x=r,A=a,N=o,P=f,$=A.flags;switch(A.tag){case 0:case 11:case 15:ds(x,A,N,P,g),$o(8,A);break;case 23:break;case 22:var re=A.stateNode;A.memoizedState!==null?re._visibility&2?ds(x,A,N,P,g):qo(x,A):(re._visibility|=2,ds(x,A,N,P,g)),g&&$&2048&&t3(A.alternate,A);break;case 24:ds(x,A,N,P,g),g&&$&2048&&n3(A.alternate,A);break;default:ds(x,A,N,P,g)}a=a.sibling}}function qo(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=r,f=a,g=f.flags;switch(f.tag){case 22:qo(o,f),g&2048&&t3(f.alternate,f);break;case 24:qo(o,f),g&2048&&n3(f.alternate,f);break;default:qo(o,f)}a=a.sibling}}var Ko=8192;function hs(r){if(r.subtreeFlags&Ko)for(r=r.child;r!==null;)kf(r),r=r.sibling}function kf(r){switch(r.tag){case 26:hs(r),r.flags&Ko&&r.memoizedState!==null&&Lj(Zn,r.memoizedState,r.memoizedProps);break;case 5:hs(r);break;case 3:case 4:var a=Zn;Zn=C2(r.stateNode.containerInfo),hs(r),Zn=a;break;case 22:r.memoizedState===null&&(a=r.alternate,a!==null&&a.memoizedState!==null?(a=Ko,Ko=16777216,hs(r),Ko=a):hs(r));break;default:hs(r)}}function Of(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Qo(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];Ot=f,Pf(f,r)}Of(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)_f(r),r=r.sibling}function _f(r){switch(r.tag){case 0:case 11:case 15:Qo(r),r.flags&2048&&ui(9,r,r.return);break;case 3:Qo(r);break;case 12:Qo(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,a2(r)):Qo(r);break;default:Qo(r)}}function a2(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];Ot=f,Pf(f,r)}Of(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:ui(8,a,a.return),a2(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,a2(a));break;default:a2(a)}r=r.sibling}}function Pf(r,a){for(;Ot!==null;){var o=Ot;switch(o.tag){case 0:case 11:case 15:ui(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var f=o.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:ko(o.memoizedState.cache)}if(f=o.child,f!==null)f.return=o,Ot=f;else e:for(o=r;Ot!==null;){f=Ot;var g=f.sibling,x=f.return;if(Mf(f),f===o){Ot=null;break e}if(g!==null){g.return=x,Ot=g;break e}Ot=x}}}var ZE={getCacheForType:function(r){var a=Zt(Mt),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o}},GE=typeof WeakMap=="function"?WeakMap:Map,qe=0,nt=null,ze=null,Ie=0,Ke=0,vn=null,hi=!1,ms=!1,r3=!1,kr=0,gt=0,mi=0,aa=0,i3=0,Rn=0,ps=0,Xo=null,sn=null,a3=!1,s3=0,s2=1/0,o2=null,pi=null,Ft=0,gi=null,gs=null,Cs=0,o3=0,l3=null,Vf=null,Jo=0,c3=null;function xn(){if((qe&2)!==0&&Ie!==0)return Ie&-Ie;if(_.T!==null){var r=is;return r!==0?r:g3()}return X8()}function zf(){Rn===0&&(Rn=(Ie&536870912)===0||Ye?W8():536870912);var r=Nn.current;return r!==null&&(r.flags|=32),Rn}function yn(r,a,o){(r===nt&&(Ke===2||Ke===9)||r.cancelPendingCommit!==null)&&(vs(r,0),Ci(r,Ie,Rn,!1)),Co(r,o),((qe&2)===0||r!==nt)&&(r===nt&&((qe&2)===0&&(aa|=o),gt===4&&Ci(r,Ie,Rn,!1)),or(r))}function Ff(r,a,o){if((qe&6)!==0)throw Error(i(327));var f=!o&&(a&124)===0&&(a&r.expiredLanes)===0||go(r,a),g=f?WE(r,a):d3(r,a,!0),x=f;do{if(g===0){ms&&!f&&Ci(r,a,0,!1);break}else{if(o=r.current.alternate,x&&!YE(o)){g=d3(r,a,!1),x=!1;continue}if(g===2){if(x=a,r.errorRecoveryDisabledLanes&x)var A=0;else A=r.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){a=A;e:{var N=r;g=Xo;var P=N.current.memoizedState.isDehydrated;if(P&&(vs(N,A).flags|=256),A=d3(N,A,!1),A!==2){if(r3&&!P){N.errorRecoveryDisabledLanes|=x,aa|=x,g=4;break e}x=sn,sn=g,x!==null&&(sn===null?sn=x:sn.push.apply(sn,x))}g=A}if(x=!1,g!==2)continue}}if(g===1){vs(r,0),Ci(r,a,0,!0);break}e:{switch(f=r,x=g,x){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ci(f,a,Rn,!hi);break e;case 2:sn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=s3+300-en(),10<g)){if(Ci(f,a,Rn,!hi),vl(f,0,!0)!==0)break e;f.timeoutHandle=md(Bf.bind(null,f,o,sn,o2,a3,a,Rn,aa,ps,hi,x,2,-0,0),g);break e}Bf(f,o,sn,o2,a3,a,Rn,aa,ps,hi,x,0,-0,0)}}break}while(!0);or(r)}function Bf(r,a,o,f,g,x,A,N,P,$,re,oe,W,K){if(r.timeoutHandle=-1,oe=a.subtreeFlags,(oe&8192||(oe&16785408)===16785408)&&(s1={stylesheets:null,count:0,unsuspend:Mj},kf(a),oe=Tj(),oe!==null)){r.cancelPendingCommit=oe($f.bind(null,r,a,x,o,f,g,A,N,P,re,1,W,K)),Ci(r,x,A,!$);return}$f(r,a,x,o,f,g,A,N,P)}function YE(r){for(var a=r;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var f=0;f<o.length;f++){var g=o[f],x=g.getSnapshot;g=g.value;try{if(!mn(x(),g))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ci(r,a,o,f){a&=~i3,a&=~aa,r.suspendedLanes|=a,r.pingedLanes&=~a,f&&(r.warmLanes|=a),f=r.expirationTimes;for(var g=a;0<g;){var x=31-dt(g),A=1<<x;f[x]=-1,g&=~A}o!==0&&K8(r,o,a)}function l2(){return(qe&6)===0?(e1(0),!1):!0}function u3(){if(ze!==null){if(Ke===0)var r=ze.return;else r=ze,jr=Ji=null,M0(r),us=null,Zo=0,r=ze;for(;r!==null;)xf(r.alternate,r),r=r.return;ze=null}}function vs(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,uj(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),u3(),nt=r,ze=o=wr(r.current,null),Ie=a,Ke=0,vn=null,hi=!1,ms=go(r,a),r3=!1,ps=Rn=i3=aa=mi=gt=0,sn=Xo=null,a3=!1,(a&8)!==0&&(a|=a&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=a;0<f;){var g=31-dt(f),x=1<<g;a|=r[g],f&=~x}return kr=a,Nl(),o}function Uf(r,a){Oe=null,_.H=ql,a===_o||a===Fl?(a=r9(),Ke=3):a===e9?(a=r9(),Ke=4):Ke=a===af?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,vn=a,ze===null&&(gt=1,e2(r,An(a,r.current)))}function Hf(){var r=_.H;return _.H=ql,r===null?ql:r}function If(){var r=_.A;return _.A=ZE,r}function f3(){gt=4,hi||(Ie&4194048)!==Ie&&Nn.current!==null||(ms=!0),(mi&134217727)===0&&(aa&134217727)===0||nt===null||Ci(nt,Ie,Rn,!1)}function d3(r,a,o){var f=qe;qe|=2;var g=Hf(),x=If();(nt!==r||Ie!==a)&&(o2=null,vs(r,a)),a=!1;var A=gt;e:do try{if(Ke!==0&&ze!==null){var N=ze,P=vn;switch(Ke){case 8:u3(),A=6;break e;case 3:case 2:case 9:case 6:Nn.current===null&&(a=!0);var $=Ke;if(Ke=0,vn=null,xs(r,N,P,$),o&&ms){A=0;break e}break;default:$=Ke,Ke=0,vn=null,xs(r,N,P,$)}}$E(),A=gt;break}catch(re){Uf(r,re)}while(!0);return a&&r.shellSuspendCounter++,jr=Ji=null,qe=f,_.H=g,_.A=x,ze===null&&(nt=null,Ie=0,Nl()),A}function $E(){for(;ze!==null;)Zf(ze)}function WE(r,a){var o=qe;qe|=2;var f=Hf(),g=If();nt!==r||Ie!==a?(o2=null,s2=en()+500,vs(r,a)):ms=go(r,a);e:do try{if(Ke!==0&&ze!==null){a=ze;var x=vn;t:switch(Ke){case 1:Ke=0,vn=null,xs(r,a,x,1);break;case 2:case 9:if(t9(x)){Ke=0,vn=null,Gf(a);break}a=function(){Ke!==2&&Ke!==9||nt!==r||(Ke=7),or(r)},x.then(a,a);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:t9(x)?(Ke=0,vn=null,Gf(a)):(Ke=0,vn=null,xs(r,a,x,7));break;case 5:var A=null;switch(ze.tag){case 26:A=ze.memoizedState;case 5:case 27:var N=ze;if(!A||Ad(A)){Ke=0,vn=null;var P=N.sibling;if(P!==null)ze=P;else{var $=N.return;$!==null?(ze=$,c2($)):ze=null}break t}}Ke=0,vn=null,xs(r,a,x,5);break;case 6:Ke=0,vn=null,xs(r,a,x,6);break;case 8:u3(),gt=6;break e;default:throw Error(i(462))}}qE();break}catch(re){Uf(r,re)}while(!0);return jr=Ji=null,_.H=f,_.A=g,qe=o,ze!==null?0:(nt=null,Ie=0,Nl(),gt)}function qE(){for(;ze!==null&&!uo();)Zf(ze)}function Zf(r){var a=Cf(r.alternate,r,kr);r.memoizedProps=r.pendingProps,a===null?c2(r):ze=a}function Gf(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=ff(o,a,a.pendingProps,a.type,void 0,Ie);break;case 11:a=ff(o,a,a.pendingProps,a.type.render,a.ref,Ie);break;case 5:M0(a);default:xf(o,a),a=ze=G5(a,kr),a=Cf(o,a,kr)}r.memoizedProps=r.pendingProps,a===null?c2(r):ze=a}function xs(r,a,o,f){jr=Ji=null,M0(a),us=null,Zo=0;var g=a.return;try{if(zE(r,g,a,o,Ie)){gt=1,e2(r,An(o,r.current)),ze=null;return}}catch(x){if(g!==null)throw ze=g,x;gt=1,e2(r,An(o,r.current)),ze=null;return}a.flags&32768?(Ye||f===1?r=!0:ms||(Ie&536870912)!==0?r=!1:(hi=r=!0,(f===2||f===9||f===3||f===6)&&(f=Nn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Yf(a,r)):c2(a)}function c2(r){var a=r;do{if((a.flags&32768)!==0){Yf(a,hi);return}r=a.return;var o=BE(a.alternate,a,kr);if(o!==null){ze=o;return}if(a=a.sibling,a!==null){ze=a;return}ze=a=r}while(a!==null);gt===0&&(gt=5)}function Yf(r,a){do{var o=UE(r.alternate,r);if(o!==null){o.flags&=32767,ze=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){ze=r;return}ze=r=o}while(r!==null);gt=6,ze=null}function $f(r,a,o,f,g,x,A,N,P){r.cancelPendingCommit=null;do u2();while(Ft!==0);if((qe&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(x=a.lanes|a.childLanes,x|=n0,MS(r,o,x,A,N,P),r===nt&&(ze=nt=null,Ie=0),gs=a,gi=r,Cs=o,o3=x,l3=g,Vf=f,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,JE(za,function(){return Xf(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||f){f=_.T,_.T=null,g=U.p,U.p=2,A=qe,qe|=4;try{HE(r,a,o)}finally{qe=A,U.p=g,_.T=f}}Ft=1,Wf(),qf(),Kf()}}function Wf(){if(Ft===1){Ft=0;var r=gi,a=gs,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=_.T,_.T=null;var f=U.p;U.p=2;var g=qe;qe|=4;try{Nf(a,r);var x=E3,A=_5(r.containerInfo),N=x.focusedElem,P=x.selectionRange;if(A!==N&&N&&N.ownerDocument&&O5(N.ownerDocument.documentElement,N)){if(P!==null&&Qu(N)){var $=P.start,re=P.end;if(re===void 0&&(re=$),"selectionStart"in N)N.selectionStart=$,N.selectionEnd=Math.min(re,N.value.length);else{var oe=N.ownerDocument||document,W=oe&&oe.defaultView||window;if(W.getSelection){var K=W.getSelection(),Ae=N.textContent.length,Se=Math.min(P.start,Ae),Je=P.end===void 0?Se:Math.min(P.end,Ae);!K.extend&&Se>Je&&(A=Je,Je=Se,Se=A);var H=k5(N,Se),B=k5(N,Je);if(H&&B&&(K.rangeCount!==1||K.anchorNode!==H.node||K.anchorOffset!==H.offset||K.focusNode!==B.node||K.focusOffset!==B.offset)){var Y=oe.createRange();Y.setStart(H.node,H.offset),K.removeAllRanges(),Se>Je?(K.addRange(Y),K.extend(B.node,B.offset)):(Y.setEnd(B.node,B.offset),K.addRange(Y))}}}}for(oe=[],K=N;K=K.parentNode;)K.nodeType===1&&oe.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<oe.length;N++){var ae=oe[N];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}w2=!!S3,E3=S3=null}finally{qe=g,U.p=f,_.T=o}}r.current=a,Ft=2}}function qf(){if(Ft===2){Ft=0;var r=gi,a=gs,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=_.T,_.T=null;var f=U.p;U.p=2;var g=qe;qe|=4;try{Af(r,a.alternate,a)}finally{qe=g,U.p=f,_.T=o}}Ft=3}}function Kf(){if(Ft===4||Ft===3){Ft=0,fo();var r=gi,a=gs,o=Cs,f=Vf;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ft=5:(Ft=0,gs=gi=null,Qf(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(pi=null),Nu(o),a=a.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(Le,a,void 0,(a.current.flags&128)===128)}catch{}if(f!==null){a=_.T,g=U.p,U.p=2,_.T=null;try{for(var x=r.onRecoverableError,A=0;A<f.length;A++){var N=f[A];x(N.value,{componentStack:N.stack})}}finally{_.T=a,U.p=g}}(Cs&3)!==0&&u2(),or(r),g=r.pendingLanes,(o&4194090)!==0&&(g&42)!==0?r===c3?Jo++:(Jo=0,c3=r):Jo=0,e1(0)}}function Qf(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,ko(a)))}function u2(r){return Wf(),qf(),Kf(),Xf()}function Xf(){if(Ft!==5)return!1;var r=gi,a=o3;o3=0;var o=Nu(Cs),f=_.T,g=U.p;try{U.p=32>o?32:o,_.T=null,o=l3,l3=null;var x=gi,A=Cs;if(Ft=0,gs=gi=null,Cs=0,(qe&6)!==0)throw Error(i(331));var N=qe;if(qe|=4,_f(x.current),Df(x,x.current,A,o),qe=N,e1(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(Le,x)}catch{}return!0}finally{U.p=g,_.T=f,Qf(r,a)}}function Jf(r,a,o){a=An(o,a),a=U0(r.stateNode,a,2),r=si(r,a,2),r!==null&&(Co(r,2),or(r))}function et(r,a,o){if(r.tag===3)Jf(r,r,o);else for(;a!==null;){if(a.tag===3){Jf(a,r,o);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(pi===null||!pi.has(f))){r=An(o,r),o=nf(2),f=si(a,o,2),f!==null&&(rf(o,f,a,r),Co(f,2),or(f));break}}a=a.return}}function h3(r,a,o){var f=r.pingCache;if(f===null){f=r.pingCache=new GE;var g=new Set;f.set(a,g)}else g=f.get(a),g===void 0&&(g=new Set,f.set(a,g));g.has(o)||(r3=!0,g.add(o),r=KE.bind(null,r,a,o),a.then(r,r))}function KE(r,a,o){var f=r.pingCache;f!==null&&f.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,nt===r&&(Ie&o)===o&&(gt===4||gt===3&&(Ie&62914560)===Ie&&300>en()-s3?(qe&2)===0&&vs(r,0):i3|=o,ps===Ie&&(ps=0)),or(r)}function ed(r,a){a===0&&(a=q8()),r=es(r,a),r!==null&&(Co(r,a),or(r))}function QE(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),ed(r,o)}function XE(r,a){var o=0;switch(r.tag){case 13:var f=r.stateNode,g=r.memoizedState;g!==null&&(o=g.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(i(314))}f!==null&&f.delete(a),ed(r,o)}function JE(r,a){return Vt(r,a)}var f2=null,ys=null,m3=!1,d2=!1,p3=!1,sa=0;function or(r){r!==ys&&r.next===null&&(ys===null?f2=ys=r:ys=ys.next=r),d2=!0,m3||(m3=!0,tj())}function e1(r,a){if(!p3&&d2){p3=!0;do for(var o=!1,f=f2;f!==null;){if(r!==0){var g=f.pendingLanes;if(g===0)var x=0;else{var A=f.suspendedLanes,N=f.pingedLanes;x=(1<<31-dt(42|r)+1)-1,x&=g&~(A&~N),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(o=!0,id(f,x))}else x=Ie,x=vl(f,f===nt?x:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(x&3)===0||go(f,x)||(o=!0,id(f,x));f=f.next}while(o);p3=!1}}function ej(){td()}function td(){d2=m3=!1;var r=0;sa!==0&&(cj()&&(r=sa),sa=0);for(var a=en(),o=null,f=f2;f!==null;){var g=f.next,x=nd(f,a);x===0?(f.next=null,o===null?f2=g:o.next=g,g===null&&(ys=o)):(o=f,(r!==0||(x&3)!==0)&&(d2=!0)),f=g}e1(r)}function nd(r,a){for(var o=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,x=r.pendingLanes&-62914561;0<x;){var A=31-dt(x),N=1<<A,P=g[A];P===-1?((N&o)===0||(N&f)!==0)&&(g[A]=AS(N,a)):P<=a&&(r.expiredLanes|=N),x&=~N}if(a=nt,o=Ie,o=vl(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f=r.callbackNode,o===0||r===a&&(Ke===2||Ke===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&ei(f),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||go(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(f!==null&&ei(f),Nu(o)){case 2:case 8:o=Cl;break;case 32:o=za;break;case 268435456:o=me;break;default:o=za}return f=rd.bind(null,r),o=Vt(o,f),r.callbackPriority=a,r.callbackNode=o,a}return f!==null&&f!==null&&ei(f),r.callbackPriority=2,r.callbackNode=null,2}function rd(r,a){if(Ft!==0&&Ft!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(u2()&&r.callbackNode!==o)return null;var f=Ie;return f=vl(r,r===nt?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(Ff(r,f,a),nd(r,en()),r.callbackNode!=null&&r.callbackNode===o?rd.bind(null,r):null)}function id(r,a){if(u2())return null;Ff(r,a,!0)}function tj(){fj(function(){(qe&6)!==0?Vt(Hn,ej):td()})}function g3(){return sa===0&&(sa=W8()),sa}function ad(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Sl(""+r)}function sd(r,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,r.id&&o.setAttribute("form",r.id),a.parentNode.insertBefore(o,a),r=new FormData(r),o.parentNode.removeChild(o),r}function nj(r,a,o,f,g){if(a==="submit"&&o&&o.stateNode===g){var x=ad((g[tn]||null).action),A=f.submitter;A&&(a=(a=A[tn]||null)?ad(a.formAction):A.getAttribute("formAction"),a!==null&&(x=a,A=null));var N=new Ml("action","action",null,f,g);r.push({event:N,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(sa!==0){var P=A?sd(g,A):new FormData(g);P0(o,{pending:!0,data:P,method:g.method,action:x},null,P)}}else typeof x=="function"&&(N.preventDefault(),P=A?sd(g,A):new FormData(g),P0(o,{pending:!0,data:P,method:g.method,action:x},x,P))},currentTarget:g}]})}}for(var C3=0;C3<t0.length;C3++){var v3=t0[C3],rj=v3.toLowerCase(),ij=v3[0].toUpperCase()+v3.slice(1);In(rj,"on"+ij)}In(z5,"onAnimationEnd"),In(F5,"onAnimationIteration"),In(B5,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(bE,"onTransitionRun"),In(wE,"onTransitionStart"),In(SE,"onTransitionCancel"),In(U5,"onTransitionEnd"),Za("onMouseEnter",["mouseout","mouseover"]),Za("onMouseLeave",["mouseout","mouseover"]),Za("onPointerEnter",["pointerout","pointerover"]),Za("onPointerLeave",["pointerout","pointerover"]),Zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var t1="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(" "),aj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(t1));function od(r,a){a=(a&4)!==0;for(var o=0;o<r.length;o++){var f=r[o],g=f.event;f=f.listeners;e:{var x=void 0;if(a)for(var A=f.length-1;0<=A;A--){var N=f[A],P=N.instance,$=N.currentTarget;if(N=N.listener,P!==x&&g.isPropagationStopped())break e;x=N,g.currentTarget=$;try{x(g)}catch(re){Jl(re)}g.currentTarget=null,x=P}else for(A=0;A<f.length;A++){if(N=f[A],P=N.instance,$=N.currentTarget,N=N.listener,P!==x&&g.isPropagationStopped())break e;x=N,g.currentTarget=$;try{x(g)}catch(re){Jl(re)}g.currentTarget=null,x=P}}}}function Fe(r,a){var o=a[Ru];o===void 0&&(o=a[Ru]=new Set);var f=r+"__bubble";o.has(f)||(ld(a,r,2,!1),o.add(f))}function x3(r,a,o){var f=0;a&&(f|=4),ld(o,r,f,a)}var h2="_reactListening"+Math.random().toString(36).slice(2);function y3(r){if(!r[h2]){r[h2]=!0,e5.forEach(function(o){o!=="selectionchange"&&(aj.has(o)||x3(o,!1,r),x3(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[h2]||(a[h2]=!0,x3("selectionchange",!1,a))}}function ld(r,a,o,f){switch(Dd(a)){case 2:var g=Dj;break;case 8:g=kj;break;default:g=O3}o=g.bind(null,a,o,r),g=void 0,!Hu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),f?g!==void 0?r.addEventListener(a,o,{capture:!0,passive:g}):r.addEventListener(a,o,!0):g!==void 0?r.addEventListener(a,o,{passive:g}):r.addEventListener(a,o,!1)}function b3(r,a,o,f,g){var x=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var A=f.tag;if(A===3||A===4){var N=f.stateNode.containerInfo;if(N===g)break;if(A===4)for(A=f.return;A!==null;){var P=A.tag;if((P===3||P===4)&&A.stateNode.containerInfo===g)return;A=A.return}for(;N!==null;){if(A=Ua(N),A===null)return;if(P=A.tag,P===5||P===6||P===26||P===27){f=x=A;continue e}N=N.parentNode}}f=f.return}m5(function(){var $=x,re=Bu(o),oe=[];e:{var W=H5.get(r);if(W!==void 0){var K=Ml,Ae=r;switch(r){case"keypress":if(jl(o)===0)break e;case"keydown":case"keyup":K=JS;break;case"focusin":Ae="focus",K=Yu;break;case"focusout":Ae="blur",K=Yu;break;case"beforeblur":case"afterblur":K=Yu;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=C5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=US;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=nE;break;case z5:case F5:case B5:K=ZS;break;case U5:K=iE;break;case"scroll":case"scrollend":K=FS;break;case"wheel":K=sE;break;case"copy":case"cut":case"paste":K=YS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=x5;break;case"toggle":case"beforetoggle":K=lE}var Se=(a&4)!==0,Je=!Se&&(r==="scroll"||r==="scrollend"),H=Se?W!==null?W+"Capture":null:W;Se=[];for(var B=$,Y;B!==null;){var ae=B;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||H===null||(ae=yo(B,H),ae!=null&&Se.push(n1(B,ae,Y))),Je)break;B=B.return}0<Se.length&&(W=new K(W,Ae,null,o,re),oe.push({event:W,listeners:Se}))}}if((a&7)===0){e:{if(W=r==="mouseover"||r==="pointerover",K=r==="mouseout"||r==="pointerout",W&&o!==Fu&&(Ae=o.relatedTarget||o.fromElement)&&(Ua(Ae)||Ae[Ba]))break e;if((K||W)&&(W=re.window===re?re:(W=re.ownerDocument)?W.defaultView||W.parentWindow:window,K?(Ae=o.relatedTarget||o.toElement,K=$,Ae=Ae?Ua(Ae):null,Ae!==null&&(Je=l(Ae),Se=Ae.tag,Ae!==Je||Se!==5&&Se!==27&&Se!==6)&&(Ae=null)):(K=null,Ae=$),K!==Ae)){if(Se=C5,ae="onMouseLeave",H="onMouseEnter",B="mouse",(r==="pointerout"||r==="pointerover")&&(Se=x5,ae="onPointerLeave",H="onPointerEnter",B="pointer"),Je=K==null?W:xo(K),Y=Ae==null?W:xo(Ae),W=new Se(ae,B+"leave",K,o,re),W.target=Je,W.relatedTarget=Y,ae=null,Ua(re)===$&&(Se=new Se(H,B+"enter",Ae,o,re),Se.target=Y,Se.relatedTarget=Je,ae=Se),Je=ae,K&&Ae)t:{for(Se=K,H=Ae,B=0,Y=Se;Y;Y=bs(Y))B++;for(Y=0,ae=H;ae;ae=bs(ae))Y++;for(;0<B-Y;)Se=bs(Se),B--;for(;0<Y-B;)H=bs(H),Y--;for(;B--;){if(Se===H||H!==null&&Se===H.alternate)break t;Se=bs(Se),H=bs(H)}Se=null}else Se=null;K!==null&&cd(oe,W,K,Se,!1),Ae!==null&&Je!==null&&cd(oe,Je,Ae,Se,!0)}}e:{if(W=$?xo($):window,K=W.nodeName&&W.nodeName.toLowerCase(),K==="select"||K==="input"&&W.type==="file")var pe=M5;else if(j5(W))if(L5)pe=vE;else{pe=gE;var Pe=pE}else K=W.nodeName,!K||K.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?$&&zu($.elementType)&&(pe=M5):pe=CE;if(pe&&(pe=pe(r,$))){A5(oe,pe,o,re);break e}Pe&&Pe(r,W,$),r==="focusout"&&$&&W.type==="number"&&$.memoizedProps.value!=null&&Vu(W,"number",W.value)}switch(Pe=$?xo($):window,r){case"focusin":(j5(Pe)||Pe.contentEditable==="true")&&(Qa=Pe,Xu=$,Lo=null);break;case"focusout":Lo=Xu=Qa=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,P5(oe,o,re);break;case"selectionchange":if(yE)break;case"keydown":case"keyup":P5(oe,o,re)}var xe;if(Wu)e:{switch(r){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Ka?S5(r,o)&&(je="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(je="onCompositionStart");je&&(y5&&o.locale!=="ko"&&(Ka||je!=="onCompositionStart"?je==="onCompositionEnd"&&Ka&&(xe=p5()):(ni=re,Iu="value"in ni?ni.value:ni.textContent,Ka=!0)),Pe=m2($,je),0<Pe.length&&(je=new v5(je,r,null,o,re),oe.push({event:je,listeners:Pe}),xe?je.data=xe:(xe=E5(o),xe!==null&&(je.data=xe)))),(xe=uE?fE(r,o):dE(r,o))&&(je=m2($,"onBeforeInput"),0<je.length&&(Pe=new v5("onBeforeInput","beforeinput",null,o,re),oe.push({event:Pe,listeners:je}),Pe.data=xe)),nj(oe,r,$,o,re)}od(oe,a)})}function n1(r,a,o){return{instance:r,listener:a,currentTarget:o}}function m2(r,a){for(var o=a+"Capture",f=[];r!==null;){var g=r,x=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||x===null||(g=yo(r,o),g!=null&&f.unshift(n1(r,g,x)),g=yo(r,a),g!=null&&f.push(n1(r,g,x))),r.tag===3)return f;r=r.return}return[]}function bs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function cd(r,a,o,f,g){for(var x=a._reactName,A=[];o!==null&&o!==f;){var N=o,P=N.alternate,$=N.stateNode;if(N=N.tag,P!==null&&P===f)break;N!==5&&N!==26&&N!==27||$===null||(P=$,g?($=yo(o,x),$!=null&&A.unshift(n1(o,$,P))):g||($=yo(o,x),$!=null&&A.push(n1(o,$,P)))),o=o.return}A.length!==0&&r.push({event:a,listeners:A})}var sj=/\r\n?/g,oj=/\u0000|\uFFFD/g;function ud(r){return(typeof r=="string"?r:""+r).replace(sj,`
`).replace(oj,"")}function fd(r,a){return a=ud(a),ud(r)===a}function p2(){}function Xe(r,a,o,f,g,x){switch(o){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||$a(r,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&$a(r,""+f);break;case"className":yl(r,"class",f);break;case"tabIndex":yl(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":yl(r,o,f);break;case"style":d5(r,f,x);break;case"data":if(a!=="object"){yl(r,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||o!=="href")){r.removeAttribute(o);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=Sl(""+f),r.setAttribute(o,f);break;case"action":case"formAction":if(typeof f=="function"){r.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(o==="formAction"?(a!=="input"&&Xe(r,a,"name",g.name,g,null),Xe(r,a,"formEncType",g.formEncType,g,null),Xe(r,a,"formMethod",g.formMethod,g,null),Xe(r,a,"formTarget",g.formTarget,g,null)):(Xe(r,a,"encType",g.encType,g,null),Xe(r,a,"method",g.method,g,null),Xe(r,a,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=Sl(""+f),r.setAttribute(o,f);break;case"onClick":f!=null&&(r.onclick=p2);break;case"onScroll":f!=null&&Fe("scroll",r);break;case"onScrollEnd":f!=null&&Fe("scrollend",r);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"multiple":r.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":r.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){r.removeAttribute("xlink:href");break}o=Sl(""+f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""+f):r.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":f===!0?r.setAttribute(o,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,f):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?r.setAttribute(o,f):r.removeAttribute(o);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?r.removeAttribute(o):r.setAttribute(o,f);break;case"popover":Fe("beforetoggle",r),Fe("toggle",r),xl(r,"popover",f);break;case"xlinkActuate":yr(r,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":yr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":yr(r,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":yr(r,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":yr(r,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":yr(r,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":yr(r,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":yr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":yr(r,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":xl(r,"is",f);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=VS.get(o)||o,xl(r,o,f))}}function w3(r,a,o,f,g,x){switch(o){case"style":d5(r,f,x);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"children":typeof f=="string"?$a(r,f):(typeof f=="number"||typeof f=="bigint")&&$a(r,""+f);break;case"onScroll":f!=null&&Fe("scroll",r);break;case"onScrollEnd":f!=null&&Fe("scrollend",r);break;case"onClick":f!=null&&(r.onclick=p2);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!t5.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),a=o.slice(2,g?o.length-7:void 0),x=r[tn]||null,x=x!=null?x[o]:null,typeof x=="function"&&r.removeEventListener(a,x,g),typeof f=="function")){typeof x!="function"&&x!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(a,f,g);break e}o in r?r[o]=f:f===!0?r.setAttribute(o,""):xl(r,o,f)}}}function Bt(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",r),Fe("load",r);var f=!1,g=!1,x;for(x in o)if(o.hasOwnProperty(x)){var A=o[x];if(A!=null)switch(x){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Xe(r,a,x,A,o,null)}}g&&Xe(r,a,"srcSet",o.srcSet,o,null),f&&Xe(r,a,"src",o.src,o,null);return;case"input":Fe("invalid",r);var N=x=A=g=null,P=null,$=null;for(f in o)if(o.hasOwnProperty(f)){var re=o[f];if(re!=null)switch(f){case"name":g=re;break;case"type":A=re;break;case"checked":P=re;break;case"defaultChecked":$=re;break;case"value":x=re;break;case"defaultValue":N=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:Xe(r,a,f,re,o,null)}}l5(r,x,N,P,$,A,g,!1),bl(r);return;case"select":Fe("invalid",r),f=A=x=null;for(g in o)if(o.hasOwnProperty(g)&&(N=o[g],N!=null))switch(g){case"value":x=N;break;case"defaultValue":A=N;break;case"multiple":f=N;default:Xe(r,a,g,N,o,null)}a=x,o=A,r.multiple=!!f,a!=null?Ya(r,!!f,a,!1):o!=null&&Ya(r,!!f,o,!0);return;case"textarea":Fe("invalid",r),x=g=f=null;for(A in o)if(o.hasOwnProperty(A)&&(N=o[A],N!=null))switch(A){case"value":f=N;break;case"defaultValue":g=N;break;case"children":x=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Xe(r,a,A,N,o,null)}u5(r,f,g,x),bl(r);return;case"option":for(P in o)if(o.hasOwnProperty(P)&&(f=o[P],f!=null))switch(P){case"selected":r.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Xe(r,a,P,f,o,null)}return;case"dialog":Fe("beforetoggle",r),Fe("toggle",r),Fe("cancel",r),Fe("close",r);break;case"iframe":case"object":Fe("load",r);break;case"video":case"audio":for(f=0;f<t1.length;f++)Fe(t1[f],r);break;case"image":Fe("error",r),Fe("load",r);break;case"details":Fe("toggle",r);break;case"embed":case"source":case"link":Fe("error",r),Fe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in o)if(o.hasOwnProperty($)&&(f=o[$],f!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Xe(r,a,$,f,o,null)}return;default:if(zu(a)){for(re in o)o.hasOwnProperty(re)&&(f=o[re],f!==void 0&&w3(r,a,re,f,o,void 0));return}}for(N in o)o.hasOwnProperty(N)&&(f=o[N],f!=null&&Xe(r,a,N,f,o,null))}function lj(r,a,o,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,x=null,A=null,N=null,P=null,$=null,re=null;for(K in o){var oe=o[K];if(o.hasOwnProperty(K)&&oe!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":P=oe;default:f.hasOwnProperty(K)||Xe(r,a,K,null,f,oe)}}for(var W in f){var K=f[W];if(oe=o[W],f.hasOwnProperty(W)&&(K!=null||oe!=null))switch(W){case"type":x=K;break;case"name":g=K;break;case"checked":$=K;break;case"defaultChecked":re=K;break;case"value":A=K;break;case"defaultValue":N=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,a));break;default:K!==oe&&Xe(r,a,W,K,f,oe)}}Pu(r,A,N,P,$,re,x,g);return;case"select":K=A=N=W=null;for(x in o)if(P=o[x],o.hasOwnProperty(x)&&P!=null)switch(x){case"value":break;case"multiple":K=P;default:f.hasOwnProperty(x)||Xe(r,a,x,null,f,P)}for(g in f)if(x=f[g],P=o[g],f.hasOwnProperty(g)&&(x!=null||P!=null))switch(g){case"value":W=x;break;case"defaultValue":N=x;break;case"multiple":A=x;default:x!==P&&Xe(r,a,g,x,f,P)}a=N,o=A,f=K,W!=null?Ya(r,!!o,W,!1):!!f!=!!o&&(a!=null?Ya(r,!!o,a,!0):Ya(r,!!o,o?[]:"",!1));return;case"textarea":K=W=null;for(N in o)if(g=o[N],o.hasOwnProperty(N)&&g!=null&&!f.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Xe(r,a,N,null,f,g)}for(A in f)if(g=f[A],x=o[A],f.hasOwnProperty(A)&&(g!=null||x!=null))switch(A){case"value":W=g;break;case"defaultValue":K=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==x&&Xe(r,a,A,g,f,x)}c5(r,W,K);return;case"option":for(var Ae in o)if(W=o[Ae],o.hasOwnProperty(Ae)&&W!=null&&!f.hasOwnProperty(Ae))switch(Ae){case"selected":r.selected=!1;break;default:Xe(r,a,Ae,null,f,W)}for(P in f)if(W=f[P],K=o[P],f.hasOwnProperty(P)&&W!==K&&(W!=null||K!=null))switch(P){case"selected":r.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:Xe(r,a,P,W,f,K)}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 Se in o)W=o[Se],o.hasOwnProperty(Se)&&W!=null&&!f.hasOwnProperty(Se)&&Xe(r,a,Se,null,f,W);for($ in f)if(W=f[$],K=o[$],f.hasOwnProperty($)&&W!==K&&(W!=null||K!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,a));break;default:Xe(r,a,$,W,f,K)}return;default:if(zu(a)){for(var Je in o)W=o[Je],o.hasOwnProperty(Je)&&W!==void 0&&!f.hasOwnProperty(Je)&&w3(r,a,Je,void 0,f,W);for(re in f)W=f[re],K=o[re],!f.hasOwnProperty(re)||W===K||W===void 0&&K===void 0||w3(r,a,re,W,f,K);return}}for(var H in o)W=o[H],o.hasOwnProperty(H)&&W!=null&&!f.hasOwnProperty(H)&&Xe(r,a,H,null,f,W);for(oe in f)W=f[oe],K=o[oe],!f.hasOwnProperty(oe)||W===K||W==null&&K==null||Xe(r,a,oe,W,f,K)}var S3=null,E3=null;function g2(r){return r.nodeType===9?r:r.ownerDocument}function dd(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hd(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function j3(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var A3=null;function cj(){var r=window.event;return r&&r.type==="popstate"?r===A3?!1:(A3=r,!0):(A3=null,!1)}var md=typeof setTimeout=="function"?setTimeout:void 0,uj=typeof clearTimeout=="function"?clearTimeout:void 0,pd=typeof Promise=="function"?Promise:void 0,fj=typeof queueMicrotask=="function"?queueMicrotask:typeof pd<"u"?function(r){return pd.resolve(null).then(r).catch(dj)}:md;function dj(r){setTimeout(function(){throw r})}function vi(r){return r==="head"}function gd(r,a){var o=a,f=0,g=0;do{var x=o.nextSibling;if(r.removeChild(o),x&&x.nodeType===8)if(o=x.data,o==="/$"){if(0<f&&8>f){o=f;var A=r.ownerDocument;if(o&1&&r1(A.documentElement),o&2&&r1(A.body),o&4)for(o=A.head,r1(o),A=o.firstChild;A;){var N=A.nextSibling,P=A.nodeName;A[vo]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&A.rel.toLowerCase()==="stylesheet"||o.removeChild(A),A=N}}if(g===0){r.removeChild(x),f1(a);return}g--}else o==="$"||o==="$?"||o==="$!"?g++:f=o.charCodeAt(0)-48;else f=0;o=x}while(o);f1(a)}function M3(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":M3(o),Du(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function hj(r,a,o,f){for(;r.nodeType===1;){var g=o;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(f){if(!r[vo])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(x=r.getAttribute("rel"),x==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(x!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(x=r.getAttribute("src"),(x!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&x&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var x=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===x)return r}else return r;if(r=Gn(r.nextSibling),r===null)break}return null}function mj(r,a,o){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Gn(r.nextSibling),r===null))return null;return r}function L3(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState==="complete"}function pj(r,a){var o=r.ownerDocument;if(r.data!=="$?"||o.readyState==="complete")a();else{var f=function(){a(),o.removeEventListener("DOMContentLoaded",f)};o.addEventListener("DOMContentLoaded",f),r._reactRetry=f}}function Gn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return r}var T3=null;function Cd(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(a===0)return r;a--}else o==="/$"&&a++}r=r.previousSibling}return null}function vd(r,a,o){switch(a=g2(o),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function r1(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Du(r)}var Dn=new Map,xd=new Set;function C2(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Or=U.d;U.d={f:gj,r:Cj,D:vj,C:xj,L:yj,m:bj,X:Sj,S:wj,M:Ej};function gj(){var r=Or.f(),a=l2();return r||a}function Cj(r){var a=Ha(r);a!==null&&a.tag===5&&a.type==="form"?z9(a):Or.r(r)}var ws=typeof document>"u"?null:document;function yd(r,a,o){var f=ws;if(f&&typeof a=="string"&&a){var g=jn(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),xd.has(g)||(xd.add(g),r={rel:r,crossOrigin:o,href:a},f.querySelector(g)===null&&(a=f.createElement("link"),Bt(a,"link",r),Dt(a),f.head.appendChild(a)))}}function vj(r){Or.D(r),yd("dns-prefetch",r,null)}function xj(r,a){Or.C(r,a),yd("preconnect",r,a)}function yj(r,a,o){Or.L(r,a,o);var f=ws;if(f&&r&&a){var g='link[rel="preload"][as="'+jn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+jn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+jn(o.imageSizes)+'"]')):g+='[href="'+jn(r)+'"]';var x=g;switch(a){case"style":x=Ss(r);break;case"script":x=Es(r)}Dn.has(x)||(r=p({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),Dn.set(x,r),f.querySelector(g)!==null||a==="style"&&f.querySelector(i1(x))||a==="script"&&f.querySelector(a1(x))||(a=f.createElement("link"),Bt(a,"link",r),Dt(a),f.head.appendChild(a)))}}function bj(r,a){Or.m(r,a);var o=ws;if(o&&r){var f=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+jn(f)+'"][href="'+jn(r)+'"]',x=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Es(r)}if(!Dn.has(x)&&(r=p({rel:"modulepreload",href:r},a),Dn.set(x,r),o.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(a1(x)))return}f=o.createElement("link"),Bt(f,"link",r),Dt(f),o.head.appendChild(f)}}}function wj(r,a,o){Or.S(r,a,o);var f=ws;if(f&&r){var g=Ia(f).hoistableStyles,x=Ss(r);a=a||"default";var A=g.get(x);if(!A){var N={loading:0,preload:null};if(A=f.querySelector(i1(x)))N.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},o),(o=Dn.get(x))&&N3(r,o);var P=A=f.createElement("link");Dt(P),Bt(P,"link",r),P._p=new Promise(function($,re){P.onload=$,P.onerror=re}),P.addEventListener("load",function(){N.loading|=1}),P.addEventListener("error",function(){N.loading|=2}),N.loading|=4,v2(A,a,f)}A={type:"stylesheet",instance:A,count:1,state:N},g.set(x,A)}}}function Sj(r,a){Or.X(r,a);var o=ws;if(o&&r){var f=Ia(o).hoistableScripts,g=Es(r),x=f.get(g);x||(x=o.querySelector(a1(g)),x||(r=p({src:r,async:!0},a),(a=Dn.get(g))&&R3(r,a),x=o.createElement("script"),Dt(x),Bt(x,"link",r),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(g,x))}}function Ej(r,a){Or.M(r,a);var o=ws;if(o&&r){var f=Ia(o).hoistableScripts,g=Es(r),x=f.get(g);x||(x=o.querySelector(a1(g)),x||(r=p({src:r,async:!0,type:"module"},a),(a=Dn.get(g))&&R3(r,a),x=o.createElement("script"),Dt(x),Bt(x,"link",r),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(g,x))}}function bd(r,a,o,f){var g=(g=ce.current)?C2(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Ss(o.href),o=Ia(g).hoistableStyles,f=o.get(a),f||(f={type:"style",instance:null,count:0,state:null},o.set(a,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Ss(o.href);var x=Ia(g).hoistableStyles,A=x.get(r);if(A||(g=g.ownerDocument||g,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(r,A),(x=g.querySelector(i1(r)))&&!x._p&&(A.instance=x,A.state.loading=5),Dn.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Dn.set(r,o),x||jj(g,r,o,A.state))),a&&f===null)throw Error(i(528,""));return A}if(a&&f!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Es(o),o=Ia(g).hoistableScripts,f=o.get(a),f||(f={type:"script",instance:null,count:0,state:null},o.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Ss(r){return'href="'+jn(r)+'"'}function i1(r){return'link[rel="stylesheet"]['+r+"]"}function wd(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function jj(r,a,o,f){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=r.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),Bt(a,"link",o),Dt(a),r.head.appendChild(a))}function Es(r){return'[src="'+jn(r)+'"]'}function a1(r){return"script[async]"+r}function Sd(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var f=r.querySelector('style[data-href~="'+jn(o.href)+'"]');if(f)return a.instance=f,Dt(f),f;var g=p({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),Dt(f),Bt(f,"style",g),v2(f,o.precedence,r),a.instance=f;case"stylesheet":g=Ss(o.href);var x=r.querySelector(i1(g));if(x)return a.state.loading|=4,a.instance=x,Dt(x),x;f=wd(o),(g=Dn.get(g))&&N3(f,g),x=(r.ownerDocument||r).createElement("link"),Dt(x);var A=x;return A._p=new Promise(function(N,P){A.onload=N,A.onerror=P}),Bt(x,"link",f),a.state.loading|=4,v2(x,o.precedence,r),a.instance=x;case"script":return x=Es(o.src),(g=r.querySelector(a1(x)))?(a.instance=g,Dt(g),g):(f=o,(g=Dn.get(x))&&(f=p({},o),R3(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),Dt(g),Bt(g,"link",f),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(f=a.instance,a.state.loading|=4,v2(f,o.precedence,r));return a.instance}function v2(r,a,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,x=g,A=0;A<f.length;A++){var N=f[A];if(N.dataset.precedence===a)x=N;else if(x!==g)break}x?x.parentNode.insertBefore(r,x.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(r,a.firstChild))}function N3(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function R3(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var x2=null;function Ed(r,a,o){if(x2===null){var f=new Map,g=x2=new Map;g.set(o,f)}else g=x2,f=g.get(o),f||(f=new Map,g.set(o,f));if(f.has(r))return f;for(f.set(r,null),o=o.getElementsByTagName(r),g=0;g<o.length;g++){var x=o[g];if(!(x[vo]||x[It]||r==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var A=x.getAttribute(a)||"";A=r+A;var N=f.get(A);N?N.push(x):f.set(A,[x])}}return f}function jd(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function Aj(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Ad(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var s1=null;function Mj(){}function Lj(r,a,o){if(s1===null)throw Error(i(475));var f=s1;if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var g=Ss(o.href),x=r.querySelector(i1(g));if(x){r=x._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(f.count++,f=y2.bind(f),r.then(f,f)),a.state.loading|=4,a.instance=x,Dt(x);return}x=r.ownerDocument||r,o=wd(o),(g=Dn.get(g))&&N3(o,g),x=x.createElement("link"),Dt(x);var A=x;A._p=new Promise(function(N,P){A.onload=N,A.onerror=P}),Bt(x,"link",o),a.instance=x}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(f.count++,a=y2.bind(f),r.addEventListener("load",a),r.addEventListener("error",a))}}function Tj(){if(s1===null)throw Error(i(475));var r=s1;return r.stylesheets&&r.count===0&&D3(r,r.stylesheets),0<r.count?function(a){var o=setTimeout(function(){if(r.stylesheets&&D3(r,r.stylesheets),r.unsuspend){var f=r.unsuspend;r.unsuspend=null,f()}},6e4);return r.unsuspend=a,function(){r.unsuspend=null,clearTimeout(o)}}:null}function y2(){if(this.count--,this.count===0){if(this.stylesheets)D3(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var b2=null;function D3(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,b2=new Map,a.forEach(Nj,r),b2=null,y2.call(r))}function Nj(r,a){if(!(a.state.loading&4)){var o=b2.get(r);if(o)var f=o.get(null);else{o=new Map,b2.set(r,o);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<g.length;x++){var A=g[x];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(o.set(A.dataset.precedence,A),f=A)}f&&o.set(null,f)}g=a.instance,A=g.getAttribute("data-precedence"),x=o.get(A)||f,x===f&&o.set(null,g),o.set(A,g),this.count++,f=y2.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),x?x.parentNode.insertBefore(g,x.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),a.state.loading|=4}}var o1={$$typeof:L,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Rj(r,a,o,f,g,x,A,N){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Lu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.hiddenUpdates=Lu(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=x,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Md(r,a,o,f,g,x,A,N,P,$,re,oe){return r=new Rj(r,a,o,A,N,P,$,oe),a=1,x===!0&&(a|=24),x=pn(3,null,null,a),r.current=x,x.stateNode=r,a=h0(),a.refCount++,r.pooledCache=a,a.refCount++,x.memoizedState={element:f,isDehydrated:o,cache:a},C0(x),r}function Ld(r){return r?(r=ts,r):ts}function Td(r,a,o,f,g,x){g=Ld(g),f.context===null?f.context=g:f.pendingContext=g,f=ai(a),f.payload={element:o},x=x===void 0?null:x,x!==null&&(f.callback=x),o=si(r,f,a),o!==null&&(yn(o,r,a),Vo(o,r,a))}function Nd(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function k3(r,a){Nd(r,a),(r=r.alternate)&&Nd(r,a)}function Rd(r){if(r.tag===13){var a=es(r,67108864);a!==null&&yn(a,r,67108864),k3(r,67108864)}}var w2=!0;function Dj(r,a,o,f){var g=_.T;_.T=null;var x=U.p;try{U.p=2,O3(r,a,o,f)}finally{U.p=x,_.T=g}}function kj(r,a,o,f){var g=_.T;_.T=null;var x=U.p;try{U.p=8,O3(r,a,o,f)}finally{U.p=x,_.T=g}}function O3(r,a,o,f){if(w2){var g=_3(f);if(g===null)b3(r,a,f,S2,o),kd(r,f);else if(_j(g,r,a,o,f))f.stopPropagation();else if(kd(r,f),a&4&&-1<Oj.indexOf(r)){for(;g!==null;){var x=Ha(g);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var A=Ii(x.pendingLanes);if(A!==0){var N=x;for(N.pendingLanes|=2,N.entangledLanes|=2;A;){var P=1<<31-dt(A);N.entanglements[1]|=P,A&=~P}or(x),(qe&6)===0&&(s2=en()+500,e1(0))}}break;case 13:N=es(x,2),N!==null&&yn(N,x,2),l2(),k3(x,2)}if(x=_3(f),x===null&&b3(r,a,f,S2,o),x===g)break;g=x}g!==null&&f.stopPropagation()}else b3(r,a,f,null,o)}}function _3(r){return r=Bu(r),P3(r)}var S2=null;function P3(r){if(S2=null,r=Ua(r),r!==null){var a=l(r);if(a===null)r=null;else{var o=a.tag;if(o===13){if(r=u(a),r!==null)return r;r=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return S2=r,null}function Dd(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ho()){case Hn:return 2;case Cl:return 8;case za:case X:return 32;case me:return 268435456;default:return 32}default:return 32}}var V3=!1,xi=null,yi=null,bi=null,l1=new Map,c1=new Map,wi=[],Oj="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 kd(r,a){switch(r){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":yi=null;break;case"mouseover":case"mouseout":bi=null;break;case"pointerover":case"pointerout":l1.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":c1.delete(a.pointerId)}}function u1(r,a,o,f,g,x){return r===null||r.nativeEvent!==x?(r={blockedOn:a,domEventName:o,eventSystemFlags:f,nativeEvent:x,targetContainers:[g]},a!==null&&(a=Ha(a),a!==null&&Rd(a)),r):(r.eventSystemFlags|=f,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function _j(r,a,o,f,g){switch(a){case"focusin":return xi=u1(xi,r,a,o,f,g),!0;case"dragenter":return yi=u1(yi,r,a,o,f,g),!0;case"mouseover":return bi=u1(bi,r,a,o,f,g),!0;case"pointerover":var x=g.pointerId;return l1.set(x,u1(l1.get(x)||null,r,a,o,f,g)),!0;case"gotpointercapture":return x=g.pointerId,c1.set(x,u1(c1.get(x)||null,r,a,o,f,g)),!0}return!1}function Od(r){var a=Ua(r.target);if(a!==null){var o=l(a);if(o!==null){if(a=o.tag,a===13){if(a=u(o),a!==null){r.blockedOn=a,LS(r.priority,function(){if(o.tag===13){var f=xn();f=Tu(f);var g=es(o,f);g!==null&&yn(g,o,f),k3(o,f)}});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function E2(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=_3(r.nativeEvent);if(o===null){o=r.nativeEvent;var f=new o.constructor(o.type,o);Fu=f,o.target.dispatchEvent(f),Fu=null}else return a=Ha(o),a!==null&&Rd(a),r.blockedOn=o,!1;a.shift()}return!0}function _d(r,a,o){E2(r)&&o.delete(a)}function Pj(){V3=!1,xi!==null&&E2(xi)&&(xi=null),yi!==null&&E2(yi)&&(yi=null),bi!==null&&E2(bi)&&(bi=null),l1.forEach(_d),c1.forEach(_d)}function j2(r,a){r.blockedOn===a&&(r.blockedOn=null,V3||(V3=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Pj)))}var A2=null;function Pd(r){A2!==r&&(A2=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){A2===r&&(A2=null);for(var a=0;a<r.length;a+=3){var o=r[a],f=r[a+1],g=r[a+2];if(typeof f!="function"){if(P3(f||o)===null)continue;break}var x=Ha(o);x!==null&&(r.splice(a,3),a-=3,P0(x,{pending:!0,data:g,method:o.method,action:f},f,g))}}))}function f1(r){function a(P){return j2(P,r)}xi!==null&&j2(xi,r),yi!==null&&j2(yi,r),bi!==null&&j2(bi,r),l1.forEach(a),c1.forEach(a);for(var o=0;o<wi.length;o++){var f=wi[o];f.blockedOn===r&&(f.blockedOn=null)}for(;0<wi.length&&(o=wi[0],o.blockedOn===null);)Od(o),o.blockedOn===null&&wi.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(f=0;f<o.length;f+=3){var g=o[f],x=o[f+1],A=g[tn]||null;if(typeof x=="function")A||Pd(o);else if(A){var N=null;if(x&&x.hasAttribute("formAction")){if(g=x,A=x[tn]||null)N=A.formAction;else if(P3(g)!==null)continue}else N=A.action;typeof N=="function"?o[f+1]=N:(o.splice(f,3),f-=3),Pd(o)}}}function z3(r){this._internalRoot=r}M2.prototype.render=z3.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,f=xn();Td(o,f,r,a,null,null)},M2.prototype.unmount=z3.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;Td(r.current,2,null,r,null,null),l2(),a[Ba]=null}};function M2(r){this._internalRoot=r}M2.prototype.unstable_scheduleHydration=function(r){if(r){var a=X8();r={blockedOn:null,target:r,priority:a};for(var o=0;o<wi.length&&a!==0&&a<wi[o].priority;o++);wi.splice(o,0,r),o===0&&Od(r)}};var Vd=t.version;if(Vd!=="19.1.0")throw Error(i(527,Vd,"19.1.0"));U.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?m(r):null,r=r===null?null:r.stateNode,r};var Vj={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var L2=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!L2.isDisabled&&L2.supportsFiber)try{Le=L2.inject(Vj),Te=L2}catch{}}return h1.createRoot=function(r,a){if(!s(r))throw Error(i(299));var o=!1,f="",g=X9,x=J9,A=ef,N=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks)),a=Md(r,1,!1,null,null,o,f,g,x,A,N,null),r[Ba]=a.current,y3(r),new z3(a)},h1.hydrateRoot=function(r,a,o){if(!s(r))throw Error(i(299));var f=!1,g="",x=X9,A=J9,N=ef,P=null,$=null;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(x=o.onUncaughtError),o.onCaughtError!==void 0&&(A=o.onCaughtError),o.onRecoverableError!==void 0&&(N=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(P=o.unstable_transitionCallbacks),o.formState!==void 0&&($=o.formState)),a=Md(r,1,!0,a,o??null,f,g,x,A,N,P,$),a.context=Ld(null),o=a.current,f=xn(),f=Tu(f),g=ai(f),g.callback=null,si(o,g,f),o=f,a.current.lanes=o,Co(a,o),or(a),r[Ba]=a.current,y3(r),new M2(a)},h1.version="19.1.0",h1}var $d;function $j(){if($d)return U3.exports;$d=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(t){console.error(t)}}return e(),U3.exports=Yj(),U3.exports}var Wj=$j(),m1={},Wd;function qj(){if(Wd)return m1;Wd=1,Object.defineProperty(m1,"__esModule",{value:!0}),m1.parse=u,m1.serialize=m;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,l=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function u(v,w){const b=new l,S=v.length;if(S<2)return b;const E=(w==null?void 0:w.decode)||p;let j=0;do{const T=v.indexOf("=",j);if(T===-1)break;const L=v.indexOf(";",j),D=L===-1?S:L;if(T>D){j=v.lastIndexOf(";",T-1)+1;continue}const M=d(v,j,T),k=h(v,T,M),O=v.slice(M,k);if(b[O]===void 0){let z=d(v,T+1,D),I=h(v,D,z);const ne=E(v.slice(z,I));b[O]=ne}j=D+1}while(j<S);return b}function d(v,w,b){do{const S=v.charCodeAt(w);if(S!==32&&S!==9)return w}while(++w<b);return b}function h(v,w,b){for(;w>b;){const S=v.charCodeAt(--w);if(S!==32&&S!==9)return w+1}return b}function m(v,w,b){const S=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const E=S(w);if(!t.test(E))throw new TypeError(`argument val is invalid: ${w}`);let j=v+"="+E;if(!b)return j;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);j+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);j+="; Domain="+b.domain}if(b.path){if(!i.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);j+="; Path="+b.path}if(b.expires){if(!C(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);j+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(j+="; HttpOnly"),b.secure&&(j+="; Secure"),b.partitioned&&(j+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":j+="; Priority=Low";break;case"medium":j+="; Priority=Medium";break;case"high":j+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":j+="; SameSite=Strict";break;case"lax":j+="; SameSite=Lax";break;case"none":j+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return j}function p(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function C(v){return s.call(v)==="[object Date]"}return m1}var K2=qj();function Kj(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function Qj(e){return typeof e=="string"?K2.parse(e):typeof e=="object"&&e!==null?e:{}}function G3(e,t={}){const n=Xj(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Xj(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Pg{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=K2.parse(document.cookie),this._checkChanges(s)};const i=typeof document>"u"?"":document.cookie;this.cookies=Qj(t||i),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Kj()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(i=>{t[i]!==this.cookies[i]&&this._emitChange({name:i,value:G3(this.cookies[i])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),G3(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let i in this.cookies)n[i]=G3(this.cookies[i],t);return n}set(t,n,i){i?i=Object.assign(Object.assign({},this.defaultSetOptions),i):i=this.defaultSetOptions;const s=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=K2.serialize(t,s,i)),this._emitChange({name:t,value:n,options:i})}remove(t,n){const i=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=K2.serialize(t,"",i)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}const Vg=y.createContext(null),{Provider:Jj,Consumer:nK}=Vg,eA=e=>{const t=y.useMemo(()=>e.cookies?e.cookies:new Pg(void 0,e.defaultSetOptions),[e.cookies,e.defaultSetOptions]);return y.createElement(Jj,{value:t},e.children)};var Y3={exports:{}},$e={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qd;function tA(){if(qd)return $e;qd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function L(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case t:switch(M=M.type,M){case h:case m:case i:case l:case s:case C:return M;default:switch(M=M&&M.$$typeof,M){case d:case p:case b:case w:case u:return M;default:return k}}case n:return k}}}function D(M){return L(M)===m}return $e.AsyncMode=h,$e.ConcurrentMode=m,$e.ContextConsumer=d,$e.ContextProvider=u,$e.Element=t,$e.ForwardRef=p,$e.Fragment=i,$e.Lazy=b,$e.Memo=w,$e.Portal=n,$e.Profiler=l,$e.StrictMode=s,$e.Suspense=C,$e.isAsyncMode=function(M){return D(M)||L(M)===h},$e.isConcurrentMode=D,$e.isContextConsumer=function(M){return L(M)===d},$e.isContextProvider=function(M){return L(M)===u},$e.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},$e.isForwardRef=function(M){return L(M)===p},$e.isFragment=function(M){return L(M)===i},$e.isLazy=function(M){return L(M)===b},$e.isMemo=function(M){return L(M)===w},$e.isPortal=function(M){return L(M)===n},$e.isProfiler=function(M){return L(M)===l},$e.isStrictMode=function(M){return L(M)===s},$e.isSuspense=function(M){return L(M)===C},$e.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===m||M===l||M===s||M===C||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===b||M.$$typeof===w||M.$$typeof===u||M.$$typeof===d||M.$$typeof===p||M.$$typeof===E||M.$$typeof===j||M.$$typeof===T||M.$$typeof===S)},$e.typeOf=L,$e}var Kd;function nA(){return Kd||(Kd=1,Y3.exports=tA()),Y3.exports}var $3,Qd;function rA(){if(Qd)return $3;Qd=1;var e=nA(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=i,l[e.Memo]=s;function u(b){return e.isMemo(b)?s:l[b.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,C=Object.getPrototypeOf,v=Object.prototype;function w(b,S,E){if(typeof S!="string"){if(v){var j=C(S);j&&j!==v&&w(b,j,E)}var T=h(S);m&&(T=T.concat(m(S)));for(var L=u(b),D=u(S),M=0;M<T.length;++M){var k=T[M];if(!n[k]&&!(E&&E[k])&&!(D&&D[k])&&!(L&&L[k])){var O=p(S,k);try{d(b,k,O)}catch{}}}}return b}return $3=w,$3}rA();function iA(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function aA(e,t){const n=y.useContext(Vg);if(!n)throw new Error("Missing <CookiesProvider>");const s=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[l,u]=y.useState(()=>n.getAll(s));iA()&&y.useLayoutEffect(()=>{function p(){if(!n)throw new Error("Missing <CookiesProvider>");const C=n.getAll(s);sA(e||null,C,l)&&u(C)}return n.addChangeListener(p),()=>{n.removeChangeListener(p)}},[n,l]);const d=y.useMemo(()=>n.set.bind(n),[n]),h=y.useMemo(()=>n.remove.bind(n),[n]),m=y.useMemo(()=>n.update.bind(n),[n]);return[l,d,h,m]}function sA(e,t,n){if(!e)return!0;for(let i of e)if(t[i]!==n[i])return!0;return!1}var p1={},Xd;function oA(){if(Xd)return p1;Xd=1,Object.defineProperty(p1,"__esModule",{value:!0}),p1.parse=u,p1.serialize=m;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,l=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function u(v,w){const b=new l,S=v.length;if(S<2)return b;const E=(w==null?void 0:w.decode)||p;let j=0;do{const T=v.indexOf("=",j);if(T===-1)break;const L=v.indexOf(";",j),D=L===-1?S:L;if(T>D){j=v.lastIndexOf(";",T-1)+1;continue}const M=d(v,j,T),k=h(v,T,M),O=v.slice(M,k);if(b[O]===void 0){let z=d(v,T+1,D),I=h(v,D,z);const ne=E(v.slice(z,I));b[O]=ne}j=D+1}while(j<S);return b}function d(v,w,b){do{const S=v.charCodeAt(w);if(S!==32&&S!==9)return w}while(++w<b);return b}function h(v,w,b){for(;w>b;){const S=v.charCodeAt(--w);if(S!==32&&S!==9)return w+1}return b}function m(v,w,b){const S=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const E=S(w);if(!t.test(E))throw new TypeError(`argument val is invalid: ${w}`);let j=v+"="+E;if(!b)return j;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);j+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);j+="; Domain="+b.domain}if(b.path){if(!i.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);j+="; Path="+b.path}if(b.expires){if(!C(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);j+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(j+="; HttpOnly"),b.secure&&(j+="; Secure"),b.partitioned&&(j+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":j+="; Priority=Low";break;case"medium":j+="; Priority=Medium";break;case"high":j+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":j+="; SameSite=Strict";break;case"lax":j+="; SameSite=Lax";break;case"none":j+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return j}function p(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function C(v){return s.call(v)==="[object Date]"}return p1}oA();var Jd="popstate";function lA(e={}){function t(i,s){let{pathname:l,search:u,hash:d}=i.location;return K7("",{pathname:l,search:u,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(i,s){return typeof s=="string"?s:P1(s)}return uA(t,n,null,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cA(){return Math.random().toString(36).substring(2,10)}function eh(e,t){return{usr:e.state,key:e.key,idx:t}}function K7(e,t,n=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Q1(t):t,state:n,key:t&&t.key||i||cA()}}function P1({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Q1(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function uA(e,t,n,i={}){let{window:s=document.defaultView,v5Compat:l=!1}=i,u=s.history,d="POP",h=null,m=p();m==null&&(m=0,u.replaceState({...u.state,idx:m},""));function p(){return(u.state||{idx:null}).idx}function C(){d="POP";let E=p(),j=E==null?null:E-m;m=E,h&&h({action:d,location:S.location,delta:j})}function v(E,j){d="PUSH";let T=K7(S.location,E,j);m=p()+1;let L=eh(T,m),D=S.createHref(T);try{u.pushState(L,"",D)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;s.location.assign(D)}l&&h&&h({action:d,location:S.location,delta:1})}function w(E,j){d="REPLACE";let T=K7(S.location,E,j);m=p();let L=eh(T,m),D=S.createHref(T);u.replaceState(L,"",D),l&&h&&h({action:d,location:S.location,delta:0})}function b(E){return fA(E)}let S={get action(){return d},get location(){return e(s,u)},listen(E){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Jd,C),h=E,()=>{s.removeEventListener(Jd,C),h=null}},createHref(E){return t(s,E)},createURL:b,encodeLocation(E){let j=b(E);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:v,replace:w,go(E){return u.go(E)}};return S}function fA(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),jt(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:P1(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function zg(e,t,n="/"){return dA(e,t,n,!1)}function dA(e,t,n,i){let s=typeof t=="string"?Q1(t):t,l=Gr(s.pathname||"/",n);if(l==null)return null;let u=Fg(e);hA(u);let d=null;for(let h=0;d==null&&h<u.length;++h){let m=EA(l);d=wA(u[h],m,i)}return d}function Fg(e,t=[],n=[],i=""){let s=(l,u,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};h.relativePath.startsWith("/")&&(jt(h.relativePath.startsWith(i),`Absolute route path "${h.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(i.length));let m=Br([i,h.relativePath]),p=n.concat(h);l.children&&l.children.length>0&&(jt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Fg(l.children,t,p,m)),!(l.path==null&&!l.index)&&t.push({path:m,score:yA(m,l.index),routesMeta:p})};return e.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))s(l,u);else for(let h of Bg(l.path))s(l,u,h)}),t}function Bg(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return s?[l,""]:[l];let u=Bg(i.join("/")),d=[];return d.push(...u.map(h=>h===""?l:[l,h].join("/"))),s&&d.push(...u),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function hA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bA(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var mA=/^:[\w-]+$/,pA=3,gA=2,CA=1,vA=10,xA=-2,th=e=>e==="*";function yA(e,t){let n=e.split("/"),i=n.length;return n.some(th)&&(i+=xA),t&&(i+=gA),n.filter(s=>!th(s)).reduce((s,l)=>s+(mA.test(l)?pA:l===""?CA:vA),i)}function bA(e,t){return e.length===t.length&&e.slice(0,-1).every((i,s)=>i===t[s])?e[e.length-1]-t[t.length-1]:0}function wA(e,t,n=!1){let{routesMeta:i}=e,s={},l="/",u=[];for(let d=0;d<i.length;++d){let h=i[d],m=d===i.length-1,p=l==="/"?t:t.slice(l.length)||"/",C=vc({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},p),v=h.route;if(!C&&m&&n&&!i[i.length-1].route.index&&(C=vc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},p)),!C)return null;Object.assign(s,C.params),u.push({params:s,pathname:Br([l,C.pathname]),pathnameBase:LA(Br([l,C.pathnameBase])),route:v}),C.pathnameBase!=="/"&&(l=Br([l,C.pathnameBase]))}return u}function vc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=SA(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let l=s[0],u=l.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:i.reduce((m,{paramName:p,isOptional:C},v)=>{if(p==="*"){let b=d[v]||"";u=l.slice(0,l.length-b.length).replace(/(.)\/+$/,"$1")}const w=d[v];return C&&!w?m[p]=void 0:m[p]=(w||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:u,pattern:e}}function SA(e,t=!1,n=!0){zn(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 i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}function EA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zn(!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 (${t}).`),e}}function Gr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function jA(e,t="/"){let{pathname:n,search:i="",hash:s=""}=typeof e=="string"?Q1(e):e;return{pathname:n?n.startsWith("/")?n:AA(n,t):t,search:TA(i),hash:NA(s)}}function AA(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function W3(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function MA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function t6(e){let t=MA(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function n6(e,t,n,i=!1){let s;typeof e=="string"?s=Q1(e):(s={...e},jt(!s.pathname||!s.pathname.includes("?"),W3("?","pathname","search",s)),jt(!s.pathname||!s.pathname.includes("#"),W3("#","pathname","hash",s)),jt(!s.search||!s.search.includes("#"),W3("#","search","hash",s)));let l=e===""||s.pathname==="",u=l?"/":s.pathname,d;if(u==null)d=n;else{let C=t.length-1;if(!i&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),C-=1;s.pathname=v.join("/")}d=C>=0?t[C]:"/"}let h=jA(s,d),m=u&&u!=="/"&&u.endsWith("/"),p=(l||u===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(m||p)&&(h.pathname+="/"),h}var Br=e=>e.join("/").replace(/\/\/+/g,"/"),LA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function RA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ug=["POST","PUT","PATCH","DELETE"];new Set(Ug);var DA=["GET",...Ug];new Set(DA);var Qs=y.createContext(null);Qs.displayName="DataRouter";var Zc=y.createContext(null);Zc.displayName="DataRouterState";var Hg=y.createContext({isTransitioning:!1});Hg.displayName="ViewTransition";var kA=y.createContext(new Map);kA.displayName="Fetchers";var OA=y.createContext(null);OA.displayName="Await";var Xn=y.createContext(null);Xn.displayName="Navigation";var Gc=y.createContext(null);Gc.displayName="Location";var Bn=y.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var r6=y.createContext(null);r6.displayName="RouteError";function _A(e,{relative:t}={}){jt(Xs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=y.useContext(Xn),{hash:s,pathname:l,search:u}=X1(e,{relative:t}),d=l;return n!=="/"&&(d=l==="/"?n:Br([n,l])),i.createHref({pathname:d,search:u,hash:s})}function Xs(){return y.useContext(Gc)!=null}function Un(){return jt(Xs(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Gc).location}var Ig="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zg(e){y.useContext(Xn).static||y.useLayoutEffect(e)}function gr(){let{isDataRoute:e}=y.useContext(Bn);return e?KA():PA()}function PA(){jt(Xs(),"useNavigate() may be used only in the context of a <Router> component.");let e=y.useContext(Qs),{basename:t,navigator:n}=y.useContext(Xn),{matches:i}=y.useContext(Bn),{pathname:s}=Un(),l=JSON.stringify(t6(i)),u=y.useRef(!1);return Zg(()=>{u.current=!0}),y.useCallback((h,m={})=>{if(zn(u.current,Ig),!u.current)return;if(typeof h=="number"){n.go(h);return}let p=n6(h,JSON.parse(l),s,m.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Br([t,p.pathname])),(m.replace?n.replace:n.push)(p,m.state,m)},[t,n,l,s,e])}var VA=y.createContext(null);function zA(e){let t=y.useContext(Bn).outlet;return t&&y.createElement(VA.Provider,{value:e},t)}function Xr(){let{matches:e}=y.useContext(Bn),t=e[e.length-1];return t?t.params:{}}function X1(e,{relative:t}={}){let{matches:n}=y.useContext(Bn),{pathname:i}=Un(),s=JSON.stringify(t6(n));return y.useMemo(()=>n6(e,JSON.parse(s),i,t==="path"),[e,s,i,t])}function FA(e,t){return Gg(e)}function Gg(e,t,n,i){jt(Xs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=y.useContext(Xn),{matches:l}=y.useContext(Bn),u=l[l.length-1],d=u?u.params:{},h=u?u.pathname:"/",m=u?u.pathnameBase:"/",p=u&&u.route;{let j=p&&p.path||"";Yg(h,!p||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let C=Un(),v;v=C;let w=v.pathname||"/",b=w;if(m!=="/"){let j=m.replace(/^\//,"").split("/");b="/"+w.replace(/^\//,"").split("/").slice(j.length).join("/")}let S=zg(e,{pathname:b});return zn(p||S!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),zn(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 "${v.pathname}${v.search}${v.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.`),ZA(S&&S.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:Br([m,s.encodeLocation?s.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:Br([m,s.encodeLocation?s.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,n,i)}function BA(){let e=qA(),t=RA(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},l={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:l},"ErrorBoundary")," or"," ",y.createElement("code",{style:l},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:s},n):null,u)}var UA=y.createElement(BA,null),HA=class extends y.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,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?y.createElement(Bn.Provider,{value:this.props.routeContext},y.createElement(r6.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function IA({routeContext:e,match:t,children:n}){let i=y.useContext(Qs);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(Bn.Provider,{value:e},n)}function ZA(e,t=[],n=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=n==null?void 0:n.errors;if(l!=null){let h=s.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);jt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let u=!1,d=-1;if(n)for(let h=0;h<s.length;h++){let m=s[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=h),m.route.id){let{loaderData:p,errors:C}=n,v=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!C||C[m.route.id]===void 0);if(m.route.lazy||v){u=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,m,p)=>{let C,v=!1,w=null,b=null;n&&(C=l&&m.route.id?l[m.route.id]:void 0,w=m.route.errorElement||UA,u&&(d<0&&p===0?(Yg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,b=null):d===p&&(v=!0,b=m.route.hydrateFallbackElement||null)));let S=t.concat(s.slice(0,p+1)),E=()=>{let j;return C?j=w:v?j=b:m.route.Component?j=y.createElement(m.route.Component,null):m.route.element?j=m.route.element:j=h,y.createElement(IA,{match:m,routeContext:{outlet:h,matches:S,isDataRoute:n!=null},children:j})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?y.createElement(HA,{location:n.location,revalidation:n.revalidation,component:w,error:C,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):E()},null)}function i6(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function GA(e){let t=y.useContext(Qs);return jt(t,i6(e)),t}function YA(e){let t=y.useContext(Zc);return jt(t,i6(e)),t}function $A(e){let t=y.useContext(Bn);return jt(t,i6(e)),t}function a6(e){let t=$A(e),n=t.matches[t.matches.length-1];return jt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function WA(){return a6("useRouteId")}function qA(){var i;let e=y.useContext(r6),t=YA("useRouteError"),n=a6("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[n]}function KA(){let{router:e}=GA("useNavigate"),t=a6("useNavigate"),n=y.useRef(!1);return Zg(()=>{n.current=!0}),y.useCallback(async(s,l={})=>{zn(n.current,Ig),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var nh={};function Yg(e,t,n){!t&&!nh[e]&&(nh[e]=!0,zn(!1,n))}y.memo(QA);function QA({routes:e,future:t,state:n}){return Gg(e,void 0,n,t)}function Q2({to:e,replace:t,state:n,relative:i}){jt(Xs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=y.useContext(Xn);zn(!s,"<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:l}=y.useContext(Bn),{pathname:u}=Un(),d=gr(),h=n6(e,t6(l),u,i==="path"),m=JSON.stringify(h);return y.useEffect(()=>{d(JSON.parse(m),{replace:t,state:n,relative:i})},[d,m,i,t,n]),null}function Yc(e){return zA(e.context)}function XA({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:s,static:l=!1}){jt(!Xs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=y.useMemo(()=>({basename:u,navigator:s,static:l,future:{}}),[u,s,l]);typeof n=="string"&&(n=Q1(n));let{pathname:h="/",search:m="",hash:p="",state:C=null,key:v="default"}=n,w=y.useMemo(()=>{let b=Gr(h,u);return b==null?null:{location:{pathname:b,search:m,hash:p,state:C,key:v},navigationType:i}},[u,h,m,p,C,v,i]);return zn(w!=null,`<Router basename="${u}"> is not able to match the URL "${h}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:y.createElement(Xn.Provider,{value:d},y.createElement(Gc.Provider,{children:t,value:w}))}var X2="get",J2="application/x-www-form-urlencoded";function $c(e){return e!=null&&typeof e.tagName=="string"}function JA(e){return $c(e)&&e.tagName.toLowerCase()==="button"}function eM(e){return $c(e)&&e.tagName.toLowerCase()==="form"}function tM(e){return $c(e)&&e.tagName.toLowerCase()==="input"}function nM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rM(e,t){return e.button===0&&(!t||t==="_self")&&!nM(e)}function Q7(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map(s=>[n,s]):[[n,i]])},[]))}function iM(e,t){let n=Q7(e);return t&&t.forEach((i,s)=>{n.has(s)||t.getAll(s).forEach(l=>{n.append(s,l)})}),n}var T2=null;function aM(){if(T2===null)try{new FormData(document.createElement("form"),0),T2=!1}catch{T2=!0}return T2}var sM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function q3(e){return e!=null&&!sM.has(e)?(zn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${J2}"`),null):e}function oM(e,t){let n,i,s,l,u;if(eM(e)){let d=e.getAttribute("action");i=d?Gr(d,t):null,n=e.getAttribute("method")||X2,s=q3(e.getAttribute("enctype"))||J2,l=new FormData(e)}else if(JA(e)||tM(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||d.getAttribute("action");if(i=h?Gr(h,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||X2,s=q3(e.getAttribute("formenctype"))||q3(d.getAttribute("enctype"))||J2,l=new FormData(d,e),!aM()){let{name:m,type:p,value:C}=e;if(p==="image"){let v=m?`${m}.`:"";l.append(`${v}x`,"0"),l.append(`${v}y`,"0")}else m&&l.append(m,C)}}else{if($c(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=X2,i=null,s=J2,u=e}return l&&s==="text/plain"&&(u=l,l=void 0),{action:i,method:n.toLowerCase(),encType:s,formData:l,body:u}}function s6(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function lM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function cM(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 uM(e,t,n){let i=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let u=await lM(l,n);return u.links?u.links():[]}return[]}));return mM(i.flat(1).filter(cM).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function rh(e,t,n,i,s,l){let u=(h,m)=>n[m]?h.route.id!==n[m].route.id:!0,d=(h,m)=>{var p;return n[m].pathname!==h.pathname||((p=n[m].route.path)==null?void 0:p.endsWith("*"))&&n[m].params["*"]!==h.params["*"]};return l==="assets"?t.filter((h,m)=>u(h,m)||d(h,m)):l==="data"?t.filter((h,m)=>{var C;let p=i.routes[h.route.id];if(!p||!p.hasLoader)return!1;if(u(h,m)||d(h,m))return!0;if(h.route.shouldRevalidate){let v=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((C=n[0])==null?void 0:C.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function fM(e,t,{includeHydrateFallback:n}={}){return dM(e.map(i=>{let s=t.routes[i.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function dM(e){return[...new Set(e)]}function hM(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function mM(e,t){let n=new Set;return new Set(t),e.reduce((i,s)=>{let l=JSON.stringify(hM(s));return n.has(l)||(n.add(l),i.push({key:l,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pM=new Set([100,101,204,205]);function gM(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Gr(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function $g(){let e=y.useContext(Qs);return s6(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function CM(){let e=y.useContext(Zc);return s6(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var o6=y.createContext(void 0);o6.displayName="FrameworkContext";function Wg(){let e=y.useContext(o6);return s6(e,"You must render this element inside a <HydratedRouter> element"),e}function vM(e,t){let n=y.useContext(o6),[i,s]=y.useState(!1),[l,u]=y.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:m,onMouseLeave:p,onTouchStart:C}=t,v=y.useRef(null);y.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=j=>{j.forEach(T=>{u(T.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return v.current&&E.observe(v.current),()=>{E.disconnect()}}},[e]),y.useEffect(()=>{if(i){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[i]);let w=()=>{s(!0)},b=()=>{s(!1),u(!1)};return n?e!=="intent"?[l,v,{}]:[l,v,{onFocus:g1(d,w),onBlur:g1(h,b),onMouseEnter:g1(m,w),onMouseLeave:g1(p,b),onTouchStart:g1(C,w)}]:[!1,v,{}]}function g1(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function xM({page:e,...t}){let{router:n}=$g(),i=y.useMemo(()=>zg(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?y.createElement(bM,{page:e,matches:i,...t}):null}function yM(e){let{manifest:t,routeModules:n}=Wg(),[i,s]=y.useState([]);return y.useEffect(()=>{let l=!1;return uM(e,t,n).then(u=>{l||s(u)}),()=>{l=!0}},[e,t,n]),i}function bM({page:e,matches:t,...n}){let i=Un(),{manifest:s,routeModules:l}=Wg(),{basename:u}=$g(),{loaderData:d,matches:h}=CM(),m=y.useMemo(()=>rh(e,t,h,s,i,"data"),[e,t,h,s,i]),p=y.useMemo(()=>rh(e,t,h,s,i,"assets"),[e,t,h,s,i]),C=y.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let b=new Set,S=!1;if(t.forEach(j=>{var L;let T=s.routes[j.route.id];!T||!T.hasLoader||(!m.some(D=>D.route.id===j.route.id)&&j.route.id in d&&((L=l[j.route.id])!=null&&L.shouldRevalidate)||T.hasClientLoader?S=!0:b.add(j.route.id))}),b.size===0)return[];let E=gM(e,u);return S&&b.size>0&&E.searchParams.set("_routes",t.filter(j=>b.has(j.route.id)).map(j=>j.route.id).join(",")),[E.pathname+E.search]},[u,d,i,s,m,t,e,l]),v=y.useMemo(()=>fM(p,s),[p,s]),w=yM(p);return y.createElement(y.Fragment,null,C.map(b=>y.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),v.map(b=>y.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),w.map(({key:b,link:S})=>y.createElement("link",{key:b,...S})))}function wM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qg&&(window.__reactRouterVersion="7.6.3")}catch{}function SM({basename:e,children:t,window:n}){let i=y.useRef();i.current==null&&(i.current=lA({window:n,v5Compat:!0}));let s=i.current,[l,u]=y.useState({action:s.action,location:s.location}),d=y.useCallback(h=>{y.startTransition(()=>u(h))},[u]);return y.useLayoutEffect(()=>s.listen(d),[s,d]),y.createElement(XA,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s})}var Kg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qg=y.forwardRef(function({onClick:t,discover:n="render",prefetch:i="none",relative:s,reloadDocument:l,replace:u,state:d,target:h,to:m,preventScrollReset:p,viewTransition:C,...v},w){let{basename:b}=y.useContext(Xn),S=typeof m=="string"&&Kg.test(m),E,j=!1;if(typeof m=="string"&&S&&(E=m,qg))try{let I=new URL(window.location.href),ne=m.startsWith("//")?new URL(I.protocol+m):new URL(m),Q=Gr(ne.pathname,b);ne.origin===I.origin&&Q!=null?m=Q+ne.search+ne.hash:j=!0}catch{zn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=_A(m,{relative:s}),[L,D,M]=vM(i,v),k=AM(m,{replace:u,state:d,target:h,preventScrollReset:p,relative:s,viewTransition:C});function O(I){t&&t(I),I.defaultPrevented||k(I)}let z=y.createElement("a",{...v,...M,href:E||T,onClick:j||l?t:O,ref:wM(w,D),target:h,"data-discover":!S&&n==="render"?"true":void 0});return L&&!S?y.createElement(y.Fragment,null,z,y.createElement(xM,{page:T})):z});Qg.displayName="Link";var tt=y.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:i="",end:s=!1,style:l,to:u,viewTransition:d,children:h,...m},p){let C=X1(u,{relative:m.relative}),v=Un(),w=y.useContext(Zc),{navigator:b,basename:S}=y.useContext(Xn),E=w!=null&&RM(C)&&d===!0,j=b.encodeLocation?b.encodeLocation(C).pathname:C.pathname,T=v.pathname,L=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(T=T.toLowerCase(),L=L?L.toLowerCase():null,j=j.toLowerCase()),L&&S&&(L=Gr(L,S)||L);const D=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let M=T===j||!s&&T.startsWith(j)&&T.charAt(D)==="/",k=L!=null&&(L===j||!s&&L.startsWith(j)&&L.charAt(j.length)==="/"),O={isActive:M,isPending:k,isTransitioning:E},z=M?t:void 0,I;typeof i=="function"?I=i(O):I=[i,M?"active":null,k?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let ne=typeof l=="function"?l(O):l;return y.createElement(Qg,{...m,"aria-current":z,className:I,ref:p,style:ne,to:u,viewTransition:d},typeof h=="function"?h(O):h)});tt.displayName="NavLink";var EM=y.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:s,state:l,method:u=X2,action:d,onSubmit:h,relative:m,preventScrollReset:p,viewTransition:C,...v},w)=>{let b=TM(),S=NM(d,{relative:m}),E=u.toLowerCase()==="get"?"get":"post",j=typeof d=="string"&&Kg.test(d),T=L=>{if(h&&h(L),L.defaultPrevented)return;L.preventDefault();let D=L.nativeEvent.submitter,M=(D==null?void 0:D.getAttribute("formmethod"))||u;b(D||L.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:s,state:l,relative:m,preventScrollReset:p,viewTransition:C})};return y.createElement("form",{ref:w,method:E,action:S,onSubmit:i?h:T,...v,"data-discover":!j&&e==="render"?"true":void 0})});EM.displayName="Form";function jM(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xg(e){let t=y.useContext(Qs);return jt(t,jM(e)),t}function AM(e,{target:t,replace:n,state:i,preventScrollReset:s,relative:l,viewTransition:u}={}){let d=gr(),h=Un(),m=X1(e,{relative:l});return y.useCallback(p=>{if(rM(p,t)){p.preventDefault();let C=n!==void 0?n:P1(h)===P1(m);d(e,{replace:C,state:i,preventScrollReset:s,relative:l,viewTransition:u})}},[h,d,m,n,i,t,e,s,l,u])}function rK(e){zn(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 t=y.useRef(Q7(e)),n=y.useRef(!1),i=Un(),s=y.useMemo(()=>iM(i.search,n.current?null:t.current),[i.search]),l=gr(),u=y.useCallback((d,h)=>{const m=Q7(typeof d=="function"?d(s):d);n.current=!0,l("?"+m,h)},[l,s]);return[s,u]}var MM=0,LM=()=>`__${String(++MM)}__`;function TM(){let{router:e}=Xg("useSubmit"),{basename:t}=y.useContext(Xn),n=WA();return y.useCallback(async(i,s={})=>{let{action:l,method:u,encType:d,formData:h,body:m}=oM(i,t);if(s.navigate===!1){let p=s.fetcherKey||LM();await e.fetch(p,n,s.action||l,{preventScrollReset:s.preventScrollReset,formData:h,body:m,formMethod:s.method||u,formEncType:s.encType||d,flushSync:s.flushSync})}else await e.navigate(s.action||l,{preventScrollReset:s.preventScrollReset,formData:h,body:m,formMethod:s.method||u,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function NM(e,{relative:t}={}){let{basename:n}=y.useContext(Xn),i=y.useContext(Bn);jt(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),l={...X1(e||".",{relative:t})},u=Un();if(e==null){l.search=u.search;let d=new URLSearchParams(l.search),h=d.getAll("index");if(h.some(p=>p==="")){d.delete("index"),h.filter(C=>C).forEach(C=>d.append("index",C));let p=d.toString();l.search=p?`?${p}`:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Br([n,l.pathname])),P1(l)}function RM(e,t={}){let n=y.useContext(Hg);jt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Xg("useViewTransitionState"),s=X1(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=Gr(n.currentLocation.pathname,i)||n.currentLocation.pathname,u=Gr(n.nextLocation.pathname,i)||n.nextLocation.pathname;return vc(s.pathname,u)!=null||vc(s.pathname,l)!=null}[...pM];var l6=_g();const DM=Pi(l6),Jg=y.createContext(void 0),Vi=()=>{const e=y.useContext(Jg);if(!e)throw new Error("useAuth must be used within a AuthProvider");return e},kM=({children:e})=>{const[t,n]=y.useState(""),i=E=>n(E),[s,l,u]=aA(["token","user"]),d=()=>{try{return s.user?typeof s.user=="object"?s.user:typeof s.user=="string"?JSON.parse(s.user):null:null}catch(E){return console.error("Error parsing user cookie:",E),null}},[h,m]=y.useState(d),[p,C]=y.useState(!!s.token),v=gr(),w=E=>{m(j=>j&&{...j,profile_picture_url:E})},b=E=>{m(E),E?l("user",JSON.stringify(E)):u("user")};function S(){C(!1),u("token"),u("user"),m(null),v("/")}return y.useEffect(()=>{console.log(h),b(h)},[h]),c.jsx(Jg.Provider,{value:{confirmPhone:t,setPhone:i,user:h,updateUser:b,logout:S,isAuthenticated:p,updatePFP:w,setIsAuthenticated:C},children:e})},c6=y.createContext({});function u6(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const f6=typeof window<"u",eC=f6?y.useLayoutEffect:y.useEffect,Wc=y.createContext(null);function d6(e,t){e.indexOf(t)===-1&&e.push(t)}function h6(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yr=(e,t,n)=>n>t?t:n<e?e:n;let m6=()=>{};const $r={},tC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function nC(e){return typeof e=="object"&&e!==null}const rC=e=>/^0[^.\s]+$/u.test(e);function p6(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pn=e=>e,OM=(e,t)=>n=>t(e(n)),J1=(...e)=>e.reduce(OM),V1=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class g6{constructor(){this.subscriptions=[]}add(t){return d6(this.subscriptions,t),()=>h6(this.subscriptions,t)}notify(t,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,i);else for(let l=0;l<s;l++){const u=this.subscriptions[l];u&&u(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fr=e=>e*1e3,_n=e=>e/1e3;function iC(e,t){return t?e*(1e3/t):0}const aC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_M=1e-7,PM=12;function VM(e,t,n,i,s){let l,u,d=0;do u=t+(n-t)/2,l=aC(u,i,s)-e,l>0?n=u:t=u;while(Math.abs(l)>_M&&++d<PM);return u}function el(e,t,n,i){if(e===t&&n===i)return Pn;const s=l=>VM(l,0,1,e,n);return l=>l===0||l===1?l:aC(s(l),t,i)}const sC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oC=e=>t=>1-e(1-t),lC=el(.33,1.53,.69,.99),C6=oC(lC),cC=sC(C6),uC=e=>(e*=2)<1?.5*C6(e):.5*(2-Math.pow(2,-10*(e-1))),v6=e=>1-Math.sin(Math.acos(e)),fC=oC(v6),dC=sC(v6),zM=el(.42,0,1,1),FM=el(0,0,.58,1),hC=el(.42,0,.58,1),BM=e=>Array.isArray(e)&&typeof e[0]!="number",mC=e=>Array.isArray(e)&&typeof e[0]=="number",UM={linear:Pn,easeIn:zM,easeInOut:hC,easeOut:FM,circIn:v6,circInOut:dC,circOut:fC,backIn:C6,backInOut:cC,backOut:lC,anticipate:uC},HM=e=>typeof e=="string",ih=e=>{if(mC(e)){m6(e.length===4);const[t,n,i,s]=e;return el(t,n,i,s)}else if(HM(e))return UM[e];return e},N2=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function IM(e,t){let n=new Set,i=new Set,s=!1,l=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(p){u.has(p)&&(m.schedule(p),e()),p(d)}const m={schedule:(p,C=!1,v=!1)=>{const b=v&&s?n:i;return C&&u.add(p),b.has(p)||b.add(p),p},cancel:p=>{i.delete(p),u.delete(p)},process:p=>{if(d=p,s){l=!0;return}s=!0,[n,i]=[i,n],n.forEach(h),n.clear(),s=!1,l&&(l=!1,m.process(p))}};return m}const ZM=40;function pC(e,t){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=N2.reduce((L,D)=>(L[D]=IM(l),L),{}),{setup:d,read:h,resolveKeyframes:m,preUpdate:p,update:C,preRender:v,render:w,postRender:b}=u,S=()=>{const L=$r.useManualTiming?s.timestamp:performance.now();n=!1,$r.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(L-s.timestamp,ZM),1)),s.timestamp=L,s.isProcessing=!0,d.process(s),h.process(s),m.process(s),p.process(s),C.process(s),v.process(s),w.process(s),b.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(S))},E=()=>{n=!0,i=!0,s.isProcessing||e(S)};return{schedule:N2.reduce((L,D)=>{const M=u[D];return L[D]=(k,O=!1,z=!1)=>(n||E(),M.schedule(k,O,z)),L},{}),cancel:L=>{for(let D=0;D<N2.length;D++)u[N2[D]].cancel(L)},state:s,steps:u}}const{schedule:ft,cancel:Ni,state:Ht,steps:K3}=pC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pn,!0);let ec;function GM(){ec=void 0}const un={now:()=>(ec===void 0&&un.set(Ht.isProcessing||$r.useManualTiming?Ht.timestamp:performance.now()),ec),set:e=>{ec=e,queueMicrotask(GM)}},gC=e=>t=>typeof t=="string"&&t.startsWith(e),CC=gC("--"),YM=gC("var(--"),x6=e=>YM(e)?$M.test(e.split("/*")[0].trim()):!1,$M=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},z1={...Js,transform:e=>Yr(0,1,e)},R2={...Js,default:1},M1=e=>Math.round(e*1e5)/1e5,y6=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WM(e){return e==null}const qM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,b6=(e,t)=>n=>!!(typeof n=="string"&&qM.test(n)&&n.startsWith(e)||t&&!WM(n)&&Object.prototype.hasOwnProperty.call(n,t)),vC=(e,t,n)=>i=>{if(typeof i!="string")return i;const[s,l,u,d]=i.match(y6);return{[e]:parseFloat(s),[t]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},KM=e=>Yr(0,255,e),Q3={...Js,transform:e=>Math.round(KM(e))},ha={test:b6("rgb","red"),parse:vC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Q3.transform(e)+", "+Q3.transform(t)+", "+Q3.transform(n)+", "+M1(z1.transform(i))+")"};function QM(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const X7={test:b6("#"),parse:QM,transform:ha.transform},tl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ji=tl("deg"),dr=tl("%"),Me=tl("px"),XM=tl("vh"),JM=tl("vw"),ah={...dr,parse:e=>dr.parse(e)/100,transform:e=>dr.transform(e*100)},Os={test:b6("hsl","hue"),parse:vC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+dr.transform(M1(t))+", "+dr.transform(M1(n))+", "+M1(z1.transform(i))+")"},St={test:e=>ha.test(e)||X7.test(e)||Os.test(e),parse:e=>ha.test(e)?ha.parse(e):Os.test(e)?Os.parse(e):X7.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ha.transform(e):Os.transform(e),getAnimatableNone:e=>{const t=St.parse(e);return t.alpha=0,St.transform(t)}},eL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tL(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(y6))==null?void 0:t.length)||0)+(((n=e.match(eL))==null?void 0:n.length)||0)>0}const xC="number",yC="color",nL="var",rL="var(",sh="${}",iL=/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 F1(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[];let l=0;const d=t.replace(iL,h=>(St.test(h)?(i.color.push(l),s.push(yC),n.push(St.parse(h))):h.startsWith(rL)?(i.var.push(l),s.push(nL),n.push(h)):(i.number.push(l),s.push(xC),n.push(parseFloat(h))),++l,sh)).split(sh);return{values:n,split:d,indexes:i,types:s}}function bC(e){return F1(e).values}function wC(e){const{split:t,types:n}=F1(e),i=t.length;return s=>{let l="";for(let u=0;u<i;u++)if(l+=t[u],s[u]!==void 0){const d=n[u];d===xC?l+=M1(s[u]):d===yC?l+=St.transform(s[u]):l+=s[u]}return l}}const aL=e=>typeof e=="number"?0:St.test(e)?St.getAnimatableNone(e):e;function sL(e){const t=bC(e);return wC(e)(t.map(aL))}const Ri={test:tL,parse:bC,createTransformer:wC,getAnimatableNone:sL};function X3(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oL({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,l=0,u=0;if(!t)s=l=u=n;else{const d=n<.5?n*(1+t):n+t-n*t,h=2*n-d;s=X3(h,d,e+1/3),l=X3(h,d,e),u=X3(h,d,e-1/3)}return{red:Math.round(s*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function xc(e,t){return n=>n>0?t:e}const mt=(e,t,n)=>e+(t-e)*n,J3=(e,t,n)=>{const i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},lL=[X7,ha,Os],cL=e=>lL.find(t=>t.test(e));function oh(e){const t=cL(e);if(!t)return!1;let n=t.parse(e);return t===Os&&(n=oL(n)),n}const lh=(e,t)=>{const n=oh(e),i=oh(t);if(!n||!i)return xc(e,t);const s={...n};return l=>(s.red=J3(n.red,i.red,l),s.green=J3(n.green,i.green,l),s.blue=J3(n.blue,i.blue,l),s.alpha=mt(n.alpha,i.alpha,l),ha.transform(s))},J7=new Set(["none","hidden"]);function uL(e,t){return J7.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fL(e,t){return n=>mt(e,t,n)}function w6(e){return typeof e=="number"?fL:typeof e=="string"?x6(e)?xc:St.test(e)?lh:mL:Array.isArray(e)?SC:typeof e=="object"?St.test(e)?lh:dL:xc}function SC(e,t){const n=[...e],i=n.length,s=e.map((l,u)=>w6(l)(l,t[u]));return l=>{for(let u=0;u<i;u++)n[u]=s[u](l);return n}}function dL(e,t){const n={...e,...t},i={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=w6(e[s])(e[s],t[s]));return s=>{for(const l in i)n[l]=i[l](s);return n}}function hL(e,t){const n=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const l=t.types[s],u=e.indexes[l][i[l]],d=e.values[u]??0;n[s]=d,i[l]++}return n}const mL=(e,t)=>{const n=Ri.createTransformer(t),i=F1(e),s=F1(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?J7.has(e)&&!s.values.length||J7.has(t)&&!i.values.length?uL(e,t):J1(SC(hL(i,s),s.values),n):xc(e,t)};function EC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?mt(e,t,n):w6(e)(e,t)}const pL=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ft.update(t,n),stop:()=>Ni(t),now:()=>Ht.isProcessing?Ht.timestamp:un.now()}},jC=(e,t,n=10)=>{let i="";const s=Math.max(Math.round(t/n),2);for(let l=0;l<s;l++)i+=Math.round(e(l/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},yc=2e4;function S6(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<yc;)t+=n,i=e.next(t);return t>=yc?1/0:t}function gL(e,t=100,n){const i=n({...e,keyframes:[0,t]}),s=Math.min(S6(i),yc);return{type:"keyframes",ease:l=>i.next(s*l).value/t,duration:_n(s)}}const CL=5;function AC(e,t,n){const i=Math.max(t-CL,0);return iC(n-e(i),t-i)}const vt={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},e7=.001;function vL({duration:e=vt.duration,bounce:t=vt.bounce,velocity:n=vt.velocity,mass:i=vt.mass}){let s,l,u=1-t;u=Yr(vt.minDamping,vt.maxDamping,u),e=Yr(vt.minDuration,vt.maxDuration,_n(e)),u<1?(s=m=>{const p=m*u,C=p*e,v=p-n,w=e4(m,u),b=Math.exp(-C);return e7-v/w*b},l=m=>{const C=m*u*e,v=C*n+n,w=Math.pow(u,2)*Math.pow(m,2)*e,b=Math.exp(-C),S=e4(Math.pow(m,2),u);return(-s(m)+e7>0?-1:1)*((v-w)*b)/S}):(s=m=>{const p=Math.exp(-m*e),C=(m-n)*e+1;return-e7+p*C},l=m=>{const p=Math.exp(-m*e),C=(n-m)*(e*e);return p*C});const d=5/e,h=yL(s,l,d);if(e=fr(e),isNaN(h))return{stiffness:vt.stiffness,damping:vt.damping,duration:e};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:u*2*Math.sqrt(i*m),duration:e}}}const xL=12;function yL(e,t,n){let i=n;for(let s=1;s<xL;s++)i=i-e(i)/t(i);return i}function e4(e,t){return e*Math.sqrt(1-t*t)}const bL=["duration","bounce"],wL=["stiffness","damping","mass"];function ch(e,t){return t.some(n=>e[n]!==void 0)}function SL(e){let t={velocity:vt.velocity,stiffness:vt.stiffness,damping:vt.damping,mass:vt.mass,isResolvedFromDuration:!1,...e};if(!ch(e,wL)&&ch(e,bL))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,l=2*Yr(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:vt.mass,stiffness:s,damping:l}}else{const n=vL(e);t={...t,...n,mass:vt.mass},t.isResolvedFromDuration=!0}return t}function bc(e=vt.visualDuration,t=vt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:s}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:m,mass:p,duration:C,velocity:v,isResolvedFromDuration:w}=SL({...n,velocity:-_n(n.velocity||0)}),b=v||0,S=m/(2*Math.sqrt(h*p)),E=u-l,j=_n(Math.sqrt(h/p)),T=Math.abs(E)<5;i||(i=T?vt.restSpeed.granular:vt.restSpeed.default),s||(s=T?vt.restDelta.granular:vt.restDelta.default);let L;if(S<1){const M=e4(j,S);L=k=>{const O=Math.exp(-S*j*k);return u-O*((b+S*j*E)/M*Math.sin(M*k)+E*Math.cos(M*k))}}else if(S===1)L=M=>u-Math.exp(-j*M)*(E+(b+j*E)*M);else{const M=j*Math.sqrt(S*S-1);L=k=>{const O=Math.exp(-S*j*k),z=Math.min(M*k,300);return u-O*((b+S*j*E)*Math.sinh(z)+M*E*Math.cosh(z))/M}}const D={calculatedDuration:w&&C||null,next:M=>{const k=L(M);if(w)d.done=M>=C;else{let O=M===0?b:0;S<1&&(O=M===0?fr(b):AC(L,M,k));const z=Math.abs(O)<=i,I=Math.abs(u-k)<=s;d.done=z&&I}return d.value=d.done?u:k,d},toString:()=>{const M=Math.min(S6(D),yc),k=jC(O=>D.next(M*O).value,M,30);return M+"ms "+k},toTransition:()=>{}};return D}bc.applyToOptions=e=>{const t=gL(e,100,bc);return e.ease=t.ease,e.duration=fr(t.duration),e.type="keyframes",e};function t4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:h,restDelta:m=.5,restSpeed:p}){const C=e[0],v={done:!1,value:C},w=z=>d!==void 0&&z<d||h!==void 0&&z>h,b=z=>d===void 0?h:h===void 0||Math.abs(d-z)<Math.abs(h-z)?d:h;let S=n*t;const E=C+S,j=u===void 0?E:u(E);j!==E&&(S=j-C);const T=z=>-S*Math.exp(-z/i),L=z=>j+T(z),D=z=>{const I=T(z),ne=L(z);v.done=Math.abs(I)<=m,v.value=v.done?j:ne};let M,k;const O=z=>{w(v.value)&&(M=z,k=bc({keyframes:[v.value,b(v.value)],velocity:AC(L,z,v.value),damping:s,stiffness:l,restDelta:m,restSpeed:p}))};return O(0),{calculatedDuration:null,next:z=>{let I=!1;return!k&&M===void 0&&(I=!0,D(z),O(z)),M!==void 0&&z>=M?k.next(z-M):(!I&&D(z),v)}}}function EL(e,t,n){const i=[],s=n||$r.mix||EC,l=e.length-1;for(let u=0;u<l;u++){let d=s(e[u],e[u+1]);if(t){const h=Array.isArray(t)?t[u]||Pn:t;d=J1(h,d)}i.push(d)}return i}function jL(e,t,{clamp:n=!0,ease:i,mixer:s}={}){const l=e.length;if(m6(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=EL(t,i,s),h=d.length,m=p=>{if(u&&p<e[0])return t[0];let C=0;if(h>1)for(;C<e.length-2&&!(p<e[C+1]);C++);const v=V1(e[C],e[C+1],p);return d[C](v)};return n?p=>m(Yr(e[0],e[l-1],p)):m}function AL(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const s=V1(0,t,i);e.push(mt(n,1,s))}}function ML(e){const t=[0];return AL(t,e.length-1),t}function LL(e,t){return e.map(n=>n*t)}function TL(e,t){return e.map(()=>t||hC).splice(0,e.length-1)}function L1({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const s=BM(i)?i.map(ih):ih(i),l={done:!1,value:t[0]},u=LL(n&&n.length===t.length?n:ML(t),e),d=jL(u,t,{ease:Array.isArray(s)?s:TL(t,s)});return{calculatedDuration:e,next:h=>(l.value=d(h),l.done=h>=e,l)}}const NL=e=>e!==null;function E6(e,{repeat:t,repeatType:n="loop"},i,s=1){const l=e.filter(NL),d=s<0||t&&n!=="loop"&&t%2===1?0:l.length-1;return!d||i===void 0?l[d]:i}const RL={decay:t4,inertia:t4,tween:L1,keyframes:L1,spring:bc};function MC(e){typeof e.type=="string"&&(e.type=RL[e.type])}class j6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const DL=e=>e/100;class A6 extends j6{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,s;const{motionValue:n}=this.options;n&&n.updatedAt!==un.now()&&this.tick(un.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(i=this.options).onStop)==null||s.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;MC(t);const{type:n=L1,repeat:i=0,repeatDelay:s=0,repeatType:l,velocity:u=0}=t;let{keyframes:d}=t;const h=n||L1;h!==L1&&typeof d[0]!="number"&&(this.mixKeyframes=J1(DL,EC(d[0],d[1])),d=[0,100]);const m=h({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...d].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=S6(m));const{calculatedDuration:p}=m;this.calculatedDuration=p,this.resolvedDuration=p+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=m}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:s,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:h}=this;if(this.startTime===null)return i.next(0);const{delay:m=0,keyframes:p,repeat:C,repeatType:v,repeatDelay:w,type:b,onUpdate:S,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const j=this.currentTime-m*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?j<0:j>s;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let L=this.currentTime,D=i;if(C){const z=Math.min(this.currentTime,s)/d;let I=Math.floor(z),ne=z%1;!ne&&z>=1&&(ne=1),ne===1&&I--,I=Math.min(I,C+1),!!(I%2)&&(v==="reverse"?(ne=1-ne,w&&(ne-=w/d)):v==="mirror"&&(D=u)),L=Yr(0,1,ne)*d}const M=T?{done:!1,value:p[0]}:D.next(L);l&&(M.value=l(M.value));let{done:k}=M;!T&&h!==null&&(k=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return O&&b!==t4&&(M.value=E6(p,this.options,E,this.speed)),S&&S(M.value),O&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return _n(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+_n(t)}get time(){return _n(this.currentTime)}set time(t){var n;t=fr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(un.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_n(this.currentTime))}play(){var s,l;if(this.isStopped)return;const{driver:t=pL,startTime:n}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(l=(s=this.options).onPlay)==null||l.call(s);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(un.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function kL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ma=e=>e*180/Math.PI,n4=e=>{const t=ma(Math.atan2(e[1],e[0]));return r4(t)},OL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:n4,rotateZ:n4,skewX:e=>ma(Math.atan(e[1])),skewY:e=>ma(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},r4=e=>(e=e%360,e<0&&(e+=360),e),uh=n4,fh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_L={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fh,scaleY:dh,scale:e=>(fh(e)+dh(e))/2,rotateX:e=>r4(ma(Math.atan2(e[6],e[5]))),rotateY:e=>r4(ma(Math.atan2(-e[2],e[0]))),rotateZ:uh,rotate:uh,skewX:e=>ma(Math.atan(e[4])),skewY:e=>ma(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function i4(e){return e.includes("scale")?1:0}function a4(e,t){if(!e||e==="none")return i4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=_L,s=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=OL,s=d}if(!s)return i4(t);const l=i[t],u=s[1].split(",").map(VL);return typeof l=="function"?l(u):u[l]}const PL=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return a4(n,t)};function VL(e){return parseFloat(e.trim())}const eo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],to=new Set(eo),hh=e=>e===Js||e===Me,zL=new Set(["x","y","z"]),FL=eo.filter(e=>!zL.has(e));function BL(e){const t=[];return FL.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const va={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>a4(t,"x"),y:(e,{transform:t})=>a4(t,"y")};va.translateX=va.x;va.translateY=va.y;const xa=new Set;let s4=!1,o4=!1,l4=!1;function LC(){if(o4){const e=Array.from(xa).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const s=BL(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([l,u])=>{var d;(d=i.getValue(l))==null||d.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}o4=!1,s4=!1,xa.forEach(e=>e.complete(l4)),xa.clear()}function TC(){xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o4=!0)})}function UL(){l4=!0,TC(),LC(),l4=!1}class M6{constructor(t,n,i,s,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=s,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(xa.add(this),s4||(s4=!0,ft.read(TC),ft.resolveKeyframes(LC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:s}=this;if(t[0]===null){const l=s==null?void 0:s.get(),u=t[t.length-1];if(l!==void 0)t[0]=l;else if(i&&n){const d=i.readValue(n,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),s&&l===void 0&&s.set(t[0])}kL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xa.delete(this)}cancel(){this.state==="scheduled"&&(xa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const HL=e=>e.startsWith("--");function IL(e,t,n){HL(t)?e.style.setProperty(t,n):e.style[t]=n}const ZL=p6(()=>window.ScrollTimeline!==void 0),GL={};function YL(e,t){const n=p6(e);return()=>GL[t]??n()}const NC=YL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),E1=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,mh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:E1([0,.65,.55,1]),circOut:E1([.55,0,1,.45]),backIn:E1([.31,.01,.66,-.59]),backOut:E1([.33,1.53,.69,.99])};function RC(e,t){if(e)return typeof e=="function"?NC()?jC(e,t):"ease-out":mC(e)?E1(e):Array.isArray(e)?e.map(n=>RC(n,t)||mh.easeOut):mh[e]}function $L(e,t,n,{delay:i=0,duration:s=300,repeat:l=0,repeatType:u="loop",ease:d="easeOut",times:h}={},m=void 0){const p={[t]:n};h&&(p.offset=h);const C=RC(d,s);Array.isArray(C)&&(p.easing=C);const v={delay:i,duration:s,easing:Array.isArray(C)?"linear":C,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return m&&(v.pseudoElement=m),e.animate(p,v)}function DC(e){return typeof e=="function"&&"applyToOptions"in e}function WL({type:e,...t}){return DC(e)&&NC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class qL extends j6{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:i,keyframes:s,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:d,onComplete:h}=t;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=t,m6(typeof t.type!="string");const m=WL(t);this.animation=$L(n,i,s,m,l),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const p=E6(s,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(p):IL(n,i,p),this.animation.cancel()}h==null||h(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,i;const t=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return _n(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+_n(t)}get time(){return _n(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=fr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ZL()?(this.animation.timeline=t,Pn):n(this)}}const kC={anticipate:uC,backInOut:cC,circInOut:dC};function KL(e){return e in kC}function QL(e){typeof e.ease=="string"&&KL(e.ease)&&(e.ease=kC[e.ease])}const ph=10;class XL extends qL{constructor(t){QL(t),MC(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:s,element:l,...u}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new A6({...u,autoplay:!1}),h=fr(this.finishedTime??this.time);n.setWithVelocity(d.sample(h-ph).value,d.sample(h).value,ph),d.stop()}}const gh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ri.test(e)||e==="0")&&!e.startsWith("url("));function JL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function eT(e,t,n,i){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],u=gh(s,t),d=gh(l,t);return!u||!d?!1:JL(e)||(n==="spring"||DC(n))&&i}function c4(e){e.duration=0,e.type="keyframes"}const tT=new Set(["opacity","clipPath","filter","transform"]),nT=p6(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function rT(e){var p;const{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:l,type:u}=e;if(!(((p=t==null?void 0:t.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=t.owner.getProps();return nT()&&n&&tT.has(n)&&(n!=="transform"||!m)&&!h&&!i&&s!=="mirror"&&l!==0&&u!=="inertia"}const iT=40;class aT extends j6{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:l=0,repeatType:u="loop",keyframes:d,name:h,motionValue:m,element:p,...C}){var b;super(),this.stop=()=>{var S,E;this._animation&&(this._animation.stop(),(S=this.stopTimeline)==null||S.call(this)),(E=this.keyframeResolver)==null||E.cancel()},this.createdAt=un.now();const v={autoplay:t,delay:n,type:i,repeat:s,repeatDelay:l,repeatType:u,name:h,motionValue:m,element:p,...C},w=(p==null?void 0:p.KeyframeResolver)||M6;this.keyframeResolver=new w(d,(S,E,j)=>this.onKeyframesResolved(S,E,v,!j),h,m,p),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(t,n,i,s){this.keyframeResolver=void 0;const{name:l,type:u,velocity:d,delay:h,isHandoff:m,onUpdate:p}=i;this.resolvedAt=un.now(),eT(t,l,u,d)||(($r.instantAnimations||!h)&&(p==null||p(E6(t,i,n))),t[0]=t[t.length-1],c4(i),i.repeat=0);const v={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>iT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},w=!m&&rT(v)?new XL({...v,element:v.motionValue.owner.current}):new A6(v);w.finished.then(()=>this.notifyFinished()).catch(Pn),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),UL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const sT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oT(e){const t=sT.exec(e);if(!t)return[,];const[,n,i,s]=t;return[`--${n??i}`,s]}function OC(e,t,n=1){const[i,s]=oT(e);if(!i)return;const l=window.getComputedStyle(t).getPropertyValue(i);if(l){const u=l.trim();return tC(u)?parseFloat(u):u}return x6(s)?OC(s,t,n+1):s}function L6(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const _C=new Set(["width","height","top","left","right","bottom",...eo]),lT={test:e=>e==="auto",parse:e=>e},PC=e=>t=>t.test(e),VC=[Js,Me,dr,ji,JM,XM,lT],Ch=e=>VC.find(PC(e));function cT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rC(e):!0}const uT=new Set(["brightness","contrast","saturate","opacity"]);function fT(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(y6)||[];if(!i)return e;const s=n.replace(i,"");let l=uT.has(t)?1:0;return i!==n&&(l*=100),t+"("+l+s+")"}const dT=/\b([a-z-]*)\(.*?\)/gu,u4={...Ri,getAnimatableNone:e=>{const t=e.match(dT);return t?t.map(fT).join(" "):e}},vh={...Js,transform:Math.round},hT={rotate:ji,rotateX:ji,rotateY:ji,rotateZ:ji,scale:R2,scaleX:R2,scaleY:R2,scaleZ:R2,skew:ji,skewX:ji,skewY:ji,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:z1,originX:ah,originY:ah,originZ:Me},T6={borderWidth:Me,borderTopWidth:Me,borderRightWidth:Me,borderBottomWidth:Me,borderLeftWidth:Me,borderRadius:Me,radius:Me,borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomRightRadius:Me,borderBottomLeftRadius:Me,width:Me,maxWidth:Me,height:Me,maxHeight:Me,top:Me,right:Me,bottom:Me,left:Me,padding:Me,paddingTop:Me,paddingRight:Me,paddingBottom:Me,paddingLeft:Me,margin:Me,marginTop:Me,marginRight:Me,marginBottom:Me,marginLeft:Me,backgroundPositionX:Me,backgroundPositionY:Me,...hT,zIndex:vh,fillOpacity:z1,strokeOpacity:z1,numOctaves:vh},mT={...T6,color:St,backgroundColor:St,outlineColor:St,fill:St,stroke:St,borderColor:St,borderTopColor:St,borderRightColor:St,borderBottomColor:St,borderLeftColor:St,filter:u4,WebkitFilter:u4},zC=e=>mT[e];function FC(e,t){let n=zC(e);return n!==u4&&(n=Ri),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pT=new Set(["auto","none","0"]);function gT(e,t,n){let i=0,s;for(;i<e.length&&!s;){const l=e[i];typeof l=="string"&&!pT.has(l)&&F1(l).values.length&&(s=e[i]),i++}if(s&&n)for(const l of t)e[l]=FC(n,s)}class CT extends M6{constructor(t,n,i,s,l){super(t,n,i,s,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let m=t[h];if(typeof m=="string"&&(m=m.trim(),x6(m))){const p=OC(m,n.current);p!==void 0&&(t[h]=p),h===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!_C.has(i)||t.length!==2)return;const[s,l]=t,u=Ch(s),d=Ch(l);if(u!==d)if(hh(u)&&hh(d))for(let h=0;h<t.length;h++){const m=t[h];typeof m=="string"&&(t[h]=parseFloat(m))}else va[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let s=0;s<t.length;s++)(t[s]===null||cT(t[s]))&&i.push(s);i.length&&gT(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=va[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){var d;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const l=i.length-1,u=i[l];i[l]=va[n](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([h,m])=>{t.getValue(h).set(m)}),this.resolveNoneKeyframes()}}function vT(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const BC=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function UC(e){return nC(e)&&"offsetHeight"in e}const xh=30,xT=e=>!isNaN(parseFloat(e));class yT{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var l;const s=un.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=un.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xT(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new g6);const i=this.events[t].add(n);return t==="change"?()=>{i(),ft.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xh);return iC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gs(e,t){return new yT(e,t)}const{schedule:N6}=pC(queueMicrotask,!1),Wn={x:!1,y:!1};function HC(){return Wn.x||Wn.y}function bT(e){return e==="x"||e==="y"?Wn[e]?null:(Wn[e]=!0,()=>{Wn[e]=!1}):Wn.x||Wn.y?null:(Wn.x=Wn.y=!0,()=>{Wn.x=Wn.y=!1})}function IC(e,t){const n=vT(e),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[n,s,()=>i.abort()]}function yh(e){return!(e.pointerType==="touch"||HC())}function wT(e,t,n={}){const[i,s,l]=IC(e,n),u=d=>{if(!yh(d))return;const{target:h}=d,m=t(h,d);if(typeof m!="function"||!h)return;const p=C=>{yh(C)&&(m(C),h.removeEventListener("pointerleave",p))};h.addEventListener("pointerleave",p,s)};return i.forEach(d=>{d.addEventListener("pointerenter",u,s)}),l}const ZC=(e,t)=>t?e===t?!0:ZC(e,t.parentElement):!1,R6=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ST=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ET(e){return ST.has(e.tagName)||e.tabIndex!==-1}const tc=new WeakSet;function bh(e){return t=>{t.key==="Enter"&&e(t)}}function t7(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const jT=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=bh(()=>{if(tc.has(n))return;t7(n,"down");const s=bh(()=>{t7(n,"up")}),l=()=>t7(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function wh(e){return R6(e)&&!HC()}function AT(e,t,n={}){const[i,s,l]=IC(e,n),u=d=>{const h=d.currentTarget;if(!wh(d))return;tc.add(h);const m=t(h,d),p=(w,b)=>{window.removeEventListener("pointerup",C),window.removeEventListener("pointercancel",v),tc.has(h)&&tc.delete(h),wh(w)&&typeof m=="function"&&m(w,{success:b})},C=w=>{p(w,h===window||h===document||n.useGlobalTarget||ZC(h,w.target))},v=w=>{p(w,!1)};window.addEventListener("pointerup",C,s),window.addEventListener("pointercancel",v,s)};return i.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,s),UC(d)&&(d.addEventListener("focus",m=>jT(m,s)),!ET(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function GC(e){return nC(e)&&"ownerSVGElement"in e}function MT(e){return GC(e)&&e.tagName==="svg"}const Wt=e=>!!(e&&e.getVelocity),LT=[...VC,St,Ri],TT=e=>LT.find(PC(e)),D6=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Sh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function NT(...e){return t=>{let n=!1;const i=e.map(s=>{const l=Sh(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():Sh(e[s],null)}}}}function RT(...e){return y.useCallback(NT(...e),e)}class DT extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=n.offsetParent,s=UC(i)&&i.offsetWidth||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=s-l.width-l.left}return null}componentDidUpdate(){}render(){return this.props.children}}function kT({children:e,isPresent:t,anchorX:n,root:i}){const s=y.useId(),l=y.useRef(null),u=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=y.useContext(D6),h=RT(l,e==null?void 0:e.ref);return y.useInsertionEffect(()=>{const{width:m,height:p,top:C,left:v,right:w}=u.current;if(t||!l.current||!m||!p)return;const b=n==="left"?`left: ${v}`:`right: ${w}`;l.current.dataset.motionPopId=s;const S=document.createElement("style");d&&(S.nonce=d);const E=i??document.head;return E.appendChild(S),S.sheet&&S.sheet.insertRule(`
          [data-motion-pop-id="${s}"] {
            position: absolute !important;
            width: ${m}px !important;
            height: ${p}px !important;
            ${b}px !important;
            top: ${C}px !important;
          }
        `),()=>{E.contains(S)&&E.removeChild(S)}},[t]),c.jsx(DT,{isPresent:t,childRef:l,sizeRef:u,children:y.cloneElement(e,{ref:h})})}const OT=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:s,presenceAffectsLayout:l,mode:u,anchorX:d,root:h})=>{const m=u6(_T),p=y.useId();let C=!0,v=y.useMemo(()=>(C=!1,{id:p,initial:t,isPresent:n,custom:s,onExitComplete:w=>{m.set(w,!0);for(const b of m.values())if(!b)return;i&&i()},register:w=>(m.set(w,!1),()=>m.delete(w))}),[n,m,i]);return l&&C&&(v={...v}),y.useMemo(()=>{m.forEach((w,b)=>m.set(b,!1))},[n]),y.useEffect(()=>{!n&&!m.size&&i&&i()},[n]),u==="popLayout"&&(e=c.jsx(kT,{isPresent:n,anchorX:d,root:h,children:e})),c.jsx(Wc.Provider,{value:v,children:e})};function _T(){return new Map}function YC(e=!0){const t=y.useContext(Wc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=t,l=y.useId();y.useEffect(()=>{if(e)return s(l)},[e]);const u=y.useCallback(()=>e&&i&&i(l),[l,i,e]);return!n&&i?[!1,u]:[!0]}const D2=e=>e.key||"";function Eh(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const B1=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:l="sync",propagate:u=!1,anchorX:d="left",root:h})=>{const[m,p]=YC(u),C=y.useMemo(()=>Eh(e),[e]),v=u&&!m?[]:C.map(D2),w=y.useRef(!0),b=y.useRef(C),S=u6(()=>new Map),[E,j]=y.useState(C),[T,L]=y.useState(C);eC(()=>{w.current=!1,b.current=C;for(let k=0;k<T.length;k++){const O=D2(T[k]);v.includes(O)?S.delete(O):S.get(O)!==!0&&S.set(O,!1)}},[T,v.length,v.join("-")]);const D=[];if(C!==E){let k=[...C];for(let O=0;O<T.length;O++){const z=T[O],I=D2(z);v.includes(I)||(k.splice(O,0,z),D.push(z))}return l==="wait"&&D.length&&(k=D),L(Eh(k)),j(C),null}const{forceRender:M}=y.useContext(c6);return c.jsx(c.Fragment,{children:T.map(k=>{const O=D2(k),z=u&&!m?!1:C===T||v.includes(O),I=()=>{if(S.has(O))S.set(O,!0);else return;let ne=!0;S.forEach(Q=>{Q||(ne=!1)}),ne&&(M==null||M(),L(b.current),u&&(p==null||p()),i&&i())};return c.jsx(OT,{isPresent:z,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:l,root:h,onExitComplete:z?void 0:I,anchorX:d,children:k},O)})})},$C=y.createContext({strict:!1}),jh={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"]},Ys={};for(const e in jh)Ys[e]={isEnabled:t=>jh[e].some(n=>!!t[n])};function PT(e){for(const t in e)Ys[t]={...Ys[t],...e[t]}}const VT=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 wc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||VT.has(e)}let WC=e=>!wc(e);function zT(e){typeof e=="function"&&(WC=t=>t.startsWith("on")?!wc(t):e(t))}try{zT(require("@emotion/is-prop-valid").default)}catch{}function FT(e,t,n){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||(WC(s)||n===!0&&wc(s)||!t&&!wc(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}const qc=y.createContext({});function Kc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function U1(e){return typeof e=="string"||Array.isArray(e)}const k6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],O6=["initial",...k6];function Qc(e){return Kc(e.animate)||O6.some(t=>U1(e[t]))}function qC(e){return!!(Qc(e)||e.variants)}function BT(e,t){if(Qc(e)){const{initial:n,animate:i}=e;return{initial:n===!1||U1(n)?n:void 0,animate:U1(i)?i:void 0}}return e.inherit!==!1?t:{}}function UT(e){const{initial:t,animate:n}=BT(e,y.useContext(qc));return y.useMemo(()=>({initial:t,animate:n}),[Ah(t),Ah(n)])}function Ah(e){return Array.isArray(e)?e.join(" "):e}function Mh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const C1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Me.test(e))e=parseFloat(e);else return e;const n=Mh(e,t.target.x),i=Mh(e,t.target.y);return`${n}% ${i}%`}},HT={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,s=Ri.parse(e);if(s.length>5)return i;const l=Ri.createTransformer(e),u=typeof s[0]!="number"?1:0,d=n.x.scale*t.x,h=n.y.scale*t.y;s[0+u]/=d,s[1+u]/=h;const m=mt(d,h,.5);return typeof s[2+u]=="number"&&(s[2+u]/=m),typeof s[3+u]=="number"&&(s[3+u]/=m),l(s)}},f4={borderRadius:{...C1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:C1,borderTopRightRadius:C1,borderBottomLeftRadius:C1,borderBottomRightRadius:C1,boxShadow:HT};function KC(e,{layout:t,layoutId:n}){return to.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!f4[e]||e==="opacity")}const IT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ZT=eo.length;function GT(e,t,n){let i="",s=!0;for(let l=0;l<ZT;l++){const u=eo[l],d=e[u];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(u.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||n){const m=BC(d,T6[u]);if(!h){s=!1;const p=IT[u]||u;i+=`${p}(${m}) `}n&&(t[u]=m)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function _6(e,t,n){const{style:i,vars:s,transformOrigin:l}=e;let u=!1,d=!1;for(const h in t){const m=t[h];if(to.has(h)){u=!0;continue}else if(CC(h)){s[h]=m;continue}else{const p=BC(m,T6[h]);h.startsWith("origin")?(d=!0,l[h]=p):i[h]=p}}if(t.transform||(u||n?i.transform=GT(t,e.transform,n):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:m="50%",originZ:p=0}=l;i.transformOrigin=`${h} ${m} ${p}`}}const P6=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function QC(e,t,n){for(const i in t)!Wt(t[i])&&!KC(i,n)&&(e[i]=t[i])}function YT({transformTemplate:e},t){return y.useMemo(()=>{const n=P6();return _6(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $T(e,t){const n=e.style||{},i={};return QC(i,n,e),Object.assign(i,YT(e,t)),i}function WT(e,t){const n={},i=$T(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const qT={offset:"stroke-dashoffset",array:"stroke-dasharray"},KT={offset:"strokeDashoffset",array:"strokeDasharray"};function QT(e,t,n=1,i=0,s=!0){e.pathLength=1;const l=s?qT:KT;e[l.offset]=Me.transform(-i);const u=Me.transform(t),d=Me.transform(n);e[l.array]=`${u} ${d}`}function XC(e,{attrX:t,attrY:n,attrScale:i,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...d},h,m,p){if(_6(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:C,style:v}=e;C.transform&&(v.transform=C.transform,delete C.transform),(v.transform||C.transformOrigin)&&(v.transformOrigin=C.transformOrigin??"50% 50%",delete C.transformOrigin),v.transform&&(v.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete C.transformBox),t!==void 0&&(C.x=t),n!==void 0&&(C.y=n),i!==void 0&&(C.scale=i),s!==void 0&&QT(C,s,l,u,!1)}const JC=()=>({...P6(),attrs:{}}),ev=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XT(e,t,n,i){const s=y.useMemo(()=>{const l=JC();return XC(l,t,ev(i),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};QC(l,e.style,e),s.style={...l,...s.style}}return s}const JT=["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 V6(e){return typeof e!="string"||e.includes("-")?!1:!!(JT.indexOf(e)>-1||/[A-Z]/u.test(e))}function eN(e,t,n,{latestValues:i},s,l=!1){const d=(V6(e)?XT:WT)(t,i,s,e),h=FT(t,typeof e=="string",l),m=e!==y.Fragment?{...h,...d,ref:n}:{},{children:p}=t,C=y.useMemo(()=>Wt(p)?p.get():p,[p]);return y.createElement(e,{...m,children:C})}function Lh(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function z6(e,t,n,i){if(typeof t=="function"){const[s,l]=Lh(i);t=t(n!==void 0?n:e.custom,s,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,l]=Lh(i);t=t(n!==void 0?n:e.custom,s,l)}return t}function nc(e){return Wt(e)?e.get():e}function tN({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,s){return{latestValues:nN(n,i,s,e),renderState:t()}}function nN(e,t,n,i){const s={},l=i(e,{});for(const v in l)s[v]=nc(l[v]);let{initial:u,animate:d}=e;const h=Qc(e),m=qC(e);t&&m&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let p=n?n.initial===!1:!1;p=p||u===!1;const C=p?d:u;if(C&&typeof C!="boolean"&&!Kc(C)){const v=Array.isArray(C)?C:[C];for(let w=0;w<v.length;w++){const b=z6(e,v[w]);if(b){const{transitionEnd:S,transition:E,...j}=b;for(const T in j){let L=j[T];if(Array.isArray(L)){const D=p?L.length-1:0;L=L[D]}L!==null&&(s[T]=L)}for(const T in S)s[T]=S[T]}}}return s}const tv=e=>(t,n)=>{const i=y.useContext(qc),s=y.useContext(Wc),l=()=>tN(e,t,i,s);return n?l():u6(l)};function F6(e,t,n){var l;const{style:i}=e,s={};for(const u in i)(Wt(i[u])||t.style&&Wt(t.style[u])||KC(u,e)||((l=n==null?void 0:n.getValue(u))==null?void 0:l.liveStyle)!==void 0)&&(s[u]=i[u]);return s}const rN=tv({scrapeMotionValuesFromProps:F6,createRenderState:P6});function nv(e,t,n){const i=F6(e,t,n);for(const s in e)if(Wt(e[s])||Wt(t[s])){const l=eo.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[l]=e[s]}return i}const iN=tv({scrapeMotionValuesFromProps:nv,createRenderState:JC}),aN=Symbol.for("motionComponentSymbol");function _s(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sN(e,t,n){return y.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):_s(n)&&(n.current=i))},[t])}const B6=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oN="framerAppearId",rv="data-"+B6(oN),iv=y.createContext({});function lN(e,t,n,i,s){var S,E;const{visualElement:l}=y.useContext(qc),u=y.useContext($C),d=y.useContext(Wc),h=y.useContext(D6).reducedMotion,m=y.useRef(null);i=i||u.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,C=y.useContext(iv);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&cN(m.current,n,s,C);const v=y.useRef(!1);y.useInsertionEffect(()=>{p&&v.current&&p.update(n,d)});const w=n[rv],b=y.useRef(!!w&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,w))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,w)));return eC(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges())}),y.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var j;(j=window.MotionHandoffMarkAsComplete)==null||j.call(window,w)}),b.current=!1),p.enteringChildren=void 0)}),p}function cN(e,t,n,i){const{layoutId:s,layout:l,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:m,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:av(e.parent)),e.projection.setOptions({layoutId:s,layout:l,alwaysMeasureLayout:!!u||d&&_s(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,crossfade:p,layoutScroll:h,layoutRoot:m})}function av(e){if(e)return e.options.allowProjection!==!1?e.projection:av(e.parent)}function n7(e,{forwardMotionProps:t=!1}={},n,i){n&&PT(n);const s=V6(e)?iN:rN;function l(d,h){let m;const p={...y.useContext(D6),...d,layoutId:uN(d)},{isStatic:C}=p,v=UT(d),w=s(d,C);if(!C&&f6){fN();const b=dN(p);m=b.MeasureLayout,v.visualElement=lN(e,w,p,i,b.ProjectionNode)}return c.jsxs(qc.Provider,{value:v,children:[m&&v.visualElement?c.jsx(m,{visualElement:v.visualElement,...p}):null,eN(e,d,sN(w,v.visualElement,h),w,C,t)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=y.forwardRef(l);return u[aN]=e,u}function uN({layoutId:e}){const t=y.useContext(c6).id;return t&&e!==void 0?t+"-"+e:e}function fN(e,t){y.useContext($C).strict}function dN(e){const{drag:t,layout:n}=Ys;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function hN(e,t){if(typeof Proxy>"u")return n7;const n=new Map,i=(l,u)=>n7(l,u,e,t),s=(l,u)=>i(l,u);return new Proxy(s,{get:(l,u)=>u==="create"?i:(n.has(u)||n.set(u,n7(u,void 0,e,t)),n.get(u))})}function sv({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function mN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pN(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function r7(e){return e===void 0||e===1}function d4({scale:e,scaleX:t,scaleY:n}){return!r7(e)||!r7(t)||!r7(n)}function ua(e){return d4(e)||ov(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ov(e){return Th(e.x)||Th(e.y)}function Th(e){return e&&e!=="0%"}function Sc(e,t,n){const i=e-n,s=t*i;return n+s}function Nh(e,t,n,i,s){return s!==void 0&&(e=Sc(e,s,i)),Sc(e,n,i)+t}function h4(e,t=0,n=1,i,s){e.min=Nh(e.min,t,n,i,s),e.max=Nh(e.max,t,n,i,s)}function lv(e,{x:t,y:n}){h4(e.x,t.translate,t.scale,t.originPoint),h4(e.y,n.translate,n.scale,n.originPoint)}const Rh=.999999999999,Dh=1.0000000000001;function gN(e,t,n,i=!1){const s=n.length;if(!s)return;t.x=t.y=1;let l,u;for(let d=0;d<s;d++){l=n[d],u=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Vs(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,lv(e,u)),i&&ua(l.latestValues)&&Vs(e,l.latestValues))}t.x<Dh&&t.x>Rh&&(t.x=1),t.y<Dh&&t.y>Rh&&(t.y=1)}function Ps(e,t){e.min=e.min+t,e.max=e.max+t}function kh(e,t,n,i,s=.5){const l=mt(e.min,e.max,s);h4(e,t,n,l,i)}function Vs(e,t){kh(e.x,t.x,t.scaleX,t.scale,t.originX),kh(e.y,t.y,t.scaleY,t.scale,t.originY)}function cv(e,t){return sv(pN(e.getBoundingClientRect(),t))}function CN(e,t,n){const i=cv(e,n),{scroll:s}=t;return s&&(Ps(i.x,s.offset.x),Ps(i.y,s.offset.y)),i}const Oh=()=>({translate:0,scale:1,origin:0,originPoint:0}),zs=()=>({x:Oh(),y:Oh()}),_h=()=>({min:0,max:0}),Nt=()=>({x:_h(),y:_h()}),m4={current:null},uv={current:!1};function vN(){if(uv.current=!0,!!f6)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>m4.current=e.matches;e.addEventListener("change",t),t()}else m4.current=!1}const xN=new WeakMap;function yN(e,t,n){for(const i in t){const s=t[i],l=n[i];if(Wt(s))e.addValue(i,s);else if(Wt(l))e.addValue(i,Gs(s,{owner:e}));else if(l!==s)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(i);e.addValue(i,Gs(u!==void 0?u:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Ph=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class bN{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=M6,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 v=un.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,ft.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=u;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Qc(n),this.isVariantNode=qC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...C}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in C){const w=C[v];h[v]!==void 0&&Wt(w)&&w.set(h[v])}}mount(t){var n;this.current=t,xN.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),uv.current||vN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:m4.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ni(this.notifyUpdate),Ni(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=to.has(t);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&ft.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ys){const n=Ys[t];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Ph.length;i++){const s=Ph[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const l="on"+s,u=t[l];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=yN(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Gs(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(tC(i)||rC(i))?i=parseFloat(i):!TT(i)&&Ri.test(n)&&(i=FC(t,n)),this.setBaseTarget(t,Wt(i)?i.get():i)),Wt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var l;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const u=z6(this.props,n,(l=this.presenceContext)==null?void 0:l.custom);u&&(i=u[t])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Wt(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new g6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){N6.render(this.render)}}class fv extends bN{constructor(){super(...arguments),this.KeyframeResolver=CT}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Wt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function dv(e,{style:t,vars:n},i,s){const l=e.style;let u;for(u in t)l[u]=t[u];s==null||s.applyProjectionStyles(l,i);for(u in n)l.setProperty(u,n[u])}function wN(e){return window.getComputedStyle(e)}class SN extends fv{constructor(){super(...arguments),this.type="html",this.renderInstance=dv}readValueFromInstance(t,n){var i;if(to.has(n))return(i=this.projection)!=null&&i.isProjecting?i4(n):PL(t,n);{const s=wN(t),l=(CC(n)?s.getPropertyValue(n):s[n])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(t,{transformPagePoint:n}){return cv(t,n)}build(t,n,i){_6(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return F6(t,n,i)}}const hv=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 EN(e,t,n,i){dv(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(hv.has(s)?s:B6(s),t.attrs[s])}class jN extends fv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(to.has(n)){const i=zC(n);return i&&i.default||0}return n=hv.has(n)?n:B6(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return nv(t,n,i)}build(t,n,i){XC(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,s){EN(t,n,i,s)}mount(t){this.isSVGTag=ev(t.tagName),super.mount(t)}}const AN=(e,t)=>V6(e)?new jN(t):new SN(t,{allowProjection:e!==y.Fragment});function Us(e,t,n){const i=e.getProps();return z6(i,t,n!==void 0?n:i.custom,e)}const p4=e=>Array.isArray(e);function MN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gs(n))}function LN(e){return p4(e)?e[e.length-1]||0:e}function TN(e,t){const n=Us(e,t);let{transitionEnd:i={},transition:s={},...l}=n||{};l={...l,...i};for(const u in l){const d=LN(l[u]);MN(e,u,d)}}function NN(e){return!!(Wt(e)&&e.add)}function g4(e,t){const n=e.getValue("willChange");if(NN(n))return n.add(t);if(!n&&$r.WillChange){const i=new $r.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function mv(e){return e.props[rv]}const RN=e=>e!==null;function DN(e,{repeat:t,repeatType:n="loop"},i){const s=e.filter(RN),l=t&&n!=="loop"&&t%2===1?0:s.length-1;return s[l]}const kN={type:"spring",stiffness:500,damping:25,restSpeed:10},ON=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_N={type:"keyframes",duration:.8},PN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VN=(e,{keyframes:t})=>t.length>2?_N:to.has(e)?e.startsWith("scale")?ON(t[1]):kN:PN;function zN({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:l,repeatType:u,repeatDelay:d,from:h,elapsed:m,...p}){return!!Object.keys(p).length}const U6=(e,t,n,i={},s,l)=>u=>{const d=L6(i,e)||{},h=d.delay||i.delay||0;let{elapsed:m=0}=i;m=m-fr(h);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-m,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:s};zN(d)||Object.assign(p,VN(e,p)),p.duration&&(p.duration=fr(p.duration)),p.repeatDelay&&(p.repeatDelay=fr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let C=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(c4(p),p.delay===0&&(C=!0)),($r.instantAnimations||$r.skipAnimations)&&(C=!0,c4(p),p.delay=0),p.allowFlatten=!d.type&&!d.ease,C&&!l&&t.get()!==void 0){const v=DN(p.keyframes,d);if(v!==void 0){ft.update(()=>{p.onUpdate(v),p.onComplete()});return}}return d.isSync?new A6(p):new aT(p)};function FN({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function pv(e,t,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:l=e.getDefaultTransition(),transitionEnd:u,...d}=t;i&&(l=i);const h=[],m=s&&e.animationState&&e.animationState.getState()[s];for(const p in d){const C=e.getValue(p,e.latestValues[p]??null),v=d[p];if(v===void 0||m&&FN(m,p))continue;const w={delay:n,...L6(l||{},p)},b=C.get();if(b!==void 0&&!C.isAnimating&&!Array.isArray(v)&&v===b&&!w.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const j=mv(e);if(j){const T=window.MotionHandoffAnimation(j,p,ft);T!==null&&(w.startTime=T,S=!0)}}g4(e,p),C.start(U6(p,C,v,e.shouldReduceMotion&&_C.has(p)?{type:!1}:w,e,S));const E=C.animation;E&&h.push(E)}return u&&Promise.all(h).then(()=>{ft.update(()=>{u&&TN(e,u)})}),h}function gv(e,t,n,i=0,s=1){const l=Array.from(e).sort((m,p)=>m.sortNodePosition(p)).indexOf(t),u=e.size,d=(u-1)*i;return typeof n=="function"?n(l,u):s===1?l*i:d-l*i}function C4(e,t,n={}){var h;const i=Us(e,t,n.type==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const l=i?()=>Promise.all(pv(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:C,staggerDirection:v}=s;return BN(e,t,m,p,C,v,n)}:()=>Promise.resolve(),{when:d}=s;if(d){const[m,p]=d==="beforeChildren"?[l,u]:[u,l];return m().then(()=>p())}else return Promise.all([l(),u(n.delay)])}function BN(e,t,n=0,i=0,s=0,l=1,u){const d=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),d.push(C4(h,t,{...u,delay:n+(typeof i=="function"?0:i)+gv(e.variantChildren,h,i,s,l)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(d)}function UN(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(l=>C4(e,l,n));i=Promise.all(s)}else if(typeof t=="string")i=C4(e,t,n);else{const s=typeof t=="function"?Us(e,t,n.custom):t;i=Promise.all(pv(e,s,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function Cv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const HN=O6.length;function vv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<HN;n++){const i=O6[n],s=e.props[i];(U1(s)||s===!1)&&(t[i]=s)}return t}const IN=[...k6].reverse(),ZN=k6.length;function GN(e){return t=>Promise.all(t.map(({animation:n,options:i})=>UN(e,n,i)))}function YN(e){let t=GN(e),n=Vh(),i=!0;const s=h=>(m,p)=>{var v;const C=Us(e,p,h==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(C){const{transition:w,transitionEnd:b,...S}=C;m={...m,...S,...b}}return m};function l(h){t=h(e)}function u(h){const{props:m}=e,p=vv(e.parent)||{},C=[],v=new Set;let w={},b=1/0;for(let E=0;E<ZN;E++){const j=IN[E],T=n[j],L=m[j]!==void 0?m[j]:p[j],D=U1(L),M=j===h?T.isActive:null;M===!1&&(b=E);let k=L===p[j]&&L!==m[j]&&D;if(k&&i&&e.manuallyAnimateOnMount&&(k=!1),T.protectedKeys={...w},!T.isActive&&M===null||!L&&!T.prevProp||Kc(L)||typeof L=="boolean")continue;const O=$N(T.prevProp,L);let z=O||j===h&&T.isActive&&!k&&D||E>b&&D,I=!1;const ne=Array.isArray(L)?L:[L];let Q=ne.reduce(s(j),{});M===!1&&(Q={});const{prevResolvedValues:le={}}=T,he={...le,...Q},ie=U=>{z=!0,v.has(U)&&(I=!0,v.delete(U)),T.needsAnimating[U]=!0;const V=e.getValue(U);V&&(V.liveStyle=!1)};for(const U in he){const V=Q[U],q=le[U];if(w.hasOwnProperty(U))continue;let R=!1;p4(V)&&p4(q)?R=!Cv(V,q):R=V!==q,R?V!=null?ie(U):v.add(U):V!==void 0&&v.has(U)?ie(U):T.protectedKeys[U]=!0}T.prevProp=L,T.prevResolvedValues=Q,T.isActive&&(w={...w,...Q}),i&&e.blockInitialAnimation&&(z=!1);const J=k&&O;z&&(!J||I)&&C.push(...ne.map(U=>{const V={type:j};if(typeof U=="string"&&i&&!J&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,R=Us(q,U);if(q.enteringChildren&&R){const{delayChildren:Z}=R.transition||{};V.delay=gv(q.enteringChildren,e,Z)}}return{animation:U,options:V}}))}if(v.size){const E={};if(typeof m.initial!="boolean"){const j=Us(e,Array.isArray(m.initial)?m.initial[0]:m.initial);j&&j.transition&&(E.transition=j.transition)}v.forEach(j=>{const T=e.getBaseTarget(j),L=e.getValue(j);L&&(L.liveStyle=!0),E[j]=T??null}),C.push({animation:E})}let S=!!C.length;return i&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(S=!1),i=!1,S?t(C):Promise.resolve()}function d(h,m){var C;if(n[h].isActive===m)return Promise.resolve();(C=e.variantChildren)==null||C.forEach(v=>{var w;return(w=v.animationState)==null?void 0:w.setActive(h,m)}),n[h].isActive=m;const p=u(h);for(const v in n)n[v].protectedKeys={};return p}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=Vh()}}}function $N(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cv(t,e):!1}function oa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vh(){return{animate:oa(!0),whileInView:oa(),whileHover:oa(),whileTap:oa(),whileDrag:oa(),whileFocus:oa(),exit:oa()}}class zi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class WN extends zi{constructor(t){super(t),t.animationState||(t.animationState=YN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Kc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let qN=0;class KN extends zi{constructor(){super(...arguments),this.id=qN++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const QN={animation:{Feature:WN},exit:{Feature:KN}};function H1(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function nl(e){return{point:{x:e.pageX,y:e.pageY}}}const XN=e=>t=>R6(t)&&e(t,nl(t));function T1(e,t,n,i){return H1(e,t,XN(n),i)}const xv=1e-4,JN=1-xv,eR=1+xv,yv=.01,tR=0-yv,nR=0+yv;function Kt(e){return e.max-e.min}function rR(e,t,n){return Math.abs(e-t)<=n}function zh(e,t,n,i=.5){e.origin=i,e.originPoint=mt(t.min,t.max,e.origin),e.scale=Kt(n)/Kt(t),e.translate=mt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=JN&&e.scale<=eR||isNaN(e.scale))&&(e.scale=1),(e.translate>=tR&&e.translate<=nR||isNaN(e.translate))&&(e.translate=0)}function N1(e,t,n,i){zh(e.x,t.x,n.x,i?i.originX:void 0),zh(e.y,t.y,n.y,i?i.originY:void 0)}function Fh(e,t,n){e.min=n.min+t.min,e.max=e.min+Kt(t)}function iR(e,t,n){Fh(e.x,t.x,n.x),Fh(e.y,t.y,n.y)}function Bh(e,t,n){e.min=t.min-n.min,e.max=e.min+Kt(t)}function Ec(e,t,n){Bh(e.x,t.x,n.x),Bh(e.y,t.y,n.y)}function On(e){return[e("x"),e("y")]}const bv=({current:e})=>e?e.ownerDocument.defaultView:null,Uh=(e,t)=>Math.abs(e-t);function aR(e,t){const n=Uh(e.x,t.x),i=Uh(e.y,t.y);return Math.sqrt(n**2+i**2)}class wv{constructor(t,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=a7(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=aR(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!b)return;const{point:S}=v,{timestamp:E}=Ht;this.history.push({...S,timestamp:E});const{onStart:j,onMove:T}=this.handlers;w||(j&&j(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,v)},this.handlePointerMove=(v,w)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=i7(w,this.transformPagePoint),ft.update(this.updatePoint,!0)},this.handlePointerUp=(v,w)=>{this.end();const{onEnd:b,onSessionEnd:S,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=a7(v.type==="pointercancel"?this.lastMoveEventInfo:i7(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,j),S&&S(v,j)},!R6(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=s||window;const d=nl(t),h=i7(d,this.transformPagePoint),{point:m}=h,{timestamp:p}=Ht;this.history=[{...m,timestamp:p}];const{onSessionStart:C}=n;C&&C(t,a7(h,this.history)),this.removeListeners=J1(T1(this.contextWindow,"pointermove",this.handlePointerMove),T1(this.contextWindow,"pointerup",this.handlePointerUp),T1(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ni(this.updatePoint)}}function i7(e,t){return t?{point:t(e.point)}:e}function Hh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function a7({point:e},t){return{point:e,delta:Hh(e,Sv(t)),offset:Hh(e,sR(t)),velocity:oR(t,.1)}}function sR(e){return e[0]}function Sv(e){return e[e.length-1]}function oR(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const s=Sv(e);for(;n>=0&&(i=e[n],!(s.timestamp-i.timestamp>fr(t)));)n--;if(!i)return{x:0,y:0};const l=_n(s.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(s.x-i.x)/l,y:(s.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function lR(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?mt(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?mt(n,e,i.max):Math.min(e,n)),e}function Ih(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cR(e,{top:t,left:n,bottom:i,right:s}){return{x:Ih(e.x,n,s),y:Ih(e.y,t,i)}}function Zh(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function uR(e,t){return{x:Zh(e.x,t.x),y:Zh(e.y,t.y)}}function fR(e,t){let n=.5;const i=Kt(e),s=Kt(t);return s>i?n=V1(t.min,t.max-i,e.min):i>s&&(n=V1(e.min,e.max-s,t.min)),Yr(0,1,n)}function dR(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const v4=.35;function hR(e=v4){return e===!1?e=0:e===!0&&(e=v4),{x:Gh(e,"left","right"),y:Gh(e,"top","bottom")}}function Gh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return typeof e=="number"?e:e[t]||0}const mR=new WeakMap;class pR{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Nt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const l=C=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(nl(C).point)},u=(C,v)=>{const{drag:w,dragPropagation:b,onDragStart:S}=this.getProps();if(w&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bT(w),!this.openDragLock))return;this.latestPointerEvent=C,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),On(j=>{let T=this.getAxisMotionValue(j).get()||0;if(dr.test(T)){const{projection:L}=this.visualElement;if(L&&L.layout){const D=L.layout.layoutBox[j];D&&(T=Kt(D)*(parseFloat(T)/100))}}this.originPoint[j]=T}),S&&ft.postRender(()=>S(C,v)),g4(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},d=(C,v)=>{this.latestPointerEvent=C,this.latestPanInfo=v;const{dragPropagation:w,dragDirectionLock:b,onDirectionLock:S,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:j}=v;if(b&&this.currentDirection===null){this.currentDirection=gR(j),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,j),this.updateAxis("y",v.point,j),this.visualElement.render(),E&&E(C,v)},h=(C,v)=>{this.latestPointerEvent=C,this.latestPanInfo=v,this.stop(C,v),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>On(C=>{var v;return this.getAnimationState(C)==="paused"&&((v=this.getAxisMotionValue(C).animation)==null?void 0:v.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new wv(t,{onSessionStart:l,onStart:u,onMove:d,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:i,contextWindow:bv(this.visualElement)})}stop(t,n){const i=t||this.latestPointerEvent,s=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!s||!i)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&ft.postRender(()=>d(i,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:s}=this.getProps();if(!i||!k2(t,s,this.currentDirection))return;const l=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=lR(u,this.constraints[t],this.elastic[t])),l.set(u)}resolveConstraints(){var l;const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(l=this.visualElement.projection)==null?void 0:l.layout,s=this.constraints;t&&_s(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=cR(i.layoutBox,t):this.constraints=!1,this.elastic=hR(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&On(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=dR(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_s(t))return!1;const i=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const l=CN(i,s.root,this.visualElement.getTransformPagePoint());let u=uR(s.layout.layoutBox,l);if(n){const d=n(mN(u));this.hasMutatedConstraints=!!d,d&&(u=sv(d))}return u}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},m=On(p=>{if(!k2(p,n,this.currentDirection))return;let C=h&&h[p]||{};u&&(C={min:0,max:0});const v=s?200:1e6,w=s?40:1e7,b={type:"inertia",velocity:i?t[p]:0,bounceStiffness:v,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...l,...C};return this.startAxisValueAnimation(p,b)});return Promise.all(m).then(d)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return g4(this.visualElement,t),i.start(U6(t,i,0,n,this.visualElement,!1))}stopAnimation(){On(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){On(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){On(n=>{const{drag:i}=this.getProps();if(!k2(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,l=this.getAxisMotionValue(n);if(s&&s.layout){const{min:u,max:d}=s.layout.layoutBox[n];l.set(t[n]-mt(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!_s(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};On(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const h=d.get();s[u]=fR({min:h,max:h},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),On(u=>{if(!k2(u,t,null))return;const d=this.getAxisMotionValue(u),{min:h,max:m}=this.constraints[u];d.set(mt(h,m,s[u]))})}addListeners(){if(!this.visualElement.current)return;mR.set(this.visualElement,this);const t=this.visualElement.current,n=T1(t,"pointerdown",h=>{const{drag:m,dragListener:p=!0}=this.getProps();m&&p&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();_s(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,l=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ft.read(i);const u=H1(window,"resize",()=>this.scalePositionWithinConstraints()),d=s.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(On(p=>{const C=this.getAxisMotionValue(p);C&&(this.originPoint[p]+=h[p].translate,C.set(C.get()+h[p].translate))}),this.visualElement.render())});return()=>{u(),n(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:l=!1,dragElastic:u=v4,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function k2(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class CR extends zi{constructor(t){super(t),this.removeGroupControls=Pn,this.removeListeners=Pn,this.controls=new pR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pn}unmount(){this.removeGroupControls(),this.removeListeners()}}const $h=e=>(t,n)=>{e&&ft.postRender(()=>e(t,n))};class vR extends zi{constructor(){super(...arguments),this.removePointerDownListener=Pn}onPointerDown(t){this.session=new wv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:$h(t),onStart:$h(n),onMove:i,onEnd:(l,u)=>{delete this.session,s&&ft.postRender(()=>s(l,u))}}}mount(){this.removePointerDownListener=T1(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const rc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let s7=!1;class xR extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:l}=t;l&&(n.group&&n.group.add(l),i&&i.register&&s&&i.register(l),s7&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),rc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:s,isPresent:l}=this.props,{projection:u}=i;return u&&(u.isPresent=l,s7=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==l?u.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?u.promote():u.relegate()||ft.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),N6.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=t;s7=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ev(e){const[t,n]=YC(),i=y.useContext(c6);return c.jsx(xR,{...e,layoutGroup:i,switchLayoutGroup:y.useContext(iv),isPresent:t,safeToRemove:n})}function yR(e,t,n){const i=Wt(e)?e:Gs(e);return i.start(U6("",i,t,n)),i.animation}const bR=(e,t)=>e.depth-t.depth;class wR{constructor(){this.children=[],this.isDirty=!1}add(t){d6(this.children,t),this.isDirty=!0}remove(t){h6(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bR),this.isDirty=!1,this.children.forEach(t)}}function SR(e,t){const n=un.now(),i=({timestamp:s})=>{const l=s-n;l>=t&&(Ni(i),e(l-t))};return ft.setup(i,!0),()=>Ni(i)}const jv=["TopLeft","TopRight","BottomLeft","BottomRight"],ER=jv.length,Wh=e=>typeof e=="string"?parseFloat(e):e,qh=e=>typeof e=="number"||Me.test(e);function jR(e,t,n,i,s,l){s?(e.opacity=mt(0,n.opacity??1,AR(i)),e.opacityExit=mt(t.opacity??1,0,MR(i))):l&&(e.opacity=mt(t.opacity??1,n.opacity??1,i));for(let u=0;u<ER;u++){const d=`border${jv[u]}Radius`;let h=Kh(t,d),m=Kh(n,d);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||qh(h)===qh(m)?(e[d]=Math.max(mt(Wh(h),Wh(m),i),0),(dr.test(m)||dr.test(h))&&(e[d]+="%")):e[d]=m}(t.rotate||n.rotate)&&(e.rotate=mt(t.rotate||0,n.rotate||0,i))}function Kh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const AR=Av(0,.5,fC),MR=Av(.5,.95,Pn);function Av(e,t,n){return i=>i<e?0:i>t?1:n(V1(e,t,i))}function Qh(e,t){e.min=t.min,e.max=t.max}function Yn(e,t){Qh(e.x,t.x),Qh(e.y,t.y)}function Xh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Jh(e,t,n,i,s){return e-=t,e=Sc(e,1/n,i),s!==void 0&&(e=Sc(e,1/s,i)),e}function LR(e,t=0,n=1,i=.5,s,l=e,u=e){if(dr.test(t)&&(t=parseFloat(t),t=mt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=mt(l.min,l.max,i);e===l&&(d-=t),e.min=Jh(e.min,t,n,d,s),e.max=Jh(e.max,t,n,d,s)}function em(e,t,[n,i,s],l,u){LR(e,t[n],t[i],t[s],t.scale,l,u)}const TR=["x","scaleX","originX"],NR=["y","scaleY","originY"];function tm(e,t,n,i){em(e.x,t,TR,n?n.x:void 0,i?i.x:void 0),em(e.y,t,NR,n?n.y:void 0,i?i.y:void 0)}function nm(e){return e.translate===0&&e.scale===1}function Mv(e){return nm(e.x)&&nm(e.y)}function rm(e,t){return e.min===t.min&&e.max===t.max}function RR(e,t){return rm(e.x,t.x)&&rm(e.y,t.y)}function im(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lv(e,t){return im(e.x,t.x)&&im(e.y,t.y)}function am(e){return Kt(e.x)/Kt(e.y)}function sm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class DR{constructor(){this.members=[]}add(t){d6(this.members,t),t.scheduleRender()}remove(t){if(h6(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const l=this.members[s];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kR(e,t,n){let i="";const s=e.x.translate/t.x,l=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((s||l||u)&&(i=`translate3d(${s}px, ${l}px, ${u}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:m,rotate:p,rotateX:C,rotateY:v,skewX:w,skewY:b}=n;m&&(i=`perspective(${m}px) ${i}`),p&&(i+=`rotate(${p}deg) `),C&&(i+=`rotateX(${C}deg) `),v&&(i+=`rotateY(${v}deg) `),w&&(i+=`skewX(${w}deg) `),b&&(i+=`skewY(${b}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const o7=["","X","Y","Z"],OR=1e3;let _R=0;function l7(e,t,n,i){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Tv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=mv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ft,!(s||l))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Tv(i)}function Nv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(u={},d=t==null?void 0:t()){this.id=_R++,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.layoutVersion=0,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(zR),this.nodes.forEach(HR),this.nodes.forEach(IR),this.nodes.forEach(FR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new wR)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new g6),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const h=this.eventHandlers.get(u);h&&h.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=GC(u)&&!MT(u),this.instance=u;const{layoutId:d,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||d)&&(this.isLayoutDirty=!0),e){let p,C=0;const v=()=>this.root.updateBlockedByResize=!1;ft.read(()=>{C=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==C&&(C=w,this.root.updateBlockedByResize=!0,p&&p(),p=SR(v,250),rc.hasAnimatedSinceResize&&(rc.hasAnimatedSinceResize=!1,this.nodes.forEach(cm)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&m&&(d||h)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:C,hasRelativeLayoutChanged:v,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||m.getDefaultTransition()||WR,{onLayoutAnimationStart:S,onLayoutAnimationComplete:E}=m.getProps(),j=!this.targetLayout||!Lv(this.targetLayout,w),T=!C&&v;if(this.options.layoutRoot||this.resumeFrom||T||C&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...L6(b,"layout"),onPlay:S,onComplete:E};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(p,T)}else C||cm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ni(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(ZR),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Tv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const C=this.path[p];C.shouldResetTransform=!0,C.updateScroll("snapshot"),C.options.layoutRoot&&C.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(om);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(lm);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(UR),this.nodes.forEach(PR),this.nodes.forEach(VR)):this.nodes.forEach(lm),this.clearAllSnapshots();const d=un.now();Ht.delta=Yr(0,1e3/60,d-Ht.timestamp),Ht.timestamp=d,Ht.isProcessing=!0,K3.update.process(Ht),K3.preRender.process(Ht),K3.render.process(Ht),Ht.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,N6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(BR),this.sharedNodes.forEach(GR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ft.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ft.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Kt(this.snapshot.measuredBox.x)&&!Kt(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 u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d&&this.instance){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Mv(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,p=m!==this.prevTransformTemplateValue;u&&this.instance&&(d||ua(this.latestValues)||p)&&(s(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return u&&(h=this.removeTransform(h)),qR(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:u}=this.options;if(!u)return Nt();const d=u.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(KR))){const{scroll:p}=this.root;p&&(Ps(d.x,p.offset.x),Ps(d.y,p.offset.y))}return d}removeElementScroll(u){var h;const d=Nt();if(Yn(d,u),(h=this.scroll)!=null&&h.wasRoot)return d;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:C,options:v}=p;p!==this.root&&C&&v.layoutScroll&&(C.wasRoot&&Yn(d,u),Ps(d.x,C.offset.x),Ps(d.y,C.offset.y))}return d}applyTransform(u,d=!1){const h=Nt();Yn(h,u);for(let m=0;m<this.path.length;m++){const p=this.path[m];!d&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Vs(h,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ua(p.latestValues)&&Vs(h,p.latestValues)}return ua(this.latestValues)&&Vs(h,this.latestValues),h}removeTransform(u){const d=Nt();Yn(d,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!ua(m.latestValues))continue;d4(m.latestValues)&&m.updateSnapshot();const p=Nt(),C=m.measurePageBox();Yn(p,C),tm(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,p)}return ua(this.latestValues)&&tm(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ht.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var w;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(u||h&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:C}=this.options;if(!this.layout||!(p||C))return;this.resolvedRelativeTargetAt=Ht.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Nt(),this.targetWithTransforms=Nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),iR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yn(this.target,this.layout.layoutBox),lv(this.target,this.targetDelta)):Yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||d4(this.parent.latestValues)||ov(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,d,h){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),Ec(this.relativeTargetOrigin,d,h),Yn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var b;const u=this.getLead(),d=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Ht.timestamp&&(h=!1),h)return;const{layout:m,layoutId:p}=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||p))return;Yn(this.layoutCorrected,this.layout.layoutBox);const C=this.treeScale.x,v=this.treeScale.y;gN(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Nt());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xh(this.prevProjectionDelta.x,this.projectionDelta.x),Xh(this.prevProjectionDelta.y,this.projectionDelta.y)),N1(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==C||this.treeScale.y!==v||!sm(this.projectionDelta.x,this.prevProjectionDelta.x)||!sm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zs(),this.projectionDelta=zs(),this.projectionDeltaWithTransform=zs()}setAnimationOrigin(u,d=!1){const h=this.snapshot,m=h?h.latestValues:{},p={...this.latestValues},C=zs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const v=Nt(),w=h?h.source:void 0,b=this.layout?this.layout.source:void 0,S=w!==b,E=this.getStack(),j=!E||E.members.length<=1,T=!!(S&&!j&&this.options.crossfade===!0&&!this.path.some($R));this.animationProgress=0;let L;this.mixTargetDelta=D=>{const M=D/1e3;um(C.x,u.x,M),um(C.y,u.y,M),this.setTargetDelta(C),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ec(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),YR(this.relativeTarget,this.relativeTargetOrigin,v,M),L&&RR(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=Nt()),Yn(L,this.relativeTarget)),S&&(this.animationValues=p,jR(p,m,this.latestValues,M,T,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var d,h,m;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(m=(h=this.resumingFrom)==null?void 0:h.currentAnimation)==null||m.stop(),this.pendingAnimation&&(Ni(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ft.update(()=>{rc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gs(0)),this.currentAnimation=yR(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),u.onUpdate&&u.onUpdate(p)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(OR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:h,layout:m,latestValues:p}=u;if(!(!d||!h||!m)){if(this!==u&&this.layout&&m&&Rv(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Nt();const C=Kt(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+C;const v=Kt(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+v}Yn(d,h),Vs(d,p),N1(this.projectionDeltaWithTransform,this.layoutCorrected,d,p)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new DR),this.sharedNodes.get(u).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var d;const{layoutId:u}=this.options;return u?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:u}=this.options;return u?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const m={};h.z&&l7("z",u,m,this.animationValues);for(let p=0;p<o7.length;p++)l7(`rotate${o7[p]}`,u,m,this.animationValues),l7(`skew${o7[p]}`,u,m,this.animationValues);u.render();for(const p in m)u.setStaticValue(p,m[p]),this.animationValues&&(this.animationValues[p]=m[p]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=nc(d==null?void 0:d.pointerEvents)||"",u.transform=h?h(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=nc(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!ua(this.latestValues)&&(u.transform=h?h({},""):"none",this.hasProjected=!1);return}u.visibility="";const p=m.animationValues||m.latestValues;this.applyTransformsToTarget();let C=kR(this.projectionDeltaWithTransform,this.treeScale,p);h&&(C=h(p,C)),u.transform=C;const{x:v,y:w}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${w.origin*100}% 0`,m.animationValues?u.opacity=m===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in f4){if(p[b]===void 0)continue;const{correct:S,applyTo:E,isCSSVariable:j}=f4[b],T=C==="none"?p[b]:S(p[b],m);if(E){const L=E.length;for(let D=0;D<L;D++)u[E[D]]=T}else j?this.options.visualElement.renderState.vars[b]=T:u[b]=T}this.options.layoutId&&(u.pointerEvents=m===this?nc(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(om),this.root.sharedNodes.clear()}}}function PR(e){e.updateLayout()}function VR(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:l}=e.options,u=t.source!==e.layout.source;l==="size"?On(C=>{const v=u?t.measuredBox[C]:t.layoutBox[C],w=Kt(v);v.min=i[C].min,v.max=v.min+w}):Rv(l,t.layoutBox,i)&&On(C=>{const v=u?t.measuredBox[C]:t.layoutBox[C],w=Kt(i[C]);v.max=v.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[C].max=e.relativeTarget[C].min+w)});const d=zs();N1(d,i,t.layoutBox);const h=zs();u?N1(h,e.applyTransform(s,!0),t.measuredBox):N1(h,i,t.layoutBox);const m=!Mv(d);let p=!1;if(!e.resumeFrom){const C=e.getClosestProjectingParent();if(C&&!C.resumeFrom){const{snapshot:v,layout:w}=C;if(v&&w){const b=Nt();Ec(b,t.layoutBox,v.layoutBox);const S=Nt();Ec(S,i,w.layoutBox),Lv(b,S)||(p=!0),C.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=b,e.relativeParent=C)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function zR(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 FR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function BR(e){e.clearSnapshot()}function om(e){e.clearMeasurements()}function lm(e){e.isLayoutDirty=!1}function UR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HR(e){e.resolveTargetDelta()}function IR(e){e.calcProjection()}function ZR(e){e.resetSkewAndRotation()}function GR(e){e.removeLeadSnapshot()}function um(e,t,n){e.translate=mt(t.translate,0,n),e.scale=mt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fm(e,t,n,i){e.min=mt(t.min,n.min,i),e.max=mt(t.max,n.max,i)}function YR(e,t,n,i){fm(e.x,t.x,n.x,i),fm(e.y,t.y,n.y,i)}function $R(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const WR={duration:.45,ease:[.4,0,.1,1]},dm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hm=dm("applewebkit/")&&!dm("chrome/")?Math.round:Pn;function mm(e){e.min=hm(e.min),e.max=hm(e.max)}function qR(e){mm(e.x),mm(e.y)}function Rv(e,t,n){return e==="position"||e==="preserve-aspect"&&!rR(am(t),am(n),.2)}function KR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const QR=Nv({attachResizeListener:(e,t)=>H1(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),c7={current:void 0},Dv=Nv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!c7.current){const e=new QR({});e.mount(window),e.setOptions({layoutScroll:!0}),c7.current=e}return c7.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),XR={pan:{Feature:vR},drag:{Feature:CR,ProjectionNode:Dv,MeasureLayout:Ev}};function pm(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,l=i[s];l&&ft.postRender(()=>l(t,nl(t)))}class JR extends zi{mount(){const{current:t}=this.node;t&&(this.unmount=wT(t,(n,i)=>(pm(this.node,i,"Start"),s=>pm(this.node,s,"End"))))}unmount(){}}class eD extends zi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=J1(H1(this.node.current,"focus",()=>this.onFocus()),H1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gm(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),l=i[s];l&&ft.postRender(()=>l(t,nl(t)))}class tD extends zi{mount(){const{current:t}=this.node;t&&(this.unmount=AT(t,(n,i)=>(gm(this.node,i,"Start"),(s,{success:l})=>gm(this.node,s,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const x4=new WeakMap,u7=new WeakMap,nD=e=>{const t=x4.get(e.target);t&&t(e)},rD=e=>{e.forEach(nD)};function iD({root:e,...t}){const n=e||document;u7.has(n)||u7.set(n,{});const i=u7.get(n),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(rD,{root:e,...t})),i[s]}function aD(e,t,n){const i=iD(t);return x4.set(e,n),i.observe(e),()=>{x4.delete(e),i.unobserve(e)}}const sD={some:0,all:1};class oD extends zi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:l}=t,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:sD[s]},d=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:p,onViewportLeave:C}=this.node.getProps(),v=m?p:C;v&&v(h)};return aD(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(lD(t,n))&&this.startObserver()}unmount(){}}function lD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cD={inView:{Feature:oD},tap:{Feature:tD},focus:{Feature:eD},hover:{Feature:JR}},uD={layout:{ProjectionNode:Dv,MeasureLayout:Ev}},fD={...QN,...cD,...XR,...uD},ln=hN(fD,AN);var Cm=1,dD=.9,hD=.8,mD=.17,f7=.1,d7=.999,pD=.9999,gD=.99,CD=/[\\\/_+.#"@\[\(\{&]/,vD=/[\\\/_+.#"@\[\(\{&]/g,xD=/[\s-]/,kv=/[\s-]/g;function y4(e,t,n,i,s,l,u){if(l===t.length)return s===e.length?Cm:gD;var d=`${s},${l}`;if(u[d]!==void 0)return u[d];for(var h=i.charAt(l),m=n.indexOf(h,s),p=0,C,v,w,b;m>=0;)C=y4(e,t,n,i,m+1,l+1,u),C>p&&(m===s?C*=Cm:CD.test(e.charAt(m-1))?(C*=hD,w=e.slice(s,m-1).match(vD),w&&s>0&&(C*=Math.pow(d7,w.length))):xD.test(e.charAt(m-1))?(C*=dD,b=e.slice(s,m-1).match(kv),b&&s>0&&(C*=Math.pow(d7,b.length))):(C*=mD,s>0&&(C*=Math.pow(d7,m-s))),e.charAt(m)!==t.charAt(l)&&(C*=pD)),(C<f7&&n.charAt(m-1)===i.charAt(l+1)||i.charAt(l+1)===i.charAt(l)&&n.charAt(m-1)!==i.charAt(l))&&(v=y4(e,t,n,i,m+1,l+2,u),v*f7>C&&(C=v*f7)),C>p&&(p=C),m=n.indexOf(h,m+1);return u[d]=p,p}function vm(e){return e.toLowerCase().replace(kv," ")}function yD(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,y4(e,t,vm(e),vm(t),0,0,{})}function Ne(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function xm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wr(...e){return t=>{let n=!1;const i=e.map(s=>{const l=xm(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():xm(e[s],null)}}}}function Rt(...e){return y.useCallback(Wr(...e),e)}function bD(e,t){const n=y.createContext(t),i=l=>{const{children:u,...d}=l,h=y.useMemo(()=>d,Object.values(d));return c.jsx(n.Provider,{value:h,children:u})};i.displayName=e+"Provider";function s(l){const u=y.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[i,s]}function Jn(e,t=[]){let n=[];function i(l,u){const d=y.createContext(u),h=n.length;n=[...n,u];const m=C=>{var j;const{scope:v,children:w,...b}=C,S=((j=v==null?void 0:v[e])==null?void 0:j[h])||d,E=y.useMemo(()=>b,Object.values(b));return c.jsx(S.Provider,{value:E,children:w})};m.displayName=l+"Provider";function p(C,v){var S;const w=((S=v==null?void 0:v[e])==null?void 0:S[h])||d,b=y.useContext(w);if(b)return b;if(u!==void 0)return u;throw new Error(`\`${C}\` must be used within \`${l}\``)}return[m,p]}const s=()=>{const l=n.map(u=>y.createContext(u));return function(d){const h=(d==null?void 0:d[e])||l;return y.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return s.scopeName=e,[i,wD(s,...t)]}function wD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const u=i.reduce((d,{useScope:h,scopeName:m})=>{const C=h(l)[`__scope${m}`];return{...d,...C}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}var Fn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},SD=Og[" useId ".trim().toString()]||(()=>{}),ED=0;function Qt(e){const[t,n]=y.useState(SD());return Fn(()=>{n(i=>i??String(ED++))},[e]),e||(t?`radix-${t}`:"")}var jD=Og[" useInsertionEffect ".trim().toString()]||Fn;function Na({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,l,u]=AD({defaultProp:t,onChange:n}),d=e!==void 0,h=d?e:s;{const p=y.useRef(e!==void 0);y.useEffect(()=>{const C=p.current;C!==d&&console.warn(`${i} is changing from ${C?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=d},[d,i])}const m=y.useCallback(p=>{var C;if(d){const v=MD(p)?p(e):p;v!==e&&((C=u.current)==null||C.call(u,v))}else l(p)},[d,e,l,u]);return[h,m]}function AD({defaultProp:e,onChange:t}){const[n,i]=y.useState(e),s=y.useRef(n),l=y.useRef(t);return jD(()=>{l.current=t},[t]),y.useEffect(()=>{var u;s.current!==n&&((u=l.current)==null||u.call(l,n),s.current=n)},[n,s]),[n,i,l]}function MD(e){return typeof e=="function"}function $s(e){const t=LD(e),n=y.forwardRef((i,s)=>{const{children:l,...u}=i,d=y.Children.toArray(l),h=d.find(ND);if(h){const m=h.props.children,p=d.map(C=>C===h?y.Children.count(m)>1?y.Children.only(null):y.isValidElement(m)?m.props.children:null:C);return c.jsx(t,{...u,ref:s,children:y.isValidElement(m)?y.cloneElement(m,void 0,p):null})}return c.jsx(t,{...u,ref:s,children:l})});return n.displayName=`${e}.Slot`,n}var Ov=$s("Slot");function LD(e){const t=y.forwardRef((n,i)=>{const{children:s,...l}=n;if(y.isValidElement(s)){const u=DD(s),d=RD(l,s.props);return s.type!==y.Fragment&&(d.ref=i?Wr(i,u):u),y.cloneElement(s,d)}return y.Children.count(s)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var TD=Symbol("radix.slottable");function ND(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===TD}function RD(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...d)=>{const h=l(...d);return s(...d),h}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}function DD(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=kD.reduce((e,t)=>{const n=$s(`Primitive.${t}`),i=y.forwardRef((s,l)=>{const{asChild:u,...d}=s,h=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(h,{...d,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function _v(e,t){e&&l6.flushSync(()=>e.dispatchEvent(t))}function mr(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function OD(e,t=globalThis==null?void 0:globalThis.document){const n=mr(e);y.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var _D="DismissableLayer",b4="dismissableLayer.update",PD="dismissableLayer.pointerDownOutside",VD="dismissableLayer.focusOutside",ym,Pv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H6=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...h}=e,m=y.useContext(Pv),[p,C]=y.useState(null),v=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=y.useState({}),b=Rt(t,O=>C(O)),S=Array.from(m.layers),[E]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=S.indexOf(E),T=p?S.indexOf(p):-1,L=m.layersWithOutsidePointerEventsDisabled.size>0,D=T>=j,M=BD(O=>{const z=O.target,I=[...m.branches].some(ne=>ne.contains(z));!D||I||(s==null||s(O),u==null||u(O),O.defaultPrevented||d==null||d())},v),k=UD(O=>{const z=O.target;[...m.branches].some(ne=>ne.contains(z))||(l==null||l(O),u==null||u(O),O.defaultPrevented||d==null||d())},v);return OD(O=>{T===m.layers.size-1&&(i==null||i(O),!O.defaultPrevented&&d&&(O.preventDefault(),d()))},v),y.useEffect(()=>{if(p)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(ym=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),bm(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ym)}},[p,v,n,m]),y.useEffect(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),bm())},[p,m]),y.useEffect(()=>{const O=()=>w({});return document.addEventListener(b4,O),()=>document.removeEventListener(b4,O)},[]),c.jsx(Re.div,{...h,ref:b,style:{pointerEvents:L?D?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,M.onPointerDownCapture)})});H6.displayName=_D;var zD="DismissableLayerBranch",FD=y.forwardRef((e,t)=>{const n=y.useContext(Pv),i=y.useRef(null),s=Rt(t,i);return y.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),c.jsx(Re.div,{...e,ref:s})});FD.displayName=zD;function BD(e,t=globalThis==null?void 0:globalThis.document){const n=mr(e),i=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const l=d=>{if(d.target&&!i.current){let h=function(){Vv(PD,n,m,{discrete:!0})};const m={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=h,t.addEventListener("click",s.current,{once:!0})):h()}else t.removeEventListener("click",s.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function UD(e,t=globalThis==null?void 0:globalThis.document){const n=mr(e),i=y.useRef(!1);return y.useEffect(()=>{const s=l=>{l.target&&!i.current&&Vv(VD,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function bm(){const e=new CustomEvent(b4);document.dispatchEvent(e)}function Vv(e,t,n,{discrete:i}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?_v(s,l):s.dispatchEvent(l)}var h7="focusScope.autoFocusOnMount",m7="focusScope.autoFocusOnUnmount",wm={bubbles:!1,cancelable:!0},HD="FocusScope",I6=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:l,...u}=e,[d,h]=y.useState(null),m=mr(s),p=mr(l),C=y.useRef(null),v=Rt(t,S=>h(S)),w=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let S=function(L){if(w.paused||!d)return;const D=L.target;d.contains(D)?C.current=D:Ai(C.current,{select:!0})},E=function(L){if(w.paused||!d)return;const D=L.relatedTarget;D!==null&&(d.contains(D)||Ai(C.current,{select:!0}))},j=function(L){if(document.activeElement===document.body)for(const M of L)M.removedNodes.length>0&&Ai(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",E);const T=new MutationObserver(j);return d&&T.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",E),T.disconnect()}}},[i,d,w.paused]),y.useEffect(()=>{if(d){Em.add(w);const S=document.activeElement;if(!d.contains(S)){const j=new CustomEvent(h7,wm);d.addEventListener(h7,m),d.dispatchEvent(j),j.defaultPrevented||(ID(WD(zv(d)),{select:!0}),document.activeElement===S&&Ai(d))}return()=>{d.removeEventListener(h7,m),setTimeout(()=>{const j=new CustomEvent(m7,wm);d.addEventListener(m7,p),d.dispatchEvent(j),j.defaultPrevented||Ai(S??document.body,{select:!0}),d.removeEventListener(m7,p),Em.remove(w)},0)}}},[d,m,p,w]);const b=y.useCallback(S=>{if(!n&&!i||w.paused)return;const E=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,j=document.activeElement;if(E&&j){const T=S.currentTarget,[L,D]=ZD(T);L&&D?!S.shiftKey&&j===D?(S.preventDefault(),n&&Ai(L,{select:!0})):S.shiftKey&&j===L&&(S.preventDefault(),n&&Ai(D,{select:!0})):j===T&&S.preventDefault()}},[n,i,w.paused]);return c.jsx(Re.div,{tabIndex:-1,...u,ref:v,onKeyDown:b})});I6.displayName=HD;function ID(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Ai(i,{select:t}),document.activeElement!==n)return}function ZD(e){const t=zv(e),n=Sm(t,e),i=Sm(t.reverse(),e);return[n,i]}function zv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Sm(e,t){for(const n of e)if(!GD(n,{upTo:t}))return n}function GD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function YD(e){return e instanceof HTMLInputElement&&"select"in e}function Ai(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&YD(e)&&t&&e.select()}}var Em=$D();function $D(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jm(e,t),e.unshift(t)},remove(t){var n;e=jm(e,t),(n=e[0])==null||n.resume()}}}function jm(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function WD(e){return e.filter(t=>t.tagName!=="A")}var qD="Portal",Z6=y.forwardRef((e,t)=>{var d;const{container:n,...i}=e,[s,l]=y.useState(!1);Fn(()=>l(!0),[]);const u=n||s&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return u?DM.createPortal(c.jsx(Re.div,{...i,ref:t}),u):null});Z6.displayName=qD;function KD(e,t){return y.useReducer((n,i)=>t[n][i]??n,e)}var Cr=e=>{const{present:t,children:n}=e,i=QD(t),s=typeof n=="function"?n({present:i.isPresent}):y.Children.only(n),l=Rt(i.ref,XD(s));return typeof n=="function"||i.isPresent?y.cloneElement(s,{ref:l}):null};Cr.displayName="Presence";function QD(e){const[t,n]=y.useState(),i=y.useRef(null),s=y.useRef(e),l=y.useRef("none"),u=e?"mounted":"unmounted",[d,h]=KD(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const m=O2(i.current);l.current=d==="mounted"?m:"none"},[d]),Fn(()=>{const m=i.current,p=s.current;if(p!==e){const v=l.current,w=O2(m);e?h("MOUNT"):w==="none"||(m==null?void 0:m.display)==="none"?h("UNMOUNT"):h(p&&v!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),Fn(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,C=w=>{const S=O2(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&S&&(h("ANIMATION_END"),!s.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",m=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},v=w=>{w.target===t&&(l.current=O2(i.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",C),t.addEventListener("animationend",C),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",C),t.removeEventListener("animationend",C)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:y.useCallback(m=>{i.current=m?getComputedStyle(m):null,n(m)},[])}}function O2(e){return(e==null?void 0:e.animationName)||"none"}function XD(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var p7=0;function Fv(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Am()),document.body.insertAdjacentElement("beforeend",e[1]??Am()),p7++,()=>{p7===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),p7--}},[])}function Am(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var w4=function(e,t){return w4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},w4(e,t)};function JD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");w4(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var it=function(){return it=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},it.apply(this,arguments)};function Bv(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function ek(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var ic="right-scroll-bar-position",ac="width-before-scroll-bar",tk="with-scroll-bars-hidden",nk="--removed-body-scroll-bar-size";function g7(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rk(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var ik=typeof window<"u"?y.useLayoutEffect:y.useEffect,Mm=new WeakMap;function ak(e,t){var n=rk(null,function(i){return e.forEach(function(s){return g7(s,i)})});return ik(function(){var i=Mm.get(n);if(i){var s=new Set(i),l=new Set(e),u=n.current;s.forEach(function(d){l.has(d)||g7(d,null)}),l.forEach(function(d){s.has(d)||g7(d,u)})}Mm.set(n,e)},[e]),n}function sk(e){return e}function ok(e,t){t===void 0&&(t=sk);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,i);return n.push(u),function(){n=n.filter(function(d){return d!==u})}},assignSyncMedium:function(l){for(i=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(d){return l(d)},filter:function(){return n}}},assignMedium:function(l){i=!0;var u=[];if(n.length){var d=n;n=[],d.forEach(l),u=n}var h=function(){var p=u;u=[],p.forEach(l)},m=function(){return Promise.resolve().then(h)};m(),n={push:function(p){u.push(p),m()},filter:function(p){return u=u.filter(p),n}}}};return s}function lk(e){e===void 0&&(e={});var t=ok(null);return t.options=it({async:!0,ssr:!1},e),t}var Uv=function(e){var t=e.sideCar,n=Bv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return y.createElement(i,it({},n))};Uv.isSideCarExport=!0;function ck(e,t){return e.useMedium(t),Uv}var Hv=lk(),C7=function(){},Xc=y.forwardRef(function(e,t){var n=y.useRef(null),i=y.useState({onScrollCapture:C7,onWheelCapture:C7,onTouchMoveCapture:C7}),s=i[0],l=i[1],u=e.forwardProps,d=e.children,h=e.className,m=e.removeScrollBar,p=e.enabled,C=e.shards,v=e.sideCar,w=e.noRelative,b=e.noIsolation,S=e.inert,E=e.allowPinchZoom,j=e.as,T=j===void 0?"div":j,L=e.gapMode,D=Bv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=v,k=ak([n,t]),O=it(it({},D),s);return y.createElement(y.Fragment,null,p&&y.createElement(M,{sideCar:Hv,removeScrollBar:m,shards:C,noRelative:w,noIsolation:b,inert:S,setCallbacks:l,allowPinchZoom:!!E,lockRef:n,gapMode:L}),u?y.cloneElement(y.Children.only(d),it(it({},O),{ref:k})):y.createElement(T,it({},O,{className:h,ref:k}),d))});Xc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xc.classNames={fullWidth:ac,zeroRight:ic};var uk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uk();return t&&e.setAttribute("nonce",t),e}function dk(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hk(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fk())&&(dk(t,n),hk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pk=function(){var e=mk();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Iv=function(){var e=pk(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},gk={left:0,top:0,right:0,gap:0},v7=function(e){return parseInt(e||"",10)||0},Ck=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[v7(n),v7(i),v7(s)]},vk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gk;var t=Ck(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},xk=Iv(),Hs="data-scroll-locked",yk=function(e,t,n,i){var s=e.left,l=e.top,u=e.right,d=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(tk,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(d,"px ").concat(i,`;
  }
  body[`).concat(Hs,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(l,`px;
    padding-right: `).concat(u,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(d,"px ").concat(i,`;
    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ic,` {
    right: `).concat(d,"px ").concat(i,`;
  }
  
  .`).concat(ac,` {
    margin-right: `).concat(d,"px ").concat(i,`;
  }
  
  .`).concat(ic," .").concat(ic,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(ac," .").concat(ac,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(Hs,`] {
    `).concat(nk,": ").concat(d,`px;
  }
`)},Lm=function(){var e=parseInt(document.body.getAttribute(Hs)||"0",10);return isFinite(e)?e:0},bk=function(){y.useEffect(function(){return document.body.setAttribute(Hs,(Lm()+1).toString()),function(){var e=Lm()-1;e<=0?document.body.removeAttribute(Hs):document.body.setAttribute(Hs,e.toString())}},[])},wk=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;bk();var l=y.useMemo(function(){return vk(s)},[s]);return y.createElement(xk,{styles:yk(l,!t,s,n?"":"!important")})},S4=!1;if(typeof window<"u")try{var _2=Object.defineProperty({},"passive",{get:function(){return S4=!0,!0}});window.addEventListener("test",_2,_2),window.removeEventListener("test",_2,_2)}catch{S4=!1}var js=S4?{passive:!1}:!1,Sk=function(e){return e.tagName==="TEXTAREA"},Zv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Sk(e)&&n[t]==="visible")},Ek=function(e){return Zv(e,"overflowY")},jk=function(e){return Zv(e,"overflowX")},Tm=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=Gv(e,i);if(s){var l=Yv(e,i),u=l[1],d=l[2];if(u>d)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},Ak=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Mk=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Gv=function(e,t){return e==="v"?Ek(t):jk(t)},Yv=function(e,t){return e==="v"?Ak(t):Mk(t)},Lk=function(e,t){return e==="h"&&t==="rtl"?-1:1},Tk=function(e,t,n,i,s){var l=Lk(e,window.getComputedStyle(t).direction),u=l*i,d=n.target,h=t.contains(d),m=!1,p=u>0,C=0,v=0;do{if(!d)break;var w=Yv(e,d),b=w[0],S=w[1],E=w[2],j=S-E-l*b;(b||j)&&Gv(e,d)&&(C+=j,v+=b);var T=d.parentNode;d=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(p&&Math.abs(C)<1||!p&&Math.abs(v)<1)&&(m=!0),m},P2=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nm=function(e){return[e.deltaX,e.deltaY]},Rm=function(e){return e&&"current"in e?e.current:e},Nk=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rk=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Dk=0,As=[];function kk(e){var t=y.useRef([]),n=y.useRef([0,0]),i=y.useRef(),s=y.useState(Dk++)[0],l=y.useState(Iv)[0],u=y.useRef(e);y.useEffect(function(){u.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=ek([e.lockRef.current],(e.shards||[]).map(Rm),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var d=y.useCallback(function(S,E){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var j=P2(S),T=n.current,L="deltaX"in S?S.deltaX:T[0]-j[0],D="deltaY"in S?S.deltaY:T[1]-j[1],M,k=S.target,O=Math.abs(L)>Math.abs(D)?"h":"v";if("touches"in S&&O==="h"&&k.type==="range")return!1;var z=Tm(O,k);if(!z)return!0;if(z?M=O:(M=O==="v"?"h":"v",z=Tm(O,k)),!z)return!1;if(!i.current&&"changedTouches"in S&&(L||D)&&(i.current=M),!M)return!0;var I=i.current||M;return Tk(I,E,S,I==="h"?L:D)},[]),h=y.useCallback(function(S){var E=S;if(!(!As.length||As[As.length-1]!==l)){var j="deltaY"in E?Nm(E):P2(E),T=t.current.filter(function(M){return M.name===E.type&&(M.target===E.target||E.target===M.shadowParent)&&Nk(M.delta,j)})[0];if(T&&T.should){E.cancelable&&E.preventDefault();return}if(!T){var L=(u.current.shards||[]).map(Rm).filter(Boolean).filter(function(M){return M.contains(E.target)}),D=L.length>0?d(E,L[0]):!u.current.noIsolation;D&&E.cancelable&&E.preventDefault()}}},[]),m=y.useCallback(function(S,E,j,T){var L={name:S,delta:E,target:j,should:T,shadowParent:Ok(j)};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(D){return D!==L})},1)},[]),p=y.useCallback(function(S){n.current=P2(S),i.current=void 0},[]),C=y.useCallback(function(S){m(S.type,Nm(S),S.target,d(S,e.lockRef.current))},[]),v=y.useCallback(function(S){m(S.type,P2(S),S.target,d(S,e.lockRef.current))},[]);y.useEffect(function(){return As.push(l),e.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:v}),document.addEventListener("wheel",h,js),document.addEventListener("touchmove",h,js),document.addEventListener("touchstart",p,js),function(){As=As.filter(function(S){return S!==l}),document.removeEventListener("wheel",h,js),document.removeEventListener("touchmove",h,js),document.removeEventListener("touchstart",p,js)}},[]);var w=e.removeScrollBar,b=e.inert;return y.createElement(y.Fragment,null,b?y.createElement(l,{styles:Rk(s)}):null,w?y.createElement(wk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ok(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _k=ck(Hv,kk);var G6=y.forwardRef(function(e,t){return y.createElement(Xc,it({},e,{ref:t,sideCar:_k}))});G6.classNames=Xc.classNames;var Pk=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ms=new WeakMap,V2=new WeakMap,z2={},x7=0,$v=function(e){return e&&(e.host||$v(e.parentNode))},Vk=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=$v(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zk=function(e,t,n,i){var s=Vk(t,Array.isArray(e)?e:[e]);z2[n]||(z2[n]=new WeakMap);var l=z2[n],u=[],d=new Set,h=new Set(s),m=function(C){!C||d.has(C)||(d.add(C),m(C.parentNode))};s.forEach(m);var p=function(C){!C||h.has(C)||Array.prototype.forEach.call(C.children,function(v){if(d.has(v))p(v);else try{var w=v.getAttribute(i),b=w!==null&&w!=="false",S=(Ms.get(v)||0)+1,E=(l.get(v)||0)+1;Ms.set(v,S),l.set(v,E),u.push(v),S===1&&b&&V2.set(v,!0),E===1&&v.setAttribute(n,"true"),b||v.setAttribute(i,"true")}catch(j){console.error("aria-hidden: cannot operate on ",v,j)}})};return p(t),d.clear(),x7++,function(){u.forEach(function(C){var v=Ms.get(C)-1,w=l.get(C)-1;Ms.set(C,v),l.set(C,w),v||(V2.has(C)||C.removeAttribute(i),V2.delete(C)),w||C.removeAttribute(n)}),x7--,x7||(Ms=new WeakMap,Ms=new WeakMap,V2=new WeakMap,z2={})}},Wv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=Pk(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),zk(i,s,n,"aria-hidden")):function(){return null}},Jc="Dialog",[qv,aK]=Jn(Jc),[Fk,er]=qv(Jc),Kv=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:s,onOpenChange:l,modal:u=!0}=e,d=y.useRef(null),h=y.useRef(null),[m,p]=Na({prop:i,defaultProp:s??!1,onChange:l,caller:Jc});return c.jsx(Fk,{scope:t,triggerRef:d,contentRef:h,contentId:Qt(),titleId:Qt(),descriptionId:Qt(),open:m,onOpenChange:p,onOpenToggle:y.useCallback(()=>p(C=>!C),[p]),modal:u,children:n})};Kv.displayName=Jc;var Qv="DialogTrigger",Xv=y.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=er(Qv,n),l=Rt(t,s.triggerRef);return c.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":W6(s.open),...i,ref:l,onClick:Ne(e.onClick,s.onOpenToggle)})});Xv.displayName=Qv;var Y6="DialogPortal",[Bk,Jv]=qv(Y6,{forceMount:void 0}),ex=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:s}=e,l=er(Y6,t);return c.jsx(Bk,{scope:t,forceMount:n,children:y.Children.map(i,u=>c.jsx(Cr,{present:n||l.open,children:c.jsx(Z6,{asChild:!0,container:s,children:u})}))})};ex.displayName=Y6;var jc="DialogOverlay",tx=y.forwardRef((e,t)=>{const n=Jv(jc,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,l=er(jc,e.__scopeDialog);return l.modal?c.jsx(Cr,{present:i||l.open,children:c.jsx(Hk,{...s,ref:t})}):null});tx.displayName=jc;var Uk=$s("DialogOverlay.RemoveScroll"),Hk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=er(jc,n);return c.jsx(G6,{as:Uk,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsx(Re.div,{"data-state":W6(s.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Ea="DialogContent",nx=y.forwardRef((e,t)=>{const n=Jv(Ea,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,l=er(Ea,e.__scopeDialog);return c.jsx(Cr,{present:i||l.open,children:l.modal?c.jsx(Ik,{...s,ref:t}):c.jsx(Zk,{...s,ref:t})})});nx.displayName=Ea;var Ik=y.forwardRef((e,t)=>{const n=er(Ea,e.__scopeDialog),i=y.useRef(null),s=Rt(t,n.contentRef,i);return y.useEffect(()=>{const l=i.current;if(l)return Wv(l)},[]),c.jsx(rx,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ne(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Ne(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0;(u.button===2||d)&&l.preventDefault()}),onFocusOutside:Ne(e.onFocusOutside,l=>l.preventDefault())})}),Zk=y.forwardRef((e,t)=>{const n=er(Ea,e.__scopeDialog),i=y.useRef(!1),s=y.useRef(!1);return c.jsx(rx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,d;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(d=n.triggerRef.current)==null||d.focus(),l.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:l=>{var h,m;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=l.target;((m=n.triggerRef.current)==null?void 0:m.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&s.current&&l.preventDefault()}})}),rx=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,d=er(Ea,n),h=y.useRef(null),m=Rt(t,h);return Fv(),c.jsxs(c.Fragment,{children:[c.jsx(I6,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:l,children:c.jsx(H6,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":W6(d.open),...u,ref:m,onDismiss:()=>d.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Gk,{titleId:d.titleId}),c.jsx($k,{contentRef:h,descriptionId:d.descriptionId})]})]})}),$6="DialogTitle",ix=y.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=er($6,n);return c.jsx(Re.h2,{id:s.titleId,...i,ref:t})});ix.displayName=$6;var ax="DialogDescription",sx=y.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=er(ax,n);return c.jsx(Re.p,{id:s.descriptionId,...i,ref:t})});sx.displayName=ax;var ox="DialogClose",lx=y.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=er(ox,n);return c.jsx(Re.button,{type:"button",...i,ref:t,onClick:Ne(e.onClick,()=>s.onOpenChange(!1))})});lx.displayName=ox;function W6(e){return e?"open":"closed"}var cx="DialogTitleWarning",[sK,ux]=bD(cx,{contentName:Ea,titleName:$6,docsSlug:"dialog"}),Gk=({titleId:e})=>{const t=ux(cx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Yk="DialogDescriptionWarning",$k=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ux(Yk).contentName}}.`;return y.useEffect(()=>{var l;const s=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},q6=Kv,fx=Xv,K6=ex,Q6=tx,X6=nx,dx=ix,Wk=sx,hx=lx,v1='[cmdk-group=""]',y7='[cmdk-group-items=""]',qk='[cmdk-group-heading=""]',mx='[cmdk-item=""]',Dm=`${mx}:not([aria-disabled="true"])`,E4="cmdk-item-select",Ns="data-value",Kk=(e,t,n)=>yD(e,t,n),px=y.createContext(void 0),rl=()=>y.useContext(px),gx=y.createContext(void 0),J6=()=>y.useContext(gx),Cx=y.createContext(void 0),vx=y.forwardRef((e,t)=>{let n=Rs(()=>{var F,G;return{search:"",value:(G=(F=e.value)!=null?F:e.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Rs(()=>new Set),s=Rs(()=>new Map),l=Rs(()=>new Map),u=Rs(()=>new Set),d=xx(e),{label:h,children:m,value:p,onValueChange:C,filter:v,shouldFilter:w,loop:b,disablePointerSelection:S=!1,vimBindings:E=!0,...j}=e,T=Qt(),L=Qt(),D=Qt(),M=y.useRef(null),k=oO();ja(()=>{if(p!==void 0){let F=p.trim();n.current.value=F,O.emit()}},[p]),ja(()=>{k(6,he)},[]);let O=y.useMemo(()=>({subscribe:F=>(u.current.add(F),()=>u.current.delete(F)),snapshot:()=>n.current,setState:(F,G,ee)=>{var se,ce,de,ye;if(!Object.is(n.current[F],G)){if(n.current[F]=G,F==="search")le(),ne(),k(1,Q);else if(F==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let be=document.getElementById(D);be?be.focus():(se=document.getElementById(T))==null||se.focus()}if(k(7,()=>{var be;n.current.selectedItemId=(be=ie())==null?void 0:be.id,O.emit()}),ee||k(5,he),((ce=d.current)==null?void 0:ce.value)!==void 0){let be=G??"";(ye=(de=d.current).onValueChange)==null||ye.call(de,be);return}}O.emit()}},emit:()=>{u.current.forEach(F=>F())}}),[]),z=y.useMemo(()=>({value:(F,G,ee)=>{var se;G!==((se=l.current.get(F))==null?void 0:se.value)&&(l.current.set(F,{value:G,keywords:ee}),n.current.filtered.items.set(F,I(G,ee)),k(2,()=>{ne(),O.emit()}))},item:(F,G)=>(i.current.add(F),G&&(s.current.has(G)?s.current.get(G).add(F):s.current.set(G,new Set([F]))),k(3,()=>{le(),ne(),n.current.value||Q(),O.emit()}),()=>{l.current.delete(F),i.current.delete(F),n.current.filtered.items.delete(F);let ee=ie();k(4,()=>{le(),(ee==null?void 0:ee.getAttribute("id"))===F&&Q(),O.emit()})}),group:F=>(s.current.has(F)||s.current.set(F,new Set),()=>{l.current.delete(F),s.current.delete(F)}),filter:()=>d.current.shouldFilter,label:h||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:T,inputId:D,labelId:L,listInnerRef:M}),[]);function I(F,G){var ee,se;let ce=(se=(ee=d.current)==null?void 0:ee.filter)!=null?se:Kk;return F?ce(F,n.current.search,G):0}function ne(){if(!n.current.search||d.current.shouldFilter===!1)return;let F=n.current.filtered.items,G=[];n.current.filtered.groups.forEach(se=>{let ce=s.current.get(se),de=0;ce.forEach(ye=>{let be=F.get(ye);de=Math.max(be,de)}),G.push([se,de])});let ee=M.current;J().sort((se,ce)=>{var de,ye;let be=se.getAttribute("id"),Ve=ce.getAttribute("id");return((de=F.get(Ve))!=null?de:0)-((ye=F.get(be))!=null?ye:0)}).forEach(se=>{let ce=se.closest(y7);ce?ce.appendChild(se.parentElement===ce?se:se.closest(`${y7} > *`)):ee.appendChild(se.parentElement===ee?se:se.closest(`${y7} > *`))}),G.sort((se,ce)=>ce[1]-se[1]).forEach(se=>{var ce;let de=(ce=M.current)==null?void 0:ce.querySelector(`${v1}[${Ns}="${encodeURIComponent(se[0])}"]`);de==null||de.parentElement.appendChild(de)})}function Q(){let F=J().find(ee=>ee.getAttribute("aria-disabled")!=="true"),G=F==null?void 0:F.getAttribute(Ns);O.setState("value",G||void 0)}function le(){var F,G,ee,se;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let ce=0;for(let de of i.current){let ye=(G=(F=l.current.get(de))==null?void 0:F.value)!=null?G:"",be=(se=(ee=l.current.get(de))==null?void 0:ee.keywords)!=null?se:[],Ve=I(ye,be);n.current.filtered.items.set(de,Ve),Ve>0&&ce++}for(let[de,ye]of s.current)for(let be of ye)if(n.current.filtered.items.get(be)>0){n.current.filtered.groups.add(de);break}n.current.filtered.count=ce}function he(){var F,G,ee;let se=ie();se&&(((F=se.parentElement)==null?void 0:F.firstChild)===se&&((ee=(G=se.closest(v1))==null?void 0:G.querySelector(qk))==null||ee.scrollIntoView({block:"nearest"})),se.scrollIntoView({block:"nearest"}))}function ie(){var F;return(F=M.current)==null?void 0:F.querySelector(`${mx}[aria-selected="true"]`)}function J(){var F;return Array.from(((F=M.current)==null?void 0:F.querySelectorAll(Dm))||[])}function _(F){let G=J()[F];G&&O.setState("value",G.getAttribute(Ns))}function U(F){var G;let ee=ie(),se=J(),ce=se.findIndex(ye=>ye===ee),de=se[ce+F];(G=d.current)!=null&&G.loop&&(de=ce+F<0?se[se.length-1]:ce+F===se.length?se[0]:se[ce+F]),de&&O.setState("value",de.getAttribute(Ns))}function V(F){let G=ie(),ee=G==null?void 0:G.closest(v1),se;for(;ee&&!se;)ee=F>0?aO(ee,v1):sO(ee,v1),se=ee==null?void 0:ee.querySelector(Dm);se?O.setState("value",se.getAttribute(Ns)):U(F)}let q=()=>_(J().length-1),R=F=>{F.preventDefault(),F.metaKey?q():F.altKey?V(1):U(1)},Z=F=>{F.preventDefault(),F.metaKey?_(0):F.altKey?V(-1):U(-1)};return y.createElement(Re.div,{ref:t,tabIndex:-1,...j,"cmdk-root":"",onKeyDown:F=>{var G;(G=j.onKeyDown)==null||G.call(j,F);let ee=F.nativeEvent.isComposing||F.keyCode===229;if(!(F.defaultPrevented||ee))switch(F.key){case"n":case"j":{E&&F.ctrlKey&&R(F);break}case"ArrowDown":{R(F);break}case"p":case"k":{E&&F.ctrlKey&&Z(F);break}case"ArrowUp":{Z(F);break}case"Home":{F.preventDefault(),_(0);break}case"End":{F.preventDefault(),q();break}case"Enter":{F.preventDefault();let se=ie();if(se){let ce=new Event(E4);se.dispatchEvent(ce)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:cO},h),eu(e,F=>y.createElement(gx.Provider,{value:O},y.createElement(px.Provider,{value:z},F))))}),Qk=y.forwardRef((e,t)=>{var n,i;let s=Qt(),l=y.useRef(null),u=y.useContext(Cx),d=rl(),h=xx(e),m=(i=(n=h.current)==null?void 0:n.forceMount)!=null?i:u==null?void 0:u.forceMount;ja(()=>{if(!m)return d.item(s,u==null?void 0:u.id)},[m]);let p=yx(s,l,[e.value,e.children,l],e.keywords),C=J6(),v=Di(k=>k.value&&k.value===p.current),w=Di(k=>m||d.filter()===!1?!0:k.search?k.filtered.items.get(s)>0:!0);y.useEffect(()=>{let k=l.current;if(!(!k||e.disabled))return k.addEventListener(E4,b),()=>k.removeEventListener(E4,b)},[w,e.onSelect,e.disabled]);function b(){var k,O;S(),(O=(k=h.current).onSelect)==null||O.call(k,p.current)}function S(){C.setState("value",p.current,!0)}if(!w)return null;let{disabled:E,value:j,onSelect:T,forceMount:L,keywords:D,...M}=e;return y.createElement(Re.div,{ref:Wr(l,t),...M,id:s,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!v,"data-disabled":!!E,"data-selected":!!v,onPointerMove:E||d.getDisablePointerSelection()?void 0:S,onClick:E?void 0:b},e.children)}),Xk=y.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:s,...l}=e,u=Qt(),d=y.useRef(null),h=y.useRef(null),m=Qt(),p=rl(),C=Di(w=>s||p.filter()===!1?!0:w.search?w.filtered.groups.has(u):!0);ja(()=>p.group(u),[]),yx(u,d,[e.value,e.heading,h]);let v=y.useMemo(()=>({id:u,forceMount:s}),[s]);return y.createElement(Re.div,{ref:Wr(d,t),...l,"cmdk-group":"",role:"presentation",hidden:C?void 0:!0},n&&y.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:m},n),eu(e,w=>y.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?m:void 0},y.createElement(Cx.Provider,{value:v},w))))}),Jk=y.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,s=y.useRef(null),l=Di(u=>!u.search);return!n&&!l?null:y.createElement(Re.div,{ref:Wr(s,t),...i,"cmdk-separator":"",role:"separator"})}),eO=y.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,s=e.value!=null,l=J6(),u=Di(m=>m.search),d=Di(m=>m.selectedItemId),h=rl();return y.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),y.createElement(Re.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":d,id:h.inputId,type:"text",value:s?e.value:u,onChange:m=>{s||l.setState("search",m.target.value),n==null||n(m.target.value)}})}),tO=y.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...s}=e,l=y.useRef(null),u=y.useRef(null),d=Di(m=>m.selectedItemId),h=rl();return y.useEffect(()=>{if(u.current&&l.current){let m=u.current,p=l.current,C,v=new ResizeObserver(()=>{C=requestAnimationFrame(()=>{let w=m.offsetHeight;p.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return v.observe(m),()=>{cancelAnimationFrame(C),v.unobserve(m)}}},[]),y.createElement(Re.div,{ref:Wr(l,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":i,id:h.listId},eu(e,m=>y.createElement("div",{ref:Wr(u,h.listInnerRef),"cmdk-list-sizer":""},m)))}),nO=y.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:s,contentClassName:l,container:u,...d}=e;return y.createElement(q6,{open:n,onOpenChange:i},y.createElement(K6,{container:u},y.createElement(Q6,{"cmdk-overlay":"",className:s}),y.createElement(X6,{"aria-label":e.label,"cmdk-dialog":"",className:l},y.createElement(vx,{ref:t,...d}))))}),rO=y.forwardRef((e,t)=>Di(n=>n.filtered.count===0)?y.createElement(Re.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),iO=y.forwardRef((e,t)=>{let{progress:n,children:i,label:s="Loading...",...l}=e;return y.createElement(Re.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},eu(e,u=>y.createElement("div",{"aria-hidden":!0},u)))}),no=Object.assign(vx,{List:tO,Item:Qk,Input:eO,Group:Xk,Separator:Jk,Dialog:nO,Empty:rO,Loading:iO});function aO(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function sO(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function xx(e){let t=y.useRef(e);return ja(()=>{t.current=e}),t}var ja=typeof window>"u"?y.useEffect:y.useLayoutEffect;function Rs(e){let t=y.useRef();return t.current===void 0&&(t.current=e()),t}function Di(e){let t=J6(),n=()=>e(t.snapshot());return y.useSyncExternalStore(t.subscribe,n,n)}function yx(e,t,n,i=[]){let s=y.useRef(),l=rl();return ja(()=>{var u;let d=(()=>{var m;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(m=p.current.textContent)==null?void 0:m.trim():s.current}})(),h=i.map(m=>m.trim());l.value(e,d,h),(u=t.current)==null||u.setAttribute(Ns,d),s.current=d}),s}var oO=()=>{let[e,t]=y.useState(),n=Rs(()=>new Map);return ja(()=>{n.current.forEach(i=>i()),n.current=new Map},[e]),(i,s)=>{n.current.set(i,s),t({})}};function lO(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function eu({asChild:e,children:t},n){return e&&y.isValidElement(t)?y.cloneElement(lO(t),{ref:t.ref},n(t.props.children)):n(t)}var cO={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uO=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fO=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),km=e=>{const t=fO(e);return t.charAt(0).toUpperCase()+t.slice(1)},bx=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),dO=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var hO={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mO=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:u,...d},h)=>y.createElement("svg",{ref:h,...hO,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:bx("lucide",s),...!l&&!dO(d)&&{"aria-hidden":"true"},...d},[...u.map(([m,p])=>y.createElement(m,p)),...Array.isArray(l)?l:[l]]));/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const il=(e,t)=>{const n=y.forwardRef(({className:i,...s},l)=>y.createElement(mO,{ref:l,iconNode:t,className:bx(`lucide-${uO(km(e))}`,`lucide-${e}`,i),...s}));return n.displayName=km(e),n};/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pO=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gO=il("chevron-down",pO);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CO=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]],wx=il("layout-list",CO);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vO=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xO=il("loader-circle",vO);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yO=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bO=il("search",yO);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sx=il("x",wO);function Ex(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Ex(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function jx(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ex(e))&&(i&&(i+=" "),i+=t);return i}const e8="-",SO=e=>{const t=jO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const d=u.split(e8);return d[0]===""&&d.length!==1&&d.shift(),Ax(d,t)||EO(u)},getConflictingClassGroupIds:(u,d)=>{const h=n[u]||[];return d&&i[u]?[...h,...i[u]]:h}}},Ax=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),s=i?Ax(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const l=e.join(e8);return(u=t.validators.find(({validator:d})=>d(l)))==null?void 0:u.classGroupId},Om=/^\[(.+)\]$/,EO=e=>{if(Om.test(e)){const t=Om.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},jO=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const s in n)j4(n[s],i,s,t);return i},j4=(e,t,n,i)=>{e.forEach(s=>{if(typeof s=="string"){const l=s===""?t:_m(t,s);l.classGroupId=n;return}if(typeof s=="function"){if(AO(s)){j4(s(i),t,n,i);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([l,u])=>{j4(u,_m(t,l),n,i)})})},_m=(e,t)=>{let n=e;return t.split(e8).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},AO=e=>e.isThemeGetter,MO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const s=(l,u)=>{n.set(l,u),t++,t>e&&(t=0,i=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return s(l,u),u},set(l,u){n.has(l)?n.set(l,u):s(l,u)}}},A4="!",M4=":",LO=M4.length,TO=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const l=[];let u=0,d=0,h=0,m;for(let b=0;b<s.length;b++){let S=s[b];if(u===0&&d===0){if(S===M4){l.push(s.slice(h,b)),h=b+LO;continue}if(S==="/"){m=b;continue}}S==="["?u++:S==="]"?u--:S==="("?d++:S===")"&&d--}const p=l.length===0?s:s.substring(h),C=NO(p),v=C!==p,w=m&&m>h?m-h:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:w}};if(t){const s=t+M4,l=i;i=u=>u.startsWith(s)?l(u.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},NO=e=>e.endsWith(A4)?e.substring(0,e.length-1):e.startsWith(A4)?e.substring(1):e,RO=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let l=[];return i.forEach(u=>{u[0]==="["||t[u]?(s.push(...l.sort(),u),l=[]):l.push(u)}),s.push(...l.sort()),s}},DO=e=>({cache:MO(e.cacheSize),parseClassName:TO(e),sortModifiers:RO(e),...SO(e)}),kO=/\s+/,OO=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,u=[],d=e.trim().split(kO);let h="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:C,modifiers:v,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:S}=n(p);if(C){h=p+(h.length>0?" "+h:h);continue}let E=!!S,j=i(E?b.substring(0,S):b);if(!j){if(!E){h=p+(h.length>0?" "+h:h);continue}if(j=i(b),!j){h=p+(h.length>0?" "+h:h);continue}E=!1}const T=l(v).join(":"),L=w?T+A4:T,D=L+j;if(u.includes(D))continue;u.push(D);const M=s(j,E);for(let k=0;k<M.length;++k){const O=M[k];u.push(L+O)}h=p+(h.length>0?" "+h:h)}return h};function _O(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Mx(t))&&(i&&(i+=" "),i+=n);return i}const Mx=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Mx(e[i]))&&(n&&(n+=" "),n+=t);return n};function PO(e,...t){let n,i,s,l=u;function u(h){const m=t.reduce((p,C)=>C(p),e());return n=DO(m),i=n.cache.get,s=n.cache.set,l=d,d(h)}function d(h){const m=i(h);if(m)return m;const p=OO(h,n);return s(h,p),p}return function(){return l(_O.apply(null,arguments))}}const Tt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Lx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,VO=/^\d+\/\d+$/,zO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,UO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ls=e=>VO.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),Ei=e=>!!e&&Number.isInteger(Number(e)),b7=e=>e.endsWith("%")&&_e(e.slice(0,-1)),_r=e=>zO.test(e),IO=()=>!0,ZO=e=>FO.test(e)&&!BO.test(e),Nx=()=>!1,GO=e=>UO.test(e),YO=e=>HO.test(e),$O=e=>!ge(e)&&!Ce(e),WO=e=>ro(e,kx,Nx),ge=e=>Lx.test(e),la=e=>ro(e,Ox,ZO),w7=e=>ro(e,JO,_e),Pm=e=>ro(e,Rx,Nx),qO=e=>ro(e,Dx,YO),F2=e=>ro(e,_x,GO),Ce=e=>Tx.test(e),x1=e=>io(e,Ox),KO=e=>io(e,e_),Vm=e=>io(e,Rx),QO=e=>io(e,kx),XO=e=>io(e,Dx),B2=e=>io(e,_x,!0),ro=(e,t,n)=>{const i=Lx.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},io=(e,t,n=!1)=>{const i=Tx.exec(e);return i?i[1]?t(i[1]):n:!1},Rx=e=>e==="position"||e==="percentage",Dx=e=>e==="image"||e==="url",kx=e=>e==="length"||e==="size"||e==="bg-size",Ox=e=>e==="length",JO=e=>e==="number",e_=e=>e==="family-name",_x=e=>e==="shadow",t_=()=>{const e=Tt("color"),t=Tt("font"),n=Tt("text"),i=Tt("font-weight"),s=Tt("tracking"),l=Tt("leading"),u=Tt("breakpoint"),d=Tt("container"),h=Tt("spacing"),m=Tt("radius"),p=Tt("shadow"),C=Tt("inset-shadow"),v=Tt("text-shadow"),w=Tt("drop-shadow"),b=Tt("blur"),S=Tt("perspective"),E=Tt("aspect"),j=Tt("ease"),T=Tt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...D(),Ce,ge],k=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],z=()=>[Ce,ge,h],I=()=>[Ls,"full","auto",...z()],ne=()=>[Ei,"none","subgrid",Ce,ge],Q=()=>["auto",{span:["full",Ei,Ce,ge]},Ei,Ce,ge],le=()=>[Ei,"auto",Ce,ge],he=()=>["auto","min","max","fr",Ce,ge],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...z()],U=()=>[Ls,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],V=()=>[e,Ce,ge],q=()=>[...D(),Vm,Pm,{position:[Ce,ge]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",QO,WO,{size:[Ce,ge]}],F=()=>[b7,x1,la],G=()=>["","none","full",m,Ce,ge],ee=()=>["",_e,x1,la],se=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[_e,b7,Vm,Pm],ye=()=>["","none",b,Ce,ge],be=()=>["none",_e,Ce,ge],Ve=()=>["none",_e,Ce,ge],lt=()=>[_e,Ce,ge],At=()=>[Ls,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_r],breakpoint:[_r],color:[IO],container:[_r],"drop-shadow":[_r],ease:["in","out","in-out"],font:[$O],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_r],shadow:[_r],spacing:["px",_e],text:[_r],"text-shadow":[_r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ls,ge,Ce,E]}],container:["container"],columns:[{columns:[_e,ge,Ce,d]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ei,"auto",Ce,ge]}],basis:[{basis:[Ls,"full","auto",d,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Ls,"auto","initial","none",ge]}],grow:[{grow:["",_e,Ce,ge]}],shrink:[{shrink:["",_e,Ce,ge]}],order:[{order:[Ei,"first","last","none",Ce,ge]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[d,"screen",...U()]}],"min-w":[{"min-w":[d,"screen","none",...U()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,x1,la]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ce,w7]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",b7,ge]}],"font-family":[{font:[KO,ge,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Ce,ge]}],"line-clamp":[{"line-clamp":[_e,"none",Ce,w7]}],leading:[{leading:[l,...z()]}],"list-image":[{"list-image":["none",Ce,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",Ce,la]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[_e,"auto",Ce,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ei,Ce,ge],radial:["",Ce,ge],conic:[Ei,Ce,ge]},XO,qO]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,Ce,ge]}],"outline-w":[{outline:["",_e,x1,la]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",p,B2,F2]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",C,B2,F2]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[_e,la]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",v,B2,F2]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[_e,Ce,ge]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[Ce,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,ge]}],filter:[{filter:["","none",Ce,ge]}],blur:[{blur:ye()}],brightness:[{brightness:[_e,Ce,ge]}],contrast:[{contrast:[_e,Ce,ge]}],"drop-shadow":[{"drop-shadow":["","none",w,B2,F2]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",_e,Ce,ge]}],"hue-rotate":[{"hue-rotate":[_e,Ce,ge]}],invert:[{invert:["",_e,Ce,ge]}],saturate:[{saturate:[_e,Ce,ge]}],sepia:[{sepia:["",_e,Ce,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,ge]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[_e,Ce,ge]}],"backdrop-contrast":[{"backdrop-contrast":[_e,Ce,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,Ce,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,Ce,ge]}],"backdrop-invert":[{"backdrop-invert":["",_e,Ce,ge]}],"backdrop-opacity":[{"backdrop-opacity":[_e,Ce,ge]}],"backdrop-saturate":[{"backdrop-saturate":[_e,Ce,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,Ce,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",Ce,ge]}],ease:[{ease:["linear","initial",j,Ce,ge]}],delay:[{delay:[_e,Ce,ge]}],animate:[{animate:["none",T,Ce,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ce,ge]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:Ve()}],"scale-x":[{"scale-x":Ve()}],"scale-y":[{"scale-y":Ve()}],"scale-z":[{"scale-z":Ve()}],"scale-3d":["scale-3d"],skew:[{skew:lt()}],"skew-x":[{"skew-x":lt()}],"skew-y":[{"skew-y":lt()}],transform:[{transform:[Ce,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:At()}],"translate-x":[{"translate-x":At()}],"translate-y":[{"translate-y":At()}],"translate-z":[{"translate-z":At()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,ge]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[_e,x1,la,w7]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n_=PO(t_);function Ue(...e){return n_(jx(e))}function r_(e,t,n=1,i=1,s="..."){const l=n*2+3+i*2;if(e<=l)return Array.from({length:e},(w,b)=>b);const u=Math.max(t-n,i),d=Math.min(t+n,e-i-1),h=u>i,m=d<e-i-1,p=Array.from({length:i},(w,b)=>b),C=Array.from({length:i},(w,b)=>e-i+b),v=Array.from({length:d-u+1},(w,b)=>u+b);if(!h&&m)return[...Array.from({length:d+1},(b,S)=>S),s,...C];if(h&&!m){const w=Array.from({length:e-u},(b,S)=>u+S);return[...p,s,...w]}return h&&m?[...p,s,...v,s,...C]:Array.from({length:e},(w,b)=>b)}function Ur(e){return e?e.trim().split(" ").slice(0,3).map(i=>i.charAt(0).toUpperCase()).join(""):""}const i_=(e,t)=>new Promise((n,i)=>{const s=new Image;s.src=e,s.onload=()=>{const l=document.createElement("canvas"),u=l.getContext("2d");l.width=t.width,l.height=t.height,u.drawImage(s,t.x,t.y,t.width,t.height,0,0,t.width,t.height),l.toBlob(d=>{if(!d){i(new Error("Canvas is empty"));return}n(d)},"image/jpeg")},s.onerror=l=>i(l)});function Px({...e}){return c.jsx(q6,{"data-slot":"dialog",...e})}function oK({...e}){return c.jsx(fx,{"data-slot":"dialog-trigger",...e})}function a_({...e}){return c.jsx(K6,{"data-slot":"dialog-portal",...e})}function s_({className:e,...t}){return c.jsx(Q6,{"data-slot":"dialog-overlay",className:Ue("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Vx({className:e,children:t,showCloseButton:n=!0,...i}){return c.jsxs(a_,{"data-slot":"dialog-portal",children:[c.jsx(s_,{}),c.jsxs(X6,{"data-slot":"dialog-content",className:Ue("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...i,children:[t,n&&c.jsxs(hx,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[c.jsx(Sx,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function o_({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-header",className:Ue("flex flex-col gap-2 text-center sm:text-left",e),...t})}function lK({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-footer",className:Ue("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function l_({className:e,...t}){return c.jsx(dx,{"data-slot":"dialog-title",className:Ue("text-lg leading-none font-semibold",e),...t})}function c_({className:e,...t}){return c.jsx(Wk,{"data-slot":"dialog-description",className:Ue("text-muted-foreground text-sm",e),...t})}function u_({className:e,...t}){return c.jsx(no,{"data-slot":"command",className:Ue("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function f_({className:e,...t}){return c.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex items-center gap-2  px-3",children:[c.jsx(bO,{className:"size-6 shrink-0 "}),c.jsx(no.Input,{"data-slot":"command-input",className:Ue("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function d_({className:e,...t}){return c.jsx(no.List,{"data-slot":"command-list",className:Ue("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function h_({...e}){return c.jsx(no.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function m_({className:e,...t}){return c.jsx(no.Group,{"data-slot":"command-group",className:Ue("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function p_({className:e,...t}){return c.jsx(no.Item,{"data-slot":"command-item",className:Ue("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}const zx=y.createContext(void 0),Fx=()=>{const e=y.useContext(zx);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e},g_=({children:e})=>{const[t,n]=y.useState(!1),i=()=>n(!0),s=()=>n(!1),l=()=>n(u=>!u);return c.jsx(zx.Provider,{value:{isSearchOpen:t,openSearch:i,closeSearch:s,toggleSearch:l},children:e})},Bx=[["path",{d:"M4.31802 19.682C3 18.364 3 16.2426 3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 14L9.79289 11.2071C10.1834 10.8166 10.8166 10.8166 11.2071 11.2071L12.7929 12.7929C13.1834 13.1834 13.8166 13.1834 14.2071 12.7929L17 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],zm=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.992 15H12.001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"1"}],["path",{d:"M12 12L12 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Fm=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],sc=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Ux=[["path",{d:"M4 3H3C2.44772 3 2 3.44772 2 4V18L3.5 21L5 18V4C5 3.44772 4.55228 3 4 3Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12.0013V8.00072C21 5.64336 21 4.46468 20.2678 3.73234C19.5355 3 18.357 3 16 3H13C10.643 3 9.46447 3 8.73223 3.73234C8 4.46468 8 5.64336 8 8.00072V16.0019C8 18.3592 8 19.5379 8.73223 20.2703C9.35264 20.8908 10.2934 20.9855 12 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 7H17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 11H17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 19C14 19 15.5 19.5 16.5 21C16.5 21 18 17 22 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M2 7H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],C_=[["path",{d:"M12 6L12 20",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.98056 3.28544C9.32175 3.9216 11.3131 5.25231 12 6.01628C12.6869 5.25231 14.6782 3.9216 18.0194 3.28544C19.7121 2.96315 20.5584 2.80201 21.2792 3.41964C22 4.03727 22 5.04022 22 7.04612V14.255C22 16.0891 22 17.0061 21.5374 17.5787C21.0748 18.1512 20.0564 18.3451 18.0194 18.733C16.2037 19.0787 14.7866 19.6295 13.7608 20.1831C12.7516 20.7277 12.247 21 12 21C11.753 21 11.2484 20.7277 10.2392 20.1831C9.21344 19.6295 7.79633 19.0787 5.98056 18.733C3.94365 18.3451 2.9252 18.1512 2.4626 17.5787C2 17.0061 2 16.0891 2 14.255V7.04612C2 5.04022 2 4.03727 2.72078 3.41964C3.44157 2.80201 4.2879 2.96315 5.98056 3.28544Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Hx=[["path",{d:"M4 17.9808V9.70753C4 6.07416 4 4.25748 5.17157 3.12874C6.34315 2 8.22876 2 12 2C15.7712 2 17.6569 2 18.8284 3.12874C20 4.25748 20 6.07416 20 9.70753V17.9808C20 20.2867 20 21.4396 19.2272 21.8523C17.7305 22.6514 14.9232 19.9852 13.59 19.1824C12.8168 18.7168 12.4302 18.484 12 18.484C11.5698 18.484 11.1832 18.7168 10.41 19.1824C9.0768 19.9852 6.26947 22.6514 4.77285 21.8523C4 21.4396 4 20.2867 4 17.9808Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],t8=[["path",{d:"M22 11.5667C22 16.8499 17.5222 21.1334 12 21.1334C11.3507 21.1343 10.7032 21.0742 10.0654 20.9545C9.60633 20.8682 9.37678 20.8251 9.21653 20.8496C9.05627 20.8741 8.82918 20.9948 8.37499 21.2364C7.09014 21.9197 5.59195 22.161 4.15111 21.893C4.69874 21.2194 5.07275 20.4112 5.23778 19.5448C5.33778 19.0148 5.09 18.5 4.71889 18.1231C3.03333 16.4115 2 14.1051 2 11.5667C2 6.28357 6.47778 2 12 2C17.5222 2 22 6.28357 22 11.5667Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9.84615C10 8.82655 10.8954 8 12 8C13.1046 8 14 8.82655 14 9.84615C14 10.2137 13.8837 10.5561 13.6831 10.8438C13.0854 11.7012 12 12.5189 12 13.5385V14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 16.5H12.009",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],cK=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.9955 14H12.0045M11.9955 18H12.0045M15.991 14H16M8 14H8.00897M8 18H8.00897",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"3"}]],v_=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],uK=[["path",{d:"M9.1585 5.71223L8.75584 4.80625C8.49256 4.21388 8.36092 3.91768 8.16405 3.69101C7.91732 3.40694 7.59571 3.19794 7.23592 3.08785C6.94883 3 6.6247 3 5.97645 3C5.02815 3 4.554 3 4.15597 3.18229C3.68711 3.39702 3.26368 3.86328 3.09497 4.3506C2.95175 4.76429 2.99278 5.18943 3.07482 6.0397C3.94815 15.0902 8.91006 20.0521 17.9605 20.9254C18.8108 21.0075 19.236 21.0485 19.6496 20.9053C20.137 20.7366 20.6032 20.3131 20.818 19.8443C21.0002 19.4462 21.0002 18.9721 21.0002 18.0238C21.0002 17.3755 21.0002 17.0514 20.9124 16.7643C20.8023 16.4045 20.5933 16.0829 20.3092 15.8362C20.0826 15.6393 19.7864 15.5077 19.194 15.2444L18.288 14.8417C17.6465 14.5566 17.3257 14.4141 16.9998 14.3831C16.6878 14.3534 16.3733 14.3972 16.0813 14.5109C15.7762 14.6297 15.5066 14.8544 14.9672 15.3038C14.4304 15.7512 14.162 15.9749 13.834 16.0947C13.5432 16.2009 13.1588 16.2403 12.8526 16.1951C12.5071 16.1442 12.2426 16.0029 11.7135 15.7201C10.0675 14.8405 9.15977 13.9328 8.28011 12.2867C7.99738 11.7577 7.85602 11.4931 7.80511 11.1477C7.75998 10.8414 7.79932 10.457 7.90554 10.1663C8.02536 9.83828 8.24905 9.56986 8.69643 9.033C9.14586 8.49368 9.37058 8.22402 9.48939 7.91891C9.60309 7.62694 9.64686 7.3124 9.61719 7.00048C9.58618 6.67452 9.44362 6.35376 9.1585 5.71223Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],fK=[["path",{d:"M3.77762 11.9424C2.8296 10.2893 2.37185 8.93948 2.09584 7.57121C1.68762 5.54758 2.62181 3.57081 4.16938 2.30947C4.82345 1.77638 5.57323 1.95852 5.96 2.6524L6.83318 4.21891C7.52529 5.46057 7.87134 6.08139 7.8027 6.73959C7.73407 7.39779 7.26737 7.93386 6.33397 9.00601L3.77762 11.9424ZM3.77762 11.9424C5.69651 15.2883 8.70784 18.3013 12.0576 20.2224M12.0576 20.2224C13.7107 21.1704 15.0605 21.6282 16.4288 21.9042C18.4524 22.3124 20.4292 21.3782 21.6905 19.8306C22.2236 19.1766 22.0415 18.4268 21.3476 18.04L19.7811 17.1668C18.5394 16.4747 17.9186 16.1287 17.2604 16.1973C16.6022 16.2659 16.0661 16.7326 14.994 17.666L12.0576 20.2224Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],x_=[["path",{d:"M19.0005 4.99988L5.00049 18.9999M5.00049 4.99988L19.0005 18.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Ix=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.75C8 12.75 9.6 13.6625 10.4 15C10.4 15 12.8 9.75 16 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],dK=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],y_=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],b_=[["path",{d:"M5.04798 8.60657L2.53784 8.45376C4.33712 3.70477 9.503 0.999914 14.5396 2.34474C19.904 3.77711 23.0904 9.26107 21.6565 14.5935C20.2227 19.926 14.7116 23.0876 9.3472 21.6553C5.36419 20.5917 2.58192 17.2946 2 13.4844",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],hK=[["path",{d:"M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Zx=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.2671 18.7011L17 18V16.2668M21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 15.7909 14.7909 14 17 14C19.2091 14 21 15.7909 21 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],n8=[["path",{d:"M20.4999 10.5V10C20.4999 6.22876 20.4999 4.34315 19.3284 3.17157C18.1568 2 16.2712 2 12.4999 2H11.5C7.72883 2 5.84323 2 4.67166 3.17156C3.50009 4.34312 3.50007 6.22872 3.50004 9.99993L3.5 14.5C3.49997 17.7874 3.49996 19.4312 4.40788 20.5375C4.57412 20.7401 4.75986 20.9258 4.96242 21.0921C6.06877 22 7.71249 22 10.9999 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 7H16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7.5 12H13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M20.5 20L20.5 17C20.5 15.5706 19.1569 14 17.5 14C15.8431 14 14.5 15.5706 14.5 17L14.5 20.5C14.5 21.3284 15.1716 22 16 22C16.8284 22 17.5 21.3284 17.5 20.5V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],mK=[["path",{d:"M3.09477 10.0002C3.03217 10.4572 2.99976 10.9247 2.99976 11.4002C2.99976 16.7021 7.02919 21.0002 11.9998 21.0002C16.9703 21.0002 20.9998 16.7021 20.9998 11.4002C20.9998 10.9247 20.9673 10.4572 20.9047 10.0002",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.9998 13.0002L11.9998 3.0002M11.9998 13.0002C11.2995 13.0002 9.99129 11.0059 9.49976 10.5002M11.9998 13.0002C12.7 13.0002 14.0082 11.0059 14.4998 10.5002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],w_=[["path",{d:"M12 15L12 5M12 15C11.2998 15 9.99153 13.0057 9.5 12.5M12 15C12.7002 15 14.0085 13.0057 14.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 19H19.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],S_=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16L12 8M12 16C11.2998 16 9.99153 14.0057 9.5 13.5M12 16C12.7002 16 14.0085 14.0057 14.5 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],E_=[["path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 9.20746 3.14465 6.68227 4.99037 4.86802M12 22C11.037 21.2864 11.1907 20.4555 11.6738 19.6247C12.4166 18.3474 12.4166 18.3474 12.4166 16.6444C12.4166 14.9414 13.4286 14.1429 17 14.8571C18.6047 15.1781 19.7741 12.9609 21.8573 13.693M12 22C16.9458 22 21.053 18.4096 21.8573 13.693M21.8573 13.693C21.9511 13.1427 22 12.5771 22 12C22 7.11857 18.5024 3.05405 13.8766 2.17579M13.8766 2.17579C14.3872 3.11599 14.1816 4.23551 13.1027 4.66298C11.3429 5.3603 12.6029 6.64343 11.1035 7.4356C10.1038 7.96372 8.6044 7.83152 7.10496 6.24716C6.31517 5.41264 5.83966 4.95765 4.99037 4.86802M13.8766 2.17579C13.2687 2.06039 12.6414 2 12 2C9.26969 2 6.79495 3.09421 4.99037 4.86802",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],j_=[["path",{d:"M16.9459 3.17305C17.5332 2.58578 17.8268 2.29215 18.1521 2.15173C18.6208 1.94942 19.1521 1.94942 19.6208 2.15173C19.946 2.29215 20.2397 2.58578 20.8269 3.17305C21.4142 3.76032 21.7079 4.05395 21.8483 4.37925C22.0506 4.8479 22.0506 5.37924 21.8483 5.84789C21.7079 6.17319 21.4142 6.46682 20.8269 7.05409L15.8054 12.0757C14.5682 13.3129 13.9496 13.9315 13.1748 14.298C12.4 14.6645 11.5294 14.7504 9.78823 14.9222L9 15L9.07778 14.2118C9.24958 12.4706 9.33549 11.6 9.70201 10.8252C10.0685 10.0504 10.6871 9.43183 11.9243 8.19464L16.9459 3.17305Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 15H3.75C2.7835 15 2 15.7835 2 16.75C2 17.7165 2.7835 18.5 3.75 18.5H13.25C14.2165 18.5 15 19.2835 15 20.25C15 21.2165 14.2165 22 13.25 22H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],A_=[["path",{d:"M6.18182 10.3333C5.20406 10.3333 5 10.5252 5 11.4444V13.1111C5 14.0304 5.20406 14.2222 6.18182 14.2222H8.54545V20.8889C8.54545 21.8081 8.74951 22 9.72727 22H12.0909C13.0687 22 13.2727 21.8081 13.2727 20.8889V14.2222H15.9267C16.6683 14.2222 16.8594 14.0867 17.0631 13.4164L17.5696 11.7497C17.9185 10.6014 17.7035 10.3333 16.4332 10.3333H13.2727V7.55556C13.2727 6.94191 13.8018 6.44444 14.4545 6.44444H17.8182C18.7959 6.44444 19 6.25259 19 5.33333V3.11111C19 2.19185 18.7959 2 17.8182 2H14.4545C11.191 2 8.54545 4.48731 8.54545 7.55556V10.3333H6.18182Z",stroke:"currentColor",fillRule:"evenodd",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],M_=[["path",{d:"M12 22C16.1421 22 19.5 18.6421 19.5 14.5C19.5 13.5 19.5 11.5 17.5 9C17.5 9 17.4004 11.8536 15.4262 11.4408C12.2331 10.7732 16.3551 4.50296 10.5 2C10.5 7 4.5 8.5 4.5 14.5C4.5 18.6421 7.85786 22 12 22Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 19.0011C13.933 19.0011 15.5 16.9864 15.5 14.5011C12.3 15.7011 11.1667 12.9379 11 11C9.55426 11.5532 8.5 13.8256 8.5 15C8.5 17.4853 10.067 19.0011 12 19.0011Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],L_=[["path",{d:"M15 2.5V4C15 5.41421 15 6.12132 15.4393 6.56066C15.8787 7 16.5858 7 18 7H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 16V8C4 5.17157 4 3.75736 4.87868 2.87868C5.75736 2 7.17157 2 10 2H14.1716C14.5803 2 14.7847 2 14.9685 2.07612C15.1522 2.15224 15.2968 2.29676 15.5858 2.58579L19.4142 6.41421C19.7032 6.70324 19.8478 6.84776 19.9239 7.03153C20 7.2153 20 7.41968 20 7.82843V16C20 18.8284 20 20.2426 19.1213 21.1213C18.2426 22 16.8284 22 14 22H10C7.17157 22 5.75736 22 4.87868 21.1213C4 20.2426 4 18.8284 4 16Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 11H16M8 14H16M8 17H12.1708",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],pK=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9C14 9.39815 13.8837 9.76913 13.6831 10.0808C13.0854 11.0097 12 11.8954 12 13V13.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.992 17H12.001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"2"}]],T_=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 12C16.5 14.4853 14.4853 16.5 12 16.5C9.51472 16.5 7.5 14.4853 7.5 12C7.5 9.51472 9.51472 7.5 12 7.5C14.4853 7.5 16.5 9.51472 16.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5078 6.5L17.4988 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"2"}]],gK=[["path",{d:"M8 5L20 5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 5H4.00898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"1"}],["path",{d:"M4 12H4.00898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"2"}],["path",{d:"M4 19H4.00898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"3"}],["path",{d:"M8 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M8 19L20 19",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}]],Bm=[["path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12105 13.2453 4 14.3624 4 15.5C4 16.6376 4.12105 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5V9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 15.49V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"2"}],["path",{d:"M12 15.49V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"3"}],["path",{d:"M8 15.49V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"4"}]],N_=[["path",{d:"M11 3L10.3374 3.23384C7.75867 4.144 6.46928 4.59908 5.73464 5.63742C5 6.67576 5 8.0431 5 10.7778V13.2222C5 15.9569 5 17.3242 5.73464 18.3626C6.46928 19.4009 7.75867 19.856 10.3374 20.7662L11 21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12L11 12M21 12C21 11.2998 19.0057 9.99153 18.5 9.5M21 12C21 12.7002 19.0057 14.0085 18.5 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],CK=[["path",{d:"M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],vK=[["path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01576 13.4756C2.08114 16.5411 2.11382 18.0739 3.24495 19.2093C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.755 19.2093C21.8862 18.0739 21.9189 16.5411 21.9842 13.4756C22.0053 12.4899 22.0053 11.51 21.9842 10.5244C21.9189 7.45883 21.8862 5.92606 20.755 4.79063C19.6239 3.6552 18.0497 3.61565 14.9012 3.53654C12.9607 3.48778 11.0393 3.48778 9.09882 3.53653C5.95033 3.61563 4.37608 3.65518 3.24495 4.79062C2.11382 5.92605 2.08113 7.45882 2.01576 10.5243C1.99474 11.51 1.99474 12.4899 2.01576 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],R_=[["path",{d:"M17 17.5V6.5C17 6.03406 17 5.80109 17.0761 5.61732C17.1776 5.37229 17.3723 5.17761 17.6173 5.07612C17.8011 5 18.0341 5 18.5 5C18.9659 5 19.1989 5 19.3827 5.07612C19.6277 5.17761 19.8224 5.37229 19.9239 5.61732C20 5.80109 20 6.03406 20 6.5V17.5C20 17.9659 20 18.1989 19.9239 18.3827C19.8224 18.6277 19.6277 18.8224 19.3827 18.9239C19.1989 19 18.9659 19 18.5 19C18.0341 19 17.8011 19 17.6173 18.9239C17.3723 18.8224 17.1776 18.6277 17.0761 18.3827C17 18.1989 17 17.9659 17 17.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 19C12.4659 19 12.6989 19 12.8827 18.9239C13.1277 18.8224 13.3224 18.6277 13.4239 18.3827C13.5 18.1989 13.5 17.9659 13.5 17.5V9.5C13.5 9.03406 13.5 8.80109 13.4239 8.61732C13.3224 8.37229 13.1277 8.17761 12.8827 8.07612C12.6989 8 12.4659 8 12 8M12 19C11.5341 19 11.3011 19 11.1173 18.9239C10.8723 18.8224 10.6776 18.6277 10.5761 18.3827C10.5 18.1989 10.5 17.9659 10.5 17.5V9.5C10.5 9.03406 10.5 8.80109 10.5761 8.61732C10.6776 8.37229 10.8723 8.17761 11.1173 8.07612C11.3011 8 11.5341 8 12 8M12 19V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.5 19C5.96594 19 6.19891 19 6.38268 18.9239C6.62771 18.8224 6.82239 18.6277 6.92388 18.3827C7 18.1989 7 17.9659 7 17.5V13.5C7 13.0341 7 12.8011 6.92388 12.6173C6.82239 12.3723 6.62771 12.1776 6.38268 12.0761C6.19891 12 5.96594 12 5.5 12M5.5 19C5.03406 19 4.80109 19 4.61732 18.9239C4.37229 18.8224 4.17761 18.6277 4.07612 18.3827C4 18.1989 4 17.9659 4 17.5V13.5C4 13.0341 4 12.8011 4.07612 12.6173C4.17761 12.3723 4.37229 12.1776 4.61732 12.0761C4.80109 12 5.03406 12 5.5 12M5.5 19V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Gx=[["path",{d:"M4 5L20 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 19L20 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],xK=[["path",{d:"M20.9427 16.8354C20.2864 12.8866 18.2432 9.94613 16.467 8.219C15.9501 7.71642 15.6917 7.46513 15.1208 7.23257C14.5499 7 14.0592 7 13.0778 7H10.9222C9.94081 7 9.4501 7 8.87922 7.23257C8.30834 7.46513 8.04991 7.71642 7.53304 8.219C5.75682 9.94613 3.71361 12.8866 3.05727 16.8354C2.56893 19.7734 5.27927 22 8.30832 22H15.6917C18.7207 22 21.4311 19.7734 20.9427 16.8354Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.25662 4.44287C7.05031 4.14258 6.75128 3.73499 7.36899 3.64205C8.00392 3.54651 8.66321 3.98114 9.30855 3.97221C9.89237 3.96413 10.1898 3.70519 10.5089 3.33548C10.8449 2.94617 11.3652 2 12 2C12.6348 2 13.1551 2.94617 13.4911 3.33548C13.8102 3.70519 14.1076 3.96413 14.6914 3.97221C15.3368 3.98114 15.9961 3.54651 16.631 3.64205C17.2487 3.73499 16.9497 4.14258 16.7434 4.44287L15.8105 5.80064C15.4115 6.38146 15.212 6.67187 14.7944 6.83594C14.3769 7 13.8373 7 12.7582 7H11.2418C10.1627 7 9.6231 7 9.20556 6.83594C8.78802 6.67187 8.5885 6.38146 8.18945 5.80064L7.25662 4.44287Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],D_=[["path",{d:"M16.4249 4.60509L17.4149 3.6151C18.2351 2.79497 19.5648 2.79497 20.3849 3.6151C21.205 4.43524 21.205 5.76493 20.3849 6.58507L19.3949 7.57506M16.4249 4.60509L9.76558 11.2644C9.25807 11.772 8.89804 12.4078 8.72397 13.1041L8 16L10.8959 15.276C11.5922 15.102 12.228 14.7419 12.7356 14.2344L19.3949 7.57506M16.4249 4.60509L19.3949 7.57506",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18.9999 13.5C18.9999 16.7875 18.9999 18.4312 18.092 19.5376C17.9258 19.7401 17.7401 19.9258 17.5375 20.092C16.4312 21 14.7874 21 11.4999 21H11C7.22876 21 5.34316 21 4.17159 19.8284C3.00003 18.6569 3 16.7712 3 13V12.5C3 9.21252 3 7.56879 3.90794 6.46244C4.07417 6.2599 4.2599 6.07417 4.46244 5.90794C5.56879 5 7.21252 5 10.5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],k_=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Yx=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],yK=[["path",{d:"M7 22V12.2757C7 11.1939 7 10.653 7.24458 10.1993C7.48915 9.74558 7.93843 9.45308 8.83697 8.86808L10.9185 7.51291C11.4437 7.17097 11.7063 7 12 7C12.2937 7 12.5563 7.17097 13.0815 7.51291L15.163 8.86808C16.0616 9.45308 16.5108 9.74558 16.7554 10.1993C17 10.653 17 11.1939 17 12.2757V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13H12.009",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"1"}],["path",{d:"M20 22V17.1623C20 14.8707 19.0556 14.6852 17 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4 22V17.1623C4 14.8707 4.94437 14.6852 7 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M2 22H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 7V4.98221M12 4.98221V2.97035C12 2.49615 12 2.25905 12.1464 2.11173C12.6061 1.64939 14.5 2.74303 15.2203 3.18653C15.8285 3.56105 16 4.30914 16 4.98221H12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M10 22L10 19C10 18.0572 10 17.5858 10.2929 17.2929C10.5858 17 11.0572 17 12 17C12.9428 17 13.4142 17 13.7071 17.2929C14 17.5858 14 18.0572 14 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]],bK=[["path",{d:"M3 15L14 14.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.5 3V15M18.5 3C17.7998 3 16.4915 4.9943 16 5.5M18.5 3C19.2002 3 20.5085 4.9943 21 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],O_=[["path",{d:"M18 5.5L19 4.5M5 4.5L6 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"13",r:"9",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 9.5V13.5L14 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 3.5V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10 2H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],__=[["path",{d:"M2.5 6L8 4L13.5 6L11 7.5V9C11 9 10.3333 8.5 8 8.5C5.66667 8.5 5 9 5 9V7.5L2.5 6ZM2.5 6V10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 8.5V9.38889C11 11.1071 9.65685 12.5 8 12.5C6.34315 12.5 5 11.1071 5 9.38889V8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.3182 11.0294C15.3182 11.0294 15.803 10.6765 17.5 10.6765C19.197 10.6765 19.6818 11.0294 19.6818 11.0294M15.3182 11.0294V10L13.5 9L17.5 7.5L21.5 9L19.6818 10V11.0294M15.3182 11.0294V11.3182C15.3182 12.5232 16.295 13.5 17.5 13.5C18.705 13.5 19.6818 12.5232 19.6818 11.3182V11.0294",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4.38505 15.926C3.44187 16.4525 0.96891 17.5276 2.47511 18.8729C3.21087 19.53 4.03033 20 5.06058 20H10.9394C11.9697 20 12.7891 19.53 13.5249 18.8729C15.0311 17.5276 12.5581 16.4525 11.6149 15.926C9.40321 14.6913 6.59679 14.6913 4.38505 15.926Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16 20H19.7048C20.4775 20 21.0921 19.624 21.6439 19.0983C22.7736 18.0221 20.9189 17.162 20.2115 16.7408C18.9362 15.9814 17.3972 15.8059 16 16.2141",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],P_=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],V_=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5L12.9999 12.9996M16 8L11 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],wK=[["path",{d:"M18.5 20V17.9704C18.5 16.7281 17.9407 15.5099 16.8103 14.9946C15.4315 14.3661 13.7779 14 12 14C10.2221 14 8.5685 14.3661 7.18968 14.9946C6.05927 15.5099 5.5 16.7281 5.5 17.9704V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"7.5",r:"3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],z_=[["path",{d:"M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 14H10C7.23858 14 5 16.2386 5 19C5 20.1046 5.89543 21 7 21H17C18.1046 21 19 20.1046 19 19C19 16.2386 16.7614 14 14 14Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],SK=[["path",{d:"M17 17C15.6193 17 14.5 15.8807 14.5 14.5C14.5 13.1193 15.6193 12 17 12C18.3807 12 19.5 13.1193 19.5 14.5C19.5 15.8807 18.3807 17 17 17ZM17 17C19.4853 17 21.5 19.0147 21.5 21.5M17 17C14.5147 17 12.5 19.0147 12.5 21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 7.5C5.61929 7.5 4.5 6.38071 4.5 5C4.5 3.61929 5.61929 2.5 7 2.5C8.38071 2.5 9.5 3.61929 9.5 5C9.5 6.38071 8.38071 7.5 7 7.5ZM7 7.5C9.48528 7.5 11.5 9.51472 11.5 12M7 7.5C4.51472 7.5 2.5 9.51472 2.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.5 15.5C3.5 18.2643 5.73571 20.5 8.5 20.5L8 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.5 8.5C18.5 5.73571 16.2643 3.5 13.5 3.5L14 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],F_=[["path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.3789 2.27907 14.6926 2.78382 15.8877C3.06278 16.5481 3.20226 16.8784 3.21953 17.128C3.2368 17.3776 3.16334 17.6521 3.01642 18.2012L2 22L5.79877 20.9836C6.34788 20.8367 6.62244 20.7632 6.87202 20.7805C7.12161 20.7977 7.45185 20.9372 8.11235 21.2162C9.30745 21.7209 10.6211 22 12 22Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.58815 12.3773L9.45909 11.2956C9.82616 10.8397 10.2799 10.4153 10.3155 9.80826C10.3244 9.65494 10.2166 8.96657 10.0008 7.58986C9.91601 7.04881 9.41086 7 8.97332 7C8.40314 7 8.11805 7 7.83495 7.12931C7.47714 7.29275 7.10979 7.75231 7.02917 8.13733C6.96539 8.44196 7.01279 8.65187 7.10759 9.07169C7.51023 10.8548 8.45481 12.6158 9.91948 14.0805C11.3842 15.5452 13.1452 16.4898 14.9283 16.8924C15.3481 16.9872 15.558 17.0346 15.8627 16.9708C16.2477 16.8902 16.7072 16.5229 16.8707 16.165C17 15.8819 17 15.5969 17 15.0267C17 14.5891 16.9512 14.084 16.4101 13.9992C15.0334 13.7834 14.3451 13.6756 14.1917 13.6845C13.5847 13.7201 13.1603 14.1738 12.7044 14.5409L11.6227 15.4118",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],B_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Ee=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:i=!1,className:s="",altIcon:l,showAlt:u=!1,icon:d,...h},m)=>{const p=n!==void 0?i?Number(n)*24/Number(t):n:void 0,C=p!==void 0?{strokeWidth:p,stroke:"currentColor"}:{},v={ref:m,...B_,width:t,height:t,color:e,className:s,...C,...h},b=(u&&l?l:d).map(([S,E])=>y.createElement(S,{...E,...C,key:E.key}));return y.createElement("svg",v,b)});Ee.displayName="HugeiconsIcon";const Um=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hm=jx,$x=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return Hm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:l}=t,u=Object.keys(s).map(m=>{const p=n==null?void 0:n[m],C=l==null?void 0:l[m];if(p===null)return null;const v=Um(p)||Um(C);return s[m][v]}),d=n&&Object.entries(n).reduce((m,p)=>{let[C,v]=p;return v===void 0||(m[C]=v),m},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((m,p)=>{let{class:C,className:v,...w}=p;return Object.entries(w).every(b=>{let[S,E]=b;return Array.isArray(E)?E.includes({...l,...d}[S]):{...l,...d}[S]===E})?[...m,C,v]:m},[]);return Hm(e,u,h,n==null?void 0:n.class,n==null?void 0:n.className)},U_=$x("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Wx({className:e,variant:t,asChild:n=!1,...i}){const s=n?Ov:"span";return c.jsx(s,{"data-slot":"badge",className:Ue(U_({variant:t}),e),...i})}var qx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Im=ue.createContext&&ue.createContext(qx),H_=["attr","size","title"];function I_(e,t){if(e==null)return{};var n=Z_(e,t),i,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)i=l[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Z_(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ac.apply(this,arguments)}function Zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zm(Object(n),!0).forEach(function(i){G_(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function G_(e,t,n){return t=Y_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y_(e){var t=$_(e,"string");return typeof t=="symbol"?t:t+""}function $_(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kx(e){return e&&e.map((t,n)=>ue.createElement(t.tag,Mc({key:n},t.attr),Kx(t.child)))}function Ze(e){return t=>ue.createElement(W_,Ac({attr:Mc({},e.attr)},t),Kx(e.child))}function W_(e){var t=n=>{var{attr:i,size:s,title:l}=e,u=I_(e,H_),d=s||n.size||"1em",h;return n.className&&(h=n.className),e.className&&(h=(h?h+" ":"")+e.className),ue.createElement("svg",Ac({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:h,style:Mc(Mc({color:e.color||n.color},n.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&ue.createElement("title",null,l),e.children)};return Im!==void 0?ue.createElement(Im.Consumer,null,n=>t(n)):t(qx)}function L4(e){return Ze({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"},child:[]}]})(e)}function q_(){return c.jsxs("div",{className:" overflow-hidden ",children:[c.jsxs("div",{className:"h-48 relative rounded-2xl overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 before:absolute before:w-full before:h-full before:inset-0 before:bg-gradient-to-t before:from-black/80 before:to-transparent before:content-['']"}),c.jsxs(Wx,{className:"absolute text-md top-4 right-4 bg-white/20 backdrop-blur-sm rounded-full",children:[c.jsx(Ee,{icon:M_,className:"!size-5"}),c.jsx("span",{className:"font-light",children:"New"})]}),c.jsx("img",{className:"w-full h-full object-cover ",src:"https://i.pinimg.com/736x/b6/2e/ac/b62eacc57b895f62002145639ad398d6.jpg",alt:"course image"}),c.jsx("span",{className:"absolute bottom-2 left-0 px-4 text-[#7A9FA9]",children:c.jsx(Ee,{icon:Hx})})]}),c.jsxs("div",{className:"pt-4 ",children:[c.jsx("h4",{className:"font-semibold font-IBM-arabic text-xl mb-3 text-white",children:"اساسيات الكيمااء"}),c.jsxs("p",{className:"text-neutral-400 flex items-center space-x-0.5",children:[c.jsx("span",{className:"font-medium",children:"10 Lessons"}),c.jsx(L4,{size:30,className:"text-neutral-400"}),c.jsx("span",{className:" font-medium",children:"3h "})]}),c.jsxs("p",{className:"text-neutral-800 flex items-center space-x-5",children:[c.jsx("span",{className:"font-bold text-[#7A9FA9]",children:"EGP 299.99"}),c.jsx("span",{className:"font-light text-neutral-500 line-through",children:"EGP 399.99"})]})]})]})}function K_(){return c.jsxs("div",{className:"flex items-center w-full gap-4",children:[c.jsx("img",{className:"w-26 h-26 object-cover rounded-xl",src:"https://i.pinimg.com/1200x/26/61/43/26614316b32ba67856224f69f033e97d.jpg",alt:"course thumbnail"}),c.jsxs("div",{className:"flex items-start grow gap-2",children:[c.jsxs("span",{className:"grow ",children:[c.jsx("h4",{className:"text-xl font-IBM-arabic",children:"المراجعة النهائية"}),c.jsxs("ul",{className:"flex items-center gap-1 text-gray-500",children:[c.jsx("li",{children:"4 Chapters"}),c.jsx("li",{children:c.jsx(L4,{className:"size-8 text-gray-300"})}),c.jsx("li",{children:"15 Lessons"}),c.jsx("li",{children:c.jsx(L4,{className:"size-8 text-gray-300"})}),c.jsx("li",{children:"3h 12m"})]}),c.jsxs("p",{className:"text-neutral-800 flex items-center space-x-5",children:[c.jsx("span",{className:"font-bold text-[#7A9FA9]",children:"EGP 299.99"}),c.jsx("span",{className:"font-light text-neutral-500 line-through",children:"EGP 399.99"})]})]}),c.jsx(Ee,{icon:Hx,className:"size-6"})]})]})}function Q_(){const[e,t]=y.useState(""),{closeSearch:n}=Fx();return ue.useEffect(()=>{const i=s=>{s.key==="Escape"&&n()};return document.body.classList.add("no-scroll"),document.addEventListener("keydown",i),()=>{document.body.classList.remove("no-scroll"),document.removeEventListener("keydown",i)}},[n]),c.jsxs(ln.div,{className:"fixed flex items-center top-0 left-0 w-full h-full bg-black/70 backdrop-blur-md z-[100] px-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[c.jsx(ln.div,{initial:{opacity:0,rotate:-90,scale:.8},animate:{opacity:1,rotate:0,scale:1},exit:{opacity:0,rotate:90,scale:.8},transition:{delay:.1,duration:.2},whileHover:{scale:1.1},whileTap:{scale:.9},className:"absolute top-10 right-20 z-10",children:c.jsx(Ee,{icon:x_,className:"size-9 text-white cursor-pointer",onClick:n})}),c.jsxs(ln.div,{className:"container sm:max-w-5xl mx-auto h-full space-y-20 pt-24",initial:{opacity:0,y:-50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-30,scale:.95},transition:{duration:.3,ease:[.23,1,.32,1]},children:[c.jsx(ln.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{delay:.1,duration:.3},children:c.jsxs(u_,{className:"rounded-full relative overflow-visible h-fit",children:[c.jsx(f_,{placeholder:"Search by course or instructor ...",className:"h-auto py-4 !rounded-2xl text-lg",value:e,onValueChange:t,autoFocus:!0}),c.jsx(B1,{children:e&&c.jsx(ln.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-5,scale:.95},transition:{duration:.2},children:c.jsxs(d_,{className:"absolute bg-white w-full top-[132%] left-0 rounded-2xl p-4 max-h-96 overflow-auto",children:[c.jsx(h_,{children:"No results found."}),c.jsx(m_,{children:c.jsx(p_,{children:c.jsx(K_,{})})})]})})})]})}),c.jsx(B1,{children:!e&&c.jsxs(ln.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{delay:.2,duration:.3},className:"space-y-20",children:[c.jsxs(ln.ul,{className:"text-white space-y-5",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3,duration:.3},children:[c.jsx(ln.h5,{className:"text-xl",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.35,duration:.3},children:"Latest Search"}),[1,2,3].map((i,s)=>c.jsxs(ln.li,{className:"flex items-center gap-2 text-lg cursor-pointer",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+s*.1,duration:.3},whileHover:{x:5,transition:{duration:.2}},whileTap:{scale:.98},children:[c.jsx(Ee,{icon:b_,size:20}),c.jsx("span",{className:"text-white/50",children:"المراجعة النهائية"})]},i))]}),c.jsxs(ln.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.3},children:[c.jsx(ln.h5,{className:"text-xl text-white",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.55,duration:.3},children:"Most Search Courses"}),c.jsx(ln.div,{className:"grid grid-cols-4 mt-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.3},children:c.jsx(q_,{})})]})]})})]})]})}const X_="modulepreload",J_=function(e){return"/"+e},Gm={},hn=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let u=function(m){return Promise.all(m.map(p=>Promise.resolve(p).then(C=>({status:"fulfilled",value:C}),C=>({status:"rejected",reason:C}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));s=u(n.map(m=>{if(m=J_(m),m in Gm)return;Gm[m]=!0;const p=m.endsWith(".css"),C=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${C}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":X_,p||(v.as="script"),v.crossOrigin="",v.href=m,h&&v.setAttribute("nonce",h),document.head.appendChild(v),p)return new Promise((w,b)=>{v.addEventListener("load",w),v.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return s.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};function Ut({title:e,description:t,children:n}){return y.useEffect(()=>{if(document.title=e,t){let i=document.querySelector('meta[name="description"]');i||(i=document.createElement("meta"),i.setAttribute("name","description"),document.head.appendChild(i)),i.setAttribute("content",t)}},[e,t]),c.jsx(c.Fragment,{children:n})}function Qx(e,t){return function(){return e.apply(t,arguments)}}const{toString:eP}=Object.prototype,{getPrototypeOf:r8}=Object,{iterator:tu,toStringTag:Xx}=Symbol,nu=(e=>t=>{const n=eP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tr=e=>(e=e.toLowerCase(),t=>nu(t)===e),ru=e=>t=>typeof t===e,{isArray:ao}=Array,I1=ru("undefined");function al(e){return e!==null&&!I1(e)&&e.constructor!==null&&!I1(e.constructor)&&fn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jx=tr("ArrayBuffer");function tP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jx(e.buffer),t}const nP=ru("string"),fn=ru("function"),ey=ru("number"),sl=e=>e!==null&&typeof e=="object",rP=e=>e===!0||e===!1,oc=e=>{if(nu(e)!=="object")return!1;const t=r8(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Xx in e)&&!(tu in e)},iP=e=>{if(!sl(e)||al(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},aP=tr("Date"),sP=tr("File"),oP=tr("Blob"),lP=tr("FileList"),cP=e=>sl(e)&&fn(e.pipe),uP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||fn(e.append)&&((t=nu(e))==="formdata"||t==="object"&&fn(e.toString)&&e.toString()==="[object FormData]"))},fP=tr("URLSearchParams"),[dP,hP,mP,pP]=["ReadableStream","Request","Response","Headers"].map(tr),gP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ol(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),ao(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{if(al(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let d;for(i=0;i<u;i++)d=l[i],t.call(null,e[d],d,e)}}function ty(e,t){if(al(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,s;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ny=e=>!I1(e)&&e!==pa;function T4(){const{caseless:e}=ny(this)&&this||{},t={},n=(i,s)=>{const l=e&&ty(t,s)||s;oc(t[l])&&oc(i)?t[l]=T4(t[l],i):oc(i)?t[l]=T4({},i):ao(i)?t[l]=i.slice():t[l]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ol(arguments[i],n);return t}const CP=(e,t,n,{allOwnKeys:i}={})=>(ol(t,(s,l)=>{n&&fn(s)?e[l]=Qx(s,n):e[l]=s},{allOwnKeys:i}),e),vP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xP=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yP=(e,t,n,i)=>{let s,l,u;const d={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),l=s.length;l-- >0;)u=s[l],(!i||i(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=n!==!1&&r8(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},wP=e=>{if(!e)return null;if(ao(e))return e;let t=e.length;if(!ey(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},SP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&r8(Uint8Array)),EP=(e,t)=>{const i=(e&&e[tu]).call(e);let s;for(;(s=i.next())&&!s.done;){const l=s.value;t.call(e,l[0],l[1])}},jP=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},AP=tr("HTMLFormElement"),MP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),Ym=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),LP=tr("RegExp"),ry=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};ol(n,(s,l)=>{let u;(u=t(s,l,e))!==!1&&(i[l]=u||s)}),Object.defineProperties(e,i)},TP=e=>{ry(e,(t,n)=>{if(fn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(fn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},NP=(e,t)=>{const n={},i=s=>{s.forEach(l=>{n[l]=!0})};return ao(e)?i(e):i(String(e).split(t)),n},RP=()=>{},DP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kP(e){return!!(e&&fn(e.append)&&e[Xx]==="FormData"&&e[tu])}const OP=e=>{const t=new Array(10),n=(i,s)=>{if(sl(i)){if(t.indexOf(i)>=0)return;if(al(i))return i;if(!("toJSON"in i)){t[s]=i;const l=ao(i)?[]:{};return ol(i,(u,d)=>{const h=n(u,s+1);!I1(h)&&(l[d]=h)}),t[s]=void 0,l}}return i};return n(e,0)},_P=tr("AsyncFunction"),PP=e=>e&&(sl(e)||fn(e))&&fn(e.then)&&fn(e.catch),iy=((e,t)=>e?setImmediate:t?((n,i)=>(pa.addEventListener("message",({source:s,data:l})=>{s===pa&&l===n&&i.length&&i.shift()()},!1),s=>{i.push(s),pa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fn(pa.postMessage)),VP=typeof queueMicrotask<"u"?queueMicrotask.bind(pa):typeof process<"u"&&process.nextTick||iy,zP=e=>e!=null&&fn(e[tu]),te={isArray:ao,isArrayBuffer:Jx,isBuffer:al,isFormData:uP,isArrayBufferView:tP,isString:nP,isNumber:ey,isBoolean:rP,isObject:sl,isPlainObject:oc,isEmptyObject:iP,isReadableStream:dP,isRequest:hP,isResponse:mP,isHeaders:pP,isUndefined:I1,isDate:aP,isFile:sP,isBlob:oP,isRegExp:LP,isFunction:fn,isStream:cP,isURLSearchParams:fP,isTypedArray:SP,isFileList:lP,forEach:ol,merge:T4,extend:CP,trim:gP,stripBOM:vP,inherits:xP,toFlatObject:yP,kindOf:nu,kindOfTest:tr,endsWith:bP,toArray:wP,forEachEntry:EP,matchAll:jP,isHTMLForm:AP,hasOwnProperty:Ym,hasOwnProp:Ym,reduceDescriptors:ry,freezeMethods:TP,toObjectSet:NP,toCamelCase:MP,noop:RP,toFiniteNumber:DP,findKey:ty,global:pa,isContextDefined:ny,isSpecCompliantForm:kP,toJSONObject:OP,isAsyncFn:_P,isThenable:PP,setImmediate:iy,asap:VP,isIterable:zP};function De(e,t,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}te.inherits(De,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:te.toJSONObject(this.config),code:this.code,status:this.status}}});const ay=De.prototype,sy={};["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=>{sy[e]={value:e}});Object.defineProperties(De,sy);Object.defineProperty(ay,"isAxiosError",{value:!0});De.from=(e,t,n,i,s,l)=>{const u=Object.create(ay);return te.toFlatObject(e,u,function(h){return h!==Error.prototype},d=>d!=="isAxiosError"),De.call(u,e.message,t,n,i,s),u.cause=e,u.name=e.name,l&&Object.assign(u,l),u};const FP=null;function N4(e){return te.isPlainObject(e)||te.isArray(e)}function oy(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function $m(e,t,n){return e?e.concat(t).map(function(s,l){return s=oy(s),!n&&l?"["+s+"]":s}).join(n?".":""):t}function BP(e){return te.isArray(e)&&!e.some(N4)}const UP=te.toFlatObject(te,{},null,function(t){return/^is[A-Z]/.test(t)});function iu(e,t,n){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!te.isUndefined(E[S])});const i=n.metaTokens,s=n.visitor||p,l=n.dots,u=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&te.isSpecCompliantForm(t);if(!te.isFunction(s))throw new TypeError("visitor must be a function");function m(b){if(b===null)return"";if(te.isDate(b))return b.toISOString();if(te.isBoolean(b))return b.toString();if(!h&&te.isBlob(b))throw new De("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(b)||te.isTypedArray(b)?h&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,E){let j=b;if(b&&!E&&typeof b=="object"){if(te.endsWith(S,"{}"))S=i?S:S.slice(0,-2),b=JSON.stringify(b);else if(te.isArray(b)&&BP(b)||(te.isFileList(b)||te.endsWith(S,"[]"))&&(j=te.toArray(b)))return S=oy(S),j.forEach(function(L,D){!(te.isUndefined(L)||L===null)&&t.append(u===!0?$m([S],D,l):u===null?S:S+"[]",m(L))}),!1}return N4(b)?!0:(t.append($m(E,S,l),m(b)),!1)}const C=[],v=Object.assign(UP,{defaultVisitor:p,convertValue:m,isVisitable:N4});function w(b,S){if(!te.isUndefined(b)){if(C.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));C.push(b),te.forEach(b,function(j,T){(!(te.isUndefined(j)||j===null)&&s.call(t,j,te.isString(T)?T.trim():T,S,v))===!0&&w(j,S?S.concat(T):[T])}),C.pop()}}if(!te.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Wm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function i8(e,t){this._pairs=[],e&&iu(e,this,t)}const ly=i8.prototype;ly.append=function(t,n){this._pairs.push([t,n])};ly.toString=function(t){const n=t?function(i){return t.call(this,i,Wm)}:Wm;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function HP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cy(e,t,n){if(!t)return e;const i=n&&n.encode||HP;te.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let l;if(s?l=s(t,n):l=te.isURLSearchParams(t)?t.toString():new i8(t,n).toString(i),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class qm{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){te.forEach(this.handlers,function(i){i!==null&&t(i)})}}const uy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IP=typeof URLSearchParams<"u"?URLSearchParams:i8,ZP=typeof FormData<"u"?FormData:null,GP=typeof Blob<"u"?Blob:null,YP={isBrowser:!0,classes:{URLSearchParams:IP,FormData:ZP,Blob:GP},protocols:["http","https","file","blob","url","data"]},a8=typeof window<"u"&&typeof document<"u",R4=typeof navigator=="object"&&navigator||void 0,$P=a8&&(!R4||["ReactNative","NativeScript","NS"].indexOf(R4.product)<0),WP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qP=a8&&window.location.href||"http://localhost",KP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:a8,hasStandardBrowserEnv:$P,hasStandardBrowserWebWorkerEnv:WP,navigator:R4,origin:qP},Symbol.toStringTag,{value:"Module"})),$t={...KP,...YP};function QP(e,t){return iu(e,new $t.classes.URLSearchParams,{visitor:function(n,i,s,l){return $t.isNode&&te.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function XP(e){return te.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JP(e){const t={},n=Object.keys(e);let i;const s=n.length;let l;for(i=0;i<s;i++)l=n[i],t[l]=e[l];return t}function fy(e){function t(n,i,s,l){let u=n[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),h=l>=n.length;return u=!u&&te.isArray(s)?s.length:u,h?(te.hasOwnProp(s,u)?s[u]=[s[u],i]:s[u]=i,!d):((!s[u]||!te.isObject(s[u]))&&(s[u]=[]),t(n,i,s[u],l)&&te.isArray(s[u])&&(s[u]=JP(s[u])),!d)}if(te.isFormData(e)&&te.isFunction(e.entries)){const n={};return te.forEachEntry(e,(i,s)=>{t(XP(i),s,n,0)}),n}return null}function eV(e,t,n){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const ll={transitional:uy,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,l=te.isObject(t);if(l&&te.isHTMLForm(t)&&(t=new FormData(t)),te.isFormData(t))return s?JSON.stringify(fy(t)):t;if(te.isArrayBuffer(t)||te.isBuffer(t)||te.isStream(t)||te.isFile(t)||te.isBlob(t)||te.isReadableStream(t))return t;if(te.isArrayBufferView(t))return t.buffer;if(te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(l){if(i.indexOf("application/x-www-form-urlencoded")>-1)return QP(t,this.formSerializer).toString();if((d=te.isFileList(t))||i.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return iu(d?{"files[]":t}:t,h&&new h,this.formSerializer)}}return l||s?(n.setContentType("application/json",!1),eV(t)):t}],transformResponse:[function(t){const n=this.transitional||ll.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(te.isResponse(t)||te.isReadableStream(t))return t;if(t&&te.isString(t)&&(i&&!this.responseType||s)){const u=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?De.from(d,De.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$t.classes.FormData,Blob:$t.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(["delete","get","head","post","put","patch"],e=>{ll.headers[e]={}});const tV=te.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"]),nV=e=>{const t={};let n,i,s;return e&&e.split(`
`).forEach(function(u){s=u.indexOf(":"),n=u.substring(0,s).trim().toLowerCase(),i=u.substring(s+1).trim(),!(!n||t[n]&&tV[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Km=Symbol("internals");function y1(e){return e&&String(e).trim().toLowerCase()}function lc(e){return e===!1||e==null?e:te.isArray(e)?e.map(lc):String(e)}function rV(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const iV=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function S7(e,t,n,i,s){if(te.isFunction(i))return i.call(this,t,n);if(s&&(t=n),!!te.isString(t)){if(te.isString(i))return t.indexOf(i)!==-1;if(te.isRegExp(i))return i.test(t)}}function aV(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function sV(e,t){const n=te.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(s,l,u){return this[i].call(this,t,s,l,u)},configurable:!0})})}let dn=class{constructor(t){t&&this.set(t)}set(t,n,i){const s=this;function l(d,h,m){const p=y1(h);if(!p)throw new Error("header name must be a non-empty string");const C=te.findKey(s,p);(!C||s[C]===void 0||m===!0||m===void 0&&s[C]!==!1)&&(s[C||h]=lc(d))}const u=(d,h)=>te.forEach(d,(m,p)=>l(m,p,h));if(te.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(te.isString(t)&&(t=t.trim())&&!iV(t))u(nV(t),n);else if(te.isObject(t)&&te.isIterable(t)){let d={},h,m;for(const p of t){if(!te.isArray(p))throw TypeError("Object iterator must return a key-value pair");d[m=p[0]]=(h=d[m])?te.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}u(d,n)}else t!=null&&l(n,t,i);return this}get(t,n){if(t=y1(t),t){const i=te.findKey(this,t);if(i){const s=this[i];if(!n)return s;if(n===!0)return rV(s);if(te.isFunction(n))return n.call(this,s,i);if(te.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=y1(t),t){const i=te.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||S7(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let s=!1;function l(u){if(u=y1(u),u){const d=te.findKey(i,u);d&&(!n||S7(i,i[d],d,n))&&(delete i[d],s=!0)}}return te.isArray(t)?t.forEach(l):l(t),s}clear(t){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const l=n[i];(!t||S7(this,this[l],l,t,!0))&&(delete this[l],s=!0)}return s}normalize(t){const n=this,i={};return te.forEach(this,(s,l)=>{const u=te.findKey(i,l);if(u){n[u]=lc(s),delete n[l];return}const d=t?aV(l):String(l).trim();d!==l&&delete n[l],n[d]=lc(s),i[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return te.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=t&&te.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[Km]=this[Km]={accessors:{}}).accessors,s=this.prototype;function l(u){const d=y1(u);i[d]||(sV(s,u),i[d]=!0)}return te.isArray(t)?t.forEach(l):l(t),this}};dn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);te.reduceDescriptors(dn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});te.freezeMethods(dn);function E7(e,t){const n=this||ll,i=t||n,s=dn.from(i.headers);let l=i.data;return te.forEach(e,function(d){l=d.call(n,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function dy(e){return!!(e&&e.__CANCEL__)}function so(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}te.inherits(so,De,{__CANCEL__:!0});function hy(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function oV(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lV(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,l=0,u;return t=t!==void 0?t:1e3,function(h){const m=Date.now(),p=i[l];u||(u=m),n[s]=h,i[s]=m;let C=l,v=0;for(;C!==s;)v+=n[C++],C=C%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),m-u<t)return;const w=p&&m-p;return w?Math.round(v*1e3/w):void 0}}function cV(e,t){let n=0,i=1e3/t,s,l;const u=(m,p=Date.now())=>{n=p,s=null,l&&(clearTimeout(l),l=null),e(...m)};return[(...m)=>{const p=Date.now(),C=p-n;C>=i?u(m,p):(s=m,l||(l=setTimeout(()=>{l=null,u(s)},i-C)))},()=>s&&u(s)]}const Lc=(e,t,n=3)=>{let i=0;const s=lV(50,250);return cV(l=>{const u=l.loaded,d=l.lengthComputable?l.total:void 0,h=u-i,m=s(h),p=u<=d;i=u;const C={loaded:u,total:d,progress:d?u/d:void 0,bytes:h,rate:m||void 0,estimated:m&&d&&p?(d-u)/m:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(C)},n)},Qm=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Xm=e=>(...t)=>te.asap(()=>e(...t)),uV=$t.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$t.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($t.origin),$t.navigator&&/(msie|trident)/i.test($t.navigator.userAgent)):()=>!0,fV=$t.hasStandardBrowserEnv?{write(e,t,n,i,s,l){const u=[e+"="+encodeURIComponent(t)];te.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),te.isString(i)&&u.push("path="+i),te.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hV(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function my(e,t,n){let i=!dV(t);return e&&(i||n==!1)?hV(e,t):t}const Jm=e=>e instanceof dn?{...e}:e;function Aa(e,t){t=t||{};const n={};function i(m,p,C,v){return te.isPlainObject(m)&&te.isPlainObject(p)?te.merge.call({caseless:v},m,p):te.isPlainObject(p)?te.merge({},p):te.isArray(p)?p.slice():p}function s(m,p,C,v){if(te.isUndefined(p)){if(!te.isUndefined(m))return i(void 0,m,C,v)}else return i(m,p,C,v)}function l(m,p){if(!te.isUndefined(p))return i(void 0,p)}function u(m,p){if(te.isUndefined(p)){if(!te.isUndefined(m))return i(void 0,m)}else return i(void 0,p)}function d(m,p,C){if(C in t)return i(m,p);if(C in e)return i(void 0,m)}const h={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(m,p,C)=>s(Jm(m),Jm(p),C,!0)};return te.forEach(Object.keys({...e,...t}),function(p){const C=h[p]||s,v=C(e[p],t[p],p);te.isUndefined(v)&&C!==d||(n[p]=v)}),n}const py=e=>{const t=Aa({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:l,headers:u,auth:d}=t;t.headers=u=dn.from(u),t.url=cy(my(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let h;if(te.isFormData(n)){if($t.hasStandardBrowserEnv||$t.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((h=u.getContentType())!==!1){const[m,...p]=h?h.split(";").map(C=>C.trim()).filter(Boolean):[];u.setContentType([m||"multipart/form-data",...p].join("; "))}}if($t.hasStandardBrowserEnv&&(i&&te.isFunction(i)&&(i=i(t)),i||i!==!1&&uV(t.url))){const m=s&&l&&fV.read(l);m&&u.set(s,m)}return t},mV=typeof XMLHttpRequest<"u",pV=mV&&function(e){return new Promise(function(n,i){const s=py(e);let l=s.data;const u=dn.from(s.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=s,p,C,v,w,b;function S(){w&&w(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function j(){if(!E)return;const L=dn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),M={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:L,config:e,request:E};hy(function(O){n(O),S()},function(O){i(O),S()},M),E=null}"onloadend"in E?E.onloadend=j:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(j)},E.onabort=function(){E&&(i(new De("Request aborted",De.ECONNABORTED,e,E)),E=null)},E.onerror=function(){i(new De("Network Error",De.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||uy;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),i(new De(D,M.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,E)),E=null},l===void 0&&u.setContentType(null),"setRequestHeader"in E&&te.forEach(u.toJSON(),function(D,M){E.setRequestHeader(M,D)}),te.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),d&&d!=="json"&&(E.responseType=s.responseType),m&&([v,b]=Lc(m,!0),E.addEventListener("progress",v)),h&&E.upload&&([C,w]=Lc(h),E.upload.addEventListener("progress",C),E.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(p=L=>{E&&(i(!L||L.type?new so(null,e,E):L),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const T=oV(s.url);if(T&&$t.protocols.indexOf(T)===-1){i(new De("Unsupported protocol "+T+":",De.ERR_BAD_REQUEST,e));return}E.send(l||null)})},gV=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,s;const l=function(m){if(!s){s=!0,d();const p=m instanceof Error?m:this.reason;i.abort(p instanceof De?p:new so(p instanceof Error?p.message:p))}};let u=t&&setTimeout(()=>{u=null,l(new De(`timeout ${t} of ms exceeded`,De.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(l):m.removeEventListener("abort",l)}),e=null)};e.forEach(m=>m.addEventListener("abort",l));const{signal:h}=i;return h.unsubscribe=()=>te.asap(d),h}},CV=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,s;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},vV=async function*(e,t){for await(const n of xV(e))yield*CV(n,t)},xV=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},ep=(e,t,n,i)=>{const s=vV(e,t);let l=0,u,d=h=>{u||(u=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:m,value:p}=await s.next();if(m){d(),h.close();return}let C=p.byteLength;if(n){let v=l+=C;n(v)}h.enqueue(new Uint8Array(p))}catch(m){throw d(m),m}},cancel(h){return d(h),s.return()}},{highWaterMark:2})},au=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gy=au&&typeof ReadableStream=="function",yV=au&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Cy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bV=gy&&Cy(()=>{let e=!1;const t=new Request($t.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tp=64*1024,D4=gy&&Cy(()=>te.isReadableStream(new Response("").body)),Tc={stream:D4&&(e=>e.body)};au&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Tc[t]&&(Tc[t]=te.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new De(`Response type '${t}' is not supported`,De.ERR_NOT_SUPPORT,i)})})})(new Response);const wV=async e=>{if(e==null)return 0;if(te.isBlob(e))return e.size;if(te.isSpecCompliantForm(e))return(await new Request($t.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(te.isArrayBufferView(e)||te.isArrayBuffer(e))return e.byteLength;if(te.isURLSearchParams(e)&&(e=e+""),te.isString(e))return(await yV(e)).byteLength},SV=async(e,t)=>{const n=te.toFiniteNumber(e.getContentLength());return n??wV(t)},EV=au&&(async e=>{let{url:t,method:n,data:i,signal:s,cancelToken:l,timeout:u,onDownloadProgress:d,onUploadProgress:h,responseType:m,headers:p,withCredentials:C="same-origin",fetchOptions:v}=py(e);m=m?(m+"").toLowerCase():"text";let w=gV([s,l&&l.toAbortSignal()],u),b;const S=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(h&&bV&&n!=="get"&&n!=="head"&&(E=await SV(p,i))!==0){let M=new Request(t,{method:"POST",body:i,duplex:"half"}),k;if(te.isFormData(i)&&(k=M.headers.get("content-type"))&&p.setContentType(k),M.body){const[O,z]=Qm(E,Lc(Xm(h)));i=ep(M.body,tp,O,z)}}te.isString(C)||(C=C?"include":"omit");const j="credentials"in Request.prototype;b=new Request(t,{...v,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",credentials:j?C:void 0});let T=await fetch(b,v);const L=D4&&(m==="stream"||m==="response");if(D4&&(d||L&&S)){const M={};["status","statusText","headers"].forEach(I=>{M[I]=T[I]});const k=te.toFiniteNumber(T.headers.get("content-length")),[O,z]=d&&Qm(k,Lc(Xm(d),!0))||[];T=new Response(ep(T.body,tp,O,()=>{z&&z(),S&&S()}),M)}m=m||"text";let D=await Tc[te.findKey(Tc,m)||"text"](T,e);return!L&&S&&S(),await new Promise((M,k)=>{hy(M,k,{data:D,headers:dn.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:b})})}catch(j){throw S&&S(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,b),{cause:j.cause||j}):De.from(j,j&&j.code,e,b)}}),k4={http:FP,xhr:pV,fetch:EV};te.forEach(k4,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const np=e=>`- ${e}`,jV=e=>te.isFunction(e)||e===null||e===!1,vy={getAdapter:e=>{e=te.isArray(e)?e:[e];const{length:t}=e;let n,i;const s={};for(let l=0;l<t;l++){n=e[l];let u;if(i=n,!jV(n)&&(i=k4[(u=String(n)).toLowerCase()],i===void 0))throw new De(`Unknown adapter '${u}'`);if(i)break;s[u||"#"+l]=i}if(!i){const l=Object.entries(s).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=t?l.length>1?`since :
`+l.map(np).join(`
`):" "+np(l[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:k4};function j7(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new so(null,e)}function rp(e){return j7(e),e.headers=dn.from(e.headers),e.data=E7.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vy.getAdapter(e.adapter||ll.adapter)(e).then(function(i){return j7(e),i.data=E7.call(e,e.transformResponse,i),i.headers=dn.from(i.headers),i},function(i){return dy(i)||(j7(e),i&&i.response&&(i.response.data=E7.call(e,e.transformResponse,i.response),i.response.headers=dn.from(i.response.headers))),Promise.reject(i)})}const xy="1.11.0",su={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{su[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const ip={};su.transitional=function(t,n,i){function s(l,u){return"[Axios v"+xy+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,d)=>{if(t===!1)throw new De(s(u," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!ip[u]&&(ip[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,u,d):!0}};su.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function AV(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const l=i[s],u=t[l];if(u){const d=e[l],h=d===void 0||u(d,l,e);if(h!==!0)throw new De("option "+l+" must be "+h,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+l,De.ERR_BAD_OPTION)}}const cc={assertOptions:AV,validators:su},lr=cc.validators;let ya=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qm,response:new qm}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?l&&!String(i.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+l):i.stack=l}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Aa(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:l}=n;i!==void 0&&cc.assertOptions(i,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},!1),s!=null&&(te.isFunction(s)?n.paramsSerializer={serialize:s}:cc.assertOptions(s,{encode:lr.function,serialize:lr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),cc.assertOptions(n,{baseUrl:lr.spelling("baseURL"),withXsrfToken:lr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&te.merge(l.common,l[n.method]);l&&te.forEach(["delete","get","head","post","put","patch","common"],b=>{delete l[b]}),n.headers=dn.concat(u,l);const d=[];let h=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(h=h&&S.synchronous,d.unshift(S.fulfilled,S.rejected))});const m=[];this.interceptors.response.forEach(function(S){m.push(S.fulfilled,S.rejected)});let p,C=0,v;if(!h){const b=[rp.bind(this),void 0];for(b.unshift(...d),b.push(...m),v=b.length,p=Promise.resolve(n);C<v;)p=p.then(b[C++],b[C++]);return p}v=d.length;let w=n;for(C=0;C<v;){const b=d[C++],S=d[C++];try{w=b(w)}catch(E){S.call(this,E);break}}try{p=rp.call(this,w)}catch(b){return Promise.reject(b)}for(C=0,v=m.length;C<v;)p=p.then(m[C++],m[C++]);return p}getUri(t){t=Aa(this.defaults,t);const n=my(t.baseURL,t.url,t.allowAbsoluteUrls);return cy(n,t.params,t.paramsSerializer)}};te.forEach(["delete","get","head","options"],function(t){ya.prototype[t]=function(n,i){return this.request(Aa(i||{},{method:t,url:n,data:(i||{}).data}))}});te.forEach(["post","put","patch"],function(t){function n(i){return function(l,u,d){return this.request(Aa(d||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}ya.prototype[t]=n(),ya.prototype[t+"Form"]=n(!0)});let MV=class yy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(s=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](s);i._listeners=null}),this.promise.then=s=>{let l;const u=new Promise(d=>{i.subscribe(d),l=d}).then(s);return u.cancel=function(){i.unsubscribe(l)},u},t(function(l,u,d){i.reason||(i.reason=new so(l,u,d),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new yy(function(s){t=s}),cancel:t}}};function LV(e){return function(n){return e.apply(null,n)}}function TV(e){return te.isObject(e)&&e.isAxiosError===!0}const O4={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(O4).forEach(([e,t])=>{O4[t]=e});function by(e){const t=new ya(e),n=Qx(ya.prototype.request,t);return te.extend(n,ya.prototype,t,{allOwnKeys:!0}),te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return by(Aa(e,s))},n}const ot=by(ll);ot.Axios=ya;ot.CanceledError=so;ot.CancelToken=MV;ot.isCancel=dy;ot.VERSION=xy;ot.toFormData=iu;ot.AxiosError=De;ot.Cancel=ot.CanceledError;ot.all=function(t){return Promise.all(t)};ot.spread=LV;ot.isAxiosError=TV;ot.mergeConfig=Aa;ot.AxiosHeaders=dn;ot.formToJSON=e=>fy(te.isHTMLForm(e)?new FormData(e):e);ot.getAdapter=vy.getAdapter;ot.HttpStatusCode=O4;ot.default=ot;const{Axios:AK,AxiosError:MK,CanceledError:LK,isCancel:TK,CancelToken:NK,VERSION:RK,all:DK,Cancel:kK,isAxiosError:OK,spread:_K,toFormData:PK,AxiosHeaders:VK,HttpStatusCode:zK,formToJSON:FK,getAdapter:BK,mergeConfig:UK}=ot;function NV(e){return He.post("/login",e)}function RV(e){return He.post("/register",e)}function DV(e){return He.post("/verify-otp",e)}function kV(e){return He.post("/forgot-password",e)}function OV(e){return He.post("/reset-password",e)}function _V(){return He.get("/countrycodes")}function PV(){return He.get("/schools")}function VV(){return He.get("/groups")}function zV(){return He.get("/grades")}function FV(){return new Pg().get("token")}const cl={getCountries:_V,getToken:FV,login:NV,register:RV,getGrades:zV,verifyOTP:DV,getSchools:PV,resetPasswordRequest:kV,passwordReset:OV,getCenterGroups:VV},He=ot.create({baseURL:"https://drmarcomedhat.com/backend/api"});He.interceptors.request.use(e=>{const t=cl.getToken();return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));function BV(e){return He.get(`/courses/${e}`)}function UV(e){return He.get(`/courses/${e}/curriculum`)}function HV(e){return He.get(`/courses/${e}/reviews`)}function IV(e){return He.post(`/courses/${e}/save`)}function ZV(e){return He.get(`quizzes/${e}/questions`)}function GV(e,t){return He.get(`/assignments/${t}/submissions?user_id=${e}`)}function YV(e,t){return He.post(`/assignments/${e}/submit`,t)}function $V(e,t){return He.post(`/quizzes/${e}/submit-answers`,t)}function WV(e){return He.post(`/quizzes/${e}/start`)}function qV(e){return He.get(`/courses/${e}/assignments-quizzes`)}function KV(e){return He.get(`/quizzes/${e}/result`)}function QV(e){return He.get(`/courses/${e}/resources`)}function XV(e){return He.get(`/resources/${e}/download`)}function JV(e){return He.get(`/courses/${e}/is-enrolled`)}function ez(e){return He.post(`/chapters/${e}/request`)}function tz(e){return He.post(`/courses/${e}/request`)}function nz(e){return He.get(`/quizzes/${e}/leaderboard`)}function rz(e,t){return He.post(`/courses/${e}/reviews`,t)}function iz(e){return He.get(`/courses/${e}/check-review`)}const Xt={getCourseById:BV,getCourseCurriculum:UV,getCourseReviews:HV,saveCourse:IV,getCourseQuestions:ZV,listUserSubmissions:GV,submitAssignment:YV,startQuiz:WV,getAnswers:KV,submitQuiz:$V,getResources:QV,downloadResource:XV,listQuizzesAssignments:qV,isCourseEnrolled:JV,requestAccess:tz,getQuizLeaderBoard:nz,requestChaptersAccess:ez,rateCourse:rz,checkReview:iz};function fe({className:e,...t}){return c.jsx("div",{"data-slot":"skeleton",className:Ue("bg-accent animate-pulse rounded-md",e),...t})}function az({children:e,redirectDelay:t=2e3,fallbackRoute:n,showLoadingMessage:i=!0,customLoadingComponent:s,customNotEnrolledComponent:l}){const{course_id:u}=Xr(),d=gr(),[h,m]=y.useState(!0),[p,C]=y.useState(!1),[v,w]=y.useState(null);y.useEffect(()=>{b()},[u]);const b=async()=>{var E;if(!u){w("Course ID is required"),m(!1);return}try{m(!0),w(null);const T=((E=(await Xt.isCourseEnrolled(Number(u))).data)==null?void 0:E.data.enrolled)||!1;C(T),T||setTimeout(()=>{d(n||-1)},t)}catch(j){console.error("Error checking course enrollment:",j),w("Failed to verify course enrollment"),setTimeout(()=>{d(n||-1)},t+1e3)}finally{m(!1)}},S=()=>{d(n||-1)};return h?s?c.jsx(c.Fragment,{children:s}):i?c.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:c.jsx("div",{className:"max-w-md w-full mx-auto p-6",children:c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-8 text-center",children:[c.jsx("div",{className:"w-16 h-16 mx-auto mb-4 bg-blue-100 rounded-full flex items-center justify-center",children:c.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Verifying Access"}),c.jsx("p",{className:"text-gray-600 mb-6",children:"Checking your enrollment status for this course..."}),c.jsxs("div",{className:"space-y-3",children:[c.jsx(fe,{className:"h-4 w-full"}),c.jsx(fe,{className:"h-4 w-3/4 mx-auto"}),c.jsx(fe,{className:"h-4 w-1/2 mx-auto"})]})]})})}):c.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:c.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):v?c.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:c.jsx("div",{className:"max-w-md w-full mx-auto p-6",children:c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-8 text-center",children:[c.jsx("div",{className:"w-16 h-16 mx-auto mb-4 bg-red-100 rounded-full flex items-center justify-center",children:c.jsx(Ee,{icon:zm,className:"w-8 h-8 text-red-600"})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Access Error"}),c.jsx("p",{className:"text-gray-600 mb-6",children:v}),c.jsxs("button",{onClick:S,className:"inline-flex items-center gap-2 px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition-colors",children:[c.jsx(Ee,{icon:Fm,className:"w-4 h-4"}),"Go Back"]}),c.jsx("p",{className:"text-sm text-gray-500 mt-4",children:"You will be redirected automatically in a few seconds..."})]})})}):p?c.jsx(c.Fragment,{children:e}):l?c.jsx(c.Fragment,{children:l}):c.jsx("div",{className:"min-h-screen bg-neutral-900 flex items-center justify-center",children:c.jsx("div",{className:"max-w-md w-full mx-auto p-6",children:c.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-8 text-center",children:[c.jsx("div",{className:"w-16 h-16 mx-auto mb-4 bg-amber-100 rounded-full flex items-center justify-center",children:c.jsx(Ee,{icon:zm,className:"w-8 h-8 text-amber-600"})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Access Restricted"}),c.jsx("p",{className:"text-gray-600 mb-6",children:"You are not enrolled in this course. Please enroll first to access the course content."}),c.jsxs("button",{onClick:S,className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[c.jsx(Ee,{icon:Fm,className:"w-4 h-4"}),"Go Back"]}),c.jsx("p",{className:"text-sm text-gray-500 mt-4",children:"Redirecting you back in a few seconds..."})]})})})}let sz={data:""},oz=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||sz,lz=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cz=/\/\*[^]*?\*\/|  +/g,ap=/\n+/g,Li=(e,t)=>{let n="",i="",s="";for(let l in e){let u=e[l];l[0]=="@"?l[1]=="i"?n=l+" "+u+";":i+=l[1]=="f"?Li(u,l):l+"{"+Li(u,l[1]=="k"?"":t)+"}":typeof u=="object"?i+=Li(u,t?t.replace(/([^,])+/g,d=>l.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,d):d?d+" "+h:h)):l):u!=null&&(l=/^--/.test(l)?l:l.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Li.p?Li.p(l,u):l+":"+u+";")}return n+(t&&s?t+"{"+s+"}":s)+i},Pr={},wy=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+wy(e[n]);return t}return e},uz=(e,t,n,i,s)=>{let l=wy(e),u=Pr[l]||(Pr[l]=(h=>{let m=0,p=11;for(;m<h.length;)p=101*p+h.charCodeAt(m++)>>>0;return"go"+p})(l));if(!Pr[u]){let h=l!==e?e:(m=>{let p,C,v=[{}];for(;p=lz.exec(m.replace(cz,""));)p[4]?v.shift():p[3]?(C=p[3].replace(ap," ").trim(),v.unshift(v[0][C]=v[0][C]||{})):v[0][p[1]]=p[2].replace(ap," ").trim();return v[0]})(e);Pr[u]=Li(s?{["@keyframes "+u]:h}:h,n?"":"."+u)}let d=n&&Pr.g?Pr.g:null;return n&&(Pr.g=Pr[u]),((h,m,p,C)=>{C?m.data=m.data.replace(C,h):m.data.indexOf(h)===-1&&(m.data=p?h+m.data:m.data+h)})(Pr[u],t,i,d),u},fz=(e,t,n)=>e.reduce((i,s,l)=>{let u=t[l];if(u&&u.call){let d=u(n),h=d&&d.props&&d.props.className||/^go/.test(d)&&d;u=h?"."+h:d&&typeof d=="object"?d.props?"":Li(d,""):d===!1?"":d}return i+s+(u??"")},"");function ou(e){let t=this||{},n=e.call?e(t.p):e;return uz(n.unshift?n.raw?fz(n,[].slice.call(arguments,1),t.p):n.reduce((i,s)=>Object.assign(i,s&&s.call?s(t.p):s),{}):n,oz(t.target),t.g,t.o,t.k)}let Sy,_4,P4;ou.bind({g:1});let qr=ou.bind({k:1});function dz(e,t,n,i){Li.p=t,Sy=e,_4=n,P4=i}function Fi(e,t){let n=this||{};return function(){let i=arguments;function s(l,u){let d=Object.assign({},l),h=d.className||s.className;n.p=Object.assign({theme:_4&&_4()},d),n.o=/ *go\d+/.test(h),d.className=ou.apply(n,i)+(h?" "+h:"");let m=e;return e[0]&&(m=d.as||e,delete d.as),P4&&m[0]&&P4(d),Sy(m,d)}return s}}var hz=e=>typeof e=="function",Nc=(e,t)=>hz(e)?e(t):e,mz=(()=>{let e=0;return()=>(++e).toString()})(),Ey=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),pz=20,jy=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,pz)};case 1:return{...e,toasts:e.toasts.map(l=>l.id===t.toast.id?{...l,...t.toast}:l)};case 2:let{toast:n}=t;return jy(e,{type:e.toasts.find(l=>l.id===n.id)?1:0,toast:n});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(l=>l.id===i||i===void 0?{...l,dismissed:!0,visible:!1}:l)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(l=>l.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(l=>({...l,pauseDuration:l.pauseDuration+s}))}}},uc=[],ga={toasts:[],pausedAt:void 0},Ra=e=>{ga=jy(ga,e),uc.forEach(t=>{t(ga)})},gz={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Cz=(e={})=>{let[t,n]=y.useState(ga),i=y.useRef(ga);y.useEffect(()=>(i.current!==ga&&n(ga),uc.push(n),()=>{let l=uc.indexOf(n);l>-1&&uc.splice(l,1)}),[]);let s=t.toasts.map(l=>{var u,d,h;return{...e,...e[l.type],...l,removeDelay:l.removeDelay||((u=e[l.type])==null?void 0:u.removeDelay)||(e==null?void 0:e.removeDelay),duration:l.duration||((d=e[l.type])==null?void 0:d.duration)||(e==null?void 0:e.duration)||gz[l.type],style:{...e.style,...(h=e[l.type])==null?void 0:h.style,...l.style}}});return{...t,toasts:s}},vz=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||mz()}),ul=e=>(t,n)=>{let i=vz(t,e,n);return Ra({type:2,toast:i}),i.id},Yt=(e,t)=>ul("blank")(e,t);Yt.error=ul("error");Yt.success=ul("success");Yt.loading=ul("loading");Yt.custom=ul("custom");Yt.dismiss=e=>{Ra({type:3,toastId:e})};Yt.remove=e=>Ra({type:4,toastId:e});Yt.promise=(e,t,n)=>{let i=Yt.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(s=>{let l=t.success?Nc(t.success,s):void 0;return l?Yt.success(l,{id:i,...n,...n==null?void 0:n.success}):Yt.dismiss(i),s}).catch(s=>{let l=t.error?Nc(t.error,s):void 0;l?Yt.error(l,{id:i,...n,...n==null?void 0:n.error}):Yt.dismiss(i)}),e};var xz=(e,t)=>{Ra({type:1,toast:{id:e,height:t}})},yz=()=>{Ra({type:5,time:Date.now()})},R1=new Map,bz=1e3,wz=(e,t=bz)=>{if(R1.has(e))return;let n=setTimeout(()=>{R1.delete(e),Ra({type:4,toastId:e})},t);R1.set(e,n)},Sz=e=>{let{toasts:t,pausedAt:n}=Cz(e);y.useEffect(()=>{if(n)return;let l=Date.now(),u=t.map(d=>{if(d.duration===1/0)return;let h=(d.duration||0)+d.pauseDuration-(l-d.createdAt);if(h<0){d.visible&&Yt.dismiss(d.id);return}return setTimeout(()=>Yt.dismiss(d.id),h)});return()=>{u.forEach(d=>d&&clearTimeout(d))}},[t,n]);let i=y.useCallback(()=>{n&&Ra({type:6,time:Date.now()})},[n]),s=y.useCallback((l,u)=>{let{reverseOrder:d=!1,gutter:h=8,defaultPosition:m}=u||{},p=t.filter(w=>(w.position||m)===(l.position||m)&&w.height),C=p.findIndex(w=>w.id===l.id),v=p.filter((w,b)=>b<C&&w.visible).length;return p.filter(w=>w.visible).slice(...d?[v+1]:[0,v]).reduce((w,b)=>w+(b.height||0)+h,0)},[t]);return y.useEffect(()=>{t.forEach(l=>{if(l.dismissed)wz(l.id,l.removeDelay);else{let u=R1.get(l.id);u&&(clearTimeout(u),R1.delete(l.id))}})},[t]),{toasts:t,handlers:{updateHeight:xz,startPause:yz,endPause:i,calculateOffset:s}}},Ez=qr`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,jz=qr`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Az=qr`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,Mz=Fi("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Ez} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${jz} 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: ${Az} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,Lz=qr`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,Tz=Fi("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: ${Lz} 1s linear infinite;
`,Nz=qr`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,Rz=qr`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,Dz=Fi("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Nz} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${Rz} 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;
  }
`,kz=Fi("div")`
  position: absolute;
`,Oz=Fi("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,_z=qr`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Pz=Fi("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${_z} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,Vz=({toast:e})=>{let{icon:t,type:n,iconTheme:i}=e;return t!==void 0?typeof t=="string"?y.createElement(Pz,null,t):t:n==="blank"?null:y.createElement(Oz,null,y.createElement(Tz,{...i}),n!=="loading"&&y.createElement(kz,null,n==="error"?y.createElement(Mz,{...i}):y.createElement(Dz,{...i})))},zz=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,Fz=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,Bz="0%{opacity:0;} 100%{opacity:1;}",Uz="0%{opacity:1;} 100%{opacity:0;}",Hz=Fi("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;
`,Iz=Fi("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,Zz=(e,t)=>{let n=e.includes("top")?1:-1,[i,s]=Ey()?[Bz,Uz]:[zz(n),Fz(n)];return{animation:t?`${qr(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${qr(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Gz=y.memo(({toast:e,position:t,style:n,children:i})=>{let s=e.height?Zz(e.position||t||"top-center",e.visible):{opacity:0},l=y.createElement(Vz,{toast:e}),u=y.createElement(Iz,{...e.ariaProps},Nc(e.message,e));return y.createElement(Hz,{className:e.className,style:{...s,...n,...e.style}},typeof i=="function"?i({icon:l,message:u}):y.createElement(y.Fragment,null,l,u))});dz(y.createElement);var Yz=({id:e,className:t,style:n,onHeightUpdate:i,children:s})=>{let l=y.useCallback(u=>{if(u){let d=()=>{let h=u.getBoundingClientRect().height;i(e,h)};d(),new MutationObserver(d).observe(u,{subtree:!0,childList:!0,characterData:!0})}},[e,i]);return y.createElement("div",{ref:l,className:t,style:n},s)},$z=(e,t)=>{let n=e.includes("top"),i=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ey()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...i,...s}},Wz=ou`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,U2=16,qz=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:i,children:s,containerStyle:l,containerClassName:u})=>{let{toasts:d,handlers:h}=Sz(n);return y.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:U2,left:U2,right:U2,bottom:U2,pointerEvents:"none",...l},className:u,onMouseEnter:h.startPause,onMouseLeave:h.endPause},d.map(m=>{let p=m.position||t,C=h.calculateOffset(m,{reverseOrder:e,gutter:i,defaultPosition:t}),v=$z(p,C);return y.createElement(Yz,{id:m.id,key:m.id,onHeightUpdate:h.updateHeight,className:m.visible?Wz:"",style:v},m.type==="custom"?Nc(m.message,m):s?s(m):y.createElement(Gz,{toast:m,position:p}))}))},Et=Yt;const fc=y.memo(({children:e})=>{const t=Un(),n=cl.getToken(),i=y.useRef(!1);return y.useEffect(()=>{i.current=!1},[t.pathname]),n?e:(i.current||(Yt.error("Please log in if you have an account, or register if you don't."),i.current=!0),c.jsx(Q2,{to:"/",state:{from:t},replace:!0}))});fc.displayName="ProtectedRoute";function Kz(){const e=gr();return c.jsx(c.Fragment,{children:c.jsxs("main",{className:" relative min-h-dvh",children:[c.jsx("nav",{className:"w-full p-4 bg-white shadow-md flex justify-start",children:c.jsx("button",{onClick:()=>e("/"),className:"bg-main-400 text-white px-4 py-2 rounded-lg hover:opacity-90 transition",children:"Home"})}),c.jsx("div",{className:"flex justify-center items-center  h-full",children:c.jsx(Yc,{})})]})})}var A7={exports:{}},M7={};/**
 * @license React
 * use-sync-external-store-shim.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 sp;function Qz(){if(sp)return M7;sp=1;var e=Ic();function t(C,v){return C===v&&(C!==0||1/C===1/v)||C!==C&&v!==v}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function d(C,v){var w=v(),b=i({inst:{value:w,getSnapshot:v}}),S=b[0].inst,E=b[1];return l(function(){S.value=w,S.getSnapshot=v,h(S)&&E({inst:S})},[C,w,v]),s(function(){return h(S)&&E({inst:S}),C(function(){h(S)&&E({inst:S})})},[C]),u(w),w}function h(C){var v=C.getSnapshot;C=C.value;try{var w=v();return!n(C,w)}catch{return!0}}function m(C,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return M7.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,M7}var op;function Xz(){return op||(op=1,A7.exports=Qz()),A7.exports}var Jz=Xz();function eF(){return Jz.useSyncExternalStore(tF,()=>!0,()=>!1)}function tF(){return()=>{}}var s8="Avatar",[nF,HK]=Jn(s8),[rF,Ay]=nF(s8),My=y.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[s,l]=y.useState("idle");return c.jsx(rF,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:c.jsx(Re.span,{...i,ref:t})})});My.displayName=s8;var Ly="AvatarImage",Ty=y.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:s=()=>{},...l}=e,u=Ay(Ly,n),d=iF(i,l),h=mr(m=>{s(m),u.onImageLoadingStatusChange(m)});return Fn(()=>{d!=="idle"&&h(d)},[d,h]),d==="loaded"?c.jsx(Re.img,{...l,ref:t,src:i}):null});Ty.displayName=Ly;var Ny="AvatarFallback",Ry=y.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...s}=e,l=Ay(Ny,n),[u,d]=y.useState(i===void 0);return y.useEffect(()=>{if(i!==void 0){const h=window.setTimeout(()=>d(!0),i);return()=>window.clearTimeout(h)}},[i]),u&&l.imageLoadingStatus!=="loaded"?c.jsx(Re.span,{...s,ref:t}):null});Ry.displayName=Ny;function lp(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function iF(e,{referrerPolicy:t,crossOrigin:n}){const i=eF(),s=y.useRef(null),l=i?(s.current||(s.current=new window.Image),s.current):null,[u,d]=y.useState(()=>lp(l,e));return Fn(()=>{d(lp(l,e))},[l,e]),Fn(()=>{const h=C=>()=>{d(C)};if(!l)return;const m=h("loaded"),p=h("error");return l.addEventListener("load",m),l.addEventListener("error",p),t&&(l.referrerPolicy=t),typeof n=="string"&&(l.crossOrigin=n),()=>{l.removeEventListener("load",m),l.removeEventListener("error",p)}},[l,n,t]),u}var aF=My,sF=Ty,oF=Ry;function Hr({className:e,...t}){return c.jsx(aF,{"data-slot":"avatar",className:Ue("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function Ir({className:e,...t}){return c.jsx(sF,{"data-slot":"avatar-image",className:Ue("aspect-square size-full",e),...t})}function Zr({className:e,...t}){return c.jsx(oF,{"data-slot":"avatar-fallback",className:Ue("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const lF=$x("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function st({className:e,variant:t,size:n,asChild:i=!1,...s}){const l=i?Ov:"button";return c.jsx(l,{"data-slot":"button",className:Ue(lF({variant:t,size:n,className:e})),...s})}function o8(e){const t=e+"CollectionProvider",[n,i]=Jn(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:E,children:j}=S,T=ue.useRef(null),L=ue.useRef(new Map).current;return c.jsx(s,{scope:E,itemMap:L,collectionRef:T,children:j})};u.displayName=t;const d=e+"CollectionSlot",h=$s(d),m=ue.forwardRef((S,E)=>{const{scope:j,children:T}=S,L=l(d,j),D=Rt(E,L.collectionRef);return c.jsx(h,{ref:D,children:T})});m.displayName=d;const p=e+"CollectionItemSlot",C="data-radix-collection-item",v=$s(p),w=ue.forwardRef((S,E)=>{const{scope:j,children:T,...L}=S,D=ue.useRef(null),M=Rt(E,D),k=l(p,j);return ue.useEffect(()=>(k.itemMap.set(D,{ref:D,...L}),()=>void k.itemMap.delete(D))),c.jsx(v,{[C]:"",ref:M,children:T})});w.displayName=p;function b(S){const E=l(e+"CollectionConsumer",S);return ue.useCallback(()=>{const T=E.collectionRef.current;if(!T)return[];const L=Array.from(T.querySelectorAll(`[${C}]`));return Array.from(E.itemMap.values()).sort((k,O)=>L.indexOf(k.ref.current)-L.indexOf(O.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:u,Slot:m,ItemSlot:w},b,i]}var cF=y.createContext(void 0);function lu(e){const t=y.useContext(cF);return e||t||"ltr"}const uF=["top","right","bottom","left"],ki=Math.min,wn=Math.max,Rc=Math.round,H2=Math.floor,hr=e=>({x:e,y:e}),fF={left:"right",right:"left",bottom:"top",top:"bottom"},dF={start:"end",end:"start"};function V4(e,t,n){return wn(e,ki(t,n))}function Kr(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function oo(e){return e.split("-")[1]}function l8(e){return e==="x"?"y":"x"}function c8(e){return e==="y"?"height":"width"}const hF=new Set(["top","bottom"]);function ur(e){return hF.has(Qr(e))?"y":"x"}function u8(e){return l8(ur(e))}function mF(e,t,n){n===void 0&&(n=!1);const i=oo(e),s=u8(e),l=c8(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Dc(u)),[u,Dc(u)]}function pF(e){const t=Dc(e);return[z4(e),t,z4(t)]}function z4(e){return e.replace(/start|end/g,t=>dF[t])}const cp=["left","right"],up=["right","left"],gF=["top","bottom"],CF=["bottom","top"];function vF(e,t,n){switch(e){case"top":case"bottom":return n?t?up:cp:t?cp:up;case"left":case"right":return t?gF:CF;default:return[]}}function xF(e,t,n,i){const s=oo(e);let l=vF(Qr(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(z4)))),l}function Dc(e){return e.replace(/left|right|bottom|top/g,t=>fF[t])}function yF(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dy(e){return typeof e!="number"?yF(e):{top:e,right:e,bottom:e,left:e}}function kc(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function fp(e,t,n){let{reference:i,floating:s}=e;const l=ur(t),u=u8(t),d=c8(u),h=Qr(t),m=l==="y",p=i.x+i.width/2-s.width/2,C=i.y+i.height/2-s.height/2,v=i[d]/2-s[d]/2;let w;switch(h){case"top":w={x:p,y:i.y-s.height};break;case"bottom":w={x:p,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:C};break;case"left":w={x:i.x-s.width,y:C};break;default:w={x:i.x,y:i.y}}switch(oo(t)){case"start":w[u]-=v*(n&&m?-1:1);break;case"end":w[u]+=v*(n&&m?-1:1);break}return w}const bF=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,d=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:p,y:C}=fp(m,i,h),v=i,w={},b=0;for(let S=0;S<d.length;S++){const{name:E,fn:j}=d[S],{x:T,y:L,data:D,reset:M}=await j({x:p,y:C,initialPlacement:i,placement:v,strategy:s,middlewareData:w,rects:m,platform:u,elements:{reference:e,floating:t}});p=T??p,C=L??C,w={...w,[E]:{...w[E],...D}},M&&b<=50&&(b++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(m=M.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):M.rects),{x:p,y:C}=fp(m,v,h)),S=-1)}return{x:p,y:C,placement:v,strategy:s,middlewareData:w}};async function Z1(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:u,elements:d,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:C="floating",altBoundary:v=!1,padding:w=0}=Kr(t,e),b=Dy(w),E=d[v?C==="floating"?"reference":"floating":C],j=kc(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(E)))==null||n?E:E.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:m,rootBoundary:p,strategy:h})),T=C==="floating"?{x:i,y:s,width:u.floating.width,height:u.floating.height}:u.reference,L=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),D=await(l.isElement==null?void 0:l.isElement(L))?await(l.getScale==null?void 0:l.getScale(L))||{x:1,y:1}:{x:1,y:1},M=kc(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:L,strategy:h}):T);return{top:(j.top-M.top+b.top)/D.y,bottom:(M.bottom-j.bottom+b.bottom)/D.y,left:(j.left-M.left+b.left)/D.x,right:(M.right-j.right+b.right)/D.x}}const wF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:u,elements:d,middlewareData:h}=t,{element:m,padding:p=0}=Kr(e,t)||{};if(m==null)return{};const C=Dy(p),v={x:n,y:i},w=u8(s),b=c8(w),S=await u.getDimensions(m),E=w==="y",j=E?"top":"left",T=E?"bottom":"right",L=E?"clientHeight":"clientWidth",D=l.reference[b]+l.reference[w]-v[w]-l.floating[b],M=v[w]-l.reference[w],k=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let O=k?k[L]:0;(!O||!await(u.isElement==null?void 0:u.isElement(k)))&&(O=d.floating[L]||l.floating[b]);const z=D/2-M/2,I=O/2-S[b]/2-1,ne=ki(C[j],I),Q=ki(C[T],I),le=ne,he=O-S[b]-Q,ie=O/2-S[b]/2+z,J=V4(le,ie,he),_=!h.arrow&&oo(s)!=null&&ie!==J&&l.reference[b]/2-(ie<le?ne:Q)-S[b]/2<0,U=_?ie<le?ie-le:ie-he:0;return{[w]:v[w]+U,data:{[w]:J,centerOffset:ie-J-U,..._&&{alignmentOffset:U}},reset:_}}}),SF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:u,initialPlacement:d,platform:h,elements:m}=t,{mainAxis:p=!0,crossAxis:C=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:S=!0,...E}=Kr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const j=Qr(s),T=ur(d),L=Qr(d)===d,D=await(h.isRTL==null?void 0:h.isRTL(m.floating)),M=v||(L||!S?[Dc(d)]:pF(d)),k=b!=="none";!v&&k&&M.push(...xF(d,S,b,D));const O=[d,...M],z=await Z1(t,E),I=[];let ne=((i=l.flip)==null?void 0:i.overflows)||[];if(p&&I.push(z[j]),C){const ie=mF(s,u,D);I.push(z[ie[0]],z[ie[1]])}if(ne=[...ne,{placement:s,overflows:I}],!I.every(ie=>ie<=0)){var Q,le;const ie=(((Q=l.flip)==null?void 0:Q.index)||0)+1,J=O[ie];if(J&&(!(C==="alignment"?T!==ur(J):!1)||ne.every(V=>ur(V.placement)===T?V.overflows[0]>0:!0)))return{data:{index:ie,overflows:ne},reset:{placement:J}};let _=(le=ne.filter(U=>U.overflows[0]<=0).sort((U,V)=>U.overflows[1]-V.overflows[1])[0])==null?void 0:le.placement;if(!_)switch(w){case"bestFit":{var he;const U=(he=ne.filter(V=>{if(k){const q=ur(V.placement);return q===T||q==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(q=>q>0).reduce((q,R)=>q+R,0)]).sort((V,q)=>V[1]-q[1])[0])==null?void 0:he[0];U&&(_=U);break}case"initialPlacement":_=d;break}if(s!==_)return{reset:{placement:_}}}return{}}}};function dp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hp(e){return uF.some(t=>e[t]>=0)}const EF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=Kr(e,t);switch(i){case"referenceHidden":{const l=await Z1(t,{...s,elementContext:"reference"}),u=dp(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:hp(u)}}}case"escaped":{const l=await Z1(t,{...s,altBoundary:!0}),u=dp(l,n.floating);return{data:{escapedOffsets:u,escaped:hp(u)}}}default:return{}}}}},ky=new Set(["left","top"]);async function jF(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=Qr(n),d=oo(n),h=ur(n)==="y",m=ky.has(u)?-1:1,p=l&&h?-1:1,C=Kr(t,e);let{mainAxis:v,crossAxis:w,alignmentAxis:b}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:C.mainAxis||0,crossAxis:C.crossAxis||0,alignmentAxis:C.alignmentAxis};return d&&typeof b=="number"&&(w=d==="end"?b*-1:b),h?{x:w*p,y:v*m}:{x:v*m,y:w*p}}const AF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:u,middlewareData:d}=t,h=await jF(t,e);return u===((n=d.offset)==null?void 0:n.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:l+h.y,data:{...h,placement:u}}}}},MF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:E=>{let{x:j,y:T}=E;return{x:j,y:T}}},...h}=Kr(e,t),m={x:n,y:i},p=await Z1(t,h),C=ur(Qr(s)),v=l8(C);let w=m[v],b=m[C];if(l){const E=v==="y"?"top":"left",j=v==="y"?"bottom":"right",T=w+p[E],L=w-p[j];w=V4(T,w,L)}if(u){const E=C==="y"?"top":"left",j=C==="y"?"bottom":"right",T=b+p[E],L=b-p[j];b=V4(T,b,L)}const S=d.fn({...t,[v]:w,[C]:b});return{...S,data:{x:S.x-n,y:S.y-i,enabled:{[v]:l,[C]:u}}}}}},LF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:l,middlewareData:u}=t,{offset:d=0,mainAxis:h=!0,crossAxis:m=!0}=Kr(e,t),p={x:n,y:i},C=ur(s),v=l8(C);let w=p[v],b=p[C];const S=Kr(d,t),E=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const L=v==="y"?"height":"width",D=l.reference[v]-l.floating[L]+E.mainAxis,M=l.reference[v]+l.reference[L]-E.mainAxis;w<D?w=D:w>M&&(w=M)}if(m){var j,T;const L=v==="y"?"width":"height",D=ky.has(Qr(s)),M=l.reference[C]-l.floating[L]+(D&&((j=u.offset)==null?void 0:j[C])||0)+(D?0:E.crossAxis),k=l.reference[C]+l.reference[L]+(D?0:((T=u.offset)==null?void 0:T[C])||0)-(D?E.crossAxis:0);b<M?b=M:b>k&&(b=k)}return{[v]:w,[C]:b}}}},TF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:l,platform:u,elements:d}=t,{apply:h=()=>{},...m}=Kr(e,t),p=await Z1(t,m),C=Qr(s),v=oo(s),w=ur(s)==="y",{width:b,height:S}=l.floating;let E,j;C==="top"||C==="bottom"?(E=C,j=v===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(j=C,E=v==="end"?"top":"bottom");const T=S-p.top-p.bottom,L=b-p.left-p.right,D=ki(S-p[E],T),M=ki(b-p[j],L),k=!t.middlewareData.shift;let O=D,z=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(z=L),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(O=T),k&&!v){const ne=wn(p.left,0),Q=wn(p.right,0),le=wn(p.top,0),he=wn(p.bottom,0);w?z=b-2*(ne!==0||Q!==0?ne+Q:wn(p.left,p.right)):O=S-2*(le!==0||he!==0?le+he:wn(p.top,p.bottom))}await h({...t,availableWidth:z,availableHeight:O});const I=await u.getDimensions(d.floating);return b!==I.width||S!==I.height?{reset:{rects:!0}}:{}}}};function cu(){return typeof window<"u"}function lo(e){return Oy(e)?(e.nodeName||"").toLowerCase():"#document"}function Sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vr(e){var t;return(t=(Oy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oy(e){return cu()?e instanceof Node||e instanceof Sn(e).Node:!1}function qn(e){return cu()?e instanceof Element||e instanceof Sn(e).Element:!1}function pr(e){return cu()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}function mp(e){return!cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}const NF=new Set(["inline","contents"]);function fl(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!NF.has(s)}const RF=new Set(["table","td","th"]);function DF(e){return RF.has(lo(e))}const kF=[":popover-open",":modal"];function uu(e){return kF.some(t=>{try{return e.matches(t)}catch{return!1}})}const OF=["transform","translate","scale","rotate","perspective"],_F=["transform","translate","scale","rotate","perspective","filter"],PF=["paint","layout","strict","content"];function f8(e){const t=d8(),n=qn(e)?Kn(e):e;return OF.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||_F.some(i=>(n.willChange||"").includes(i))||PF.some(i=>(n.contain||"").includes(i))}function VF(e){let t=Oi(e);for(;pr(t)&&!Ws(t);){if(f8(t))return t;if(uu(t))return null;t=Oi(t)}return null}function d8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zF=new Set(["html","body","#document"]);function Ws(e){return zF.has(lo(e))}function Kn(e){return Sn(e).getComputedStyle(e)}function fu(e){return qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oi(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mp(e)&&e.host||vr(e);return mp(t)?t.host:t}function _y(e){const t=Oi(e);return Ws(t)?e.ownerDocument?e.ownerDocument.body:e.body:pr(t)&&fl(t)?t:_y(t)}function G1(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=_y(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),u=Sn(s);if(l){const d=F4(u);return t.concat(u,u.visualViewport||[],fl(s)?s:[],d&&n?G1(d):[])}return t.concat(s,G1(s,[],n))}function F4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Py(e){const t=Kn(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=pr(e),l=s?e.offsetWidth:n,u=s?e.offsetHeight:i,d=Rc(n)!==l||Rc(i)!==u;return d&&(n=l,i=u),{width:n,height:i,$:d}}function h8(e){return qn(e)?e:e.contextElement}function Is(e){const t=h8(e);if(!pr(t))return hr(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=Py(t);let u=(l?Rc(n.width):n.width)/i,d=(l?Rc(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const FF=hr(0);function Vy(e){const t=Sn(e);return!d8()||!t.visualViewport?FF:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BF(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sn(e)?!1:t}function Ma(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=h8(e);let u=hr(1);t&&(i?qn(i)&&(u=Is(i)):u=Is(e));const d=BF(l,n,i)?Vy(l):hr(0);let h=(s.left+d.x)/u.x,m=(s.top+d.y)/u.y,p=s.width/u.x,C=s.height/u.y;if(l){const v=Sn(l),w=i&&qn(i)?Sn(i):i;let b=v,S=F4(b);for(;S&&i&&w!==b;){const E=Is(S),j=S.getBoundingClientRect(),T=Kn(S),L=j.left+(S.clientLeft+parseFloat(T.paddingLeft))*E.x,D=j.top+(S.clientTop+parseFloat(T.paddingTop))*E.y;h*=E.x,m*=E.y,p*=E.x,C*=E.y,h+=L,m+=D,b=Sn(S),S=F4(b)}}return kc({width:p,height:C,x:h,y:m})}function du(e,t){const n=fu(e).scrollLeft;return t?t.left+n:Ma(vr(e)).left+n}function zy(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-du(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function UF(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",u=vr(i),d=t?uu(t.floating):!1;if(i===u||d&&l)return n;let h={scrollLeft:0,scrollTop:0},m=hr(1);const p=hr(0),C=pr(i);if((C||!C&&!l)&&((lo(i)!=="body"||fl(u))&&(h=fu(i)),pr(i))){const w=Ma(i);m=Is(i),p.x=w.x+i.clientLeft,p.y=w.y+i.clientTop}const v=u&&!C&&!l?zy(u,h):hr(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+p.x+v.x,y:n.y*m.y-h.scrollTop*m.y+p.y+v.y}}function HF(e){return Array.from(e.getClientRects())}function IF(e){const t=vr(e),n=fu(e),i=e.ownerDocument.body,s=wn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=wn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+du(e);const d=-n.scrollTop;return Kn(i).direction==="rtl"&&(u+=wn(t.clientWidth,i.clientWidth)-s),{width:s,height:l,x:u,y:d}}const pp=25;function ZF(e,t){const n=Sn(e),i=vr(e),s=n.visualViewport;let l=i.clientWidth,u=i.clientHeight,d=0,h=0;if(s){l=s.width,u=s.height;const p=d8();(!p||p&&t==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}const m=du(i);if(m<=0){const p=i.ownerDocument,C=p.body,v=getComputedStyle(C),w=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,b=Math.abs(i.clientWidth-C.clientWidth-w);b<=pp&&(l-=b)}else m<=pp&&(l+=m);return{width:l,height:u,x:d,y:h}}const GF=new Set(["absolute","fixed"]);function YF(e,t){const n=Ma(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=pr(e)?Is(e):hr(1),u=e.clientWidth*l.x,d=e.clientHeight*l.y,h=s*l.x,m=i*l.y;return{width:u,height:d,x:h,y:m}}function gp(e,t,n){let i;if(t==="viewport")i=ZF(e,n);else if(t==="document")i=IF(vr(e));else if(qn(t))i=YF(t,n);else{const s=Vy(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return kc(i)}function Fy(e,t){const n=Oi(e);return n===t||!qn(n)||Ws(n)?!1:Kn(n).position==="fixed"||Fy(n,t)}function $F(e,t){const n=t.get(e);if(n)return n;let i=G1(e,[],!1).filter(d=>qn(d)&&lo(d)!=="body"),s=null;const l=Kn(e).position==="fixed";let u=l?Oi(e):e;for(;qn(u)&&!Ws(u);){const d=Kn(u),h=f8(u);!h&&d.position==="fixed"&&(s=null),(l?!h&&!s:!h&&d.position==="static"&&!!s&&GF.has(s.position)||fl(u)&&!h&&Fy(e,u))?i=i.filter(p=>p!==u):s=d,u=Oi(u)}return t.set(e,i),i}function WF(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const u=[...n==="clippingAncestors"?uu(t)?[]:$F(t,this._c):[].concat(n),i],d=u[0],h=u.reduce((m,p)=>{const C=gp(t,p,s);return m.top=wn(C.top,m.top),m.right=ki(C.right,m.right),m.bottom=ki(C.bottom,m.bottom),m.left=wn(C.left,m.left),m},gp(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function qF(e){const{width:t,height:n}=Py(e);return{width:t,height:n}}function KF(e,t,n){const i=pr(t),s=vr(t),l=n==="fixed",u=Ma(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=hr(0);function m(){h.x=du(s)}if(i||!i&&!l)if((lo(t)!=="body"||fl(s))&&(d=fu(t)),i){const w=Ma(t,!0,l,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}else s&&m();l&&!i&&s&&m();const p=s&&!i&&!l?zy(s,d):hr(0),C=u.left+d.scrollLeft-h.x-p.x,v=u.top+d.scrollTop-h.y-p.y;return{x:C,y:v,width:u.width,height:u.height}}function L7(e){return Kn(e).position==="static"}function Cp(e,t){if(!pr(e)||Kn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vr(e)===n&&(n=n.ownerDocument.body),n}function By(e,t){const n=Sn(e);if(uu(e))return n;if(!pr(e)){let s=Oi(e);for(;s&&!Ws(s);){if(qn(s)&&!L7(s))return s;s=Oi(s)}return n}let i=Cp(e,t);for(;i&&DF(i)&&L7(i);)i=Cp(i,t);return i&&Ws(i)&&L7(i)&&!f8(i)?n:i||VF(e)||n}const QF=async function(e){const t=this.getOffsetParent||By,n=this.getDimensions,i=await n(e.floating);return{reference:KF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function XF(e){return Kn(e).direction==="rtl"}const JF={convertOffsetParentRelativeRectToViewportRelativeRect:UF,getDocumentElement:vr,getClippingRect:WF,getOffsetParent:By,getElementRects:QF,getClientRects:HF,getDimensions:qF,getScale:Is,isElement:qn,isRTL:XF};function Uy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eB(e,t){let n=null,i;const s=vr(e);function l(){var d;clearTimeout(i),(d=n)==null||d.disconnect(),n=null}function u(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const m=e.getBoundingClientRect(),{left:p,top:C,width:v,height:w}=m;if(d||t(),!v||!w)return;const b=H2(C),S=H2(s.clientWidth-(p+v)),E=H2(s.clientHeight-(C+w)),j=H2(p),L={rootMargin:-b+"px "+-S+"px "+-E+"px "+-j+"px",threshold:wn(0,ki(1,h))||1};let D=!0;function M(k){const O=k[0].intersectionRatio;if(O!==h){if(!D)return u();O?u(!1,O):i=setTimeout(()=>{u(!1,1e-7)},1e3)}O===1&&!Uy(m,e.getBoundingClientRect())&&u(),D=!1}try{n=new IntersectionObserver(M,{...L,root:s.ownerDocument})}catch{n=new IntersectionObserver(M,L)}n.observe(e)}return u(!0),l}function tB(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,m=h8(e),p=s||l?[...m?G1(m):[],...G1(t)]:[];p.forEach(j=>{s&&j.addEventListener("scroll",n,{passive:!0}),l&&j.addEventListener("resize",n)});const C=m&&d?eB(m,n):null;let v=-1,w=null;u&&(w=new ResizeObserver(j=>{let[T]=j;T&&T.target===m&&w&&(w.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var L;(L=w)==null||L.observe(t)})),n()}),m&&!h&&w.observe(m),w.observe(t));let b,S=h?Ma(e):null;h&&E();function E(){const j=Ma(e);S&&!Uy(S,j)&&n(),S=j,b=requestAnimationFrame(E)}return n(),()=>{var j;p.forEach(T=>{s&&T.removeEventListener("scroll",n),l&&T.removeEventListener("resize",n)}),C==null||C(),(j=w)==null||j.disconnect(),w=null,h&&cancelAnimationFrame(b)}}const nB=AF,rB=MF,iB=SF,aB=TF,sB=EF,vp=wF,oB=LF,lB=(e,t,n)=>{const i=new Map,s={platform:JF,...n},l={...s.platform,_c:i};return bF(e,t,{...s,platform:l})};var cB=typeof document<"u",uB=function(){},dc=cB?y.useLayoutEffect:uB;function Oc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Oc(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const l=s[i];if(!(l==="_owner"&&e.$$typeof)&&!Oc(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Hy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xp(e,t){const n=Hy(e);return Math.round(t*n)/n}function T7(e){const t=y.useRef(e);return dc(()=>{t.current=e}),t}function fB(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:h,open:m}=e,[p,C]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,w]=y.useState(i);Oc(v,i)||w(i);const[b,S]=y.useState(null),[E,j]=y.useState(null),T=y.useCallback(V=>{V!==k.current&&(k.current=V,S(V))},[]),L=y.useCallback(V=>{V!==O.current&&(O.current=V,j(V))},[]),D=l||b,M=u||E,k=y.useRef(null),O=y.useRef(null),z=y.useRef(p),I=h!=null,ne=T7(h),Q=T7(s),le=T7(m),he=y.useCallback(()=>{if(!k.current||!O.current)return;const V={placement:t,strategy:n,middleware:v};Q.current&&(V.platform=Q.current),lB(k.current,O.current,V).then(q=>{const R={...q,isPositioned:le.current!==!1};ie.current&&!Oc(z.current,R)&&(z.current=R,l6.flushSync(()=>{C(R)}))})},[v,t,n,Q,le]);dc(()=>{m===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,C(V=>({...V,isPositioned:!1})))},[m]);const ie=y.useRef(!1);dc(()=>(ie.current=!0,()=>{ie.current=!1}),[]),dc(()=>{if(D&&(k.current=D),M&&(O.current=M),D&&M){if(ne.current)return ne.current(D,M,he);he()}},[D,M,he,ne,I]);const J=y.useMemo(()=>({reference:k,floating:O,setReference:T,setFloating:L}),[T,L]),_=y.useMemo(()=>({reference:D,floating:M}),[D,M]),U=y.useMemo(()=>{const V={position:n,left:0,top:0};if(!_.floating)return V;const q=xp(_.floating,p.x),R=xp(_.floating,p.y);return d?{...V,transform:"translate("+q+"px, "+R+"px)",...Hy(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:R}},[n,d,_.floating,p.x,p.y]);return y.useMemo(()=>({...p,update:he,refs:J,elements:_,floatingStyles:U}),[p,he,J,_,U])}const dB=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?vp({element:i.current,padding:s}).fn(n):{}:i?vp({element:i,padding:s}).fn(n):{}}}},hB=(e,t)=>({...nB(e),options:[e,t]}),mB=(e,t)=>({...rB(e),options:[e,t]}),pB=(e,t)=>({...oB(e),options:[e,t]}),gB=(e,t)=>({...iB(e),options:[e,t]}),CB=(e,t)=>({...aB(e),options:[e,t]}),vB=(e,t)=>({...sB(e),options:[e,t]}),xB=(e,t)=>({...dB(e),options:[e,t]});var yB="Arrow",Iy=y.forwardRef((e,t)=>{const{children:n,width:i=10,height:s=5,...l}=e;return c.jsx(Re.svg,{...l,ref:t,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Iy.displayName=yB;var bB=Iy;function wB(e){const[t,n]=y.useState(void 0);return Fn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,d;if("borderBoxSize"in l){const h=l.borderBoxSize,m=Array.isArray(h)?h[0]:h;u=m.inlineSize,d=m.blockSize}else u=e.offsetWidth,d=e.offsetHeight;n({width:u,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var m8="Popper",[Zy,Gy]=Jn(m8),[SB,Yy]=Zy(m8),$y=e=>{const{__scopePopper:t,children:n}=e,[i,s]=y.useState(null);return c.jsx(SB,{scope:t,anchor:i,onAnchorChange:s,children:n})};$y.displayName=m8;var Wy="PopperAnchor",qy=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...s}=e,l=Yy(Wy,n),u=y.useRef(null),d=Rt(t,u),h=y.useRef(null);return y.useEffect(()=>{const m=h.current;h.current=(i==null?void 0:i.current)||u.current,m!==h.current&&l.onAnchorChange(h.current)}),i?null:c.jsx(Re.div,{...s,ref:d})});qy.displayName=Wy;var p8="PopperContent",[EB,jB]=Zy(p8),Ky=y.forwardRef((e,t)=>{var de,ye,be,Ve,lt,At;const{__scopePopper:n,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:C="partial",hideWhenDetached:v=!1,updatePositionStrategy:w="optimized",onPlaced:b,...S}=e,E=Yy(p8,n),[j,T]=y.useState(null),L=Rt(t,Vt=>T(Vt)),[D,M]=y.useState(null),k=wB(D),O=(k==null?void 0:k.width)??0,z=(k==null?void 0:k.height)??0,I=i+(l!=="center"?"-"+l:""),ne=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Q=Array.isArray(m)?m:[m],le=Q.length>0,he={padding:ne,boundary:Q.filter(MB),altBoundary:le},{refs:ie,floatingStyles:J,placement:_,isPositioned:U,middlewareData:V}=fB({strategy:"fixed",placement:I,whileElementsMounted:(...Vt)=>tB(...Vt,{animationFrame:w==="always"}),elements:{reference:E.anchor},middleware:[hB({mainAxis:s+z,alignmentAxis:u}),h&&mB({mainAxis:!0,crossAxis:!1,limiter:C==="partial"?pB():void 0,...he}),h&&gB({...he}),CB({...he,apply:({elements:Vt,rects:ei,availableWidth:uo,availableHeight:fo})=>{const{width:en,height:ho}=ei.reference,Hn=Vt.floating.style;Hn.setProperty("--radix-popper-available-width",`${uo}px`),Hn.setProperty("--radix-popper-available-height",`${fo}px`),Hn.setProperty("--radix-popper-anchor-width",`${en}px`),Hn.setProperty("--radix-popper-anchor-height",`${ho}px`)}}),D&&xB({element:D,padding:d}),LB({arrowWidth:O,arrowHeight:z}),v&&vB({strategy:"referenceHidden",...he})]}),[q,R]=Jy(_),Z=mr(b);Fn(()=>{U&&(Z==null||Z())},[U,Z]);const F=(de=V.arrow)==null?void 0:de.x,G=(ye=V.arrow)==null?void 0:ye.y,ee=((be=V.arrow)==null?void 0:be.centerOffset)!==0,[se,ce]=y.useState();return Fn(()=>{j&&ce(window.getComputedStyle(j).zIndex)},[j]),c.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:U?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(Ve=V.transformOrigin)==null?void 0:Ve.x,(lt=V.transformOrigin)==null?void 0:lt.y].join(" "),...((At=V.hide)==null?void 0:At.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(EB,{scope:n,placedSide:q,onArrowChange:M,arrowX:F,arrowY:G,shouldHideArrow:ee,children:c.jsx(Re.div,{"data-side":q,"data-align":R,...S,ref:L,style:{...S.style,animation:U?void 0:"none"}})})})});Ky.displayName=p8;var Qy="PopperArrow",AB={top:"bottom",right:"left",bottom:"top",left:"right"},Xy=y.forwardRef(function(t,n){const{__scopePopper:i,...s}=t,l=jB(Qy,i),u=AB[l.placedSide];return c.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:c.jsx(bB,{...s,ref:n,style:{...s.style,display:"block"}})})});Xy.displayName=Qy;function MB(e){return e!==null}var LB=e=>({name:"transformOrigin",options:e,fn(t){var E,j,T;const{placement:n,rects:i,middlewareData:s}=t,u=((E=s.arrow)==null?void 0:E.centerOffset)!==0,d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[m,p]=Jy(n),C={start:"0%",center:"50%",end:"100%"}[p],v=(((j=s.arrow)==null?void 0:j.x)??0)+d/2,w=(((T=s.arrow)==null?void 0:T.y)??0)+h/2;let b="",S="";return m==="bottom"?(b=u?C:`${v}px`,S=`${-h}px`):m==="top"?(b=u?C:`${v}px`,S=`${i.floating.height+h}px`):m==="right"?(b=`${-h}px`,S=u?C:`${w}px`):m==="left"&&(b=`${i.floating.width+h}px`,S=u?C:`${w}px`),{data:{x:b,y:S}}}});function Jy(e){const[t,n="center"]=e.split("-");return[t,n]}var TB=$y,NB=qy,RB=Ky,DB=Xy,N7="rovingFocusGroup.onEntryFocus",kB={bubbles:!1,cancelable:!0},dl="RovingFocusGroup",[B4,eb,OB]=o8(dl),[_B,hu]=Jn(dl,[OB]),[PB,VB]=_B(dl),tb=y.forwardRef((e,t)=>c.jsx(B4.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(B4.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(zB,{...e,ref:t})})}));tb.displayName=dl;var zB=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:s=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:p=!1,...C}=e,v=y.useRef(null),w=Rt(t,v),b=lu(l),[S,E]=Na({prop:u,defaultProp:d??null,onChange:h,caller:dl}),[j,T]=y.useState(!1),L=mr(m),D=eb(n),M=y.useRef(!1),[k,O]=y.useState(0);return y.useEffect(()=>{const z=v.current;if(z)return z.addEventListener(N7,L),()=>z.removeEventListener(N7,L)},[L]),c.jsx(PB,{scope:n,orientation:i,dir:b,loop:s,currentTabStopId:S,onItemFocus:y.useCallback(z=>E(z),[E]),onItemShiftTab:y.useCallback(()=>T(!0),[]),onFocusableItemAdd:y.useCallback(()=>O(z=>z+1),[]),onFocusableItemRemove:y.useCallback(()=>O(z=>z-1),[]),children:c.jsx(Re.div,{tabIndex:j||k===0?-1:0,"data-orientation":i,...C,ref:w,style:{outline:"none",...e.style},onMouseDown:Ne(e.onMouseDown,()=>{M.current=!0}),onFocus:Ne(e.onFocus,z=>{const I=!M.current;if(z.target===z.currentTarget&&I&&!j){const ne=new CustomEvent(N7,kB);if(z.currentTarget.dispatchEvent(ne),!ne.defaultPrevented){const Q=D().filter(_=>_.focusable),le=Q.find(_=>_.active),he=Q.find(_=>_.id===S),J=[le,he,...Q].filter(Boolean).map(_=>_.ref.current);ib(J,p)}}M.current=!1}),onBlur:Ne(e.onBlur,()=>T(!1))})})}),nb="RovingFocusGroupItem",rb=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:s=!1,tabStopId:l,children:u,...d}=e,h=Qt(),m=l||h,p=VB(nb,n),C=p.currentTabStopId===m,v=eb(n),{onFocusableItemAdd:w,onFocusableItemRemove:b,currentTabStopId:S}=p;return y.useEffect(()=>{if(i)return w(),()=>b()},[i,w,b]),c.jsx(B4.ItemSlot,{scope:n,id:m,focusable:i,active:s,children:c.jsx(Re.span,{tabIndex:C?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:Ne(e.onMouseDown,E=>{i?p.onItemFocus(m):E.preventDefault()}),onFocus:Ne(e.onFocus,()=>p.onItemFocus(m)),onKeyDown:Ne(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){p.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const j=UB(E,p.orientation,p.dir);if(j!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let L=v().filter(D=>D.focusable).map(D=>D.ref.current);if(j==="last")L.reverse();else if(j==="prev"||j==="next"){j==="prev"&&L.reverse();const D=L.indexOf(E.currentTarget);L=p.loop?HB(L,D+1):L.slice(D+1)}setTimeout(()=>ib(L))}}),children:typeof u=="function"?u({isCurrentTabStop:C,hasTabStop:S!=null}):u})})});rb.displayName=nb;var FB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function BB(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function UB(e,t,n){const i=BB(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return FB[i]}function ib(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function HB(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var ab=tb,sb=rb,U4=["Enter"," "],IB=["ArrowDown","PageUp","Home"],ob=["ArrowUp","PageDown","End"],ZB=[...IB,...ob],GB={ltr:[...U4,"ArrowRight"],rtl:[...U4,"ArrowLeft"]},YB={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hl="Menu",[Y1,$B,WB]=o8(hl),[Da,lb]=Jn(hl,[WB,Gy,hu]),mu=Gy(),cb=hu(),[qB,ka]=Da(hl),[KB,ml]=Da(hl),ub=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:s,onOpenChange:l,modal:u=!0}=e,d=mu(t),[h,m]=y.useState(null),p=y.useRef(!1),C=mr(l),v=lu(s);return y.useEffect(()=>{const w=()=>{p.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>p.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(TB,{...d,children:c.jsx(qB,{scope:t,open:n,onOpenChange:C,content:h,onContentChange:m,children:c.jsx(KB,{scope:t,onClose:y.useCallback(()=>C(!1),[C]),isUsingKeyboardRef:p,dir:v,modal:u,children:i})})})};ub.displayName=hl;var QB="MenuAnchor",g8=y.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,s=mu(n);return c.jsx(NB,{...s,...i,ref:t})});g8.displayName=QB;var C8="MenuPortal",[XB,fb]=Da(C8,{forceMount:void 0}),db=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:s}=e,l=ka(C8,t);return c.jsx(XB,{scope:t,forceMount:n,children:c.jsx(Cr,{present:n||l.open,children:c.jsx(Z6,{asChild:!0,container:s,children:i})})})};db.displayName=C8;var Vn="MenuContent",[JB,v8]=Da(Vn),hb=y.forwardRef((e,t)=>{const n=fb(Vn,e.__scopeMenu),{forceMount:i=n.forceMount,...s}=e,l=ka(Vn,e.__scopeMenu),u=ml(Vn,e.__scopeMenu);return c.jsx(Y1.Provider,{scope:e.__scopeMenu,children:c.jsx(Cr,{present:i||l.open,children:c.jsx(Y1.Slot,{scope:e.__scopeMenu,children:u.modal?c.jsx(eU,{...s,ref:t}):c.jsx(tU,{...s,ref:t})})})})}),eU=y.forwardRef((e,t)=>{const n=ka(Vn,e.__scopeMenu),i=y.useRef(null),s=Rt(t,i);return y.useEffect(()=>{const l=i.current;if(l)return Wv(l)},[]),c.jsx(x8,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ne(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tU=y.forwardRef((e,t)=>{const n=ka(Vn,e.__scopeMenu);return c.jsx(x8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),nU=$s("MenuContent.ScrollLock"),x8=y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:C,onInteractOutside:v,onDismiss:w,disableOutsideScroll:b,...S}=e,E=ka(Vn,n),j=ml(Vn,n),T=mu(n),L=cb(n),D=$B(n),[M,k]=y.useState(null),O=y.useRef(null),z=Rt(t,O,E.onContentChange),I=y.useRef(0),ne=y.useRef(""),Q=y.useRef(0),le=y.useRef(null),he=y.useRef("right"),ie=y.useRef(0),J=b?G6:y.Fragment,_=b?{as:nU,allowPinchZoom:!0}:void 0,U=q=>{var de,ye;const R=ne.current+q,Z=D().filter(be=>!be.disabled),F=document.activeElement,G=(de=Z.find(be=>be.ref.current===F))==null?void 0:de.textValue,ee=Z.map(be=>be.textValue),se=mU(ee,R,G),ce=(ye=Z.find(be=>be.textValue===se))==null?void 0:ye.ref.current;(function be(Ve){ne.current=Ve,window.clearTimeout(I.current),Ve!==""&&(I.current=window.setTimeout(()=>be(""),1e3))})(R),ce&&setTimeout(()=>ce.focus())};y.useEffect(()=>()=>window.clearTimeout(I.current),[]),Fv();const V=y.useCallback(q=>{var Z,F;return he.current===((Z=le.current)==null?void 0:Z.side)&&gU(q,(F=le.current)==null?void 0:F.area)},[]);return c.jsx(JB,{scope:n,searchRef:ne,onItemEnter:y.useCallback(q=>{V(q)&&q.preventDefault()},[V]),onItemLeave:y.useCallback(q=>{var R;V(q)||((R=O.current)==null||R.focus(),k(null))},[V]),onTriggerLeave:y.useCallback(q=>{V(q)&&q.preventDefault()},[V]),pointerGraceTimerRef:Q,onPointerGraceIntentChange:y.useCallback(q=>{le.current=q},[]),children:c.jsx(J,{..._,children:c.jsx(I6,{asChild:!0,trapped:s,onMountAutoFocus:Ne(l,q=>{var R;q.preventDefault(),(R=O.current)==null||R.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:c.jsx(H6,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:C,onInteractOutside:v,onDismiss:w,children:c.jsx(ab,{asChild:!0,...L,dir:j.dir,orientation:"vertical",loop:i,currentTabStopId:M,onCurrentTabStopIdChange:k,onEntryFocus:Ne(h,q=>{j.isUsingKeyboardRef.current||q.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(RB,{role:"menu","aria-orientation":"vertical","data-state":Tb(E.open),"data-radix-menu-content":"",dir:j.dir,...T,...S,ref:z,style:{outline:"none",...S.style},onKeyDown:Ne(S.onKeyDown,q=>{const Z=q.target.closest("[data-radix-menu-content]")===q.currentTarget,F=q.ctrlKey||q.altKey||q.metaKey,G=q.key.length===1;Z&&(q.key==="Tab"&&q.preventDefault(),!F&&G&&U(q.key));const ee=O.current;if(q.target!==ee||!ZB.includes(q.key))return;q.preventDefault();const ce=D().filter(de=>!de.disabled).map(de=>de.ref.current);ob.includes(q.key)&&ce.reverse(),dU(ce)}),onBlur:Ne(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(I.current),ne.current="")}),onPointerMove:Ne(e.onPointerMove,$1(q=>{const R=q.target,Z=ie.current!==q.clientX;if(q.currentTarget.contains(R)&&Z){const F=q.clientX>ie.current?"right":"left";he.current=F,ie.current=q.clientX}}))})})})})})})});hb.displayName=Vn;var rU="MenuGroup",y8=y.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return c.jsx(Re.div,{role:"group",...i,ref:t})});y8.displayName=rU;var iU="MenuLabel",mb=y.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return c.jsx(Re.div,{...i,ref:t})});mb.displayName=iU;var _c="MenuItem",yp="menu.itemSelect",pu=y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...s}=e,l=y.useRef(null),u=ml(_c,e.__scopeMenu),d=v8(_c,e.__scopeMenu),h=Rt(t,l),m=y.useRef(!1),p=()=>{const C=l.current;if(!n&&C){const v=new CustomEvent(yp,{bubbles:!0,cancelable:!0});C.addEventListener(yp,w=>i==null?void 0:i(w),{once:!0}),_v(C,v),v.defaultPrevented?m.current=!1:u.onClose()}};return c.jsx(pb,{...s,ref:h,disabled:n,onClick:Ne(e.onClick,p),onPointerDown:C=>{var v;(v=e.onPointerDown)==null||v.call(e,C),m.current=!0},onPointerUp:Ne(e.onPointerUp,C=>{var v;m.current||(v=C.currentTarget)==null||v.click()}),onKeyDown:Ne(e.onKeyDown,C=>{const v=d.searchRef.current!=="";n||v&&C.key===" "||U4.includes(C.key)&&(C.currentTarget.click(),C.preventDefault())})})});pu.displayName=_c;var pb=y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:s,...l}=e,u=v8(_c,n),d=cb(n),h=y.useRef(null),m=Rt(t,h),[p,C]=y.useState(!1),[v,w]=y.useState("");return y.useEffect(()=>{const b=h.current;b&&w((b.textContent??"").trim())},[l.children]),c.jsx(Y1.ItemSlot,{scope:n,disabled:i,textValue:s??v,children:c.jsx(sb,{asChild:!0,...d,focusable:!i,children:c.jsx(Re.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...l,ref:m,onPointerMove:Ne(e.onPointerMove,$1(b=>{i?u.onItemLeave(b):(u.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ne(e.onPointerLeave,$1(b=>u.onItemLeave(b))),onFocus:Ne(e.onFocus,()=>C(!0)),onBlur:Ne(e.onBlur,()=>C(!1))})})})}),aU="MenuCheckboxItem",gb=y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...s}=e;return c.jsx(bb,{scope:e.__scopeMenu,checked:n,children:c.jsx(pu,{role:"menuitemcheckbox","aria-checked":Pc(n)?"mixed":n,...s,ref:t,"data-state":w8(n),onSelect:Ne(s.onSelect,()=>i==null?void 0:i(Pc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});gb.displayName=aU;var Cb="MenuRadioGroup",[sU,oU]=Da(Cb,{value:void 0,onValueChange:()=>{}}),vb=y.forwardRef((e,t)=>{const{value:n,onValueChange:i,...s}=e,l=mr(i);return c.jsx(sU,{scope:e.__scopeMenu,value:n,onValueChange:l,children:c.jsx(y8,{...s,ref:t})})});vb.displayName=Cb;var xb="MenuRadioItem",yb=y.forwardRef((e,t)=>{const{value:n,...i}=e,s=oU(xb,e.__scopeMenu),l=n===s.value;return c.jsx(bb,{scope:e.__scopeMenu,checked:l,children:c.jsx(pu,{role:"menuitemradio","aria-checked":l,...i,ref:t,"data-state":w8(l),onSelect:Ne(i.onSelect,()=>{var u;return(u=s.onValueChange)==null?void 0:u.call(s,n)},{checkForDefaultPrevented:!1})})})});yb.displayName=xb;var b8="MenuItemIndicator",[bb,lU]=Da(b8,{checked:!1}),wb=y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...s}=e,l=lU(b8,n);return c.jsx(Cr,{present:i||Pc(l.checked)||l.checked===!0,children:c.jsx(Re.span,{...s,ref:t,"data-state":w8(l.checked)})})});wb.displayName=b8;var cU="MenuSeparator",Sb=y.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return c.jsx(Re.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});Sb.displayName=cU;var uU="MenuArrow",Eb=y.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,s=mu(n);return c.jsx(DB,{...s,...i,ref:t})});Eb.displayName=uU;var fU="MenuSub",[IK,jb]=Da(fU),j1="MenuSubTrigger",Ab=y.forwardRef((e,t)=>{const n=ka(j1,e.__scopeMenu),i=ml(j1,e.__scopeMenu),s=jb(j1,e.__scopeMenu),l=v8(j1,e.__scopeMenu),u=y.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=l,m={__scopeMenu:e.__scopeMenu},p=y.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return y.useEffect(()=>p,[p]),y.useEffect(()=>{const C=d.current;return()=>{window.clearTimeout(C),h(null)}},[d,h]),c.jsx(g8,{asChild:!0,...m,children:c.jsx(pb,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":Tb(n.open),...e,ref:Wr(t,s.onTriggerChange),onClick:C=>{var v;(v=e.onClick)==null||v.call(e,C),!(e.disabled||C.defaultPrevented)&&(C.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ne(e.onPointerMove,$1(C=>{l.onItemEnter(C),!C.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:Ne(e.onPointerLeave,$1(C=>{var w,b;p();const v=(w=n.content)==null?void 0:w.getBoundingClientRect();if(v){const S=(b=n.content)==null?void 0:b.dataset.side,E=S==="right",j=E?-5:5,T=v[E?"left":"right"],L=v[E?"right":"left"];l.onPointerGraceIntentChange({area:[{x:C.clientX+j,y:C.clientY},{x:T,y:v.top},{x:L,y:v.top},{x:L,y:v.bottom},{x:T,y:v.bottom}],side:S}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(C),C.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:Ne(e.onKeyDown,C=>{var w;const v=l.searchRef.current!=="";e.disabled||v&&C.key===" "||GB[i.dir].includes(C.key)&&(n.onOpenChange(!0),(w=n.content)==null||w.focus(),C.preventDefault())})})})});Ab.displayName=j1;var Mb="MenuSubContent",Lb=y.forwardRef((e,t)=>{const n=fb(Vn,e.__scopeMenu),{forceMount:i=n.forceMount,...s}=e,l=ka(Vn,e.__scopeMenu),u=ml(Vn,e.__scopeMenu),d=jb(Mb,e.__scopeMenu),h=y.useRef(null),m=Rt(t,h);return c.jsx(Y1.Provider,{scope:e.__scopeMenu,children:c.jsx(Cr,{present:i||l.open,children:c.jsx(Y1.Slot,{scope:e.__scopeMenu,children:c.jsx(x8,{id:d.contentId,"aria-labelledby":d.triggerId,...s,ref:m,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var C;u.isUsingKeyboardRef.current&&((C=h.current)==null||C.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:Ne(e.onFocusOutside,p=>{p.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:Ne(e.onEscapeKeyDown,p=>{u.onClose(),p.preventDefault()}),onKeyDown:Ne(e.onKeyDown,p=>{var w;const C=p.currentTarget.contains(p.target),v=YB[u.dir].includes(p.key);C&&v&&(l.onOpenChange(!1),(w=d.trigger)==null||w.focus(),p.preventDefault())})})})})})});Lb.displayName=Mb;function Tb(e){return e?"open":"closed"}function Pc(e){return e==="indeterminate"}function w8(e){return Pc(e)?"indeterminate":e?"checked":"unchecked"}function dU(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function hU(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function mU(e,t,n){const s=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=hU(e,Math.max(l,0));s.length===1&&(u=u.filter(m=>m!==n));const h=u.find(m=>m.toLowerCase().startsWith(s.toLowerCase()));return h!==n?h:void 0}function pU(e,t){const{x:n,y:i}=e;let s=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const d=t[l],h=t[u],m=d.x,p=d.y,C=h.x,v=h.y;p>i!=v>i&&n<(C-m)*(i-p)/(v-p)+m&&(s=!s)}return s}function gU(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pU(n,t)}function $1(e){return t=>t.pointerType==="mouse"?e(t):void 0}var CU=ub,vU=g8,xU=db,yU=hb,bU=y8,wU=mb,SU=pu,EU=gb,jU=vb,AU=yb,MU=wb,LU=Sb,TU=Eb,NU=Ab,RU=Lb,gu="DropdownMenu",[DU,ZK]=Jn(gu,[lb]),Jt=lb(),[kU,Nb]=DU(gu),Rb=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:s,defaultOpen:l,onOpenChange:u,modal:d=!0}=e,h=Jt(t),m=y.useRef(null),[p,C]=Na({prop:s,defaultProp:l??!1,onChange:u,caller:gu});return c.jsx(kU,{scope:t,triggerId:Qt(),triggerRef:m,contentId:Qt(),open:p,onOpenChange:C,onOpenToggle:y.useCallback(()=>C(v=>!v),[C]),modal:d,children:c.jsx(CU,{...h,open:p,onOpenChange:C,dir:i,modal:d,children:n})})};Rb.displayName=gu;var Db="DropdownMenuTrigger",kb=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...s}=e,l=Nb(Db,n),u=Jt(n);return c.jsx(vU,{asChild:!0,...u,children:c.jsx(Re.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:Wr(t,l.triggerRef),onPointerDown:Ne(e.onPointerDown,d=>{!i&&d.button===0&&d.ctrlKey===!1&&(l.onOpenToggle(),l.open||d.preventDefault())}),onKeyDown:Ne(e.onKeyDown,d=>{i||(["Enter"," "].includes(d.key)&&l.onOpenToggle(),d.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});kb.displayName=Db;var OU="DropdownMenuPortal",Ob=e=>{const{__scopeDropdownMenu:t,...n}=e,i=Jt(t);return c.jsx(xU,{...i,...n})};Ob.displayName=OU;var _b="DropdownMenuContent",Pb=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Nb(_b,n),l=Jt(n),u=y.useRef(!1);return c.jsx(yU,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...i,ref:t,onCloseAutoFocus:Ne(e.onCloseAutoFocus,d=>{var h;u.current||(h=s.triggerRef.current)==null||h.focus(),u.current=!1,d.preventDefault()}),onInteractOutside:Ne(e.onInteractOutside,d=>{const h=d.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0,p=h.button===2||m;(!s.modal||p)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pb.displayName=_b;var _U="DropdownMenuGroup",PU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(bU,{...s,...i,ref:t})});PU.displayName=_U;var VU="DropdownMenuLabel",zU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(wU,{...s,...i,ref:t})});zU.displayName=VU;var FU="DropdownMenuItem",Vb=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(SU,{...s,...i,ref:t})});Vb.displayName=FU;var BU="DropdownMenuCheckboxItem",UU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(EU,{...s,...i,ref:t})});UU.displayName=BU;var HU="DropdownMenuRadioGroup",IU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(jU,{...s,...i,ref:t})});IU.displayName=HU;var ZU="DropdownMenuRadioItem",GU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(AU,{...s,...i,ref:t})});GU.displayName=ZU;var YU="DropdownMenuItemIndicator",$U=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(MU,{...s,...i,ref:t})});$U.displayName=YU;var WU="DropdownMenuSeparator",zb=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(LU,{...s,...i,ref:t})});zb.displayName=WU;var qU="DropdownMenuArrow",KU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(TU,{...s,...i,ref:t})});KU.displayName=qU;var QU="DropdownMenuSubTrigger",XU=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(NU,{...s,...i,ref:t})});XU.displayName=QU;var JU="DropdownMenuSubContent",eH=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Jt(n);return c.jsx(RU,{...s,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eH.displayName=JU;var tH=Rb,nH=kb,rH=Ob,iH=Pb,aH=Vb,sH=zb;function oH({...e}){return c.jsx(tH,{"data-slot":"dropdown-menu",...e})}function lH({...e}){return c.jsx(nH,{"data-slot":"dropdown-menu-trigger",...e})}function cH({className:e,sideOffset:t=4,...n}){return c.jsx(rH,{children:c.jsx(iH,{"data-slot":"dropdown-menu-content",sideOffset:t,className:Ue("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function R7({className:e,inset:t,variant:n="default",...i}){return c.jsx(aH,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:Ue("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}function uH({className:e,...t}){return c.jsx(sH,{"data-slot":"dropdown-menu-separator",className:Ue("bg-border -mx-1 my-1 h-px",e),...t})}function Fb(e){const[t,n]=y.useState(()=>typeof window<"u"?window.matchMedia(e).matches:!1);return y.useEffect(()=>{if(typeof window>"u")return;const i=window.matchMedia(e);n(i.matches);const s=l=>{n(l.matches)};return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[e]),t}const bp=()=>{var n;const{user:e,logout:t}=Vi();return c.jsxs(oH,{children:[c.jsx(lH,{asChild:!0,children:c.jsxs(Hr,{className:"size-10 cursor-pointer",children:[c.jsx(Ir,{src:e!=null&&e.profile_picture_url?e==null?void 0:e.profile_picture_url:""}),c.jsx(Zr,{className:"bg-main-300",children:Ur(e==null?void 0:e.name)})]})}),c.jsxs(cH,{className:"sm:w-80 md:px-5 px-3 pt-6 pb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(Hr,{className:"md:size-16 size-12 cursor-pointer",children:[c.jsx(Ir,{src:e!=null&&e.profile_picture_url?e==null?void 0:e.profile_picture_url:""}),c.jsx(Zr,{children:Ur(e==null?void 0:e.name)})]}),c.jsxs("span",{children:[c.jsx("h4",{className:"font-bold text-base",children:e==null?void 0:e.name}),c.jsx("p",{className:"text-gray-500 text-sm",children:(n=e==null?void 0:e.grade)==null?void 0:n.name})]})]}),c.jsx(tt,{to:"/profile",children:c.jsxs(st,{className:"btn-secondary w-full h-auto text-base font-normal mt-4 py-1",children:[c.jsx("span",{children:"Edit Profile"}),c.jsx(Ee,{icon:sc,className:" size-5"})]})}),c.jsx(tt,{to:"/my-courses",children:c.jsxs(R7,{className:"flex items-center justify-between text-base cursor-pointer mt-5",children:[c.jsxs("span",{className:"flex items-center gap-2 text-neutral-900 font-light ",children:[c.jsx(Ee,{icon:C_,className:"text-neutral-900 size-5"}),"My Courses"]}),c.jsx(Ee,{icon:sc,className:"text-black size-5"})]})}),c.jsx(tt,{to:"/profile/progress",children:c.jsxs(R7,{className:"flex items-center justify-between text-base cursor-pointer mt-3",children:[c.jsxs("span",{className:"flex items-center gap-2 text-neutral-900 font-light ",children:[c.jsx(Ee,{icon:Bx,className:"text-neutral-900 size-5"}),"My Progress"]}),c.jsx(Ee,{icon:sc,className:"text-black size-5"})]})}),c.jsx(uH,{}),c.jsxs(R7,{onClick:t,className:"flex items-center text-red-500 hover:!text-red-500 hover:!bg-red-50 text-base cursor-pointer mt-3",children:[c.jsx(Ee,{icon:N_,className:"text-red-500 size-5"}),"Logout"]})]})]})};function Bb({className:e}){const t=Fb("(max-width: 768px)"),[n,i]=y.useState(!1),{isAuthenticated:s}=Vi();return y.useEffect(()=>(t&&n?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[n,t]),c.jsxs(c.Fragment,{children:[c.jsx("nav",{className:Ue("bg-[#D7F5FF96] py-4 sticky top-0 left-0 z-50 backdrop-blur-2xl",e),children:c.jsx("div",{className:"container mx-auto flex justify-between items-center",children:t?c.jsx(c.Fragment,{children:c.jsxs("div",{className:"grid grid-cols-3 place-items-center px-4 w-full",children:[c.jsx("button",{onClick:()=>i(!n),children:c.jsx(Ee,{icon:n?Yx:Gx,className:"text-main-400 size-8"})}),c.jsx("img",{src:"/logo_mobile.png",alt:"Dr. Marco logo",className:"w-auto h-12 object-contain"}),s&&c.jsx(bp,{})]})}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-16",children:[c.jsx(tt,{to:"/",children:c.jsx("img",{src:"/logo.svg",alt:"logo"})}),c.jsx("ul",{className:"flex space-x-4",children:c.jsx(tt,{to:"/courses",children:c.jsxs("li",{className:"relative flex items-center gap-2 text-black hover:text-main-400 cursor-pointer",children:[c.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M2 4.84969V16.7397C2 17.7097 2.79 18.5997 3.76 18.7197L4.07 18.7597C5.71 18.9797 8.02 19.6597 9.88 20.4397C10.53 20.7097 11.25 20.2197 11.25 19.5097V5.59969C11.25 5.22969 11.04 4.88969 10.71 4.70969C8.88 3.71969 6.11 2.83969 4.23 2.67969H4.17C2.97 2.67969 2 3.64969 2 4.84969Z",fill:"#427D8E"}),c.jsx("path",{d:"M13.29 4.70969C15.12 3.71969 17.89 2.83969 19.77 2.67969H19.84C21.04 2.67969 22.01 3.64969 22.01 4.84969V16.7397C22.01 17.7097 21.22 18.5997 20.25 18.7197L19.94 18.7597C18.3 18.9797 15.99 19.6597 14.13 20.4397C13.48 20.7097 12.76 20.2197 12.76 19.5097V5.59969C12.76 5.21969 12.96 4.88969 13.29 4.70969ZM19 7.73969H16.75C16.34 7.73969 16 8.07969 16 8.48969C16 8.90969 16.34 9.23969 16.75 9.23969H19C19.41 9.23969 19.75 8.90969 19.75 8.48969C19.75 8.07969 19.41 7.73969 19 7.73969ZM16 12.2397H19C19.41 12.2397 19.75 11.9097 19.75 11.4897C19.75 11.0797 19.41 10.7397 19 10.7397H16C15.59 10.7397 15.25 11.0797 15.25 11.4897C15.25 11.9097 15.59 12.2397 16 12.2397Z",fill:"#427D8E"})]}),c.jsxs("span",{className:"flex items-center gap-1",children:["Courses",c.jsx(Ee,{icon:sc})]})]})})})]}),c.jsx("div",{className:"flex items-center space-x-4",children:c.jsx("div",{className:"flex items-center gap-6 rounded-full px-4 py-2 bg-main-400 ",children:c.jsx(bp,{})})})]})})}),c.jsx(B1,{children:t&&n&&c.jsx(ln.div,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50},transition:{duration:.3,ease:"easeInOut"},className:"fixed top-[80px] left-0 w-full  bg-main-400/20 backdrop-blur-2xl z-40 p-8",children:c.jsxs("div",{className:"flex flex-col items-center justify-between h-full ",children:[c.jsxs("ul",{className:"flex flex-col items-center space-y-8 text-2xl mb-8",children:[c.jsx("li",{children:c.jsx(tt,{to:"/",onClick:()=>i(!1),className:"text-white hover:text-main-400",children:"Home"})}),c.jsx("li",{children:c.jsx(tt,{to:"/courses",className:"text-white hover:text-main-400",children:"Courses"})}),c.jsx("li",{children:c.jsx(tt,{to:"/books",className:"text-white hover:text-main-400",children:"Books"})})]}),!s&&c.jsxs("div",{className:"flex flex-col items-center space-y-4 w-full",children:[c.jsx(tt,{to:"/auth/login",className:"w-full",children:c.jsx(st,{className:"btn-secondary text-lg w-full py-6",children:"Login"})}),c.jsx(tt,{to:"/auth/register",className:"w-full",children:c.jsx(st,{className:"btn-primary text-lg w-full py-6",children:"Register"})}),c.jsx(tt,{to:"/auth/register?role=guest",className:"w-full",children:c.jsx(st,{className:"btn-primary text-lg w-full py-6",children:"Register as a guest"})})]})]})})})]})}function fH(){return c.jsxs(c.Fragment,{children:[c.jsx(Bb,{}),c.jsx("main",{className:"overflow-hidden",children:c.jsx(Yc,{})})]})}function dH({className:e}){const t=Fb("(max-width: 768px)"),[n,i]=y.useState(!1),[,s]=y.useState(!0),[l,u]=y.useState(""),{isAuthenticated:d}=Vi(),{course_id:h}=Xr();y.useEffect(()=>(t&&n?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[n,t]);async function m(){const C=await Xt.getCourseById(Number(h));console.log(C.data.data),u(C.data.data.title)}async function p(){const C=await Xt.checkReview(Number(h));s(C.data.data.has_reviewed)}return y.useEffect(()=>{p(),m()},[]),c.jsxs(c.Fragment,{children:[c.jsx("nav",{className:Ue("bg-[#D7F5FF96] py-4 sticky top-0 left-0 z-50 backdrop-blur-2xl",e),children:c.jsx("div",{className:"container mx-auto flex justify-between items-center",children:t?c.jsx(c.Fragment,{children:c.jsxs("div",{className:"grid grid-cols-3 place-items-center px-4 w-full",children:[c.jsx("button",{onClick:()=>i(!n),children:c.jsx(Ee,{icon:n?Yx:Gx,className:"text-main-400 size-8"})}),c.jsx("img",{src:"/logo_mobile.png",alt:"Dr. Marco logo",className:"w-auto h-12 object-contain"})]})}):c.jsx(c.Fragment,{children:c.jsxs("div",{className:"flex items-center gap-16",children:[c.jsx(tt,{to:"/",children:c.jsx("img",{src:"/logo.svg",alt:"logo"})}),c.jsx("ul",{className:"flex space-x-4",children:c.jsx(tt,{to:"/courses",children:c.jsx("li",{className:"relative flex items-center gap-2 text-black hover:text-main-400 cursor-pointer",children:l})})})]})})})}),c.jsx(B1,{children:t&&n&&c.jsx(ln.div,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50},transition:{duration:.3,ease:"easeInOut"},className:"fixed top-[80px] left-0 w-full  bg-main-400/20 backdrop-blur-2xl z-40 p-8",children:c.jsxs("div",{className:"flex flex-col items-center justify-between h-full ",children:[c.jsxs("ul",{className:"flex flex-col items-center space-y-8 text-2xl mb-8",children:[c.jsx("li",{children:c.jsx(tt,{to:"/",onClick:()=>i(!1),className:"text-white hover:text-main-400",children:"Home"})}),c.jsx("li",{children:c.jsx(tt,{to:"/courses",className:"text-white hover:text-main-400",children:"Courses"})}),c.jsx("li",{children:c.jsx(tt,{to:"/books",className:"text-white hover:text-main-400",children:"Books"})})]}),!d&&c.jsxs("div",{className:"flex flex-col items-center space-y-4 w-full",children:[c.jsx(tt,{to:"/auth/login",className:"w-full",children:c.jsx(st,{className:"btn-secondary text-lg w-full py-6",children:"Login"})}),c.jsx(tt,{to:"/auth/register",className:"w-full",children:c.jsx(st,{className:"btn-primary text-lg w-full py-6",children:"Register"})})]})]})})})]})}function hH(){const{course_id:e}=Xr();return c.jsxs(c.Fragment,{children:[c.jsx(dH,{}),c.jsx("div",{className:"bg-[#D7F5FF96] py-4 md:sticky top-0 left-0 z-50 backdrop-blur-2xl",children:c.jsx("div",{className:"container mx-auto flex md:flex-row flex-col gap-8 items-center justify-between",children:c.jsxs("ul",{className:"flex flex-wrap items-center gap-3 px-3",children:[c.jsx(tt,{to:`/course/${e}/content`,className:({isActive:t})=>`${t?"border-b border-main-400 text-main-400 opacity-100":"opacity-70 text-neutral-500"}  gap-2 px-4 pb-2`,children:c.jsxs("li",{className:"flex md:flex-row flex-col items-center gap-2 text-center",children:[c.jsxs("svg",{width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2988_33692)",children:[c.jsx("path",{d:"M3.80944 19.9717H22.3261C22.8464 19.9717 23.2748 19.561 23.2893 19.04C23.368 16.0988 23.3634 13.0172 23.2551 10.0891C23.2451 9.84075 23.1391 9.60596 22.9595 9.43411C22.7799 9.26232 22.5406 9.16691 22.292 9.16798H3.72546C3.18222 9.16798 2.74855 9.61805 2.76692 10.1613C2.88304 13.7061 2.88895 16.2891 2.84828 18.9941C2.84627 19.1217 2.86965 19.2483 2.91704 19.3668C2.96443 19.4853 3.03489 19.593 3.12432 19.684C3.21376 19.775 3.32038 19.8473 3.438 19.8966C3.55561 19.9461 3.68188 19.9715 3.80944 19.9717Z",fill:"#FB3748"}),c.jsx("path",{d:"M3.10443 7.8749C3.49758 7.8749 3.81628 7.55614 3.81628 7.16302C3.81628 6.76989 3.49758 6.45117 3.10443 6.45117C2.71129 6.45117 2.39258 6.76989 2.39258 7.16302C2.39258 7.55614 2.71129 7.8749 3.10443 7.8749Z",fill:"#427D8E"}),c.jsx("path",{d:"M4.95502 7.8749C5.34816 7.8749 5.66687 7.55614 5.66687 7.16302C5.66687 6.76989 5.34816 6.45117 4.95502 6.45117C4.56187 6.45117 4.24316 6.76989 4.24316 7.16302C4.24316 7.55614 4.56187 7.8749 4.95502 7.8749Z",fill:"#427D8E"}),c.jsx("path",{d:"M6.72568 7.8749C7.1188 7.8749 7.4375 7.55614 7.4375 7.16302C7.4375 6.76989 7.1188 6.45117 6.72568 6.45117C6.33249 6.45117 6.01379 6.76989 6.01379 7.16302C6.01379 7.55614 6.33249 7.8749 6.72568 7.8749Z",fill:"white"}),c.jsx("path",{d:"M12.0955 17.5682L15.8155 15.0462L15.8168 15.0456C16.2951 14.7188 16.2971 13.9486 15.8155 13.6192L12.0968 11.0979C11.5962 10.7548 10.9336 11.1438 10.9336 11.8111V16.855C10.9336 17.5183 11.5949 17.91 12.0955 17.5682Z",fill:"white"}),c.jsx("path",{d:"M25.5196 9.15091C25.4953 8.71394 24.8399 8.7566 24.8648 9.18831C25.1181 13.6943 25.0781 18.9114 24.7546 23.5001C24.7087 24.126 24.1806 24.6154 23.5526 24.6154C21.4092 24.6096 17.1132 24.603 12.5416 24.603L11.0103 23.5978C10.8901 23.519 10.7513 23.4731 10.6078 23.4649C10.4643 23.4566 10.3211 23.4863 10.1927 23.5509C10.0643 23.6156 9.95519 23.7129 9.87632 23.833C9.79744 23.9532 9.75158 24.0921 9.7434 24.2356L9.72177 24.6037C7.09084 24.6043 4.49145 24.6102 2.28241 24.6233C1.61386 24.6391 1.04438 24.063 1.07587 23.3643C1.33372 17.5776 1.23399 11.8927 0.881016 6.24377C0.868969 6.08033 0.890628 5.91614 0.944649 5.7614C0.998669 5.60667 1.0839 5.46468 1.19505 5.34423C1.30621 5.22379 1.44092 5.12746 1.59083 5.06123C1.74074 4.99499 1.90267 4.96025 2.06656 4.95916C8.93907 4.91389 19.6365 4.84894 23.4182 4.82991C24.0283 4.79973 24.5637 5.29377 24.6247 5.9118C24.6379 6.10338 24.6575 6.29561 24.6772 6.48718C24.7231 6.91892 25.3746 6.8513 25.3307 6.41961C25.311 6.2359 25.292 6.05089 25.2782 5.85734C25.2359 5.39665 25.0228 4.96843 24.6808 4.65689C24.3388 4.34536 23.8926 4.17304 23.43 4.17383H23.4136C19.6339 4.19351 8.9351 4.25781 2.06196 4.30308C1.80877 4.30479 1.5586 4.35838 1.32692 4.46053C1.09524 4.5627 0.886954 4.71126 0.71493 4.89706C0.542905 5.08286 0.410788 5.30194 0.326737 5.54079C0.242685 5.77964 0.208483 6.03318 0.226243 6.28577C0.579872 11.9379 0.675659 17.6045 0.420444 23.3354C0.408836 23.5861 0.448114 23.8365 0.535907 24.0715C0.6237 24.3066 0.758189 24.5214 0.931262 24.703C1.10434 24.8847 1.31241 25.0294 1.54294 25.1285C1.77346 25.2275 2.02166 25.2789 2.27257 25.2794H2.287C4.48358 25.2663 7.06725 25.2604 9.68372 25.2597L9.31365 31.6645C9.26772 32.4498 10.2486 32.8408 10.757 32.2411C13.2502 29.3209 13.1288 29.3629 13.2633 29.355L16.7996 29.172C17.5908 29.1313 17.869 28.1052 17.207 27.6696L13.5401 25.2591C17.7292 25.2604 21.5647 25.2656 23.552 25.2722C24.0218 25.2707 24.4738 25.0924 24.8178 24.7726C25.1619 24.4528 25.3729 24.0151 25.4088 23.5467C25.7342 18.9311 25.7742 13.6838 25.5196 9.15091ZM12.9359 28.7022C12.6971 28.7127 11.4636 27.1893 12.205 27.1597C12.4629 27.1283 12.9608 27.4885 13.0402 28.0415C13.0809 28.3276 13.0028 28.6635 12.9359 28.7022ZM16.7655 28.5165L13.6511 28.678C13.8419 27.8979 13.5303 27.1558 12.9556 26.7556C11.9275 26.0346 10.5123 26.9485 11.9045 28.6458C12.0358 28.8066 12.23 29.0447 12.4662 29.2008L10.2558 31.816C10.1541 31.9354 9.95928 31.8593 9.96846 31.7018L10.3982 24.273C10.3996 24.2443 10.4086 24.2165 10.4243 24.1924C10.44 24.1683 10.4618 24.1488 10.4875 24.1359C10.5131 24.1229 10.5417 24.1171 10.5704 24.1188C10.5991 24.1205 10.6268 24.1298 10.6508 24.1457L16.8468 28.2173C16.8758 28.2361 16.8981 28.2636 16.9104 28.2958C16.9228 28.328 16.9245 28.3634 16.9155 28.3967C16.9064 28.43 16.887 28.4595 16.86 28.4811C16.8331 28.5026 16.7999 28.5151 16.7655 28.5165Z",fill:"#343941"}),c.jsx("path",{d:"M7.25634 23.6727C7.34333 23.6727 7.42677 23.6381 7.48828 23.5766C7.54985 23.515 7.5844 23.4316 7.5844 23.3446V22.7869H22.5471C22.6341 22.7869 22.7175 22.7524 22.779 22.6909C22.8405 22.6294 22.8751 22.5459 22.8751 22.4589C22.8751 22.3719 22.8405 22.2885 22.779 22.2269C22.7175 22.1654 22.6341 22.1309 22.5471 22.1309H7.5844V21.6932C7.5844 21.6062 7.54985 21.5228 7.48828 21.4613C7.42677 21.3998 7.34333 21.3652 7.25634 21.3652C7.16934 21.3652 7.08591 21.3998 7.0244 21.4613C6.96289 21.5228 6.92828 21.6062 6.92828 21.6932V22.1309H4.24492C4.15791 22.1309 4.07448 22.1654 4.01295 22.2269C3.95144 22.2885 3.91687 22.3719 3.91687 22.4589C3.91687 22.5459 3.95144 22.6294 4.01295 22.6909C4.07448 22.7524 4.15791 22.7869 4.24492 22.7869H6.92828V23.3446C6.92828 23.4316 6.96289 23.515 7.0244 23.5766C7.08591 23.6381 7.16934 23.6727 7.25634 23.6727Z",fill:"#343941"}),c.jsx("path",{d:"M26.7455 4.25699L26.567 3.10228C26.5547 3.02201 26.5726 2.94002 26.6171 2.87215C26.6617 2.80428 26.7299 2.75536 26.8085 2.73487L28.2696 2.35303C27.8884 1.28558 27.8904 1.13009 27.8917 1.07563C27.8982 0.643931 28.5347 0.651147 28.5478 1.07039C28.5681 1.21341 28.8017 1.9023 29.0083 2.46588C29.0242 2.50885 29.0309 2.55467 29.028 2.60038C29.0251 2.6461 29.0126 2.69069 28.9914 2.7313C28.9702 2.7719 28.9407 2.80762 28.9049 2.83615C28.8691 2.86467 28.8277 2.88537 28.7833 2.89692L27.2612 3.29451L27.3944 4.15726C27.4009 4.19987 27.399 4.24335 27.3888 4.28521C27.3785 4.32708 27.3601 4.36652 27.3346 4.40128C27.3091 4.43603 27.277 4.46543 27.2402 4.48778C27.2033 4.51014 27.1624 4.52501 27.1198 4.53156C27.0772 4.53811 27.0338 4.5362 26.9919 4.52594C26.95 4.51569 26.9106 4.49729 26.8758 4.47179C26.8411 4.4463 26.8117 4.4142 26.7893 4.37735C26.7669 4.34049 26.752 4.2996 26.7455 4.25699ZM28.5012 5.72072L29.0739 4.31276C29.0906 4.27208 29.1152 4.23516 29.1463 4.20417C29.1774 4.17318 29.2145 4.14877 29.2552 4.13237C29.296 4.11597 29.3396 4.10792 29.3835 4.1087C29.4275 4.10949 29.4708 4.11909 29.5109 4.13692L30.9576 4.77989C31.1196 4.09625 31.3362 3.24006 31.4366 3.0662C31.6517 2.69616 32.2159 3.0124 32.0073 3.3903C31.9371 3.5412 31.6983 4.48399 31.5061 5.31394C31.4952 5.36102 31.4739 5.40511 31.444 5.44304C31.4141 5.48098 31.3761 5.51184 31.3329 5.5334C31.2896 5.55497 31.2421 5.56671 31.1938 5.56779C31.1455 5.56886 31.0975 5.55925 31.0534 5.53963L29.5542 4.87371L29.1087 5.96806C28.9447 6.36958 28.3372 6.12289 28.5012 5.72072ZM30.4734 9.01033L29.7989 7.70799L29.0491 8.00322C28.6436 8.16132 28.4054 7.55249 28.8082 7.39308L29.8331 6.98828C29.9087 6.95842 29.9928 6.95771 30.0689 6.98633C30.145 7.01495 30.2078 7.07083 30.2451 7.14313L30.8907 8.38965C31.7803 7.82544 31.9247 7.79528 31.9758 7.78473C32.3865 7.69489 32.5381 8.31421 32.1267 8.42313C31.9968 8.47362 31.4155 8.82988 30.9425 9.1343C30.9041 9.15913 30.861 9.1756 30.8158 9.18271C30.7707 9.18982 30.7246 9.18745 30.6804 9.17572C30.6362 9.16399 30.595 9.14313 30.5593 9.11456C30.5237 9.08594 30.4944 9.05021 30.4734 9.00968V9.01033Z",fill:"#427D8E"}),c.jsx("path",{d:"M20.8651 11.1854C19.6532 15.6291 14.0152 19.4924 9.11191 21.9673C7.73648 22.6615 7.96689 24.9331 9.48119 25.2171L9.57019 25.2337C9.60272 25.2398 9.63576 25.2429 9.66886 25.2429C10.0067 25.2429 10.2601 25.552 10.1939 25.8833L9.67187 28.4934C9.63677 28.6689 9.6191 28.8474 9.6191 29.0264V31.0227C9.6191 31.5184 10.0209 31.9202 10.5167 31.9202C10.8319 31.9202 11.1241 31.7548 11.2863 31.4845L12.0792 30.163L13.5552 28.195C13.7578 27.9248 14.1878 28.0681 14.1878 28.4059C14.1878 28.6 14.3451 28.7573 14.5392 28.7573H15.945C16.4795 28.7573 16.6931 28.0668 16.2519 27.765L14.8324 26.7938C13.8929 26.151 14.4651 24.6801 15.592 24.841L18.1614 25.2081C18.323 25.2312 18.487 25.2306 18.6484 25.2064L21.2435 24.8171C23.652 24.4559 25.4338 22.3869 25.4338 19.9515V7.95182C25.4338 6.64692 24.6444 5.0964 23.5768 5.84673C22.7234 6.44651 21.7435 7.96478 20.8651 11.1854Z",fill:"#DDA74F",fillOpacity:"0.1"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2988_33692",children:c.jsx("rect",{width:"32.5926",height:"32",fill:"white",transform:"translate(0 0.642578)"})})})]}),"Content"]})}),c.jsx(tt,{to:`/course/${e}/quizzes-assignment`,className:({isActive:t})=>`${t?"border-b border-main-400 text-main-400 opacity-100":"opacity-70 text-neutral-500"}  gap-2 px-4 pb-2`,children:c.jsxs("li",{className:"flex md:flex-row flex-col items-center gap-2 text-center",children:[c.jsxs("svg",{width:"42",height:"33",viewBox:"0 0 42 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2988_33659)",children:[c.jsx("path",{d:"M30.2105 28.0625H9.94733V22.1678L10.6842 7.79937L8.84207 7.06253H8.10522V4.11516L10.6842 2.27306H24.3158C24.6842 2.51867 25.6421 2.86253 26.5263 2.27306C27.4105 1.68359 29.3508 2.51867 30.2105 3.0099V28.0625Z",fill:"white"}),c.jsx("path",{d:"M37.7329 5.58715V24.6201C37.7324 24.9913 37.6588 25.3588 37.5164 25.7016C37.3739 26.0445 37.1653 26.3558 36.9025 26.618C36.6396 26.8802 36.3278 27.088 35.9846 27.2297C35.6415 27.3714 35.2738 27.444 34.9025 27.4436C24.5243 28.8306 14.0074 28.8306 3.62914 27.4436C3.25808 27.4446 2.89047 27.3722 2.54744 27.2307C2.20443 27.0891 1.89277 26.8812 1.63038 26.6188C1.368 26.3564 1.16006 26.0448 1.01853 25.7017C0.876994 25.3587 0.804658 24.9911 0.805675 24.6201V5.58715C0.805336 5.21627 0.878136 4.84897 1.01991 4.50625C1.16168 4.16354 1.36965 3.85215 1.6319 3.58989C1.89415 3.32764 2.20553 3.11969 2.54825 2.97791C2.89096 2.83614 3.25827 2.76333 3.62914 2.76367C5.40657 2.92573 7.24487 3.06377 9.14488 3.17952C7.83566 4.27102 7.50467 6.40169 8.54472 7.38C8.93738 7.7487 9.47587 7.91843 9.78365 8.36429C10.1069 8.81878 10.1069 9.44126 10.1069 10.0192C9.90884 27.4204 10.3341 25.4835 10.5614 26.8202C10.6437 27.3029 10.443 27.8131 11.399 27.844C20.4036 28.2281 18.435 28.3147 29.4862 27.6587C29.5634 27.6511 29.6474 27.6433 29.7169 27.6047C29.8472 27.5276 29.8858 27.3663 29.8858 27.2274C29.8781 26.936 29.8781 26.6513 29.8712 26.3666L29.9167 26.2046C30.2939 24.8353 30.4097 23.4437 30.1867 22.0581C30.0779 21.3662 30.0633 20.6271 30.0633 19.8965C30.3085 19.8503 30.5477 19.8116 30.7938 19.7663C30.8787 19.7508 30.9636 19.7354 31.0167 19.6736C31.1556 19.6274 31.286 19.5039 31.2937 19.3581C31.3168 19.166 31.1556 19.0117 31.0091 18.8891C30.7089 18.6353 30.3934 18.3806 30.1087 18.1115C30.1173 17.8576 30.1173 17.6039 30.1173 17.3577C30.0119 6.44285 30.185 4.84463 29.2324 3.17952C31.1865 3.07149 33.0711 2.93344 34.9025 2.76367C36.4391 2.76367 37.7329 4.01122 37.7329 5.58715Z",fill:"#427D8E"}),c.jsx("path",{d:"M28.1465 16.1421L30.6441 18.7503C31.2314 19.3642 31.6447 19.4569 32.4207 18.6723C38.6078 12.4097 39.9179 11.3156 40.7976 9.13268C41.0206 8.57452 41.2023 7.93406 40.9537 7.38614C40.6587 6.73793 39.8613 6.47128 39.1488 6.48071C36.093 6.52358 34.6028 9.37363 28.1465 16.1421Z",fill:"#FB3748"}),c.jsx("path",{d:"M30.3172 27.221V20.3189C30.4672 20.2932 30.6087 20.2769 30.7596 20.2683C30.8519 20.2644 30.9393 20.2255 31.004 20.1594C34.2056 16.9827 38.3683 13.8917 41.1086 10.0719C42.4033 8.26274 40.8908 5.26006 38.1214 6.13462V5.58759C38.1214 3.7973 36.6663 2.38257 34.8821 2.38257H34.8658C32.2387 2.6175 30.4707 2.71696 29.9502 2.75297C29.1288 0.822071 27.3248 0.564846 26.1253 1.7155H10.2973C10.2359 1.71559 10.1754 1.73028 10.1207 1.75837C9.63963 2.0143 9.2116 2.3594 8.85947 2.77527C7.1143 2.66804 5.37071 2.53627 3.62924 2.38C2.77881 2.3809 1.96347 2.71913 1.36213 3.32048C0.760782 3.92182 0.422552 4.73716 0.421643 5.58759V24.6205C0.419317 25.4629 0.749545 26.272 1.34055 26.8721C1.93156 27.4723 2.73556 27.8149 3.5778 27.8255C14.0348 29.2146 24.5691 29.2163 34.9018 27.829C35.7533 27.829 36.5701 27.4912 37.1729 26.8897C37.7757 26.2881 38.1153 25.4721 38.1171 24.6205V20.7818C38.1171 20.68 38.0767 20.5823 38.0046 20.5102C37.9325 20.4382 37.8348 20.3977 37.733 20.3977C37.6311 20.3977 37.5334 20.4382 37.4613 20.5102C37.3893 20.5823 37.3489 20.68 37.3489 20.7818V24.6205C37.3489 25.9649 36.2514 27.0599 34.8512 27.0633C33.2255 27.2802 31.5905 27.4525 29.9519 27.6018C30.05 27.5973 30.1427 27.5553 30.2107 27.4845C30.2787 27.4136 30.3168 27.3193 30.3172 27.221ZM40.4861 9.62686C37.8521 13.2949 33.8043 16.3242 30.5658 19.5112C29.759 19.5789 28.9513 19.7889 28.177 20.0582C28.1599 19.5455 27.8658 19.0405 27.4114 18.8047C27.6137 18.0476 27.799 17.3076 27.9919 16.5076L30.4064 14.2869C35.5791 9.53085 36.5823 7.56051 38.1214 6.94231C40.3326 6.07032 41.383 8.34844 40.4852 9.62605L40.4861 9.62686ZM34.8984 3.14739C36.1931 3.14739 37.3463 4.19 37.3463 5.58673V6.47845C36.0576 7.12323 35.0398 8.89893 30.3155 13.3164V6.67994C30.3155 5.66476 30.4218 4.54669 30.1954 3.50921C30.9105 3.45777 32.122 3.39432 34.8984 3.14739ZM10.7012 27.7793C10.7878 27.6121 10.7278 27.7852 10.7467 24.1095C10.7467 23.6011 9.97755 23.6011 9.97755 24.1095C9.98956 27.8736 9.95522 27.5683 9.99988 27.7192C7.87084 27.5552 5.7466 27.335 3.62924 27.059C3.30879 27.0598 2.99134 26.9973 2.69513 26.875C2.39892 26.7528 2.12979 26.5731 1.9032 26.3465C1.6766 26.12 1.49702 25.8508 1.37476 25.5547C1.25248 25.2585 1.18996 24.9409 1.19074 24.6205V5.58759C1.19074 4.24316 2.28481 3.1491 3.59408 3.14739C5.00711 3.27857 6.57275 3.39775 8.33557 3.51264C7.38387 5.11258 7.365 7.04691 7.79797 7.87436C7.83747 8.04582 7.99007 8.1744 8.17354 8.1744H9.97755V21.8553C9.97755 22.3647 10.7467 22.3647 10.7467 21.8553V8.17359H22.8825C22.9845 8.17359 23.0823 8.13306 23.1544 8.06092C23.2266 7.98879 23.2671 7.89101 23.2671 7.78901C23.2671 7.68702 23.2266 7.58921 23.1544 7.51709C23.0823 7.44498 22.9845 7.40446 22.8825 7.40446H8.42134L8.41449 7.39245V7.38645C7.94121 5.43668 8.93838 3.294 10.3951 2.48461H25.5397C24.792 3.77244 24.2621 6.66108 25.3416 7.64882C25.9726 8.22671 26.9304 8.03978 27.4937 7.52278C28.0596 6.99547 28.3151 6.20407 28.4583 5.65361C28.5861 5.16317 27.8427 4.96425 27.7141 5.4607C27.5949 5.91769 27.3882 6.56933 26.9724 6.95775C26.6723 7.23212 26.1621 7.3573 25.8603 7.08121C25.2387 6.51275 25.4008 3.49035 26.6706 2.28825L26.6552 2.27111C27.576 1.38282 28.8184 1.75923 29.3346 3.27171C29.3689 3.50836 29.615 3.67127 29.5601 5.91083C29.537 6.83684 29.5532 6.72538 29.5481 14.0357C27.2742 16.1484 27.3085 16.0283 27.269 16.2136C26.8935 17.8401 26.3911 19.6003 26.049 21.0845C25.9872 21.3469 26.2102 21.6547 26.5788 21.5304C27.4791 21.1188 28.5046 20.6987 29.5481 20.4621V27.221C29.5481 27.4303 29.7153 27.5992 29.9245 27.6043C23.2504 28.2105 17.1661 28.25 10.7012 27.7793Z",fill:"#343941"}),c.jsx("path",{d:"M4.04661 29.7314C14.0589 32.0721 24.476 32.0721 34.4883 29.7314C34.5847 29.716 34.6833 29.7376 34.7643 29.7919C34.8454 29.8463 34.9029 29.9293 34.9251 30.0243C34.9474 30.1193 34.9329 30.2192 34.8844 30.304C34.836 30.3886 34.7573 30.4518 34.6641 30.4808C24.5364 32.8498 13.9986 32.8498 3.87084 30.4808C3.77766 30.4518 3.69893 30.3886 3.6505 30.304C3.60207 30.2192 3.58752 30.1193 3.6098 30.0243C3.63209 29.9293 3.68954 29.8463 3.77059 29.7919C3.85164 29.7376 3.95027 29.716 4.04661 29.7314Z",fill:"white"}),c.jsx("path",{d:"M24.0328 11.8748C22.9328 12.0789 22.0754 13.1781 21.2137 12.9354C20.3014 12.6817 19.7509 10.815 17.3982 12.1998L17.0861 12.3884C16.4233 12.7974 15.6782 13.2389 15.0678 12.752C14.9426 12.6525 14.874 12.535 14.8637 12.4047C14.8543 12.3034 14.8056 12.2099 14.7279 12.1441C14.6503 12.0784 14.5501 12.0458 14.4487 12.0531C13.6144 12.1209 14.3175 13.9506 15.9577 13.714C16.6179 13.6171 17.1616 13.2476 17.7883 12.8626C19.6772 11.7513 19.7004 13.3127 21.0062 13.6771C22.3009 14.0372 23.2158 12.8086 24.1726 12.6319C24.5207 12.5685 24.97 12.7074 25.0523 13.0126C25.1878 13.5082 25.9286 13.299 25.7957 12.8102C25.5899 12.06 24.7428 11.7462 24.0328 11.8748ZM16.1241 19.8702C17.1941 19.6687 18.031 18.6767 18.8806 18.7444C19.7424 18.8096 20.4721 19.8599 21.6287 19.745C22.6558 19.6396 23.2766 18.579 24.038 18.8876C24.1529 18.933 24.1872 18.9974 24.2035 19.0419C24.3716 19.5221 25.0995 19.2649 24.928 18.7847C24.8781 18.6449 24.7982 18.5178 24.6939 18.4122C24.5897 18.3066 24.4635 18.2251 24.3244 18.1734C23.0915 17.6804 22.3309 18.8997 21.5506 18.9794C20.7789 19.0634 20.0056 18.0585 18.9398 17.9771C17.6992 17.8861 16.9626 18.9288 15.9817 19.114C15.2975 19.2443 14.5241 18.795 14.2969 18.1339C14.2636 18.0376 14.1935 17.9583 14.1019 17.9135C14.0103 17.8687 13.9047 17.862 13.8082 17.8948C12.9679 18.1829 14.3775 20.1994 16.1241 19.8702ZM24.8868 23.7664C21.2059 21.4256 21.9245 26.1285 19.823 24.177C18.7297 23.1627 18.1355 22.9372 16.7474 23.8915C16.4533 24.0939 16.1755 24.2851 15.8874 24.3571C15.3541 24.49 14.7136 24.117 14.5704 23.5846C14.4383 23.0916 13.6967 23.293 13.8279 23.7834C14.0808 24.724 15.1294 25.3431 16.0744 25.1039C16.497 24.9975 16.846 24.7575 17.1829 24.526C18.175 23.8426 18.3911 23.8975 19.3008 24.7421C19.6386 25.055 20.1376 25.4486 20.7275 25.4486C20.803 25.4486 20.881 25.4426 20.959 25.428C21.5146 25.3294 21.8541 24.9118 22.1543 24.5448C22.7159 23.8546 23.0511 23.5074 24.4727 24.4154C24.904 24.6898 25.3147 24.0381 24.8868 23.7664Z",fill:"#343941"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2988_33659",children:c.jsx("rect",{width:"42",height:"32.4211",fill:"white",transform:"translate(0 0.431641)"})})})]}),"Practices & Assignment"]})}),c.jsx(tt,{to:`/course/${e}/resources`,className:({isActive:t})=>`${t?"border-b border-main-400 text-main-400 opacity-100":"opacity-70 text-neutral-500"}  gap-2 px-4 pb-2`,children:c.jsxs("li",{className:"flex md:flex-row flex-col items-center gap-2 text-center",children:[c.jsxs("svg",{width:"37",height:"40",viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2988_33668)",children:[c.jsx("path",{d:"M35.5 31.0098L13.5 32.0098L16 28.0098L8 27.0098H4.5L2 28.0098V27.0098V13.5098L3.5 9.00977L5.5 8.00976L6.5 6.50977V7.00977C7.20015 5.15635 7.31146 8.20459 7.5 6.50977H8C8.2537 6.389 8.45469 6.2992 8.61389 6.23755L8.5 6.00976L8.81601 6.16777C9.12144 6.07932 9.19604 6.16033 9.2133 6.36641L10.5 7.00977L13.5 9.00977V7.00977L16 2.50977H23.5L30 4.00977L35.5 7.00977V31.0098Z",fill:"white"}),c.jsx("path",{d:"M14.2316 32.3602L35.9427 31.9414C36.5513 33.631 35.5338 36.1476 32.4758 37.4184C30.2313 38.3491 27.7237 38.3876 25.2966 38.2722C22.361 38.1322 19.4386 37.7892 16.5504 37.2457C16.0206 37.1463 15.4738 37.0327 15.0334 36.7212C14.5055 36.3471 14.1923 35.7225 14.084 35.0835C13.9757 34.4454 14.1081 32.9965 14.2316 32.3602Z",fill:"#427D8E"}),c.jsx("path",{d:"M26.5186 10.6142C27.0314 11.2201 26.7736 12.0121 26.7736 12.0121V27.6878C26.7235 29.3237 26.0586 28.8494 26.0586 28.8494C21.1302 25.6527 13.9465 28.896 13.9465 28.896C9.33222 25.7994 4.59265 27.8596 2.84037 28.8368C2.76798 28.8776 2.68617 28.8987 2.60311 28.8979C2.52005 28.897 2.43866 28.8744 2.36708 28.8323C2.29549 28.7902 2.23622 28.73 2.19521 28.6577C2.1542 28.5855 2.13287 28.5038 2.13336 28.4207V11.5342C2.13336 11.3306 2.05247 11.1352 1.90847 10.9912C1.76447 10.8472 1.56916 10.7663 1.36551 10.7663C1.16187 10.7663 0.966558 10.8472 0.822553 10.9912C0.678556 11.1352 0.597656 11.3306 0.597656 11.5342V29.1411C0.597656 29.4735 0.729659 29.7921 0.964625 30.0271C1.19959 30.2621 1.51827 30.3941 1.85056 30.3941H26.1659C26.412 30.3941 26.6557 30.3456 26.883 30.2514C27.1103 30.1572 27.3168 30.0192 27.4908 29.8451C27.6647 29.6711 27.8027 29.4645 27.8968 29.2371C27.9908 29.0098 28.0392 28.7661 28.039 28.5201V11.0429C28.039 10.9289 27.9938 10.8197 27.9132 10.7391C27.8327 10.6586 27.7234 10.6133 27.6095 10.6133L26.5186 10.6142Z",fill:"#FF4B3D"}),c.jsx("path",{d:"M13.8926 6.63428V4.16426C13.8926 2.46657 15.3871 1.41144 16.9809 1.41144C17.1698 1.41144 24.5423 0.782297 29.9298 1.11432C31.47 1.20829 33.0889 1.23961 34.23 2.43525C35.2546 3.50649 35.4972 5.06278 35.5992 6.48573V6.50183L13.8926 6.63428Z",fill:"#427D8E"}),c.jsx("path",{d:"M36.3904 31.9321C35.9787 7.71964 36.8146 4.49159 34.554 2.12627C33.3942 0.910059 31.8298 0.774918 30.1885 0.678269C29.801 0.678269 26.7341 0.288971 16.981 0.962855C15.2673 0.962855 13.446 2.08421 13.446 4.16225L13.4469 8.92328C11.2696 6.8936 10.1017 6.84348 8.90606 6.07921C10.2261 5.43933 10.6351 4.14883 10.3621 3.11339C9.97369 1.63585 8.40844 1.18569 7.36408 2.1218C6.35638 3.02748 6.47183 4.59988 7.2531 5.73734C5.27082 6.46582 5.44712 7.57466 5.39432 7.66414V7.82256C3.28049 7.80822 1.84143 9.31978 1.6875 11.353V28.6253C1.6875 29.2607 2.3757 29.6304 2.91177 29.3198C5.39522 27.8852 7.92699 27.5156 11.1264 28.1197C11.82 28.2503 13.8756 29.0245 14.2819 29.3932C14.4162 29.5131 14.7276 29.5453 14.8958 29.3797C15.5375 28.7489 17.1887 28.5618 18.1006 28.3881C20.5841 27.9183 23.1749 28.1797 25.5931 29.1408C26.3251 29.4299 27.1108 28.8795 27.1108 28.0973V11.3173C27.1108 11.0255 27.0079 10.7561 26.8218 10.5602C26.451 10.1696 25.9873 9.87961 25.474 9.71712V9.38782C25.474 8.46599 24.7223 7.71428 23.7987 7.71156C20.6638 7.68649 16.9211 7.99616 14.3965 9.88445C14.3804 9.86655 14.358 9.84601 14.3428 9.82811V7.07706L35.1733 6.94908C35.4776 11.7227 35.142 10.8895 35.4883 31.4998C34.9845 31.4703 38.8882 31.4327 14.2819 31.9097C14.3124 31.5249 14.3428 31.1401 14.3562 30.7552C14.3585 30.6965 14.3491 30.6378 14.3287 30.5827C14.3084 30.5275 14.2772 30.4769 14.2373 30.4338C14.1973 30.3907 14.1492 30.3558 14.0957 30.3312C14.0423 30.3068 13.9845 30.293 13.9257 30.2908C13.6778 30.2953 13.4711 30.4752 13.4622 30.7222C13.4148 32.0252 13.1811 33.3237 13.3843 34.6751C13.7065 36.8113 15.9402 37.4584 17.1404 37.8074C20.0381 38.6468 22.4912 38.7291 25.4686 38.7157C27.4643 38.7059 29.2005 38.552 30.7711 38.2468C32.3015 37.9479 34.205 37.5774 35.355 36.2716C36.4647 35.0125 36.4253 33.5752 36.3895 31.9312L36.3904 31.9321ZM9.4976 3.3407C9.5676 3.631 9.55824 3.93478 9.47057 4.22023C9.3829 4.50568 9.22003 4.7623 8.99916 4.96322C8.76289 5.16995 8.45768 5.31224 8.14265 5.43038C8.03701 5.30539 7.94406 5.17019 7.86522 5.02676C6.65797 2.82164 9.04832 1.63138 9.4976 3.3407ZM6.28926 7.67849C6.334 7.02068 7.29159 6.6636 7.9091 6.45687C8.45949 6.91955 9.13244 7.24351 9.83143 7.55048C11.3931 8.23779 12.7775 9.36275 13.8918 10.672L14.1155 27.6543C13.2689 26.6439 12.2039 25.817 10.9948 25.2881C9.83944 24.7806 8.64117 24.7073 7.51979 24.7028C7.19238 24.7002 6.87927 24.5682 6.64875 24.3357C6.41824 24.1032 6.28901 23.789 6.28926 23.4616V7.67849ZM2.58243 28.5197L2.58064 11.3871C2.70236 9.8075 3.82818 8.68436 5.39432 8.71124V23.4616C5.39454 24.0254 5.61759 24.5663 6.01488 24.9665C6.41216 25.3666 6.95147 25.5935 7.51532 25.5977C8.5418 25.6022 9.62914 25.6658 10.636 26.1079C11.5371 26.5017 12.3408 27.0905 13.029 27.793C12.3193 27.521 11.6168 27.3008 11.2929 27.2399C7.88848 26.5983 5.17775 26.9903 2.58243 28.5197ZM26.1712 11.1741C26.2562 11.2636 26.198 10.3695 26.2159 28.0973C26.2159 28.2494 26.0664 28.3649 25.9233 28.3094C23.797 27.4583 21.499 27.1243 19.2184 27.3349C20.5796 27.0223 21.9692 26.8505 23.3655 26.8221C23.9276 26.8182 24.4652 26.5917 24.8605 26.1921C25.2558 25.7924 25.4764 25.2524 25.474 24.6903V10.6908C25.7318 10.8143 25.9751 10.9664 26.1712 11.1741ZM23.7969 8.60651C24.004 8.60696 24.2025 8.68942 24.3491 8.83584C24.4957 8.98217 24.5784 9.18062 24.579 9.38782V24.6903C24.579 25.3714 24.0394 25.9155 23.3503 25.9271C21.0208 25.9656 18.7298 26.3835 16.5426 27.1639C16.0261 27.3491 15.4785 27.5693 15.0149 27.9067L14.7875 10.7222C17.1457 8.85532 20.8016 8.59216 23.7969 8.60651ZM14.3419 4.16136C14.3419 2.66682 15.7004 1.85869 17.0213 1.8569C25.84 1.19912 30.0078 1.57499 30.1491 1.57499C33.1409 1.74951 34.7401 2.26409 35.1107 6.05504L14.3419 6.18302V4.16136ZM34.6838 35.681C33.7352 36.7576 31.9963 37.0968 30.6002 37.3689C29.0842 37.6642 27.4044 37.8118 25.4633 37.8217C22.7426 37.8342 20.2556 37.7797 17.3892 36.9482C14.375 36.0748 14.0904 35.1673 14.2211 32.8047C36.9122 32.359 35.363 32.3957 35.5026 32.376C35.5277 33.6441 35.5071 34.7476 34.6838 35.681Z",fill:"#343941"}),c.jsx("path",{d:"M27.9411 3.50391C27.7647 3.50391 27.5956 3.57396 27.4709 3.69866C27.3462 3.82337 27.2762 3.9925 27.2762 4.16885C27.2762 4.3452 27.3462 4.51433 27.4709 4.63903C27.5956 4.76373 27.7647 4.83378 27.9411 4.83378C28.1174 4.83378 28.2866 4.76373 28.4112 4.63903C28.536 4.51433 28.606 4.3452 28.606 4.16885C28.606 3.9925 28.536 3.82337 28.4112 3.69866C28.2866 3.57396 28.1174 3.50391 27.9411 3.50391ZM25.8872 3.72138H20.9964C20.8777 3.72138 20.7639 3.76852 20.68 3.85244C20.5961 3.93635 20.5489 4.05017 20.5489 4.16885C20.5489 4.28752 20.5961 4.40134 20.68 4.48525C20.7639 4.56917 20.8777 4.61631 20.9964 4.61631H25.8872C26.0058 4.61631 26.1197 4.56917 26.2036 4.48525C26.2875 4.40134 26.3347 4.28752 26.3347 4.16885C26.3347 4.05017 26.2875 3.93635 26.2036 3.85244C26.1197 3.76852 26.0058 3.72138 25.8872 3.72138ZM8.07353 15.6795C8.39944 15.6328 8.73145 15.6556 9.04799 15.7463C9.36446 15.837 9.65819 15.9935 9.90994 16.2057C10.2867 16.5252 10.9176 17.3691 11.7893 17.2805C11.8495 17.2781 11.9086 17.2636 11.9631 17.2377C12.0175 17.2119 12.0661 17.1754 12.1061 17.1302C12.1461 17.0851 12.1765 17.0324 12.1956 16.9753C12.2147 16.9181 12.2221 16.8577 12.2172 16.7977C12.2125 16.7376 12.1956 16.6791 12.1675 16.6257C12.1396 16.5723 12.1011 16.5251 12.0544 16.487C12.0078 16.4489 11.9539 16.4206 11.8961 16.4037C11.8382 16.387 11.7775 16.382 11.7177 16.3892C11.2908 16.4178 10.9077 15.8791 10.488 15.5238C10.1384 15.2309 9.73129 15.0146 9.29287 14.8888C8.85446 14.763 8.3946 14.7306 7.94283 14.7935C7.88468 14.8021 7.82873 14.8219 7.77829 14.8521C7.72777 14.8822 7.68375 14.922 7.64864 14.9692C7.57766 15.0644 7.54753 15.1839 7.56475 15.3014C7.58196 15.4189 7.64509 15.5247 7.74038 15.5956C7.8356 15.6665 7.95513 15.6967 8.07263 15.6795H8.07353ZM7.87396 18.7115C8.19971 18.6645 8.53173 18.6868 8.84827 18.7772C9.16473 18.8676 9.45854 19.024 9.71037 19.236C10.131 19.594 10.7306 20.4012 11.5906 20.3126C11.6508 20.3102 11.71 20.2956 11.7644 20.2698C11.8188 20.2439 11.8675 20.2074 11.9074 20.1622C11.9474 20.1172 11.9779 20.0645 11.997 20.0073C12.0161 19.9501 12.0234 19.8897 12.0186 19.8297C12.0137 19.7696 11.9969 19.7111 11.9689 19.6578C11.9409 19.6044 11.9024 19.5572 11.8558 19.519C11.8091 19.4809 11.7553 19.4526 11.6973 19.4358C11.6395 19.419 11.5789 19.414 11.519 19.4213C11.0957 19.4552 10.7011 18.9039 10.2894 18.5531C9.93947 18.2609 9.53216 18.0452 9.09383 17.9198C8.65542 17.7945 8.19571 17.7624 7.74416 17.8256C7.68602 17.8341 7.63006 17.854 7.57955 17.8841C7.5291 17.9142 7.48504 17.954 7.44993 18.0012C7.37902 18.0964 7.34885 18.216 7.36606 18.3335C7.38326 18.451 7.44644 18.5567 7.54169 18.6276C7.63693 18.6986 7.75647 18.7288 7.87396 18.7115ZM17.8856 17.2564C18.8652 16.8859 19.915 16.7379 20.9588 16.8233C21.0184 16.8302 21.0788 16.8251 21.1363 16.8082C21.194 16.7914 21.2476 16.7632 21.294 16.7251C21.3405 16.6871 21.3788 16.6401 21.4067 16.5871C21.4347 16.534 21.4516 16.4758 21.4566 16.416C21.4616 16.3561 21.4545 16.296 21.4357 16.239C21.417 16.1819 21.387 16.1293 21.3475 16.0842C21.3079 16.039 21.2597 16.0022 21.2057 15.9761C21.1518 15.9499 21.093 15.9349 21.033 15.9319C19.8561 15.8342 18.6721 16.0009 17.5679 16.4197C17.4569 16.4618 17.3673 16.5462 17.3186 16.6545C17.2699 16.7628 17.2662 16.8859 17.3084 16.9969C17.3505 17.1079 17.435 17.1975 17.5432 17.2462C17.6515 17.2948 17.7746 17.2985 17.8856 17.2564ZM21.033 18.6346C19.8561 18.5368 18.6721 18.7035 17.5679 19.1223C17.4617 19.1679 17.3772 19.2528 17.3321 19.3592C17.287 19.4655 17.2847 19.5853 17.3256 19.6933C17.3667 19.8013 17.4477 19.8893 17.5521 19.939C17.6564 19.9887 17.7758 19.9963 17.8856 19.96C18.8653 19.5899 19.9149 19.4416 20.9588 19.5259C21.0184 19.5329 21.0788 19.5278 21.1363 19.511C21.194 19.4941 21.2476 19.4658 21.294 19.4278C21.3405 19.3898 21.3788 19.3429 21.4067 19.2898C21.4347 19.2366 21.4516 19.1785 21.4566 19.1187C21.4616 19.0589 21.4545 18.9986 21.4357 18.9417C21.417 18.8847 21.387 18.832 21.3475 18.7868C21.3079 18.7417 21.2597 18.7049 21.2057 18.6788C21.1518 18.6526 21.093 18.6376 21.033 18.6346ZM28.2418 34.5993H23.5335C23.4149 34.5993 23.301 34.6465 23.2171 34.7304C23.1332 34.8143 23.086 34.9281 23.086 35.0468C23.086 35.1655 23.1332 35.2793 23.2171 35.3632C23.301 35.4472 23.4149 35.4943 23.5335 35.4943H28.2409C28.3596 35.4943 28.4734 35.4472 28.5573 35.3632C28.6412 35.2793 28.6883 35.1655 28.6883 35.0468C28.6883 34.9281 28.6412 34.8143 28.5573 34.7304C28.4734 34.6465 28.3596 34.5993 28.2409 34.5993H28.2418Z",fill:"#343941"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2988_33668",children:c.jsx("rect",{width:"37",height:"39.2653",fill:"white",transform:"translate(0 0.00976562)"})})})]}),"Resources"]})}),c.jsx(tt,{to:`/course/${e}/past-paper`,className:({isActive:t})=>`${t?"border-b border-main-400 text-main-400 opacity-100":"opacity-70 text-neutral-500"}  gap-2 px-4 pb-2`,children:c.jsxs("li",{className:"flex md:flex-row flex-col items-center gap-2 text-center",children:[c.jsxs("svg",{width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2988_33692)",children:[c.jsx("path",{d:"M3.80944 19.9717H22.3261C22.8464 19.9717 23.2748 19.561 23.2893 19.04C23.368 16.0988 23.3634 13.0172 23.2551 10.0891C23.2451 9.84075 23.1391 9.60596 22.9595 9.43411C22.7799 9.26232 22.5406 9.16691 22.292 9.16798H3.72546C3.18222 9.16798 2.74855 9.61805 2.76692 10.1613C2.88304 13.7061 2.88895 16.2891 2.84828 18.9941C2.84627 19.1217 2.86965 19.2483 2.91704 19.3668C2.96443 19.4853 3.03489 19.593 3.12432 19.684C3.21376 19.775 3.32038 19.8473 3.438 19.8966C3.55561 19.9461 3.68188 19.9715 3.80944 19.9717Z",fill:"#FB3748"}),c.jsx("path",{d:"M3.10443 7.8749C3.49758 7.8749 3.81628 7.55614 3.81628 7.16302C3.81628 6.76989 3.49758 6.45117 3.10443 6.45117C2.71129 6.45117 2.39258 6.76989 2.39258 7.16302C2.39258 7.55614 2.71129 7.8749 3.10443 7.8749Z",fill:"#427D8E"}),c.jsx("path",{d:"M4.95502 7.8749C5.34816 7.8749 5.66687 7.55614 5.66687 7.16302C5.66687 6.76989 5.34816 6.45117 4.95502 6.45117C4.56187 6.45117 4.24316 6.76989 4.24316 7.16302C4.24316 7.55614 4.56187 7.8749 4.95502 7.8749Z",fill:"#427D8E"}),c.jsx("path",{d:"M6.72568 7.8749C7.1188 7.8749 7.4375 7.55614 7.4375 7.16302C7.4375 6.76989 7.1188 6.45117 6.72568 6.45117C6.33249 6.45117 6.01379 6.76989 6.01379 7.16302C6.01379 7.55614 6.33249 7.8749 6.72568 7.8749Z",fill:"white"}),c.jsx("path",{d:"M12.0955 17.5682L15.8155 15.0462L15.8168 15.0456C16.2951 14.7188 16.2971 13.9486 15.8155 13.6192L12.0968 11.0979C11.5962 10.7548 10.9336 11.1438 10.9336 11.8111V16.855C10.9336 17.5183 11.5949 17.91 12.0955 17.5682Z",fill:"white"}),c.jsx("path",{d:"M25.5196 9.15091C25.4953 8.71394 24.8399 8.7566 24.8648 9.18831C25.1181 13.6943 25.0781 18.9114 24.7546 23.5001C24.7087 24.126 24.1806 24.6154 23.5526 24.6154C21.4092 24.6096 17.1132 24.603 12.5416 24.603L11.0103 23.5978C10.8901 23.519 10.7513 23.4731 10.6078 23.4649C10.4643 23.4566 10.3211 23.4863 10.1927 23.5509C10.0643 23.6156 9.95519 23.7129 9.87632 23.833C9.79744 23.9532 9.75158 24.0921 9.7434 24.2356L9.72177 24.6037C7.09084 24.6043 4.49145 24.6102 2.28241 24.6233C1.61386 24.6391 1.04438 24.063 1.07587 23.3643C1.33372 17.5776 1.23399 11.8927 0.881016 6.24377C0.868969 6.08033 0.890628 5.91614 0.944649 5.7614C0.998669 5.60667 1.0839 5.46468 1.19505 5.34423C1.30621 5.22379 1.44092 5.12746 1.59083 5.06123C1.74074 4.99499 1.90267 4.96025 2.06656 4.95916C8.93907 4.91389 19.6365 4.84894 23.4182 4.82991C24.0283 4.79973 24.5637 5.29377 24.6247 5.9118C24.6379 6.10338 24.6575 6.29561 24.6772 6.48718C24.7231 6.91892 25.3746 6.8513 25.3307 6.41961C25.311 6.2359 25.292 6.05089 25.2782 5.85734C25.2359 5.39665 25.0228 4.96843 24.6808 4.65689C24.3388 4.34536 23.8926 4.17304 23.43 4.17383H23.4136C19.6339 4.19351 8.9351 4.25781 2.06196 4.30308C1.80877 4.30479 1.5586 4.35838 1.32692 4.46053C1.09524 4.5627 0.886954 4.71126 0.71493 4.89706C0.542905 5.08286 0.410788 5.30194 0.326737 5.54079C0.242685 5.77964 0.208483 6.03318 0.226243 6.28577C0.579872 11.9379 0.675659 17.6045 0.420444 23.3354C0.408836 23.5861 0.448114 23.8365 0.535907 24.0715C0.6237 24.3066 0.758189 24.5214 0.931262 24.703C1.10434 24.8847 1.31241 25.0294 1.54294 25.1285C1.77346 25.2275 2.02166 25.2789 2.27257 25.2794H2.287C4.48358 25.2663 7.06725 25.2604 9.68372 25.2597L9.31365 31.6645C9.26772 32.4498 10.2486 32.8408 10.757 32.2411C13.2502 29.3209 13.1288 29.3629 13.2633 29.355L16.7996 29.172C17.5908 29.1313 17.869 28.1052 17.207 27.6696L13.5401 25.2591C17.7292 25.2604 21.5647 25.2656 23.552 25.2722C24.0218 25.2707 24.4738 25.0924 24.8178 24.7726C25.1619 24.4528 25.3729 24.0151 25.4088 23.5467C25.7342 18.9311 25.7742 13.6838 25.5196 9.15091ZM12.9359 28.7022C12.6971 28.7127 11.4636 27.1893 12.205 27.1597C12.4629 27.1283 12.9608 27.4885 13.0402 28.0415C13.0809 28.3276 13.0028 28.6635 12.9359 28.7022ZM16.7655 28.5165L13.6511 28.678C13.8419 27.8979 13.5303 27.1558 12.9556 26.7556C11.9275 26.0346 10.5123 26.9485 11.9045 28.6458C12.0358 28.8066 12.23 29.0447 12.4662 29.2008L10.2558 31.816C10.1541 31.9354 9.95928 31.8593 9.96846 31.7018L10.3982 24.273C10.3996 24.2443 10.4086 24.2165 10.4243 24.1924C10.44 24.1683 10.4618 24.1488 10.4875 24.1359C10.5131 24.1229 10.5417 24.1171 10.5704 24.1188C10.5991 24.1205 10.6268 24.1298 10.6508 24.1457L16.8468 28.2173C16.8758 28.2361 16.8981 28.2636 16.9104 28.2958C16.9228 28.328 16.9245 28.3634 16.9155 28.3967C16.9064 28.43 16.887 28.4595 16.86 28.4811C16.8331 28.5026 16.7999 28.5151 16.7655 28.5165Z",fill:"#343941"}),c.jsx("path",{d:"M7.25634 23.6727C7.34333 23.6727 7.42677 23.6381 7.48828 23.5766C7.54985 23.515 7.5844 23.4316 7.5844 23.3446V22.7869H22.5471C22.6341 22.7869 22.7175 22.7524 22.779 22.6909C22.8405 22.6294 22.8751 22.5459 22.8751 22.4589C22.8751 22.3719 22.8405 22.2885 22.779 22.2269C22.7175 22.1654 22.6341 22.1309 22.5471 22.1309H7.5844V21.6932C7.5844 21.6062 7.54985 21.5228 7.48828 21.4613C7.42677 21.3998 7.34333 21.3652 7.25634 21.3652C7.16934 21.3652 7.08591 21.3998 7.0244 21.4613C6.96289 21.5228 6.92828 21.6062 6.92828 21.6932V22.1309H4.24492C4.15791 22.1309 4.07448 22.1654 4.01295 22.2269C3.95144 22.2885 3.91687 22.3719 3.91687 22.4589C3.91687 22.5459 3.95144 22.6294 4.01295 22.6909C4.07448 22.7524 4.15791 22.7869 4.24492 22.7869H6.92828V23.3446C6.92828 23.4316 6.96289 23.515 7.0244 23.5766C7.08591 23.6381 7.16934 23.6727 7.25634 23.6727Z",fill:"#343941"}),c.jsx("path",{d:"M26.7455 4.25699L26.567 3.10228C26.5547 3.02201 26.5726 2.94002 26.6171 2.87215C26.6617 2.80428 26.7299 2.75536 26.8085 2.73487L28.2696 2.35303C27.8884 1.28558 27.8904 1.13009 27.8917 1.07563C27.8982 0.643931 28.5347 0.651147 28.5478 1.07039C28.5681 1.21341 28.8017 1.9023 29.0083 2.46588C29.0242 2.50885 29.0309 2.55467 29.028 2.60038C29.0251 2.6461 29.0126 2.69069 28.9914 2.7313C28.9702 2.7719 28.9407 2.80762 28.9049 2.83615C28.8691 2.86467 28.8277 2.88537 28.7833 2.89692L27.2612 3.29451L27.3944 4.15726C27.4009 4.19987 27.399 4.24335 27.3888 4.28521C27.3785 4.32708 27.3601 4.36652 27.3346 4.40128C27.3091 4.43603 27.277 4.46543 27.2402 4.48778C27.2033 4.51014 27.1624 4.52501 27.1198 4.53156C27.0772 4.53811 27.0338 4.5362 26.9919 4.52594C26.95 4.51569 26.9106 4.49729 26.8758 4.47179C26.8411 4.4463 26.8117 4.4142 26.7893 4.37735C26.7669 4.34049 26.752 4.2996 26.7455 4.25699ZM28.5012 5.72072L29.0739 4.31276C29.0906 4.27208 29.1152 4.23516 29.1463 4.20417C29.1774 4.17318 29.2145 4.14877 29.2552 4.13237C29.296 4.11597 29.3396 4.10792 29.3835 4.1087C29.4275 4.10949 29.4708 4.11909 29.5109 4.13692L30.9576 4.77989C31.1196 4.09625 31.3362 3.24006 31.4366 3.0662C31.6517 2.69616 32.2159 3.0124 32.0073 3.3903C31.9371 3.5412 31.6983 4.48399 31.5061 5.31394C31.4952 5.36102 31.4739 5.40511 31.444 5.44304C31.4141 5.48098 31.3761 5.51184 31.3329 5.5334C31.2896 5.55497 31.2421 5.56671 31.1938 5.56779C31.1455 5.56886 31.0975 5.55925 31.0534 5.53963L29.5542 4.87371L29.1087 5.96806C28.9447 6.36958 28.3372 6.12289 28.5012 5.72072ZM30.4734 9.01033L29.7989 7.70799L29.0491 8.00322C28.6436 8.16132 28.4054 7.55249 28.8082 7.39308L29.8331 6.98828C29.9087 6.95842 29.9928 6.95771 30.0689 6.98633C30.145 7.01495 30.2078 7.07083 30.2451 7.14313L30.8907 8.38965C31.7803 7.82544 31.9247 7.79528 31.9758 7.78473C32.3865 7.69489 32.5381 8.31421 32.1267 8.42313C31.9968 8.47362 31.4155 8.82988 30.9425 9.1343C30.9041 9.15913 30.861 9.1756 30.8158 9.18271C30.7707 9.18982 30.7246 9.18745 30.6804 9.17572C30.6362 9.16399 30.595 9.14313 30.5593 9.11456C30.5237 9.08594 30.4944 9.05021 30.4734 9.00968V9.01033Z",fill:"#427D8E"}),c.jsx("path",{d:"M20.8651 11.1854C19.6532 15.6291 14.0152 19.4924 9.11191 21.9673C7.73648 22.6615 7.96689 24.9331 9.48119 25.2171L9.57019 25.2337C9.60272 25.2398 9.63576 25.2429 9.66886 25.2429C10.0067 25.2429 10.2601 25.552 10.1939 25.8833L9.67187 28.4934C9.63677 28.6689 9.6191 28.8474 9.6191 29.0264V31.0227C9.6191 31.5184 10.0209 31.9202 10.5167 31.9202C10.8319 31.9202 11.1241 31.7548 11.2863 31.4845L12.0792 30.163L13.5552 28.195C13.7578 27.9248 14.1878 28.0681 14.1878 28.4059C14.1878 28.6 14.3451 28.7573 14.5392 28.7573H15.945C16.4795 28.7573 16.6931 28.0668 16.2519 27.765L14.8324 26.7938C13.8929 26.151 14.4651 24.6801 15.592 24.841L18.1614 25.2081C18.323 25.2312 18.487 25.2306 18.6484 25.2064L21.2435 24.8171C23.652 24.4559 25.4338 22.3869 25.4338 19.9515V7.95182C25.4338 6.64692 24.6444 5.0964 23.5768 5.84673C22.7234 6.44651 21.7435 7.96478 20.8651 11.1854Z",fill:"#DDA74F",fillOpacity:"0.1"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2988_33692",children:c.jsx("rect",{width:"32.5926",height:"32",fill:"white",transform:"translate(0 0.642578)"})})})]}),"Past paper"]})}),c.jsx(tt,{to:`/course/${e}/revision`,className:({isActive:t})=>`${t?"border-b border-main-400 text-main-400 opacity-100":"opacity-70 text-neutral-500"}  gap-2 px-4 pb-2`,children:c.jsxs("li",{className:"flex md:flex-row flex-col items-center gap-2 text-center",children:[c.jsxs("svg",{width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2988_33692)",children:[c.jsx("path",{d:"M3.80944 19.9717H22.3261C22.8464 19.9717 23.2748 19.561 23.2893 19.04C23.368 16.0988 23.3634 13.0172 23.2551 10.0891C23.2451 9.84075 23.1391 9.60596 22.9595 9.43411C22.7799 9.26232 22.5406 9.16691 22.292 9.16798H3.72546C3.18222 9.16798 2.74855 9.61805 2.76692 10.1613C2.88304 13.7061 2.88895 16.2891 2.84828 18.9941C2.84627 19.1217 2.86965 19.2483 2.91704 19.3668C2.96443 19.4853 3.03489 19.593 3.12432 19.684C3.21376 19.775 3.32038 19.8473 3.438 19.8966C3.55561 19.9461 3.68188 19.9715 3.80944 19.9717Z",fill:"#FB3748"}),c.jsx("path",{d:"M3.10443 7.8749C3.49758 7.8749 3.81628 7.55614 3.81628 7.16302C3.81628 6.76989 3.49758 6.45117 3.10443 6.45117C2.71129 6.45117 2.39258 6.76989 2.39258 7.16302C2.39258 7.55614 2.71129 7.8749 3.10443 7.8749Z",fill:"#427D8E"}),c.jsx("path",{d:"M4.95502 7.8749C5.34816 7.8749 5.66687 7.55614 5.66687 7.16302C5.66687 6.76989 5.34816 6.45117 4.95502 6.45117C4.56187 6.45117 4.24316 6.76989 4.24316 7.16302C4.24316 7.55614 4.56187 7.8749 4.95502 7.8749Z",fill:"#427D8E"}),c.jsx("path",{d:"M6.72568 7.8749C7.1188 7.8749 7.4375 7.55614 7.4375 7.16302C7.4375 6.76989 7.1188 6.45117 6.72568 6.45117C6.33249 6.45117 6.01379 6.76989 6.01379 7.16302C6.01379 7.55614 6.33249 7.8749 6.72568 7.8749Z",fill:"white"}),c.jsx("path",{d:"M12.0955 17.5682L15.8155 15.0462L15.8168 15.0456C16.2951 14.7188 16.2971 13.9486 15.8155 13.6192L12.0968 11.0979C11.5962 10.7548 10.9336 11.1438 10.9336 11.8111V16.855C10.9336 17.5183 11.5949 17.91 12.0955 17.5682Z",fill:"white"}),c.jsx("path",{d:"M25.5196 9.15091C25.4953 8.71394 24.8399 8.7566 24.8648 9.18831C25.1181 13.6943 25.0781 18.9114 24.7546 23.5001C24.7087 24.126 24.1806 24.6154 23.5526 24.6154C21.4092 24.6096 17.1132 24.603 12.5416 24.603L11.0103 23.5978C10.8901 23.519 10.7513 23.4731 10.6078 23.4649C10.4643 23.4566 10.3211 23.4863 10.1927 23.5509C10.0643 23.6156 9.95519 23.7129 9.87632 23.833C9.79744 23.9532 9.75158 24.0921 9.7434 24.2356L9.72177 24.6037C7.09084 24.6043 4.49145 24.6102 2.28241 24.6233C1.61386 24.6391 1.04438 24.063 1.07587 23.3643C1.33372 17.5776 1.23399 11.8927 0.881016 6.24377C0.868969 6.08033 0.890628 5.91614 0.944649 5.7614C0.998669 5.60667 1.0839 5.46468 1.19505 5.34423C1.30621 5.22379 1.44092 5.12746 1.59083 5.06123C1.74074 4.99499 1.90267 4.96025 2.06656 4.95916C8.93907 4.91389 19.6365 4.84894 23.4182 4.82991C24.0283 4.79973 24.5637 5.29377 24.6247 5.9118C24.6379 6.10338 24.6575 6.29561 24.6772 6.48718C24.7231 6.91892 25.3746 6.8513 25.3307 6.41961C25.311 6.2359 25.292 6.05089 25.2782 5.85734C25.2359 5.39665 25.0228 4.96843 24.6808 4.65689C24.3388 4.34536 23.8926 4.17304 23.43 4.17383H23.4136C19.6339 4.19351 8.9351 4.25781 2.06196 4.30308C1.80877 4.30479 1.5586 4.35838 1.32692 4.46053C1.09524 4.5627 0.886954 4.71126 0.71493 4.89706C0.542905 5.08286 0.410788 5.30194 0.326737 5.54079C0.242685 5.77964 0.208483 6.03318 0.226243 6.28577C0.579872 11.9379 0.675659 17.6045 0.420444 23.3354C0.408836 23.5861 0.448114 23.8365 0.535907 24.0715C0.6237 24.3066 0.758189 24.5214 0.931262 24.703C1.10434 24.8847 1.31241 25.0294 1.54294 25.1285C1.77346 25.2275 2.02166 25.2789 2.27257 25.2794H2.287C4.48358 25.2663 7.06725 25.2604 9.68372 25.2597L9.31365 31.6645C9.26772 32.4498 10.2486 32.8408 10.757 32.2411C13.2502 29.3209 13.1288 29.3629 13.2633 29.355L16.7996 29.172C17.5908 29.1313 17.869 28.1052 17.207 27.6696L13.5401 25.2591C17.7292 25.2604 21.5647 25.2656 23.552 25.2722C24.0218 25.2707 24.4738 25.0924 24.8178 24.7726C25.1619 24.4528 25.3729 24.0151 25.4088 23.5467C25.7342 18.9311 25.7742 13.6838 25.5196 9.15091ZM12.9359 28.7022C12.6971 28.7127 11.4636 27.1893 12.205 27.1597C12.4629 27.1283 12.9608 27.4885 13.0402 28.0415C13.0809 28.3276 13.0028 28.6635 12.9359 28.7022ZM16.7655 28.5165L13.6511 28.678C13.8419 27.8979 13.5303 27.1558 12.9556 26.7556C11.9275 26.0346 10.5123 26.9485 11.9045 28.6458C12.0358 28.8066 12.23 29.0447 12.4662 29.2008L10.2558 31.816C10.1541 31.9354 9.95928 31.8593 9.96846 31.7018L10.3982 24.273C10.3996 24.2443 10.4086 24.2165 10.4243 24.1924C10.44 24.1683 10.4618 24.1488 10.4875 24.1359C10.5131 24.1229 10.5417 24.1171 10.5704 24.1188C10.5991 24.1205 10.6268 24.1298 10.6508 24.1457L16.8468 28.2173C16.8758 28.2361 16.8981 28.2636 16.9104 28.2958C16.9228 28.328 16.9245 28.3634 16.9155 28.3967C16.9064 28.43 16.887 28.4595 16.86 28.4811C16.8331 28.5026 16.7999 28.5151 16.7655 28.5165Z",fill:"#343941"}),c.jsx("path",{d:"M7.25634 23.6727C7.34333 23.6727 7.42677 23.6381 7.48828 23.5766C7.54985 23.515 7.5844 23.4316 7.5844 23.3446V22.7869H22.5471C22.6341 22.7869 22.7175 22.7524 22.779 22.6909C22.8405 22.6294 22.8751 22.5459 22.8751 22.4589C22.8751 22.3719 22.8405 22.2885 22.779 22.2269C22.7175 22.1654 22.6341 22.1309 22.5471 22.1309H7.5844V21.6932C7.5844 21.6062 7.54985 21.5228 7.48828 21.4613C7.42677 21.3998 7.34333 21.3652 7.25634 21.3652C7.16934 21.3652 7.08591 21.3998 7.0244 21.4613C6.96289 21.5228 6.92828 21.6062 6.92828 21.6932V22.1309H4.24492C4.15791 22.1309 4.07448 22.1654 4.01295 22.2269C3.95144 22.2885 3.91687 22.3719 3.91687 22.4589C3.91687 22.5459 3.95144 22.6294 4.01295 22.6909C4.07448 22.7524 4.15791 22.7869 4.24492 22.7869H6.92828V23.3446C6.92828 23.4316 6.96289 23.515 7.0244 23.5766C7.08591 23.6381 7.16934 23.6727 7.25634 23.6727Z",fill:"#343941"}),c.jsx("path",{d:"M26.7455 4.25699L26.567 3.10228C26.5547 3.02201 26.5726 2.94002 26.6171 2.87215C26.6617 2.80428 26.7299 2.75536 26.8085 2.73487L28.2696 2.35303C27.8884 1.28558 27.8904 1.13009 27.8917 1.07563C27.8982 0.643931 28.5347 0.651147 28.5478 1.07039C28.5681 1.21341 28.8017 1.9023 29.0083 2.46588C29.0242 2.50885 29.0309 2.55467 29.028 2.60038C29.0251 2.6461 29.0126 2.69069 28.9914 2.7313C28.9702 2.7719 28.9407 2.80762 28.9049 2.83615C28.8691 2.86467 28.8277 2.88537 28.7833 2.89692L27.2612 3.29451L27.3944 4.15726C27.4009 4.19987 27.399 4.24335 27.3888 4.28521C27.3785 4.32708 27.3601 4.36652 27.3346 4.40128C27.3091 4.43603 27.277 4.46543 27.2402 4.48778C27.2033 4.51014 27.1624 4.52501 27.1198 4.53156C27.0772 4.53811 27.0338 4.5362 26.9919 4.52594C26.95 4.51569 26.9106 4.49729 26.8758 4.47179C26.8411 4.4463 26.8117 4.4142 26.7893 4.37735C26.7669 4.34049 26.752 4.2996 26.7455 4.25699ZM28.5012 5.72072L29.0739 4.31276C29.0906 4.27208 29.1152 4.23516 29.1463 4.20417C29.1774 4.17318 29.2145 4.14877 29.2552 4.13237C29.296 4.11597 29.3396 4.10792 29.3835 4.1087C29.4275 4.10949 29.4708 4.11909 29.5109 4.13692L30.9576 4.77989C31.1196 4.09625 31.3362 3.24006 31.4366 3.0662C31.6517 2.69616 32.2159 3.0124 32.0073 3.3903C31.9371 3.5412 31.6983 4.48399 31.5061 5.31394C31.4952 5.36102 31.4739 5.40511 31.444 5.44304C31.4141 5.48098 31.3761 5.51184 31.3329 5.5334C31.2896 5.55497 31.2421 5.56671 31.1938 5.56779C31.1455 5.56886 31.0975 5.55925 31.0534 5.53963L29.5542 4.87371L29.1087 5.96806C28.9447 6.36958 28.3372 6.12289 28.5012 5.72072ZM30.4734 9.01033L29.7989 7.70799L29.0491 8.00322C28.6436 8.16132 28.4054 7.55249 28.8082 7.39308L29.8331 6.98828C29.9087 6.95842 29.9928 6.95771 30.0689 6.98633C30.145 7.01495 30.2078 7.07083 30.2451 7.14313L30.8907 8.38965C31.7803 7.82544 31.9247 7.79528 31.9758 7.78473C32.3865 7.69489 32.5381 8.31421 32.1267 8.42313C31.9968 8.47362 31.4155 8.82988 30.9425 9.1343C30.9041 9.15913 30.861 9.1756 30.8158 9.18271C30.7707 9.18982 30.7246 9.18745 30.6804 9.17572C30.6362 9.16399 30.595 9.14313 30.5593 9.11456C30.5237 9.08594 30.4944 9.05021 30.4734 9.00968V9.01033Z",fill:"#427D8E"}),c.jsx("path",{d:"M20.8651 11.1854C19.6532 15.6291 14.0152 19.4924 9.11191 21.9673C7.73648 22.6615 7.96689 24.9331 9.48119 25.2171L9.57019 25.2337C9.60272 25.2398 9.63576 25.2429 9.66886 25.2429C10.0067 25.2429 10.2601 25.552 10.1939 25.8833L9.67187 28.4934C9.63677 28.6689 9.6191 28.8474 9.6191 29.0264V31.0227C9.6191 31.5184 10.0209 31.9202 10.5167 31.9202C10.8319 31.9202 11.1241 31.7548 11.2863 31.4845L12.0792 30.163L13.5552 28.195C13.7578 27.9248 14.1878 28.0681 14.1878 28.4059C14.1878 28.6 14.3451 28.7573 14.5392 28.7573H15.945C16.4795 28.7573 16.6931 28.0668 16.2519 27.765L14.8324 26.7938C13.8929 26.151 14.4651 24.6801 15.592 24.841L18.1614 25.2081C18.323 25.2312 18.487 25.2306 18.6484 25.2064L21.2435 24.8171C23.652 24.4559 25.4338 22.3869 25.4338 19.9515V7.95182C25.4338 6.64692 24.6444 5.0964 23.5768 5.84673C22.7234 6.44651 21.7435 7.96478 20.8651 11.1854Z",fill:"#DDA74F",fillOpacity:"0.1"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2988_33692",children:c.jsx("rect",{width:"32.5926",height:"32",fill:"white",transform:"translate(0 0.642578)"})})})]}),"Revision"]})})]})})}),c.jsx("main",{children:c.jsx(Yc,{})})]})}function mH(e){return He.post("/account/profilepicture",e)}function pH(){return He.get("/profile/saved-courses")}function gH(){return He.get("/my-progress")}function CH(e){return He.put("/account",e,{headers:{token:cl.getToken()}})}function vH(e){return He.put("/account/personal",e,{headers:{token:cl.getToken()}})}function xH(){return He.get("/me")}const Ub={uploadPicture:mH,getSavedCourses:pH,updateProfile:CH,updateName:vH,getProgress:gH,getUser:xH};var D7,wp;function yH(){if(wp)return D7;wp=1;var e=!1,t,n,i,s,l,u,d,h,m,p,C,v,w,b,S;function E(){if(!e){e=!0;var T=navigator.userAgent,L=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(T),D=/(Mac OS X)|(Windows)|(Linux)/.exec(T);if(v=/\b(iPhone|iP[ao]d)/.exec(T),w=/\b(iP[ao]d)/.exec(T),p=/Android/i.exec(T),b=/FBAN\/\w+;/i.exec(T),S=/Mobile/i.exec(T),C=!!/Win64/.exec(T),L){t=L[1]?parseFloat(L[1]):L[5]?parseFloat(L[5]):NaN,t&&document&&document.documentMode&&(t=document.documentMode);var M=/(?:Trident\/(\d+.\d+))/.exec(T);u=M?parseFloat(M[1])+4:t,n=L[2]?parseFloat(L[2]):NaN,i=L[3]?parseFloat(L[3]):NaN,s=L[4]?parseFloat(L[4]):NaN,s?(L=/(?:Chrome\/(\d+\.\d+))/.exec(T),l=L&&L[1]?parseFloat(L[1]):NaN):l=NaN}else t=n=i=l=s=NaN;if(D){if(D[1]){var k=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(T);d=k?parseFloat(k[1].replace("_",".")):!0}else d=!1;h=!!D[2],m=!!D[3]}else d=h=m=!1}}var j={ie:function(){return E()||t},ieCompatibilityMode:function(){return E()||u>t},ie64:function(){return j.ie()&&C},firefox:function(){return E()||n},opera:function(){return E()||i},webkit:function(){return E()||s},safari:function(){return j.webkit()},chrome:function(){return E()||l},windows:function(){return E()||h},osx:function(){return E()||d},linux:function(){return E()||m},iphone:function(){return E()||v},mobile:function(){return E()||v||w||p||S},nativeApp:function(){return E()||b},android:function(){return E()||p},ipad:function(){return E()||w}};return D7=j,D7}var k7,Sp;function bH(){if(Sp)return k7;Sp=1;var e=!!(typeof window<"u"&&window.document&&window.document.createElement),t={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};return k7=t,k7}var O7,Ep;function wH(){if(Ep)return O7;Ep=1;var e=bH(),t;e.canUseDOM&&(t=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */function n(i,s){if(!e.canUseDOM||s&&!("addEventListener"in document))return!1;var l="on"+i,u=l in document;if(!u){var d=document.createElement("div");d.setAttribute(l,"return;"),u=typeof d[l]=="function"}return!u&&t&&i==="wheel"&&(u=document.implementation.hasFeature("Events.wheel","3.0")),u}return O7=n,O7}var _7,jp;function SH(){if(jp)return _7;jp=1;var e=yH(),t=wH(),n=10,i=40,s=800;function l(u){var d=0,h=0,m=0,p=0;return"detail"in u&&(h=u.detail),"wheelDelta"in u&&(h=-u.wheelDelta/120),"wheelDeltaY"in u&&(h=-u.wheelDeltaY/120),"wheelDeltaX"in u&&(d=-u.wheelDeltaX/120),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(d=h,h=0),m=d*n,p=h*n,"deltaY"in u&&(p=u.deltaY),"deltaX"in u&&(m=u.deltaX),(m||p)&&u.deltaMode&&(u.deltaMode==1?(m*=i,p*=i):(m*=s,p*=s)),m&&!d&&(d=m<1?-1:1),p&&!h&&(h=p<1?-1:1),{spinX:d,spinY:h,pixelX:m,pixelY:p}}return l.getEventType=function(){return e.firefox()?"DOMMouseScroll":t("wheel")?"wheel":"mousewheel"},_7=l,_7}var P7,Ap;function EH(){return Ap||(Ap=1,P7=SH()),P7}var jH=EH();const AH=Pi(jH);function MH(e,t,n,i,s,l){l===void 0&&(l=0);var u=qs(e,t,l),d=u.width,h=u.height,m=Math.min(d,n),p=Math.min(h,i);return m>p*s?{width:p*s,height:p}:{width:m,height:m/s}}function LH(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function b1(e,t,n,i,s){s===void 0&&(s=0);var l=qs(t.width,t.height,s),u=l.width,d=l.height;return{x:Mp(e.x,u,n.width,i),y:Mp(e.y,d,n.height,i)}}function Mp(e,t,n,i){var s=t*i/2-n/2;return Cu(e,-s,s)}function Lp(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Tp(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function TH(e,t,n,i,s,l,u){l===void 0&&(l=0),u===void 0&&(u=!0);var d=u?NH:RH,h=qs(t.width,t.height,l),m=qs(t.naturalWidth,t.naturalHeight,l),p={x:d(100,((h.width-n.width/s)/2-e.x/s)/h.width*100),y:d(100,((h.height-n.height/s)/2-e.y/s)/h.height*100),width:d(100,n.width/h.width*100/s),height:d(100,n.height/h.height*100/s)},C=Math.round(d(m.width,p.width*m.width/100)),v=Math.round(d(m.height,p.height*m.height/100)),w=m.width>=m.height*i,b=w?{width:Math.round(v*i),height:v}:{width:C,height:Math.round(C/i)},S=it(it({},b),{x:Math.round(d(m.width-b.width,p.x*m.width/100)),y:Math.round(d(m.height-b.height,p.y*m.height/100))});return{croppedAreaPercentages:p,croppedAreaPixels:S}}function NH(e,t){return Math.min(e,Math.max(0,t))}function RH(e,t){return t}function DH(e,t,n,i,s,l){var u=qs(t.width,t.height,n),d=Cu(i.width/u.width*(100/e.width),s,l),h={x:d*u.width/2-i.width/2-u.width*d*(e.x/100),y:d*u.height/2-i.height/2-u.height*d*(e.y/100)};return{crop:h,zoom:d}}function kH(e,t,n){var i=LH(t);return n.height>n.width?n.height/(e.height*i):n.width/(e.width*i)}function OH(e,t,n,i,s,l){n===void 0&&(n=0);var u=qs(t.naturalWidth,t.naturalHeight,n),d=Cu(kH(e,t,i),s,l),h=i.height>i.width?i.height/e.height:i.width/e.width,m={x:((u.width-e.width)/2-e.x)*h,y:((u.height-e.height)/2-e.y)*h};return{crop:m,zoom:d}}function Np(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function _H(e){return e*Math.PI/180}function qs(e,t,n){var i=_H(n);return{width:Math.abs(Math.cos(i)*e)+Math.abs(Math.sin(i)*t),height:Math.abs(Math.sin(i)*e)+Math.abs(Math.cos(i)*t)}}function Cu(e,t,n){return Math.min(Math.max(e,t),n)}function I2(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(n){return typeof n=="string"&&n.length>0}).join(" ").trim()}var PH=`.reactEasyCrop_Container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: move;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reactEasyCrop_Image,
.reactEasyCrop_Video {
  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}

.reactEasyCrop_Contain {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.reactEasyCrop_Cover_Horizontal {
  width: 100%;
  height: auto;
}
.reactEasyCrop_Cover_Vertical {
  width: auto;
  height: 100%;
}

.reactEasyCrop_CropArea {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  box-shadow: 0 0 0 9999em;
  color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.reactEasyCrop_CropAreaRound {
  border-radius: 50%;
}

.reactEasyCrop_CropAreaGrid::before {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 0;
  bottom: 0;
  left: 33.33%;
  right: 33.33%;
  border-top: 0;
  border-bottom: 0;
}

.reactEasyCrop_CropAreaGrid::after {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 33.33%;
  bottom: 33.33%;
  left: 0;
  right: 0;
  border-left: 0;
  border-right: 0;
}
`,VH=1,zH=3,FH=1,BH=function(e){JD(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cropperRef=y.createRef(),n.imageRef=y.createRef(),n.videoRef=y.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc=typeof document<"u"?document:null,n.currentWindow=typeof window<"u"?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!n.containerRef)){var i=!0;n.resizeObserver=new window.ResizeObserver(function(s){if(i){i=!1;return}n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(i){return i.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturechange",n.onGestureChange),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var i=n.computeSizes();i&&(n.emitCropData(),n.setInitialCrop(i)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(i){if(n.props.initialCroppedAreaPercentages){var s=DH(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,i,n.props.minZoom,n.props.maxZoom),l=s.crop,u=s.zoom;n.props.onCropChange(l),n.props.onZoomChange&&n.props.onZoomChange(u)}else if(n.props.initialCroppedAreaPixels){var d=OH(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,i,n.props.minZoom,n.props.maxZoom),l=d.crop,u=d.zoom;n.props.onCropChange(l),n.props.onZoomChange&&n.props.onZoomChange(u)}},n.computeSizes=function(){var i,s,l,u,d,h,m=n.imageRef.current||n.videoRef.current;if(m&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var p=n.containerRect.width/n.containerRect.height,C=((i=n.imageRef.current)===null||i===void 0?void 0:i.naturalWidth)||((s=n.videoRef.current)===null||s===void 0?void 0:s.videoWidth)||0,v=((l=n.imageRef.current)===null||l===void 0?void 0:l.naturalHeight)||((u=n.videoRef.current)===null||u===void 0?void 0:u.videoHeight)||0,w=m.offsetWidth<C||m.offsetHeight<v,b=C/v,S=void 0;if(w)switch(n.state.mediaObjectFit){default:case"contain":S=p>b?{width:n.containerRect.height*b,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/b};break;case"horizontal-cover":S={width:n.containerRect.width,height:n.containerRect.width/b};break;case"vertical-cover":S={width:n.containerRect.height*b,height:n.containerRect.height};break}else S={width:m.offsetWidth,height:m.offsetHeight};n.mediaSize=it(it({},S),{naturalWidth:C,naturalHeight:v}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var E=n.props.cropSize?n.props.cropSize:MH(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(((d=n.state.cropSize)===null||d===void 0?void 0:d.height)!==E.height||((h=n.state.cropSize)===null||h===void 0?void 0:h.width)!==E.width)&&n.props.onCropSizeChange&&n.props.onCropSizeChange(E),n.setState({cropSize:E},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(E),E}},n.saveContainerPosition=function(){if(n.containerRef){var i=n.containerRef.getBoundingClientRect();n.containerPosition={x:i.left,y:i.top}}},n.onMouseDown=function(i){n.currentDoc&&(i.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(i)))},n.onMouseMove=function(i){return n.onDrag(t.getMousePoint(i))},n.onScroll=function(i){n.currentDoc&&(i.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(i){n.currentDoc&&(n.isTouching=!0,!(n.props.onTouchRequest&&!n.props.onTouchRequest(i))&&(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),i.touches.length===2?n.onPinchStart(i):i.touches.length===1&&n.onDragStart(t.getTouchPoint(i.touches[0]))))},n.onTouchMove=function(i){i.preventDefault(),i.touches.length===2?n.onPinchMove(i):i.touches.length===1&&n.onDrag(t.getTouchPoint(i.touches[0]))},n.onGestureStart=function(i){n.currentDoc&&(i.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureChange),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureChange=function(i){if(i.preventDefault(),!n.isTouching){var s=t.getMousePoint(i),l=n.gestureZoomStart-1+i.scale;if(n.setNewZoom(l,s,{shouldUpdatePosition:!0}),n.props.onRotationChange){var u=n.gestureRotationStart+i.rotation;n.props.onRotationChange(u)}}},n.onGestureEnd=function(i){n.cleanEvents()},n.onDragStart=function(i){var s,l,u=i.x,d=i.y;n.dragStartPosition={x:u,y:d},n.dragStartCrop=it({},n.props.crop),(l=(s=n.props).onInteractionStart)===null||l===void 0||l.call(s)},n.onDrag=function(i){var s=i.x,l=i.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&!(s===void 0||l===void 0)){var u=s-n.dragStartPosition.x,d=l-n.dragStartPosition.y,h={x:n.dragStartCrop.x+u,y:n.dragStartCrop.y+d},m=n.props.restrictPosition?b1(h,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):h;n.props.onCropChange(m)}}))},n.onDragStopped=function(){var i,s;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),(s=(i=n.props).onInteractionEnd)===null||s===void 0||s.call(i)},n.onWheel=function(i){if(n.currentWindow&&!(n.props.onWheelRequest&&!n.props.onWheelRequest(i))){i.preventDefault();var s=t.getMousePoint(i),l=AH(i).pixelY,u=n.props.zoom-l*n.props.zoomSpeed/200;n.setNewZoom(u,s,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var d,h;return(h=(d=n.props).onInteractionStart)===null||h===void 0?void 0:h.call(d)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var d,h;return(h=(d=n.props).onInteractionEnd)===null||h===void 0?void 0:h.call(d)})},250)}},n.getPointOnContainer=function(i,s){var l=i.x,u=i.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(l-s.x),y:n.containerRect.height/2-(u-s.y)}},n.getPointOnMedia=function(i){var s=i.x,l=i.y,u=n.props,d=u.crop,h=u.zoom;return{x:(s+d.x)/h,y:(l+d.y)/h}},n.setNewZoom=function(i,s,l){var u=l===void 0?{}:l,d=u.shouldUpdatePosition,h=d===void 0?!0:d;if(!(!n.state.cropSize||!n.props.onZoomChange)){var m=Cu(i,n.props.minZoom,n.props.maxZoom);if(h){var p=n.getPointOnContainer(s,n.containerPosition),C=n.getPointOnMedia(p),v={x:C.x*m-p.x,y:C.y*m-p.y},w=n.props.restrictPosition?b1(v,n.mediaSize,n.state.cropSize,m,n.props.rotation):v;n.props.onCropChange(w)}n.props.onZoomChange(m)}},n.getCropData=function(){if(!n.state.cropSize)return null;var i=n.props.restrictPosition?b1(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;return TH(i,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition)},n.emitCropData=function(){var i=n.getCropData();if(i){var s=i.croppedAreaPercentages,l=i.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(s,l),n.props.onCropAreaChange&&n.props.onCropAreaChange(s,l)}},n.emitCropAreaChange=function(){var i=n.getCropData();if(i){var s=i.croppedAreaPercentages,l=i.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(s,l)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var i=n.props.restrictPosition?b1(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(i),n.emitCropData()}},n.onKeyDown=function(i){var s,l,u=n.props,d=u.crop,h=u.onCropChange,m=u.keyboardStep,p=u.zoom,C=u.rotation,v=m;if(n.state.cropSize){i.shiftKey&&(v*=.2);var w=it({},d);switch(i.key){case"ArrowUp":w.y-=v,i.preventDefault();break;case"ArrowDown":w.y+=v,i.preventDefault();break;case"ArrowLeft":w.x-=v,i.preventDefault();break;case"ArrowRight":w.x+=v,i.preventDefault();break;default:return}n.props.restrictPosition&&(w=b1(w,n.mediaSize,n.state.cropSize,p,C)),i.repeat||(l=(s=n.props).onInteractionStart)===null||l===void 0||l.call(s),h(w)}},n.onKeyUp=function(i){var s,l;switch(i.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":i.preventDefault();break;default:return}n.emitCropData(),(l=(s=n.props).onInteractionEnd)===null||l===void 0||l.call(s)},n}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=PH,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var n,i;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(n=this.resizeObserver)===null||n===void 0||n.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((i=this.styleRef.parentNode)===null||i===void 0||i.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(n){var i,s,l,u,d,h,m,p,C;n.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):n.aspect!==this.props.aspect?this.computeSizes():n.objectFit!==this.props.objectFit?this.computeSizes():n.zoom!==this.props.zoom?this.recomputeCropPosition():((i=n.cropSize)===null||i===void 0?void 0:i.height)!==((s=this.props.cropSize)===null||s===void 0?void 0:s.height)||((l=n.cropSize)===null||l===void 0?void 0:l.width)!==((u=this.props.cropSize)===null||u===void 0?void 0:u.width)?this.computeSizes():(((d=n.crop)===null||d===void 0?void 0:d.x)!==((h=this.props.crop)===null||h===void 0?void 0:h.x)||((m=n.crop)===null||m===void 0?void 0:m.y)!==((p=this.props.crop)===null||p===void 0?void 0:p.y))&&this.emitCropAreaChange(),n.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),n.video!==this.props.video&&((C=this.videoRef.current)===null||C===void 0||C.load());var v=this.getObjectFit();v!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:v},this.computeSizes)},t.prototype.getAspect=function(){var n=this.props,i=n.cropSize,s=n.aspect;return i?i.width/i.height:s},t.prototype.getObjectFit=function(){var n,i,s,l;if(this.props.objectFit==="cover"){var u=this.imageRef.current||this.videoRef.current;if(u&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var d=this.containerRect.width/this.containerRect.height,h=((n=this.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((i=this.videoRef.current)===null||i===void 0?void 0:i.videoWidth)||0,m=((s=this.imageRef.current)===null||s===void 0?void 0:s.naturalHeight)||((l=this.videoRef.current)===null||l===void 0?void 0:l.videoHeight)||0,p=h/m;return p<d?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(n){var i=t.getTouchPoint(n.touches[0]),s=t.getTouchPoint(n.touches[1]);this.lastPinchDistance=Lp(i,s),this.lastPinchRotation=Tp(i,s),this.onDragStart(Np(i,s))},t.prototype.onPinchMove=function(n){var i=this;if(!(!this.currentDoc||!this.currentWindow)){var s=t.getTouchPoint(n.touches[0]),l=t.getTouchPoint(n.touches[1]),u=Np(s,l);this.onDrag(u),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var d=Lp(s,l),h=i.props.zoom*(d/i.lastPinchDistance);i.setNewZoom(h,u,{shouldUpdatePosition:!1}),i.lastPinchDistance=d;var m=Tp(s,l),p=i.props.rotation+(m-i.lastPinchRotation);i.props.onRotationChange&&i.props.onRotationChange(p),i.lastPinchRotation=m})}},t.prototype.render=function(){var n=this,i,s=this.props,l=s.image,u=s.video,d=s.mediaProps,h=s.cropperProps,m=s.transform,p=s.crop,C=p.x,v=p.y,w=s.rotation,b=s.zoom,S=s.cropShape,E=s.showGrid,j=s.roundCropAreaPixels,T=s.style,L=T.containerStyle,D=T.cropAreaStyle,M=T.mediaStyle,k=s.classes,O=k.containerClassName,z=k.cropAreaClassName,I=k.mediaClassName,ne=(i=this.state.mediaObjectFit)!==null&&i!==void 0?i:this.getObjectFit();return y.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(le){return n.containerRef=le},"data-testid":"container",style:L,className:I2("reactEasyCrop_Container",O)},l?y.createElement("img",it({alt:"",className:I2("reactEasyCrop_Image",ne==="contain"&&"reactEasyCrop_Contain",ne==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ne==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",I)},d,{src:l,ref:this.imageRef,style:it(it({},M),{transform:m||"translate(".concat(C,"px, ").concat(v,"px) rotate(").concat(w,"deg) scale(").concat(b,")")}),onLoad:this.onMediaLoad})):u&&y.createElement("video",it({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:I2("reactEasyCrop_Video",ne==="contain"&&"reactEasyCrop_Contain",ne==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ne==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",I)},d,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:it(it({},M),{transform:m||"translate(".concat(C,"px, ").concat(v,"px) rotate(").concat(w,"deg) scale(").concat(b,")")}),controls:!1}),(Array.isArray(u)?u:[{src:u}]).map(function(Q){return y.createElement("source",it({key:Q.src},Q))})),this.state.cropSize&&y.createElement("div",it({ref:this.cropperRef,style:it(it({},D),{width:j?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:j?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:I2("reactEasyCrop_CropArea",S==="round"&&"reactEasyCrop_CropAreaRound",E&&"reactEasyCrop_CropAreaGrid",z)},h)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:zH,minZoom:VH,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:FH},t.getMousePoint=function(n){return{x:Number(n.clientX),y:Number(n.clientY)}},t.getTouchPoint=function(n){return{x:Number(n.clientX),y:Number(n.clientY)}},t}(y.Component);function UH({user:e}){const t=y.useRef(null),{updatePFP:n}=Vi(),[i,s]=y.useState(!1),[l,u]=y.useState(null),[d,h]=y.useState({x:0,y:0}),[m,p]=y.useState(1),[C,v]=y.useState(null),[w,b]=y.useState(!1),S=T=>{if(T.target.files&&T.target.files.length>0){const L=new FileReader;L.addEventListener("load",()=>{u(L.result),b(!0)}),L.readAsDataURL(T.target.files[0])}},E=y.useCallback((T,L)=>{v(L)},[]),j=async()=>{if(s(!0),!l||!C)return;const T=await i_(l,C),L=new FormData;L.append("image",T,"profile.jpg");const D=await Ub.uploadPicture(L);n(D.data.data.profile_picture_url),s(!1),b(!1)};return c.jsxs(c.Fragment,{children:[c.jsxs(Hr,{className:"relative size-20 cursor-pointer overflow-visible",onClick:()=>{var T;return(T=t.current)==null?void 0:T.click()},children:[c.jsx(Ir,{className:"rounded-full",src:(e==null?void 0:e.profile_picture_url)??""}),c.jsx(Zr,{className:"bg-main-400",children:Ur(e==null?void 0:e.name)}),c.jsx("div",{className:"absolute bottom-0 left-0 w-6 h-6 rounded-full z-20 bg-neutral-200 border border-neutral-400 flex items-center justify-center",children:c.jsx(Ee,{icon:j_,size:13,className:"text-main-400"})})]}),c.jsx("input",{ref:t,type:"file",accept:"image/*",className:"hidden",onChange:S}),c.jsx(Px,{open:w,onOpenChange:b,children:c.jsxs(Vx,{className:"w-full max-w-xl",children:[l&&c.jsx("div",{className:"relative h-[300px] w-full bg-black",children:c.jsx(BH,{image:l,crop:d,zoom:m,aspect:1,onCropChange:h,onZoomChange:p,onCropComplete:E})}),c.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[c.jsx(st,{variant:"ghost",onClick:()=>b(!1),children:"Cancel"}),c.jsx(st,{disabled:i,className:"bg-main-400 text-white ",onClick:j,children:i?c.jsxs(c.Fragment,{children:["Uploading...",c.jsx(xO,{className:"animate-spin"})]}):"Upload"})]})]})})]})}var HH=Object.defineProperty,Vc=Object.getOwnPropertySymbols,Hb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable,Rp=(e,t,n)=>t in e?HH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H4=(e,t)=>{for(var n in t||(t={}))Hb.call(t,n)&&Rp(e,n,t[n]);if(Vc)for(var n of Vc(t))Ib.call(t,n)&&Rp(e,n,t[n]);return e},I4=(e,t)=>{var n={};for(var i in e)Hb.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Vc)for(var i of Vc(e))t.indexOf(i)<0&&Ib.call(e,i)&&(n[i]=e[i]);return n};/**
 * @license QR Code generator library (TypeScript)
 * Copyright (c) Project Nayuki.
 * SPDX-License-Identifier: MIT
 */var La;(e=>{const t=class Be{constructor(h,m,p,C){if(this.version=h,this.errorCorrectionLevel=m,this.modules=[],this.isFunction=[],h<Be.MIN_VERSION||h>Be.MAX_VERSION)throw new RangeError("Version value out of range");if(C<-1||C>7)throw new RangeError("Mask value out of range");this.size=h*4+17;let v=[];for(let b=0;b<this.size;b++)v.push(!1);for(let b=0;b<this.size;b++)this.modules.push(v.slice()),this.isFunction.push(v.slice());this.drawFunctionPatterns();const w=this.addEccAndInterleave(p);if(this.drawCodewords(w),C==-1){let b=1e9;for(let S=0;S<8;S++){this.applyMask(S),this.drawFormatBits(S);const E=this.getPenaltyScore();E<b&&(C=S,b=E),this.applyMask(S)}}s(0<=C&&C<=7),this.mask=C,this.applyMask(C),this.drawFormatBits(C),this.isFunction=[]}static encodeText(h,m){const p=e.QrSegment.makeSegments(h);return Be.encodeSegments(p,m)}static encodeBinary(h,m){const p=e.QrSegment.makeBytes(h);return Be.encodeSegments([p],m)}static encodeSegments(h,m,p=1,C=40,v=-1,w=!0){if(!(Be.MIN_VERSION<=p&&p<=C&&C<=Be.MAX_VERSION)||v<-1||v>7)throw new RangeError("Invalid value");let b,S;for(b=p;;b++){const L=Be.getNumDataCodewords(b,m)*8,D=u.getTotalBits(h,b);if(D<=L){S=D;break}if(b>=C)throw new RangeError("Data too long")}for(const L of[Be.Ecc.MEDIUM,Be.Ecc.QUARTILE,Be.Ecc.HIGH])w&&S<=Be.getNumDataCodewords(b,L)*8&&(m=L);let E=[];for(const L of h){n(L.mode.modeBits,4,E),n(L.numChars,L.mode.numCharCountBits(b),E);for(const D of L.getData())E.push(D)}s(E.length==S);const j=Be.getNumDataCodewords(b,m)*8;s(E.length<=j),n(0,Math.min(4,j-E.length),E),n(0,(8-E.length%8)%8,E),s(E.length%8==0);for(let L=236;E.length<j;L^=253)n(L,8,E);let T=[];for(;T.length*8<E.length;)T.push(0);return E.forEach((L,D)=>T[D>>>3]|=L<<7-(D&7)),new Be(b,m,T,v)}getModule(h,m){return 0<=h&&h<this.size&&0<=m&&m<this.size&&this.modules[m][h]}getModules(){return this.modules}drawFunctionPatterns(){for(let p=0;p<this.size;p++)this.setFunctionModule(6,p,p%2==0),this.setFunctionModule(p,6,p%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const h=this.getAlignmentPatternPositions(),m=h.length;for(let p=0;p<m;p++)for(let C=0;C<m;C++)p==0&&C==0||p==0&&C==m-1||p==m-1&&C==0||this.drawAlignmentPattern(h[p],h[C]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const m=this.errorCorrectionLevel.formatBits<<3|h;let p=m;for(let v=0;v<10;v++)p=p<<1^(p>>>9)*1335;const C=(m<<10|p)^21522;s(C>>>15==0);for(let v=0;v<=5;v++)this.setFunctionModule(8,v,i(C,v));this.setFunctionModule(8,7,i(C,6)),this.setFunctionModule(8,8,i(C,7)),this.setFunctionModule(7,8,i(C,8));for(let v=9;v<15;v++)this.setFunctionModule(14-v,8,i(C,v));for(let v=0;v<8;v++)this.setFunctionModule(this.size-1-v,8,i(C,v));for(let v=8;v<15;v++)this.setFunctionModule(8,this.size-15+v,i(C,v));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let h=this.version;for(let p=0;p<12;p++)h=h<<1^(h>>>11)*7973;const m=this.version<<12|h;s(m>>>18==0);for(let p=0;p<18;p++){const C=i(m,p),v=this.size-11+p%3,w=Math.floor(p/3);this.setFunctionModule(v,w,C),this.setFunctionModule(w,v,C)}}drawFinderPattern(h,m){for(let p=-4;p<=4;p++)for(let C=-4;C<=4;C++){const v=Math.max(Math.abs(C),Math.abs(p)),w=h+C,b=m+p;0<=w&&w<this.size&&0<=b&&b<this.size&&this.setFunctionModule(w,b,v!=2&&v!=4)}}drawAlignmentPattern(h,m){for(let p=-2;p<=2;p++)for(let C=-2;C<=2;C++)this.setFunctionModule(h+C,m+p,Math.max(Math.abs(C),Math.abs(p))!=1)}setFunctionModule(h,m,p){this.modules[m][h]=p,this.isFunction[m][h]=!0}addEccAndInterleave(h){const m=this.version,p=this.errorCorrectionLevel;if(h.length!=Be.getNumDataCodewords(m,p))throw new RangeError("Invalid argument");const C=Be.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][m],v=Be.ECC_CODEWORDS_PER_BLOCK[p.ordinal][m],w=Math.floor(Be.getNumRawDataModules(m)/8),b=C-w%C,S=Math.floor(w/C);let E=[];const j=Be.reedSolomonComputeDivisor(v);for(let L=0,D=0;L<C;L++){let M=h.slice(D,D+S-v+(L<b?0:1));D+=M.length;const k=Be.reedSolomonComputeRemainder(M,j);L<b&&M.push(0),E.push(M.concat(k))}let T=[];for(let L=0;L<E[0].length;L++)E.forEach((D,M)=>{(L!=S-v||M>=b)&&T.push(D[L])});return s(T.length==w),T}drawCodewords(h){if(h.length!=Math.floor(Be.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let m=0;for(let p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(let C=0;C<this.size;C++)for(let v=0;v<2;v++){const w=p-v,S=(p+1&2)==0?this.size-1-C:C;!this.isFunction[S][w]&&m<h.length*8&&(this.modules[S][w]=i(h[m>>>3],7-(m&7)),m++)}}s(m==h.length*8)}applyMask(h){if(h<0||h>7)throw new RangeError("Mask value out of range");for(let m=0;m<this.size;m++)for(let p=0;p<this.size;p++){let C;switch(h){case 0:C=(p+m)%2==0;break;case 1:C=m%2==0;break;case 2:C=p%3==0;break;case 3:C=(p+m)%3==0;break;case 4:C=(Math.floor(p/3)+Math.floor(m/2))%2==0;break;case 5:C=p*m%2+p*m%3==0;break;case 6:C=(p*m%2+p*m%3)%2==0;break;case 7:C=((p+m)%2+p*m%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[m][p]&&C&&(this.modules[m][p]=!this.modules[m][p])}}getPenaltyScore(){let h=0;for(let v=0;v<this.size;v++){let w=!1,b=0,S=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[v][E]==w?(b++,b==5?h+=Be.PENALTY_N1:b>5&&h++):(this.finderPenaltyAddHistory(b,S),w||(h+=this.finderPenaltyCountPatterns(S)*Be.PENALTY_N3),w=this.modules[v][E],b=1);h+=this.finderPenaltyTerminateAndCount(w,b,S)*Be.PENALTY_N3}for(let v=0;v<this.size;v++){let w=!1,b=0,S=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[E][v]==w?(b++,b==5?h+=Be.PENALTY_N1:b>5&&h++):(this.finderPenaltyAddHistory(b,S),w||(h+=this.finderPenaltyCountPatterns(S)*Be.PENALTY_N3),w=this.modules[E][v],b=1);h+=this.finderPenaltyTerminateAndCount(w,b,S)*Be.PENALTY_N3}for(let v=0;v<this.size-1;v++)for(let w=0;w<this.size-1;w++){const b=this.modules[v][w];b==this.modules[v][w+1]&&b==this.modules[v+1][w]&&b==this.modules[v+1][w+1]&&(h+=Be.PENALTY_N2)}let m=0;for(const v of this.modules)m=v.reduce((w,b)=>w+(b?1:0),m);const p=this.size*this.size,C=Math.ceil(Math.abs(m*20-p*10)/p)-1;return s(0<=C&&C<=9),h+=C*Be.PENALTY_N4,s(0<=h&&h<=2568888),h}getAlignmentPatternPositions(){if(this.version==1)return[];{const h=Math.floor(this.version/7)+2,m=this.version==32?26:Math.ceil((this.version*4+4)/(h*2-2))*2;let p=[6];for(let C=this.size-7;p.length<h;C-=m)p.splice(1,0,C);return p}}static getNumRawDataModules(h){if(h<Be.MIN_VERSION||h>Be.MAX_VERSION)throw new RangeError("Version number out of range");let m=(16*h+128)*h+64;if(h>=2){const p=Math.floor(h/7)+2;m-=(25*p-10)*p-55,h>=7&&(m-=36)}return s(208<=m&&m<=29648),m}static getNumDataCodewords(h,m){return Math.floor(Be.getNumRawDataModules(h)/8)-Be.ECC_CODEWORDS_PER_BLOCK[m.ordinal][h]*Be.NUM_ERROR_CORRECTION_BLOCKS[m.ordinal][h]}static reedSolomonComputeDivisor(h){if(h<1||h>255)throw new RangeError("Degree out of range");let m=[];for(let C=0;C<h-1;C++)m.push(0);m.push(1);let p=1;for(let C=0;C<h;C++){for(let v=0;v<m.length;v++)m[v]=Be.reedSolomonMultiply(m[v],p),v+1<m.length&&(m[v]^=m[v+1]);p=Be.reedSolomonMultiply(p,2)}return m}static reedSolomonComputeRemainder(h,m){let p=m.map(C=>0);for(const C of h){const v=C^p.shift();p.push(0),m.forEach((w,b)=>p[b]^=Be.reedSolomonMultiply(w,v))}return p}static reedSolomonMultiply(h,m){if(h>>>8||m>>>8)throw new RangeError("Byte out of range");let p=0;for(let C=7;C>=0;C--)p=p<<1^(p>>>7)*285,p^=(m>>>C&1)*h;return s(p>>>8==0),p}finderPenaltyCountPatterns(h){const m=h[1];s(m<=this.size*3);const p=m>0&&h[2]==m&&h[3]==m*3&&h[4]==m&&h[5]==m;return(p&&h[0]>=m*4&&h[6]>=m?1:0)+(p&&h[6]>=m*4&&h[0]>=m?1:0)}finderPenaltyTerminateAndCount(h,m,p){return h&&(this.finderPenaltyAddHistory(m,p),m=0),m+=this.size,this.finderPenaltyAddHistory(m,p),this.finderPenaltyCountPatterns(p)}finderPenaltyAddHistory(h,m){m[0]==0&&(h+=this.size),m.pop(),m.unshift(h)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(d,h,m){if(h<0||h>31||d>>>h)throw new RangeError("Value out of range");for(let p=h-1;p>=0;p--)m.push(d>>>p&1)}function i(d,h){return(d>>>h&1)!=0}function s(d){if(!d)throw new Error("Assertion error")}const l=class Ct{constructor(h,m,p){if(this.mode=h,this.numChars=m,this.bitData=p,m<0)throw new RangeError("Invalid argument");this.bitData=p.slice()}static makeBytes(h){let m=[];for(const p of h)n(p,8,m);return new Ct(Ct.Mode.BYTE,h.length,m)}static makeNumeric(h){if(!Ct.isNumeric(h))throw new RangeError("String contains non-numeric characters");let m=[];for(let p=0;p<h.length;){const C=Math.min(h.length-p,3);n(parseInt(h.substring(p,p+C),10),C*3+1,m),p+=C}return new Ct(Ct.Mode.NUMERIC,h.length,m)}static makeAlphanumeric(h){if(!Ct.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let m=[],p;for(p=0;p+2<=h.length;p+=2){let C=Ct.ALPHANUMERIC_CHARSET.indexOf(h.charAt(p))*45;C+=Ct.ALPHANUMERIC_CHARSET.indexOf(h.charAt(p+1)),n(C,11,m)}return p<h.length&&n(Ct.ALPHANUMERIC_CHARSET.indexOf(h.charAt(p)),6,m),new Ct(Ct.Mode.ALPHANUMERIC,h.length,m)}static makeSegments(h){return h==""?[]:Ct.isNumeric(h)?[Ct.makeNumeric(h)]:Ct.isAlphanumeric(h)?[Ct.makeAlphanumeric(h)]:[Ct.makeBytes(Ct.toUtf8ByteArray(h))]}static makeEci(h){let m=[];if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)n(h,8,m);else if(h<16384)n(2,2,m),n(h,14,m);else if(h<1e6)n(6,3,m),n(h,21,m);else throw new RangeError("ECI assignment value out of range");return new Ct(Ct.Mode.ECI,0,m)}static isNumeric(h){return Ct.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return Ct.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,m){let p=0;for(const C of h){const v=C.mode.numCharCountBits(m);if(C.numChars>=1<<v)return 1/0;p+=4+v+C.bitData.length}return p}static toUtf8ByteArray(h){h=encodeURI(h);let m=[];for(let p=0;p<h.length;p++)h.charAt(p)!="%"?m.push(h.charCodeAt(p)):(m.push(parseInt(h.substring(p+1,p+3),16)),p+=2);return m}};l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let u=l;e.QrSegment=l})(La||(La={}));(e=>{(t=>{const n=class{constructor(s,l){this.ordinal=s,this.formatBits=l}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(La||(La={}));(e=>{(t=>{const n=class{constructor(s,l){this.modeBits=s,this.numBitsCharCount=l}numCharCountBits(s){return this.numBitsCharCount[Math.floor((s+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(La||(La={}));var Fs=La;/**
 * @license qrcode.react
 * Copyright (c) Paul O'Shannessy
 * SPDX-License-Identifier: ISC
 */var IH={L:Fs.QrCode.Ecc.LOW,M:Fs.QrCode.Ecc.MEDIUM,Q:Fs.QrCode.Ecc.QUARTILE,H:Fs.QrCode.Ecc.HIGH},Zb=128,Gb="L",Yb="#FFFFFF",$b="#000000",Wb=!1,qb=1,ZH=4,GH=0,YH=.1;function Kb(e,t=0){const n=[];return e.forEach(function(i,s){let l=null;i.forEach(function(u,d){if(!u&&l!==null){n.push(`M${l+t} ${s+t}h${d-l}v1H${l+t}z`),l=null;return}if(d===i.length-1){if(!u)return;l===null?n.push(`M${d+t},${s+t} h1v1H${d+t}z`):n.push(`M${l+t},${s+t} h${d+1-l}v1H${l+t}z`);return}u&&l===null&&(l=d)})}),n.join("")}function Qb(e,t){return e.slice().map((n,i)=>i<t.y||i>=t.y+t.h?n:n.map((s,l)=>l<t.x||l>=t.x+t.w?s:!1))}function $H(e,t,n,i){if(i==null)return null;const s=e.length+n*2,l=Math.floor(t*YH),u=s/t,d=(i.width||l)*u,h=(i.height||l)*u,m=i.x==null?e.length/2-d/2:i.x*u,p=i.y==null?e.length/2-h/2:i.y*u,C=i.opacity==null?1:i.opacity;let v=null;if(i.excavate){let b=Math.floor(m),S=Math.floor(p),E=Math.ceil(d+m-b),j=Math.ceil(h+p-S);v={x:b,y:S,w:E,h:j}}const w=i.crossOrigin;return{x:m,y:p,h,w:d,excavation:v,opacity:C,crossOrigin:w}}function WH(e,t){return t!=null?Math.max(Math.floor(t),0):e?ZH:GH}function Xb({value:e,level:t,minVersion:n,includeMargin:i,marginSize:s,imageSettings:l,size:u,boostLevel:d}){let h=ue.useMemo(()=>{const b=(Array.isArray(e)?e:[e]).reduce((S,E)=>(S.push(...Fs.QrSegment.makeSegments(E)),S),[]);return Fs.QrCode.encodeSegments(b,IH[t],n,void 0,void 0,d)},[e,t,n,d]);const{cells:m,margin:p,numCells:C,calculatedImageSettings:v}=ue.useMemo(()=>{let w=h.getModules();const b=WH(i,s),S=w.length+b*2,E=$H(w,u,b,l);return{cells:w,margin:b,numCells:S,calculatedImageSettings:E}},[h,u,l,i,s]);return{qrcode:h,margin:p,cells:m,numCells:C,calculatedImageSettings:v}}var qH=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Jb=ue.forwardRef(function(t,n){const i=t,{value:s,size:l=Zb,level:u=Gb,bgColor:d=Yb,fgColor:h=$b,includeMargin:m=Wb,minVersion:p=qb,boostLevel:C,marginSize:v,imageSettings:w}=i,S=I4(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:E}=S,j=I4(S,["style"]),T=w==null?void 0:w.src,L=ue.useRef(null),D=ue.useRef(null),M=ue.useCallback(ie=>{L.current=ie,typeof n=="function"?n(ie):n&&(n.current=ie)},[n]),[k,O]=ue.useState(!1),{margin:z,cells:I,numCells:ne,calculatedImageSettings:Q}=Xb({value:s,level:u,minVersion:p,boostLevel:C,includeMargin:m,marginSize:v,imageSettings:w,size:l});ue.useEffect(()=>{if(L.current!=null){const ie=L.current,J=ie.getContext("2d");if(!J)return;let _=I;const U=D.current,V=Q!=null&&U!==null&&U.complete&&U.naturalHeight!==0&&U.naturalWidth!==0;V&&Q.excavation!=null&&(_=Qb(I,Q.excavation));const q=window.devicePixelRatio||1;ie.height=ie.width=l*q;const R=l/ne*q;J.scale(R,R),J.fillStyle=d,J.fillRect(0,0,ne,ne),J.fillStyle=h,qH?J.fill(new Path2D(Kb(_,z))):I.forEach(function(Z,F){Z.forEach(function(G,ee){G&&J.fillRect(ee+z,F+z,1,1)})}),Q&&(J.globalAlpha=Q.opacity),V&&J.drawImage(U,Q.x+z,Q.y+z,Q.w,Q.h)}}),ue.useEffect(()=>{O(!1)},[T]);const le=H4({height:l,width:l},E);let he=null;return T!=null&&(he=ue.createElement("img",{src:T,key:T,style:{display:"none"},onLoad:()=>{O(!0)},ref:D,crossOrigin:Q==null?void 0:Q.crossOrigin})),ue.createElement(ue.Fragment,null,ue.createElement("canvas",H4({style:le,height:l,width:l,ref:M,role:"img"},j)),he)});Jb.displayName="QRCodeCanvas";var KH=ue.forwardRef(function(t,n){const i=t,{value:s,size:l=Zb,level:u=Gb,bgColor:d=Yb,fgColor:h=$b,includeMargin:m=Wb,minVersion:p=qb,boostLevel:C,title:v,marginSize:w,imageSettings:b}=i,S=I4(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:E,cells:j,numCells:T,calculatedImageSettings:L}=Xb({value:s,level:u,minVersion:p,boostLevel:C,includeMargin:m,marginSize:w,imageSettings:b,size:l});let D=j,M=null;b!=null&&L!=null&&(L.excavation!=null&&(D=Qb(j,L.excavation)),M=ue.createElement("image",{href:b.src,height:L.h,width:L.w,x:L.x+E,y:L.y+E,preserveAspectRatio:"none",opacity:L.opacity,crossOrigin:L.crossOrigin}));const k=Kb(D,E);return ue.createElement("svg",H4({height:l,width:l,viewBox:`0 0 ${T} ${T}`,ref:n,role:"img"},S),!!v&&ue.createElement("title",null,v),ue.createElement("path",{fill:d,d:`M0,0 h${T}v${T}H0z`,shapeRendering:"crispEdges"}),ue.createElement("path",{fill:h,d:k,shapeRendering:"crispEdges"}),M)});KH.displayName="QRCodeSVG";function QH(){var l;const{user:e}=Vi(),[t,n]=y.useState(""),i=[{id:"account",icon:z_,label:"Account Settings",path:"/profile/account"},{id:"progress",icon:Bx,label:"My Progress",path:"/profile/progress"}];async function s(){const u=await Ub.getUser();n(u.data.data.user.uid)}return y.useEffect(()=>{s()},[]),c.jsxs("div",{children:[c.jsxs("div",{className:"flex flex-col items-center gap-2",children:[c.jsx(UH,{user:e}),c.jsxs("span",{children:[c.jsx("h4",{className:"font-bold text-base text-center",children:e==null?void 0:e.name}),c.jsx("p",{className:"text-gray-400 text-sm text-center mt-1",children:(l=e==null?void 0:e.grade)==null?void 0:l.name})]})]}),c.jsx("ul",{className:"space-y-1 mt-8 mb-16",children:i.map(u=>c.jsx("li",{children:c.jsxs(tt,{to:u.path,className:({isActive:d})=>`flex items-center gap-2 py-2 px-2 rounded-lg transition cursor-pointer text-lg ${d?"bg-main-400 text-white font-medium":"font-light hover:bg-main-300/10"}`,children:[c.jsx(Ee,{icon:u.icon,className:"size-6"}),c.jsx("span",{children:u.label})]})},u.id))}),c.jsx(Jb,{className:"!w-full !h-auto rounded-2xl",value:t,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!0})]})}function XH(){return c.jsxs(c.Fragment,{children:[c.jsx(Bb,{}),c.jsxs("main",{className:"container mx-auto grid grid-cols-12 md:gap-12 gap-6 pt-12 px-4",children:[c.jsx("div",{className:"md:col-span-3 col-span-12 bg-neutral-100 h-fit rounded-2xl p-5",children:c.jsx(QH,{})}),c.jsx("div",{className:"md:col-span-9 col-span-12 bg-neutral-100 h-fit rounded-2xl p-5",children:c.jsx(Yc,{})})]})]})}var JH=function(t){return eI(t)&&!tI(t)};function eI(e){return!!e&&typeof e=="object"}function tI(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||iI(e)}var nI=typeof Symbol=="function"&&Symbol.for,rI=nI?Symbol.for("react.element"):60103;function iI(e){return e.$$typeof===rI}function aI(e){return Array.isArray(e)?[]:{}}function zc(e,t){return t.clone!==!1&&t.isMergeableObject(e)?W1(aI(e),e,t):e}function sI(e,t,n){return e.concat(t).map(function(i){return zc(i,n)})}function oI(e,t,n){var i={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(s){i[s]=zc(e[s],n)}),Object.keys(t).forEach(function(s){!n.isMergeableObject(t[s])||!e[s]?i[s]=zc(t[s],n):i[s]=W1(e[s],t[s],n)}),i}function W1(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sI,n.isMergeableObject=n.isMergeableObject||JH;var i=Array.isArray(t),s=Array.isArray(e),l=i===s;return l?i?n.arrayMerge(e,t,n):oI(e,t,n):zc(t,n)}W1.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,s){return W1(i,s,n)},{})};var Z4=W1,ew=typeof global=="object"&&global&&global.Object===Object&&global,lI=typeof self=="object"&&self&&self.Object===Object&&self,xr=ew||lI||Function("return this")(),_i=xr.Symbol,tw=Object.prototype,cI=tw.hasOwnProperty,uI=tw.toString,w1=_i?_i.toStringTag:void 0;function fI(e){var t=cI.call(e,w1),n=e[w1];try{e[w1]=void 0;var i=!0}catch{}var s=uI.call(e);return i&&(t?e[w1]=n:delete e[w1]),s}var dI=Object.prototype,hI=dI.toString;function mI(e){return hI.call(e)}var pI="[object Null]",gI="[object Undefined]",Dp=_i?_i.toStringTag:void 0;function Oa(e){return e==null?e===void 0?gI:pI:Dp&&Dp in Object(e)?fI(e):mI(e)}function nw(e,t){return function(n){return e(t(n))}}var S8=nw(Object.getPrototypeOf,Object);function _a(e){return e!=null&&typeof e=="object"}var CI="[object Object]",vI=Function.prototype,xI=Object.prototype,rw=vI.toString,yI=xI.hasOwnProperty,bI=rw.call(Object);function kp(e){if(!_a(e)||Oa(e)!=CI)return!1;var t=S8(e);if(t===null)return!0;var n=yI.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rw.call(n)==bI}function wI(){this.__data__=[],this.size=0}function iw(e,t){return e===t||e!==e&&t!==t}function vu(e,t){for(var n=e.length;n--;)if(iw(e[n][0],t))return n;return-1}var SI=Array.prototype,EI=SI.splice;function jI(e){var t=this.__data__,n=vu(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():EI.call(t,n,1),--this.size,!0}function AI(e){var t=this.__data__,n=vu(t,e);return n<0?void 0:t[n][1]}function MI(e){return vu(this.__data__,e)>-1}function LI(e,t){var n=this.__data__,i=vu(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function Jr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Jr.prototype.clear=wI;Jr.prototype.delete=jI;Jr.prototype.get=AI;Jr.prototype.has=MI;Jr.prototype.set=LI;function TI(){this.__data__=new Jr,this.size=0}function NI(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function RI(e){return this.__data__.get(e)}function DI(e){return this.__data__.has(e)}function pl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kI="[object AsyncFunction]",OI="[object Function]",_I="[object GeneratorFunction]",PI="[object Proxy]";function aw(e){if(!pl(e))return!1;var t=Oa(e);return t==OI||t==_I||t==kI||t==PI}var V7=xr["__core-js_shared__"],Op=function(){var e=/[^.]+$/.exec(V7&&V7.keys&&V7.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function VI(e){return!!Op&&Op in e}var zI=Function.prototype,FI=zI.toString;function Pa(e){if(e!=null){try{return FI.call(e)}catch{}try{return e+""}catch{}}return""}var BI=/[\\^$.*+?()[\]{}|]/g,UI=/^\[object .+?Constructor\]$/,HI=Function.prototype,II=Object.prototype,ZI=HI.toString,GI=II.hasOwnProperty,YI=RegExp("^"+ZI.call(GI).replace(BI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $I(e){if(!pl(e)||VI(e))return!1;var t=aw(e)?YI:UI;return t.test(Pa(e))}function WI(e,t){return e==null?void 0:e[t]}function Va(e,t){var n=WI(e,t);return $I(n)?n:void 0}var q1=Va(xr,"Map"),K1=Va(Object,"create");function qI(){this.__data__=K1?K1(null):{},this.size=0}function KI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var QI="__lodash_hash_undefined__",XI=Object.prototype,JI=XI.hasOwnProperty;function eZ(e){var t=this.__data__;if(K1){var n=t[e];return n===QI?void 0:n}return JI.call(t,e)?t[e]:void 0}var tZ=Object.prototype,nZ=tZ.hasOwnProperty;function rZ(e){var t=this.__data__;return K1?t[e]!==void 0:nZ.call(t,e)}var iZ="__lodash_hash_undefined__";function aZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K1&&t===void 0?iZ:t,this}function Ta(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ta.prototype.clear=qI;Ta.prototype.delete=KI;Ta.prototype.get=eZ;Ta.prototype.has=rZ;Ta.prototype.set=aZ;function sZ(){this.size=0,this.__data__={hash:new Ta,map:new(q1||Jr),string:new Ta}}function oZ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xu(e,t){var n=e.__data__;return oZ(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lZ(e){var t=xu(this,e).delete(e);return this.size-=t?1:0,t}function cZ(e){return xu(this,e).get(e)}function uZ(e){return xu(this,e).has(e)}function fZ(e,t){var n=xu(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function Bi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Bi.prototype.clear=sZ;Bi.prototype.delete=lZ;Bi.prototype.get=cZ;Bi.prototype.has=uZ;Bi.prototype.set=fZ;var dZ=200;function hZ(e,t){var n=this.__data__;if(n instanceof Jr){var i=n.__data__;if(!q1||i.length<dZ-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bi(i)}return n.set(e,t),this.size=n.size,this}function co(e){var t=this.__data__=new Jr(e);this.size=t.size}co.prototype.clear=TI;co.prototype.delete=NI;co.prototype.get=RI;co.prototype.has=DI;co.prototype.set=hZ;function mZ(e,t){for(var n=-1,i=e==null?0:e.length;++n<i&&t(e[n],n,e)!==!1;);return e}var _p=function(){try{var e=Va(Object,"defineProperty");return e({},"",{}),e}catch{}}();function sw(e,t,n){t=="__proto__"&&_p?_p(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var pZ=Object.prototype,gZ=pZ.hasOwnProperty;function ow(e,t,n){var i=e[t];(!(gZ.call(e,t)&&iw(i,n))||n===void 0&&!(t in e))&&sw(e,t,n)}function yu(e,t,n,i){var s=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var d=t[l],h=void 0;h===void 0&&(h=e[d]),s?sw(n,d,h):ow(n,d,h)}return n}function CZ(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var vZ="[object Arguments]";function Pp(e){return _a(e)&&Oa(e)==vZ}var lw=Object.prototype,xZ=lw.hasOwnProperty,yZ=lw.propertyIsEnumerable,bZ=Pp(function(){return arguments}())?Pp:function(e){return _a(e)&&xZ.call(e,"callee")&&!yZ.call(e,"callee")},gl=Array.isArray;function wZ(){return!1}var cw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vp=cw&&typeof module=="object"&&module&&!module.nodeType&&module,SZ=Vp&&Vp.exports===cw,zp=SZ?xr.Buffer:void 0,EZ=zp?zp.isBuffer:void 0,uw=EZ||wZ,jZ=9007199254740991,AZ=/^(?:0|[1-9]\d*)$/;function MZ(e,t){var n=typeof e;return t=t??jZ,!!t&&(n=="number"||n!="symbol"&&AZ.test(e))&&e>-1&&e%1==0&&e<t}var LZ=9007199254740991;function fw(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=LZ}var TZ="[object Arguments]",NZ="[object Array]",RZ="[object Boolean]",DZ="[object Date]",kZ="[object Error]",OZ="[object Function]",_Z="[object Map]",PZ="[object Number]",VZ="[object Object]",zZ="[object RegExp]",FZ="[object Set]",BZ="[object String]",UZ="[object WeakMap]",HZ="[object ArrayBuffer]",IZ="[object DataView]",ZZ="[object Float32Array]",GZ="[object Float64Array]",YZ="[object Int8Array]",$Z="[object Int16Array]",WZ="[object Int32Array]",qZ="[object Uint8Array]",KZ="[object Uint8ClampedArray]",QZ="[object Uint16Array]",XZ="[object Uint32Array]",at={};at[ZZ]=at[GZ]=at[YZ]=at[$Z]=at[WZ]=at[qZ]=at[KZ]=at[QZ]=at[XZ]=!0;at[TZ]=at[NZ]=at[HZ]=at[RZ]=at[IZ]=at[DZ]=at[kZ]=at[OZ]=at[_Z]=at[PZ]=at[VZ]=at[zZ]=at[FZ]=at[BZ]=at[UZ]=!1;function JZ(e){return _a(e)&&fw(e.length)&&!!at[Oa(e)]}function E8(e){return function(t){return e(t)}}var dw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D1=dw&&typeof module=="object"&&module&&!module.nodeType&&module,eG=D1&&D1.exports===dw,z7=eG&&ew.process,Ks=function(){try{var e=D1&&D1.require&&D1.require("util").types;return e||z7&&z7.binding&&z7.binding("util")}catch{}}(),Fp=Ks&&Ks.isTypedArray,tG=Fp?E8(Fp):JZ,nG=Object.prototype,rG=nG.hasOwnProperty;function hw(e,t){var n=gl(e),i=!n&&bZ(e),s=!n&&!i&&uw(e),l=!n&&!i&&!s&&tG(e),u=n||i||s||l,d=u?CZ(e.length,String):[],h=d.length;for(var m in e)(t||rG.call(e,m))&&!(u&&(m=="length"||s&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||MZ(m,h)))&&d.push(m);return d}var iG=Object.prototype;function j8(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||iG;return e===n}var aG=nw(Object.keys,Object),sG=Object.prototype,oG=sG.hasOwnProperty;function lG(e){if(!j8(e))return aG(e);var t=[];for(var n in Object(e))oG.call(e,n)&&n!="constructor"&&t.push(n);return t}function mw(e){return e!=null&&fw(e.length)&&!aw(e)}function A8(e){return mw(e)?hw(e):lG(e)}function cG(e,t){return e&&yu(t,A8(t),e)}function uG(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var fG=Object.prototype,dG=fG.hasOwnProperty;function hG(e){if(!pl(e))return uG(e);var t=j8(e),n=[];for(var i in e)i=="constructor"&&(t||!dG.call(e,i))||n.push(i);return n}function M8(e){return mw(e)?hw(e,!0):hG(e)}function mG(e,t){return e&&yu(t,M8(t),e)}var pw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bp=pw&&typeof module=="object"&&module&&!module.nodeType&&module,pG=Bp&&Bp.exports===pw,Up=pG?xr.Buffer:void 0,Hp=Up?Up.allocUnsafe:void 0;function gG(e,t){if(t)return e.slice();var n=e.length,i=Hp?Hp(n):new e.constructor(n);return e.copy(i),i}function gw(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function CG(e,t){for(var n=-1,i=e==null?0:e.length,s=0,l=[];++n<i;){var u=e[n];t(u,n,e)&&(l[s++]=u)}return l}function Cw(){return[]}var vG=Object.prototype,xG=vG.propertyIsEnumerable,Ip=Object.getOwnPropertySymbols,L8=Ip?function(e){return e==null?[]:(e=Object(e),CG(Ip(e),function(t){return xG.call(e,t)}))}:Cw;function yG(e,t){return yu(e,L8(e),t)}function vw(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e}var bG=Object.getOwnPropertySymbols,xw=bG?function(e){for(var t=[];e;)vw(t,L8(e)),e=S8(e);return t}:Cw;function wG(e,t){return yu(e,xw(e),t)}function yw(e,t,n){var i=t(e);return gl(e)?i:vw(i,n(e))}function SG(e){return yw(e,A8,L8)}function EG(e){return yw(e,M8,xw)}var G4=Va(xr,"DataView"),Y4=Va(xr,"Promise"),$4=Va(xr,"Set"),W4=Va(xr,"WeakMap"),Zp="[object Map]",jG="[object Object]",Gp="[object Promise]",Yp="[object Set]",$p="[object WeakMap]",Wp="[object DataView]",AG=Pa(G4),MG=Pa(q1),LG=Pa(Y4),TG=Pa($4),NG=Pa(W4),zr=Oa;(G4&&zr(new G4(new ArrayBuffer(1)))!=Wp||q1&&zr(new q1)!=Zp||Y4&&zr(Y4.resolve())!=Gp||$4&&zr(new $4)!=Yp||W4&&zr(new W4)!=$p)&&(zr=function(e){var t=Oa(e),n=t==jG?e.constructor:void 0,i=n?Pa(n):"";if(i)switch(i){case AG:return Wp;case MG:return Zp;case LG:return Gp;case TG:return Yp;case NG:return $p}return t});var RG=Object.prototype,DG=RG.hasOwnProperty;function kG(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&DG.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var qp=xr.Uint8Array;function T8(e){var t=new e.constructor(e.byteLength);return new qp(t).set(new qp(e)),t}function OG(e,t){var n=t?T8(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var _G=/\w*$/;function PG(e){var t=new e.constructor(e.source,_G.exec(e));return t.lastIndex=e.lastIndex,t}var Kp=_i?_i.prototype:void 0,Qp=Kp?Kp.valueOf:void 0;function VG(e){return Qp?Object(Qp.call(e)):{}}function zG(e,t){var n=t?T8(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var FG="[object Boolean]",BG="[object Date]",UG="[object Map]",HG="[object Number]",IG="[object RegExp]",ZG="[object Set]",GG="[object String]",YG="[object Symbol]",$G="[object ArrayBuffer]",WG="[object DataView]",qG="[object Float32Array]",KG="[object Float64Array]",QG="[object Int8Array]",XG="[object Int16Array]",JG="[object Int32Array]",eY="[object Uint8Array]",tY="[object Uint8ClampedArray]",nY="[object Uint16Array]",rY="[object Uint32Array]";function iY(e,t,n){var i=e.constructor;switch(t){case $G:return T8(e);case FG:case BG:return new i(+e);case WG:return OG(e,n);case qG:case KG:case QG:case XG:case JG:case eY:case tY:case nY:case rY:return zG(e,n);case UG:return new i;case HG:case GG:return new i(e);case IG:return PG(e);case ZG:return new i;case YG:return VG(e)}}var Xp=Object.create,aY=function(){function e(){}return function(t){if(!pl(t))return{};if(Xp)return Xp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function sY(e){return typeof e.constructor=="function"&&!j8(e)?aY(S8(e)):{}}var oY="[object Map]";function lY(e){return _a(e)&&zr(e)==oY}var Jp=Ks&&Ks.isMap,cY=Jp?E8(Jp):lY,uY="[object Set]";function fY(e){return _a(e)&&zr(e)==uY}var eg=Ks&&Ks.isSet,dY=eg?E8(eg):fY,hY=1,mY=2,pY=4,bw="[object Arguments]",gY="[object Array]",CY="[object Boolean]",vY="[object Date]",xY="[object Error]",ww="[object Function]",yY="[object GeneratorFunction]",bY="[object Map]",wY="[object Number]",Sw="[object Object]",SY="[object RegExp]",EY="[object Set]",jY="[object String]",AY="[object Symbol]",MY="[object WeakMap]",LY="[object ArrayBuffer]",TY="[object DataView]",NY="[object Float32Array]",RY="[object Float64Array]",DY="[object Int8Array]",kY="[object Int16Array]",OY="[object Int32Array]",_Y="[object Uint8Array]",PY="[object Uint8ClampedArray]",VY="[object Uint16Array]",zY="[object Uint32Array]",rt={};rt[bw]=rt[gY]=rt[LY]=rt[TY]=rt[CY]=rt[vY]=rt[NY]=rt[RY]=rt[DY]=rt[kY]=rt[OY]=rt[bY]=rt[wY]=rt[Sw]=rt[SY]=rt[EY]=rt[jY]=rt[AY]=rt[_Y]=rt[PY]=rt[VY]=rt[zY]=!0;rt[xY]=rt[ww]=rt[MY]=!1;function k1(e,t,n,i,s,l){var u,d=t&hY,h=t&mY,m=t&pY;if(u!==void 0)return u;if(!pl(e))return e;var p=gl(e);if(p){if(u=kG(e),!d)return gw(e,u)}else{var C=zr(e),v=C==ww||C==yY;if(uw(e))return gG(e,d);if(C==Sw||C==bw||v&&!s){if(u=h||v?{}:sY(e),!d)return h?wG(e,mG(u,e)):yG(e,cG(u,e))}else{if(!rt[C])return s?e:{};u=iY(e,C,d)}}l||(l=new co);var w=l.get(e);if(w)return w;l.set(e,u),dY(e)?e.forEach(function(E){u.add(k1(E,t,n,E,e,l))}):cY(e)&&e.forEach(function(E,j){u.set(j,k1(E,t,n,j,e,l))});var b=m?h?EG:SG:h?M8:A8,S=p?void 0:b(e);return mZ(S||e,function(E,j){S&&(j=E,E=e[j]),ow(u,j,k1(E,t,n,j,e,l))}),u}var FY=1,BY=4;function Z2(e){return k1(e,FY|BY)}var F7,tg;function UY(){if(tg)return F7;tg=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,i=typeof Element<"u";function s(l,u){if(l===u)return!0;if(l&&u&&typeof l=="object"&&typeof u=="object"){var d=e(l),h=e(u),m,p,C;if(d&&h){if(p=l.length,p!=u.length)return!1;for(m=p;m--!==0;)if(!s(l[m],u[m]))return!1;return!0}if(d!=h)return!1;var v=l instanceof Date,w=u instanceof Date;if(v!=w)return!1;if(v&&w)return l.getTime()==u.getTime();var b=l instanceof RegExp,S=u instanceof RegExp;if(b!=S)return!1;if(b&&S)return l.toString()==u.toString();var E=t(l);if(p=E.length,p!==t(u).length)return!1;for(m=p;m--!==0;)if(!n.call(u,E[m]))return!1;if(i&&l instanceof Element&&u instanceof Element)return l===u;for(m=p;m--!==0;)if(C=E[m],!(C==="_owner"&&l.$$typeof)&&!s(l[C],u[C]))return!1;return!0}return l!==l&&u!==u}return F7=function(u,d){try{return s(u,d)}catch(h){if(h.message&&h.message.match(/stack|recursion/i)||h.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",h.name,h.message),!1;throw h}},F7}var HY=UY();const fa=Pi(HY);var IY=4;function ng(e){return k1(e,IY)}function Ew(e,t){for(var n=-1,i=e==null?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s}var ZY="[object Symbol]";function N8(e){return typeof e=="symbol"||_a(e)&&Oa(e)==ZY}var GY="Expected a function";function R8(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GY);var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],l=n.cache;if(l.has(s))return l.get(s);var u=e.apply(this,i);return n.cache=l.set(s,u)||l,u};return n.cache=new(R8.Cache||Bi),n}R8.Cache=Bi;var YY=500;function $Y(e){var t=R8(e,function(i){return n.size===YY&&n.clear(),i}),n=t.cache;return t}var WY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qY=/\\(\\)?/g,KY=$Y(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(WY,function(n,i,s,l){t.push(s?l.replace(qY,"$1"):i||n)}),t});function QY(e){if(typeof e=="string"||N8(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rg=_i?_i.prototype:void 0,ig=rg?rg.toString:void 0;function jw(e){if(typeof e=="string")return e;if(gl(e))return Ew(e,jw)+"";if(N8(e))return ig?ig.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function XY(e){return e==null?"":jw(e)}function Aw(e){return gl(e)?Ew(e,QY):N8(e)?[e]:gw(KY(XY(e)))}var B7={exports:{}},We={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ag;function JY(){if(ag)return We;ag=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function L(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case t:switch(M=M.type,M){case h:case m:case i:case l:case s:case C:return M;default:switch(M=M&&M.$$typeof,M){case d:case p:case b:case w:case u:return M;default:return k}}case n:return k}}}function D(M){return L(M)===m}return We.AsyncMode=h,We.ConcurrentMode=m,We.ContextConsumer=d,We.ContextProvider=u,We.Element=t,We.ForwardRef=p,We.Fragment=i,We.Lazy=b,We.Memo=w,We.Portal=n,We.Profiler=l,We.StrictMode=s,We.Suspense=C,We.isAsyncMode=function(M){return D(M)||L(M)===h},We.isConcurrentMode=D,We.isContextConsumer=function(M){return L(M)===d},We.isContextProvider=function(M){return L(M)===u},We.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},We.isForwardRef=function(M){return L(M)===p},We.isFragment=function(M){return L(M)===i},We.isLazy=function(M){return L(M)===b},We.isMemo=function(M){return L(M)===w},We.isPortal=function(M){return L(M)===n},We.isProfiler=function(M){return L(M)===l},We.isStrictMode=function(M){return L(M)===s},We.isSuspense=function(M){return L(M)===C},We.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===m||M===l||M===s||M===C||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===b||M.$$typeof===w||M.$$typeof===u||M.$$typeof===d||M.$$typeof===p||M.$$typeof===E||M.$$typeof===j||M.$$typeof===T||M.$$typeof===S)},We.typeOf=L,We}var sg;function e$(){return sg||(sg=1,B7.exports=JY()),B7.exports}var U7,og;function t$(){if(og)return U7;og=1;var e=e$(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=i,l[e.Memo]=s;function u(b){return e.isMemo(b)?s:l[b.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,C=Object.getPrototypeOf,v=Object.prototype;function w(b,S,E){if(typeof S!="string"){if(v){var j=C(S);j&&j!==v&&w(b,j,E)}var T=h(S);m&&(T=T.concat(m(S)));for(var L=u(b),D=u(S),M=0;M<T.length;++M){var k=T[M];if(!n[k]&&!(E&&E[k])&&!(D&&D[k])&&!(L&&L[k])){var O=p(S,k);try{d(b,k,O)}catch{}}}}return b}return U7=w,U7}t$();function Pt(){return Pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pt.apply(this,arguments)}function Mw(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,l;for(l=0;l<i.length;l++)s=i[l],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}var bu=y.createContext(void 0);bu.displayName="FormikContext";bu.Provider;bu.Consumer;function n$(){var e=y.useContext(bu);return e}var $n=function(t){return typeof t=="function"},wu=function(t){return t!==null&&typeof t=="object"},r$=function(t){return String(Math.floor(Number(t)))===t},H7=function(t){return Object.prototype.toString.call(t)==="[object String]"},I7=function(t){return wu(t)&&$n(t.then)};function bn(e,t,n,i){i===void 0&&(i=0);for(var s=Aw(t);e&&i<s.length;)e=e[s[i++]];return i!==s.length&&!e||e===void 0?n:e}function ba(e,t,n){for(var i=ng(e),s=i,l=0,u=Aw(t);l<u.length-1;l++){var d=u[l],h=bn(e,u.slice(0,l+1));if(h&&(wu(h)||Array.isArray(h)))s=s[d]=ng(h);else{var m=u[l+1];s=s[d]=r$(m)&&Number(m)>=0?[]:{}}}return(l===0?e:s)[u[l]]===n?e:(n===void 0?delete s[u[l]]:s[u[l]]=n,l===0&&n===void 0&&delete i[u[l]],i)}function Lw(e,t,n,i){n===void 0&&(n=new WeakMap),i===void 0&&(i={});for(var s=0,l=Object.keys(e);s<l.length;s++){var u=l[s],d=e[u];wu(d)?n.get(d)||(n.set(d,!0),i[u]=Array.isArray(d)?[]:{},Lw(d,t,n,i[u])):i[u]=t}return i}function i$(e,t){switch(t.type){case"SET_VALUES":return Pt({},e,{values:t.payload});case"SET_TOUCHED":return Pt({},e,{touched:t.payload});case"SET_ERRORS":return fa(e.errors,t.payload)?e:Pt({},e,{errors:t.payload});case"SET_STATUS":return Pt({},e,{status:t.payload});case"SET_ISSUBMITTING":return Pt({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Pt({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Pt({},e,{values:ba(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Pt({},e,{touched:ba(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Pt({},e,{errors:ba(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Pt({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Pt({},e,{touched:Lw(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Pt({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Pt({},e,{isSubmitting:!1});default:return e}}var ca={},G2={};function a$(e){var t=e.validateOnChange,n=t===void 0?!0:t,i=e.validateOnBlur,s=i===void 0?!0:i,l=e.validateOnMount,u=l===void 0?!1:l,d=e.isInitialValid,h=e.enableReinitialize,m=h===void 0?!1:h,p=e.onSubmit,C=Mw(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=Pt({validateOnChange:n,validateOnBlur:s,validateOnMount:u,onSubmit:p},C),w=y.useRef(v.initialValues),b=y.useRef(v.initialErrors||ca),S=y.useRef(v.initialTouched||G2),E=y.useRef(v.initialStatus),j=y.useRef(!1),T=y.useRef({});y.useEffect(function(){return j.current=!0,function(){j.current=!1}},[]);var L=y.useState(0),D=L[1],M=y.useRef({values:Z2(v.initialValues),errors:Z2(v.initialErrors)||ca,touched:Z2(v.initialTouched)||G2,status:Z2(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),k=M.current,O=y.useCallback(function(X){var me=M.current;M.current=i$(me,X),me!==M.current&&D(function(ve){return ve+1})},[]),z=y.useCallback(function(X,me){return new Promise(function(ve,we){var Le=v.validate(X,me);Le==null?ve(ca):I7(Le)?Le.then(function(Te){ve(Te||ca)},function(Te){we(Te)}):ve(Le)})},[v.validate]),I=y.useCallback(function(X,me){var ve=v.validationSchema,we=$n(ve)?ve(me):ve,Le=me&&we.validateAt?we.validateAt(me,X):o$(X,we);return new Promise(function(Te,ct){Le.then(function(){Te(ca)},function(dt){dt.name==="ValidationError"?Te(s$(dt)):ct(dt)})})},[v.validationSchema]),ne=y.useCallback(function(X,me){return new Promise(function(ve){return ve(T.current[X].validate(me))})},[]),Q=y.useCallback(function(X){var me=Object.keys(T.current).filter(function(we){return $n(T.current[we].validate)}),ve=me.length>0?me.map(function(we){return ne(we,bn(X,we))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ve).then(function(we){return we.reduce(function(Le,Te,ct){return Te==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Te&&(Le=ba(Le,me[ct],Te)),Le},{})})},[ne]),le=y.useCallback(function(X){return Promise.all([Q(X),v.validationSchema?I(X):{},v.validate?z(X):{}]).then(function(me){var ve=me[0],we=me[1],Le=me[2],Te=Z4.all([ve,we,Le],{arrayMerge:l$});return Te})},[v.validate,v.validationSchema,Q,z,I]),he=kn(function(X){return X===void 0&&(X=k.values),O({type:"SET_ISVALIDATING",payload:!0}),le(X).then(function(me){return j.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:me})),me})});y.useEffect(function(){u&&j.current===!0&&fa(w.current,v.initialValues)&&he(w.current)},[u,he]);var ie=y.useCallback(function(X){var me=X&&X.values?X.values:w.current,ve=X&&X.errors?X.errors:b.current?b.current:v.initialErrors||{},we=X&&X.touched?X.touched:S.current?S.current:v.initialTouched||{},Le=X&&X.status?X.status:E.current?E.current:v.initialStatus;w.current=me,b.current=ve,S.current=we,E.current=Le;var Te=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!X&&!!X.isSubmitting,errors:ve,touched:we,status:Le,values:me,isValidating:!!X&&!!X.isValidating,submitCount:X&&X.submitCount&&typeof X.submitCount=="number"?X.submitCount:0}})};if(v.onReset){var ct=v.onReset(k.values,Vt);I7(ct)?ct.then(Te):Te()}else Te()},[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);y.useEffect(function(){j.current===!0&&!fa(w.current,v.initialValues)&&m&&(w.current=v.initialValues,ie(),u&&he(w.current))},[m,v.initialValues,ie,u,he]),y.useEffect(function(){m&&j.current===!0&&!fa(b.current,v.initialErrors)&&(b.current=v.initialErrors||ca,O({type:"SET_ERRORS",payload:v.initialErrors||ca}))},[m,v.initialErrors]),y.useEffect(function(){m&&j.current===!0&&!fa(S.current,v.initialTouched)&&(S.current=v.initialTouched||G2,O({type:"SET_TOUCHED",payload:v.initialTouched||G2}))},[m,v.initialTouched]),y.useEffect(function(){m&&j.current===!0&&!fa(E.current,v.initialStatus)&&(E.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))},[m,v.initialStatus,v.initialTouched]);var J=kn(function(X){if(T.current[X]&&$n(T.current[X].validate)){var me=bn(k.values,X),ve=T.current[X].validate(me);return I7(ve)?(O({type:"SET_ISVALIDATING",payload:!0}),ve.then(function(we){return we}).then(function(we){O({type:"SET_FIELD_ERROR",payload:{field:X,value:we}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:X,value:ve}}),Promise.resolve(ve))}else if(v.validationSchema)return O({type:"SET_ISVALIDATING",payload:!0}),I(k.values,X).then(function(we){return we}).then(function(we){O({type:"SET_FIELD_ERROR",payload:{field:X,value:bn(we,X)}}),O({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),_=y.useCallback(function(X,me){var ve=me.validate;T.current[X]={validate:ve}},[]),U=y.useCallback(function(X){delete T.current[X]},[]),V=kn(function(X,me){O({type:"SET_TOUCHED",payload:X});var ve=me===void 0?s:me;return ve?he(k.values):Promise.resolve()}),q=y.useCallback(function(X){O({type:"SET_ERRORS",payload:X})},[]),R=kn(function(X,me){var ve=$n(X)?X(k.values):X;O({type:"SET_VALUES",payload:ve});var we=me===void 0?n:me;return we?he(ve):Promise.resolve()}),Z=y.useCallback(function(X,me){O({type:"SET_FIELD_ERROR",payload:{field:X,value:me}})},[]),F=kn(function(X,me,ve){O({type:"SET_FIELD_VALUE",payload:{field:X,value:me}});var we=ve===void 0?n:ve;return we?he(ba(k.values,X,me)):Promise.resolve()}),G=y.useCallback(function(X,me){var ve=me,we=X,Le;if(!H7(X)){X.persist&&X.persist();var Te=X.target?X.target:X.currentTarget,ct=Te.type,dt=Te.name,mo=Te.id,po=Te.value,Mu=Te.checked;Te.outerHTML;var Hi=Te.options,Fa=Te.multiple;ve=me||dt||mo,we=/number|range/.test(ct)?(Le=parseFloat(po),isNaN(Le)?"":Le):/checkbox/.test(ct)?u$(bn(k.values,ve),Mu,po):Hi&&Fa?c$(Hi):po}ve&&F(ve,we)},[F,k.values]),ee=kn(function(X){if(H7(X))return function(me){return G(me,X)};G(X)}),se=kn(function(X,me,ve){me===void 0&&(me=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:X,value:me}});var we=ve===void 0?s:ve;return we?he(k.values):Promise.resolve()}),ce=y.useCallback(function(X,me){X.persist&&X.persist();var ve=X.target,we=ve.name,Le=ve.id;ve.outerHTML;var Te=me||we||Le;se(Te,!0)},[se]),de=kn(function(X){if(H7(X))return function(me){return ce(me,X)};ce(X)}),ye=y.useCallback(function(X){$n(X)?O({type:"SET_FORMIK_STATE",payload:X}):O({type:"SET_FORMIK_STATE",payload:function(){return X}})},[]),be=y.useCallback(function(X){O({type:"SET_STATUS",payload:X})},[]),Ve=y.useCallback(function(X){O({type:"SET_ISSUBMITTING",payload:X})},[]),lt=kn(function(){return O({type:"SUBMIT_ATTEMPT"}),he().then(function(X){var me=X instanceof Error,ve=!me&&Object.keys(X).length===0;if(ve){var we;try{if(we=ei(),we===void 0)return}catch(Le){throw Le}return Promise.resolve(we).then(function(Le){return j.current&&O({type:"SUBMIT_SUCCESS"}),Le}).catch(function(Le){if(j.current)throw O({type:"SUBMIT_FAILURE"}),Le})}else if(j.current&&(O({type:"SUBMIT_FAILURE"}),me))throw X})}),At=kn(function(X){X&&X.preventDefault&&$n(X.preventDefault)&&X.preventDefault(),X&&X.stopPropagation&&$n(X.stopPropagation)&&X.stopPropagation(),lt().catch(function(me){console.warn("Warning: An unhandled error was caught from submitForm()",me)})}),Vt={resetForm:ie,validateForm:he,validateField:J,setErrors:q,setFieldError:Z,setFieldTouched:se,setFieldValue:F,setStatus:be,setSubmitting:Ve,setTouched:V,setValues:R,setFormikState:ye,submitForm:lt},ei=kn(function(){return p(k.values,Vt)}),uo=kn(function(X){X&&X.preventDefault&&$n(X.preventDefault)&&X.preventDefault(),X&&X.stopPropagation&&$n(X.stopPropagation)&&X.stopPropagation(),ie()}),fo=y.useCallback(function(X){return{value:bn(k.values,X),error:bn(k.errors,X),touched:!!bn(k.touched,X),initialValue:bn(w.current,X),initialTouched:!!bn(S.current,X),initialError:bn(b.current,X)}},[k.errors,k.touched,k.values]),en=y.useCallback(function(X){return{setValue:function(ve,we){return F(X,ve,we)},setTouched:function(ve,we){return se(X,ve,we)},setError:function(ve){return Z(X,ve)}}},[F,se,Z]),ho=y.useCallback(function(X){var me=wu(X),ve=me?X.name:X,we=bn(k.values,ve),Le={name:ve,value:we,onChange:ee,onBlur:de};if(me){var Te=X.type,ct=X.value,dt=X.as,mo=X.multiple;Te==="checkbox"?ct===void 0?Le.checked=!!we:(Le.checked=!!(Array.isArray(we)&&~we.indexOf(ct)),Le.value=ct):Te==="radio"?(Le.checked=we===ct,Le.value=ct):dt==="select"&&mo&&(Le.value=Le.value||[],Le.multiple=!0)}return Le},[de,ee,k.values]),Hn=y.useMemo(function(){return!fa(w.current,k.values)},[w.current,k.values]),Cl=y.useMemo(function(){return typeof d<"u"?Hn?k.errors&&Object.keys(k.errors).length===0:d!==!1&&$n(d)?d(v):d:k.errors&&Object.keys(k.errors).length===0},[d,Hn,k.errors,v]),za=Pt({},k,{initialValues:w.current,initialErrors:b.current,initialTouched:S.current,initialStatus:E.current,handleBlur:de,handleChange:ee,handleReset:uo,handleSubmit:At,resetForm:ie,setErrors:q,setFormikState:ye,setFieldTouched:se,setFieldValue:F,setFieldError:Z,setStatus:be,setSubmitting:Ve,setTouched:V,setValues:R,submitForm:lt,validateForm:he,validateField:J,isValid:Cl,dirty:Hn,unregisterField:U,registerField:_,getFieldProps:ho,getFieldMeta:fo,getFieldHelpers:en,validateOnBlur:s,validateOnChange:n,validateOnMount:u});return za}function s$(e){var t={};if(e.inner){if(e.inner.length===0)return ba(t,e.path,e.message);for(var s=e.inner,n=Array.isArray(s),i=0,s=n?s:s[Symbol.iterator]();;){var l;if(n){if(i>=s.length)break;l=s[i++]}else{if(i=s.next(),i.done)break;l=i.value}var u=l;bn(t,u.path)||(t=ba(t,u.path,u.message))}}return t}function o$(e,t,n,i){n===void 0&&(n=!1);var s=q4(e);return t[n?"validateSync":"validate"](s,{abortEarly:!1,context:s})}function q4(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=String(n);Array.isArray(e[i])===!0?t[i]=e[i].map(function(s){return Array.isArray(s)===!0||kp(s)?q4(s):s!==""?s:void 0}):kp(e[i])?t[i]=q4(e[i]):t[i]=e[i]!==""?e[i]:void 0}return t}function l$(e,t,n){var i=e.slice();return t.forEach(function(l,u){if(typeof i[u]>"u"){var d=n.clone!==!1,h=d&&n.isMergeableObject(l);i[u]=h?Z4(Array.isArray(l)?[]:{},l,n):l}else n.isMergeableObject(l)?i[u]=Z4(e[u],l,n):e.indexOf(l)===-1&&i.push(l)}),i}function c$(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function u$(e,t,n){if(typeof e=="boolean")return!!t;var i=[],s=!1,l=-1;if(Array.isArray(e))i=e,l=e.indexOf(n),s=l>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!s?i.concat(n):s?i.slice(0,l).concat(i.slice(l+1)):i}var f$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?y.useLayoutEffect:y.useEffect;function kn(e){var t=y.useRef(e);return f$(function(){t.current=e}),y.useCallback(function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return t.current.apply(void 0,i)},[])}var d$=y.forwardRef(function(e,t){var n=e.action,i=Mw(e,["action"]),s=n??"#",l=n$(),u=l.handleReset,d=l.handleSubmit;return y.createElement("form",Pt({onSubmit:d,ref:t,onReset:u,action:s},i))});d$.displayName="Form";var Z7,lg;function h$(){if(lg)return Z7;lg=1;function e(j){this._maxSize=j,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(j){return this._values[j]},e.prototype.set=function(j,T){return this._size>=this._maxSize&&this.clear(),j in this._values||this._size++,this._values[j]=T};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,i=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,u=512,d=new e(u),h=new e(u),m=new e(u);Z7={Cache:e,split:C,normalizePath:p,setter:function(j){var T=p(j);return h.get(j)||h.set(j,function(D,M){for(var k=0,O=T.length,z=D;k<O-1;){var I=T[k];if(I==="__proto__"||I==="constructor"||I==="prototype")return D;z=z[T[k++]]}z[T[k]]=M})},getter:function(j,T){var L=p(j);return m.get(j)||m.set(j,function(M){for(var k=0,O=L.length;k<O;)if(M!=null||!T)M=M[L[k++]];else return;return M})},join:function(j){return j.reduce(function(T,L){return T+(w(L)||n.test(L)?"["+L+"]":(T?".":"")+L)},"")},forEach:function(j,T,L){v(Array.isArray(j)?j:C(j),T,L)}};function p(j){return d.get(j)||d.set(j,C(j).map(function(T){return T.replace(l,"$2")}))}function C(j){return j.match(t)||[""]}function v(j,T,L){var D=j.length,M,k,O,z;for(k=0;k<D;k++)M=j[k],M&&(E(M)&&(M='"'+M+'"'),z=w(M),O=!z&&/^\d+$/.test(M),T.call(L,M,z,O,k,j))}function w(j){return typeof j=="string"&&j&&["'",'"'].indexOf(j.charAt(0))!==-1}function b(j){return j.match(i)&&!j.match(n)}function S(j){return s.test(j)}function E(j){return!w(j)&&(b(j)||S(j))}return Z7}var wa=h$(),G7,cg;function m$(){if(cg)return G7;cg=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=p=>p.match(e)||[],n=p=>p[0].toUpperCase()+p.slice(1),i=(p,C)=>t(p).join(C).toLowerCase(),s=p=>t(p).reduce((C,v)=>`${C}${C?v[0].toUpperCase()+v.slice(1).toLowerCase():v.toLowerCase()}`,"");return G7={words:t,upperFirst:n,camelCase:s,pascalCase:p=>n(s(p)),snakeCase:p=>i(p,"_"),kebabCase:p=>i(p,"-"),sentenceCase:p=>n(i(p," ")),titleCase:p=>t(p).map(n).join(" ")},G7}var Y7=m$(),Y2={exports:{}},ug;function p$(){if(ug)return Y2.exports;ug=1,Y2.exports=function(s){return e(t(s),s)},Y2.exports.array=e;function e(s,l){var u=s.length,d=new Array(u),h={},m=u,p=n(l),C=i(s);for(l.forEach(function(w){if(!C.has(w[0])||!C.has(w[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});m--;)h[m]||v(s[m],m,new Set);return d;function v(w,b,S){if(S.has(w)){var E;try{E=", node was:"+JSON.stringify(w)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!C.has(w))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(w));if(!h[b]){h[b]=!0;var j=p.get(w)||new Set;if(j=Array.from(j),b=j.length){S.add(w);do{var T=j[--b];v(T,C.get(T),S)}while(b);S.delete(w)}d[--u]=w}}}function t(s){for(var l=new Set,u=0,d=s.length;u<d;u++){var h=s[u];l.add(h[0]),l.add(h[1])}return Array.from(l)}function n(s){for(var l=new Map,u=0,d=s.length;u<d;u++){var h=s[u];l.has(h[0])||l.set(h[0],new Set),l.has(h[1])||l.set(h[1],new Set),l.get(h[0]).add(h[1])}return l}function i(s){for(var l=new Map,u=0,d=s.length;u<d;u++)l.set(s[u],u);return l}return Y2.exports}var g$=p$();const C$=Pi(g$),v$=Object.prototype.toString,x$=Error.prototype.toString,y$=RegExp.prototype.toString,b$=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",w$=/^Symbol\((.*)\)(.*)$/;function S$(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function fg(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return S$(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return b$.call(e).replace(w$,"Symbol($1)");const i=v$.call(e).slice(8,-1);return i==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):i==="Error"||e instanceof Error?"["+x$.call(e)+"]":i==="RegExp"?y$.call(e):null}function Ti(e,t){let n=fg(e,t);return n!==null?n:JSON.stringify(e,function(i,s){let l=fg(this[i],t);return l!==null?l:s},2)}function Tw(e){return e==null?[]:[].concat(e)}let Nw,Rw,Dw,E$=/\$\{\s*(\w+)\s*\}/g;Nw=Symbol.toStringTag;class dg{constructor(t,n,i,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Nw]="Error",this.name="ValidationError",this.value=n,this.path=i,this.type=s,this.errors=[],this.inner=[],Tw(t).forEach(l=>{if(cn.isError(l)){this.errors.push(...l.errors);const u=l.inner.length?l.inner:[l];this.inner.push(...u)}else this.errors.push(l)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Rw=Symbol.hasInstance;Dw=Symbol.toStringTag;class cn extends Error{static formatError(t,n){const i=n.label||n.path||"this";return n=Object.assign({},n,{path:i,originalPath:n.path}),typeof t=="string"?t.replace(E$,(s,l)=>Ti(n[l])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,i,s,l){const u=new dg(t,n,i,s);if(l)return u;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Dw]="Error",this.name=u.name,this.message=u.message,this.type=u.type,this.value=u.value,this.path=u.path,this.errors=u.errors,this.inner=u.inner,Error.captureStackTrace&&Error.captureStackTrace(this,cn)}static[Rw](t){return dg[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let cr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:i})=>{const s=i!=null&&i!==n?` (cast from the value \`${Ti(i,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ti(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Ti(n,!0)}\``+s}},on={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Mi={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},K4={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},j$={isValue:"${path} field must be ${value}"},hc={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},A$={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},M$={notType:e=>{const{path:t,value:n,spec:i}=e,s=i.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Ti(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Ti(n,!0)}\``}return cn.formatError(cr.notType,e)}};Object.assign(Object.create(null),{mixed:cr,string:on,number:Mi,date:K4,object:hc,array:A$,boolean:j$,tuple:M$});const D8=e=>e&&e.__isYupSchema__;class Fc{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:i,then:s,otherwise:l}=n,u=typeof i=="function"?i:(...d)=>d.every(h=>h===i);return new Fc(t,(d,h)=>{var m;let p=u(...d)?s:l;return(m=p==null?void 0:p(h))!=null?m:h})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let i=this.refs.map(l=>l.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(i,t,n);if(s===void 0||s===t)return t;if(!D8(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const $2={context:"$",value:"."};function L$(e,t){return new Ui(e,t)}class Ui{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===$2.context,this.isValue=this.key[0]===$2.value,this.isSibling=!this.isContext&&!this.isValue;let i=this.isContext?$2.context:this.isValue?$2.value:"";this.path=this.key.slice(i.length),this.getter=this.path&&wa.getter(this.path,!0),this.map=n.map}getValue(t,n,i){let s=this.isContext?i:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ui.prototype.__isYupRef=!0;const Fr=e=>e==null;function Ts(e){function t({value:n,path:i="",options:s,originalValue:l,schema:u},d,h){const{name:m,test:p,params:C,message:v,skipAbsent:w}=e;let{parent:b,context:S,abortEarly:E=u.spec.abortEarly,disableStackTrace:j=u.spec.disableStackTrace}=s;function T(Q){return Ui.isRef(Q)?Q.getValue(n,b,S):Q}function L(Q={}){const le=Object.assign({value:n,originalValue:l,label:u.spec.label,path:Q.path||i,spec:u.spec,disableStackTrace:Q.disableStackTrace||j},C,Q.params);for(const ie of Object.keys(le))le[ie]=T(le[ie]);const he=new cn(cn.formatError(Q.message||v,le),n,le.path,Q.type||m,le.disableStackTrace);return he.params=le,he}const D=E?d:h;let M={path:i,parent:b,type:m,from:s.from,createError:L,resolve:T,options:s,originalValue:l,schema:u};const k=Q=>{cn.isError(Q)?D(Q):Q?h(null):D(L())},O=Q=>{cn.isError(Q)?D(Q):d(Q)};if(w&&Fr(n))return k(!0);let I;try{var ne;if(I=p.call(M,n,M),typeof((ne=I)==null?void 0:ne.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${M.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(I).then(k,O)}}catch(Q){O(Q);return}k(I)}return t.OPTIONS=e,t}function T$(e,t,n,i=n){let s,l,u;return t?(wa.forEach(t,(d,h,m)=>{let p=h?d.slice(1,d.length-1):d;e=e.resolve({context:i,parent:s,value:n});let C=e.type==="tuple",v=m?parseInt(p,10):0;if(e.innerType||C){if(C&&!m)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${u}" must contain an index to the tuple element, e.g. "${u}[0]"`);if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${d}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[v],e=C?e.spec.types[v]:e.innerType}if(!m){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${u} which is a type: "${e.type}")`);s=n,n=n&&n[p],e=e.fields[p]}l=p,u=h?"["+d+"]":"."+d}),{schema:e,parent:s,parentPath:l}):{parent:s,parentPath:t,schema:e}}class Bc extends Set{describe(){const t=[];for(const n of this.values())t.push(Ui.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const i of this.values())n.push(t(i));return n}clone(){return new Bc(this.values())}merge(t,n){const i=this.clone();return t.forEach(s=>i.add(s)),n.forEach(s=>i.delete(s)),i}}function Bs(e,t=new Map){if(D8(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let i=0;i<e.length;i++)n[i]=Bs(e[i],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[i,s]of e.entries())n.set(i,Bs(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const i of e)n.add(Bs(i,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[i,s]of Object.entries(e))n[i]=Bs(s,t)}else throw Error(`Unable to clone ${e}`);return n}class Qn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Bc,this._blacklist=new Bc,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(cr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Bs(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let i=t(this);return this._mutate=n,i}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,i=t.clone();const s=Object.assign({},n.spec,i.spec);return i.spec=s,i.internalTests=Object.assign({},n.internalTests,i.internalTests),i._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),i._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),i.tests=n.tests,i.exclusiveTests=n.exclusiveTests,i.withMutation(l=>{t.tests.forEach(u=>{l.test(u.OPTIONS)})}),i.transforms=[...n.transforms,...i.transforms],i}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let i=n.conditions;n=n.clone(),n.conditions=[],n=i.reduce((s,l)=>l.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,i,s,l;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(i=t.abortEarly)!=null?i:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(l=t.disableStackTrace)!=null?l:this.spec.disableStackTrace})}cast(t,n={}){let i=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",l=i._cast(t,n);if(n.assert!==!1&&!i.isType(l)){if(s&&Fr(l))return l;let u=Ti(t),d=Ti(l);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${i.type}". 

attempted value: ${u} 
`+(d!==u?`result of cast: ${d}`:""))}return l}_cast(t,n){let i=t===void 0?t:this.transforms.reduce((s,l)=>l.call(this,s,t,this),t);return i===void 0&&(i=this.getDefault(n)),i}_validate(t,n={},i,s){let{path:l,originalValue:u=t,strict:d=this.spec.strict}=n,h=t;d||(h=this._cast(h,Object.assign({assert:!1},n)));let m=[];for(let p of Object.values(this.internalTests))p&&m.push(p);this.runTests({path:l,value:h,originalValue:u,options:n,tests:m},i,p=>{if(p.length)return s(p,h);this.runTests({path:l,value:h,originalValue:u,options:n,tests:this.tests},i,s)})}runTests(t,n,i){let s=!1,{tests:l,value:u,originalValue:d,path:h,options:m}=t,p=S=>{s||(s=!0,n(S,u))},C=S=>{s||(s=!0,i(S,u))},v=l.length,w=[];if(!v)return C([]);let b={value:u,originalValue:d,path:h,options:m,schema:this};for(let S=0;S<l.length;S++){const E=l[S];E(b,p,function(T){T&&(Array.isArray(T)?w.push(...T):w.push(T)),--v<=0&&C(w)})}}asNestedTest({key:t,index:n,parent:i,parentPath:s,originalParent:l,options:u}){const d=t??n;if(d==null)throw TypeError("Must include `key` or `index` for nested validations");const h=typeof d=="number";let m=i[d];const p=Object.assign({},u,{strict:!0,parent:i,value:m,originalValue:l[d],key:void 0,[h?"index":"key"]:d,path:h||d.includes(".")?`${s||""}[${h?d:`"${d}"`}]`:(s?`${s}.`:"")+t});return(C,v,w)=>this.resolve(p)._validate(m,p,v,w)}validate(t,n){var i;let s=this.resolve(Object.assign({},n,{value:t})),l=(i=n==null?void 0:n.disableStackTrace)!=null?i:s.spec.disableStackTrace;return new Promise((u,d)=>s._validate(t,n,(h,m)=>{cn.isError(h)&&(h.value=m),d(h)},(h,m)=>{h.length?d(new cn(h,m,void 0,void 0,l)):u(m)}))}validateSync(t,n){var i;let s=this.resolve(Object.assign({},n,{value:t})),l,u=(i=n==null?void 0:n.disableStackTrace)!=null?i:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(d,h)=>{throw cn.isError(d)&&(d.value=h),d},(d,h)=>{if(d.length)throw new cn(d,t,void 0,void 0,u);l=h}),l}isValid(t,n){return this.validate(t,n).then(()=>!0,i=>{if(cn.isError(i))return!1;throw i})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(i){if(cn.isError(i))return!1;throw i}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Bs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const i=this.clone({nullable:t});return i.internalTests.nullable=Ts({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),i}optionality(t,n){const i=this.clone({optional:t});return i.internalTests.optionality=Ts({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),i}optional(){return this.optionality(!0)}defined(t=cr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=cr.notNull){return this.nullability(!1,t)}required(t=cr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=cr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let i=this.clone(),s=Ts(n),l=n.exclusive||n.name&&i.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(i.exclusiveTests[n.name]=!!n.exclusive),i.tests=i.tests.filter(u=>!(u.OPTIONS.name===n.name&&(l||u.OPTIONS.test===s.OPTIONS.test))),i.tests.push(s),i}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let i=this.clone(),s=Tw(t).map(l=>new Ui(l));return s.forEach(l=>{l.isSibling&&i.deps.push(l.key)}),i.conditions.push(typeof n=="function"?new Fc(s,n):Fc.fromOptions(s,n)),i}typeError(t){let n=this.clone();return n.internalTests.typeError=Ts({message:t,name:"typeError",skipAbsent:!0,test(i){return this.schema._typeCheck(i)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=cr.oneOf){let i=this.clone();return t.forEach(s=>{i._whitelist.add(s),i._blacklist.delete(s)}),i.internalTests.whiteList=Ts({message:n,name:"oneOf",skipAbsent:!0,test(s){let l=this.schema._whitelist,u=l.resolveAll(this.resolve);return u.includes(s)?!0:this.createError({params:{values:Array.from(l).join(", "),resolved:u}})}}),i}notOneOf(t,n=cr.notOneOf){let i=this.clone();return t.forEach(s=>{i._blacklist.add(s),i._whitelist.delete(s)}),i.internalTests.blacklist=Ts({message:n,name:"notOneOf",test(s){let l=this.schema._blacklist,u=l.resolveAll(this.resolve);return u.includes(s)?this.createError({params:{values:Array.from(l).join(", "),resolved:u}}):!0}}),i}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:i,meta:s,optional:l,nullable:u}=n.spec;return{meta:s,label:i,optional:l,nullable:u,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(h=>({name:h.OPTIONS.name,params:h.OPTIONS.params})).filter((h,m,p)=>p.findIndex(C=>C.name===h.name)===m)}}}Qn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Qn.prototype[`${e}At`]=function(t,n,i={}){const{parent:s,parentPath:l,schema:u}=T$(this,t,n,i.context);return u[e](s&&s[l],Object.assign({},i,{parent:s,path:t}))};for(const e of["equals","is"])Qn.prototype[e]=Qn.prototype.oneOf;for(const e of["not","nope"])Qn.prototype[e]=Qn.prototype.notOneOf;const N$=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function R$(e){const t=Q4(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Q4(e){var t,n;const i=N$.exec(e);return i?{year:Vr(i[1]),month:Vr(i[2],1)-1,day:Vr(i[3],1),hour:Vr(i[4]),minute:Vr(i[5]),second:Vr(i[6]),millisecond:i[7]?Vr(i[7].substring(0,3)):0,precision:(t=(n=i[7])==null?void 0:n.length)!=null?t:void 0,z:i[8]||void 0,plusMinus:i[9]||void 0,hourOffset:Vr(i[10]),minuteOffset:Vr(i[11])}:null}function Vr(e,t=0){return Number(e)||t}let D$=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,k$=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,O$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,_$="^\\d{4}-\\d{2}-\\d{2}",P$="\\d{2}:\\d{2}:\\d{2}",V$="(([+-]\\d{2}(:?\\d{2})?)|Z)",z$=new RegExp(`${_$}T${P$}(\\.\\d+)?${V$}$`),F$=e=>Fr(e)||e===e.trim(),B$={}.toString();function X4(){return new kw}class kw extends Qn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,i)=>{if(!i.spec.coerce||i.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===B$?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||cr.required,name:"required",skipAbsent:!0,test:i=>!!i.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=on.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(i){return i.length===this.resolve(t)}})}min(t,n=on.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i.length>=this.resolve(t)}})}max(t,n=on.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(i){return i.length<=this.resolve(t)}})}matches(t,n){let i=!1,s,l;return n&&(typeof n=="object"?{excludeEmptyString:i=!1,message:s,name:l}=n:s=n),this.test({name:l||"matches",message:s||on.matches,params:{regex:t},skipAbsent:!0,test:u=>u===""&&i||u.search(t)!==-1})}email(t=on.email){return this.matches(D$,{name:"email",message:t,excludeEmptyString:!0})}url(t=on.url){return this.matches(k$,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=on.uuid){return this.matches(O$,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",i,s;return t&&(typeof t=="object"?{message:n="",allowOffset:i=!1,precision:s=void 0}=t:n=t),this.matches(z$,{name:"datetime",message:n||on.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||on.datetime_offset,params:{allowOffset:i},skipAbsent:!0,test:l=>{if(!l||i)return!0;const u=Q4(l);return u?!!u.z:!1}}).test({name:"datetime_precision",message:n||on.datetime_precision,params:{precision:s},skipAbsent:!0,test:l=>{if(!l||s==null)return!0;const u=Q4(l);return u?u.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=on.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:F$})}lowercase(t=on.lowercase){return this.transform(n=>Fr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Fr(n)||n===n.toLowerCase()})}uppercase(t=on.uppercase){return this.transform(n=>Fr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Fr(n)||n===n.toUpperCase()})}}X4.prototype=kw.prototype;let U$=e=>e!=+e;function H$(){return new Ow}class Ow extends Qn{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!U$(t)}}),this.withMutation(()=>{this.transform((t,n,i)=>{if(!i.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return i.isType(s)||s===null?s:parseFloat(s)})})}min(t,n=Mi.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(t)}})}max(t,n=Mi.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(t)}})}lessThan(t,n=Mi.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(i){return i<this.resolve(t)}})}moreThan(t,n=Mi.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(i){return i>this.resolve(t)}})}positive(t=Mi.positive){return this.moreThan(0,t)}negative(t=Mi.negative){return this.lessThan(0,t)}integer(t=Mi.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Fr(t)?t:t|0)}round(t){var n;let i=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(i.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+i.join(", "));return this.transform(s=>Fr(s)?s:Math[t](s))}}H$.prototype=Ow.prototype;let I$=new Date(""),Z$=e=>Object.prototype.toString.call(e)==="[object Date]";class k8 extends Qn{constructor(){super({type:"date",check(t){return Z$(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,i)=>!i.spec.coerce||i.isType(t)||t===null?t:(t=R$(t),isNaN(t)?k8.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let i;if(Ui.isRef(t))i=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);i=s}return i}min(t,n=K4.min){let i=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(i)}})}max(t,n=K4.max){let i=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(i)}})}}k8.INVALID_DATE=I$;function G$(e,t=[]){let n=[],i=new Set,s=new Set(t.map(([u,d])=>`${u}-${d}`));function l(u,d){let h=wa.split(u)[0];i.add(h),s.has(`${d}-${h}`)||n.push([d,h])}for(const u of Object.keys(e)){let d=e[u];i.add(u),Ui.isRef(d)&&d.isSibling?l(d.path,u):D8(d)&&"deps"in d&&d.deps.forEach(h=>l(h,u))}return C$.array(Array.from(i),n).reverse()}function hg(e,t){let n=1/0;return e.some((i,s)=>{var l;if((l=t.path)!=null&&l.includes(i))return n=s,!0}),n}function _w(e){return(t,n)=>hg(e,t)-hg(e,n)}const Y$=(e,t,n)=>{if(typeof e!="string")return e;let i=e;try{i=JSON.parse(e)}catch{}return n.isType(i)?i:e};function mc(e){if("fields"in e){const t={};for(const[n,i]of Object.entries(e.fields))t[n]=mc(i);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=mc(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(mc)}):"optional"in e?e.optional():e}const $$=(e,t)=>{const n=[...wa.normalizePath(t)];if(n.length===1)return n[0]in e;let i=n.pop(),s=wa.getter(wa.join(n),!0)(e);return!!(s&&i in s)};let mg=e=>Object.prototype.toString.call(e)==="[object Object]";function pg(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(i=>n.indexOf(i)===-1)}const W$=_w([]);function Pw(e){return new Vw(e)}class Vw extends Qn{constructor(t){super({type:"object",check(n){return mg(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=W$,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var i;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let l=this.fields,u=(i=n.stripUnknown)!=null?i:this.spec.noUnknown,d=[].concat(this._nodes,Object.keys(s).filter(C=>!this._nodes.includes(C))),h={},m=Object.assign({},n,{parent:h,__validating:n.__validating||!1}),p=!1;for(const C of d){let v=l[C],w=C in s;if(v){let b,S=s[C];m.path=(n.path?`${n.path}.`:"")+C,v=v.resolve({value:S,context:n.context,parent:h});let E=v instanceof Qn?v.spec:void 0,j=E==null?void 0:E.strict;if(E!=null&&E.strip){p=p||C in s;continue}b=!n.__validating||!j?v.cast(s[C],m):s[C],b!==void 0&&(h[C]=b)}else w&&!u&&(h[C]=s[C]);(w!==C in h||h[C]!==s[C])&&(p=!0)}return p?h:s}_validate(t,n={},i,s){let{from:l=[],originalValue:u=t,recursive:d=this.spec.recursive}=n;n.from=[{schema:this,value:u},...l],n.__validating=!0,n.originalValue=u,super._validate(t,n,i,(h,m)=>{if(!d||!mg(m)){s(h,m);return}u=u||m;let p=[];for(let C of this._nodes){let v=this.fields[C];!v||Ui.isRef(v)||p.push(v.asNestedTest({options:n,key:C,parent:m,parentPath:n.path,originalParent:u}))}this.runTests({tests:p,value:m,originalValue:u,options:n},i,C=>{s(C.sort(this._sortErrors).concat(h),m)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),i=n.fields;for(let[s,l]of Object.entries(this.fields)){const u=i[s];i[s]=u===void 0?l:u}return n.withMutation(s=>s.setFields(i,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(i=>{var s;const l=this.fields[i];let u=t;(s=u)!=null&&s.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[i]})),n[i]=l&&"getDefault"in l?l.getDefault(u):void 0}),n}setFields(t,n){let i=this.clone();return i.fields=t,i._nodes=G$(t,n),i._sortErrors=_w(Object.keys(t)),n&&(i._excludedEdges=n),i}shape(t,n=[]){return this.clone().withMutation(i=>{let s=i._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...i._excludedEdges,...n]),i.setFields(Object.assign(i.fields,t),s)})}partial(){const t={};for(const[n,i]of Object.entries(this.fields))t[n]="optional"in i&&i.optional instanceof Function?i.optional():i;return this.setFields(t)}deepPartial(){return mc(this)}pick(t){const n={};for(const i of t)this.fields[i]&&(n[i]=this.fields[i]);return this.setFields(n,this._excludedEdges.filter(([i,s])=>t.includes(i)&&t.includes(s)))}omit(t){const n=[];for(const i of Object.keys(this.fields))t.includes(i)||n.push(i);return this.pick(n)}from(t,n,i){let s=wa.getter(t,!0);return this.transform(l=>{if(!l)return l;let u=l;return $$(l,t)&&(u=Object.assign({},l),i||delete u[t],u[n]=s(l)),u})}json(){return this.transform(Y$)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hc.exact,test(n){if(n==null)return!0;const i=pg(this.schema,n);return i.length===0||this.createError({params:{properties:i.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hc.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let i=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const l=pg(this.schema,s);return!t||l.length===0||this.createError({params:{unknown:l.join(", ")}})}});return i.spec.noUnknown=t,i}unknown(t=!0,n=hc.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const i={};for(const s of Object.keys(n))i[t(s)]=n[s];return i})}camelCase(){return this.transformKeys(Y7.camelCase)}snakeCase(){return this.transformKeys(Y7.snakeCase)}constantCase(){return this.transformKeys(t=>Y7.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),i=super.describe(t);i.fields={};for(const[l,u]of Object.entries(n.fields)){var s;let d=t;(s=d)!=null&&s.value&&(d=Object.assign({},d,{parent:d.value,value:d.value[l]})),i.fields[l]=u.describe(d)}return i}}Pw.prototype=Vw.prototype;function gg({className:e,type:t,...n}){return c.jsx("input",{type:t,"data-slot":"input",className:Ue("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base  transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}var q$="Label",zw=y.forwardRef((e,t)=>c.jsx(Re.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));zw.displayName=q$;var K$=zw;function Cg({className:e,...t}){return c.jsx(K$,{"data-slot":"label",className:Ue("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Q$=Pw({password:X4().min(8,"Password must be at least 8 characters").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/,"Password must contain at least one uppercase letter, one lowercase letter, and one number").required("Password is required"),password_confirmation:X4().oneOf([L$("password"),void 0],"Passwords must match").required("Password confirmation is required")});function X$(){var d,h;const[e,t]=ue.useState(!1),n=gr(),i=Un(),s=((d=i.state)==null?void 0:d.email)||"",l=((h=i.state)==null?void 0:h.reset_token)||"",u=a$({initialValues:{password:"",password_confirmation:""},validationSchema:Q$,onSubmit:async m=>{t(!0);try{const p=await cl.passwordReset({password:m.password,password_confirmation:m.password_confirmation,email:s,reset_token:l});p.data.success?(Et.success(p.data.message),console.log("Password reset successful:",p.data.data),n("/auth/login")):Et.error(p.data.message)}catch(p){Et.error("Something went wrong"),console.error("Reset password error:",p)}finally{t(!1)}}});return c.jsxs("div",{className:"md:bg-main-300/15 rounded-xl py-12 md:px-8 px-4 max-w-6xl md:w-3xl m-auto",children:[c.jsx("img",{className:"mx-auto md:w-34 w-44 h-auto",src:"/logo.svg",alt:"dr. marco logo"}),c.jsx("h5",{className:"font-bold text-2xl mt-8 text-center",children:"Reset Password"}),c.jsx("p",{className:"text-center",children:"Please enter your new password. This will be used to login in the future."}),c.jsxs("form",{onSubmit:u.handleSubmit,className:"mt-8 grid grid-cols-1 gap-5",children:[c.jsxs("div",{children:[c.jsx(Cg,{className:"mb-2 font-light text-lg",children:"New Password"}),c.jsxs("div",{className:"md:bg-white bg-neutral-100 border border-transparent focus-within:border focus-within:border-main-400 focus-within:text-main-400 focus-within:bg-main-400/20 transition-all duration-200 flex items-center gap-2 px-3 rounded-lg",children:[c.jsx(Ee,{size:30,icon:Bm}),c.jsx(gg,{type:"password",name:"password",placeholder:"New Password",value:u.values.password,onChange:u.handleChange,onBlur:u.handleBlur,className:"h-auto py-3 border-transparent !text-lg text-main-400"})]}),u.touched.password&&u.errors.password&&c.jsx("p",{className:"text-red-400 text-sm mt-1",children:u.errors.password})]}),c.jsxs("div",{children:[c.jsx(Cg,{className:"mb-2 font-light text-lg",children:"Confirm Password"}),c.jsxs("div",{className:"md:bg-white bg-neutral-100 border border-transparent focus-within:border focus-within:border-main-400 focus-within:text-main-400 focus-within:bg-main-400/20 transition-all duration-200 flex items-center gap-2 px-3 rounded-lg",children:[c.jsx(Ee,{size:30,icon:Bm}),c.jsx(gg,{type:"password",name:"password_confirmation",placeholder:"Confirm Password",value:u.values.password_confirmation,onChange:u.handleChange,onBlur:u.handleBlur,className:"h-auto py-3 border-transparent !text-lg text-main-400"})]}),u.touched.password_confirmation&&u.errors.password_confirmation&&c.jsx("p",{className:"text-red-400 text-sm mt-1",children:u.errors.password_confirmation})]}),c.jsx(st,{type:"submit",disabled:e||!u.isValid,className:"text-white bg-main-400 hover:bg-main-300 font-bold py-3 h-auto text-xl disabled:opacity-50 disabled:cursor-not-allowed",children:e?"Loading...":"Reset Password"})]})]})}function J$(){return c.jsx("div",{className:"grid grid-cols-1 items-center min-h-dvh p-4 container mx-auto relative",children:c.jsx(X$,{})})}function eW(){return c.jsx("footer",{className:"bg-[#D7F5FF96] ",children:c.jsxs("div",{className:"container mx-auto px-4 pt-16 pb-4",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-10 gap-8",children:[c.jsxs("div",{className:"lg:col-span-4 col-span-1 md:col-span-2",children:[c.jsx("img",{src:"/logo.svg",alt:"Math Magician logo",className:"h-10 w-auto"}),c.jsx("p",{className:"max-w-sm mt-6",children:"See how our platform helped students transform their relationship with chemistry, boost their skills, and start learning with confidence."})]}),c.jsxs("div",{className:"lg:col-span-2 col-span-1",children:[c.jsx("h3",{className:"text-xl font-semibold text-main-400 mb-4",children:"Quick Links"}),c.jsxs("ul",{className:"space-y-2",children:[c.jsx(tt,{to:"/",children:c.jsx("li",{className:"hover:text-main-400 transition-colors",children:"Home"})}),c.jsx("a",{href:"#testimonials",children:c.jsx("li",{className:"hover:text-main-400 transition-colors",children:"Students Say"})}),c.jsx("a",{href:"#contact",children:c.jsx("li",{className:"hover:text-main-400 transition-colors",children:"Contact Us"})})]})]}),c.jsxs("div",{className:"lg:col-span-2 col-span-1 md:col-span-2",children:[c.jsx("h3",{className:"text-xl font-semibold text-main-400 mb-4",children:"Social Media"}),c.jsxs("ul",{className:"mt-8 flex items-center space-x-5",children:[c.jsx("a",{href:"https://www.facebook.com/profile.php?id=61550203814759",target:"_blank",children:c.jsx("li",{className:"w-14 h-14 rounded-full bg-[#427D8E1A] flex items-center justify-center ",children:c.jsx(Ee,{icon:A_,size:26,className:"text-main-400"})})}),c.jsx("a",{href:"https://www.instagram.com/dr_marco_team?igsh=cHF3MzFoZ3J3MHQ0",children:c.jsx("li",{className:"w-14 h-14 rounded-full bg-[#427D8E1A] flex items-center justify-center ",children:c.jsx(Ee,{icon:T_,size:26,className:"text-main-400"})})}),c.jsx("a",{href:"https://www.tiktok.com/@dr.marco.medhat_team?_t=ZS-8wrkH8yr8dU&_r=1",children:c.jsxs("li",{className:"w-14 h-14 rounded-full bg-[#427D8E1A] flex items-center justify-center ",children:[c.jsx("img",{src:"/tik-tok.png",alt:""})," "]})}),c.jsx("a",{href:"https://wa.link/s1pen1",target:"_blank",children:c.jsx("li",{className:"w-14 h-14 rounded-full bg-[#427D8E1A] flex items-center justify-center ",children:c.jsx(Ee,{icon:F_,size:26,className:"text-main-400"})})})]})]})]}),c.jsxs("div",{className:"border-t border-slate-700 pt-6 mt-12 flex items-center justify-between flex-wrap gap-4",children:[c.jsx("p",{className:"text-sm ",children:"© 2026 Dr.Marco All rights reserved."}),c.jsxs("div",{className:"flex items-center gap-5",children:[c.jsxs("svg",{width:"84",height:"38",viewBox:"0 0 84 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("g",{clipPath:"url(#clip0_2898_12456)",children:c.jsx("path",{d:"M31.5624 1.46189L20.6785 27.4263H13.5781L8.22206 6.70427C7.89733 5.43102 7.61515 4.96244 6.62701 4.42404C5.01182 3.54663 2.34452 2.72605 0 2.21558L0.158141 1.46189H11.5898C13.0446 1.46189 14.3545 2.43055 14.6877 4.10776L17.5177 19.1338L24.5045 1.46189H31.5624ZM41.1613 1.46189L35.6075 27.4263H28.8896L34.444 1.46189H41.1613ZM59.3836 18.949C59.4115 12.0976 49.91 11.7174 49.9721 8.65619C49.9948 7.72553 50.8813 6.73479 52.8219 6.4815C53.783 6.35713 56.4387 6.25809 59.4466 7.64402L60.6234 2.13472C59.0072 1.55022 56.9274 0.987793 54.3403 0.987793C47.6996 0.987793 43.0285 4.51497 42.9911 9.56965C42.9476 13.3085 46.3277 15.3923 48.8696 16.6376C51.4879 17.9093 52.3659 18.7266 52.3539 19.8631C52.3351 21.6053 50.2627 22.3765 48.3361 22.4051C44.9576 22.4587 42.9992 21.492 41.437 20.7642L40.2176 26.456C41.7893 27.1763 44.6859 27.802 47.686 27.8339C54.7455 27.8339 59.3628 24.3469 59.3836 18.949ZM76.9188 27.4266H83.1298L77.7037 1.46189H71.9732C70.6808 1.46189 69.5946 2.21201 69.1127 3.36511L59.0332 27.4263H66.0872L67.4865 23.5478H76.1047L76.9188 27.4266ZM69.4209 18.2275L72.9578 8.47695L74.9896 18.2275H69.4209ZM49.7587 34.5735H47.0291V37.1139H50.0821V37.8776H46.1094V30.8301H49.9256V31.5939H47.0291V33.8205H49.7584L49.7587 34.5735ZM51.4924 30.4541H52.4121V37.8773H51.4924V30.4541ZM54.7325 35.5143C54.7533 36.7589 55.5379 37.271 56.4679 37.271C57.1271 37.271 57.5346 37.1561 57.8697 37.01L58.0366 37.6688C57.7126 37.815 57.1482 37.9926 56.3425 37.9926C54.7851 37.9926 53.8548 36.9577 53.8548 35.4308C53.8548 33.9046 54.7533 32.7122 56.2279 32.7122C57.8905 32.7122 58.3191 34.1556 58.3191 35.086C58.3191 35.274 58.3084 35.4097 58.2873 35.5146L54.7325 35.5143ZM57.43 34.8557C57.4408 34.281 57.1897 33.3711 56.1545 33.3711C55.2135 33.3711 54.816 34.218 54.7426 34.8557H57.43ZM63.3251 37.6997C63.0848 37.815 62.5513 37.9929 61.872 37.9929C60.3454 37.9929 59.3521 36.9577 59.3521 35.41C59.3521 33.852 60.4182 32.7125 62.0704 32.7125C62.614 32.7125 63.0949 32.8479 63.3459 32.9843L63.1374 33.6848C62.9169 33.5698 62.5721 33.4438 62.0704 33.4438C60.9095 33.4438 60.2828 34.3118 60.2828 35.3581C60.2828 36.5287 61.0355 37.2503 62.0392 37.2503C62.562 37.2503 62.9069 37.1249 63.1683 37.01L63.3251 37.6997ZM65.906 31.6039V32.8168H67.2231V33.5169H65.906V36.2462C65.906 36.8742 66.084 37.2291 66.5961 37.2291C66.8468 37.2291 66.9935 37.2087 67.1296 37.1662L67.1715 37.8676C66.9935 37.9299 66.7114 37.9926 66.3558 37.9926C65.9268 37.9926 65.5816 37.8461 65.3624 37.6062C65.1114 37.3233 65.0069 36.8742 65.0069 36.278V33.5169H64.2223V32.8168H65.0069V31.8757L65.906 31.6039ZM68.5081 34.3959C68.5081 33.7997 68.497 33.2876 68.4662 32.8168H69.2715L69.3137 33.8202H69.3442C69.5748 33.1412 70.1388 32.7122 70.7555 32.7122C70.85 32.7122 70.9234 32.7229 71.0072 32.733V33.6013C70.913 33.5799 70.8191 33.5799 70.6928 33.5799C70.0453 33.5799 69.5845 34.0608 69.4595 34.7515C69.4379 34.8933 69.4274 35.0366 69.428 35.1801V37.8779H68.5081V34.3959ZM76.6623 35.3051C76.6623 37.1769 75.3549 37.9926 74.1424 37.9926C72.7828 37.9926 71.7167 36.9885 71.7167 35.3893C71.7167 33.7055 72.8354 32.7125 74.2262 32.7125C75.6793 32.7125 76.6623 33.7676 76.6623 35.3051ZM72.6574 35.3581C72.6574 36.4664 73.2848 37.3032 74.184 37.3032C75.0627 37.3032 75.7209 36.4764 75.7209 35.337C75.7209 34.4797 75.2922 33.4023 74.2047 33.4023C73.1283 33.4023 72.6574 34.4066 72.6574 35.3581ZM78.0722 34.1868C78.0722 33.6539 78.0612 33.2353 78.03 32.8174H78.8457L78.898 33.6539H78.9188C79.1698 33.1831 79.7553 32.7129 80.5918 32.7129C81.2919 32.7129 82.3797 33.1311 82.3797 34.8661V37.8779H81.4598V34.9606C81.4598 34.1456 81.1565 33.4653 80.2888 33.4653C79.6926 33.4653 79.2217 33.8942 79.0552 34.4063C79.0129 34.5216 78.9922 34.6781 78.9922 34.8353V37.8779H78.0722V34.1868Z",fill:"#292929"})}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2898_12456",children:c.jsx("rect",{width:"83.1298",height:"37.0187",fill:"white",transform:"translate(0 0.987793)"})})})]}),c.jsxs("svg",{width:"49",height:"38",viewBox:"0 0 49 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2898_12458)",children:[c.jsx("path",{d:"M9.36499 37.8225V35.3724C9.36499 34.4329 8.79315 33.8205 7.81299 33.8205C7.32301 33.8205 6.79209 33.9839 6.42451 34.5148C6.13878 34.0655 5.73046 33.8205 5.11788 33.8205C4.70937 33.8205 4.30124 33.943 3.97439 34.3922V33.9022H3.11682V37.8225H3.97439V35.6581C3.97439 34.964 4.34197 34.6372 4.91381 34.6372C5.48528 34.6372 5.77138 35.0048 5.77138 35.6581V37.8225H6.62895V35.6581C6.62895 34.964 7.03709 34.6372 7.568 34.6372C8.13984 34.6372 8.42557 35.0048 8.42557 35.6581V37.8225H9.36499ZM22.065 33.9022H20.6767V32.718H19.8192V33.9022H19.0433V34.6779H19.819V36.4749C19.819 37.3734 20.1866 37.9041 21.1667 37.9041C21.5343 37.9041 21.9424 37.7817 22.2285 37.6184L21.9834 36.8832C21.7384 37.0466 21.4526 37.0875 21.2484 37.0875C20.8401 37.0875 20.6767 36.8425 20.6767 36.434V34.6779H22.065V33.9022ZM29.3341 33.8204C28.8441 33.8204 28.5175 34.0655 28.3132 34.3922V33.9022H27.4556V37.8225H28.3132V35.6174C28.3132 34.964 28.5989 34.5965 29.1298 34.5965C29.2932 34.5965 29.4974 34.6374 29.6608 34.6781L29.9058 33.8615C29.7424 33.8205 29.4974 33.8205 29.3341 33.8205M18.349 34.2291C17.9405 33.9431 17.3689 33.8207 16.7563 33.8207C15.7763 33.8207 15.123 34.3107 15.123 35.0866C15.123 35.7401 15.613 36.1075 16.4705 36.2301L16.8789 36.271C17.3281 36.3525 17.5731 36.4751 17.5731 36.6794C17.5731 36.9651 17.2465 37.1693 16.6746 37.1693C16.1028 37.1693 15.6537 36.9651 15.3678 36.761L14.9595 37.4143C15.4087 37.741 16.0213 37.9043 16.6337 37.9043C17.7772 37.9043 18.4307 37.3736 18.4307 36.6384C18.4307 35.9442 17.8998 35.5766 17.0829 35.4542L16.6746 35.4133C16.307 35.3724 16.0213 35.2909 16.0213 35.0459C16.0213 34.76 16.307 34.5966 16.7563 34.5966C17.2465 34.5966 17.7364 34.8007 17.9814 34.9233L18.349 34.2291ZM41.136 33.8207C40.6458 33.8207 40.3192 34.0657 40.1149 34.3924V33.9024H39.2574V37.8227H40.1149V35.6175C40.1149 34.9642 40.4008 34.5966 40.9316 34.5966C41.0951 34.5966 41.2993 34.6376 41.4627 34.6783L41.7077 33.8617C41.5443 33.8207 41.2993 33.8207 41.136 33.8207ZM30.1917 35.8625C30.1917 37.0468 31.0083 37.9043 32.2744 37.9043C32.846 37.9043 33.2544 37.7819 33.6627 37.4553L33.2544 36.761C32.9277 37.006 32.601 37.1284 32.2335 37.1284C31.5392 37.1284 31.0492 36.6384 31.0492 35.8625C31.0492 35.1276 31.5392 34.6374 32.2335 34.5966C32.601 34.5966 32.9277 34.719 33.2544 34.9642L33.6627 34.27C33.2544 33.9431 32.846 33.8207 32.2744 33.8207C31.0083 33.8207 30.1917 34.6783 30.1917 35.8625ZM38.1141 35.8625V33.9024H37.2565V34.3924C36.9706 34.025 36.5622 33.8207 36.0313 33.8207C34.9288 33.8207 34.0712 34.6783 34.0712 35.8625C34.0712 37.0468 34.9288 37.9043 36.0313 37.9043C36.603 37.9043 37.0115 37.7003 37.2565 37.3327V37.8227H38.1141V35.8625ZM34.9695 35.8625C34.9695 35.1683 35.4188 34.5966 36.1537 34.5966C36.848 34.5966 37.3381 35.1276 37.3381 35.8625C37.3381 36.5568 36.848 37.1284 36.1537 37.1284C35.4188 37.0875 34.9695 36.5568 34.9695 35.8625ZM24.7196 33.8207C23.5761 33.8207 22.7593 34.6374 22.7593 35.8625C22.7593 37.0877 23.5759 37.9043 24.7603 37.9043C25.332 37.9043 25.9038 37.741 26.3531 37.3736L25.9446 36.761C25.6179 37.006 25.2096 37.1693 24.8013 37.1693C24.2703 37.1693 23.7394 36.9244 23.6168 36.2299H26.5164V35.9035C26.5573 34.6374 25.8223 33.8207 24.7196 33.8207ZM24.7194 34.5557C25.2501 34.5557 25.6179 34.8826 25.6994 35.4951H23.6576C23.7392 34.9642 24.1068 34.5557 24.7194 34.5557ZM45.9953 35.8625V32.3506H45.1378V34.3924C44.8518 34.025 44.4435 33.8207 43.9126 33.8207C42.81 33.8207 41.9525 34.6783 41.9525 35.8625C41.9525 37.0468 42.81 37.9043 43.9126 37.9043C44.4844 37.9043 44.8928 37.7003 45.1378 37.3327V37.8227H45.9953V35.8625ZM42.851 35.8625C42.851 35.1683 43.3 34.5966 44.0352 34.5966C44.7294 34.5966 45.2194 35.1276 45.2194 35.8625C45.2194 36.5568 44.7294 37.1284 44.0352 37.1284C43.3 37.0875 42.851 36.5568 42.851 35.8625ZM14.1834 35.8625V33.9024H13.3258V34.3924C13.0399 34.025 12.6316 33.8207 12.1007 33.8207C10.9981 33.8207 10.1405 34.6783 10.1405 35.8625C10.1405 37.0468 10.9981 37.9043 12.1007 37.9043C12.6725 37.9043 13.0808 37.7003 13.3258 37.3327V37.8227H14.1834V35.8625ZM10.9981 35.8625C10.9981 35.1683 11.4473 34.5966 12.1823 34.5966C12.8766 34.5966 13.3667 35.1276 13.3667 35.8625C13.3667 36.5568 12.8766 37.1284 12.1823 37.1284C11.4473 37.0875 10.9981 36.5568 10.9981 35.8625Z",fill:"#292929"}),c.jsx("path",{d:"M18.0621 4.13232H30.9257V27.246H18.0621V4.13232Z",fill:"#FF5F00"}),c.jsx("path",{d:"M18.8793 15.6891C18.8793 10.9929 21.0844 6.82745 24.4738 4.13215C21.9829 2.17202 18.8385 0.987793 15.4083 0.987793C7.28143 0.987793 0.706787 7.56243 0.706787 15.6891C0.706787 23.8157 7.28143 30.3904 15.4081 30.3904C18.8383 30.3904 21.9827 29.2061 24.4738 27.2458C21.0844 24.5914 18.8793 20.3852 18.8793 15.6891Z",fill:"#EB001B"}),c.jsx("path",{d:"M48.2822 15.6891C48.2822 23.8155 41.7076 30.3904 33.5809 30.3904C30.1507 30.3904 27.0063 29.2061 24.5153 27.2458C27.9455 24.5507 30.1099 20.3852 30.1099 15.6891C30.1099 10.9929 27.9046 6.82745 24.5153 4.13215C27.0061 2.17202 30.1507 0.987793 33.5809 0.987793C41.7076 0.987793 48.2822 7.60336 48.2822 15.6891Z",fill:"#F79E1B"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2898_12458",children:c.jsx("rect",{width:"47.6243",height:"37.0187",fill:"white",transform:"translate(0.705688 0.987793)"})})})]})]})]}),c.jsx("a",{href:"https://wa.me/201500077600",target:"_blank",rel:"noopener noreferrer",children:c.jsxs("p",{className:"text-center font-bold cursor-pointer",children:["Powered by"," ",c.jsx("span",{className:"bg-gradient-to-r from-[#8CBBA7] to-main-400 text-transparent bg-clip-text",children:"Optima Software Solutions"})]})})]})})}function tW({title:e,subtitle:t,homeBtn:n=!1}){return c.jsx("div",{className:"grid place-items-center min-h-dvh",children:c.jsxs("div",{className:"grid place-items-center",children:[c.jsxs("svg",{width:"310",height:"310",viewBox:"0 0 310 310",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{opacity:"0.5",d:"M175.808 258.92L75.5219 262.498C68.8692 262.736 63.3072 257.597 63.0971 251.018L62.7603 240.349L82.8854 243.652L83.5652 247.233C84.795 253.719 91.0523 257.977 97.5413 256.744L127.694 251.012L175.811 258.916L175.808 258.92Z",fill:"#252A2A"}),c.jsx("path",{opacity:"0.5",d:"M232.76 247.252C231.851 252.777 227.099 257.084 221.237 257.294L192.185 258.33C194.839 256.562 196.777 253.735 197.336 250.333L199.465 237.37L226.119 232.306L232.652 240.371L232.54 240.46C230.782 241.888 230.51 244.471 231.935 246.235L232.76 247.255V247.252Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M75.0712 263.431C71.7556 263.431 68.6254 262.202 66.206 259.943C63.7093 257.61 62.2755 254.449 62.1673 251.047L61.7935 239.249L83.6707 242.84L84.471 247.057C85.021 249.95 86.6618 252.456 89.0998 254.115C91.5347 255.771 94.4702 256.38 97.3655 255.83L127.678 250.067L127.839 250.095L175.957 257.999L175.839 259.841L75.5532 263.419C75.3925 263.425 75.2319 263.428 75.0712 263.428V263.431ZM63.7185 241.443L64.0213 250.985C64.114 253.893 65.3377 256.59 67.4729 258.586C69.6451 260.616 72.4879 261.673 75.4852 261.568L166.47 258.32L127.703 251.952L97.7147 257.653C94.3342 258.296 90.9043 257.585 88.0585 255.648C85.2126 253.713 83.2937 250.784 82.654 247.404L82.0948 244.459L63.7216 241.443H63.7185Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M188.947 259.374L191.672 257.56C194.197 255.879 195.93 253.191 196.421 250.184L198.656 236.582L226.49 231.292L233.962 240.519L233.112 241.189C231.762 242.283 231.552 244.292 232.655 245.654L233.743 246.995L233.675 247.406C232.683 253.453 227.464 258.002 221.271 258.224L188.947 259.377V259.374ZM200.275 238.161L198.251 250.484C197.827 253.064 196.622 255.447 194.839 257.307L221.206 256.367C226.382 256.182 230.764 252.48 231.774 247.505L231.218 246.816C229.639 244.866 229.76 242.085 231.388 240.278L225.749 233.319L200.275 238.161Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.5",d:"M228.554 107.578L224.386 85.6481L220.131 63.2765L219.071 57.7021C223.731 59.2101 227.154 63.465 227.318 68.6037L228.557 107.581L228.554 107.578Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.5",d:"M125.138 46.9301L60.0131 59.3086C59.256 59.4538 58.5268 59.6639 57.8315 59.9451L59.7412 48.3051C60.8103 41.7852 66.9625 37.3758 73.4762 38.4449L125.138 46.9301Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.5",d:"M82.8829 243.652L62.7577 240.349L40.9052 236.759C34.3853 235.689 29.9759 229.537 31.045 223.024L53.2528 87.7959L58.8488 117.25L82.8798 243.655L82.8829 243.652Z",fill:"#252A2A"}),c.jsx("path",{opacity:"0.5",d:"M199.465 237.37L197.336 250.333C196.78 253.735 194.84 256.562 192.185 258.33C189.75 259.961 186.719 260.706 183.601 260.196L175.808 258.917L127.691 251.012L199.465 237.37Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M227.642 107.754L217.866 56.3398L219.355 56.8219C224.5 58.4874 228.072 63.212 228.242 68.5732L229.478 107.55L227.639 107.754H227.642ZM220.298 59.2012L227.25 95.7651L226.388 68.6319C226.258 64.5932 223.873 60.981 220.298 59.2012Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M56.6479 61.4189L58.8233 48.1566C59.3826 44.7607 61.2273 41.7851 64.0238 39.7766C66.8202 37.7712 70.2285 36.9739 73.6244 37.5301L130.45 46.8619L60.1829 60.22C59.4846 60.3529 58.8079 60.5506 58.1744 60.804L56.6479 61.4158V61.4189ZM71.5139 39.2142C69.2273 39.2142 67.0025 39.9249 65.1084 41.2845C62.7136 43.0025 61.1346 45.5487 60.6557 48.4564L58.9933 58.5916C59.2714 58.5205 59.5525 58.4556 59.8399 58.4L119.826 46.9979L73.3278 39.3625C72.7221 39.2636 72.1165 39.2142 71.517 39.2142H71.5139Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M84.0413 244.78L40.7566 237.67C37.3607 237.114 34.385 235.266 32.3796 232.469C30.3742 229.673 29.577 226.265 30.1332 222.869L53.1907 82.4746L84.0413 244.777V244.78ZM53.3236 93.1073L31.9624 223.172C31.4835 226.079 32.1664 228.996 33.8844 231.391C35.6025 233.786 38.1486 235.365 41.0563 235.844L81.7238 242.524L57.9401 117.419L53.3205 93.1104L53.3236 93.1073Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M185.544 261.283C184.849 261.283 184.148 261.228 183.449 261.113L122.375 251.08L200.593 236.211L198.247 250.484C197.673 253.994 195.649 257.133 192.698 259.102C190.563 260.532 188.078 261.28 185.541 261.28L185.544 261.283ZM133.005 250.947L183.752 259.281C186.527 259.732 189.339 259.123 191.672 257.56C194.199 255.873 195.933 253.184 196.424 250.181L198.34 238.525L133.008 250.944L133.005 250.947Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M228.551 107.581L224.383 85.6478L220.125 63.2731L219.068 57.6987L216.049 41.8192C214.816 35.3302 208.562 31.0691 202.073 32.3051L125.135 46.9301L60.0102 59.3086C59.2531 59.4539 58.5208 59.664 57.8286 59.9452C52.5973 62.0093 49.4084 67.562 50.493 73.2878L53.2524 87.7892L58.8484 117.243L82.8793 243.649L83.5591 247.233C84.7889 253.719 91.0492 257.977 97.5382 256.741L127.687 251.009L199.462 237.367L226.116 232.302L222.183 227.448C216.923 230.3 211.315 232.154 205.602 233.028C188.205 235.692 169.897 229.311 158.019 214.649C140.22 192.679 143.601 160.438 165.574 142.637C170.753 138.44 176.503 135.422 182.501 133.546C198.507 128.537 216.278 131.676 229.651 142.315C232.046 144.219 234.302 146.363 236.378 148.749L228.551 107.578V107.581ZM204.913 79.3875C204.913 79.3875 204.937 79.3905 204.947 79.3936C205.175 79.4307 205.389 79.5203 205.571 79.647C205.608 79.6717 205.645 79.6965 205.679 79.7274C205.707 79.749 205.735 79.7706 205.756 79.7953C205.784 79.8201 205.806 79.8417 205.83 79.8695C205.908 79.9498 205.979 80.0425 206.037 80.1414C206.053 80.1692 206.071 80.2001 206.084 80.2248C206.108 80.2681 206.127 80.3145 206.149 80.3608C206.158 80.3917 206.173 80.4257 206.183 80.4597C206.192 80.4751 206.195 80.4937 206.198 80.5122C206.204 80.5277 206.207 80.5462 206.21 80.5678C206.22 80.6018 206.226 80.6358 206.235 80.6729C206.244 80.7223 206.254 80.7749 206.26 80.8243C206.285 81.0653 206.251 81.3033 206.17 81.5196C206.158 81.5628 206.136 81.6092 206.115 81.6493C206.105 81.6802 206.09 81.7111 206.071 81.7389C206.071 81.7451 206.068 81.7482 206.062 81.7544C206.044 81.7915 206.025 81.8255 206 81.8564C205.966 81.9151 205.926 81.9676 205.877 82.0201C205.855 82.0479 205.83 82.0788 205.806 82.1005C205.75 82.1592 205.694 82.2086 205.63 82.2581C205.608 82.2735 205.586 82.2921 205.562 82.3044C205.537 82.326 205.512 82.3415 205.484 82.3539C205.447 82.3817 205.404 82.4002 205.361 82.4218C205.234 82.4836 205.098 82.53 204.953 82.5578L141.565 94.6088C141.268 94.6644 140.977 94.6366 140.715 94.5377C140.672 94.5254 140.625 94.5068 140.585 94.4821C140.557 94.4728 140.536 94.4574 140.508 94.4419C140.468 94.4203 140.427 94.3987 140.384 94.3709C140.344 94.3461 140.307 94.3183 140.27 94.2905C140.248 94.2782 140.233 94.2627 140.214 94.2473C140.134 94.1793 140.063 94.1051 139.995 94.0186C139.973 93.9908 139.952 93.9568 139.93 93.9259C139.905 93.8919 139.887 93.8579 139.865 93.8239C139.825 93.7529 139.788 93.6787 139.757 93.5984C139.72 93.5088 139.692 93.4192 139.677 93.3203C139.621 93.0236 139.649 92.7363 139.748 92.4705C139.76 92.4273 139.779 92.3871 139.803 92.3438C139.831 92.2789 139.865 92.214 139.905 92.1584C139.927 92.1275 139.948 92.0935 139.973 92.0626C139.973 92.0565 139.976 92.0534 139.982 92.0472C139.992 92.0317 140.007 92.0132 140.02 92.0008C140.032 91.9792 140.054 91.9576 140.075 91.9359C140.084 91.9236 140.097 91.9112 140.109 91.8989L140.143 91.8649C140.165 91.8432 140.186 91.8247 140.211 91.8031C140.279 91.7413 140.353 91.6887 140.431 91.6424C140.431 91.6424 140.431 91.6393 140.434 91.6393C140.594 91.5435 140.77 91.4755 140.962 91.4385L204.35 79.3875C204.499 79.3566 204.653 79.3504 204.795 79.3658C204.829 79.3689 204.866 79.372 204.903 79.3782L204.913 79.3875ZM203.649 71.2577C203.766 71.2978 203.881 71.3565 203.983 71.4276C204.004 71.4369 204.02 71.4523 204.041 71.4647C204.063 71.4771 204.078 71.4925 204.097 71.5049C204.14 71.5389 204.186 71.5759 204.227 71.6161C204.236 71.6254 204.251 71.6408 204.261 71.6501C204.304 71.6934 204.344 71.7428 204.384 71.7922C204.387 71.7953 204.39 71.7953 204.39 71.7984C204.424 71.8417 204.455 71.8911 204.486 71.9375C204.56 72.0642 204.619 72.197 204.659 72.3423C204.672 72.3824 204.684 72.4257 204.69 72.472C204.718 72.6204 204.724 72.7718 204.712 72.917C204.712 72.9479 204.706 72.9788 204.703 73.0097C204.703 73.0128 204.703 73.0159 204.699 73.019C204.693 73.0591 204.687 73.0993 204.675 73.1426C204.665 73.1827 204.653 73.2229 204.641 73.26C204.638 73.2723 204.635 73.2909 204.628 73.3032C204.622 73.3187 204.616 73.3372 204.613 73.3496C204.604 73.3867 204.585 73.4207 204.57 73.4547C204.557 73.4856 204.542 73.5134 204.526 73.5381C204.505 73.5752 204.483 73.6122 204.458 73.6493C204.431 73.6926 204.4 73.7328 204.369 73.776C204.298 73.8687 204.211 73.9521 204.119 74.0232C204.091 74.0479 204.063 74.0665 204.035 74.0912C203.856 74.2179 203.646 74.3075 203.414 74.3538L193.291 76.2758L140.026 86.3987C139.973 86.4079 139.924 86.4172 139.874 86.4234C139.055 86.5006 138.298 85.9413 138.141 85.1194C138.119 85.0174 138.11 84.9124 138.113 84.8135C138.113 84.7671 138.113 84.7208 138.119 84.6744C138.125 84.591 138.141 84.5045 138.162 84.4242C138.172 84.3809 138.187 84.3345 138.2 84.2944C138.227 84.2109 138.261 84.1275 138.308 84.0503C138.329 84.0101 138.351 83.973 138.376 83.9359C138.403 83.8927 138.434 83.8525 138.465 83.8092C138.496 83.7722 138.527 83.7351 138.564 83.7011C138.598 83.664 138.632 83.63 138.669 83.5991C138.737 83.5342 138.811 83.4848 138.889 83.4354C139.049 83.3365 139.225 83.2685 139.42 83.2314L202.808 71.1804C203.105 71.1248 203.395 71.1526 203.661 71.2515L203.649 71.2577ZM135.638 71.0166C135.7 70.6829 135.814 70.3647 135.978 70.0742C135.984 70.0618 135.987 70.0495 135.999 70.0402C136.033 69.9753 136.074 69.9135 136.114 69.8579C136.173 69.7683 136.237 69.6879 136.305 69.6107C136.336 69.5736 136.37 69.5365 136.404 69.5025C136.41 69.4964 136.417 69.4871 136.429 69.4778C136.488 69.416 136.549 69.3604 136.611 69.3048C136.611 69.3048 136.612 69.3038 136.614 69.3017C136.614 69.3017 136.621 69.2924 136.627 69.2924C136.627 69.2924 136.629 69.2914 136.633 69.2893C136.673 69.2492 136.723 69.2121 136.769 69.1781C136.791 69.1626 136.806 69.1472 136.828 69.1379C136.831 69.1317 136.84 69.1256 136.843 69.1256C136.849 69.1194 136.852 69.1163 136.858 69.1163C136.899 69.0823 136.948 69.0545 136.994 69.0236C137.001 69.0174 137.01 69.0143 137.022 69.0051C137.093 68.9618 137.164 68.9247 137.239 68.8876C137.303 68.8567 137.368 68.8258 137.436 68.8042C137.47 68.7918 137.501 68.7764 137.535 68.7671H137.538C137.538 68.7671 137.551 68.7609 137.56 68.7579C137.619 68.7362 137.671 68.7177 137.73 68.7022C137.736 68.6991 137.742 68.6991 137.755 68.6961C137.832 68.6744 137.912 68.6559 137.989 68.6404L194.774 57.844H194.781L198.767 57.0869C198.859 57.0715 198.952 57.056 199.045 57.0498C199.137 57.0375 199.227 57.0375 199.317 57.0375C199.391 57.0375 199.462 57.0375 199.533 57.0468C199.558 57.0468 199.573 57.0468 199.595 57.0498H199.607C199.669 57.056 199.731 57.0622 199.789 57.0746C199.799 57.0777 199.814 57.0807 199.823 57.0807C199.901 57.0931 199.975 57.1116 200.052 57.1302C200.074 57.1333 200.089 57.1364 200.108 57.1425C200.169 57.158 200.225 57.1765 200.287 57.1982C200.327 57.2136 200.367 57.2291 200.411 57.2445C200.445 57.2538 200.472 57.2692 200.503 57.2847C200.559 57.3094 200.611 57.331 200.664 57.3619C200.67 57.3619 200.679 57.365 200.686 57.3712C200.695 57.3712 200.701 57.3774 200.71 57.3836C200.735 57.3959 200.763 57.4114 200.784 57.4237C200.794 57.4268 200.806 57.4299 200.815 57.4392C200.849 57.4608 200.886 57.4763 200.917 57.5041C200.93 57.5072 200.945 57.5164 200.954 57.5288C200.995 57.5535 201.032 57.5844 201.072 57.6122H201.075C201.106 57.6339 201.137 57.6555 201.164 57.6833C201.195 57.708 201.223 57.7296 201.245 57.7513C201.248 57.7482 201.251 57.7575 201.251 57.7575C201.273 57.7698 201.285 57.7822 201.307 57.8038C201.338 57.8316 201.365 57.8532 201.387 57.8811C201.402 57.8903 201.418 57.9058 201.424 57.9181C201.464 57.9552 201.504 57.9954 201.538 58.0417C201.588 58.1004 201.64 58.1592 201.684 58.224C201.782 58.3538 201.866 58.4929 201.943 58.6412C201.952 58.6659 201.968 58.6875 201.977 58.7154C201.983 58.7215 201.986 58.7308 201.99 58.7432C202.017 58.7926 202.039 58.8513 202.061 58.91C202.085 58.9656 202.101 59.0182 202.119 59.0769C202.129 59.1016 202.135 59.1263 202.144 59.1541C202.15 59.1758 202.156 59.1943 202.159 59.2159C202.172 59.2561 202.184 59.2994 202.19 59.3488C202.197 59.3735 202.2 59.3921 202.203 59.4168L202.311 59.9761C202.363 60.2511 202.376 60.523 202.351 60.7857C202.345 60.8691 202.336 60.9525 202.317 61.0359C202.305 61.1194 202.286 61.2028 202.261 61.2831C202.24 61.3635 202.215 61.4469 202.184 61.5242C202.156 61.6014 202.125 61.6818 202.088 61.7559C202.054 61.8301 202.017 61.9042 201.977 61.9753C201.937 62.0495 201.897 62.1174 201.847 62.1854C201.801 62.2534 201.748 62.3214 201.696 62.3863C201.643 62.4512 201.591 62.5161 201.529 62.5717C201.47 62.6335 201.412 62.6953 201.347 62.7447C201.285 62.8034 201.22 62.8529 201.152 62.9023H201.149C201.081 62.9517 201.01 63.0012 200.939 63.0414C200.868 63.0877 200.794 63.131 200.713 63.165C200.655 63.1989 200.59 63.2268 200.531 63.2453C200.531 63.2484 200.528 63.2453 200.528 63.2453C200.488 63.2607 200.448 63.2793 200.401 63.2916C200.401 63.2916 200.399 63.2927 200.395 63.2947C200.339 63.3164 200.287 63.3318 200.228 63.3504C200.145 63.3751 200.058 63.3936 199.969 63.4122L139.191 74.9657C138.83 75.0336 138.471 75.0336 138.132 74.9718C138.064 74.9626 137.999 74.9471 137.934 74.9286H137.931C137.9 74.9224 137.872 74.9162 137.841 74.9039C137.826 74.9008 137.81 74.8977 137.801 74.8915C137.745 74.8822 137.693 74.8637 137.64 74.8421C137.557 74.8143 137.47 74.7772 137.393 74.737C137.331 74.7123 137.276 74.6814 137.217 74.6474C137.016 74.5392 136.834 74.4095 136.667 74.2488C136.636 74.2241 136.605 74.1932 136.574 74.1654C136.528 74.1221 136.485 74.0819 136.448 74.0325C136.41 73.9923 136.373 73.9491 136.339 73.9027C136.302 73.8564 136.265 73.8069 136.231 73.7575C136.225 73.7544 136.222 73.7513 136.225 73.7482C136.188 73.7019 136.151 73.6493 136.123 73.5968C136.08 73.5226 136.04 73.4516 135.999 73.3712C135.925 73.2198 135.864 73.056 135.814 72.8861C135.789 72.8027 135.771 72.7161 135.752 72.6265L135.644 72.0672C135.638 72.0333 135.635 72.0024 135.632 71.9684C135.619 71.8911 135.61 71.8108 135.604 71.7366C135.598 71.6594 135.595 71.5852 135.595 71.508C135.595 71.3411 135.613 71.1711 135.638 71.0074V71.0166ZM75.7012 118.223C75.6301 118.219 75.5591 118.21 75.488 118.195C75.4138 118.182 75.3428 118.167 75.2717 118.148C75.2408 118.142 75.2068 118.136 75.1759 118.124C75.1635 118.121 75.1481 118.118 75.1357 118.114C75.077 118.099 75.0214 118.08 74.9627 118.056C74.8854 118.028 74.8051 117.997 74.7309 117.96C74.6815 117.938 74.6321 117.917 74.5857 117.886C74.5826 117.886 74.5764 117.886 74.5734 117.88C74.5332 117.858 74.4961 117.839 74.459 117.815C74.3941 117.778 74.3323 117.737 74.2736 117.697C74.1562 117.617 74.0419 117.524 73.9399 117.422C73.8936 117.376 73.8441 117.326 73.8009 117.28C73.7638 117.24 73.7267 117.2 73.6927 117.153C73.668 117.129 73.6525 117.11 73.6371 117.085C73.6093 117.051 73.5876 117.017 73.5629 116.983C73.5135 116.919 73.4702 116.851 73.4301 116.78C73.3899 116.718 73.3559 116.65 73.325 116.585C73.2879 116.514 73.257 116.44 73.2261 116.365C73.1612 116.199 73.1118 116.026 73.0778 115.843L67.2315 85.0792C67.1666 84.7393 67.1635 84.3994 67.213 84.0781C67.2192 84.0194 67.2346 83.9607 67.2439 83.9019C67.247 83.8958 67.247 83.8896 67.2501 83.8803C67.2624 83.8216 67.2779 83.766 67.2933 83.7073C67.3088 83.6455 67.3304 83.5899 67.352 83.5311C67.3798 83.4539 67.4138 83.3705 67.4478 83.2994C67.4787 83.2345 67.5096 83.1727 67.5436 83.1171C67.5591 83.0831 67.5807 83.0491 67.6023 83.0182C67.7136 82.8235 67.8526 82.6412 68.0133 82.4805C68.0473 82.4435 68.0875 82.4064 68.1245 82.3755C68.1523 82.3446 68.1832 82.3168 68.208 82.2982C68.2759 82.2395 68.3439 82.187 68.4181 82.1345C68.4243 82.1283 68.4274 82.1252 68.4335 82.1221C68.4737 82.0881 68.5231 82.0603 68.5664 82.0325C68.588 82.0201 68.6066 82.0047 68.6313 81.9954C68.6931 81.9552 68.7611 81.9213 68.826 81.8904C68.897 81.8533 68.9712 81.8224 69.0454 81.7915C69.2122 81.7266 69.3853 81.6771 69.5676 81.6432L122.141 71.6501C122.175 71.6439 122.206 71.6408 122.24 71.6377C122.317 71.6254 122.397 71.6161 122.471 71.6099C122.549 71.6037 122.623 71.6007 122.7 71.6007C122.712 71.6007 122.731 71.6007 122.746 71.6037C122.898 71.6037 123.049 71.6192 123.198 71.6439C123.364 71.6748 123.531 71.7181 123.686 71.7768C123.711 71.783 123.732 71.7953 123.754 71.8046C123.797 71.817 123.843 71.8386 123.887 71.8571C123.924 71.8726 123.958 71.8942 123.992 71.9127C124.032 71.9251 124.072 71.9467 124.109 71.9745C124.146 71.9962 124.183 72.0178 124.22 72.0425C124.227 72.0394 124.236 72.0456 124.245 72.0549C124.279 72.0703 124.31 72.092 124.341 72.1136C124.477 72.2063 124.607 72.3114 124.724 72.4257C124.749 72.4504 124.773 72.472 124.798 72.4998C124.832 72.5307 124.863 72.5678 124.894 72.6018C124.909 72.6173 124.925 72.6358 124.937 72.6513C124.971 72.6883 125.002 72.7285 125.03 72.7687C125.101 72.8583 125.166 72.951 125.222 73.0468C125.262 73.1117 125.296 73.1796 125.33 73.2476C125.404 73.4052 125.469 73.5628 125.515 73.7328C125.54 73.8162 125.558 73.9027 125.577 73.9923L131.426 104.756C131.432 104.79 131.436 104.821 131.439 104.855C131.451 104.932 131.46 105.013 131.466 105.087C131.473 105.161 131.476 105.235 131.476 105.313C131.476 105.34 131.473 105.368 131.473 105.39C131.473 105.532 131.457 105.671 131.432 105.81C131.402 105.98 131.358 106.144 131.3 106.298C131.293 106.323 131.284 106.345 131.272 106.366C131.232 106.487 131.176 106.601 131.111 106.712C131.083 106.765 131.055 106.814 131.018 106.864C130.957 106.969 130.882 107.071 130.805 107.167C130.756 107.231 130.7 107.293 130.638 107.352C130.407 107.593 130.132 107.794 129.823 107.942C129.751 107.979 129.677 108.013 129.603 108.041C129.538 108.066 129.473 108.087 129.405 108.106C129.375 108.118 129.341 108.128 129.307 108.137C129.303 108.14 129.3 108.14 129.294 108.14C129.223 108.165 129.155 108.177 129.081 108.192L76.5077 118.185C76.2358 118.235 75.9639 118.25 75.6981 118.226L75.7012 118.223ZM78.3864 135.972C78.337 135.978 78.2814 135.981 78.2288 135.981C78.2196 135.981 78.2072 135.978 78.1979 135.978C78.1917 135.978 78.1887 135.978 78.1856 135.975C78.1021 135.95 77.8858 135.87 77.1133 135.523C77.0793 135.493 77.0484 135.459 77.0175 135.425C76.9867 135.388 76.9557 135.35 76.9279 135.313L76.7549 135.004C76.7394 134.961 76.7178 134.912 76.7024 134.868L76.6529 134.671C76.6437 134.621 76.6344 134.569 76.6282 134.513C76.6158 134.399 76.6189 134.278 76.6344 134.164C76.6375 134.124 76.6437 134.084 76.656 134.043C76.656 134.022 76.6591 134.006 76.6653 133.988C76.6746 133.941 76.69 133.892 76.7055 133.849C76.724 133.793 76.7456 133.741 76.7703 133.688C76.7827 133.657 76.7982 133.629 76.8136 133.605C76.826 133.577 76.8414 133.549 76.8569 133.527C76.9187 133.422 76.9928 133.326 77.0763 133.24C77.1381 133.175 77.2091 133.113 77.2833 133.061C77.3575 133.005 77.4347 132.959 77.5212 132.919C77.6046 132.878 77.6943 132.844 77.787 132.817C77.8333 132.804 77.8827 132.792 77.9291 132.783L209.739 107.729C209.841 107.707 209.943 107.701 210.042 107.701C210.054 107.701 210.067 107.701 210.079 107.704C210.147 107.717 210.339 107.788 211.161 108.152C211.164 108.152 211.164 108.155 211.167 108.155C211.201 108.189 211.232 108.223 211.263 108.257C211.294 108.291 211.324 108.328 211.352 108.365L211.371 108.393L211.516 108.659L211.606 108.919V108.925L211.633 109.014C211.692 109.311 211.661 109.598 211.562 109.864C211.55 109.907 211.531 109.954 211.507 109.994C211.491 110.034 211.47 110.074 211.445 110.118C211.417 110.17 211.386 110.216 211.352 110.26C211.324 110.3 211.294 110.337 211.26 110.374C211.219 110.423 211.17 110.47 211.124 110.513C211.083 110.55 211.04 110.587 210.991 110.621C210.917 110.677 210.839 110.723 210.753 110.763C210.666 110.803 210.58 110.837 210.487 110.865C210.441 110.884 210.391 110.893 210.342 110.902L137.05 124.832L78.5347 135.953C78.4822 135.962 78.4328 135.972 78.3833 135.975L78.3864 135.972ZM213.815 120.831C213.815 120.865 213.812 120.895 213.806 120.929C213.803 120.957 213.796 120.985 213.787 121.01C213.778 121.072 213.762 121.133 213.741 121.186C213.731 121.223 213.716 121.26 213.701 121.297C213.679 121.343 213.66 121.393 213.636 121.436C213.611 121.479 213.586 121.529 213.558 121.569C213.552 121.581 213.537 121.6 213.528 121.612C213.5 121.656 213.466 121.702 213.426 121.742C213.401 121.773 213.376 121.801 213.348 121.826C213.129 122.045 212.842 122.206 212.514 122.267L80.7039 147.321C80.4073 147.38 80.1137 147.349 79.8511 147.253C79.7676 147.222 79.6842 147.182 79.6039 147.139C79.4865 147.068 79.3752 146.987 79.2763 146.892C79.1929 146.811 79.1187 146.722 79.0569 146.626C79.0353 146.598 79.0199 146.567 79.0013 146.536C78.9859 146.505 78.9673 146.474 78.955 146.444C78.9333 146.406 78.9179 146.366 78.8994 146.326C78.8654 146.233 78.8376 146.141 78.819 146.039C78.7819 145.841 78.7819 145.643 78.8159 145.458C78.8314 145.362 78.8561 145.276 78.887 145.186C78.9179 145.102 78.955 145.019 79.0013 144.942C79.0322 144.892 79.0631 144.84 79.0971 144.793C79.1404 144.729 79.1929 144.67 79.2454 144.614C79.3103 144.549 79.3783 144.488 79.4525 144.435C79.4896 144.407 79.5297 144.386 79.5668 144.361C79.6008 144.339 79.6348 144.321 79.6719 144.302C79.7058 144.287 79.7398 144.268 79.7769 144.256C79.8171 144.237 79.8573 144.222 79.9036 144.209C79.9685 144.188 80.0334 144.172 80.1014 144.157L211.911 119.103C212.013 119.082 212.115 119.075 212.214 119.075C212.261 119.075 212.31 119.075 212.356 119.082C212.449 119.088 212.539 119.106 212.628 119.128C212.678 119.14 212.727 119.159 212.774 119.174C212.984 119.248 213.175 119.372 213.339 119.527C213.404 119.591 213.466 119.659 213.518 119.734C213.546 119.771 213.571 119.811 213.592 119.848C213.614 119.882 213.633 119.916 213.651 119.953C213.67 119.987 213.685 120.021 213.698 120.058C213.716 120.098 213.732 120.138 213.744 120.185C213.766 120.25 213.781 120.315 213.793 120.382C213.815 120.488 213.824 120.59 213.821 120.691C213.821 120.735 213.821 120.781 213.815 120.827V120.831Z",fill:"#252A2A"}),c.jsx("path",{d:"M95.2769 257.885C92.7184 257.885 90.2216 257.122 88.0586 255.651C85.2127 253.714 83.2939 250.787 82.6511 247.407L81.9713 243.823L57.9404 117.417L52.3444 87.9629L49.5851 73.4616C48.4325 67.3928 51.7573 61.3457 57.4893 59.0807C58.2185 58.7871 59.0096 58.5554 59.8346 58.3978L201.9 31.3943C205.281 30.7516 208.711 31.4654 211.554 33.3997C214.396 35.3371 216.318 38.2634 216.961 41.6469L237.93 151.941L235.68 149.355C233.675 147.05 231.453 144.927 229.077 143.039C216.031 132.66 198.724 129.443 182.78 134.43C176.723 136.325 171.13 139.328 166.158 143.357C144.618 160.807 141.29 192.529 158.739 214.066C169.944 227.894 187.847 234.809 205.463 232.111C211.18 231.234 216.658 229.389 221.744 226.633L222.421 226.265L227.816 232.924L97.7149 257.653C96.9022 257.808 96.0865 257.885 95.2769 257.885ZM204.329 33.0196C203.637 33.0196 202.942 33.0845 202.247 33.2174L60.1838 60.2209C59.4792 60.3569 58.8025 60.5546 58.1753 60.8049C53.2652 62.7423 50.4194 67.9212 51.4051 73.1155L54.1644 87.6168L59.7604 117.071L83.7914 243.476L84.4712 247.061C85.0212 249.953 86.6651 252.459 89.1 254.118C91.5349 255.775 94.4704 256.383 97.3657 255.833L224.423 231.685L221.948 228.629C216.868 231.289 211.421 233.079 205.747 233.95C196.901 235.303 187.798 234.358 179.421 231.209C170.79 227.965 163.139 222.443 157.302 215.237C139.211 192.902 142.659 160.016 164.993 141.921C170.151 137.743 175.948 134.628 182.229 132.666C198.761 127.496 216.705 130.834 230.233 141.593C231.855 142.881 233.406 144.275 234.868 145.758L223.475 85.8246L215.141 41.9992C214.591 39.1038 212.947 36.5979 210.512 34.9385C208.661 33.6778 206.523 33.0227 204.332 33.0227L204.329 33.0196Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M141.274 95.5666C140.981 95.5666 140.693 95.5171 140.424 95.4183C140.341 95.3904 140.264 95.3595 140.193 95.3225C140.143 95.3008 140.1 95.2761 140.063 95.2545C140.01 95.2267 139.958 95.1958 139.902 95.1618C139.84 95.1247 139.782 95.0845 139.723 95.0351C139.683 95.0042 139.643 94.9733 139.606 94.9393C139.488 94.8404 139.383 94.7292 139.281 94.5994C139.235 94.5376 139.201 94.4882 139.17 94.4449C139.142 94.4078 139.111 94.3553 139.08 94.3059C139.003 94.1699 138.947 94.0587 138.904 93.9443C138.849 93.8115 138.799 93.6508 138.771 93.4839C138.691 93.0513 138.728 92.594 138.879 92.1768C138.907 92.0934 138.938 92.0162 138.978 91.942C139.003 91.8895 139.028 91.84 139.053 91.7937V91.6886L139.278 91.4569C139.278 91.4569 139.297 91.4322 139.309 91.4198C139.337 91.3858 139.362 91.3549 139.386 91.3271C139.408 91.3024 139.43 91.2807 139.454 91.256L139.494 91.2159C139.494 91.2159 139.507 91.2035 139.513 91.1973V90.7215H140.217C140.403 90.6349 140.594 90.5731 140.798 90.5361L204.19 78.4851C204.421 78.4387 204.678 78.4263 204.919 78.4542C204.962 78.4572 205.021 78.4665 205.083 78.4758L205.166 78.4912C205.497 78.5561 205.818 78.689 206.093 78.8775C206.158 78.9207 206.22 78.9671 206.275 79.0134C206.316 79.0474 206.359 79.0814 206.396 79.1185C206.439 79.1587 206.483 79.1988 206.523 79.2452C206.649 79.3781 206.758 79.5233 206.847 79.6747C206.866 79.7056 206.9 79.7643 206.924 79.8138C206.949 79.857 206.98 79.925 207.011 79.9992L207.039 80.0702C207.045 80.0888 207.051 80.1073 207.057 80.1259C207.079 80.1784 207.094 80.2278 207.104 80.268C207.113 80.302 207.122 80.336 207.128 80.3638C207.141 80.4101 207.15 80.4565 207.159 80.509C207.172 80.5615 207.181 80.6264 207.19 80.6944L207.196 80.7408C207.23 81.1023 207.187 81.4762 207.063 81.8223C207.048 81.8717 207.029 81.915 207.014 81.9551V82.122L206.829 82.3167C206.816 82.3383 206.801 82.3599 206.785 82.3815C206.73 82.4681 206.668 82.5515 206.6 82.6288C206.563 82.6751 206.517 82.7245 206.476 82.7647C206.408 82.8389 206.316 82.9223 206.214 82.9965C206.18 83.0243 206.143 83.049 206.109 83.0737C206.068 83.1046 206.025 83.1324 205.979 83.1571C205.908 83.2004 205.846 83.2344 205.806 83.2529C205.574 83.3642 205.358 83.4352 205.138 83.4785L141.756 95.5264C141.599 95.5542 141.441 95.5697 141.283 95.5697L141.274 95.5666ZM141.027 93.6631L141.052 93.6724C141.16 93.7126 141.284 93.7218 141.407 93.7002L204.789 81.6523C204.851 81.64 204.907 81.6214 204.965 81.5936L205.089 81.5133C205.107 81.4978 205.123 81.4854 205.141 81.4669L205.308 81.2074C205.342 81.1147 205.355 81.0189 205.348 80.9262C205.345 80.8983 205.342 80.8767 205.336 80.8551L205.296 80.7068C205.296 80.7068 205.284 80.6821 205.277 80.6697L205.259 80.6326C205.228 80.5801 205.2 80.5461 205.169 80.5121L205.064 80.4132C204.975 80.3545 204.891 80.3205 204.802 80.3051L204.724 80.2927C204.653 80.2834 204.601 80.2865 204.551 80.2989L141.151 92.3499C141.089 92.3622 141.033 92.3808 140.981 92.4055L140.9 92.4519C140.9 92.4519 140.869 92.4704 140.845 92.492L140.709 92.6465C140.709 92.6465 140.696 92.6651 140.69 92.6743L140.632 92.7948C140.588 92.9061 140.579 93.0266 140.604 93.1533C140.61 93.1904 140.616 93.2151 140.628 93.2398C140.653 93.2985 140.669 93.3325 140.687 93.3665C140.687 93.3665 140.696 93.3819 140.709 93.4005C140.73 93.4314 140.743 93.4499 140.755 93.4654C140.767 93.4808 140.798 93.5117 140.826 93.5364L141.033 93.6662L141.027 93.6631Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M139.704 87.3626C138.496 87.3626 137.452 86.5098 137.22 85.2954C137.189 85.1347 137.174 84.9648 137.177 84.801C137.177 84.7237 137.177 84.6527 137.189 84.5785C137.201 84.4425 137.226 84.3128 137.257 84.1892C137.272 84.1243 137.291 84.0625 137.313 84.0038C137.359 83.8616 137.418 83.7257 137.492 83.6021C137.52 83.5464 137.554 83.497 137.585 83.4445C137.625 83.3796 137.671 83.3178 137.717 83.256L137.739 83.2282C137.773 83.188 137.826 83.1231 137.897 83.052C137.946 82.9995 137.996 82.9501 138.048 82.9068C138.178 82.7894 138.305 82.706 138.4 82.6473C138.651 82.4928 138.935 82.3846 139.238 82.3259L202.629 70.2749C203.083 70.1915 203.544 70.2285 203.967 70.383C204.149 70.4479 204.322 70.5345 204.483 70.6395C204.508 70.655 204.536 70.6704 204.56 70.689C204.607 70.7199 204.647 70.7508 204.681 70.7786C204.74 70.8249 204.814 70.8867 204.882 70.9547L204.261 71.6469L204.879 71.0072L204.888 71.0134L204.913 70.9887C204.947 71.0227 204.977 71.0536 205.005 71.0876L205.314 71.2822V71.5263C205.419 71.7117 205.493 71.8879 205.546 72.0764C205.571 72.1567 205.589 72.2401 205.605 72.3267C205.642 72.5275 205.654 72.7531 205.636 72.9756C205.636 73.0219 205.629 73.0683 205.62 73.1146C205.617 73.1548 205.608 73.1949 205.599 73.232C205.589 73.2784 205.58 73.3216 205.571 73.368C205.558 73.4174 205.543 73.473 205.527 73.5225C205.518 73.5565 205.506 73.5966 205.487 73.6399C205.459 73.7326 205.422 73.8068 205.401 73.8531C205.376 73.9056 205.351 73.9551 205.32 74.0076C205.293 74.0571 205.265 74.1034 205.234 74.1528C205.197 74.2116 205.154 74.2734 205.107 74.3352C204.981 74.4989 204.845 74.6349 204.696 74.7492C204.668 74.7739 204.641 74.7956 204.61 74.8172L204.56 74.8543C204.267 75.0613 203.936 75.2004 203.581 75.2652L140.192 87.3132C140.131 87.3255 140.06 87.3348 139.992 87.3441H139.958C139.874 87.3564 139.791 87.3595 139.71 87.3595L139.704 87.3626ZM139.191 84.3777C139.179 84.3931 139.167 84.4086 139.154 84.4271L139.089 84.5352C139.089 84.5352 139.083 84.5476 139.071 84.5816C139.062 84.6063 139.058 84.6218 139.055 84.6372L139.043 84.6867C139.043 84.6867 139.037 84.7145 139.034 84.7515L139.028 84.8103V84.835V84.8504C139.028 84.8597 139.028 84.8937 139.037 84.9431C139.102 85.2923 139.417 85.5333 139.76 85.5086C139.785 85.5055 139.809 85.5024 139.834 85.4962L203.228 73.4483C203.318 73.4298 203.402 73.3989 203.476 73.3494L203.55 73.2876C203.578 73.2691 203.602 73.2413 203.624 73.2135C203.63 73.2073 203.646 73.1888 203.658 73.1671C203.677 73.1393 203.689 73.1177 203.701 73.0992L203.726 73.0528C203.726 73.0528 203.735 73.025 203.741 73.0095L203.782 72.8334C203.788 72.7716 203.782 72.7067 203.772 72.6387L203.76 72.5955C203.741 72.5306 203.717 72.4719 203.683 72.4163C203.683 72.4163 203.68 72.4101 203.673 72.4039L203.63 72.3452C203.63 72.3452 203.609 72.3205 203.599 72.3081L203.578 72.2865C203.556 72.2649 203.544 72.2556 203.528 72.2432L203.448 72.1907C203.417 72.1691 203.383 72.1505 203.349 72.1382L203.327 72.1289C203.213 72.0856 203.093 72.0764 202.966 72.1011L139.584 84.149C139.503 84.1644 139.432 84.1923 139.367 84.2324C139.315 84.2633 139.303 84.2757 139.299 84.2788L139.191 84.3807V84.3777ZM203.723 73.0713C203.723 73.0713 203.714 73.0992 203.711 73.1146C203.714 73.1022 203.72 73.0868 203.723 73.0713Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M138.641 75.9548C138.416 75.9548 138.19 75.9363 137.968 75.8961C137.887 75.8837 137.798 75.8652 137.711 75.8405C137.674 75.8312 137.64 75.8219 137.603 75.8127C137.581 75.8065 137.56 75.8003 137.532 75.7941C137.455 75.7756 137.38 75.7509 137.309 75.72C137.211 75.686 137.109 75.6427 137.007 75.5902C136.898 75.5438 136.809 75.4944 136.75 75.4604C136.503 75.3275 136.265 75.1576 136.052 74.9567C136.012 74.9228 135.971 74.8857 135.934 74.8455C135.882 74.7961 135.814 74.7312 135.746 74.6477C135.706 74.6014 135.662 74.552 135.625 74.5056L135.403 74.3975L135.35 74.1224C135.338 74.1008 135.326 74.0792 135.313 74.0576C135.261 73.9679 135.211 73.8783 135.165 73.7856C135.075 73.6002 134.995 73.3932 134.927 73.1645C134.893 73.0379 134.865 72.9297 134.844 72.8123L134.735 72.253C134.726 72.2036 134.72 72.1541 134.714 72.1016C134.698 72.012 134.692 71.9255 134.683 71.8389C134.674 71.7215 134.667 71.6195 134.667 71.5176C134.667 71.3105 134.686 71.0912 134.723 70.8656V70.8501C134.803 70.4268 134.949 70.022 135.156 69.6481C135.165 69.6265 135.184 69.5894 135.214 69.5462C135.261 69.4658 135.31 69.3947 135.347 69.336C135.421 69.2248 135.505 69.1166 135.604 69.0023C135.622 68.9776 135.65 68.9467 135.681 68.9127V68.3781L136.166 68.372L136.246 68.2082L136.562 68.1989C136.657 68.1402 136.741 68.0969 136.827 68.0537C136.929 68.0042 137.016 67.9672 137.105 67.9332C137.124 67.927 137.139 67.9208 137.155 67.9146L137.211 67.8868L137.282 67.8683C137.319 67.8559 137.353 67.8436 137.387 67.8312L137.414 67.8158L137.523 67.791C137.625 67.7632 137.727 67.7385 137.829 67.72L198.59 56.1695C198.714 56.1448 198.831 56.1294 198.943 56.1201C199.088 56.1016 199.218 56.1016 199.313 56.1016C199.391 56.1016 199.486 56.1016 199.595 56.1139C199.61 56.1139 199.625 56.1139 199.638 56.1139L199.706 56.1201C199.783 56.1294 199.863 56.1386 199.941 56.151L200.018 56.1664C200.098 56.1819 200.175 56.2004 200.256 56.219C200.293 56.2252 200.333 56.2375 200.379 56.253C200.444 56.2715 200.509 56.2901 200.577 56.3117L200.673 56.3488C200.692 56.3549 200.71 56.3611 200.725 56.3704C200.784 56.3889 200.834 56.4137 200.877 56.4322H201.217L201.362 56.6887C201.362 56.6887 201.393 56.7072 201.408 56.7196C201.436 56.7381 201.464 56.7566 201.492 56.7752C201.523 56.7968 201.551 56.8154 201.581 56.8401C201.609 56.8586 201.634 56.8772 201.659 56.8957L201.94 56.9606L202.036 57.2294C202.06 57.251 202.082 57.2758 202.104 57.3005C202.156 57.353 202.203 57.4025 202.243 57.455C202.314 57.5384 202.376 57.6126 202.428 57.6867C202.542 57.8381 202.647 58.0081 202.74 58.1842L202.783 58.2275L202.839 58.3882C202.867 58.4469 202.895 58.5118 202.919 58.5797C202.947 58.6477 202.972 58.7188 202.994 58.7929C203.006 58.83 203.018 58.8671 203.028 58.9042C203.037 58.9289 203.043 58.9567 203.049 58.9814C203.068 59.0432 203.083 59.105 203.092 59.1699C203.099 59.2039 203.105 59.2348 203.111 59.2688L203.216 59.8096C203.284 60.1742 203.303 60.5326 203.269 60.8787C203.259 60.9869 203.244 61.1012 203.225 61.2093C203.207 61.3268 203.182 61.4349 203.154 61.5369C203.126 61.6388 203.092 61.747 203.052 61.8551C203.012 61.9726 202.969 62.0714 202.923 62.1641C202.879 62.2599 202.83 62.3557 202.777 62.4453C202.728 62.5349 202.669 62.6307 202.601 62.7296C202.539 62.8161 202.471 62.9088 202.4 62.9954C202.36 63.0479 202.283 63.1437 202.181 63.2395C202.119 63.3043 202.042 63.3816 201.949 63.4589C201.866 63.5361 201.776 63.6041 201.677 63.6752L201.452 63.8327V63.8853L200.997 64.0676C200.973 64.0799 200.945 64.0892 200.917 64.1016L200.793 64.2314H200.586L200.29 64.3519L200.25 64.3117C200.213 64.321 200.179 64.3271 200.141 64.3333L139.361 75.8868C139.12 75.9332 138.876 75.9548 138.635 75.9548H138.641ZM138.196 74.0483L138.215 74.0545C138.233 74.0606 138.252 74.0637 138.27 74.0668C138.533 74.1132 138.777 74.1132 139.021 74.0668L199.798 62.5133C199.832 62.5071 199.863 62.501 199.894 62.4917L200.345 62.3248C200.373 62.3125 200.398 62.297 200.426 62.2816L200.481 62.2476C200.518 62.2259 200.559 62.2012 200.593 62.1734L200.704 62.09H200.707L200.772 62.0313C200.803 62.0066 200.827 61.9787 200.855 61.9509L200.892 61.9139C200.92 61.886 200.945 61.8551 200.967 61.8273C201.022 61.7624 201.053 61.7161 201.087 61.6728C201.118 61.6296 201.14 61.5925 201.164 61.5492C201.201 61.4843 201.226 61.4349 201.248 61.3855L201.263 61.3546C201.282 61.3144 201.297 61.2742 201.313 61.2341L201.325 61.2032C201.34 61.1599 201.356 61.1166 201.368 61.0734L201.377 61.0394C201.39 60.9961 201.399 60.9498 201.405 60.9065L201.411 60.8725C201.421 60.8231 201.427 60.7767 201.43 60.7304C201.449 60.5419 201.436 60.3534 201.402 60.1618L201.229 59.3522C201.223 59.3337 201.22 59.3152 201.211 59.2966L201.118 59.0834C201.118 59.0834 201.109 59.068 201.106 59.0587C201.056 58.9629 201.004 58.8795 200.945 58.8022L200.92 58.7651C200.895 58.7312 200.871 58.7003 200.843 58.6694L200.676 58.5025L200.404 58.3047H200.123L200.006 58.0884C200.006 58.0884 199.981 58.0792 199.968 58.073C199.934 58.0606 199.9 58.0514 199.863 58.0421L199.805 58.0266C199.768 58.0174 199.727 58.0081 199.687 57.9988C199.659 57.9957 199.632 57.9896 199.604 57.9834C199.588 57.9834 199.57 57.9803 199.554 57.9772L199.4 57.9648C199.375 57.9648 199.347 57.9648 199.313 57.9648C199.27 57.9648 199.224 57.9648 199.177 57.9679L199.109 57.9741C199.051 57.9772 198.989 57.9865 198.93 57.9988L138.159 69.5523C138.122 69.5585 138.091 69.5647 138.06 69.574L138.017 69.5863L137.742 69.679C137.705 69.6914 137.671 69.7099 137.634 69.7254C137.609 69.7377 137.578 69.7532 137.544 69.7717L137.516 69.8243L137.377 69.8953L137.328 69.9448L137.173 70.2321H136.997L136.948 70.2816C136.92 70.3156 136.898 70.3434 136.883 70.3712L136.864 70.399C136.846 70.4237 136.827 70.4515 136.812 70.4793L136.738 70.6153C136.648 70.7914 136.583 70.983 136.546 71.1839C136.528 71.3075 136.515 71.4218 136.515 71.5238C136.515 71.5732 136.515 71.6195 136.521 71.6721C136.528 71.7246 136.531 71.774 136.537 71.8235L136.657 72.4631C136.67 72.528 136.685 72.5867 136.701 72.6485C136.735 72.7628 136.778 72.8772 136.827 72.9791C136.852 73.0317 136.877 73.0749 136.905 73.1213L136.966 73.2109L137.177 73.4797C137.177 73.4797 137.189 73.4921 137.198 73.5014L137.3 73.5971C137.399 73.6929 137.513 73.7764 137.652 73.8505C137.693 73.8752 137.708 73.8845 137.723 73.8907L137.813 73.9309C137.866 73.9587 137.9 73.971 137.915 73.9741L137.995 74.0019L138.153 74.0328L138.187 74.0576L138.196 74.0483ZM136.577 68.1896C136.577 68.1896 136.568 68.1958 136.565 68.1958L136.577 68.1896ZM201.115 59.0587C201.115 59.0587 201.124 59.0834 201.13 59.0958L201.118 59.0587H201.115ZM199.443 57.9587C199.443 57.9587 199.471 57.9617 199.483 57.9648L199.443 57.9587Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M75.9573 119.162C75.8491 119.162 75.7441 119.159 75.639 119.15C75.537 119.144 75.432 119.132 75.3145 119.11C75.228 119.094 75.1384 119.076 75.0457 119.051C75.0055 119.042 74.9654 119.033 74.9283 119.02L74.8696 119.005C74.7892 118.98 74.712 118.958 74.6317 118.928C74.5328 118.894 74.4432 118.857 74.3597 118.816H74.0137L73.8715 118.551C73.8313 118.526 73.7881 118.498 73.7479 118.47C73.5718 118.35 73.4142 118.22 73.2751 118.081C73.2164 118.022 73.1608 117.967 73.1114 117.914C73.065 117.865 73.0218 117.815 72.9816 117.766C72.9383 117.719 72.9013 117.673 72.8704 117.624C72.8487 117.596 72.8271 117.565 72.8086 117.537C72.7375 117.441 72.6819 117.352 72.6324 117.268C72.5737 117.172 72.5243 117.083 72.4872 117.003C72.4408 116.91 72.4007 116.817 72.3605 116.721C72.2678 116.48 72.1998 116.245 72.1566 116.017L66.3103 85.2559C66.2269 84.8233 66.2207 84.3845 66.2856 83.9519C66.2917 83.8963 66.3041 83.8406 66.3134 83.785L66.3628 83.5718C66.3721 83.5285 66.3844 83.4884 66.3968 83.4451C66.4153 83.3802 66.4401 83.3061 66.4679 83.2288C66.508 83.1145 66.5544 83.0002 66.6038 82.9013C66.6409 82.8209 66.6811 82.7437 66.7213 82.6695C66.746 82.6201 66.7738 82.5737 66.8047 82.5305C66.953 82.2771 67.1322 82.0454 67.3362 81.8383C67.3856 81.7827 67.4381 81.7363 67.4814 81.6993C67.5247 81.656 67.571 81.6128 67.6204 81.5757C67.6822 81.5231 67.7471 81.4706 67.8151 81.4243L67.8676 81.3717L67.9356 81.3347C67.9758 81.3068 68.0191 81.279 68.0592 81.2543C68.0778 81.2419 68.1148 81.2172 68.1705 81.1863C68.257 81.1338 68.3404 81.0905 68.4084 81.0596C68.5011 81.0133 68.5969 80.9731 68.6927 80.9329C68.9337 80.8402 69.1654 80.7723 69.3972 80.729L121.967 70.7359C122.014 70.7267 122.063 70.7205 122.116 70.7143C122.205 70.6989 122.292 70.6927 122.378 70.6834C122.496 70.6741 122.598 70.668 122.7 70.668C122.728 70.668 122.765 70.668 122.805 70.6711C122.972 70.6711 123.145 70.6896 123.346 70.7236C123.583 70.7668 123.794 70.8225 123.988 70.8935C124.025 70.9059 124.065 70.9213 124.106 70.9368C124.137 70.9492 124.167 70.9615 124.201 70.9739L124.276 71.0048C124.313 71.0202 124.347 71.0388 124.384 71.0573C124.461 71.0913 124.538 71.1284 124.609 71.1778C124.619 71.184 124.631 71.1902 124.64 71.1964C124.693 71.2211 124.742 71.252 124.789 71.286C124.813 71.3014 124.838 71.3169 124.863 71.3323C125.051 71.459 125.221 71.5981 125.382 71.7526C125.416 71.7865 125.447 71.8144 125.471 71.8391C125.509 71.8762 125.546 71.9163 125.58 71.9534C125.601 71.975 125.629 72.009 125.66 72.043C125.706 72.0955 125.75 72.1512 125.79 72.2099C125.876 72.3211 125.957 72.4385 126.028 72.5621C126.08 72.6487 126.127 72.7352 126.17 72.8248C126.281 73.0596 126.361 73.2667 126.42 73.4737C126.451 73.5818 126.476 73.6931 126.5 73.8074L132.35 104.575C132.359 104.624 132.365 104.67 132.371 104.723C132.384 104.812 132.393 104.899 132.402 104.982C132.412 105.094 132.418 105.196 132.418 105.301C132.418 105.335 132.418 105.366 132.415 105.4C132.415 105.573 132.396 105.749 132.362 105.956C132.322 106.178 132.266 106.388 132.195 106.586C132.183 106.626 132.167 106.666 132.149 106.707C132.093 106.858 132.022 107.013 131.933 107.164C131.914 107.201 131.874 107.275 131.815 107.359C131.738 107.485 131.648 107.612 131.54 107.745C131.475 107.825 131.398 107.915 131.312 107.998C131.015 108.307 130.653 108.57 130.245 108.768C130.159 108.814 130.048 108.863 129.936 108.904C129.896 108.919 129.856 108.931 129.816 108.947L129.708 109.055H129.442C129.377 109.074 129.318 109.086 129.266 109.095L76.6958 119.088C76.4517 119.135 76.2106 119.156 75.9696 119.156L75.9573 119.162ZM75.4381 117.237L75.5247 117.259C75.5679 117.271 75.6081 117.278 75.6544 117.287C75.6915 117.293 75.7193 117.299 75.7471 117.299H75.7873C75.9665 117.318 76.155 117.308 76.3404 117.274L128.914 107.281C128.945 107.275 128.972 107.272 128.997 107.266H129.003C129.003 107.266 129.006 107.266 129.009 107.263L129.189 107.21C129.223 107.201 129.257 107.189 129.288 107.176C129.331 107.161 129.368 107.142 129.402 107.124C129.637 107.009 129.819 106.877 129.977 106.713C130.026 106.663 130.057 106.629 130.085 106.592C130.15 106.512 130.193 106.45 130.224 106.401L130.276 106.32C130.276 106.32 130.289 106.296 130.298 106.28C130.351 106.188 130.378 106.126 130.4 106.067L130.434 105.98C130.471 105.875 130.502 105.764 130.524 105.647C130.542 105.545 130.548 105.461 130.548 105.39C130.548 105.359 130.548 105.325 130.551 105.291C130.551 105.264 130.551 105.217 130.545 105.171C130.539 105.112 130.536 105.063 130.527 105.013L130.517 104.945L124.665 74.1658C124.653 74.104 124.64 74.0453 124.622 73.9835C124.594 73.8785 124.551 73.7734 124.492 73.6467C124.48 73.622 124.461 73.5787 124.436 73.5417L124.415 73.5077C124.384 73.4521 124.347 73.3995 124.306 73.3501L124.069 73.0782C124.013 73.0225 123.948 72.97 123.88 72.9175L123.787 72.8588L123.509 72.7012L123.361 72.6425C123.262 72.6054 123.145 72.5745 123.027 72.5529C122.922 72.5374 122.826 72.5282 122.743 72.5282H122.641C122.61 72.5282 122.579 72.5281 122.548 72.5312C122.496 72.5374 122.446 72.5405 122.397 72.5467L122.332 72.556L69.7371 82.5521C69.6135 82.5737 69.4961 82.6077 69.3756 82.6541C69.3416 82.6664 69.2952 82.685 69.2489 82.7097L69.2149 82.7282C69.1902 82.7406 69.1624 82.753 69.1376 82.7684L68.9059 82.9198C68.8688 82.9476 68.8348 82.9754 68.7977 83.0063L68.6556 83.1392C68.5567 83.2381 68.464 83.3586 68.3899 83.4853L68.3281 83.5873C68.3064 83.6213 68.291 83.6583 68.2724 83.6985C68.2508 83.7418 68.2323 83.7912 68.2168 83.8376C68.2014 83.8839 68.1859 83.9179 68.1766 83.955C68.1612 84.0106 68.1519 84.0538 68.1427 84.094L68.1179 84.2238C68.0839 84.4494 68.087 84.6811 68.1303 84.9098L73.9766 115.674C73.9982 115.797 74.0322 115.915 74.0785 116.035C74.0909 116.066 74.1094 116.116 74.1342 116.162L74.1496 116.193C74.162 116.218 74.1743 116.245 74.1898 116.27L74.2238 116.323C74.2423 116.354 74.2578 116.385 74.2794 116.412L74.3103 116.452C74.3227 116.471 74.335 116.49 74.3505 116.508L74.4154 116.592C74.4339 116.613 74.4524 116.635 74.471 116.653C74.5019 116.687 74.539 116.724 74.576 116.762C74.6409 116.826 74.7089 116.882 74.7831 116.935C74.7954 116.944 74.8109 116.953 74.8263 116.962H74.848L75.0364 117.083L75.1786 117.154C75.2064 117.166 75.2311 117.176 75.2589 117.185L75.3084 117.203C75.3269 117.21 75.3454 117.216 75.364 117.222L75.4629 117.25L75.4289 117.24L75.4381 117.237ZM123.568 72.7166C123.568 72.7166 123.574 72.7197 123.577 72.7228L123.568 72.7166Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M78.2318 136.911L78.102 136.902C78.0248 136.892 77.9475 136.877 77.8733 136.849C77.7405 136.806 77.4933 136.71 76.7331 136.37L76.6003 136.312L76.4921 136.216C76.4334 136.163 76.3778 136.105 76.3253 136.046L76.3005 136.018C76.2573 135.965 76.2171 135.913 76.1769 135.86L76.1182 135.768L75.8896 135.341C75.8556 135.258 75.8339 135.199 75.8185 135.144L75.7443 134.856C75.7289 134.782 75.7196 134.711 75.7103 134.631C75.6887 134.439 75.6887 134.251 75.7165 134.059C75.7227 134.003 75.732 133.948 75.7412 133.895C75.7474 133.846 75.7598 133.796 75.7722 133.747C75.7876 133.679 75.8092 133.611 75.8309 133.549C75.8587 133.466 75.8957 133.382 75.9297 133.302C75.9483 133.259 75.973 133.212 76.0008 133.16C76.0224 133.12 76.0472 133.076 76.0688 133.039C76.1615 132.885 76.2758 132.736 76.4087 132.6C76.5014 132.502 76.6157 132.403 76.7393 132.313C76.8629 132.223 76.9865 132.149 77.1225 132.084C77.2523 132.023 77.3882 131.97 77.5242 131.93C77.5983 131.908 77.6632 131.893 77.7281 131.88L209.566 106.821C209.708 106.793 209.869 106.777 210.042 106.777C210.076 106.777 210.162 106.777 210.271 106.802C210.403 106.83 210.533 106.87 211.355 107.232H212.094V107.819C212.094 107.819 212.097 107.825 212.1 107.828L212.152 107.911L212.363 108.288L212.539 108.845C212.625 109.286 212.588 109.744 212.437 110.17C212.409 110.257 212.375 110.334 212.338 110.408C212.313 110.464 212.285 110.519 212.251 110.575C212.208 110.655 212.159 110.733 212.103 110.807C212.06 110.869 212.013 110.927 211.961 110.986C211.884 111.079 211.809 111.147 211.754 111.199C211.68 111.267 211.605 111.329 211.528 111.385C211.411 111.471 211.284 111.545 211.151 111.61C211.028 111.669 210.901 111.718 210.768 111.758C210.688 111.786 210.607 111.805 210.521 111.823L137.22 125.753L78.7046 136.874C78.6335 136.889 78.5531 136.899 78.4697 136.905C78.3863 136.914 78.3029 136.92 78.2225 136.92L78.2318 136.911ZM77.6849 134.763C78.0464 134.924 78.238 135.004 78.3399 135.045C78.3461 135.045 78.3523 135.045 78.3554 135.045L136.88 123.921L210.196 109.988L210.227 109.979C210.271 109.966 210.314 109.948 210.354 109.929C210.385 109.914 210.416 109.895 210.45 109.87C210.471 109.855 210.487 109.843 210.499 109.83C210.512 109.818 210.53 109.802 210.546 109.787L210.644 109.648L210.691 109.543C210.731 109.435 210.743 109.327 210.725 109.218L210.663 109.042L210.595 108.922C210.227 108.761 210.036 108.681 209.937 108.641C209.931 108.641 209.928 108.641 209.921 108.641L78.102 133.697C78.102 133.697 78.0649 133.704 78.0402 133.713C78.0062 133.722 77.963 133.741 77.9228 133.759C77.8919 133.775 77.861 133.793 77.8301 133.815C77.7868 133.846 77.7621 133.87 77.7497 133.883C77.7065 133.929 77.6787 133.963 77.657 134L77.6138 134.077C77.5983 134.108 77.5922 134.124 77.586 134.139L77.5489 134.309C77.5427 134.346 77.5427 134.386 77.5458 134.414C77.5458 134.433 77.552 134.454 77.5551 134.476L77.5891 134.612L77.6787 134.773L77.6849 134.763ZM77.5334 134.328V134.337C77.5334 134.337 77.5334 134.331 77.5334 134.328ZM77.62 134.071L77.6076 134.096C77.6076 134.096 77.6169 134.081 77.62 134.071ZM210.709 109.518C210.709 109.518 210.709 109.521 210.709 109.524V109.518Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M80.3984 148.282C80.1048 148.282 79.8113 148.229 79.5301 148.127C79.3818 148.075 79.2551 148.007 79.1593 147.958L79.1222 147.936C78.9399 147.828 78.7761 147.701 78.6309 147.559C78.5104 147.441 78.3992 147.312 78.2941 147.16C78.257 147.108 78.2199 147.049 78.189 146.99C78.1643 146.944 78.1396 146.901 78.1211 146.857C78.0932 146.802 78.0654 146.743 78.0407 146.681L78.0284 146.647C77.9758 146.508 77.9357 146.366 77.9078 146.218C77.8491 145.903 77.8461 145.594 77.9017 145.291C77.9264 145.155 77.9604 145.019 78.0098 144.88C78.0654 144.722 78.1303 144.586 78.2076 144.457C78.2477 144.389 78.291 144.317 78.3405 144.25C78.4146 144.141 78.5042 144.042 78.5722 143.971C78.6958 143.845 78.8009 143.755 78.9059 143.678C78.9523 143.644 78.9986 143.613 79.045 143.585L79.0882 143.557C79.1469 143.523 79.2057 143.489 79.2675 143.458C79.3231 143.431 79.3756 143.406 79.4343 143.384C79.4961 143.36 79.561 143.335 79.629 143.313C79.7186 143.285 79.8144 143.261 79.9164 143.239L211.736 118.182C211.946 118.142 212.193 118.12 212.45 118.151C212.589 118.164 212.728 118.188 212.87 118.226C212.941 118.244 213.012 118.269 213.083 118.294C213.414 118.411 213.713 118.599 213.979 118.853C214.1 118.973 214.189 119.078 214.266 119.183C214.3 119.23 214.331 119.276 214.359 119.322L214.387 119.369C214.424 119.428 214.455 119.483 214.483 119.545C214.511 119.601 214.535 119.656 214.56 119.715C214.585 119.777 214.609 119.842 214.631 119.91C214.659 119.999 214.684 120.095 214.705 120.197C214.742 120.379 214.755 120.549 214.749 120.719C214.749 120.762 214.749 120.821 214.742 120.889C214.742 120.951 214.733 121.013 214.721 121.078C214.715 121.115 214.708 121.155 214.699 121.192C214.684 121.272 214.662 121.374 214.619 121.485C214.6 121.547 214.575 121.612 214.548 121.674C214.52 121.739 214.489 121.807 214.455 121.872C214.424 121.93 214.387 121.992 214.353 122.048C214.331 122.082 214.313 122.113 214.291 122.137C214.239 122.215 214.183 122.289 214.118 122.354C214.081 122.397 214.044 122.437 214.004 122.477C213.639 122.842 213.182 123.083 212.681 123.176L80.8742 148.229C80.7167 148.26 80.5591 148.276 80.3984 148.276V148.282ZM80.0616 146.338C80.0956 146.357 80.1265 146.372 80.1605 146.385C80.2439 146.416 80.3706 146.443 80.522 146.416L212.335 121.362C212.471 121.337 212.589 121.275 212.687 121.176L212.783 121.059C212.796 121.041 212.808 121.019 212.817 121C212.827 120.985 212.833 120.963 212.842 120.942L212.885 120.793L212.891 120.698C212.891 120.639 212.891 120.608 212.882 120.565C212.876 120.537 212.867 120.503 212.857 120.472L212.762 120.28C212.746 120.259 212.715 120.225 212.678 120.188C212.619 120.132 212.542 120.083 212.459 120.052C212.434 120.042 212.409 120.033 212.385 120.027C212.335 120.015 212.304 120.008 212.283 120.008L212.221 120.002H212.209C212.159 120.002 212.119 120.008 212.088 120.015L80.2686 145.071C80.2439 145.078 80.2099 145.084 80.179 145.096L79.9874 145.192C79.9658 145.207 79.9318 145.235 79.8947 145.275C79.8947 145.278 79.87 145.3 79.8545 145.325C79.8236 145.368 79.8082 145.399 79.7897 145.427C79.7742 145.452 79.7619 145.476 79.7526 145.507C79.7402 145.544 79.7279 145.584 79.7217 145.628C79.7062 145.711 79.7062 145.791 79.7217 145.872C79.7279 145.912 79.7402 145.952 79.7557 145.995L79.8051 146.094L79.8206 146.116C79.8546 146.165 79.8824 146.202 79.9164 146.233C79.9596 146.277 80.006 146.311 80.0616 146.348V146.338Z",fill:"#8E8E8E"}),c.jsxs("g",{opacity:"0.5",children:[c.jsx("path",{d:"M122.139 71.6511L69.5643 81.6422C67.9682 81.9455 66.9202 83.4853 67.2235 85.0814L73.0691 115.842C73.3724 117.438 74.9122 118.486 76.5083 118.183L129.083 108.191C130.679 107.888 131.727 106.348 131.424 104.752L125.578 73.9918C125.275 72.3957 123.735 71.3478 122.139 71.6511Z",fill:"#DDA74F"}),c.jsx("path",{d:"M137.989 68.6383L198.766 57.0884C200.36 56.7855 201.903 57.8354 202.205 59.4292L202.312 59.9877C202.614 61.5815 201.565 63.124 199.971 63.4269L139.194 74.9768C137.6 75.2796 136.057 74.2297 135.754 72.636L135.648 72.0775C135.345 70.4837 136.395 68.9412 137.989 68.6383Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M202.8 71.19L139.411 83.2379C138.537 83.4047 137.962 84.2483 138.129 85.1228C138.296 85.9972 139.139 86.572 140.014 86.4051L203.402 74.3572C204.277 74.1903 204.851 73.3468 204.684 72.4723C204.518 71.5978 203.674 71.0231 202.8 71.19Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M204.36 79.3941L140.972 91.442C140.097 91.6088 139.523 92.4524 139.689 93.3269C139.856 94.2013 140.7 94.7761 141.574 94.6092L204.963 82.5613C205.837 82.3944 206.412 81.5509 206.245 80.6764C206.078 79.8019 205.235 79.2272 204.36 79.3941Z",fill:"#E8C48A"}),c.jsx("path",{d:"M209.744 107.742L77.9318 132.791C77.0566 132.957 76.482 133.801 76.6483 134.676C76.8146 135.552 77.6589 136.126 78.5341 135.96L210.346 110.911C211.221 110.744 211.796 109.9 211.629 109.025C211.463 108.15 210.619 107.575 209.744 107.742Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M211.909 119.103L80.0988 144.157C79.2243 144.324 78.6496 145.167 78.8164 146.042C78.9833 146.916 79.8268 147.491 80.7013 147.324L212.511 122.27C213.386 122.103 213.961 121.26 213.794 120.385C213.627 119.511 212.783 118.936 211.909 119.103Z",fill:"#8E8E8E"})]}),c.jsx("path",{d:"M83.5622 171.955C83.1265 171.955 82.7372 171.646 82.6537 171.201C82.5579 170.697 82.8886 170.212 83.3922 170.116L126.059 162.005C126.56 161.909 127.048 162.24 127.144 162.743C127.239 163.247 126.909 163.732 126.405 163.828L83.7383 171.939C83.6796 171.952 83.6209 171.955 83.5653 171.955H83.5622Z",fill:"#DDA74F"}),c.jsx("path",{d:"M86.485 187.334C86.0493 187.334 85.66 187.025 85.5766 186.58C85.4808 186.076 85.8114 185.591 86.3151 185.495L128.982 177.384C129.482 177.288 129.971 177.619 130.066 178.122C130.162 178.626 129.832 179.111 129.328 179.207L86.6612 187.318C86.6025 187.33 86.5437 187.334 86.4881 187.334H86.485Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M89.4089 202.715C88.9732 202.715 88.5838 202.406 88.5004 201.961C88.4046 201.458 88.7352 200.973 89.2389 200.877L131.906 192.766C132.406 192.67 132.894 193 132.99 193.504C133.086 194.008 132.755 194.493 132.252 194.589L89.585 202.7C89.5263 202.712 89.4676 202.715 89.4119 202.715H89.4089Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M92.3317 218.098C91.896 218.098 91.5067 217.789 91.4233 217.344C91.3275 216.841 91.6581 216.355 92.1618 216.26L134.828 208.148C135.332 208.053 135.817 208.383 135.913 208.887C136.009 209.391 135.678 209.876 135.175 209.971L92.5078 218.083C92.4491 218.095 92.3904 218.098 92.3348 218.098H92.3317Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.5",d:"M237.589 150.189C237.194 149.701 236.792 149.222 236.381 148.752C234.305 146.366 232.049 144.219 229.654 142.319C216.284 131.683 198.513 128.543 182.504 133.549C176.503 135.425 170.753 138.444 165.577 142.64C143.604 160.441 140.223 192.682 158.022 214.652C169.903 229.314 188.208 235.695 205.605 233.032C211.318 232.154 216.926 230.303 222.186 227.451C224.911 225.977 227.541 224.228 230.037 222.201C230.754 221.62 231.453 221.021 232.129 220.412C233.81 218.898 235.364 217.294 236.798 215.616C238.964 213.08 240.849 210.373 242.441 207.527C243.874 204.974 245.076 202.323 246.04 199.595C251.813 183.348 249.239 164.567 237.589 150.189ZM231.351 195.844C229.92 199.425 227.905 202.811 225.316 205.843C223.904 207.511 222.309 209.066 220.551 210.493C218.787 211.924 216.933 213.16 215.008 214.198C200.009 222.343 180.866 218.907 169.733 205.166C157.169 189.66 159.554 166.912 175.06 154.348C190.566 141.787 213.314 144.173 225.878 159.678C227.717 161.943 229.231 164.366 230.433 166.89C234.818 176.086 235.034 186.62 231.351 195.844Z",fill:"#787878"}),c.jsx("path",{d:"M197.843 234.549C191.57 234.549 185.313 233.424 179.417 231.209C170.787 227.964 163.136 222.443 157.299 215.24C139.207 192.905 142.656 160.015 164.99 141.923C170.147 137.746 175.944 134.631 182.226 132.669C198.758 127.499 216.701 130.836 230.229 141.596C232.695 143.555 234.997 145.758 237.077 148.147C237.509 148.638 237.923 149.132 238.31 149.611C244.032 156.675 247.818 165.123 249.261 174.047C250.66 182.702 249.848 191.645 246.912 199.91C245.93 202.688 244.697 205.407 243.244 207.988C241.613 210.898 239.678 213.67 237.497 216.225C236.017 217.959 234.416 219.603 232.744 221.108C232.065 221.723 231.348 222.334 230.616 222.931C228.11 224.961 225.421 226.759 222.622 228.273C217.35 231.135 211.671 233.047 205.741 233.956C203.121 234.358 200.479 234.555 197.84 234.555L197.843 234.549ZM197.834 132.131C192.797 132.131 187.723 132.888 182.779 134.436C176.723 136.33 171.13 139.334 166.158 143.363C144.618 160.812 141.29 192.534 158.739 214.072C169.943 227.899 187.85 234.815 205.463 232.117C211.179 231.24 216.658 229.395 221.744 226.639C224.445 225.177 227.037 223.444 229.454 221.485C230.161 220.91 230.853 220.32 231.508 219.726C233.121 218.271 234.663 216.689 236.094 215.014C238.198 212.551 240.062 209.882 241.634 207.073C243.034 204.585 244.224 201.965 245.169 199.286C251.087 182.625 247.984 164.49 236.87 150.773C236.499 150.313 236.1 149.84 235.686 149.364C233.678 147.059 231.456 144.933 229.08 143.045C220.079 135.885 209.047 132.131 197.837 132.131H197.834Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M197.833 219.491C186.953 219.491 176.259 214.693 169.013 205.747C162.78 198.056 159.916 188.4 160.948 178.555C161.98 168.71 166.785 159.858 174.476 153.625C190.352 140.764 213.734 143.215 226.598 159.091C228.443 161.369 230.016 163.856 231.27 166.489C235.698 175.771 236.041 186.595 232.213 196.187C230.714 199.941 228.631 203.389 226.023 206.442C224.577 208.151 222.93 209.755 221.135 211.21C219.346 212.663 217.43 213.942 215.446 215.011C209.881 218.033 203.828 219.491 197.833 219.491ZM197.768 147.232C189.982 147.232 182.148 149.793 175.641 155.065C168.333 160.985 163.772 169.396 162.79 178.747C161.81 188.097 164.529 197.271 170.45 204.579C181.129 217.761 199.681 221.463 214.559 213.383C216.444 212.366 218.261 211.152 219.961 209.77C221.666 208.386 223.23 206.863 224.605 205.24C227.083 202.339 229.061 199.063 230.485 195.498C234.122 186.388 233.798 176.105 229.592 167.286C228.403 164.786 226.907 162.422 225.155 160.259C218.209 151.685 208.027 147.232 197.765 147.232H197.768Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M231.351 195.844C229.92 199.425 227.905 202.812 225.316 205.843C223.904 207.512 222.309 209.066 220.551 210.493C218.787 211.924 216.933 213.16 215.008 214.198C200.009 222.344 180.866 218.907 169.733 205.166C157.169 189.661 159.554 166.912 175.06 154.348C190.566 141.787 213.314 144.173 225.878 159.678C227.717 161.943 229.231 164.366 230.433 166.89C234.818 176.086 235.034 186.62 231.351 195.844Z",fill:"#292E2E"}),c.jsx("path",{d:"M247.264 228.53L232.763 240.278L232.655 240.371L226.123 232.306L222.189 227.452C224.914 225.978 227.544 224.229 230.041 222.202C230.758 221.621 231.456 221.022 232.133 220.413C233.814 218.899 235.368 217.295 236.802 215.617L245.692 226.587L247.267 228.533L247.264 228.53Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.75",d:"M276.974 264.97L262.139 276.991C260.381 278.418 257.795 278.149 256.364 276.385L232.76 247.249L231.935 246.23C230.507 244.465 230.779 241.882 232.54 240.454L232.652 240.365L232.76 240.275L247.261 228.524L247.372 228.431C249.13 227.004 251.72 227.272 253.147 229.037L277.577 259.189C279.008 260.953 278.733 263.537 276.971 264.964L276.974 264.97Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M259.559 278.832C258.091 278.832 256.639 278.196 255.644 276.972L231.214 246.817C229.469 244.66 229.802 241.483 231.956 239.737L232.175 239.561L246.788 227.72C247.836 226.871 249.149 226.481 250.487 226.623C251.825 226.766 253.027 227.418 253.87 228.462L278.3 258.614C279.147 259.659 279.536 260.972 279.394 262.31C279.252 263.648 278.6 264.847 277.558 265.693L262.723 277.713C261.793 278.467 260.675 278.835 259.559 278.835V278.832ZM249.955 228.45C249.229 228.45 248.531 228.697 247.959 229.16L247.851 229.25L233.115 241.187C231.764 242.28 231.554 244.289 232.658 245.652L257.087 275.804C258.19 277.163 260.199 277.377 261.558 276.27L276.393 264.25C277.052 263.716 277.466 262.956 277.552 262.112C277.642 261.269 277.395 260.44 276.86 259.779L252.43 229.627C251.896 228.969 251.139 228.555 250.292 228.468C250.178 228.456 250.067 228.45 249.952 228.45H249.955Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M212.246 199.373C212.051 199.428 211.856 199.453 211.662 199.453C210.701 199.453 209.823 198.817 209.548 197.843C209.483 197.611 207.583 191.679 198.084 191.679C188.585 191.679 186.126 197.741 186.027 197.998C185.613 199.122 184.361 199.716 183.234 199.314C182.099 198.912 181.497 197.683 181.892 196.545C182.004 196.221 184.374 189.664 193.134 187.791C194.599 187.473 196.242 187.294 198.084 187.294C199.926 187.294 201.57 187.479 203.022 187.791C211.742 189.689 213.685 196.348 213.781 196.678C214.1 197.846 213.417 199.054 212.249 199.373H212.246Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M217.955 171.547C217.955 175.02 215.137 177.838 211.664 177.838C208.191 177.838 205.367 175.02 205.367 171.547C205.367 168.074 208.185 165.253 211.664 165.253C215.143 165.253 217.955 168.068 217.955 171.547Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M190.26 171.547C190.26 175.02 187.442 177.838 183.963 177.838C180.483 177.838 177.671 175.02 177.671 171.547C177.671 168.074 180.489 165.253 183.963 165.253C187.436 165.253 190.26 168.068 190.26 171.547Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M67.176 187.333C66.9628 187.333 66.7496 187.262 66.5765 187.114C66.4869 187.037 64.3208 185.192 61.1351 181.901C60.7797 181.533 60.789 180.946 61.1567 180.591C61.5244 180.236 62.1115 180.245 62.4668 180.613C65.5816 183.832 67.7538 185.683 67.7755 185.702C68.1648 186.032 68.2142 186.62 67.8805 187.009C67.6982 187.225 67.4356 187.336 67.1729 187.336L67.176 187.333ZM56.8122 176.682C56.5495 176.682 56.2899 176.571 56.1045 176.355C54.473 174.436 52.9033 172.464 51.4417 170.496C51.1358 170.085 51.2223 169.504 51.6333 169.198C52.0443 168.892 52.6252 168.979 52.9311 169.39C54.368 171.324 55.9099 173.265 57.5167 175.15C57.8473 175.539 57.8009 176.126 57.4116 176.457C57.2386 176.605 57.0223 176.676 56.8122 176.676V176.682ZM47.984 164.758C47.6781 164.758 47.3753 164.606 47.1992 164.325C45.8334 162.165 44.5727 159.981 43.4541 157.827C43.2192 157.373 43.3954 156.813 43.8496 156.579C44.3038 156.344 44.8631 156.52 45.098 156.974C46.1918 159.082 47.4247 161.22 48.7627 163.333C49.0377 163.766 48.9079 164.338 48.4753 164.613C48.3208 164.711 48.1509 164.758 47.9809 164.758H47.984ZM41.1891 151.585C40.8214 151.585 40.4722 151.363 40.327 150.998C39.3784 148.609 38.5873 146.205 37.9693 143.857C37.8396 143.363 38.1362 142.856 38.6306 142.726C39.125 142.596 39.6317 142.893 39.7615 143.387C40.361 145.665 41.1304 147.995 42.0512 150.315C42.2397 150.791 42.008 151.329 41.5321 151.517C41.4209 151.56 41.3034 151.582 41.1922 151.582L41.1891 151.585ZM37.478 137.272C37.0145 137.272 36.6128 136.923 36.5572 136.453C36.344 134.618 36.2358 132.776 36.2358 130.981C36.2358 130.82 36.2358 130.66 36.2358 130.496C36.242 129.964 36.2606 129.424 36.2915 128.892C36.3224 128.382 36.7611 127.99 37.271 128.021C37.7808 128.052 38.1733 128.49 38.1424 129C38.1115 129.504 38.096 130.014 38.0898 130.514C38.0898 130.669 38.0898 130.823 38.0898 130.981C38.0898 132.708 38.1949 134.476 38.3988 136.24C38.4575 136.75 38.0929 137.207 37.5862 137.269C37.5491 137.272 37.5151 137.275 37.478 137.275V137.272ZM38.5008 122.582C38.4143 122.582 38.3247 122.57 38.2382 122.545C37.7468 122.4 37.4657 121.884 37.6109 121.393C38.3247 118.97 39.3166 116.613 40.5587 114.382C40.809 113.934 41.3714 113.773 41.8195 114.023C42.2675 114.273 42.4282 114.836 42.1779 115.284C41.0037 117.394 40.0643 119.625 39.3876 121.918C39.2671 122.323 38.8994 122.582 38.4977 122.582H38.5008ZM71.0261 115.407C70.6121 115.407 70.2104 115.37 69.8303 115.293C68.5356 115.034 67.3243 114.329 66.3263 113.254C65.9771 112.877 66.0018 112.293 66.3757 111.944C66.7527 111.594 67.3367 111.619 67.6859 111.993C68.4244 112.79 69.2679 113.291 70.1918 113.473C70.4514 113.526 70.7326 113.55 71.0231 113.55C71.7677 113.55 72.5959 113.383 73.4889 113.059C73.9709 112.883 74.5024 113.13 74.6785 113.609C74.8547 114.091 74.6075 114.623 74.1285 114.799C73.0316 115.2 71.9871 115.404 71.0261 115.404V115.407ZM79.8635 110.677C79.638 110.677 79.4124 110.593 79.2332 110.429C78.8593 110.08 78.8377 109.493 79.1837 109.119C81.0099 107.151 82.1007 104.994 82.1749 103.199C82.1965 102.686 82.626 102.293 83.139 102.312C83.6519 102.334 84.0474 102.766 84.0258 103.276C83.9331 105.538 82.694 108.059 80.5403 110.38C80.3579 110.578 80.1107 110.677 79.8605 110.677H79.8635ZM45.6449 109.719C45.4255 109.719 45.2092 109.641 45.0331 109.487C44.6499 109.147 44.6128 108.563 44.9527 108.18C46.5781 106.341 48.4012 104.664 50.3695 103.196L50.5642 103.054C50.9751 102.751 51.5561 102.84 51.8589 103.254C52.1617 103.669 52.0721 104.246 51.658 104.549L51.4757 104.685C49.6094 106.076 47.8821 107.667 46.3401 109.41C46.1578 109.617 45.9014 109.722 45.6449 109.722V109.719ZM64.5341 106.721C64.0366 106.721 63.6256 106.326 63.6071 105.825C63.6009 105.671 63.6009 105.516 63.6009 105.365C63.6009 102.856 64.3023 100.47 65.6897 98.2765C65.9616 97.8439 66.5364 97.7141 66.969 97.986C67.4016 98.2579 67.5314 98.8327 67.2594 99.2653C66.0636 101.159 65.458 103.211 65.458 105.365C65.458 105.498 65.458 105.631 65.4641 105.764C65.4827 106.276 65.081 106.703 64.568 106.721C64.5588 106.721 64.5464 106.721 64.5371 106.721H64.5341ZM162.363 104.988C160.114 104.988 157.88 104.901 155.723 104.735C155.213 104.694 154.83 104.249 154.87 103.74C154.91 103.23 155.349 102.847 155.865 102.887C158.238 103.072 160.704 103.153 163.192 103.131H163.201C163.708 103.131 164.122 103.542 164.128 104.049C164.131 104.562 163.72 104.979 163.21 104.985C162.929 104.985 162.645 104.988 162.363 104.988ZM170.604 104.623C170.129 104.623 169.724 104.259 169.681 103.777C169.637 103.267 170.014 102.819 170.524 102.772C172.916 102.565 175.372 102.266 177.82 101.879C178.326 101.802 178.799 102.145 178.88 102.652C178.96 103.159 178.614 103.631 178.107 103.712C175.616 104.104 173.12 104.41 170.682 104.62C170.654 104.62 170.626 104.623 170.601 104.623H170.604ZM148.443 103.798C148.387 103.798 148.335 103.792 148.279 103.783C147.068 103.563 145.863 103.313 144.692 103.038C143.474 102.751 142.22 102.402 140.965 102.006C140.477 101.852 140.205 101.332 140.36 100.844C140.514 100.356 141.033 100.084 141.521 100.239C142.733 100.622 143.944 100.956 145.118 101.234C146.255 101.502 147.429 101.747 148.607 101.96C149.11 102.049 149.444 102.531 149.355 103.035C149.274 103.483 148.885 103.798 148.443 103.798ZM185.251 102.334C184.828 102.334 184.445 102.04 184.349 101.611C184.238 101.11 184.553 100.616 185.05 100.504C187.42 99.9729 189.818 99.358 192.179 98.6751C192.67 98.533 193.186 98.8172 193.328 99.3085C193.47 99.7999 193.186 100.313 192.695 100.458C190.297 101.153 187.862 101.777 185.455 102.315C185.387 102.331 185.319 102.337 185.251 102.337V102.334ZM57.5012 100.971C57.1551 100.971 56.8214 100.776 56.6638 100.443C56.4444 99.9791 56.6391 99.426 57.1026 99.2066C59.451 98.088 61.8365 97.1919 64.188 96.5399C64.6824 96.4039 65.1922 96.6913 65.3282 97.1857C65.4641 97.6801 65.1768 98.19 64.6824 98.3259C62.4329 98.9501 60.1524 99.8091 57.8967 100.878C57.767 100.94 57.6341 100.968 57.4981 100.968L57.5012 100.971ZM134.316 99.4167C134.192 99.4167 134.065 99.392 133.945 99.3394C131.528 98.2858 129.18 97.1394 127.199 96.1567C126.742 95.9281 126.553 95.3719 126.782 94.9146C127.011 94.4572 127.567 94.2688 128.024 94.4974C129.983 95.4708 132.307 96.6048 134.686 97.643C135.156 97.847 135.369 98.3939 135.165 98.8636C135.014 99.2127 134.674 99.4198 134.316 99.4198V99.4167ZM78.9644 98.5948C78.8315 98.5948 78.6986 98.5669 78.5688 98.5051C76.7519 97.6492 74.5889 97.2135 72.1385 97.2135C72.0119 97.2135 71.8852 97.2135 71.7585 97.2166C71.2394 97.2321 70.8253 96.818 70.816 96.3082C70.8068 95.7983 71.2146 95.375 71.7245 95.3657C71.8635 95.3657 72.0026 95.3626 72.1385 95.3626C74.8639 95.3626 77.2927 95.857 79.3568 96.8304C79.8203 97.0498 80.0181 97.6029 79.7987 98.0633C79.6411 98.397 79.3073 98.5948 78.9613 98.5948H78.9644ZM199.496 98.2147C199.116 98.2147 198.757 97.9768 198.622 97.5967C198.452 97.1146 198.702 96.5832 199.184 96.4132C201.498 95.5913 203.807 94.6921 206.041 93.7404C206.51 93.5395 207.057 93.7589 207.258 94.2317C207.459 94.7014 207.24 95.2483 206.767 95.446C204.496 96.4132 202.153 97.3248 199.805 98.1591C199.703 98.1961 199.598 98.2116 199.496 98.2116V98.2147ZM71.6534 94.4542C71.363 94.4542 71.0787 94.3182 70.8964 94.0617C70.5997 93.6446 70.6986 93.0667 71.1158 92.7701C73.0068 91.429 75.2502 90.1992 77.7809 89.1146C78.2506 88.9138 78.7975 89.1301 78.9983 89.6028C79.1992 90.0725 78.9829 90.6195 78.5101 90.8203C76.0968 91.8555 73.9709 93.0204 72.1849 94.2842C72.0211 94.3985 71.8357 94.4542 71.6503 94.4542H71.6534ZM120.967 92.9555C120.831 92.9555 120.695 92.9246 120.565 92.8628C117.976 91.6144 115.844 90.6658 113.854 89.884C113.378 89.6956 113.143 89.1579 113.331 88.682C113.52 88.2062 114.057 87.9713 114.533 88.1598C116.567 88.9601 118.739 89.9242 121.372 91.1942C121.832 91.4167 122.027 91.9698 121.804 92.4333C121.643 92.7639 121.313 92.9586 120.97 92.9586L120.967 92.9555ZM213.135 92.4024C212.795 92.4024 212.468 92.217 212.307 91.8925C212.078 91.4352 212.261 90.879 212.718 90.6473C214.94 89.5318 217.109 88.3452 219.17 87.1247C219.612 86.862 220.177 87.0073 220.44 87.4491C220.703 87.891 220.557 88.4596 220.116 88.7191C218.017 89.9613 215.808 91.1695 213.549 92.3035C213.416 92.3715 213.274 92.4024 213.132 92.4024H213.135ZM85.1598 88.4719C84.7519 88.4719 84.378 88.2 84.2668 87.789C84.1308 87.2946 84.4244 86.7848 84.9157 86.6519C87.3599 85.9845 89.9122 85.453 92.2946 85.1162C92.8014 85.042 93.2711 85.3974 93.3421 85.9041C93.4132 86.4109 93.0609 86.8806 92.5542 86.9516C90.2459 87.2792 87.7739 87.7952 85.4039 88.441C85.3236 88.4626 85.2402 88.475 85.1598 88.475V88.4719ZM107.142 87.6809C107.071 87.6809 106.997 87.6716 106.923 87.6562C104.478 87.066 102.139 86.7199 99.7693 86.6025C99.2595 86.5777 98.864 86.1421 98.8918 85.6291C98.9165 85.1193 99.3491 84.7268 99.8651 84.7516C102.349 84.8782 104.803 85.2398 107.358 85.8547C107.856 85.9752 108.162 86.4758 108.041 86.9733C107.939 87.3966 107.559 87.684 107.142 87.684V87.6809ZM225.851 84.7948C225.563 84.7948 225.282 84.6619 225.1 84.4147C224.797 84.0007 224.89 83.4198 225.304 83.12C227.389 81.5998 229.265 80.0269 230.881 78.448C231.246 78.0895 231.833 78.0957 232.191 78.4603C232.55 78.8249 232.544 79.412 232.179 79.7705C230.501 81.4144 228.554 83.0459 226.398 84.6187C226.234 84.7392 226.042 84.7979 225.854 84.7979L225.851 84.7948ZM236.279 74.3599C236.103 74.3599 235.924 74.3104 235.766 74.2054C235.34 73.9211 235.223 73.3464 235.507 72.9199C236.122 71.996 236.678 71.0443 237.16 70.0895C237.392 69.6322 237.951 69.4499 238.405 69.6816C238.863 69.9134 239.045 70.4696 238.813 70.9269C238.297 71.9466 237.704 72.9601 237.052 73.9458C236.873 74.2147 236.579 74.3599 236.279 74.3599Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M249.483 53.4594C248.435 53.5799 247.32 53.9538 246.22 54.5533C245.052 54.3215 243.773 54.1979 242.422 54.2041C240.497 54.2134 238.702 54.4915 237.2 54.9611C235.077 52.6127 234.194 50.1716 235.176 48.7039C236.588 46.5872 241.344 47.2794 245.793 50.2489C247.261 51.2315 248.516 52.3408 249.483 53.4563V53.4594Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M251.782 65.7882C248.408 69.938 243.519 71.551 240.868 69.3942C239.289 68.1087 238.863 65.7727 239.49 63.2173C240.426 63.3594 241.43 63.4305 242.472 63.4274C247.824 63.3965 252.153 61.3107 252.14 58.7646C252.137 58.2362 251.952 57.7325 251.609 57.2659C250.707 56.033 248.735 55.0504 246.223 54.5529C247.323 53.9504 248.439 53.5796 249.486 53.4591H249.489C250.873 53.3015 252.134 53.5827 253.101 54.3706C255.753 56.5274 255.162 61.6383 251.782 65.7912V65.7882Z",fill:"#DDA74F"}),c.jsx("path",{opacity:"0.5",d:"M252.138 58.7683C252.15 61.3145 247.821 63.4033 242.469 63.4312C241.431 63.4342 240.424 63.3632 239.487 63.221C235.588 62.6463 232.767 60.919 232.757 58.8672C232.748 57.2357 234.519 55.7958 237.198 54.9646C238.699 54.498 240.495 54.2168 242.42 54.2075C243.767 54.1982 245.049 54.3249 246.217 54.5567C248.73 55.0542 250.701 56.0368 251.603 57.2697C251.946 57.7363 252.132 58.24 252.135 58.7683H252.138Z",fill:"#8E8E8E"}),c.jsx("path",{d:"M242.388 64.3576C241.343 64.3576 240.324 64.2834 239.353 64.1351C234.799 63.4615 231.848 61.3943 231.835 58.8667C231.826 56.8613 233.73 55.0691 236.928 54.0741C238.575 53.5611 240.475 53.2861 242.422 53.2769C243.806 53.2676 245.138 53.3912 246.402 53.6415C249.195 54.1946 251.309 55.2884 252.356 56.716C252.823 57.3526 253.061 58.0385 253.067 58.7554C253.082 61.9134 248.531 64.3205 242.477 64.3545C242.447 64.3545 242.419 64.3545 242.388 64.3545V64.3576ZM242.558 55.1309C242.515 55.1309 242.474 55.1309 242.431 55.1309C240.664 55.1401 238.952 55.3842 237.478 55.8446C235.17 56.5615 233.683 57.745 233.689 58.8574C233.696 60.3468 236.192 61.7929 239.628 62.2997C240.537 62.4356 241.495 62.5067 242.471 62.5005C247.635 62.4727 251.222 60.5105 251.216 58.7678C251.216 58.4433 251.099 58.1312 250.864 57.813C250.113 56.7902 248.314 55.9095 246.046 55.4584C244.94 55.239 243.769 55.1278 242.561 55.1278L242.558 55.1309Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M82.8828 243.652L82.9106 243.803L82.8828 243.649L82.2153 240.142L82.8828 243.652Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M127.691 251.012L97.5415 256.744C95.9223 257.053 94.3155 257.019 92.7983 256.695C94.3155 257.019 95.9192 257.056 97.5384 256.747L127.691 251.015V251.012Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M167.542 141.119C166.878 141.607 166.223 142.114 165.574 142.636C166.22 142.111 166.878 141.607 167.542 141.119Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M220.128 63.2759L219.708 61.0635L220.128 63.2728L221.571 70.865L220.128 63.2759Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M236.721 237.07L232.759 240.278V240.281L236.721 237.07Z",fill:"#8E8E8E"}),c.jsx("path",{opacity:"0.25",d:"M37.9912 180.733L46.7977 127.106C39.7587 127.792 33.4396 130.743 28.6965 135.165C23.2581 140.239 19.8931 147.253 19.8931 154.997C19.8931 166.519 27.34 176.417 37.9881 180.73L37.9912 180.733Z",fill:"#8E8E8E"})]}),c.jsx("h2",{className:"text-4xl font-bold mt-4 text-white",children:e}),c.jsx("h4",{className:"text-lg text-neutral-400 mt-3",children:t}),n&&c.jsx(c.Fragment,{children:c.jsx(tt,{to:"/",children:c.jsx(st,{className:"btn-primary mt-4",children:"Back to Home"})})})]})})}var Su="Tabs",[nW,$K]=Jn(Su,[hu]),Fw=hu(),[rW,O8]=nW(Su),Bw=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,onValueChange:s,defaultValue:l,orientation:u="horizontal",dir:d,activationMode:h="automatic",...m}=e,p=lu(d),[C,v]=Na({prop:i,onChange:s,defaultProp:l??"",caller:Su});return c.jsx(rW,{scope:n,baseId:Qt(),value:C,onValueChange:v,orientation:u,dir:p,activationMode:h,children:c.jsx(Re.div,{dir:p,"data-orientation":u,...m,ref:t})})});Bw.displayName=Su;var Uw="TabsList",Hw=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:i=!0,...s}=e,l=O8(Uw,n),u=Fw(n);return c.jsx(ab,{asChild:!0,...u,orientation:l.orientation,dir:l.dir,loop:i,children:c.jsx(Re.div,{role:"tablist","aria-orientation":l.orientation,...s,ref:t})})});Hw.displayName=Uw;var Iw="TabsTrigger",Zw=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,disabled:s=!1,...l}=e,u=O8(Iw,n),d=Fw(n),h=$w(u.baseId,i),m=Ww(u.baseId,i),p=i===u.value;return c.jsx(sb,{asChild:!0,...d,focusable:!s,active:p,children:c.jsx(Re.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":m,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:h,...l,ref:t,onMouseDown:Ne(e.onMouseDown,C=>{!s&&C.button===0&&C.ctrlKey===!1?u.onValueChange(i):C.preventDefault()}),onKeyDown:Ne(e.onKeyDown,C=>{[" ","Enter"].includes(C.key)&&u.onValueChange(i)}),onFocus:Ne(e.onFocus,()=>{const C=u.activationMode!=="manual";!p&&!s&&C&&u.onValueChange(i)})})})});Zw.displayName=Iw;var Gw="TabsContent",Yw=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,forceMount:s,children:l,...u}=e,d=O8(Gw,n),h=$w(d.baseId,i),m=Ww(d.baseId,i),p=i===d.value,C=y.useRef(p);return y.useEffect(()=>{const v=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(v)},[]),c.jsx(Cr,{present:s||p,children:({present:v})=>c.jsx(Re.div,{"data-state":p?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":h,hidden:!v,id:m,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:C.current?"0s":void 0},children:v&&l})})});Yw.displayName=Gw;function $w(e,t){return`${e}-trigger-${t}`}function Ww(e,t){return`${e}-content-${t}`}var iW=Bw,aW=Hw,sW=Zw,oW=Yw;function qw({className:e,...t}){return c.jsx(iW,{"data-slot":"tabs",className:Ue("flex flex-col gap-2",e),...t})}function Kw({className:e,...t}){return c.jsx(aW,{"data-slot":"tabs-list",className:Ue("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function O1({className:e,...t}){return c.jsx(sW,{"data-slot":"tabs-trigger",className:Ue("data-[state=active]:border-main-400 data-[state=active]:bg-main-400 data-[state=active]:text-white data-[state=active]:font-bold dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5   px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50  [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 rounded-2xl",e),...t})}function _1({className:e,...t}){return c.jsx(oW,{"data-slot":"tabs-content",className:Ue("flex-1 outline-none",e),...t})}function lW({course:e}){var t,n,i,s,l,u;return e?c.jsxs("div",{children:[c.jsxs("ul",{className:"space-y-3 border-b border-neutral-600 pb-4",children:[c.jsx("h5",{className:"md:text-2xl text-xl font-bold mb-3",children:"Course details"}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{size:20,icon:y_}),c.jsxs("span",{className:"font-light",children:[e==null?void 0:e.duration,"/ ",(t=e==null?void 0:e.details)==null?void 0:t.lessonsCount," lessons"]})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{size:20,icon:v_}),c.jsxs("span",{className:"font-light",children:["Last updated: ",(n=e==null?void 0:e.details)==null?void 0:n.lastUpdated]})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{size:20,icon:L_}),c.jsxs("span",{className:"font-light",children:[(i=e==null?void 0:e.details)==null?void 0:i.resourcesCount," learning resources"]})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{size:20,icon:S_}),c.jsxs("span",{className:"font-light",children:[(s=e==null?void 0:e.details)==null?void 0:s.articlesCount," Learn Articles"]})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{size:20,icon:D_}),c.jsxs("span",{className:"font-light",children:[(l=e==null?void 0:e.details)==null?void 0:l.examsCount," Exams"]})]})]}),(e==null?void 0:e.requirements.length)>0&&c.jsxs("ul",{className:"space-y-1 border-b border-neutral-600 pb-4 pt-8",children:[c.jsx("h5",{className:"md:text-2xl text-xl font-bold mb-3",children:"Course requirements and prerequisites"}),(u=e==null?void 0:e.requirements)==null?void 0:u.map((d,h)=>c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{icon:Ix,size:20,className:"text-green-600"}),c.jsx("span",{className:"font-light",children:d})]},h))]}),c.jsxs("div",{className:"space-y-1  pt-8",children:[c.jsx("h5",{className:"md:text-2xl text-xl font-bold mb-3",children:"About this course"}),c.jsx("p",{children:e==null?void 0:e.description})]})]}):c.jsx("h1",{className:"text-center text-2xl font-bold text-main-300",children:"Course requirements is unavailable"})}var pc={exports:{}},cW=pc.exports,vg;function uW(){return vg||(vg=1,function(e,t){(function(n,i){e.exports=i()})(cW,function(){var n=1e3,i=6e4,s=36e5,l="millisecond",u="second",d="minute",h="hour",m="day",p="week",C="month",v="quarter",w="year",b="date",S="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ie){var J=["th","st","nd","rd"],_=ie%100;return"["+ie+(J[(_-20)%10]||J[_]||J[0])+"]"}},L=function(ie,J,_){var U=String(ie);return!U||U.length>=J?ie:""+Array(J+1-U.length).join(_)+ie},D={s:L,z:function(ie){var J=-ie.utcOffset(),_=Math.abs(J),U=Math.floor(_/60),V=_%60;return(J<=0?"+":"-")+L(U,2,"0")+":"+L(V,2,"0")},m:function ie(J,_){if(J.date()<_.date())return-ie(_,J);var U=12*(_.year()-J.year())+(_.month()-J.month()),V=J.clone().add(U,C),q=_-V<0,R=J.clone().add(U+(q?-1:1),C);return+(-(U+(_-V)/(q?V-R:R-V))||0)},a:function(ie){return ie<0?Math.ceil(ie)||0:Math.floor(ie)},p:function(ie){return{M:C,y:w,w:p,d:m,D:b,h,m:d,s:u,ms:l,Q:v}[ie]||String(ie||"").toLowerCase().replace(/s$/,"")},u:function(ie){return ie===void 0}},M="en",k={};k[M]=T;var O="$isDayjsObject",z=function(ie){return ie instanceof le||!(!ie||!ie[O])},I=function ie(J,_,U){var V;if(!J)return M;if(typeof J=="string"){var q=J.toLowerCase();k[q]&&(V=q),_&&(k[q]=_,V=q);var R=J.split("-");if(!V&&R.length>1)return ie(R[0])}else{var Z=J.name;k[Z]=J,V=Z}return!U&&V&&(M=V),V||!U&&M},ne=function(ie,J){if(z(ie))return ie.clone();var _=typeof J=="object"?J:{};return _.date=ie,_.args=arguments,new le(_)},Q=D;Q.l=I,Q.i=z,Q.w=function(ie,J){return ne(ie,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var le=function(){function ie(_){this.$L=I(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[O]=!0}var J=ie.prototype;return J.parse=function(_){this.$d=function(U){var V=U.date,q=U.utc;if(V===null)return new Date(NaN);if(Q.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var R=V.match(E);if(R){var Z=R[2]-1||0,F=(R[7]||"0").substring(0,3);return q?new Date(Date.UTC(R[1],Z,R[3]||1,R[4]||0,R[5]||0,R[6]||0,F)):new Date(R[1],Z,R[3]||1,R[4]||0,R[5]||0,R[6]||0,F)}}return new Date(V)}(_),this.init()},J.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},J.$utils=function(){return Q},J.isValid=function(){return this.$d.toString()!==S},J.isSame=function(_,U){var V=ne(_);return this.startOf(U)<=V&&V<=this.endOf(U)},J.isAfter=function(_,U){return ne(_)<this.startOf(U)},J.isBefore=function(_,U){return this.endOf(U)<ne(_)},J.$g=function(_,U,V){return Q.u(_)?this[U]:this.set(V,_)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(_,U){var V=this,q=!!Q.u(U)||U,R=Q.p(_),Z=function(be,Ve){var lt=Q.w(V.$u?Date.UTC(V.$y,Ve,be):new Date(V.$y,Ve,be),V);return q?lt:lt.endOf(m)},F=function(be,Ve){return Q.w(V.toDate()[be].apply(V.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(Ve)),V)},G=this.$W,ee=this.$M,se=this.$D,ce="set"+(this.$u?"UTC":"");switch(R){case w:return q?Z(1,0):Z(31,11);case C:return q?Z(1,ee):Z(0,ee+1);case p:var de=this.$locale().weekStart||0,ye=(G<de?G+7:G)-de;return Z(q?se-ye:se+(6-ye),ee);case m:case b:return F(ce+"Hours",0);case h:return F(ce+"Minutes",1);case d:return F(ce+"Seconds",2);case u:return F(ce+"Milliseconds",3);default:return this.clone()}},J.endOf=function(_){return this.startOf(_,!1)},J.$set=function(_,U){var V,q=Q.p(_),R="set"+(this.$u?"UTC":""),Z=(V={},V[m]=R+"Date",V[b]=R+"Date",V[C]=R+"Month",V[w]=R+"FullYear",V[h]=R+"Hours",V[d]=R+"Minutes",V[u]=R+"Seconds",V[l]=R+"Milliseconds",V)[q],F=q===m?this.$D+(U-this.$W):U;if(q===C||q===w){var G=this.clone().set(b,1);G.$d[Z](F),G.init(),this.$d=G.set(b,Math.min(this.$D,G.daysInMonth())).$d}else Z&&this.$d[Z](F);return this.init(),this},J.set=function(_,U){return this.clone().$set(_,U)},J.get=function(_){return this[Q.p(_)]()},J.add=function(_,U){var V,q=this;_=Number(_);var R=Q.p(U),Z=function(ee){var se=ne(q);return Q.w(se.date(se.date()+Math.round(ee*_)),q)};if(R===C)return this.set(C,this.$M+_);if(R===w)return this.set(w,this.$y+_);if(R===m)return Z(1);if(R===p)return Z(7);var F=(V={},V[d]=i,V[h]=s,V[u]=n,V)[R]||1,G=this.$d.getTime()+_*F;return Q.w(G,this)},J.subtract=function(_,U){return this.add(-1*_,U)},J.format=function(_){var U=this,V=this.$locale();if(!this.isValid())return V.invalidDate||S;var q=_||"YYYY-MM-DDTHH:mm:ssZ",R=Q.z(this),Z=this.$H,F=this.$m,G=this.$M,ee=V.weekdays,se=V.months,ce=V.meridiem,de=function(Ve,lt,At,Vt){return Ve&&(Ve[lt]||Ve(U,q))||At[lt].slice(0,Vt)},ye=function(Ve){return Q.s(Z%12||12,Ve,"0")},be=ce||function(Ve,lt,At){var Vt=Ve<12?"AM":"PM";return At?Vt.toLowerCase():Vt};return q.replace(j,function(Ve,lt){return lt||function(At){switch(At){case"YY":return String(U.$y).slice(-2);case"YYYY":return Q.s(U.$y,4,"0");case"M":return G+1;case"MM":return Q.s(G+1,2,"0");case"MMM":return de(V.monthsShort,G,se,3);case"MMMM":return de(se,G);case"D":return U.$D;case"DD":return Q.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return de(V.weekdaysMin,U.$W,ee,2);case"ddd":return de(V.weekdaysShort,U.$W,ee,3);case"dddd":return ee[U.$W];case"H":return String(Z);case"HH":return Q.s(Z,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return be(Z,F,!0);case"A":return be(Z,F,!1);case"m":return String(F);case"mm":return Q.s(F,2,"0");case"s":return String(U.$s);case"ss":return Q.s(U.$s,2,"0");case"SSS":return Q.s(U.$ms,3,"0");case"Z":return R}return null}(Ve)||R.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(_,U,V){var q,R=this,Z=Q.p(U),F=ne(_),G=(F.utcOffset()-this.utcOffset())*i,ee=this-F,se=function(){return Q.m(R,F)};switch(Z){case w:q=se()/12;break;case C:q=se();break;case v:q=se()/3;break;case p:q=(ee-G)/6048e5;break;case m:q=(ee-G)/864e5;break;case h:q=ee/s;break;case d:q=ee/i;break;case u:q=ee/n;break;default:q=ee}return V?q:Q.a(q)},J.daysInMonth=function(){return this.endOf(C).$D},J.$locale=function(){return k[this.$L]},J.locale=function(_,U){if(!_)return this.$L;var V=this.clone(),q=I(_,U,!0);return q&&(V.$L=q),V},J.clone=function(){return Q.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},ie}(),he=le.prototype;return ne.prototype=he,[["$ms",l],["$s",u],["$m",d],["$H",h],["$W",m],["$M",C],["$y",w],["$D",b]].forEach(function(ie){he[ie[1]]=function(J){return this.$g(J,ie[0],ie[1])}}),ne.extend=function(ie,J){return ie.$i||(ie(J,le,ne),ie.$i=!0),ne},ne.locale=I,ne.isDayjs=z,ne.unix=function(ie){return ne(1e3*ie)},ne.en=k[M],ne.Ls=k,ne.p={},ne})}(pc)),pc.exports}var fW=uW();const Ca=Pi(fW);var gc={exports:{}},dW=gc.exports,xg;function hW(){return xg||(xg=1,function(e,t){(function(n,i){e.exports=i()})(dW,function(){return function(n,i,s){n=n||{};var l=i.prototype,u={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function d(m,p,C,v){return l.fromToBase(m,p,C,v)}s.en.relativeTime=u,l.fromToBase=function(m,p,C,v,w){for(var b,S,E,j=C.$locale().relativeTime||u,T=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],L=T.length,D=0;D<L;D+=1){var M=T[D];M.d&&(b=v?s(m).diff(C,M.d,!0):C.diff(m,M.d,!0));var k=(n.rounding||Math.round)(Math.abs(b));if(E=b>0,k<=M.r||!M.r){k<=1&&D>0&&(M=T[D-1]);var O=j[M.l];w&&(k=w(""+k)),S=typeof O=="string"?O.replace("%d",k):O(k,p,M.l,E);break}}if(p)return S;var z=E?j.future:j.past;return typeof z=="function"?z(S):z.replace("%s",S)},l.to=function(m,p){return d(m,p,this,!0)},l.from=function(m,p){return d(m,p,this)};var h=function(m){return m.$u?s.utc():s()};l.toNow=function(m){return this.to(h(this),m)},l.fromNow=function(m){return this.from(h(this),m)}}})}(gc)),gc.exports}var mW=hW();const pW=Pi(mW);function WK(e){return Ze({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(e)}function qK(e){return Ze({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"},child:[]}]})(e)}function KK(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"},child:[]}]})(e)}function QK(e){return Ze({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 gW(e){return Ze({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"},child:[]}]})(e)}function $7(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function yg(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function da(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"},child:[]}]})(e)}function Qw(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"},child:[]}]})(e)}function bg(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"},child:[]}]})(e)}function S1(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"},child:[]}]})(e)}function wg(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function J4(e){return Ze({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function XK(e){return Ze({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"},child:[]}]})(e)}function JK(e){return Ze({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},child:[]}]})(e)}function Sa(e){return Ze({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}function eQ(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"},child:[]}]})(e)}function CW(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"},child:[]}]})(e)}function vW(e){return Ze({attr:{viewBox:"0 0 536 512"},child:[{tag:"path",attr:{d:"M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"},child:[]}]})(e)}function Ds(e){return Ze({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(e)}function tQ(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function xW(e){return Ze({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"},child:[]}]})(e)}function nQ(e){return Ze({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"},child:[]}]})(e)}function rQ(e){return Ze({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"},child:[]}]})(e)}function iQ(e){return Ze({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(e)}function yW(e){return Ze({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"},child:[]}]})(e)}const _8=({rating:e})=>{const t=Math.floor(e||0),n=(e||0)%1>=.5,i=5-t-(n?1:0);return c.jsxs("div",{className:"flex items-center justify-center mt-1 gap-2 text-main-400 text-lg",children:[Array.from({length:t},(s,l)=>c.jsx(Ds,{},`full-${l}`)),n&&c.jsx(vW,{},"half"),Array.from({length:i},(s,l)=>c.jsx(yW,{},`empty-${l}`))]})};Ca.extend(pW);function bW({comment:e}){return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(Hr,{className:"size-11 bg-neutral-700",children:[c.jsx(Ir,{src:e==null?void 0:e.user.avatar_url}),c.jsx(Zr,{className:"bg-neutral-200",children:Ur(e==null?void 0:e.user.name)})]}),c.jsxs("span",{children:[c.jsx("h4",{className:"font-light text-xl",children:e==null?void 0:e.user.name}),c.jsxs("p",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"flex items-center justify-center gap-0.5 text-main-400 text-sm",children:c.jsx(_8,{rating:Number(e==null?void 0:e.rating)})}),c.jsx("small",{className:"text-neutral-500",children:e!=null&&e.created_at?Ca(e.created_at).fromNow():""})]})]})]}),c.jsx("p",{className:"text-neutral-400 mt-4",children:e==null?void 0:e.comment})]})}var P8="Progress",V8=100,[wW,aQ]=Jn(P8),[SW,EW]=wW(P8),Xw=y.forwardRef((e,t)=>{const{__scopeProgress:n,value:i=null,max:s,getValueLabel:l=jW,...u}=e;(s||s===0)&&!Sg(s)&&console.error(AW(`${s}`,"Progress"));const d=Sg(s)?s:V8;i!==null&&!Eg(i,d)&&console.error(MW(`${i}`,"Progress"));const h=Eg(i,d)?i:null,m=Uc(h)?l(h,d):void 0;return c.jsx(SW,{scope:n,value:h,max:d,children:c.jsx(Re.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":Uc(h)?h:void 0,"aria-valuetext":m,role:"progressbar","data-state":tS(h,d),"data-value":h??void 0,"data-max":d,...u,ref:t})})});Xw.displayName=P8;var Jw="ProgressIndicator",eS=y.forwardRef((e,t)=>{const{__scopeProgress:n,...i}=e,s=EW(Jw,n);return c.jsx(Re.div,{"data-state":tS(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:t})});eS.displayName=Jw;function jW(e,t){return`${Math.round(e/t*100)}%`}function tS(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Uc(e){return typeof e=="number"}function Sg(e){return Uc(e)&&!isNaN(e)&&e>0}function Eg(e,t){return Uc(e)&&!isNaN(e)&&e<=t&&e>=0}function AW(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${V8}\`.`}function MW(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
  - a positive number
  - less than the value passed to \`max\` (or ${V8} if no \`max\` prop is set)
  - \`null\` or \`undefined\` if the progress is indeterminate.

Defaulting to \`null\`.`}var LW=Xw,TW=eS;function ks({className:e,value:t,...n}){return c.jsx(LW,{"data-slot":"progress",className:Ue("bg-neutral-300 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:c.jsx(TW,{"data-slot":"progress-indicator",className:"bg-gradient-to-r from-[#8CBBA7] to-main-400 rounded-full h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function NW({rating:e}){var t,n,i,s,l;return c.jsxs("div",{className:"grid grid-cols-12 gap-5",children:[c.jsxs("div",{className:"md:col-span-4 col-span-12 bg-main-400/10 p-5",children:[c.jsxs("h4",{className:"text-center",children:[c.jsx("span",{className:"text-xl text-main-400 font-bold",children:e==null?void 0:e.average_rating}),"/5"]}),c.jsx("div",{className:"flex items-center justify-center mt-1 gap-2 text-main-400 text-lg",children:c.jsx(_8,{rating:e==null?void 0:e.average_rating})}),c.jsxs("p",{className:"text-sm text-center mt-2 text-neutral-500",children:[e==null?void 0:e.total_reviews," Rating"]})]}),c.jsxs("div",{className:"md:col-span-7 col-span-12",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsxs("span",{className:"flex items-center gap-1 text-main-400 ",children:["5",c.jsx(Ds,{})]}),c.jsx(ks,{value:(t=e==null?void 0:e.ratings_distribution)!=null&&t[5]&&(e!=null&&e.total_reviews)?e.ratings_distribution[5]:0,className:"w-full "})]}),c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsxs("span",{className:"flex items-center gap-1 text-main-400 ",children:["4",c.jsx(Ds,{})]}),c.jsx(ks,{value:(n=e==null?void 0:e.ratings_distribution)!=null&&n[4]&&(e!=null&&e.total_reviews)?e.ratings_distribution[4]:0,className:"w-full "})]}),c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsxs("span",{className:"flex items-center gap-1 text-main-400 ",children:["3",c.jsx(Ds,{})]}),c.jsx(ks,{value:(i=e==null?void 0:e.ratings_distribution)!=null&&i[3]&&(e!=null&&e.total_reviews)?e.ratings_distribution[3]:0,className:"w-full "})]}),c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsxs("span",{className:"flex items-center gap-1 text-main-400 ",children:["2",c.jsx(Ds,{})]}),c.jsx(ks,{value:(s=e==null?void 0:e.ratings_distribution)!=null&&s[2]&&(e!=null&&e.total_reviews)?e.ratings_distribution[2]:0,className:"w-full "})]}),c.jsxs("div",{className:"flex items-center gap-2 ",children:[c.jsxs("span",{className:"flex items-center gap-1 text-main-400 ",children:["1",c.jsx(Ds,{})]}),c.jsx(ks,{value:(l=e==null?void 0:e.ratings_distribution)!=null&&l[1]&&(e!=null&&e.total_reviews)?e.ratings_distribution[1]:0,className:"w-full "})]})]})]})}const RW=()=>c.jsxs("div",{className:"grid grid-cols-12 gap-5 w-full",children:[c.jsxs("div",{className:"md:col-span-4 col-span-12 bg-main-400/20 rounded-2xl p-5",children:[c.jsx(fe,{className:"h-8 w-16 mx-auto mb-2"}),c.jsx("div",{className:"flex items-center justify-center mt-1 gap-2",children:c.jsx(fe,{className:"h-6 w-24"})}),c.jsx(fe,{className:"h-4 w-20 mx-auto mt-2"})]}),c.jsx("div",{className:"md:col-span-8 col-span-12 space-y-3 bg-main-400/20 rounded-2xl p-5",children:[1,2,3,4,5].map(e=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fe,{className:"h-6 w-6"}),c.jsx(fe,{className:"h-4 w-full rounded-full"})]},e))})]}),DW=()=>c.jsxs("div",{className:"bg-main-400/20 rounded-2xl px-4 py-6 border-b-0 w-full",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fe,{className:"size-11 rounded-full"}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(fe,{className:"h-5 w-[200px]"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fe,{className:"h-4 w-20"}),c.jsx(fe,{className:"h-3 w-16"})]})]})]}),c.jsx(fe,{className:"h-16 w-full mt-4 rounded-lg"})]});function kW(){var u;const{id:e}=Xr(),[t,n]=ue.useState(null),[i,s]=ue.useState(!0);ue.useEffect(()=>{l()},[]);async function l(){try{s(!0);const d=await Xt.getCourseReviews(Number(e));n(d.data.data)}catch(d){console.error(d)}finally{s(!1)}}return i?c.jsxs("div",{children:[c.jsx(RW,{}),c.jsx("div",{className:"mt-6 space-y-6",children:[...Array(3)].map((d,h)=>c.jsx(DW,{},h))})]}):c.jsxs("div",{children:[c.jsx(NW,{rating:t}),c.jsx("div",{className:"mt-6",children:(u=t==null?void 0:t.reviews)==null?void 0:u.map((d,h)=>c.jsx("div",{className:"mb-8",children:c.jsx(bW,{comment:d})},h))})]})}var Eu="Collapsible",[OW,nS]=Jn(Eu),[_W,z8]=OW(Eu),rS=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:i,defaultOpen:s,disabled:l,onOpenChange:u,...d}=e,[h,m]=Na({prop:i,defaultProp:s??!1,onChange:u,caller:Eu});return c.jsx(_W,{scope:n,disabled:l,contentId:Qt(),open:h,onOpenToggle:y.useCallback(()=>m(p=>!p),[m]),children:c.jsx(Re.div,{"data-state":B8(h),"data-disabled":l?"":void 0,...d,ref:t})})});rS.displayName=Eu;var iS="CollapsibleTrigger",aS=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...i}=e,s=z8(iS,n);return c.jsx(Re.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":B8(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:t,onClick:Ne(e.onClick,s.onOpenToggle)})});aS.displayName=iS;var F8="CollapsibleContent",sS=y.forwardRef((e,t)=>{const{forceMount:n,...i}=e,s=z8(F8,e.__scopeCollapsible);return c.jsx(Cr,{present:n||s.open,children:({present:l})=>c.jsx(PW,{...i,ref:t,present:l})})});sS.displayName=F8;var PW=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:i,children:s,...l}=e,u=z8(F8,n),[d,h]=y.useState(i),m=y.useRef(null),p=Rt(t,m),C=y.useRef(0),v=C.current,w=y.useRef(0),b=w.current,S=u.open||d,E=y.useRef(S),j=y.useRef(void 0);return y.useEffect(()=>{const T=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(T)},[]),Fn(()=>{const T=m.current;if(T){j.current=j.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const L=T.getBoundingClientRect();C.current=L.height,w.current=L.width,E.current||(T.style.transitionDuration=j.current.transitionDuration,T.style.animationName=j.current.animationName),h(i)}},[u.open,i]),c.jsx(Re.div,{"data-state":B8(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!S,...l,ref:p,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:S&&s})});function B8(e){return e?"open":"closed"}var VW=rS,zW=aS,FW=sS,nr="Accordion",BW=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[U8,UW,HW]=o8(nr),[ju,sQ]=Jn(nr,[HW,nS]),H8=nS(),oS=ue.forwardRef((e,t)=>{const{type:n,...i}=e,s=i,l=i;return c.jsx(U8.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(YW,{...l,ref:t}):c.jsx(GW,{...s,ref:t})})});oS.displayName=nr;var[lS,IW]=ju(nr),[cS,ZW]=ju(nr,{collapsible:!1}),GW=ue.forwardRef((e,t)=>{const{value:n,defaultValue:i,onValueChange:s=()=>{},collapsible:l=!1,...u}=e,[d,h]=Na({prop:n,defaultProp:i??"",onChange:s,caller:nr});return c.jsx(lS,{scope:e.__scopeAccordion,value:ue.useMemo(()=>d?[d]:[],[d]),onItemOpen:h,onItemClose:ue.useCallback(()=>l&&h(""),[l,h]),children:c.jsx(cS,{scope:e.__scopeAccordion,collapsible:l,children:c.jsx(uS,{...u,ref:t})})})}),YW=ue.forwardRef((e,t)=>{const{value:n,defaultValue:i,onValueChange:s=()=>{},...l}=e,[u,d]=Na({prop:n,defaultProp:i??[],onChange:s,caller:nr}),h=ue.useCallback(p=>d((C=[])=>[...C,p]),[d]),m=ue.useCallback(p=>d((C=[])=>C.filter(v=>v!==p)),[d]);return c.jsx(lS,{scope:e.__scopeAccordion,value:u,onItemOpen:h,onItemClose:m,children:c.jsx(cS,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(uS,{...l,ref:t})})})}),[$W,Au]=ju(nr),uS=ue.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:i,dir:s,orientation:l="vertical",...u}=e,d=ue.useRef(null),h=Rt(d,t),m=UW(n),C=lu(s)==="ltr",v=Ne(e.onKeyDown,w=>{var z;if(!BW.includes(w.key))return;const b=w.target,S=m().filter(I=>{var ne;return!((ne=I.ref.current)!=null&&ne.disabled)}),E=S.findIndex(I=>I.ref.current===b),j=S.length;if(E===-1)return;w.preventDefault();let T=E;const L=0,D=j-1,M=()=>{T=E+1,T>D&&(T=L)},k=()=>{T=E-1,T<L&&(T=D)};switch(w.key){case"Home":T=L;break;case"End":T=D;break;case"ArrowRight":l==="horizontal"&&(C?M():k());break;case"ArrowDown":l==="vertical"&&M();break;case"ArrowLeft":l==="horizontal"&&(C?k():M());break;case"ArrowUp":l==="vertical"&&k();break}const O=T%j;(z=S[O].ref.current)==null||z.focus()});return c.jsx($W,{scope:n,disabled:i,direction:s,orientation:l,children:c.jsx(U8.Slot,{scope:n,children:c.jsx(Re.div,{...u,"data-orientation":l,ref:h,onKeyDown:i?void 0:v})})})}),Hc="AccordionItem",[WW,I8]=ju(Hc),fS=ue.forwardRef((e,t)=>{const{__scopeAccordion:n,value:i,...s}=e,l=Au(Hc,n),u=IW(Hc,n),d=H8(n),h=Qt(),m=i&&u.value.includes(i)||!1,p=l.disabled||e.disabled;return c.jsx(WW,{scope:n,open:m,disabled:p,triggerId:h,children:c.jsx(VW,{"data-orientation":l.orientation,"data-state":CS(m),...d,...s,ref:t,disabled:p,open:m,onOpenChange:C=>{C?u.onItemOpen(i):u.onItemClose(i)}})})});fS.displayName=Hc;var dS="AccordionHeader",hS=ue.forwardRef((e,t)=>{const{__scopeAccordion:n,...i}=e,s=Au(nr,n),l=I8(dS,n);return c.jsx(Re.h3,{"data-orientation":s.orientation,"data-state":CS(l.open),"data-disabled":l.disabled?"":void 0,...i,ref:t})});hS.displayName=dS;var e6="AccordionTrigger",mS=ue.forwardRef((e,t)=>{const{__scopeAccordion:n,...i}=e,s=Au(nr,n),l=I8(e6,n),u=ZW(e6,n),d=H8(n);return c.jsx(U8.ItemSlot,{scope:n,children:c.jsx(zW,{"aria-disabled":l.open&&!u.collapsible||void 0,"data-orientation":s.orientation,id:l.triggerId,...d,...i,ref:t})})});mS.displayName=e6;var pS="AccordionContent",gS=ue.forwardRef((e,t)=>{const{__scopeAccordion:n,...i}=e,s=Au(nr,n),l=I8(pS,n),u=H8(n);return c.jsx(FW,{role:"region","aria-labelledby":l.triggerId,"data-orientation":s.orientation,...u,...i,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});gS.displayName=pS;function CS(e){return e?"open":"closed"}var qW=oS,KW=fS,QW=hS,XW=mS,JW=gS;function Z8({...e}){return c.jsx(qW,{"data-slot":"accordion",...e})}function G8({className:e,...t}){return c.jsx(KW,{"data-slot":"accordion-item",className:Ue("border-b last:border-b-0",e),...t})}function Y8({className:e,children:t,...n}){return c.jsx(QW,{className:"flex",children:c.jsxs(XW,{"data-slot":"accordion-trigger",className:Ue("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-6 text-left text-sm font-medium transition-all outline-none cursor-pointer focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,c.jsx(gO,{className:"text-white pointer-events-none size-6 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function $8({className:e,children:t,...n}){return c.jsx(JW,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:c.jsx("div",{className:Ue("pt-0 pb-4",e),children:t})})}function vS({itemId:e,itemType:t,isEnrolled:n,onViewClick:i,className:s=""}){const[l,u]=y.useState(!1),{isAuthenticated:d}=Vi(),h=gr(),m=async()=>{if(!d){h("/auth/login"),Et.error("Please log in if you have an account, or register if you don't.");return}try{u(!0);const v=`/purchase/${t}/${e}`,w={payment_provider:"geidea"},b=await He.post(v,w);if(b.data.data.checkout_url){const S=b.data.data.checkout_url;Et.success("Redirecting to payment..."),window.location.href=S}else Et.error("Checkout URL not found"),u(!1)}catch(v){Et.error("Payment failed. Please try again"),console.error(v),u(!1)}},p=()=>t==="course"?l?"":"Purchase Course":l?"":"Purchase Lesson",C=()=>t==="course"?"View Course":"View Lesson";return n?c.jsxs("div",{className:`w-full ${s}`,children:[c.jsx("span",{className:"inline-block mb-2 px-3 py-1 text-xs font-semibold text-green-700 bg-green-100 rounded-full",children:"Enrolled"}),c.jsx(st,{className:"btn-primary font-bold w-full !text-neutral-800",onClick:i,children:C()})]}):c.jsx(st,{className:`btn-primary font-bold w-full !text-neutral-800 flex items-center justify-center gap-2 ${s}`,onClick:m,disabled:l,children:l?c.jsx(CW,{className:"animate-spin"}):p()})}function eq(){var h,m;const{id:e}=Xr(),t=gr(),[n,i]=ue.useState(!0),[s,l]=ue.useState(null);ue.useEffect(()=>{u()},[]);async function u(){try{i(!0);const p=await Xt.getCourseCurriculum(Number(e));l(p.data.data)}catch(p){console.error(p)}finally{i(!1)}}const d=()=>c.jsx("div",{className:"w-full space-y-4",children:[...Array(4)].map((p,C)=>c.jsxs("div",{className:"bg-main-400/20 rounded-2xl px-4 py-6 border-b-0",children:[c.jsxs("div",{className:"flex items-center justify-between w-full",children:[c.jsxs("div",{className:"flex items-center grow gap-3",children:[c.jsx(fe,{className:"w-10 h-10 rounded-full"}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(fe,{className:"h-5 w-[200px]"}),c.jsx(fe,{className:"h-4 w-[300px]"})]})]}),c.jsx(fe,{className:"w-[70px] h-[70px] rounded-full"})]}),c.jsxs("div",{className:"border-t border-neutral-800 pt-4 mt-4 space-y-3",children:[[...Array(3)].map((v,w)=>c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{className:"flex items-center gap-2 grow",children:[c.jsx(fe,{className:"w-10 h-10 rounded-full"}),c.jsx("div",{className:"space-y-1",children:c.jsx(fe,{className:"h-4 w-[180px]"})})]})},w)),c.jsx(fe,{className:"h-12 w-full rounded-lg mt-4"})]})]},C))});return n?c.jsx(d,{}):c.jsx("div",{children:c.jsx(Z8,{type:"multiple",className:"w-full space-y-4",defaultValue:(h=s==null?void 0:s.chapters)==null?void 0:h.map(p=>p.id.toString()),children:(m=s==null?void 0:s.chapters)==null?void 0:m.map((p,C)=>{var v,w,b;return c.jsxs(G8,{value:p.id.toString(),className:"bg-main-300/20 rounded-2xl px-4 border-b-0",children:[c.jsx(Y8,{className:"!items-center py-2 [&>svg]:text-main-400",children:c.jsx("div",{className:"flex items-center justify-between w-full",children:c.jsxs("div",{className:"flex items-center grow gap-3",children:[c.jsx("span",{className:"w-10 h-10 bg-main-400/30 rounded-full text-main-400 font-bold flex items-center justify-center text-xl shrink-0",children:C+1}),c.jsxs("span",{children:[c.jsx("h4",{className:"md:text-lg text-base font-medium",children:p.title}),c.jsx("p",{className:"line-clamp-1 text-neutral-500 font-normal md:text-lg text-sm",children:p.description})]})]})})}),c.jsxs($8,{className:"border-t border-neutral-800 pt-4 space-y-3",children:[c.jsx(vS,{itemId:p.id,itemType:"lesson",isEnrolled:p.is_enrolled||!1,onPaymentSuccess:()=>{u()},onViewClick:()=>{t(`/course/${e}/content`)},className:"mb-4"}),(v=p==null?void 0:p.videos)==null?void 0:v.map(S=>c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{className:"flex items-center gap-2 grow",children:[c.jsx("span",{className:"w-10 h-10 rounded-full text-base border border-neutral-200 text-main-400 flex items-center justify-center",children:c.jsx(Sa,{})}),c.jsxs("span",{children:[c.jsx("h5",{className:"text-lg",children:S.title}),c.jsx("p",{className:"text-sm text-gray-400",children:S.duration})]})]})},S.id)),(w=p==null?void 0:p.quizzes)==null?void 0:w.map(S=>c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{className:"flex items-center gap-2 grow",children:[c.jsx("span",{className:"w-10 h-10 rounded-full text-base border border-neutral-200 text-main-400 flex items-center justify-center",children:c.jsx(Ee,{icon:t8})}),c.jsxs("span",{children:[c.jsx("h5",{className:"text-lg",children:S.title}),c.jsxs("p",{className:"text-sm text-gray-400",children:[S.total_questions," Questions"]})]})]})},S.id)),(b=p==null?void 0:p.resources)==null?void 0:b.map(S=>c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{className:"flex items-center gap-2 grow",children:[c.jsx("span",{className:"w-10 h-10 rounded-full text-base border border-neutral-200 text-main-400 flex items-center justify-center",children:c.jsx(Ee,{icon:n8})}),c.jsxs("span",{children:[c.jsx("h5",{className:"text-lg",children:S.title}),c.jsx("p",{className:"text-sm text-gray-400",children:S.type})]})]})},S.id))]})]},p.id)})})})}function tq({course:e}){return c.jsx("section",{children:c.jsx("div",{className:"container mx-auto px-4 my-12 grid grid-cols-12",children:c.jsx("div",{className:"lg:col-span-8 col-span-12",children:c.jsxs(qw,{defaultValue:"about",children:[c.jsxs(Kw,{className:"w-full bg-transparent border-b mb-6 h-auto",children:[c.jsx(O1,{className:"text-xl !py-2  h-auto cursor-pointer",value:"about",children:"About"}),c.jsx(O1,{className:"text-xl !py-3  h-auto cursor-pointer",value:"curriculum",children:"Purchase by Lesson"}),c.jsx(O1,{className:"text-xl !py-3  h-auto cursor-pointer",value:"review",children:"Review"})]}),c.jsx(_1,{value:"about",children:c.jsx(lW,{course:e})}),c.jsx(_1,{value:"curriculum",children:c.jsx(eq,{})}),c.jsx(_1,{value:"review",children:c.jsx(kW,{})})]})})})})}function nq({instructor:e}){const[t,n]=y.useState(!1);return c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs(Hr,{className:"size-10",children:[c.jsx(Ir,{src:e==null?void 0:e.avatar_url}),c.jsx(Zr,{className:"text-neutral-900",children:Ur(e==null?void 0:e.name)})]}),c.jsxs("span",{className:"flex flex-col",children:[c.jsx("h6",{className:"font-bold mb-1",children:e==null?void 0:e.name}),c.jsx("p",{className:`${t?"":"line-clamp-3"} text-neutral-500`,children:e==null?void 0:e.bio}),(e==null?void 0:e.bio)&&e.bio.length>100&&c.jsx("button",{onClick:()=>n(!t),className:"text-blue-500 text-sm mt-1 w-fit",children:t?"See less":"See more"})]})]})}function rq({course:e}){var h,m,p,C;const[t,n]=y.useState(!1),i=gr(),s=v=>v.includes("youtube.com/embed")||v.includes("vimeo.com/video")||v.includes("player.vimeo.com")||v.includes("wistia.com")||v.includes("embed"),l=v=>v.toLowerCase().includes(".mp4")||v.toLowerCase().includes(".webm")||v.toLowerCase().includes(".ogg"),u=()=>{n(!0)},d=()=>{const v=e==null?void 0:e.intro_video_url;return v?s(v)?c.jsx("iframe",{src:v,className:"w-full h-full",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Course Preview Video"}):l(v)?c.jsx("video",{className:"w-full h-full object-cover",controls:!0,autoPlay:!0,src:v,children:"Your browser does not support the video tag."}):c.jsx("iframe",{src:v,className:"w-full h-full",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Course Preview Video"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center bg-neutral-800",children:c.jsx("p",{className:"text-white",children:"No video available"})})};return e?c.jsxs("section",{className:"relative  overflow-hidden",children:[c.jsxs("div",{className:"relative",children:[c.jsx("img",{className:"absolute top-0 left-0 -z-10 w-full h-full object-cover blur-2xl md:block hidden ",src:e==null?void 0:e.image_url,alt:"course background"}),c.jsxs("div",{className:"container mx-auto md:px-4 md:py-8 pb-8 grid grid-cols-12 md:gap-10 gap-2 ",children:[c.jsx("div",{className:"md:col-span-8 col-span-12 relative md:max-h-[400px] max-h-[300px] md:rounded-2xl overflow-hidden",children:t?d():c.jsxs(c.Fragment,{children:[c.jsx("img",{className:"w-full h-full object-cover",src:e==null?void 0:e.image_url,alt:"course thumbnail"}),c.jsx("span",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-neutral-200/60 backdrop-blur-sm md:w-20 md:h-20 w-16 h-16 rounded-full flex items-center justify-center cursor-pointer hover:bg-neutral-200/80 transition-colors",onClick:u,children:c.jsx(Sa,{className:"md:size-9 size-7 text-white ml-1"})})]})}),c.jsxs("div",{className:"md:col-span-4 col-span-12  p-4 bg-main-300/10 rounded-2xl",children:[c.jsx("h4",{className:"text-xl mb-3  ",children:e==null?void 0:e.title}),c.jsx(nq,{instructor:e==null?void 0:e.instructor}),c.jsxs("ul",{className:"flex flex-wrap items-center gap-3 mt-4",children:[c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{icon:V_}),c.jsx("span",{className:"text-sm",children:e==null?void 0:e.duration})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{icon:R_}),c.jsxs("span",{className:"text-sm",children:[e==null?void 0:e.level," Level"]})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{icon:__}),c.jsxs("span",{className:"text-sm",children:[e==null?void 0:e.students_count," Students"]})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{icon:E_}),c.jsx("span",{className:"text-sm",children:(h=e==null?void 0:e.general)==null?void 0:h.language})]}),c.jsxs("li",{className:"flex items-center gap-2",children:[c.jsx(Ee,{icon:Zx}),c.jsxs("span",{className:" text-sm",children:["Last Updated"," ",((m=e==null?void 0:e.details)==null?void 0:m.lastUpdated)&&new Date(e.details.lastUpdated).toLocaleDateString("en-GB")]})]})]}),c.jsxs("h3",{className:"my-4 text-2xl text-main-400 font-bold",children:[c.jsx("span",{className:Ue("me-2",e.price_before_discount&&"line-through text-neutral-500 text-sm"),children:e.price_before_discount}),e.price&&c.jsx("span",{children:e.price}),c.jsx("span",{children:e.currency})]}),c.jsx("div",{className:"flex items-center gap-5 ",children:c.jsx("span",{className:"flex items-center gap-1 text-xl ",children:c.jsx(_8,{rating:(p=e==null?void 0:e.general)==null?void 0:p.rating})})}),c.jsx(vS,{itemId:Number(e==null?void 0:e.id),itemType:"course",isEnrolled:(e==null?void 0:e.is_enrolled)||!1,onPaymentSuccess:()=>{window.location.reload()},onViewClick:()=>{i(`/course/${e==null?void 0:e.id}/content`)},className:"mt-4"})]})]})]}),c.jsxs("ul",{className:"container mx-auto px-4",children:[c.jsx("h4",{className:"md:text-2xl text-xl font-bold mb-3",children:"What You’ll learn"}),(C=e==null?void 0:e.learningObjectives)==null?void 0:C.map((v,w)=>c.jsxs("li",{className:"flex items-center gap-2 md:text-lg text-base",children:[c.jsx(Ee,{icon:P_,className:"text-main-400"}),c.jsx("span",{children:v})]},w))]})]}):c.jsx("h1",{className:"text-center text-4xl font-bold text-main-300",children:"Course is unavailable"})}function iq(){const{id:e}=Xr(),[t,n]=ue.useState(!0),[i,s]=ue.useState(null),[l,u]=ue.useState(!1);ue.useEffect(()=>{d()},[]);async function d(){var h;try{const m=await Xt.getCourseById(Number(e));m.data.success?s(m.data.data):u(!0)}catch(m){ot.isAxiosError(m)&&((h=m.response)==null?void 0:h.status)===404&&u(!0)}finally{n(!1)}}return l?c.jsx(tW,{title:"Course Not Found!"}):t?c.jsx("div",{className:"text-center py-20",children:"Loading..."}):c.jsxs("div",{children:[c.jsx(rq,{course:i,setCourseDetails:s}),c.jsx(tq,{course:i}),c.jsx(eW,{})]})}const Zs={resourcesIcon:e=>c.jsxs("svg",{...e,width:"37",height:"40",viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_3072_9460)",children:[c.jsx("path",{d:"M35.5 31.3672L13.5 32.3672L16 28.3672L8 27.3672H4.5L2 28.3672V27.3672V13.8672L3.5 9.36719L5.5 8.36718L6.5 6.86719V7.36719C7.20015 5.51377 7.31146 8.56201 7.5 6.86719H8C8.2537 6.74643 8.45469 6.65662 8.61389 6.59497L8.5 6.36718L8.81601 6.52519C9.12144 6.43675 9.19604 6.51775 9.2133 6.72383L10.5 7.36719L13.5 9.36719V7.36719L16 2.86719H23.5L30 4.36719L35.5 7.36719V31.3672Z",fill:"white"}),c.jsx("path",{d:"M14.2316 32.7176L35.9427 32.2988C36.5513 33.9884 35.5338 36.505 32.4758 37.7758C30.2313 38.7065 27.7237 38.7451 25.2966 38.6296C22.361 38.4896 19.4386 38.1466 16.5504 37.6031C16.0206 37.5037 15.4738 37.3901 15.0334 37.0786C14.5055 36.7045 14.1923 36.0799 14.084 35.4409C13.9757 34.8028 14.1081 33.3539 14.2316 32.7176Z",fill:"#427D8E"}),c.jsx("path",{d:"M26.5186 10.9716C27.0314 11.5775 26.7736 12.3695 26.7736 12.3695V28.0452C26.7235 29.6811 26.0586 29.2068 26.0586 29.2068C21.1302 26.0101 13.9465 29.2534 13.9465 29.2534C9.33222 26.1569 4.59265 28.217 2.84037 29.1943C2.76798 29.235 2.68617 29.2561 2.60311 29.2553C2.52005 29.2544 2.43866 29.2319 2.36708 29.1897C2.29549 29.1476 2.23622 29.0874 2.19521 29.0151C2.1542 28.943 2.13287 28.8612 2.13336 28.7781V11.8916C2.13336 11.688 2.05247 11.4926 1.90847 11.3486C1.76447 11.2046 1.56916 11.1238 1.36551 11.1238C1.16187 11.1238 0.966558 11.2046 0.822553 11.3486C0.678556 11.4926 0.597656 11.688 0.597656 11.8916V29.4986C0.597656 29.8309 0.729659 30.1495 0.964625 30.3845C1.19959 30.6195 1.51827 30.7515 1.85056 30.7515H26.1659C26.412 30.7515 26.6557 30.703 26.883 30.6088C27.1103 30.5146 27.3168 30.3766 27.4908 30.2025C27.6647 30.0285 27.8027 29.8219 27.8968 29.5945C27.9908 29.3672 28.0392 29.1235 28.039 28.8775V11.4003C28.039 11.2863 27.9938 11.1771 27.9132 11.0965C27.8327 11.016 27.7234 10.9707 27.6095 10.9707L26.5186 10.9716Z",fill:"#FF4B3D"}),c.jsx("path",{d:"M13.8926 6.99171V4.52168C13.8926 2.82399 15.3871 1.76886 16.9809 1.76886C17.1698 1.76886 24.5423 1.13972 29.9298 1.47174C31.47 1.56571 33.0889 1.59703 34.23 2.79267C35.2546 3.86391 35.4972 5.4202 35.5992 6.84315V6.85925L13.8926 6.99171Z",fill:"#427D8E"}),c.jsx("path",{d:"M36.3904 32.2896C35.9787 8.07706 36.8146 4.84901 34.554 2.48369C33.3942 1.26748 31.8298 1.13234 30.1885 1.03569C29.801 1.03569 26.7341 0.646393 16.981 1.32028C15.2673 1.32028 13.446 2.44163 13.446 4.51967L13.4469 9.2807C11.2696 7.25102 10.1017 7.20091 8.90606 6.43663C10.2261 5.79675 10.6351 4.50625 10.3621 3.47081C9.97369 1.99327 8.40844 1.54312 7.36408 2.47922C6.35638 3.3849 6.47183 4.9573 7.2531 6.09476C5.27082 6.82324 5.44712 7.93209 5.39432 8.02157V8.17999C3.28049 8.16564 1.84143 9.6772 1.6875 11.7105V28.9827C1.6875 29.6182 2.3757 29.9878 2.91177 29.6772C5.39522 28.2427 7.92699 27.873 11.1264 28.4771C11.82 28.6078 13.8756 29.3819 14.2819 29.7506C14.4162 29.8705 14.7276 29.9028 14.8958 29.7372C15.5375 29.1063 17.1887 28.9192 18.1006 28.7456C20.5841 28.2757 23.1749 28.5371 25.5931 29.4983C26.3251 29.7873 27.1108 29.2369 27.1108 28.4547V11.6747C27.1108 11.3829 27.0079 11.1136 26.8218 10.9176C26.451 10.5271 25.9873 10.237 25.474 10.0745V9.74524C25.474 8.82341 24.7223 8.0717 23.7987 8.06899C20.6638 8.04392 16.9211 8.35358 14.3965 10.2419C14.3804 10.224 14.358 10.2034 14.3428 10.1855V7.43448L35.1733 7.30651C35.4776 12.0801 35.142 11.2469 35.4883 31.8573C34.9845 31.8277 38.8882 31.7901 14.2819 32.2671C14.3124 31.8823 14.3428 31.4975 14.3562 31.1127C14.3585 31.0539 14.3491 30.9952 14.3287 30.9401C14.3084 30.8849 14.2772 30.8343 14.2373 30.7912C14.1973 30.7481 14.1492 30.7132 14.0957 30.6887C14.0423 30.6642 13.9845 30.6504 13.9257 30.6482C13.6778 30.6527 13.4711 30.8326 13.4622 31.0796C13.4148 32.3826 13.1811 33.6811 13.3843 35.0325C13.7065 37.1687 15.9402 37.8158 17.1404 38.1648C20.0381 39.0042 22.4912 39.0865 25.4686 39.0732C27.4643 39.0633 29.2005 38.9094 30.7711 38.6042C32.3015 38.3053 34.205 37.9348 35.355 36.6291C36.4647 35.3699 36.4253 33.9327 36.3895 32.2887L36.3904 32.2896ZM9.4976 3.69812C9.5676 3.98842 9.55824 4.2922 9.47057 4.57765C9.3829 4.8631 9.22003 5.11972 8.99916 5.32064C8.76289 5.52737 8.45768 5.66966 8.14265 5.7878C8.03701 5.66282 7.94406 5.52761 7.86522 5.38418C6.65797 3.17906 9.04832 1.9888 9.4976 3.69812ZM6.28926 8.03591C6.334 7.3781 7.29159 7.02102 7.9091 6.81429C8.45949 7.27698 9.13244 7.60094 9.83143 7.9079C11.3931 8.59522 12.7775 9.72017 13.8918 11.0294L14.1155 28.0118C13.2689 27.0014 12.2039 26.1744 10.9948 25.6455C9.83944 25.1381 8.64117 25.0647 7.51979 25.0602C7.19238 25.0576 6.87927 24.9257 6.64875 24.6932C6.41824 24.4607 6.28901 24.1464 6.28926 23.819V8.03591ZM2.58243 28.8771L2.58064 11.7445C2.70236 10.1649 3.82818 9.04178 5.39432 9.06867V23.819C5.39454 24.3828 5.61759 24.9238 6.01488 25.3239C6.41216 25.724 6.95147 25.9509 7.51532 25.9552C8.5418 25.9596 9.62914 26.0232 10.636 26.4653C11.5371 26.8591 12.3408 27.4479 13.029 28.1505C12.3193 27.8784 11.6168 27.6582 11.2929 27.5974C7.88848 26.9557 5.17775 27.3477 2.58243 28.8771ZM26.1712 11.5315C26.2562 11.621 26.198 10.7269 26.2159 28.4547C26.2159 28.6069 26.0664 28.7223 25.9233 28.6668C23.797 27.8157 21.499 27.4817 19.2184 27.6923C20.5796 27.3797 21.9692 27.2079 23.3655 27.1795C23.9276 27.1756 24.4652 26.9491 24.8605 26.5495C25.2558 26.1498 25.4764 25.6098 25.474 25.0477V11.0482C25.7318 11.1717 25.9751 11.3239 26.1712 11.5315ZM23.7969 8.96393C24.004 8.96439 24.2025 9.04684 24.3491 9.19326C24.4957 9.3396 24.5784 9.53804 24.579 9.74524V25.0477C24.579 25.7288 24.0394 26.2729 23.3503 26.2845C21.0208 26.323 18.7298 26.7409 16.5426 27.5213C16.0261 27.7065 15.4785 27.9267 15.0149 28.2641L14.7875 11.0796C17.1457 9.21274 20.8016 8.94959 23.7969 8.96393ZM14.3419 4.51878C14.3419 3.02424 15.7004 2.21611 17.0213 2.21432C25.84 1.55654 30.0078 1.93242 30.1491 1.93242C33.1409 2.10693 34.7401 2.62151 35.1107 6.41247L14.3419 6.54044V4.51878ZM34.6838 36.0384C33.7352 37.115 31.9963 37.4542 30.6002 37.7263C29.0842 38.0216 27.4044 38.1692 25.4633 38.1791C22.7426 38.1917 20.2556 38.1371 17.3892 37.3056C14.375 36.4322 14.0904 35.5247 14.2211 33.1621C36.9122 32.7164 35.363 32.7531 35.5026 32.7334C35.5277 34.0015 35.5071 35.105 34.6838 36.0384Z",fill:"#343941"}),c.jsx("path",{d:"M27.9411 3.86133C27.7647 3.86133 27.5956 3.93139 27.4709 4.05608C27.3462 4.18079 27.2762 4.34992 27.2762 4.52627C27.2762 4.70263 27.3462 4.87175 27.4709 4.99645C27.5956 5.12115 27.7647 5.19121 27.9411 5.19121C28.1174 5.19121 28.2866 5.12115 28.4112 4.99645C28.536 4.87175 28.606 4.70263 28.606 4.52627C28.606 4.34992 28.536 4.18079 28.4112 4.05608C28.2866 3.93139 28.1174 3.86133 27.9411 3.86133ZM25.8872 4.0788H20.9964C20.8777 4.0788 20.7639 4.12595 20.68 4.20986C20.5961 4.29377 20.5489 4.40759 20.5489 4.52627C20.5489 4.64494 20.5961 4.75876 20.68 4.84267C20.7639 4.9266 20.8777 4.97374 20.9964 4.97374H25.8872C26.0058 4.97374 26.1197 4.9266 26.2036 4.84267C26.2875 4.75876 26.3347 4.64494 26.3347 4.52627C26.3347 4.40759 26.2875 4.29377 26.2036 4.20986C26.1197 4.12595 26.0058 4.0788 25.8872 4.0788ZM8.07353 16.0369C8.39944 15.9903 8.73145 16.0131 9.04799 16.1038C9.36446 16.1944 9.65819 16.351 9.90994 16.5632C10.2867 16.8826 10.9176 17.7265 11.7893 17.638C11.8495 17.6356 11.9086 17.621 11.9631 17.5952C12.0175 17.5693 12.0661 17.5328 12.1061 17.4876C12.1461 17.4425 12.1765 17.3898 12.1956 17.3327C12.2147 17.2755 12.2221 17.2151 12.2172 17.1551C12.2125 17.095 12.1956 17.0365 12.1675 16.9831C12.1396 16.9298 12.1011 16.8826 12.0544 16.8444C12.0078 16.8063 11.9539 16.778 11.8961 16.7611C11.8382 16.7444 11.7775 16.7394 11.7177 16.7466C11.2908 16.7753 10.9077 16.2365 10.488 15.8812C10.1384 15.5883 9.73129 15.372 9.29287 15.2462C8.85446 15.1205 8.3946 15.088 7.94283 15.151C7.88468 15.1595 7.82873 15.1794 7.77829 15.2095C7.72777 15.2396 7.68375 15.2794 7.64864 15.3266C7.57766 15.4218 7.54753 15.5414 7.56475 15.6588C7.58196 15.7763 7.64509 15.8821 7.74038 15.953C7.8356 16.0239 7.95513 16.0541 8.07263 16.0369H8.07353ZM7.87396 19.069C8.19971 19.0219 8.53173 19.0443 8.84827 19.1347C9.16473 19.225 9.45854 19.3814 9.71037 19.5934C10.131 19.9514 10.7306 20.7586 11.5906 20.67C11.6508 20.6676 11.71 20.653 11.7644 20.6272C11.8188 20.6014 11.8675 20.5648 11.9074 20.5197C11.9474 20.4746 11.9779 20.4219 11.997 20.3647C12.0161 20.3076 12.0234 20.2471 12.0186 20.1871C12.0137 20.127 11.9969 20.0686 11.9689 20.0152C11.9409 19.9618 11.9024 19.9146 11.8558 19.8765C11.8091 19.8383 11.7553 19.81 11.6973 19.7932C11.6395 19.7764 11.5789 19.7714 11.519 19.7787C11.0957 19.8127 10.7011 19.2614 10.2894 18.9105C9.93947 18.6183 9.53216 18.4026 9.09383 18.2772C8.65542 18.152 8.19571 18.1198 7.74416 18.183C7.68602 18.1915 7.63006 18.2114 7.57955 18.2415C7.5291 18.2717 7.48504 18.3114 7.44993 18.3586C7.37902 18.4539 7.34885 18.5734 7.36606 18.6909C7.38326 18.8084 7.44644 18.9142 7.54169 18.9851C7.63693 19.0561 7.75647 19.0862 7.87396 19.069ZM17.8856 17.6138C18.8652 17.2433 19.915 17.0953 20.9588 17.1807C21.0184 17.1876 21.0788 17.1825 21.1363 17.1657C21.194 17.1488 21.2476 17.1206 21.294 17.0825C21.3405 17.0445 21.3788 16.9976 21.4067 16.9445C21.4347 16.8914 21.4516 16.8332 21.4566 16.7734C21.4616 16.7136 21.4545 16.6534 21.4357 16.5964C21.417 16.5394 21.387 16.4867 21.3475 16.4416C21.3079 16.3964 21.2597 16.3597 21.2057 16.3335C21.1518 16.3073 21.093 16.2923 21.033 16.2893C19.8561 16.1916 18.6721 16.3583 17.5679 16.7771C17.4569 16.8192 17.3673 16.9036 17.3186 17.0119C17.2699 17.1202 17.2662 17.2434 17.3084 17.3543C17.3505 17.4653 17.435 17.5549 17.5432 17.6036C17.6515 17.6522 17.7746 17.6559 17.8856 17.6138ZM21.033 18.992C19.8561 18.8942 18.6721 19.0609 17.5679 19.4797C17.4617 19.5253 17.3772 19.6102 17.3321 19.7166C17.287 19.8229 17.2847 19.9427 17.3256 20.0507C17.3667 20.1587 17.4477 20.2468 17.5521 20.2965C17.6564 20.3461 17.7758 20.3537 17.8856 20.3174C18.8653 19.9473 19.9149 19.799 20.9588 19.8833C21.0184 19.8904 21.0788 19.8852 21.1363 19.8684C21.194 19.8516 21.2476 19.8232 21.294 19.7853C21.3405 19.7473 21.3788 19.7003 21.4067 19.6472C21.4347 19.5941 21.4516 19.5359 21.4566 19.4761C21.4616 19.4163 21.4545 19.3561 21.4357 19.2991C21.417 19.2421 21.387 19.1894 21.3475 19.1442C21.3079 19.0991 21.2597 19.0623 21.2057 19.0362C21.1518 19.0101 21.093 18.995 21.033 18.992ZM28.2418 34.9568H23.5335C23.4149 34.9568 23.301 35.004 23.2171 35.0878C23.1332 35.1717 23.086 35.2855 23.086 35.4042C23.086 35.5229 23.1332 35.6367 23.2171 35.7206C23.301 35.8046 23.4149 35.8517 23.5335 35.8517H28.2409C28.3596 35.8517 28.4734 35.8046 28.5573 35.7206C28.6412 35.6367 28.6883 35.5229 28.6883 35.4042C28.6883 35.2855 28.6412 35.1717 28.5573 35.0878C28.4734 35.004 28.3596 34.9568 28.2409 34.9568H28.2418Z",fill:"#343941"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_3072_9460",children:c.jsx("rect",{width:"37",height:"39.2653",fill:"white",transform:"translate(0 0.367188)"})})})]}),contentView:e=>c.jsxs("svg",{...e,width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2988_33080)",children:[c.jsx("path",{d:"M3.80944 19.3291H22.3261C22.8464 19.3291 23.2748 18.9184 23.2893 18.3975C23.368 15.4562 23.3634 12.3746 23.2551 9.44653C23.2451 9.19817 23.1391 8.96338 22.9595 8.79153C22.7799 8.61974 22.5406 8.52433 22.292 8.5254H3.72546C3.18222 8.5254 2.74855 8.97547 2.76692 9.5187C2.88304 13.0635 2.88895 15.6465 2.84828 18.3515C2.84627 18.4791 2.86965 18.6058 2.91704 18.7242C2.96443 18.8427 3.03489 18.9505 3.12432 19.0414C3.21376 19.1324 3.32038 19.2047 3.438 19.2541C3.55561 19.3035 3.68188 19.329 3.80944 19.3291Z",fill:"#FB3748"}),c.jsx("path",{d:"M3.10443 7.23232C3.49758 7.23232 3.81628 6.91357 3.81628 6.52044C3.81628 6.12731 3.49758 5.80859 3.10443 5.80859C2.71129 5.80859 2.39258 6.12731 2.39258 6.52044C2.39258 6.91357 2.71129 7.23232 3.10443 7.23232Z",fill:"#427D8E"}),c.jsx("path",{d:"M4.95502 7.23232C5.34816 7.23232 5.66687 6.91357 5.66687 6.52044C5.66687 6.12731 5.34816 5.80859 4.95502 5.80859C4.56187 5.80859 4.24316 6.12731 4.24316 6.52044C4.24316 6.91357 4.56187 7.23232 4.95502 7.23232Z",fill:"#427D8E"}),c.jsx("path",{d:"M6.72568 7.23232C7.1188 7.23232 7.4375 6.91357 7.4375 6.52044C7.4375 6.12731 7.1188 5.80859 6.72568 5.80859C6.33249 5.80859 6.01379 6.12731 6.01379 6.52044C6.01379 6.91357 6.33249 7.23232 6.72568 7.23232Z",fill:"#141414"}),c.jsx("path",{d:"M12.0955 16.9256L15.8155 14.4036L15.8168 14.403C16.2951 14.0762 16.2971 13.306 15.8155 12.9767L12.0968 10.4553C11.5962 10.1122 10.9336 10.5012 10.9336 11.1685V16.2125C10.9336 16.8758 11.5949 17.2675 12.0955 16.9256Z",fill:"#F5F5F5"}),c.jsx("path",{d:"M25.5196 8.50834C25.4953 8.07136 24.8399 8.11403 24.8648 8.54573C25.1181 13.0517 25.0781 18.2689 24.7546 22.8576C24.7087 23.4834 24.1806 23.9729 23.5526 23.9729C21.4092 23.967 17.1132 23.9604 12.5416 23.9604L11.0103 22.9553C10.8901 22.8764 10.7513 22.8305 10.6078 22.8223C10.4643 22.8141 10.3211 22.8437 10.1927 22.9083C10.0643 22.973 9.95519 23.0703 9.87632 23.1905C9.79744 23.3106 9.75158 23.4495 9.7434 23.593L9.72177 23.9611C7.09084 23.9617 4.49145 23.9677 2.28241 23.9808C1.61386 23.9965 1.04438 23.4205 1.07587 22.7217C1.33372 16.9351 1.23399 11.2501 0.881016 5.6012C0.868969 5.43775 0.890628 5.27356 0.944649 5.11883C0.998669 4.96409 1.0839 4.8221 1.19505 4.70165C1.30621 4.58121 1.44092 4.48488 1.59083 4.41865C1.74074 4.35241 1.90267 4.31767 2.06656 4.31659C8.93907 4.27131 19.6365 4.20636 23.4182 4.18734C24.0283 4.15715 24.5637 4.65119 24.6247 5.26922C24.6379 5.4608 24.6575 5.65303 24.6772 5.8446C24.7231 6.27634 25.3746 6.20872 25.3307 5.77703C25.311 5.59333 25.292 5.40831 25.2782 5.21477C25.2359 4.75407 25.0228 4.32585 24.6808 4.01432C24.3388 3.70278 23.8926 3.53046 23.43 3.53125H23.4136C19.6339 3.55093 8.9351 3.61523 2.06196 3.6605C1.80877 3.66221 1.5586 3.7158 1.32692 3.81795C1.09524 3.92012 0.886954 4.06868 0.71493 4.25448C0.542905 4.44028 0.410788 4.65937 0.326737 4.89822C0.242685 5.13706 0.208483 5.39061 0.226243 5.64319C0.579872 11.2954 0.675659 16.962 0.420444 22.6929C0.408836 22.9435 0.448114 23.1939 0.535907 23.4289C0.6237 23.664 0.758189 23.8788 0.931262 24.0605C1.10434 24.2421 1.31241 24.3869 1.54294 24.4859C1.77346 24.585 2.02166 24.6363 2.27257 24.6369H2.287C4.48358 24.6237 7.06725 24.6178 9.68372 24.6171L9.31365 31.0219C9.26772 31.8072 10.2486 32.1982 10.757 31.5985C13.2502 28.6784 13.1288 28.7203 13.2633 28.7124L16.7996 28.5294C17.5908 28.4887 17.869 27.4626 17.207 27.027L13.5401 24.6165C17.7292 24.6178 21.5647 24.6231 23.552 24.6296C24.0218 24.6282 24.4738 24.4498 24.8178 24.13C25.1619 23.8102 25.3729 23.3725 25.4088 22.9041C25.7342 18.2885 25.7742 13.0412 25.5196 8.50834ZM12.9359 28.0596C12.6971 28.0701 11.4636 26.5467 12.205 26.5172C12.4629 26.4857 12.9608 26.8459 13.0402 27.3989C13.0809 27.685 13.0028 28.0209 12.9359 28.0596ZM16.7655 27.874L13.6511 28.0354C13.8419 27.2553 13.5303 26.5133 12.9556 26.113C11.9275 25.392 10.5123 26.3059 11.9045 28.0032C12.0358 28.164 12.23 28.4021 12.4662 28.5582L10.2558 31.1734C10.1541 31.2928 9.95928 31.2167 9.96846 31.0593L10.3982 23.6304C10.3996 23.6017 10.4086 23.5739 10.4243 23.5498C10.44 23.5258 10.4618 23.5063 10.4875 23.4933C10.5131 23.4804 10.5417 23.4745 10.5704 23.4762C10.5991 23.4779 10.6268 23.4872 10.6508 23.5031L16.8468 27.5748C16.8758 27.5936 16.8981 27.621 16.9104 27.6532C16.9228 27.6855 16.9245 27.7208 16.9155 27.7541C16.9064 27.7874 16.887 27.817 16.86 27.8385C16.8331 27.86 16.7999 27.8725 16.7655 27.874Z",fill:"black"}),c.jsx("path",{d:"M7.25634 23.0301C7.34333 23.0301 7.42677 22.9955 7.48828 22.934C7.54985 22.8725 7.5844 22.789 7.5844 22.702V22.1443H22.5471C22.6341 22.1443 22.7175 22.1098 22.779 22.0483C22.8405 21.9868 22.8751 21.9033 22.8751 21.8163C22.8751 21.7294 22.8405 21.6459 22.779 21.5843C22.7175 21.5228 22.6341 21.4883 22.5471 21.4883H7.5844V21.0507C7.5844 20.9637 7.54985 20.8802 7.48828 20.8187C7.42677 20.7572 7.34333 20.7227 7.25634 20.7227C7.16934 20.7227 7.08591 20.7572 7.0244 20.8187C6.96289 20.8802 6.92828 20.9637 6.92828 21.0507V21.4883H4.24492C4.15791 21.4883 4.07448 21.5228 4.01295 21.5843C3.95144 21.6459 3.91687 21.7294 3.91687 21.8163C3.91687 21.9033 3.95144 21.9868 4.01295 22.0483C4.07448 22.1098 4.15791 22.1443 4.24492 22.1443H6.92828V22.702C6.92828 22.789 6.96289 22.8725 7.0244 22.934C7.08591 22.9955 7.16934 23.0301 7.25634 23.0301Z",fill:"#141414"}),c.jsx("path",{d:"M26.7455 3.61441L26.567 2.4597C26.5547 2.37944 26.5726 2.29744 26.6171 2.22957C26.6617 2.1617 26.7299 2.11279 26.8085 2.09229L28.2696 1.71045C27.8884 0.643003 27.8904 0.487511 27.8917 0.433056C27.8982 0.00135239 28.5347 0.00856934 28.5478 0.427807C28.5681 0.570834 28.8017 1.25972 29.0083 1.8233C29.0242 1.86627 29.0309 1.91209 29.028 1.95781C29.0251 2.00352 29.0126 2.04811 28.9914 2.08872C28.9702 2.12933 28.9407 2.16504 28.9049 2.19357C28.8691 2.2221 28.8277 2.2428 28.7833 2.25435L27.2612 2.65193L27.3944 3.51468C27.4009 3.55729 27.399 3.60077 27.3888 3.64264C27.3785 3.6845 27.3601 3.72394 27.3346 3.7587C27.3091 3.79346 27.277 3.82285 27.2402 3.8452C27.2033 3.86756 27.1624 3.88243 27.1198 3.88898C27.0772 3.89553 27.0338 3.89362 26.9919 3.88336C26.95 3.87311 26.9106 3.85471 26.8758 3.82921C26.8411 3.80372 26.8117 3.77163 26.7893 3.73477C26.7669 3.69791 26.752 3.65702 26.7455 3.61441ZM28.5012 5.07814L29.0739 3.67018C29.0906 3.6295 29.1152 3.59258 29.1463 3.56159C29.1774 3.53061 29.2145 3.50619 29.2552 3.48979C29.296 3.47339 29.3396 3.46534 29.3835 3.46613C29.4275 3.46691 29.4708 3.47651 29.5109 3.49435L30.9576 4.13731C31.1196 3.45367 31.3362 2.59748 31.4366 2.42362C31.6517 2.05359 32.2159 2.36982 32.0073 2.74772C31.9371 2.89862 31.6983 3.84141 31.5061 4.67136C31.4952 4.71844 31.4739 4.76253 31.444 4.80047C31.4141 4.8384 31.3761 4.86926 31.3329 4.89083C31.2896 4.91239 31.2421 4.92413 31.1938 4.92521C31.1455 4.92629 31.0975 4.91667 31.0534 4.89705L29.5542 4.23113L29.1087 5.32548C28.9447 5.727 28.3372 5.48031 28.5012 5.07814ZM30.4734 8.36775L29.7989 7.06541L29.0491 7.36064C28.6436 7.51874 28.4054 6.90991 28.8082 6.7505L29.8331 6.34571C29.9087 6.31584 29.9928 6.31513 30.0689 6.34375C30.145 6.37237 30.2078 6.42825 30.2451 6.50055L30.8907 7.74707C31.7803 7.18286 31.9247 7.1527 31.9758 7.14215C32.3865 7.05231 32.5381 7.67163 32.1267 7.78055C31.9968 7.83104 31.4155 8.1873 30.9425 8.49172C30.9041 8.51655 30.861 8.53302 30.8158 8.54013C30.7707 8.54725 30.7246 8.54488 30.6804 8.53314C30.6362 8.52141 30.595 8.50055 30.5593 8.47199C30.5237 8.44336 30.4944 8.40763 30.4734 8.3671V8.36775Z",fill:"#427D8E"}),c.jsx("path",{d:"M20.8651 10.5428C19.6532 14.9866 14.0152 18.8499 9.11191 21.3247C7.73648 22.0189 7.96689 24.2905 9.48119 24.5745L9.57019 24.5912C9.60272 24.5973 9.63576 24.6003 9.66886 24.6003C10.0067 24.6003 10.2601 24.9095 10.1939 25.2408L9.67187 27.8509C9.63677 28.0263 9.6191 28.2049 9.6191 28.3838V30.3801C9.6191 30.8758 10.0209 31.2777 10.5167 31.2777C10.8319 31.2777 11.1241 31.1122 11.2863 30.8419L12.0792 29.5205L13.5552 27.5524C13.7578 27.2822 14.1878 27.4255 14.1878 27.7633C14.1878 27.9574 14.3451 28.1147 14.5392 28.1147H15.945C16.4795 28.1147 16.6931 27.4243 16.2519 27.1225L14.8324 26.1512C13.8929 25.5084 14.4651 24.0375 15.592 24.1985L18.1614 24.5655C18.323 24.5886 18.487 24.588 18.6484 24.5638L21.2435 24.1746C23.652 23.8133 25.4338 21.7443 25.4338 19.3089V7.30924C25.4338 6.00434 24.6444 4.45382 23.5768 5.20415C22.7234 5.80393 21.7435 7.3222 20.8651 10.5428Z",fill:"#DDA74F",fillOpacity:"0.1"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2988_33080",children:c.jsx("rect",{width:"32.5926",height:"32",fill:"white"})})})]})};var Cc={exports:{}},aq=Cc.exports,jg;function sq(){return jg||(jg=1,function(e,t){(function(n,i){e.exports=i()})(aq,function(){return function(n,i,s){i.prototype.isToday=function(){var l="YYYY-MM-DD",u=s();return this.format(l)===u.format(l)}}})}(Cc)),Cc.exports}var oq=sq();const lq=Pi(oq);function Ag(e){return Ze({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M396 512a112 112 0 1 0 224 0 112 112 0 1 0-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"},child:[]}]})(e)}function cq(e){return Ze({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"},child:[]}]})(e)}function oQ(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29-134.4 160a16 16 0 0 1-12 5.71h-.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z"},child:[]}]})(e)}function uq(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(e)}function fq(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(e)}function W7(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M428 224H288a48 48 0 0 1-48-48V36a4 4 0 0 0-4-4h-92a64 64 0 0 0-64 64v320a64 64 0 0 0 64 64h224a64 64 0 0 0 64-64V228a4 4 0 0 0-4-4zm-92 160H176a16 16 0 0 1 0-32h160a16 16 0 0 1 0 32zm0-80H176a16 16 0 0 1 0-32h160a16 16 0 0 1 0 32z"},child:[]},{tag:"path",attr:{d:"M419.22 188.59 275.41 44.78a2 2 0 0 0-3.41 1.41V176a16 16 0 0 0 16 16h129.81a2 2 0 0 0 1.41-3.41z"},child:[]}]})(e)}function lQ(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M145.61 464h220.78c19.8 0 35.55-16.29 33.42-35.06C386.06 308 304 310 304 256s83.11-51 95.8-172.94c2-18.78-13.61-35.06-33.41-35.06H145.61c-19.8 0-35.37 16.28-33.41 35.06C124.89 205 208 201 208 256s-82.06 52-95.8 172.94c-2.14 18.77 13.61 35.06 33.41 35.06z"},child:[]},{tag:"path",attr:{d:"M343.3 432H169.13c-15.6 0-20-18-9.06-29.16C186.55 376 240 356.78 240 326V224c0-19.85-38-35-61.51-67.2-3.88-5.31-3.49-12.8 6.37-12.8h142.73c8.41 0 10.23 7.43 6.4 12.75C310.82 189 272 204.05 272 224v102c0 30.53 55.71 47 80.4 76.87 9.95 12.04 6.47 29.13-9.1 29.13z"},child:[]}]})(e)}Ca.extend(lq);function dq({assignment:e}){const{user:t}=Vi(),[n,i]=y.useState(null),[s,l]=y.useState(null),[u,d]=y.useState(!1),[h,m]=y.useState(!1),p=y.useRef(null),[C,v]=y.useState(!1),[w,b]=y.useState(!1);async function S(){if(t){b(!0);try{const O=await Xt.listUserSubmissions(t==null?void 0:t.id,e.id);i(O.data.data)}catch(O){console.error("Error loading submissions:",O)}finally{b(!1)}}}async function E(){if(n&&n.length>0){Et("You have already submitted the task");return}if(!(!s||!t)){d(!0);try{const O=new FormData;O.append("file",s),O.append("assignment_id",e.id.toString()),O.append("user_id",t.id.toString()),(await Xt.submitAssignment(e.id,O)).status==200&&(await S(),l(null),p.current&&(p.current.value=""),Et.success("Assignment submitted successfully!"))}catch(O){console.error("Error submitting assignment:",O),Et.error("Failed to submit assignment")}finally{d(!1)}}}async function j(){if(e.assignment_file){m(!0);try{const O=new Blob([e.assignment_file.url],{type:e.assignment_file.mime_type}),z=window.URL.createObjectURL(O),I=document.createElement("a");I.href=z,I.download=e.assignment_file.name,document.body.appendChild(I),I.click(),document.body.removeChild(I),window.URL.revokeObjectURL(z),Et.success("File downloaded successfully")}catch(O){console.error("Error downloading file:",O),Et.error("Failed to download file")}finally{m(!1)}}}async function T(){if(e.assignment_file)try{const O=e.assignment_file.url;window.open(O,"_blank")}catch(O){console.error("Error viewing file:",O),Et.error("Failed to open file")}}function L(){if(s)try{const O=URL.createObjectURL(s);window.open(O,"_blank"),setTimeout(()=>{URL.revokeObjectURL(O)},1e3)}catch(O){console.error("Error previewing file:",O),Et.error("Failed to preview file")}}function D(){l(null),p.current&&(p.current.value="")}function M(O){var I;const z=(I=O.target.files)==null?void 0:I[0];z&&l(z)}function k(){var O;(O=p.current)==null||O.click()}return y.useEffect(()=>{v(!0);const O=setTimeout(()=>{v(!1)},500);return()=>clearTimeout(O)},[e.id]),y.useEffect(()=>{S()},[e.id,t]),C?c.jsxs("div",{className:"bg-neutral-100 rounded-2xl p-8",children:[c.jsxs("header",{className:"flex items-center justify-between mb-4",children:[c.jsx(fe,{className:"h-8 w-64"}),c.jsx(fe,{className:"h-6 w-32"})]}),c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx(fe,{className:"h-6 w-48"}),c.jsx(fe,{className:"h-8 w-40 rounded-full"})]}),c.jsxs("div",{className:"mt-8",children:[c.jsx(fe,{className:"h-6 w-32 mb-4"}),c.jsx("div",{className:"bg-white p-4 rounded-xl",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fe,{className:"w-12 h-12 rounded-full"}),c.jsxs("div",{children:[c.jsx(fe,{className:"h-5 w-48 mb-2"}),c.jsx(fe,{className:"h-4 w-24"})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fe,{className:"w-12 h-12 rounded-full"}),c.jsx(fe,{className:"w-12 h-12 rounded-full"})]})]})})]}),c.jsxs("div",{className:"mt-8",children:[c.jsx(fe,{className:"h-6 w-24 mb-4"}),c.jsxs("div",{className:"text-center",children:[c.jsx(fe,{className:"h-32 w-32 mx-auto mb-4"}),c.jsx(fe,{className:"h-5 w-64 mx-auto"})]})]}),c.jsx("div",{className:"mt-12",children:c.jsx(fe,{className:"h-14 w-full rounded-lg"})})]}):c.jsxs("div",{className:"bg-neutral-100  rounded-2xl p-8",children:[c.jsxs("header",{className:"text-2xl flex items-center justify-between mb-4",children:[c.jsx("span",{children:e.title}),c.jsxs("span",{className:"text-main-300 text-xl",children:[c.jsx("span",{className:e.is_graded?"text-main-400":"text-neutral-300",children:e.is_graded?e.points_awarded:"0"})," ","/ ",e.max_points," Points"]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("span",{className:"flex items-center gap-3",children:[c.jsx(Ee,{icon:Zx}),"Created : ",Ca(e.created_at).format("ddd D/M/YYYY")]}),c.jsxs(Wx,{className:"flex items-center gap-4 rounded-full px-4 py-1 bg-red-100 text-red-400 text-base ",children:[c.jsx(Ee,{icon:O_,className:"!size-5"}),"Due :",Ca(e.due_date).isToday()?` Today ${Ca(e.due_date).format("hh:mm A")}`:` ${Ca(e.due_date).format("DD/MM/YYYY hh:mm A")}`]})]}),e.is_graded&&e.feedback&&c.jsx("div",{className:"mt-6",children:c.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-xl p-4",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsx(Ee,{icon:Ix,className:"text-green-600"}),c.jsx("h3",{className:"text-lg font-medium text-green-800",children:"Assignment Graded"})]}),c.jsxs("div",{className:"bg-white rounded-lg p-4",children:[c.jsx("h4",{className:"font-medium text-gray-800 mb-2",children:"Instructor Feedback:"}),c.jsx("p",{className:"text-gray-700 whitespace-pre-wrap",children:e.feedback})]})]})}),c.jsxs("div",{className:"mt-8",children:[c.jsx("h3",{className:"mb-4 text-xl",children:"Attachments"}),c.jsxs("div",{className:"bg-white p-4 rounded-xl flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"w-12 h-12 rounded-full bg-main-400/10 flex items-center justify-center text-2xl",children:c.jsx(W7,{className:"text-main-400"})}),c.jsxs("span",{children:[c.jsx("h4",{className:"text-lg -mb-2",children:e.assignment_file.name}),c.jsx("small",{className:"text-gray-400",children:e.assignment_file.mime_type})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(st,{size:"icon",variant:"secondary",className:"rounded-full size-12",onClick:T,title:"View file",children:c.jsx(Ag,{className:"size-8"})}),c.jsx(st,{size:"icon",variant:"secondary",className:"rounded-full size-12",onClick:j,disabled:h,title:"Download file",children:c.jsx(Ee,{icon:w_,className:`size-8 ${h?"animate-pulse":""}`})})]})]})]}),s&&c.jsxs("div",{className:"mt-8",children:[c.jsx("h3",{className:"mb-4 text-xl",children:"Selected File"}),c.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-4",children:[c.jsxs("div",{className:"bg-white p-4 rounded-xl flex items-center justify-between mb-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"w-12 h-12 rounded-full bg-main-400/10 flex items-center justify-center text-2xl",children:c.jsx(W7,{className:"text-main-400"})}),c.jsxs("span",{children:[c.jsx("h4",{className:"text-lg -mb-2 line-clamp-1",children:s.name}),c.jsx("small",{className:"text-gray-400",children:s.type||"unknown"}),c.jsxs("small",{className:"text-gray-400 block",children:[(s.size/1024/1024).toFixed(2)," MB"]})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(st,{size:"icon",variant:"secondary",className:"rounded-full size-10",onClick:L,title:"Preview file",children:c.jsx(Ag,{className:"size-5"})}),c.jsx(st,{size:"icon",variant:"secondary",className:"rounded-full size-10 bg-red-100 text-red-500 hover:bg-red-200",onClick:D,title:"Remove file",children:c.jsx(cq,{className:"size-5"})})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(st,{className:"bg-white hover:bg-neutral-50 text-black border",onClick:D,children:"Choose Different File"}),c.jsx(st,{className:"btn-primary flex-1",onClick:E,disabled:u,children:u?"Submitting...":"Confirm Submit"})]})]})]}),c.jsxs("div",{className:"mt-8",children:[c.jsx("h3",{className:"mb-4 text-xl",children:"Your Work"}),w?c.jsx("div",{className:"space-y-3",children:c.jsx("div",{className:"bg-white p-4 rounded-xl",children:c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fe,{className:"w-12 h-12 rounded-full"}),c.jsxs("div",{children:[c.jsx(fe,{className:"h-5 w-48 mb-2"}),c.jsx(fe,{className:"h-4 w-24"})]})]})})})}):n&&n.length>0&&n[0].submitted_files&&n[0].submitted_files.length>0?c.jsx(c.Fragment,{children:n==null?void 0:n[0].submitted_files.map((O,z)=>c.jsx("div",{className:"bg-white p-4 rounded-xl flex items-center justify-between mb-2 gap-6",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"w-12 h-12 rounded-full bg-main-400/10 flex items-center justify-center text-2xl",children:c.jsx(W7,{className:"text-main-400"})}),c.jsxs("span",{children:[c.jsx("h4",{className:"text-lg -mb-2 line-clamp-1",children:O.name||"Assignment answer"}),c.jsx("small",{className:"text-gray-400",children:O.mime_type||"pdf"})]})]})},O.id||z))}):c.jsxs("div",{className:"",children:[c.jsx("img",{className:"mx-auto pointer-events-none",draggable:!1,src:"/empty_assignment.svg",alt:"You have no attachments Uploaded."}),c.jsx("h3",{className:"text-center text-neutral-500",children:"You have no attachments Uploaded."})]})]}),c.jsx("input",{ref:p,type:"file",onChange:M,className:"hidden",accept:".pdf,.doc,.docx,.txt,.png,.jpg,.jpeg"}),!s&&c.jsx("div",{className:"flex items-center justify-between gap-3 mt-12",children:c.jsxs(st,{className:"btn-primary grow h-auto py-4",onClick:k,disabled:!!n&&n.length>0,children:[c.jsx(Ee,{icon:k_}),n&&n.length>0?"You have already submitted the task":"Add Work"]})})]})}const Mg={id:0,quiz_id:"",user_id:0,score:0,max_score:0,attempts:0,completed_at:"",quiz:{title:"",max_attempts:"0"},user:{id:0,name:"",email:"",avatar:""},answers:[{id:0,question_id:"",question_text:"",question_type:"",selected_answer:0,correct_answer:0,is_correct:!1,points:0,options:[{id:0,text:""},{id:0,text:""},{id:0,text:""},{id:0,text:""}]}]},A1=7,hq=()=>c.jsx("div",{className:"min-h-screen p-4 md:p-8 font-sans",children:c.jsx("div",{className:"max-w-2xl mx-auto text-center",children:c.jsxs("div",{className:"bg-main-400/10 rounded-xl p-8 mb-6 inline-block",children:[c.jsx(xW,{className:"text-main-400 mx-auto text-6xl mb-4"}),c.jsx("h2",{className:"text-2xl font-bold text-neutral-800 mb-2",children:"No participants yet"}),c.jsx("p",{className:"text-neutral-600",children:"Be the first to complete the practice and appear on the leaderboard!"})]})})}),mq=()=>c.jsx("div",{className:"min-h-screen p-4 md:p-8 font-sans",children:c.jsxs("div",{className:"max-w-2xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx(fe,{className:"h-8 w-64 mx-auto mb-4"}),c.jsxs("div",{className:"inline-flex items-center bg-main-400/20 p-3 rounded-lg mx-auto",children:[c.jsx(fe,{className:"w-10 h-10 rounded-md"}),c.jsx(fe,{className:"h-4 w-48 ml-3"})]})]}),c.jsxs("div",{className:"flex items-end justify-center mb-10",children:[c.jsxs("div",{className:"text-center w-1/4",children:[c.jsx(fe,{className:"h-[220px] w-full bg-main-400/20 "}),c.jsx(fe,{className:"h-12 w-24 mx-auto mt-2 "})]}),c.jsxs("div",{className:"text-center w-1/4",children:[c.jsx(fe,{className:"h-[250px] w-full bg-main-400/30 "}),c.jsx(fe,{className:"h-12 w-28 mx-auto mt-2 "})]}),c.jsxs("div",{className:"text-center w-1/4",children:[c.jsx(fe,{className:"h-[190px] w-full bg-main-400/10 "}),c.jsx(fe,{className:"h-12 w-24 mx-auto mt-2 "})]})]}),c.jsx("div",{className:"space-y-3",children:[...Array(A1)].map((e,t)=>c.jsxs("div",{className:"flex items-center p-3 rounded-lg mb-3 bg-main-400/20",children:[c.jsx(fe,{className:"w-8 h-8 mr-4"}),c.jsx(fe,{className:"size-12 rounded-full me-2"}),c.jsx(fe,{className:"h-6 flex-grow mx-2"}),c.jsx(fe,{className:"w-16 h-6"})]},t))}),c.jsxs("div",{className:"flex items-center justify-center space-x-4 mt-8",children:[c.jsx(fe,{className:"p-2 rounded-full w-8 h-8"}),c.jsx(fe,{className:"h-6 w-24"}),c.jsx(fe,{className:"p-2 rounded-full w-8 h-8"})]})]})}),pq=({topThree:e,currentUserId:t})=>{var n,i,s,l,u,d,h,m,p,C,v,w,b,S,E,j,T,L,D,M,k,O,z,I;return c.jsxs("div",{className:"flex items-end justify-center mb-10",children:[c.jsxs("div",{className:"text-center w-1/4",children:[c.jsxs("div",{className:"relative flex flex-col h-[220px] bg-[#FF3B30] p-3",children:[c.jsx("div",{className:"text-white text-8xl font-bold",children:"2"}),c.jsx("div",{className:"relative h-full",children:c.jsxs(Hr,{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 size-18 cursor-pointer border-2 border-white",children:[((n=e[1])==null?void 0:n.user.avatar)&&c.jsx(Ir,{src:e[1].user.avatar}),c.jsx(Zr,{className:"bg-main-400",children:Ur((i=e[1])==null?void 0:i.user.name)})]})})]}),c.jsxs("div",{className:`h-12 mt-2 p-1 rounded ${((s=e[1])==null?void 0:s.user.id)===t?"bg-main-400/10":""}`,children:[c.jsx("h3",{className:`font-semibold truncate ${((l=e[1])==null?void 0:l.user.id)===t?"text-main-400/80":"text-black"}`,children:((u=e[1])==null?void 0:u.user.name)||""}),((d=e[1])==null?void 0:d.score)&&c.jsxs("p",{className:`text-sm ${((h=e[1])==null?void 0:h.user.id)===t?"text-main-400/80":"text-main-400"}`,children:[(m=e[1])==null?void 0:m.score," P"]})]})]}),c.jsxs("div",{className:"text-center w-1/4",children:[c.jsxs("div",{className:"relative flex flex-col h-[250px] bg-[#1FC16B] p-3",children:[c.jsx("div",{className:"text-white text-9xl font-bold",children:"1"}),c.jsxs("div",{className:"relative h-full",children:[c.jsx(gW,{className:"absolute -top-11 left-1/2 transform -translate-x-1/2 text-amber-400 text-6xl"}),c.jsxs(Hr,{className:"absolute bottom-1 left-1/2 transform -translate-x-1/2 size-20 cursor-pointer border-2 border-white",children:[((p=e[0])==null?void 0:p.user.avatar)&&c.jsx(Ir,{src:e[0].user.avatar}),c.jsx(Zr,{className:"bg-main-400",children:Ur((C=e[0])==null?void 0:C.user.name)})]})]})]}),c.jsxs("div",{className:`h-12 mt-2 p-1 rounded ${((v=e[0])==null?void 0:v.user.id)===t?"bg-main-400/10":""}`,children:[c.jsx("h3",{className:`font-semibold truncate ${((w=e[0])==null?void 0:w.user.id)===t?"text-main-400/80":"text-black"}`,children:((b=e[0])==null?void 0:b.user.name)||""}),((S=e[0])==null?void 0:S.score)&&c.jsxs("p",{className:`text-sm ${((E=e[0])==null?void 0:E.user.id)===t?"text-main-400/80":"text-main-400"}`,children:[(j=e[0])==null?void 0:j.score," P"]})]})]}),c.jsxs("div",{className:"text-center w-1/4",children:[c.jsxs("div",{className:"relative flex flex-col h-[190px] bg-[#DFB400] p-3",children:[c.jsx("div",{className:"text-white text-8xl font-bold",children:"3"}),c.jsx("div",{className:"relative h-full",children:c.jsxs(Hr,{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 size-18 cursor-pointer border-2 border-white",children:[((T=e[2])==null?void 0:T.user.avatar)&&c.jsx(Ir,{src:e[2].user.avatar}),c.jsx(Zr,{className:"bg-main-400",children:Ur((L=e[2])==null?void 0:L.user.name)})]})})]}),c.jsxs("div",{className:`h-12 mt-2 p-1 rounded ${((D=e[2])==null?void 0:D.user.id)===t?"bg-main-400/10":""}`,children:[c.jsx("h3",{className:`font-semibold truncate ${((M=e[2])==null?void 0:M.user.id)===t?"text-main-400/80":"text-black"}`,children:((k=e[2])==null?void 0:k.user.name)||""}),((O=e[2])==null?void 0:O.score)&&c.jsxs("p",{className:`text-sm ${((z=e[2])==null?void 0:z.user.id)===t?"text-main-400/80":"text-main-400"}`,children:[(I=e[2])==null?void 0:I.score," P"]})]})]})]})},gq=({student:e,rank:t,isCurrentUser:n})=>c.jsxs("div",{className:`flex items-center p-3 rounded-lg mb-3 ${n?"bg-main-400/20":"bg-transparent"}`,children:[c.jsx("div",{className:"flex-shrink-0 w-8 text-center mr-4",children:c.jsx("span",{className:`font-bold text-lg ${n?"text-main-400/80":"text-black"}`,children:t})}),c.jsxs(Hr,{className:"size-12 cursor-pointer border-2 border-white me-2",children:[c.jsx(Ir,{src:e==null?void 0:e.user.avatar}),c.jsx(Zr,{className:"bg-main-400",children:Ur(e==null?void 0:e.user.name)})]}),c.jsx("div",{className:"flex-grow",children:c.jsx("h4",{className:`font-semibold ${n?"text-main-400/80":"text-black"} truncate`,children:e==null?void 0:e.user.name})}),c.jsxs("div",{className:"text-main-400 font-semibold",children:[e==null?void 0:e.score," points"]})]}),Cq=({currentPage:e,totalPages:t,onPageChange:n})=>{const i=()=>{e>1&&n(e-1)},s=()=>{e<t&&n(e+1)};return c.jsxs("div",{className:"flex items-center justify-center space-x-4 mt-8 text-black",children:[c.jsx("button",{onClick:i,disabled:e===1,className:"p-2 rounded-full disabled:opacity-50 hover:bg-main-400",children:c.jsx(uq,{})}),c.jsxs("span",{className:"font-semibold text-black",children:["Page ",e," of ",t]}),c.jsx("button",{onClick:s,disabled:e===t,className:"p-2 rounded-full disabled:opacity-50 hover:bg-main-400",children:c.jsx(fq,{})})]})};function vq({quiz:e}){const{course_id:t}=Xr(),[n,i]=y.useState(!0),[s,l]=y.useState(1),[u,d]=y.useState(),[h,m]=y.useState(),[p,C]=y.useState(36),[v,w]=y.useState();if(y.useEffect(()=>{async function L(){try{i(!0);const D=await Xt.getQuizLeaderBoard(e==null?void 0:e.id);d(D.data.data),D.data.data.current_user_rank!==void 0&&m(D.data.data.current_user_rank),D.data.data.current_user_id!==void 0&&C(D.data.data.current_user_id),D.data.data.current_user_percentile_better_than!==void 0&&w(D.data.data.current_user_percentile_better_than)}catch(D){console.error(D)}finally{i(!1)}}L()},[t,e==null?void 0:e.id]),n)return c.jsx(mq,{});if((u==null?void 0:u.total_participants)==0)return c.jsx(hq,{});const S=[...(u==null?void 0:u.top_three)||[],...(u==null?void 0:u.rest)||[]].slice(3),E=Math.max(1,Math.ceil(((S==null?void 0:S.length)||0)/A1)),j=Math.min(Math.max(s,1),E);j!==s&&l(j);const T=S.slice((j-1)*A1,j*A1);return c.jsx("div",{className:"min-h-screen p-4 md:p-8 font-sans",children:c.jsxs("div",{className:"max-w-2xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-3xl font-bold mb-2",children:u==null?void 0:u.quiz_info.title}),h>0&&c.jsxs("div",{className:"inline-flex items-center bg-main-400/20 p-3 rounded-lg",children:[c.jsxs("span",{className:"bg-main-400 text-white text-xs font-bold rounded-md w-10 h-10 mr-3 flex items-center justify-center",children:["#",h]}),c.jsxs("p",{className:"text-black text-sm",children:["You are doing better than ",v,"% of other students!"]})]})]}),c.jsx(pq,{topThree:(u==null?void 0:u.top_three)||[],currentUserId:p}),c.jsx("div",{children:T==null?void 0:T.map((L,D)=>{var k;const M=(j-1)*A1+D+4;return c.jsx(gq,{student:L,rank:M,isCurrentUser:((k=L==null?void 0:L.user)==null?void 0:k.id)===p},D)})}),E>1&&c.jsx(Cq,{currentPage:j,totalPages:E,onPageChange:l})]})})}function xq({quiz:e,setStarted:t,setActiveUi:n,setReviewing:i,setSelectedAnswers:s,setCurrentPage:l,questions:u,answers:d,results:h,finishedAttempt:m,setActiveAttempt:p}){const[C,v]=y.useState(!0),[w,b]=y.useState(!0),[S,E]=y.useState(e.max_attempts-e.remaining_attempts==0),[j,T]=y.useState((e==null?void 0:e.current_attempts)??(h==null?void 0:h.attempts)??(d==null?void 0:d.attempts)??0),[L,D]=y.useState(e.score??(d==null?void 0:d.score)??(h==null?void 0:h.score)??0);y.useEffect(()=>{if(h){v(!0),b(!0);const z=setTimeout(()=>{T(h.attempts),D(h.score),v(!1),b(!1)},500);return()=>clearTimeout(z)}},[h,e]),y.useEffect(()=>{m&&E(!1)},[m]);async function M(){var z;if(e){if(e.remaining_attempts==0){Et.error("You have reached the maximum number of attempts for this quiz.");return}try{const I=await Xt.startQuiz(e.id);I.status===200&&(t(!0),i(!1),n("quiz"),s(Array(u==null?void 0:u.length).fill(null)),l(0),p(I.data.data.active_attempt))}catch(I){ot.isAxiosError(I)&&Et.error(((z=I.response)==null?void 0:z.data.message)||"Error starting quiz"),Et.error("Error starting quiz:")}}}function k(){return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex flex-col items-center gap-3",children:[c.jsxs("svg",{width:"205",height:"194",viewBox:"0 0 205 194",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[c.jsx("circle",{cx:"102.5",cy:"97",r:"97",fill:"#427D8E",fillOpacity:"0.1"}),c.jsx("rect",{y:"7",width:"205",height:"181",fill:"url(#pattern0_2988_38310)"}),c.jsx("g",{className:"mix-blend-color",filter:"url(#filter0_f_2988_38310)",children:c.jsx("path",{d:"M109.5 124.001L110 151.501L134 133.002L139 124.001L164.5 61.0015C167 59.0014 173.919 49.2814 164.5 43.0011C152.5 35 149.667 40.9994 147 42.9994L124 86.0011L109.5 120.002V124.001Z",fill:"#427D8E"})}),c.jsxs("defs",{children:[c.jsx("pattern",{id:"pattern0_2988_38310",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:c.jsx("use",{xlinkHref:"#image0_2988_38310",transform:"scale(0.00243902 0.00276243)"})}),c.jsxs("filter",{id:"filter0_f_2988_38310",x:"103.2",y:"32.657",width:"72.3988",height:"125.145",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[c.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),c.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),c.jsx("feGaussianBlur",{stdDeviation:"3.15",result:"effect1_foregroundBlur_2988_38310"})]}),c.jsx("image",{id:"image0_2988_38310",width:"410",height:"362",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64, "})]})]}),c.jsx("h4",{className:"font-medium text-2xl",children:"Make sure you understand"}),c.jsx("p",{className:"text-center font-light text-neutral-400 text-base max-w-[40ch]",children:"Trying to solve the test helps you know how much you have understood the information."})]}),c.jsxs("div",{className:"mt-8",children:[c.jsx("h5",{className:"text-main-400 text-lg text-center mb-1",children:"Number of attempts"}),C?c.jsx(fe,{className:"bg-neutral-300 h-6 w-16 mx-auto"}):c.jsxs("p",{className:"text-center font-bold",children:[e.max_attempts-e.remaining_attempts," /"," ",e.max_attempts]})]}),c.jsxs("div",{className:"bg-main-400/10 px-4 py-2 rounded-lg flex items-center gap-2 w-fit mx-auto mt-8",children:[c.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.5 21C18.0228 21 22.5 16.5228 22.5 11C22.5 5.47715 18.0228 1 12.5 1C6.97715 1 2.5 5.47715 2.5 11C2.5 16.5228 6.97715 21 12.5 21Z",fill:"#FFF59D",fillOpacity:"0.2"}),c.jsx("path",{d:"M19.0014 11C19.0014 7.15 15.7014 4.1 11.7514 4.55C8.75143 4.9 6.35143 7.3 6.05143 10.3C5.80143 12.6 6.75143 14.65 8.35143 15.95C9.05143 16.55 9.50143 17.4 9.50143 18.35V18.5H15.5014V18.45C15.5014 17.55 15.9014 16.65 16.6014 16.05C18.0514 14.85 19.0014 13.05 19.0014 11Z",fill:"#DFB400"}),c.jsx("path",{d:"M15.8008 10.1004L14.3008 9.10039C14.1508 9.00039 13.9008 9.00039 13.7508 9.10039L12.5008 9.90039L11.3008 9.10039C11.1508 9.00039 10.9008 9.00039 10.7508 9.10039L9.25078 10.1004C9.15078 10.2004 9.05078 10.3004 9.05078 10.4504C9.05078 10.6004 9.05078 10.7504 9.15078 10.8504L11.0508 13.2004V18.5004H12.0508V13.0004C12.0508 12.9004 12.0008 12.8004 11.9508 12.7004L10.3008 10.6504L11.0508 10.1504L12.2508 10.9504C12.4008 11.0504 12.6508 11.0504 12.8008 10.9504L14.0008 10.1504L14.7508 10.6504L13.1008 12.7004C13.0508 12.8004 13.0008 12.9004 13.0008 13.0004V18.5004H14.0008V13.2004L15.9008 10.8504C16.0008 10.7504 16.0508 10.6004 16.0008 10.4504C15.9508 10.3004 15.9008 10.1504 15.8008 10.1004Z",fill:"#FFF59D"}),c.jsx("path",{d:"M12.5 23.5C13.3284 23.5 14 22.8284 14 22C14 21.1716 13.3284 20.5 12.5 20.5C11.6716 20.5 11 21.1716 11 22C11 22.8284 11.6716 23.5 12.5 23.5Z",fill:"#427D8E"}),c.jsx("path",{d:"M13.5 22.5H11.5C10.4 22.5 9.5 21.6 9.5 20.5V18H15.5V20.5C15.5 21.6 14.6 22.5 13.5 22.5Z",fill:"#69B796"}),c.jsx("path",{d:"M15.5 20.5L9.7 21.3C9.85 21.65 10.15 22 10.5 22.2L15.2 21.55C15.4 21.25 15.5 20.9 15.5 20.5ZM9.5 19.35V20.35L15.5 19.5V18.5L9.5 19.35Z",fill:"#427D8E"})]}),c.jsxs("span",{className:"text-main-400 font-light",children:["This Quiz ",e.duration," Minutes From Start"]})]}),c.jsx(st,{className:"btn-primary h-auto text-xl px-12 block mx-auto mt-8",onClick:()=>{M()},children:"Start Practice Now"})]})}function O(){return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex flex-col items-center gap-3",children:[c.jsxs("svg",{width:"132",height:"134",viewBox:"0 0 132 134",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_5103_6194)",children:[c.jsx("rect",{x:"0.271973",y:"0.287109",width:"131.456",height:"133.576",rx:"65.728",fill:"#427D8E"}),c.jsx("path",{d:"M34.1655 102.018L-2.21141 102.954L-14.8209 102.702L-14.9839 143.585L-3.27923 143.867L35.7201 144.46C42.0073 144.761 44.6497 141.798 46.2098 125.624C47.781 109.453 42.3831 102.176 34.1655 102.018Z",fill:"#541A30"}),c.jsx("path",{d:"M77.8326 98.1621H57.9516C51.7758 98.1621 46.3947 98.9286 41.6465 100.323C26.2158 104.855 15.8544 119.341 16.0001 135.423L16.7204 214.934C16.7204 237.328 117.096 235.529 117.096 214.934L119.99 141.976C120.929 118.306 102.186 98.3828 78.4975 98.1652C78.2769 98.1632 78.0552 98.1621 77.8326 98.1621Z",fill:"#FF8256"}),c.jsx("path",{d:"M47.3448 98.7413C47.5252 101.338 44.4745 110.704 62.4894 112.847C80.5044 114.99 84.8392 105.631 85.1555 97.9395C91.9777 97.9395 121.306 101.531 121.306 136.035L119.623 242.983H9.56152L12.1837 123.349C12.4679 111.586 28.2028 101.609 47.3448 98.7413Z",fill:"#541A30"}),c.jsx("path",{d:"M43.6955 99.4601C43.7178 99.1489 43.939 98.8791 44.2391 98.7938C45.9506 98.3076 47.7531 97.8972 49.6549 97.5755C50.1865 97.4856 50.6484 97.9913 50.4877 98.506C50.3221 99.0363 50.2507 99.3715 50.2389 99.9323C50.1284 105.175 54.3521 109.524 63.0097 109.706C71.6786 109.889 81.5086 105.836 81.619 100.594C81.6372 99.7306 81.4622 98.8917 81.1216 98.0905C80.9015 97.5727 81.2639 97.0008 81.8259 97.0304C83.3186 97.1089 85.7536 97.2496 87.2904 97.4029C87.614 97.4352 87.8837 97.6702 87.9467 97.9893C88.1224 98.8788 88.2061 99.7942 88.1863 100.732C88.1155 104.091 86.4006 107.111 83.6315 109.577C79.0043 113.698 70.2343 116.62 59.922 115.524C49.6097 114.428 46.8788 109.819 44.8668 105.478C44.1026 103.83 43.5164 101.964 43.6955 99.4601Z",fill:"#7A364F"}),c.jsx("path",{d:"M75.8418 102.413C75.8597 108.147 56.0809 109.17 56.06 102.475L56.0107 86.6495L75.7925 86.5879L75.8418 102.413Z",fill:"#FF8256"}),c.jsx("path",{d:"M67.916 86.0937L74.6337 86.6412C84.1768 87.4189 92.5434 80.3133 93.3212 70.7702L94.5033 56.2643L70.5065 54.3086L67.916 86.0937Z",fill:"#541A30"}),c.jsx("path",{d:"M71.207 90.5538C64.6785 91.2749 57.9937 90.7131 51.936 89.0805C44.4775 87.0703 39.5325 79.9998 40.16 72.3007L41.9751 50.0285C42.6946 41.2006 50.4343 34.6274 59.2622 35.3468L72.4724 36.4234C81.3003 37.1429 87.8735 44.8826 87.154 53.7105L85.3436 75.9249C84.7224 83.548 78.8092 89.7142 71.207 90.5538Z",fill:"#FF8256"}),c.jsx("path",{d:"M64.5634 91.3203C61.7145 91.3203 58.9069 91.0522 56.1729 90.5173C55.9764 90.4788 55.8483 90.2884 55.8867 90.0918C55.9251 89.8953 56.1154 89.7672 56.3121 89.8056C60.4609 90.6173 64.7846 90.8043 69.1633 90.3613C69.3626 90.3414 69.5403 90.4864 69.5605 90.6855C69.5807 90.8848 69.4355 91.0626 69.2362 91.0827C67.6702 91.2411 66.1106 91.3203 64.5634 91.3203Z",fill:"#541A30"}),c.jsx("path",{d:"M71.5531 90.7033C71.381 90.7033 71.2283 90.5803 71.1967 90.405C71.1613 90.208 71.2922 90.0195 71.4892 89.9839C72.5827 89.7868 73.6775 89.5523 74.7429 89.2871C75.0028 89.2224 75.264 89.1501 75.5194 89.0724C75.7109 89.0143 75.9135 89.122 75.9718 89.3136C76.0301 89.5051 75.9222 89.7077 75.7307 89.766C75.4634 89.8475 75.1901 89.923 74.9181 89.9908C73.8373 90.2599 72.7269 90.4976 71.6178 90.6975C71.5961 90.7014 71.5744 90.7033 71.5531 90.7033Z",fill:"#541A30"}),c.jsx("path",{d:"M94.3736 57.85L96.2489 34.8396C96.4463 32.4177 94.648 30.2922 92.2268 30.0858L44.4979 26.0162C42.064 25.8087 39.9247 27.6187 39.7262 30.0534L38.3771 46.6081C38.1806 49.0195 38.7981 51.4273 40.131 53.4464L41.5241 55.5567C41.5241 55.5567 42.1326 50.5785 42.6056 47.9758C43.5874 42.5735 48.5099 38.8011 53.9793 39.2863L73.8753 41.0508C79.6785 41.5655 83.9792 46.6662 83.5059 52.4729L83.1645 56.662C83.1645 56.662 85.1173 56.7477 86.8882 56.9655",fill:"#541A30"}),c.jsx("path",{d:"M91.3385 57.3255L86.8883 56.9629L86.7743 58.3617L85.7351 71.1123L85.6211 72.5111L90.0714 72.8739C94.365 73.2238 98.1303 70.0258 98.4803 65.7323C98.8302 61.4387 95.6321 57.6755 91.3385 57.3255Z",fill:"#FF8256"}),c.jsx("path",{d:"M91.0328 61.082C93.2491 61.2626 94.9053 63.2116 94.7248 65.4266C94.5441 67.6429 92.5941 69.299 90.3779 69.1184L89.6836 69.0618L90.3385 61.0254L91.0328 61.082Z",fill:"#C94126"}),c.jsx("path",{d:"M90.7084 69.4977C90.5891 69.4977 90.469 69.4928 90.3482 69.483L89.6539 69.4264C89.4544 69.4102 89.3057 69.2352 89.322 69.0356C89.3383 68.8359 89.5132 68.6878 89.7129 68.7037L90.4071 68.7602C90.508 68.7684 90.6084 68.7725 90.7078 68.7725C92.5977 68.7726 94.207 67.3166 94.3632 65.4004C94.5275 63.3846 93.0202 61.6109 91.0031 61.4465L90.3089 61.3899C90.1093 61.3737 89.9606 61.1987 89.977 60.9991C89.9933 60.7995 90.1683 60.6511 90.3678 60.6672L91.062 60.7238C93.4776 60.9206 95.2827 63.045 95.0859 65.4593C94.8989 67.754 92.9715 69.4976 90.7084 69.4977Z",fill:"#541A30"}),c.jsx("path",{d:"M51.7884 61.1888C53.0554 60.1127 53.2102 58.2133 52.1342 56.9463C51.0582 55.6793 49.1588 55.5245 47.8918 56.6005C46.6248 57.6766 46.4699 59.5759 47.546 60.8429C48.622 62.1099 50.5214 62.2648 51.7884 61.1888Z",fill:"#541A30"}),c.jsx("path",{d:"M69.1647 63.2751C70.7517 62.7804 71.6372 61.0929 71.1425 59.506C70.6479 57.919 68.9604 57.0335 67.3734 57.5282C65.7865 58.0228 64.901 59.7103 65.3956 61.2973C65.8903 62.8842 67.5778 63.7697 69.1647 63.2751Z",fill:"#541A30"}),c.jsx("path",{d:"M69.3349 69.2991C69.2714 69.2991 69.2072 69.2824 69.1489 69.2475C68.9771 69.1445 68.9213 68.9218 69.0243 68.7501L70.7768 65.8266C70.8796 65.6548 71.1024 65.5991 71.2741 65.702C71.4459 65.805 71.5016 66.0277 71.3987 66.1994L69.6462 69.1229C69.5782 69.2363 69.4581 69.2991 69.3349 69.2991Z",fill:"#C94126"}),c.jsx("path",{d:"M71.2162 69.4534C71.1528 69.4534 71.0885 69.4367 71.0302 69.4018C70.8585 69.2988 70.8027 69.0761 70.9057 68.9044L72.6581 65.9809C72.761 65.8092 72.9838 65.7534 73.1555 65.8563C73.3272 65.9593 73.383 66.182 73.28 66.3537L71.5275 69.2772C71.4596 69.3906 71.3394 69.4534 71.2162 69.4534Z",fill:"#C94126"}),c.jsx("path",{d:"M73.0986 69.6057C73.0351 69.6057 72.9709 69.5891 72.9125 69.5541C72.7408 69.4511 72.685 69.2284 72.788 69.0567L74.5406 66.1332C74.6434 65.9615 74.866 65.9058 75.0379 66.0087C75.2096 66.1116 75.2654 66.3343 75.1624 66.506L73.4099 69.4295C73.3419 69.5429 73.2218 69.6057 73.0986 69.6057Z",fill:"#C94126"}),c.jsx("path",{d:"M48.4664 67.599C48.3221 67.599 48.1856 67.5123 48.1293 67.3699L46.8733 64.2013C46.7995 64.0151 46.8905 63.8044 47.0767 63.7307C47.2629 63.6569 47.4736 63.748 47.5474 63.9341L48.8034 67.1028C48.8772 67.2889 48.7861 67.4997 48.5999 67.5734C48.556 67.5908 48.5108 67.599 48.4664 67.599Z",fill:"#C94126"}),c.jsx("path",{d:"M46.5846 67.4447C46.4403 67.4447 46.3038 67.358 46.2474 67.2157L44.9914 64.047C44.9176 63.8609 45.0087 63.6501 45.1949 63.5764C45.3811 63.5026 45.5918 63.5937 45.6655 63.7799L46.9215 66.9485C46.9954 67.1347 46.9043 67.3454 46.7181 67.4191C46.6743 67.4365 46.629 67.4447 46.5846 67.4447Z",fill:"#C94126"}),c.jsx("path",{d:"M44.7023 67.2924C44.558 67.2924 44.4215 67.2057 44.3652 67.0633L43.1091 63.8947C43.0353 63.7085 43.1264 63.4978 43.3126 63.4241C43.4987 63.3502 43.7095 63.4414 43.7832 63.6275L45.0393 66.7962C45.1131 66.9823 45.022 67.193 44.8358 67.2668C44.792 67.2842 44.7468 67.2924 44.7023 67.2924Z",fill:"#C94126"}),c.jsx("path",{d:"M74.0137 53.6934L64.8668 52.9479C63.7396 52.8561 62.9004 51.8679 62.9922 50.7408C63.0841 49.6136 64.0723 48.7744 65.1994 48.8663L74.3464 49.6118C75.4735 49.7036 76.3128 50.6918 76.2209 51.8189C76.129 52.946 75.1408 53.7852 74.0137 53.6934Z",fill:"#541A30"}),c.jsx("path",{d:"M54.3184 52.0898L45.1715 51.3444C44.0443 51.2525 43.205 50.2643 43.2969 49.1373C43.3888 48.0101 44.377 47.1709 45.5041 47.2627L54.651 48.0082C55.7782 48.1 56.6175 49.0882 56.5256 50.2153C56.4338 51.3425 55.4456 52.1817 54.3184 52.0898Z",fill:"#541A30"}),c.jsx("path",{d:"M59.3412 71.0833C59.3314 71.0833 59.3214 71.0828 59.3114 71.082L55.5001 70.7715C55.4042 70.7637 55.3155 70.7181 55.2532 70.6448C55.1909 70.5715 55.1604 70.4765 55.1682 70.3806C55.599 65.0944 57.7998 60.3968 57.8219 60.35C57.9077 60.1691 58.1236 60.0919 58.3047 60.1775C58.4857 60.2632 58.563 60.4793 58.4773 60.6603C58.4562 60.7049 56.41 65.0769 55.9232 70.0783L59.3702 70.3592C59.5698 70.3755 59.7184 70.5504 59.7021 70.7501C59.6868 70.9397 59.5281 71.0833 59.3412 71.0833Z",fill:"#541A30"}),c.jsx("path",{d:"M53.2551 73.5204C52.6438 73.4563 52.1721 74.0447 52.3627 74.629C52.9323 76.3759 55.0771 77.8275 57.7683 78.1101C60.4561 78.3924 62.855 77.4179 63.7751 75.8275C64.0828 75.2955 63.7437 74.622 63.1325 74.5577L53.2551 73.5204Z",fill:"white"}),c.jsx("path",{d:"M66.9609 89.6051C66.5385 89.6051 66.1137 89.5879 65.6874 89.5533L47.7786 88.097C47.4445 88.0698 47.1955 87.7769 47.2227 87.4427C47.2499 87.1086 47.5429 86.8593 47.8769 86.8868L65.7857 88.3431C69.2484 88.6245 72.601 87.6565 75.2267 85.617C77.8365 83.5899 79.4144 80.7451 79.6696 77.6067L83.6069 29.1869C83.6341 28.8527 83.9265 28.6034 84.2612 28.631C84.5953 28.6582 84.8442 28.9511 84.8171 29.2853L80.8797 77.7051C80.5966 81.187 78.8535 84.3373 75.9715 86.5758C73.43 88.55 70.27 89.6051 66.9609 89.6051Z",fill:"#FFE3D9"}),c.jsx("path",{d:"M94.5032 139.959L131.013 147.618L143.429 149.83L149.955 109.471L138.437 107.37L100.625 101.329C94.4609 100.052 90.7705 101.952 86.7114 117.685C82.6417 133.415 86.4104 138.522 94.5032 139.959Z",fill:"#541A30"}),c.jsx("path",{d:"M131.013 147.617L143.43 149.829L149.956 109.469L138.438 107.369L131.013 147.617Z",fill:"#7A364F"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_5103_6194",children:c.jsx("rect",{x:"0.271973",y:"0.287109",width:"131.456",height:"133.576",rx:"65.728",fill:"white"})})})]}),c.jsx("h4",{className:"font-bold text-2xl",children:"Try Again"})]}),c.jsxs("div",{className:"mt-8",children:[c.jsx("p",{className:"text-center mb-2 text-xs capitalize",children:"You got a degree"}),w?c.jsx(fe,{className:"bg-neutral-300 h-6 w-20 mx-auto"}):c.jsxs("h5",{className:"font-bold text-center my-2 text-main-400 text-xl",children:[L," / ",(d==null?void 0:d.max_score)||(h==null?void 0:h.max_score)||0]}),c.jsxs("p",{className:"text-center text-sm font-bold",children:[j," / ",e.max_attempts," Attempts"]})]}),c.jsx(st,{variant:"outline",className:"h-auto text-xl px-12 block mx-auto mt-8 bg-transparent border-main-400 font-light text-main-400  hover:bg-main-400 hover:text-white",onClick:()=>{M()},children:"Try again"}),c.jsx(st,{variant:"ghost",className:"h-auto text-lg px-12 block mx-auto mt-24 hover:bg-white font-normal text-main-400",onClick:()=>{i(!0),n("quiz"),l(0)},children:"Review My Answers"})]})}return S?k():O()}function yq({quiz:e,timeLeft:t,percentage:n,currentPage:i,question:s,questions:l,selectedAnswers:u,handleSelectOption:d,getPaginatedPageNumbers:h,handleSubmitQuiz:m,setCurrentPage:p,reviewing:C,setReviewing:v,setActiveUi:w,setResults:b,setFinishedAttempt:S,answers:E,activeAttempt:j,setSelectedAnswers:T,setQuestionsAnswers:L}){const D=`quiz_${e.id}_answers`,M=`quiz_${e.id}_expiry`,k=y.useRef(null);y.useEffect(()=>{if(!j)return;if(j.is_expired){const Q=localStorage.getItem(D);if(Q&&l)try{const le=JSON.parse(Q);Array.isArray(le)&&le.length===l.length&&T(le)}catch(le){console.error("Error parsing saved answers:",le)}return}const I=localStorage.getItem(D),ne=localStorage.getItem(M);if(I&&ne&&l){const Q=parseInt(ne);if(Date.now()<Q)try{const he=JSON.parse(I);Array.isArray(he)&&he.length===l.length&&T(he)}catch(he){console.error("Error parsing saved answers:",he)}else localStorage.removeItem(D),localStorage.removeItem(M)}},[j,l,e.id,D,M,T]),y.useEffect(()=>{if(!j||j.is_expired||C)return;if(u.some(ne=>ne!==null)&&(localStorage.setItem(D,JSON.stringify(u)),j.remaining_time_minutes)){const ne=parseFloat(j.remaining_time_minutes),Q=Date.now()+ne*60*1e3;localStorage.setItem(M,Q.toString())}},[u,j,C,D,M]),y.useEffect(()=>{if(!j||j.is_expired||C){k.current&&(clearTimeout(k.current),k.current=null);return}if(j.remaining_time_minutes){const ne=parseFloat(j.remaining_time_minutes)*60*1e3;k.current=setTimeout(()=>{localStorage.removeItem(D),localStorage.removeItem(M),Et.error("Practice time has expired. Your answers have been cleared.")},ne)}return()=>{k.current&&(clearTimeout(k.current),k.current=null)}},[j,C,D,M]),y.useEffect(()=>{const I=ne=>{if(u.some(le=>le!==null)&&j&&!j.is_expired&&!C)return ne.preventDefault(),ne.returnValue="You have unsaved practice answers. Are you sure you want to leave?",ne.returnValue};return window.addEventListener("beforeunload",I),()=>{window.removeEventListener("beforeunload",I)}},[u,j,C]);function O(){window.confirm("Are you sure you want to submit the answers ?")&&z()}const z=async()=>{if(!l)return;const I=[];u.forEach((Q,le)=>{Q!==null?I.push({question_id:l[le].id,option_id:Q}):I.push({question_id:l[le].id,option_id:-1})});const ne={answers:I};try{const Q=await Xt.submitQuiz(e.id,ne);console.log(Q),Q.status===200&&(b(Q.data.data),L(Q.data.data),S(!0),localStorage.removeItem(D),localStorage.removeItem(M),Et.success("Answers submitted successfully!"),m())}catch(Q){console.error("Error submitting quiz:",Q),Et.error("Failed to submit Answers")}};return c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:" font-bold text-lg mb-8",children:e.title}),!C&&c.jsxs("div",{className:"w-full mb-6",children:[c.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[c.jsx("span",{className:"text-muted-foreground",children:"Time Remaining"}),c.jsx("span",{className:"font-medium text-black",children:t>=3600?`${Math.floor(t/3600).toString().padStart(2,"0")}:${Math.floor(t%3600/60).toString().padStart(2,"0")}:${(t%60).toString().padStart(2,"0")}`:`${Math.floor(t/60).toString().padStart(2,"0")}:${(t%60).toString().padStart(2,"0")}`})]}),c.jsx(ks,{className:"bg-white",value:n})]}),c.jsxs("div",{children:[c.jsxs("h3",{className:"text-2xl mb-4",children:[i+1,". ",s==null?void 0:s.question]}),s==null?void 0:s.options.map((I,ne)=>{var _;const Q=u[i]===I.id,le=(_=E==null?void 0:E.answers)==null?void 0:_.find(U=>U.question_id==s.id.toString()),he=I.id===(le==null?void 0:le.correct_answer),ie=I.id===(le==null?void 0:le.selected_answer);let J="";return C&&le?he?J="border-green-500 bg-green-100 text-green-700":ie&&!he?J="border-red-500 bg-red-100 text-red-700":J="border-neutral-300":J=Q?"border-main-400 bg-main-400/10":"border-neutral-300 hover:bg-neutral-100",c.jsx("div",{className:`border p-3 rounded-md mb-2 transition ${J} ${C?"cursor-default":"cursor-pointer"}`,onClick:()=>{C||d(I.id)},children:I.text},ne)})]},i),c.jsxs("div",{className:"flex flex-col items-center gap-4 mt-10",children:[c.jsx("div",{className:"flex justify-center gap-2 flex-wrap",children:l&&h(l==null?void 0:l.length,i,2,1).map((I,ne)=>{if(typeof I!="number")return c.jsx("span",{className:"px-3 py-2 text-neutral-400 text-sm",children:I},ne);const Q=E?u[I]:null,le=l[I],he=E?E.answers.find(J=>J.question_id==le.id.toString()):null;let ie="";return C&&he?he.is_correct?ie="bg-green-500 text-white border-green-600":he.selected_answer?ie="bg-red-500 text-white border-red-600":ie="bg-red-100 text-red-600 border-red-400":ie=I===i?"bg-main-400/10 border-main-400 text-black":Q!==null?"bg-main-400 border-main-400 text-white":"bg-transparent border-neutral-300 hover:bg-neutral-100",c.jsx("button",{onClick:()=>p(I),className:`px-4 py-2 rounded-full border text-sm transition cursor-pointer ${ie}`,children:I+1},ne)})}),c.jsxs("div",{className:"flex gap-4 mt-4 w-full",children:[c.jsx("button",{onClick:()=>p(I=>Math.max(I-1,0)),disabled:i===0,className:`px-6 py-2 rounded-md border transition grow ${i===0?"bg-gray-200 text-gray-400 cursor-not-allowed":"bg-white border-neutral-300 hover:bg-main-400 hover:text-white cursor-pointer"}`,children:"Prev"}),l&&i===l.length-1?c.jsx("button",{onClick:C?()=>{v(!0),w("init")}:O,className:"px-6 py-2 rounded-md border transition grow bg-main-400 text-white",children:C?"Done":"Submit Quiz"}):c.jsx("button",{onClick:()=>{console.log(l),p(I=>Math.min(I+1,l?l.length-1:0))},className:"px-6 py-2 rounded-md border transition grow bg-white border-neutral-300 hover:bg-main-400 hover:text-white cursor-pointer",children:"Next"})]})]})]})}function bq({showScore:e,setShowScore:t,results:n,setActiveUi:i,setReviewing:s,setCurrentPage:l}){return c.jsx(Px,{open:e,onOpenChange:t,children:c.jsxs(Vx,{children:[c.jsxs(o_,{children:[c.jsx(l_,{}),c.jsx(c_,{})]}),c.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3",children:[c.jsxs("svg",{width:"175",height:"172",viewBox:"0 0 175 172",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2988_39089)",children:[c.jsx("circle",{cx:"89.2555",cy:"88.9245",r:"67.8639",fill:"#427D8E"}),c.jsx("path",{d:"M49.3505 57.9082L15.0474 97.1283H35.7232V163.367H62.9778V97.1283H83.6537L49.3505 57.9082Z",fill:"#D95261"}),c.jsx("path",{d:"M163.954 76.1397L127.037 33.9316L90.1206 76.1397H113.649V163.368H140.425V76.1397H163.954Z",fill:"#87C5BF"}),c.jsx("path",{d:"M80.4865 106.529C79.8872 100.351 74.2055 98.8103 71.0822 98.8184C67.959 98.8265 37.3584 98.9054 37.3584 98.9054C28.6081 98.6946 29.601 114.231 37.4848 114.685C37.4848 114.685 65.4481 114.944 71.1504 114.579C76.8527 114.215 81.0857 112.707 80.4865 106.529Z",fill:"#FF8256"}),c.jsx("path",{d:"M75.486 96.8809L58.3292 97.3224L52.382 97.2035L52.3052 116.486L57.8256 116.619L76.2192 116.898C79.1846 117.041 80.4308 115.643 81.1666 108.015C81.9077 100.388 79.3618 96.9558 75.486 96.8809Z",fill:"#541A30"}),c.jsx("path",{d:"M58.3292 97.322L52.382 97.2031L52.3052 116.485L57.8256 116.618L58.3292 97.322Z",fill:"#7A364F"}),c.jsx("path",{d:"M31.7694 102.391C31.7694 102.391 41.0905 74.5117 43.1631 70.5536C45.2358 66.5956 50.8016 60.0853 56.1962 62.6766C61.5909 65.2679 63.1847 70.4809 59.7249 76.4357C56.2652 82.3905 48.7636 104.402 46.9462 108.197C44.5013 114.04 38.9219 115.428 35.5469 114.21C32.1718 112.992 29.902 107.107 31.7694 102.391Z",fill:"#FF8256"}),c.jsx("path",{d:"M48.9645 103.819C48.9448 103.819 48.9248 103.816 48.9053 103.809C48.8167 103.776 48.7714 103.678 48.8041 103.589C49.2357 102.421 50.119 100.007 50.5744 98.7608C50.6068 98.6721 50.7049 98.6264 50.7937 98.6589C50.8824 98.6913 50.9281 98.7895 50.8956 98.8782C50.4401 100.125 49.5566 102.539 49.1249 103.708C49.0994 103.777 49.034 103.819 48.9645 103.819Z",fill:"#541A30"}),c.jsx("path",{d:"M55.6003 79.8007L44.1779 75.8023C40.8243 74.6284 39.0573 70.9581 40.2312 67.6045L42.5315 61.0332L66.0984 69.2828L63.7982 75.854C62.6242 79.2076 58.9539 80.9746 55.6003 79.8007Z",fill:"#FF8256"}),c.jsx("path",{d:"M55.6005 79.9711C55.5804 79.9711 55.5599 79.9675 55.54 79.9599L43.0177 75.2137C42.9293 75.1803 42.8849 75.0816 42.9184 74.9932C42.9519 74.9049 43.0506 74.8605 43.1389 74.894L55.6612 79.6401C55.7495 79.6736 55.7939 79.7723 55.7604 79.8606C55.7346 79.929 55.6695 79.9711 55.6005 79.9711Z",fill:"#541A30"}),c.jsx("path",{d:"M65.7588 65.8549L65.1182 67.7119C64.0254 70.8797 60.5715 72.5619 57.4036 71.4691L46.5281 67.7174C43.3602 66.6246 41.678 63.1706 42.7709 60.0028L43.4115 58.1458C44.4241 55.2105 47.6245 53.6518 50.5598 54.6644L62.2773 58.7065C65.2127 59.7191 66.7714 62.9195 65.7588 65.8549Z",fill:"#FF8256"}),c.jsx("path",{d:"M59.5066 71.9717C58.8331 71.9717 58.1489 71.8618 57.4774 71.6302L46.6019 67.8785C45.4039 67.4653 44.3739 66.7103 43.6231 65.6952C42.8901 64.704 42.4687 63.5317 42.4045 62.3049C42.3996 62.2106 42.472 62.1302 42.5664 62.1252C42.6604 62.1202 42.7411 62.1928 42.7461 62.2871C42.8723 64.6995 44.4296 66.7674 46.7134 67.5553L57.5889 71.307C59.0779 71.8206 60.6777 71.7237 62.0938 71.034C63.5098 70.3444 64.5725 69.1446 65.0861 67.6556C65.117 67.5663 65.2144 67.5189 65.3036 67.5497C65.3928 67.5805 65.4403 67.6779 65.4094 67.7671C64.5193 70.3476 62.0946 71.9717 59.5066 71.9717Z",fill:"#541A30"}),c.jsx("path",{d:"M48.6769 68.4508C48.6576 68.4508 48.638 68.4474 48.6187 68.4405C48.5299 68.4084 48.484 68.3103 48.5161 68.2215C48.9784 66.9445 49.4605 65.5766 49.8479 64.4775C50.2231 63.413 50.4942 62.6439 50.5837 62.4201C50.6188 62.3324 50.7183 62.2897 50.806 62.3248C50.8936 62.3598 50.9363 62.4594 50.9012 62.547C50.8144 62.7643 50.5302 63.5705 50.1705 64.5912C49.7828 65.6909 49.3004 67.0595 48.8376 68.3379C48.8125 68.4075 48.7469 68.4508 48.6769 68.4508Z",fill:"#541A30"}),c.jsx("path",{d:"M55.7589 71.0288C55.7404 71.0288 55.7216 71.0258 55.7031 71.0194C55.6138 70.9885 55.5665 70.8912 55.5973 70.8019C55.9551 69.7667 56.3501 68.6631 56.6986 67.6895C57.1542 66.4167 57.5477 65.3175 57.6165 65.0383C57.639 64.9466 57.7317 64.8906 57.8234 64.9132C57.9151 64.9358 57.9711 65.0285 57.9485 65.1202C57.8755 65.4163 57.4982 66.4703 57.0206 67.8048C56.6724 68.7776 56.2777 69.8801 55.9206 70.9136C55.8961 70.9844 55.8298 71.0288 55.7589 71.0288Z",fill:"#541A30"}),c.jsx("path",{d:"M64.166 74.8024L66.6597 67.6787C66.9437 66.8673 66.5162 65.9792 65.7047 65.6951L64.4735 65.2642L57.1748 62.7093C56.288 62.3988 55.3175 62.8661 55.0071 63.7529L54.841 64.2273C54.1426 66.2226 55.1938 68.4064 57.1892 69.1048L60.0721 70.114L59.057 73.014C58.5631 74.4248 59.3064 75.9689 60.7173 76.4627C62.1281 76.9566 63.6721 76.2132 64.166 74.8024Z",fill:"#FF8256"}),c.jsx("path",{d:"M60.0723 70.2858C60.0535 70.2858 60.0345 70.2827 60.0158 70.2762L57.1328 69.267C56.1247 68.9141 55.3143 68.1897 54.851 67.2273C54.3877 66.2649 54.3269 65.1797 54.6798 64.1716L54.8458 63.6972C55.1869 62.7228 56.2571 62.2075 57.2315 62.5486L63.1286 64.613C63.2178 64.6442 63.2647 64.7417 63.2335 64.8308C63.2023 64.92 63.1048 64.967 63.0156 64.9357L57.1185 62.8714C56.322 62.5927 55.4474 63.0138 55.1686 63.8101L55.0025 64.2846C54.6798 65.2065 54.7354 66.1989 55.1592 67.0789C55.5829 67.959 56.3239 68.6214 57.2458 68.9441L60.1288 69.9533C60.2179 69.9845 60.2648 70.0821 60.2336 70.1712C60.209 70.2417 60.1429 70.2858 60.0723 70.2858Z",fill:"#541A30"}),c.jsx("path",{d:"M58.0554 66.2147C57.8916 66.2147 57.7252 66.1876 57.562 66.1305L55.8964 65.5541C55.8071 65.5233 55.7598 65.4259 55.7907 65.3366C55.8215 65.2474 55.9191 65.2 56.0082 65.231L57.6744 65.8075C57.9663 65.9096 58.2799 65.8921 58.558 65.7582C58.836 65.6243 59.0453 65.3902 59.1473 65.0989C59.2492 64.8076 59.2317 64.494 59.0978 64.2159C59.0568 64.1308 59.0926 64.0287 59.1777 63.9877C59.2628 63.9467 59.365 63.9825 59.4059 64.0676C59.5795 64.428 59.6022 64.8343 59.4701 65.2119C59.2544 65.828 58.6741 66.2146 58.0554 66.2147Z",fill:"#541A30"}),c.jsx("path",{d:"M59.4591 72.0381C59.4404 72.0381 59.4213 72.035 59.4026 72.0285C59.3135 71.9972 59.2665 71.8997 59.2977 71.8106L59.9106 70.0599C59.9418 69.9707 60.0394 69.9237 60.1284 69.955C60.2176 69.9862 60.2645 70.0837 60.2333 70.1729L59.6205 71.9236C59.5959 71.994 59.5297 72.0381 59.4591 72.0381Z",fill:"#541A30"}),c.jsx("path",{d:"M65.7048 65.8663C65.6861 65.8663 65.667 65.8632 65.6483 65.8567L62.8059 64.8617C62.7168 64.8305 62.6699 64.733 62.7011 64.6438C62.7323 64.5547 62.8298 64.5077 62.9189 64.539L65.7613 65.5339C65.8504 65.5651 65.8974 65.6627 65.8662 65.7518C65.8415 65.8222 65.7755 65.8663 65.7048 65.8663Z",fill:"#541A30"}),c.jsx("path",{d:"M51.7882 74.8909C51.7695 74.8909 51.7504 74.8877 51.7317 74.8812C51.6426 74.85 51.5956 74.7525 51.6268 74.6633C52.1015 73.3072 53.1787 72.2831 54.6599 71.7797C56.106 71.2882 57.8053 71.3335 59.4448 71.9074C59.5339 71.9386 59.5809 72.0362 59.5497 72.1253C59.5185 72.2144 59.4209 72.2614 59.3318 72.2302C56.0894 71.0952 52.8467 72.2136 51.9496 74.7763C51.925 74.8468 51.8588 74.8909 51.7882 74.8909Z",fill:"#541A30"}),c.jsx("path",{d:"M96.0814 95.0625H86.7048C83.792 95.0625 81.2541 95.424 79.0146 96.0817C71.7368 98.219 66.85 105.051 66.9187 112.636L67.2584 150.137C67.2584 160.699 114.6 159.85 114.6 150.137L115.965 115.727C116.407 104.563 107.567 95.1666 96.3951 95.0639C96.291 95.063 96.1864 95.0625 96.0814 95.0625Z",fill:"#FF8256"}),c.jsx("path",{d:"M81.702 95.3352C81.787 96.5601 80.3482 100.977 88.8448 101.988C97.3414 102.999 99.3859 98.5847 99.5351 94.957C102.753 94.957 116.585 96.6511 116.585 112.925L115.792 163.366H63.8818L65.1186 106.941C65.2526 101.393 72.6738 96.6876 81.702 95.3352Z",fill:"#541A30"}),c.jsx("path",{d:"M79.9811 95.6738C79.9916 95.527 80.0959 95.3998 80.2375 95.3596C81.0447 95.1303 81.8948 94.9367 82.7918 94.7849C83.0425 94.7425 83.2604 94.9811 83.1846 95.2238C83.1065 95.4739 83.0728 95.632 83.0672 95.8965C83.0151 98.3691 85.0072 100.42 89.0905 100.506C93.1791 100.592 97.8153 98.681 97.8674 96.2084C97.876 95.8014 97.7934 95.4057 97.6328 95.0279C97.529 94.7836 97.6999 94.5139 97.965 94.5279C98.669 94.5649 99.8174 94.6313 100.542 94.7036C100.695 94.7188 100.822 94.8296 100.852 94.9801C100.935 95.3996 100.974 95.8314 100.965 96.2737C100.931 97.8578 100.123 99.2824 98.8166 100.445C96.6342 102.389 92.4979 103.767 87.6342 103.25C82.7705 102.733 81.4825 100.56 80.5336 98.5123C80.1731 97.7346 79.8967 96.8549 79.9811 95.6738Z",fill:"#7A364F"}),c.jsx("path",{d:"M95.1422 97.0674C95.1507 99.7715 85.8222 100.254 85.8123 97.0965L85.7891 89.6326L95.119 89.6035L95.1422 97.0674Z",fill:"#FF8256"}),c.jsx("path",{d:"M91.4043 89.3701L94.5726 89.6283C99.0735 89.9951 103.02 86.6438 103.386 82.1429L103.944 75.3013L92.6261 74.3789L91.4043 89.3701Z",fill:"#541A30"}),c.jsx("path",{d:"M92.9564 91.4735C89.8773 91.8135 86.7245 91.5486 83.8674 90.7785C80.3496 89.8305 78.0174 86.4957 78.3133 82.8645L79.1694 72.36C79.5088 68.1964 83.1591 65.0962 87.3227 65.4356L93.5532 65.9433C97.7168 66.2827 100.817 69.933 100.478 74.0966L99.6238 84.5738C99.3308 88.1692 96.5419 91.0775 92.9564 91.4735Z",fill:"#FF8256"}),c.jsx("path",{d:"M89.8231 91.8348C88.4794 91.8348 87.1552 91.7083 85.8657 91.456C85.7731 91.4379 85.7126 91.3481 85.7308 91.2554C85.7489 91.1627 85.8386 91.1023 85.9314 91.1204C87.8881 91.5032 89.9274 91.5914 91.9925 91.3825C92.0865 91.3731 92.1704 91.4415 92.1799 91.5354C92.1894 91.6294 92.1209 91.7132 92.0269 91.7227C91.2884 91.7974 90.5527 91.8348 89.8231 91.8348Z",fill:"#541A30"}),c.jsx("path",{d:"M93.1196 91.5442C93.0384 91.5442 92.9664 91.4862 92.9515 91.4035C92.9347 91.3106 92.9965 91.2217 93.0894 91.2049C93.6052 91.1119 94.1215 91.0014 94.624 90.8763C94.7466 90.8458 94.8698 90.8117 94.9902 90.775C95.0806 90.7476 95.1761 90.7984 95.2036 90.8887C95.2311 90.9791 95.1802 91.0747 95.0899 91.1022C94.9638 91.1406 94.8349 91.1762 94.7066 91.2081C94.1969 91.3351 93.6732 91.4472 93.1501 91.5415C93.1398 91.5433 93.1296 91.5442 93.1196 91.5442Z",fill:"#541A30"}),c.jsx("path",{d:"M103.883 76.0491L104.767 65.1965C104.86 64.0542 104.012 63.0517 102.87 62.9544L80.3593 61.035C79.2113 60.9371 78.2024 61.7908 78.1088 62.9391L77.4724 70.747C77.3797 71.8843 77.671 73.0199 78.2997 73.9722L78.9567 74.9675C78.9567 74.9675 79.2437 72.6196 79.4668 71.392C79.9298 68.8441 82.2515 67.0649 84.8311 67.2937L94.2149 68.1259C96.9519 68.3687 98.9803 70.7744 98.757 73.513L98.596 75.4888C98.596 75.4888 99.517 75.5292 100.352 75.6319",fill:"#541A30"}),c.jsx("path",{d:"M102.451 75.8019L100.353 75.6309L100.299 76.2906L99.8086 82.3043L99.7549 82.9641L101.854 83.1351C103.879 83.3002 105.655 81.7919 105.82 79.7669C105.985 77.7418 104.476 75.9669 102.451 75.8019Z",fill:"#FF8256"}),c.jsx("path",{d:"M102.307 77.5736C103.353 77.6587 104.134 78.578 104.049 79.6227C103.963 80.668 103.044 81.4491 101.998 81.3639L101.671 81.3372L101.98 77.5469L102.307 77.5736Z",fill:"#C94126"}),c.jsx("path",{d:"M102.154 81.5423C102.098 81.5423 102.042 81.54 101.985 81.5354L101.657 81.5087C101.563 81.501 101.493 81.4185 101.501 81.3244C101.508 81.2302 101.591 81.1604 101.685 81.1678L102.012 81.1945C102.06 81.1984 102.107 81.2003 102.154 81.2003C103.046 81.2004 103.805 80.5136 103.878 79.6099C103.956 78.6592 103.245 77.8226 102.293 77.7451L101.966 77.7184C101.872 77.7107 101.802 77.6282 101.809 77.5341C101.817 77.4399 101.9 77.3699 101.994 77.3775L102.321 77.4042C103.461 77.497 104.312 78.499 104.219 79.6377C104.131 80.7199 103.222 81.5423 102.154 81.5423Z",fill:"#541A30"}),c.jsx("path",{d:"M83.7977 77.624C84.3953 77.1165 84.4683 76.2207 83.9608 75.6231C83.4533 75.0255 82.5575 74.9525 81.9599 75.46C81.3624 75.9675 81.2893 76.8633 81.7968 77.4609C82.3043 78.0585 83.2002 78.1315 83.7977 77.624Z",fill:"#541A30"}),c.jsx("path",{d:"M91.993 78.6084C92.7415 78.3751 93.1592 77.5792 92.9259 76.8307C92.6926 76.0822 91.8967 75.6646 91.1482 75.8979C90.3997 76.1312 89.9821 76.9271 90.2154 77.6755C90.4487 78.424 91.2446 78.8417 91.993 78.6084Z",fill:"#541A30"}),c.jsx("path",{d:"M92.0737 81.4494C92.0437 81.4494 92.0134 81.4415 91.986 81.4251C91.9049 81.3765 91.8786 81.2715 91.9272 81.1905L92.7537 79.8116C92.8022 79.7306 92.9073 79.7043 92.9883 79.7529C93.0693 79.8014 93.0956 79.9065 93.047 79.9875L92.2205 81.3663C92.1884 81.4198 92.1318 81.4494 92.0737 81.4494Z",fill:"#C94126"}),c.jsx("path",{d:"M92.9609 81.5217C92.931 81.5217 92.9007 81.5138 92.8732 81.4973C92.7921 81.4487 92.7658 81.3437 92.8144 81.2627L93.6409 79.8839C93.6895 79.8029 93.7945 79.7766 93.8755 79.8251C93.9565 79.8737 93.9828 79.9787 93.9343 80.0597L93.1077 81.4386C93.0757 81.492 93.019 81.5217 92.9609 81.5217Z",fill:"#C94126"}),c.jsx("path",{d:"M93.8486 81.5939C93.8187 81.5939 93.7883 81.5861 93.7608 81.5696C93.6798 81.521 93.6535 81.416 93.7021 81.335L94.5287 79.9562C94.5772 79.8751 94.6822 79.8489 94.7633 79.8974C94.8442 79.946 94.8705 80.051 94.822 80.132L93.9954 81.5108C93.9634 81.5643 93.9067 81.5939 93.8486 81.5939Z",fill:"#C94126"}),c.jsx("path",{d:"M82.2312 80.6471C82.1632 80.6471 82.0988 80.6062 82.0722 80.539L81.4799 79.0446C81.445 78.9568 81.488 78.8574 81.5758 78.8226C81.6636 78.7878 81.763 78.8308 81.7978 78.9186L82.3902 80.413C82.425 80.5008 82.382 80.6002 82.2942 80.635C82.2735 80.6432 82.2522 80.6471 82.2312 80.6471Z",fill:"#C94126"}),c.jsx("path",{d:"M81.3435 80.5748C81.2755 80.5748 81.2111 80.5339 81.1845 80.4668L80.5922 78.9723C80.5573 78.8845 80.6003 78.7851 80.6881 78.7504C80.776 78.7155 80.8753 78.7585 80.9101 78.8463L81.5025 80.3408C81.5373 80.4286 81.4943 80.528 81.4065 80.5628C81.3858 80.5709 81.3645 80.5748 81.3435 80.5748Z",fill:"#C94126"}),c.jsx("path",{d:"M80.4559 80.5026C80.3878 80.5026 80.3235 80.4617 80.2969 80.3945L79.7045 78.9001C79.6697 78.8123 79.7126 78.7129 79.8004 78.6781C79.8882 78.6433 79.9876 78.6863 80.0224 78.7741L80.6148 80.2685C80.6496 80.3563 80.6067 80.4557 80.5188 80.4905C80.4982 80.4987 80.4768 80.5026 80.4559 80.5026Z",fill:"#C94126"}),c.jsx("path",{d:"M94.2805 74.0885L89.9665 73.7369C89.4348 73.6936 89.039 73.2275 89.0823 72.6959C89.1257 72.1643 89.5918 71.7685 90.1233 71.8118L94.4374 72.1634C94.969 72.2068 95.3649 72.6729 95.3215 73.2044C95.2782 73.736 94.8121 74.1318 94.2805 74.0885Z",fill:"#541A30"}),c.jsx("path",{d:"M84.9915 73.3326L80.6774 72.9811C80.1458 72.9377 79.75 72.4717 79.7933 71.9401C79.8366 71.4085 80.3027 71.0126 80.8343 71.056L85.1484 71.4076C85.68 71.4509 86.0758 71.917 86.0325 72.4485C85.9892 72.9801 85.5231 73.376 84.9915 73.3326Z",fill:"#541A30"}),c.jsx("path",{d:"M87.3599 82.2909C87.3552 82.2909 87.3505 82.2907 87.3458 82.2903L85.5482 82.1439C85.503 82.1402 85.4611 82.1187 85.4318 82.0841C85.4024 82.0495 85.388 82.0047 85.3917 81.9595C85.5949 79.4664 86.6329 77.2508 86.6433 77.2287C86.6837 77.1434 86.7856 77.107 86.871 77.1473C86.9564 77.1877 86.9928 77.2897 86.9524 77.375C86.9424 77.3961 85.9774 79.4581 85.7478 81.817L87.3735 81.9494C87.4677 81.9571 87.5378 82.0396 87.5301 82.1338C87.5228 82.2232 87.448 82.2909 87.3599 82.2909Z",fill:"#541A30"}),c.jsx("path",{d:"M84.4899 83.4398C84.2016 83.4095 83.9792 83.687 84.069 83.9626C84.3377 84.7865 85.3493 85.4711 86.6185 85.6045C87.8862 85.7376 89.0177 85.278 89.4516 84.5279C89.5967 84.277 89.4368 83.9593 89.1485 83.929L84.4899 83.4398Z",fill:"white"}),c.jsx("path",{d:"M90.9539 91.0265C90.7546 91.0265 90.5543 91.0183 90.3532 91.002L81.9067 90.3152C81.7491 90.3023 81.6317 90.1642 81.6445 90.0066C81.6573 89.849 81.7955 89.7314 81.9531 89.7444L90.3996 90.4312C92.0327 90.564 93.6139 90.1074 94.8523 89.1455C96.0832 88.1894 96.8274 86.8477 96.9478 85.3675L98.8048 62.5307C98.8176 62.3731 98.9555 62.2555 99.1134 62.2686C99.271 62.2814 99.3883 62.4195 99.3755 62.5771L97.5185 85.4139C97.385 87.0561 96.5629 88.542 95.2036 89.5977C94.0049 90.5288 92.5145 91.0265 90.9539 91.0265Z",fill:"#FFE3D9"}),c.jsx("path",{d:"M112.538 99.0733L141.391 103.823C147.542 104.925 149.574 107.774 149.014 111.972C148.455 116.17 145.173 120.468 138.033 119.266L109.3 114.567C102.315 112.837 101.524 109.495 102.139 105.714C102.765 101.86 105.184 98.2098 112.538 99.0733Z",fill:"#FF8256"}),c.jsx("path",{d:"M103.944 114.775L121.163 118.388L127.019 119.431L130.097 100.396L124.665 99.4051L106.831 96.5558C103.924 95.9536 102.183 96.8494 100.269 104.27C98.3496 111.689 100.127 114.098 103.944 114.775Z",fill:"#541A30"}),c.jsx("path",{d:"M121.247 118.439C121.231 118.439 121.214 118.437 121.197 118.434L111.907 116.785C111.752 116.757 111.648 116.609 111.675 116.453C111.703 116.297 111.852 116.194 112.007 116.221L121.297 117.87C121.453 117.898 121.556 118.047 121.529 118.202C121.504 118.341 121.383 118.439 121.247 118.439Z",fill:"#7A364F"}),c.jsx("path",{d:"M121.164 118.387L127.02 119.43L130.098 100.395L124.665 99.4043L121.164 118.387Z",fill:"#7A364F"}),c.jsx("path",{d:"M133.319 112.809C133.319 112.809 122.133 85.5892 121.142 81.2326C120.151 76.876 120.163 68.3108 125.949 66.7826C131.735 65.2543 136.33 68.187 137.561 74.963C138.792 81.739 147.555 103.313 148.634 107.38C149.714 111.447 148.922 117.236 143.797 118.791C138.673 120.347 134.957 117.608 133.319 112.809Z",fill:"#FF8256"}),c.jsx("path",{d:"M130.869 106.968C130.802 106.968 130.738 106.927 130.711 106.861C129.795 104.599 128.912 102.403 128.086 100.334C128.051 100.246 128.094 100.147 128.182 100.112C128.27 100.077 128.369 100.12 128.404 100.207C129.23 102.276 130.112 104.471 131.028 106.733C131.063 106.82 131.021 106.92 130.933 106.955C130.912 106.964 130.891 106.968 130.869 106.968Z",fill:"#541A30"}),c.jsx("path",{d:"M123.145 82.3375L134.63 78.5205C138.001 77.3998 139.826 73.7579 138.705 70.3862L136.51 63.7793L112.815 71.6547L115.011 78.2616C116.132 81.6333 119.773 83.4582 123.145 82.3375Z",fill:"#FF8256"}),c.jsx("path",{d:"M122.728 82.6335C122.652 82.6335 122.582 82.5826 122.562 82.5057C122.538 82.4144 122.593 82.3209 122.684 82.297C122.82 82.2614 122.956 82.221 123.09 82.1767L136.768 77.2387C136.857 77.2067 136.955 77.2527 136.987 77.3415C137.019 77.4303 136.973 77.5283 136.884 77.5604L123.204 82.4991C123.202 82.4996 123.201 82.5001 123.2 82.5006C123.059 82.5474 122.914 82.5903 122.771 82.6278C122.756 82.6316 122.742 82.6335 122.728 82.6335Z",fill:"#541A30"}),c.jsx("path",{d:"M113.079 68.2301L113.69 70.097C114.733 73.2818 118.172 75.0142 121.373 73.9666L132.361 70.3698C135.561 69.3222 137.31 65.8911 136.268 62.7064L135.657 60.8394C134.691 57.8884 131.504 56.2831 128.538 57.2539L116.7 61.1291C113.734 62.0999 112.113 65.2791 113.079 68.2301Z",fill:"#FF8256"}),c.jsx("path",{d:"M119.451 74.4504C118.484 74.4504 117.524 74.2231 116.637 73.7735C115.151 73.0202 114.046 71.7332 113.528 70.1495C113.499 70.0597 113.548 69.9631 113.637 69.9338C113.727 69.9044 113.824 69.9534 113.853 70.0431C114.343 71.54 115.387 72.7564 116.792 73.4684C118.197 74.1804 119.795 74.3026 121.292 73.8126L132.225 70.2336C134.648 69.4406 136.281 67.1963 136.289 64.649C136.289 64.5547 136.366 64.4785 136.46 64.4785C136.46 64.4785 136.46 64.4785 136.46 64.4785C136.555 64.4788 136.631 64.5556 136.631 64.6501C136.622 67.3452 134.895 69.7196 132.332 70.5587L121.398 74.1377C120.759 74.3467 120.104 74.4504 119.451 74.4504Z",fill:"#541A30"}),c.jsx("path",{d:"M130.251 71.0999C130.18 71.0999 130.113 71.0554 130.089 70.9845C129.646 69.699 129.186 68.3229 128.816 67.2172C128.472 66.1909 128.201 65.3803 128.117 65.1617C128.084 65.0734 128.128 64.9746 128.216 64.941C128.304 64.9073 128.403 64.9515 128.437 65.0398C128.523 65.265 128.782 66.0383 129.14 67.1087C129.51 68.2138 129.97 69.5891 130.412 70.8732C130.443 70.9625 130.396 71.0598 130.306 71.0906C130.288 71.0968 130.269 71.0999 130.251 71.0999Z",fill:"#541A30"}),c.jsx("path",{d:"M123.128 73.562C123.056 73.562 122.989 73.5163 122.966 73.4443C122.625 72.4052 122.248 71.2966 121.915 70.3184C121.459 68.9766 121.098 67.9167 121.03 67.6195C121.009 67.5274 121.066 67.4356 121.158 67.4145C121.25 67.3934 121.342 67.4508 121.363 67.5429C121.427 67.8231 121.803 68.9284 122.239 70.2082C122.572 71.1872 122.949 72.2969 123.291 73.3377C123.32 73.4274 123.271 73.524 123.181 73.5534C123.164 73.5593 123.146 73.562 123.128 73.562Z",fill:"#541A30"}),c.jsx("path",{d:"M114.66 77.205L112.28 70.0426C112.008 69.2268 112.45 68.3456 113.266 68.0745L114.504 67.663L121.842 65.224C122.733 64.9277 123.696 65.4102 123.993 66.3018L124.151 66.7788C124.818 68.7849 123.732 70.9517 121.726 71.6185L118.828 72.5819L119.797 75.4976C120.268 76.9161 119.501 78.4482 118.082 78.9196C116.664 79.3911 115.132 78.6234 114.66 77.205Z",fill:"#FF8256"}),c.jsx("path",{d:"M118.828 72.7526C118.756 72.7526 118.689 72.7072 118.665 72.6355C118.636 72.5459 118.684 72.4491 118.774 72.4193L121.672 71.4559C122.599 71.1478 123.351 70.4972 123.788 69.6239C124.226 68.7507 124.297 67.7593 123.989 66.8324L123.831 66.3554C123.702 65.9675 123.429 65.6531 123.064 65.4699C122.699 65.2868 122.284 65.257 121.896 65.3859L115.967 67.3566C115.877 67.3863 115.78 67.3378 115.75 67.2482C115.721 67.1586 115.769 67.0618 115.859 67.032L121.788 65.0614C122.263 64.9036 122.77 64.9402 123.217 65.1642C123.664 65.3882 123.997 65.7729 124.155 66.2475L124.314 66.7245C125.009 68.8169 123.873 71.0849 121.78 71.7804L118.882 72.7438C118.864 72.7498 118.846 72.7526 118.828 72.7526Z",fill:"#541A30"}),c.jsx("path",{d:"M120.927 68.7166C120.697 68.7166 120.468 68.6631 120.257 68.5572C119.899 68.3779 119.633 68.0702 119.507 67.6907C119.381 67.3111 119.41 66.9052 119.589 66.5476C119.631 66.4631 119.734 66.429 119.819 66.4713C119.903 66.5136 119.937 66.6163 119.895 66.7008C119.757 66.9767 119.734 67.29 119.831 67.5828C120.032 68.1874 120.688 68.5157 121.292 68.3149L122.968 67.7646C123.058 67.7352 123.154 67.784 123.184 67.8737C123.213 67.9635 123.164 68.0601 123.075 68.0896L121.4 68.6396C121.245 68.691 121.085 68.7166 120.927 68.7166Z",fill:"#541A30"}),c.jsx("path",{d:"M119.413 74.5124C119.341 74.5124 119.274 74.467 119.251 74.3953L118.666 72.6351C118.636 72.5455 118.684 72.4487 118.774 72.4189C118.863 72.3891 118.96 72.4376 118.99 72.5272L119.575 74.2874C119.605 74.3771 119.556 74.4738 119.467 74.5036C119.449 74.5096 119.431 74.5124 119.413 74.5124Z",fill:"#541A30"}),c.jsx("path",{d:"M113.266 68.247C113.194 68.247 113.127 68.2016 113.103 68.1299C113.074 68.0403 113.122 67.9435 113.212 67.9137L116.07 66.9639C116.159 66.934 116.256 66.9826 116.286 67.0722C116.316 67.1618 116.267 67.2586 116.177 67.2884L113.32 68.2382C113.302 68.2442 113.284 68.247 113.266 68.247Z",fill:"#541A30"}),c.jsx("path",{d:"M127.037 77.488C126.966 77.488 126.899 77.4427 126.875 77.3709C126.456 76.1094 125.469 75.1444 124.097 74.6538C122.731 74.1651 121.11 74.1844 119.534 74.7083C119.444 74.7381 119.348 74.6896 119.318 74.6C119.288 74.5103 119.337 74.4135 119.426 74.3837C121.075 73.8359 122.774 73.8174 124.212 74.3318C125.685 74.8586 126.746 75.8996 127.2 77.263C127.229 77.3527 127.181 77.4495 127.091 77.4793C127.073 77.4852 127.055 77.488 127.037 77.488Z",fill:"#541A30"}),c.jsx("path",{d:"M91.188 138.62L63.4537 106.91L35.7192 138.62H52.4359V163.366H74.4714V138.62H91.188Z",fill:"#FFDA82"}),c.jsx("path",{d:"M125.368 144.645L111.7 129.018L98.0312 144.645H106.27V163.366H117.13V144.645H125.368Z",fill:"white"})]}),c.jsx("circle",{cx:"21.3915",cy:"10.5306",r:"10.5306",fill:"#427D8E"}),c.jsx("circle",{cx:"167.65",cy:"26.911",r:"7.02041",fill:"#427D8E"}),c.jsx("circle",{cx:"102.126",cy:"7.01982",r:"2.34014",fill:"#427D8E"}),c.jsx("circle",{cx:"160.629",cy:"106.477",r:"2.34014",fill:"#427D8E"}),c.jsx("circle",{cx:"60.0034",cy:"168.491",r:"3.5102",fill:"#427D8E"}),c.jsx("circle",{cx:"10.8611",cy:"127.538",r:"5.85034",fill:"#427D8E"}),c.jsx("circle",{cx:"155.95",cy:"153.28",r:"2.34014",fill:"#427D8E"}),c.jsx("circle",{cx:"114.997",cy:"162.639",r:"1.17007",fill:"#427D8E"}),c.jsx("circle",{cx:"1.50015",cy:"72.5451",r:"1.17007",fill:"#427D8E"}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2988_39089",children:c.jsx("rect",{x:"21.3916",y:"21.0605",width:"135.728",height:"135.728",rx:"67.8639",fill:"white"})})})]}),c.jsxs("div",{className:"my-5",children:[c.jsx("h4",{className:"text-xl text-center font-medium mb-3",children:"Congrats! Quiz is Done"}),c.jsx("p",{className:"text-sm text-center font-light mb-1 text-gray-400",children:"Your Grade is"}),c.jsxs("h5",{className:"font-bold text-center text-main-400 text-xl",children:[(n==null?void 0:n.score)||0," / ",(n==null?void 0:n.max_score)||0]})]}),c.jsx("div",{className:"flex items-center gap-2",children:c.jsx(st,{className:"btn-primary",onClick:()=>{s(!0),i("quiz"),l(0),t(!1)},children:"Review My Answers"})})]})]})})}function wq({quiz:e,initActiveUi:t="init"}){const[n,i]=ue.useState(!1),[s,l]=ue.useState(t),[u,d]=ue.useState(0),[h,m]=ue.useState(!1),[p,C]=ue.useState(null),[v,w]=ue.useState(null),[b,S]=ue.useState(!1),[E,j]=ue.useState(null),[T,L]=ue.useState([]),[D,M]=ue.useState(e.active_attempt),k=ue.useRef(null),O=p&&p[u]?p[u]:null,z=()=>D!=null&&D.remaining_time_minutes&&!D.is_expired?Math.floor(parseFloat(D.remaining_time_minutes)*60):e.duration*60,[I,ne]=ue.useState(z()),[Q,le]=ue.useState(100),[he,ie]=ue.useState(!1),[J,_]=ue.useState(0),U=Z=>{const F=[...T];F[u]=Z,L(F)},V=async()=>{if(!p)return;k.current&&(clearInterval(k.current),k.current=null);const Z=Math.round(20/p.length*100);_(Z),ie(!0),M(null),l("init")};function q(){return c.jsx(xq,{quiz:e,answers:E,setSelectedAnswers:L,setStarted:i,setActiveUi:l,setReviewing:m,score:J,results:v,questions:p,setCurrentPage:d,setActiveAttempt:M,finishedAttempt:b})}function R(){return p?c.jsx(yq,{quiz:e,timeLeft:I,percentage:Q,currentPage:u,question:O,questions:p,selectedAnswers:T,handleSelectOption:U,getPaginatedPageNumbers:r_,answers:E,handleSubmitQuiz:V,setCurrentPage:d,reviewing:h,setReviewing:m,setActiveUi:l,activeAttempt:D,setSelectedAnswers:L,setResults:w,setQuestionsAnswers:j,setFinishedAttempt:S}):c.jsx("div",{children:"Loading questions..."})}return ue.useEffect(()=>{const Z=async()=>{const G=await Xt.getCourseQuestions(e.id);G.status==200&&C(G.data.data)};(async()=>{var G;try{const ee=await Xt.getAnswers(e.id);console.log(ee.data),ee.status===200?(j(ee.data.data),w(ee.data.data)):ee.status===404&&w(Mg)}catch(ee){ot.isAxiosError(ee)&&(((G=ee.response)==null?void 0:G.status)===404?w(Mg):console.error("Error fetching quiz answers:",ee))}})(),Z()},[e]),ue.useEffect(()=>{p&&T.length===0&&L(Array(p.length).fill(null))},[p,T.length]),ue.useEffect(()=>{e.active_attempt&&!e.active_attempt.is_expired&&e.active_attempt.attempt_id?(l("quiz"),i(!0)):l("init")},[e]),ue.useEffect(()=>{if(!(!D||D.attempt_id==null)&&(l("quiz"),D.remaining_time_minutes&&!D.is_expired)){const Z=Math.floor(parseFloat(D.remaining_time_minutes)*60);ne(Z),i(!0)}},[D]),ue.useEffect(()=>{if(!(!n||I<=0))return k.current=window.setInterval(()=>{ne(Z=>Math.max(Z-1,0))},1e3),()=>{k.current&&clearInterval(k.current)}},[n,I]),ue.useEffect(()=>{if(n){const Z=e.duration*60,F=Math.max(0,Math.min(100,I/Z*100));le(F)}},[I,n,e.duration]),ue.useEffect(()=>{I===0&&n&&V()},[I,n]),c.jsxs("div",{className:"bg-neutral-100  rounded-2xl p-8",children:[c.jsx(bq,{showScore:he,setShowScore:ie,results:v,setReviewing:m,setCurrentPage:d,setActiveUi:l}),c.jsxs(qw,{defaultValue:"quiz",className:"w-full",children:[s=="init"&&c.jsxs(Kw,{className:"mx-auto mb-5 h-auto",children:[c.jsx(O1,{value:"quiz",className:"!text-xl px-6 py-3 ",children:"Quiz"}),c.jsx(O1,{value:"leaderboard",className:"!text-xl px-6 py-3 ",children:"Leaderboard"})]}),c.jsxs(_1,{value:"quiz",children:[s=="init"&&q(),s=="quiz"&&R()," "]}),c.jsx(_1,{value:"leaderboard",children:c.jsx(vq,{quiz:e})})]})]})}const Lg=e=>e!==null&&"video_url"in e,Tg=e=>e!==null&&"total_questions"in e,q7=e=>e!==null&&"file"in e,Ng=e=>e!==null&&"file_url"in e,Rg=e=>e!==null&&"assignment_file"in e,xS=e=>{var t,n;try{return((t=new URL(e).pathname.split(".").pop())==null?void 0:t.toLowerCase())||""}catch{return((n=e.split(".").pop())==null?void 0:n.toLowerCase())||""}},Sq=e=>{const t=xS(e),n={pdf:{icon:Qw,color:"text-red-500",type:"PDF Document",viewable:!0},doc:{icon:wg,color:"text-blue-500",type:"Word Document",viewable:!1},docx:{icon:wg,color:"text-blue-500",type:"Word Document",viewable:!1},xls:{icon:yg,color:"text-green-500",type:"Excel Spreadsheet",viewable:!1},xlsx:{icon:yg,color:"text-green-500",type:"Excel Spreadsheet",viewable:!1},ppt:{icon:bg,color:"text-orange-500",type:"PowerPoint Presentation",viewable:!1},pptx:{icon:bg,color:"text-orange-500",type:"PowerPoint Presentation",viewable:!1},jpg:{icon:da,color:"text-purple-500",type:"Image",viewable:!0},jpeg:{icon:da,color:"text-purple-500",type:"Image",viewable:!0},png:{icon:da,color:"text-purple-500",type:"Image",viewable:!0},gif:{icon:da,color:"text-purple-500",type:"Image",viewable:!0},svg:{icon:da,color:"text-purple-500",type:"Image",viewable:!0},webp:{icon:da,color:"text-purple-500",type:"Image",viewable:!0},mp4:{icon:S1,color:"text-indigo-500",type:"Video",viewable:!0},avi:{icon:S1,color:"text-indigo-500",type:"Video",viewable:!0},mov:{icon:S1,color:"text-indigo-500",type:"Video",viewable:!0},wmv:{icon:S1,color:"text-indigo-500",type:"Video",viewable:!0},webm:{icon:S1,color:"text-indigo-500",type:"Video",viewable:!0},mp3:{icon:$7,color:"text-pink-500",type:"Audio",viewable:!0},wav:{icon:$7,color:"text-pink-500",type:"Audio",viewable:!0},ogg:{icon:$7,color:"text-pink-500",type:"Audio",viewable:!0},txt:{icon:J4,color:"text-gray-500",type:"Text Document",viewable:!0},default:{icon:J4,color:"text-gray-500",type:"File",viewable:!1}};return n[t]||n.default};function yS({lesson:e}){const[t,n]=y.useState(!1),{user:i}=Vi();y.useEffect(()=>{n(!1)},[e]);function s(){if(!Lg(e))return;const w=j=>{if(!j)return null;const T=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=|live\/|shorts\/)([^#&?]*).*/,L=j.match(T);return L&&L[2].length===11?L[2]:null},b=()=>{n(!0)};async function S(j){console.log(window.location.origin);try{const T={video_id:j,user_id:i==null?void 0:i.id,user_email:i==null?void 0:i.email,user_name:i==null?void 0:i.name,allow_origin:window.location.origin},L=await ot.post("https://viewlock.net/api/embed-token",T);console.log("Response:",L.data)}catch(T){console.error("Error fetching video:",T)}}const E=()=>{if(console.log(e),!e.video_url)return c.jsx("div",{className:"bg-neutral-100 rounded-2xl p-8",children:c.jsx("p",{className:"text-gray-500",children:"No video URL available."})});if(e.video_type==="Bunny"&&e.video_url.includes("mediadelivery.net")){if(t)return c.jsx("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:c.jsx("iframe",{className:"absolute top-0 left-0 w-full h-full rounded-2xl",src:e.video_url,title:e.title||"Lesson Video",frameBorder:"0",scrolling:"no",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})});{const j=e.thumbnail_url||"https://i.pinimg.com/736x/71/09/5a/71095a60bb2800eb3b2f525ce0989335.jpg";return c.jsxs("div",{className:"relative max-h-[500px] rounded-2xl overflow-hidden",children:[c.jsx("img",{className:"w-full h-full object-cover",src:j,alt:"Bunny.net video thumbnail"}),c.jsx("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-neutral-200/60 backdrop-blur-sm w-20 h-20 rounded-full flex items-center justify-center cursor-pointer hover:bg-neutral-200/80 transition-colors",onClick:b,children:c.jsx(Sa,{className:"size-9 text-white ml-1"})})]})}}else if(e.video_type==="Youtube"){const j=w(e.video_url);if(console.log("YouTube Video ID:",j),t&&j)return c.jsx("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:c.jsx("iframe",{className:"absolute top-0 left-0 w-full h-full rounded-2xl",src:`https://www.youtube.com/embed/${j}?autoplay=1&mute=1`,title:e.title||"Lesson Video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})});{const T=j?`https://img.youtube.com/vi/${j}/hqdefault.jpg`:"https://i.pinimg.com/736x/71/09/5a/71095a60bb2800eb3b2f525ce0989335.jpg";return c.jsxs("div",{className:"relative max-h-[500px] rounded-2xl overflow-hidden",children:[c.jsx("img",{className:"w-full h-full object-cover",src:T,alt:"YouTube video thumbnail"}),c.jsx("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-neutral-200/60 backdrop-blur-sm w-20 h-20 rounded-full flex items-center justify-center cursor-pointer hover:bg-neutral-200/80 transition-colors",onClick:b,children:c.jsx(Sa,{className:"size-9 text-white ml-1"})})]})}}else return e.video_type=="Viewlock"?(S("9fadedc2-a92e-49e8-9fc9-2d5a2cfab89b"),t?c.jsx("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:c.jsx("iframe",{className:"absolute top-0 left-0 w-full h-full rounded-2xl",src:"https://www.youtube.com/embed/?autoplay=1&mute=1",title:e.title||"Lesson Video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})}):c.jsxs("div",{className:"relative max-h-[500px] rounded-2xl overflow-hidden",children:[c.jsx("img",{className:"w-full h-full object-cover",src:"https://i.pinimg.com/736x/71/09/5a/71095a60bb2800eb3b2f525ce0989335.jpg",alt:"YouTube video thumbnail"}),c.jsx("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-neutral-200/60 backdrop-blur-sm w-20 h-20 rounded-full flex items-center justify-center cursor-pointer hover:bg-neutral-200/80 transition-colors",onClick:b,children:c.jsx(Sa,{className:"size-9 text-white ml-1"})})]})):c.jsx("div",{className:"bg-neutral-100 rounded-2xl p-8",children:c.jsx("p",{className:"text-gray-500",children:"Unsupported video type."})})};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"relative rounded-2xl overflow-hidden",children:E()}),c.jsxs("div",{className:"mt-6",children:[c.jsx("h3",{className:"text-2xl font-bold text-neutral-900 mb-4",children:e.title}),c.jsx("p",{className:"text-neutral-600 font-light",children:e.description}),e.notes&&c.jsxs("div",{className:"mt-4",children:[c.jsxs("h5",{className:"flex items-center gap-2 mb-3",children:[c.jsx("span",{className:"bg-main-400/10 p-2 rounded-md"}),c.jsx("span",{className:"text-xl text-neutral-600",children:"Lesson Notes"})]}),c.jsx("p",{children:e.notes})]})]})]})}function l(){return Tg(e)?c.jsx(wq,{quiz:e,initActiveUi:"init"}):c.jsx("div",{children:"No practice content available"})}function u(){return Rg(e)?c.jsx(dq,{assignment:e}):c.jsx("div",{children:"No assignment content available"})}const d=({pdfUrl:w})=>{const[b,S]=y.useState(!1),E=()=>{S(!0)};return b?c.jsx("div",{className:"mt-8",children:c.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-6 text-center",children:[c.jsx(Qw,{className:"text-4xl text-red-500 mx-auto mb-4"}),c.jsx("h4",{className:"text-lg font-medium text-gray-900 mb-2",children:"PDF Preview Not Available"}),c.jsx("p",{className:"text-gray-600 mb-4",children:"This PDF cannot be displayed in the browser. You can download it to view the content."})]})}):c.jsx("div",{className:"mt-8",children:c.jsx("iframe",{src:w,width:"100%",height:"600px",style:{border:"none"},title:"PDF Viewer",className:"mt-4 rounded-xl",onError:E,onLoad:()=>S(!1)})})},h=({imageUrl:w,filename:b})=>{const[S,E]=y.useState(!1);return S?c.jsx("div",{className:"mt-8",children:c.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-6 text-center",children:[c.jsx(da,{className:"text-4xl text-purple-500 mx-auto mb-4"}),c.jsx("h4",{className:"text-lg font-medium text-gray-900 mb-2",children:"Image Not Available"}),c.jsx("p",{className:"text-gray-600 mb-4",children:"This image cannot be displayed."})]})}):c.jsx("div",{className:"mt-8",children:c.jsx("div",{className:"mt-4 rounded-xl overflow-hidden",children:c.jsx("img",{src:w,alt:b||"Resource image",className:"w-full h-auto max-h-96 object-contain bg-gray-50",onError:()=>E(!0)})})})},m=({videoUrl:w})=>c.jsx("div",{className:"mt-8",children:c.jsx("div",{className:"mt-4 rounded-xl overflow-hidden",children:c.jsxs("video",{controls:!0,className:"w-full h-auto max-h-96",preload:"metadata",children:[c.jsx("source",{src:w}),"Your browser does not support the video tag."]})})}),p=({audioUrl:w})=>c.jsx("div",{className:"mt-8",children:c.jsx("div",{className:"mt-4 p-6 bg-gray-50 rounded-xl",children:c.jsxs("audio",{controls:!0,className:"w-full",children:[c.jsx("source",{src:w}),"Your browser does not support the audio tag."]})})}),C=()=>c.jsx("div",{className:"mt-8",children:c.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-6 text-center",children:[c.jsx(J4,{className:"text-4xl text-gray-400 mx-auto mb-4"}),c.jsx("h4",{className:"text-lg font-medium text-gray-900 mb-2",children:"File Ready for Download"}),c.jsx("p",{className:"text-gray-600 mb-4",children:"This file type cannot be previewed in the browser. Download it to view the content."})]})});function v(){if(!Ng(e)&&!q7(e))return c.jsx("div",{children:"No resource content available"});const w=q7(e)?e.file.url:e.file_url,b=e.title||"Resource file";if(!w)return c.jsxs("div",{className:"bg-neutral-100 rounded-2xl lg:p-8 p-2",children:[c.jsx("h4",{className:"text-2xl",children:b}),c.jsx("p",{className:"text-lg text-gray-400",children:e.type||"Document Type"}),c.jsx("div",{className:"mt-6 p-4 bg-yellow-50 border border-yellow-200 rounded-lg",children:c.jsx("p",{className:"text-yellow-700",children:"No file URL available for this resource."})})]});const S=Sq(w),E=xS(w);return c.jsxs("div",{className:"bg-neutral-100 rounded-2xl p-8",children:[c.jsx("h4",{className:"text-2xl",children:b}),c.jsx("p",{className:"text-lg text-gray-400",children:e.type||S.type}),E==="pdf"&&c.jsx(d,{pdfUrl:w,filename:b}),["jpg","jpeg","png","gif","svg","webp"].includes(E)&&c.jsx(h,{imageUrl:w,filename:b}),["mp4","avi","mov","wmv","webm"].includes(E)&&c.jsx(m,{videoUrl:w,filename:b}),["mp3","wav","ogg"].includes(E)&&c.jsx(p,{audioUrl:w,filename:b}),!["pdf","jpg","jpeg","png","gif","svg","webp","mp4","avi","mov","wmv","webm","mp3","wav","ogg"].includes(E)&&c.jsx(C,{})]})}return e?Lg(e)?s():Tg(e)?l():Rg(e)?u():q7(e)||Ng(e)?v():c.jsx("div",{children:"Unknown content type"}):c.jsx("div",{children:"No lesson selected"})}function bS({...e}){return c.jsx(q6,{"data-slot":"sheet",...e})}function wS({...e}){return c.jsx(fx,{"data-slot":"sheet-trigger",...e})}function Eq({...e}){return c.jsx(K6,{"data-slot":"sheet-portal",...e})}function jq({className:e,...t}){return c.jsx(Q6,{"data-slot":"sheet-overlay",className:Ue("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function SS({className:e,children:t,side:n="right",showCloseButton:i=!0,...s}){return c.jsxs(Eq,{children:[c.jsx(jq,{}),c.jsxs(X6,{"data-slot":"sheet-content",className:Ue("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...s,children:[t,i&&c.jsxs(hx,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[c.jsx(Sx,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ES({className:e,...t}){return c.jsx("div",{"data-slot":"sheet-header",className:Ue("flex flex-col gap-1.5 p-4",e),...t})}function jS({className:e,...t}){return c.jsx(dx,{"data-slot":"sheet-title",className:Ue("text-foreground font-semibold",e),...t})}const Aq=(e="smooth")=>{window.scrollTo({top:0,behavior:e})},Mq=()=>c.jsx("div",{className:"mb-8",children:c.jsxs("div",{className:"flex items-center justify-between w-full py-4",children:[c.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[c.jsx(fe,{className:"bg-neutral-300 w-10 h-10 rounded-full"}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(fe,{className:"bg-neutral-300 h-4 w-32"}),c.jsx(fe,{className:"bg-neutral-300 h-3 w-20"})]})]}),c.jsx(fe,{className:"bg-neutral-300 w-4 h-4"})]})}),Lq=()=>c.jsx("div",{className:"flex items-center justify-between py-2",children:c.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[c.jsx(fe,{className:"bg-neutral-300 w-8 h-8 rounded-full"}),c.jsxs("div",{className:"space-y-1",children:[c.jsx(fe,{className:"bg-neutral-300 h-4 w-24"}),c.jsx(fe,{className:"bg-neutral-300 h-3 w-16"})]})]})}),Tq=()=>c.jsxs("aside",{className:"lg:col-span-4 md:col-span-5 col-span-12 md:order-1 order-2 bg-neutral-100 px-4 py-8 rounded-xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-8",children:[c.jsx(fe,{className:"bg-neutral-300 w-8 h-8"}),c.jsx(fe,{className:"bg-neutral-300 h-6 w-32"})]}),c.jsx("div",{className:"space-y-6",children:[...Array(3)].map((e,t)=>c.jsxs("div",{children:[c.jsx(Mq,{}),c.jsx("div",{className:"border-t border-neutral-200 pt-4 space-y-3",children:[...Array(4)].map((n,i)=>c.jsx(Lq,{},i))})]},t))})]}),Nq=()=>c.jsx("div",{className:"lg:col-span-8 md:col-span-7 col-span-12 md:order-2 order-1",children:c.jsxs("div",{className:"bg-white rounded-xl p-6 space-y-6",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx(fe,{className:"bg-neutral-300 h-8 w-3/4"}),c.jsx(fe,{className:"bg-neutral-300 h-4 w-1/2"})]}),c.jsx(fe,{className:"bg-neutral-300 h-64 w-full rounded-lg"}),c.jsx("div",{className:"space-y-3",children:[...Array(4)].map((e,t)=>c.jsx(fe,{className:"bg-neutral-300 h-4 w-full"},t))})]})});function Dg({courseData:e,selectedLesson:t,onLessonClick:n}){return e.chapters.length===0?c.jsx("div",{className:"flex flex-col items-center justify-center h-full text-center py-16",children:c.jsxs("div",{className:"text-neutral-400 space-y-3",children:[c.jsx("svg",{className:"w-16 h-16 mx-auto mb-4 text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})}),c.jsx("h5",{className:"text-lg font-medium text-neutral-600",children:"No Revision Content Available"}),c.jsxs("p",{className:"text-sm text-neutral-400",children:["This course doesn't have any revision chapters yet.",c.jsx("br",{}),"Please check back later."]})]})}):c.jsx(Z8,{type:"single",className:"w-full",defaultValue:t==null?void 0:t.id.toString(),children:e.chapters.map(i=>{if(!i.can_view_content)return null;const s=i.videos.some(l=>l.id===(t==null?void 0:t.id))||i.quizzes.some(l=>l.id===(t==null?void 0:t.id))||i.resources.some(l=>l.id===(t==null?void 0:t.id))||i.assignments.some(l=>l.id===(t==null?void 0:t.id));return c.jsxs(G8,{value:i.id.toString(),className:"mb-6 border-b-0",children:[c.jsx(Y8,{className:`!items-center py-3 px-3 rounded-lg transition-colors [&>svg]:text-black ${s?"bg-neutral-200":"hover:bg-neutral-200/60"}`,children:c.jsx("div",{className:"flex items-center gap-3 w-full text-left",children:c.jsxs("span",{className:"flex-1",children:[c.jsx("h4",{className:"text-sm font-semibold leading-snug",children:i.title}),c.jsx("p",{className:"text-xs text-neutral-400 font-normal mt-0.5",children:i.duration})]})})}),c.jsxs($8,{className:"border-t border-neutral-200 mt-1 pt-3 space-y-1 px-1",children:[i.videos.map(l=>c.jsx(W2,{icon:c.jsx(Sa,{className:"text-[10px]"}),title:l.title,subtitle:l.duration,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id)),i.quizzes.map(l=>c.jsx(W2,{icon:c.jsx(Ee,{icon:t8,size:14}),title:l.title,subtitle:`${l.total_questions} Questions`,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id)),i.resources.map(l=>c.jsx(W2,{icon:c.jsx(Ee,{icon:n8,size:14}),title:l.title,subtitle:l.type,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id)),i.assignments.map(l=>c.jsx(W2,{icon:c.jsx(Ee,{icon:Ux,size:14}),title:l.title,subtitle:`${l.max_points} pts · Due ${new Date(l.due_date).toLocaleDateString()}`,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id))]})]},i.id)})})}function W2({icon:e,title:t,subtitle:n,isActive:i,onClick:s}){return c.jsxs("div",{onClick:s,className:`flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-colors ${i?"bg-main-400/10 text-main-500 border border-main-400/20":"hover:bg-neutral-200/60"}`,children:[c.jsx("span",{className:`w-7 h-7 rounded-full border flex items-center justify-center flex-shrink-0 ${i?"border-main-400 bg-main-400/10 text-main-500":"border-neutral-300 text-neutral-500"}`,children:e}),c.jsxs("span",{className:"flex-1 min-w-0",children:[c.jsx("h5",{className:"text-sm font-medium leading-tight truncate",children:t}),c.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:n})]})]})}function Rq(){const[e,t]=ue.useState(null),[n,i]=ue.useState(!0),[s,l]=ue.useState(!1),{course_id:u}=Xr(),[d,h]=ue.useState(null),m=p=>{h(p),l(!1),Aq()};return y.useEffect(()=>{async function p(){var C;if(u)try{i(!0);const w=(await Xt.getCourseCurriculum(Number(u))).data.data,b=w.chapters.filter(S=>S.type==="revision");t({...w,chapters:b});for(const S of b)if(((C=S.videos)==null?void 0:C.length)>0){h(S.videos[0]);break}}catch(v){console.error("Failed to fetch course content:",v)}finally{i(!1)}}p()},[u]),n?c.jsx("div",{className:"py-8",children:c.jsxs("div",{className:"grid grid-cols-12 gap-4 container mx-auto px-4",children:[c.jsx(Tq,{}),c.jsx(Nq,{})]})}):c.jsx("div",{className:"py-6",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"md:hidden flex items-center justify-between mb-4 bg-neutral-100 rounded-xl px-4 py-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Zs.contentView,{}),c.jsx("span",{className:"font-medium text-sm",children:d?d.title??"Current Lesson":"Revision"})]}),c.jsxs(bS,{open:s,onOpenChange:l,children:[c.jsx(wS,{asChild:!0,children:c.jsxs(st,{variant:"outline",size:"sm",className:"gap-2 text-sm",children:[c.jsx(wx,{className:"w-4 h-4"}),"Chapters"]})}),c.jsxs(SS,{side:"bottom",className:"h-[85vh] rounded-t-2xl px-4 pt-6 pb-8 overflow-y-auto",children:[c.jsx(ES,{className:"mb-6",children:c.jsxs(jS,{className:"flex items-center gap-2 text-lg font-semibold",children:[c.jsx(Zs.contentView,{}),"Revision"]})}),e&&c.jsx(Dg,{courseData:e,selectedLesson:d,onLessonClick:m})]})]})]}),c.jsxs("div",{className:"grid grid-cols-12 gap-5 max-h-[calc(100dvh-10rem)]",children:[c.jsxs("aside",{className:"hidden md:flex md:col-span-5 lg:col-span-4 order-1 flex-col bg-neutral-100 px-4 py-6 rounded-2xl h-[78vh] overflow-hidden",children:[c.jsxs("h4",{className:"text-lg font-semibold flex items-center gap-2 mb-6 flex-shrink-0",children:[c.jsx(Zs.contentView,{}),"Revision"]}),c.jsx("div",{className:"flex-1 overflow-y-auto pr-1",children:e&&c.jsx(Dg,{courseData:e,selectedLesson:d,onLessonClick:m})})]}),c.jsx("div",{className:"col-span-12 md:col-span-7 lg:col-span-8 order-2 md:h-[78vh] overflow-y-auto rounded-2xl",children:d?c.jsx(yS,{lesson:d}):c.jsx("div",{className:"flex items-center justify-center h-full text-neutral-400 text-sm",children:"Select a lesson to get started"})})]})]})})}const Dq=(e="smooth")=>{window.scrollTo({top:0,behavior:e})},kq=()=>c.jsx("div",{className:"mb-8",children:c.jsxs("div",{className:"flex items-center justify-between w-full py-4",children:[c.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[c.jsx(fe,{className:"bg-neutral-300 w-10 h-10 rounded-full"}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(fe,{className:"bg-neutral-300 h-4 w-32"}),c.jsx(fe,{className:"bg-neutral-300 h-3 w-20"})]})]}),c.jsx(fe,{className:"bg-neutral-300 w-4 h-4"})]})}),Oq=()=>c.jsx("div",{className:"flex items-center justify-between py-2",children:c.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[c.jsx(fe,{className:"bg-neutral-300 w-8 h-8 rounded-full"}),c.jsxs("div",{className:"space-y-1",children:[c.jsx(fe,{className:"bg-neutral-300 h-4 w-24"}),c.jsx(fe,{className:"bg-neutral-300 h-3 w-16"})]})]})}),_q=()=>c.jsxs("aside",{className:"lg:col-span-4 md:col-span-5 col-span-12 md:order-1 order-2 bg-neutral-100 px-4 py-8 rounded-xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-8",children:[c.jsx(fe,{className:"bg-neutral-300 w-8 h-8"}),c.jsx(fe,{className:"bg-neutral-300 h-6 w-32"})]}),c.jsx("div",{className:"space-y-6",children:[...Array(3)].map((e,t)=>c.jsxs("div",{children:[c.jsx(kq,{}),c.jsx("div",{className:"border-t border-neutral-200 pt-4 space-y-3",children:[...Array(4)].map((n,i)=>c.jsx(Oq,{},i))})]},t))})]}),Pq=()=>c.jsx("div",{className:"lg:col-span-8 md:col-span-7 col-span-12 md:order-2 order-1",children:c.jsxs("div",{className:"bg-white rounded-xl p-6 space-y-6",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx(fe,{className:"bg-neutral-300 h-8 w-3/4"}),c.jsx(fe,{className:"bg-neutral-300 h-4 w-1/2"})]}),c.jsx(fe,{className:"bg-neutral-300 h-64 w-full rounded-lg"}),c.jsx("div",{className:"space-y-3",children:[...Array(4)].map((e,t)=>c.jsx(fe,{className:"bg-neutral-300 h-4 w-full"},t))})]})});function kg({courseData:e,selectedLesson:t,onLessonClick:n}){return e.chapters.length===0?c.jsx("div",{className:"flex flex-col items-center justify-center h-full text-center py-16",children:c.jsxs("div",{className:"text-neutral-400 space-y-3",children:[c.jsx("svg",{className:"w-16 h-16 mx-auto mb-4 text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})}),c.jsx("h5",{className:"text-lg font-medium text-neutral-600",children:"No Past Papers Available"}),c.jsxs("p",{className:"text-sm text-neutral-400",children:["This course doesn't have any past papers yet.",c.jsx("br",{}),"Please check back later."]})]})}):c.jsx(Z8,{type:"single",className:"w-full",defaultValue:t==null?void 0:t.id.toString(),children:e.chapters.map(i=>{if(!i.can_view_content)return null;const s=i.videos.some(l=>l.id===(t==null?void 0:t.id))||i.quizzes.some(l=>l.id===(t==null?void 0:t.id))||i.resources.some(l=>l.id===(t==null?void 0:t.id))||i.assignments.some(l=>l.id===(t==null?void 0:t.id));return c.jsxs(G8,{value:i.id.toString(),className:"mb-6 border-b-0",children:[c.jsx(Y8,{className:`!items-center py-3 px-3 rounded-lg transition-colors [&>svg]:text-black ${s?"bg-neutral-200":"hover:bg-neutral-200/60"}`,children:c.jsx("div",{className:"flex items-center gap-3 w-full text-left",children:c.jsxs("span",{className:"flex-1",children:[c.jsx("h4",{className:"text-sm font-semibold leading-snug",children:i.title}),c.jsx("p",{className:"text-xs text-neutral-400 font-normal mt-0.5",children:i.duration})]})})}),c.jsxs($8,{className:"border-t border-neutral-200 mt-1 pt-3 space-y-1 px-1",children:[i.videos.map(l=>c.jsx(q2,{icon:c.jsx(Sa,{className:"text-[10px]"}),title:l.title,subtitle:l.duration,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id)),i.quizzes.map(l=>c.jsx(q2,{icon:c.jsx(Ee,{icon:t8,size:14}),title:l.title,subtitle:`${l.total_questions} Questions`,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id)),i.resources.map(l=>c.jsx(q2,{icon:c.jsx(Ee,{icon:n8,size:14}),title:l.title,subtitle:l.type,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id)),i.assignments.map(l=>c.jsx(q2,{icon:c.jsx(Ee,{icon:Ux,size:14}),title:l.title,subtitle:`${l.max_points} pts · Due ${new Date(l.due_date).toLocaleDateString()}`,isActive:(t==null?void 0:t.id)===l.id,onClick:()=>n(l)},l.id))]})]},i.id)})})}function q2({icon:e,title:t,subtitle:n,isActive:i,onClick:s}){return c.jsxs("div",{onClick:s,className:`flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-colors ${i?"bg-main-400/10 text-main-500 border border-main-400/20":"hover:bg-neutral-200/60"}`,children:[c.jsx("span",{className:`w-7 h-7 rounded-full border flex items-center justify-center flex-shrink-0 ${i?"border-main-400 bg-main-400/10 text-main-500":"border-neutral-300 text-neutral-500"}`,children:e}),c.jsxs("span",{className:"flex-1 min-w-0",children:[c.jsx("h5",{className:"text-sm font-medium leading-tight truncate",children:t}),c.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:n})]})]})}function Vq(){const[e,t]=ue.useState(null),[n,i]=ue.useState(!0),[s,l]=ue.useState(!1),{course_id:u}=Xr(),[d,h]=ue.useState(null),m=p=>{h(p),l(!1),Dq()};return y.useEffect(()=>{async function p(){var C;if(u)try{i(!0);const w=(await Xt.getCourseCurriculum(Number(u))).data.data,b=w.chapters.filter(S=>S.type==="past_paper");t({...w,chapters:b});for(const S of b)if(((C=S.videos)==null?void 0:C.length)>0){h(S.videos[0]);break}}catch(v){console.error("Failed to fetch course content:",v)}finally{i(!1)}}p()},[u]),n?c.jsx("div",{className:"py-8",children:c.jsxs("div",{className:"grid grid-cols-12 gap-4 container mx-auto px-4",children:[c.jsx(_q,{}),c.jsx(Pq,{})]})}):c.jsx("div",{className:"py-6",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"md:hidden flex items-center justify-between mb-4 bg-neutral-100 rounded-xl px-4 py-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Zs.contentView,{}),c.jsx("span",{className:"font-medium text-sm",children:d?d.title??"Current Lesson":"Past Papers"})]}),c.jsxs(bS,{open:s,onOpenChange:l,children:[c.jsx(wS,{asChild:!0,children:c.jsxs(st,{variant:"outline",size:"sm",className:"gap-2 text-sm",children:[c.jsx(wx,{className:"w-4 h-4"}),"Chapters"]})}),c.jsxs(SS,{side:"bottom",className:"h-[85vh] rounded-t-2xl px-4 pt-6 pb-8 overflow-y-auto",children:[c.jsx(ES,{className:"mb-6",children:c.jsxs(jS,{className:"flex items-center gap-2 text-lg font-semibold",children:[c.jsx(Zs.contentView,{}),"Past Papers"]})}),e&&c.jsx(kg,{courseData:e,selectedLesson:d,onLessonClick:m})]})]})]}),c.jsxs("div",{className:"grid grid-cols-12 gap-5 max-h-[calc(100dvh-10rem)]",children:[c.jsxs("aside",{className:"hidden md:flex md:col-span-5 lg:col-span-4 order-1 flex-col bg-neutral-100 px-4 py-6 rounded-2xl h-[78vh] overflow-hidden",children:[c.jsxs("h4",{className:"text-lg font-semibold flex items-center gap-2 mb-6 flex-shrink-0",children:[c.jsx(Zs.contentView,{}),"Past Papers"]}),c.jsx("div",{className:"flex-1 overflow-y-auto pr-1",children:e&&c.jsx(kg,{courseData:e,selectedLesson:d,onLessonClick:m})})]}),c.jsx("div",{className:"col-span-12 md:col-span-7 lg:col-span-8 order-2 md:h-[78vh] overflow-y-auto rounded-2xl",children:d?c.jsx(yS,{lesson:d}):c.jsx("div",{className:"flex items-center justify-center h-full text-neutral-400 text-sm",children:"Select a lesson to get started"})})]})]})})}const zq=y.lazy(()=>hn(()=>import("./Login-3E2Mx5J3.js"),__vite__mapDeps([0,1]))),Fq=y.lazy(()=>hn(()=>import("./Register-boNCZJue.js"),__vite__mapDeps([2,3,1]))),Bq=y.lazy(()=>hn(()=>import("./ResetEmailForm-CgAS0EuP.js"),[])),Uq=y.lazy(()=>hn(()=>import("./OTP-bI8hiF5_.js"),[])),Hq=y.lazy(()=>hn(()=>import("./GuestLayout-BSss3Jds.js"),[])),Iq=y.lazy(()=>hn(()=>import("./Landing-ClBCm9Vd.js"),__vite__mapDeps([4,5]))),Zq=y.lazy(()=>hn(()=>import("./Courses-cN09QA5x.js"),__vite__mapDeps([6,5,7]))),Gq=y.lazy(()=>hn(()=>import("./Books-DDyoe4Wt.js"),__vite__mapDeps([8,7]))),Yq=y.lazy(()=>hn(()=>import("./ContentView-BgK8gBZ-.js"),[])),$q=y.lazy(()=>hn(()=>import("./Quizzes-CtYBCR48.js"),[])),Wq=y.lazy(()=>hn(()=>import("./Resources-D51rb1cs.js"),[])),qq=y.lazy(()=>hn(()=>import("./AccountSettings-BfC_o4Uu.js"),__vite__mapDeps([9,3,1]))),Kq=y.lazy(()=>hn(()=>import("./AccountProgress-CdyNC1p-.js"),[])),Qq=y.lazy(()=>hn(()=>import("./MyCourses-Du6-9x6l.js"),__vite__mapDeps([10,3,1]))),Xq=[{path:"/auth",element:c.jsx(Kz,{}),children:[{index:!0,element:c.jsx(Q2,{to:"/auth/login",replace:!0})},{path:"login",element:c.jsx(Ut,{title:"Login | Dr. Marco",children:c.jsx(zq,{})})},{path:"register",element:c.jsx(Ut,{title:"Register | Dr. Marco",children:c.jsx(Fq,{})})},{path:"ResetPassword",element:c.jsx(Ut,{title:"ResetPassword | Dr. Marco",children:c.jsx(J$,{})})},{path:"ResetEmailForm",element:c.jsx(Ut,{title:"ResetPassword | Dr. Marco",children:c.jsx(Bq,{})})},{path:"confirm-otp",element:c.jsx(Ut,{title:"Confirm Otp | Dr. Marco",children:c.jsx(Uq,{})})}]},{path:"/",element:c.jsx(Hq,{}),children:[{index:!0,element:c.jsx(Ut,{title:"Landing | Dr. Marco",children:c.jsx(Iq,{})})},{path:"courses",element:c.jsx(Ut,{title:"Courses | Dr. Marco",children:c.jsx(Zq,{})})},{path:"books",element:c.jsx(Ut,{title:"Books | Dr. Marco",children:c.jsx(Gq,{})})},{path:"course-details/:id",element:c.jsx(Ut,{title:"Course details | Dr. Marco",children:c.jsx(iq,{})})}]},{path:"/",element:c.jsx(fc,{children:c.jsx(fH,{})}),children:[{path:"my-courses",element:c.jsx(Ut,{title:"Saved courses | Dr. Marco",children:c.jsx(Qq,{})})}]},{path:"/course/:course_id",element:c.jsx(fc,{children:c.jsx(az,{children:c.jsx(hH,{})})}),children:[{index:!0,element:c.jsx(Q2,{to:"content",replace:!0})},{path:"content",element:c.jsx(Ut,{title:"Course content | Dr. Marco",children:c.jsx(Yq,{})})},{path:"revision",element:c.jsx(Ut,{title:"Revision | Dr. Marco",children:c.jsx(Rq,{})})},{path:"past-paper",element:c.jsx(Ut,{title:"Past paper | Dr. Marco",children:c.jsx(Vq,{})})},{path:"quizzes-assignment",element:c.jsx(Ut,{title:"Quizzes & Assignments | Dr. Marco",children:c.jsx($q,{})})},{path:"resources",element:c.jsx(Ut,{title:"Course Resources | Dr. Marco",children:c.jsx(Wq,{})})}]},{path:"/profile",element:c.jsx(fc,{children:c.jsx(XH,{})}),children:[{index:!0,element:c.jsx(Q2,{to:"/profile/account",replace:!0})},{path:"account",element:c.jsx(Ut,{title:"Account settings | Dr. Marco",children:c.jsx(qq,{})})},{path:"progress",element:c.jsx(Ut,{title:"My progress | Dr. Marco",children:c.jsx(Kq,{})})}]}];function Jq(){const e=FA(Xq),{isSearchOpen:t}=Fx();return c.jsxs(c.Fragment,{children:[c.jsx(B1,{mode:"wait",children:t&&c.jsx(Q_,{},"search-overlay")}),e]})}function eK(){const e=Un();return y.useEffect(()=>{window.scrollTo(0,0)},[e.key]),null}Wj.createRoot(document.getElementById("root")).render(c.jsxs(y.StrictMode,{children:[c.jsx(qz,{}),c.jsxs(SM,{children:[c.jsx(eK,{}),c.jsx(eA,{defaultSetOptions:{path:"/"},children:c.jsx(kM,{children:c.jsx(g_,{children:c.jsx(Jq,{})})})})]})]}));export{CK as $,NB as A,h_ as B,RB as C,H6 as D,m_ as E,I6 as F,p_ as G,Ee as H,gg as I,Bm as J,st as K,Cg as L,Pw as M,tt as N,X4 as O,Re as P,il as Q,TB as R,rK as S,qw as T,Kw as U,Et as V,O1 as W,_1 as X,wK as Y,SK as Z,yK as _,Jn as a,Sa as a$,ot as a0,H$ as a1,Un as a2,Fb as a3,Hx as a4,bp as a5,Yx as a6,Gx as a7,B1 as a8,ln as a9,M_ as aA,C_ as aB,y_ as aC,Px as aD,dK as aE,oK as aF,mK as aG,Vx as aH,o_ as aI,l_ as aJ,c_ as aK,xK as aL,cK as aM,lK as aN,hK as aO,lF as aP,Xr as aQ,Zs as aR,bS as aS,wS as aT,wx as aU,SS as aV,ES as aW,jS as aX,yS as aY,Xt as aZ,fe as a_,Yc as aa,vT as ab,Z8 as ac,G8 as ad,Y8 as ae,$8 as af,QK as ag,He as ah,z_ as ai,vK as aj,gK as ak,fK as al,Ze as am,rQ as an,qK as ao,tQ as ap,JK as aq,eQ as ar,nQ as as,Ds as at,iQ as au,XK as av,xW as aw,WK as ax,eW as ay,Wx as az,Qt as b,t8 as b0,n8 as b1,Ux as b2,pK as b3,Tg as b4,Rg as b5,W7 as b6,Ag as b7,w_ as b8,Ub as b9,tK as ba,Ic as bb,Pi as bc,lQ as bd,oQ as be,KK as bf,L4 as bg,ks as bh,bK as bi,Fm as bj,sc as bk,lu as bl,o8 as bm,Fn as bn,l6 as bo,mr as bp,gO as bq,Gy as c,Rt as d,Ne as e,Cr as f,Z6 as g,Wv as h,G6 as i,c as j,$s as k,Fv as l,DB as m,Ue as n,ue as o,gr as p,aA as q,y as r,Vi as s,cl as t,Na as u,a$ as v,uK as w,u_ as x,f_ as y,d_ as z};
