tokentracker-cli 0.60.2 → 0.60.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dashboard/dist/assets/{ActivityHeatmap-B3Q5GCKL.js → ActivityHeatmap-cLPCmg1i.js} +1 -1
  2. package/dashboard/dist/assets/{Card-C7m_x-dW.js → Card-_FGU06_g.js} +1 -1
  3. package/dashboard/dist/assets/{DashboardPage-Ct6CoW1Y.js → DashboardPage-sfNk7IcJ.js} +1 -1
  4. package/dashboard/dist/assets/{DevicePage-B_zSy31A.js → DevicePage-SEcI1kHh.js} +1 -1
  5. package/dashboard/dist/assets/{DialogTitle-Dprude33.js → DialogTitle-BXqPt5Ob.js} +1 -1
  6. package/dashboard/dist/assets/{FadeIn-B70xMHUD.js → FadeIn-By_JNfKb.js} +1 -1
  7. package/dashboard/dist/assets/{HeaderGithubStar-Dz_d3Veu.js → HeaderGithubStar-BOfxPmYV.js} +1 -1
  8. package/dashboard/dist/assets/{IpCheckPage--FQjGxXm.js → IpCheckPage-DofM0M8X.js} +1 -1
  9. package/dashboard/dist/assets/{LandingPage-B-t8RDCn.js → LandingPage-Cs-U-Y5I.js} +1 -1
  10. package/dashboard/dist/assets/{LeaderboardAvatar-CVXz36Iz.js → LeaderboardAvatar-CLLQCHHj.js} +1 -1
  11. package/dashboard/dist/assets/{LeaderboardPage-BhZsDjl0.js → LeaderboardPage-Ctco-Kdt.js} +3 -3
  12. package/dashboard/dist/assets/{LeaderboardProfileModal-DAqjcGRI.js → LeaderboardProfileModal-DIu4iePI.js} +1 -1
  13. package/dashboard/dist/assets/{LeaderboardProfilePage-CkWHkweP.js → LeaderboardProfilePage-BQJbJ4Zk.js} +1 -1
  14. package/dashboard/dist/assets/{LimitsPage-DXyn6hkD.js → LimitsPage-B6cYrodR.js} +1 -1
  15. package/dashboard/dist/assets/{LocalOnlyNotice-CDB66jIa.js → LocalOnlyNotice-DF1lCLZT.js} +1 -1
  16. package/dashboard/dist/assets/{LoginPage-DktOVgCy.js → LoginPage-Br4lL88q.js} +1 -1
  17. package/dashboard/dist/assets/{PopoverPopup-CatOS4NW.js → PopoverPopup-sfd3Ot7l.js} +1 -1
  18. package/dashboard/dist/assets/{ResetPasswordPage-Cb7h0l-Q.js → ResetPasswordPage-DPCimfFC.js} +1 -1
  19. package/dashboard/dist/assets/{Select-BiO59Iz-.js → Select-BTE9IFaB.js} +1 -1
  20. package/dashboard/dist/assets/{SelectItemText-if3W7eDL.js → SelectItemText-fTD-_D4r.js} +1 -1
  21. package/dashboard/dist/assets/{SettingsPage-CAP7uK2t.js → SettingsPage-DERfKxU0.js} +1 -1
  22. package/dashboard/dist/assets/{SkillsPage-CTgBETDM.js → SkillsPage-kLIOS3gm.js} +1 -1
  23. package/dashboard/dist/assets/{WidgetsPage-1lAVZO-r.js → WidgetsPage-BIaj8VAc.js} +1 -1
  24. package/dashboard/dist/assets/{WrappedPage-C1enRwTG.js → WrappedPage-Bgjnpl0T.js} +1 -1
  25. package/dashboard/dist/assets/{agent-logos-DVuBynPh.js → agent-logos-D1CgjfSi.js} +1 -1
  26. package/dashboard/dist/assets/{arrow-up-right-CzNhkWHp.js → arrow-up-right-BCwkxp9i.js} +1 -1
  27. package/dashboard/dist/assets/{download-BgTp-jC3.js → download-DYn5lZdU.js} +1 -1
  28. package/dashboard/dist/assets/{info-BE59mcIy.js → info-VYTQzNiq.js} +1 -1
  29. package/dashboard/dist/assets/{main-Bko0PBW5.js → main-ClN5xMKf.js} +2 -2
  30. package/dashboard/dist/assets/{use-limits-display-prefs-R5Xj5meQ.js → use-limits-display-prefs-BZlxCSKp.js} +1 -1
  31. package/dashboard/dist/assets/{use-native-settings-DBQs6ZUK.js → use-native-settings-Cbz2Ycln.js} +1 -1
  32. package/dashboard/dist/assets/{use-usage-limits-CP3wivgZ.js → use-usage-limits-BYwcAHmE.js} +1 -1
  33. package/dashboard/dist/assets/{useCurrency-rb01QMwI.js → useCurrency-CgeoIGsJ.js} +1 -1
  34. package/dashboard/dist/assets/{useScrollLock-DLYGNifa.js → useScrollLock-DqpLDNcl.js} +1 -1
  35. package/dashboard/dist/index.html +1 -1
  36. package/dashboard/dist/share.html +1 -1
  37. package/package.json +1 -1
  38. package/src/lib/opencode-go-limits.js +32 -42
  39. package/src/lib/pricing/seed-snapshot.json +1 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LimitsPage-DXyn6hkD.js","assets/use-usage-limits-CP3wivgZ.js","assets/use-limits-display-prefs-R5Xj5meQ.js","assets/Card-C7m_x-dW.js","assets/FadeIn-B70xMHUD.js","assets/LocalOnlyNotice-CDB66jIa.js","assets/arrow-up-right-CzNhkWHp.js","assets/download-BgTp-jC3.js","assets/LeaderboardPage-BhZsDjl0.js","assets/Select-BiO59Iz-.js","assets/SelectItemText-if3W7eDL.js","assets/useScrollLock-DLYGNifa.js","assets/useCurrency-rb01QMwI.js","assets/LeaderboardAvatar-CVXz36Iz.js","assets/DashboardPage-Ct6CoW1Y.js","assets/ActivityHeatmap-B3Q5GCKL.js","assets/info-BE59mcIy.js","assets/DialogTitle-Dprude33.js","assets/agent-logos-DVuBynPh.js","assets/PopoverPopup-CatOS4NW.js","assets/LandingPage-B-t8RDCn.js","assets/HeaderGithubStar-Dz_d3Veu.js","assets/LeaderboardProfilePage-CkWHkweP.js","assets/LeaderboardProfileModal-DAqjcGRI.js","assets/SettingsPage-CAP7uK2t.js","assets/use-native-settings-DBQs6ZUK.js","assets/SkillsPage-CTgBETDM.js","assets/WidgetsPage-1lAVZO-r.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LimitsPage-B6cYrodR.js","assets/use-usage-limits-BYwcAHmE.js","assets/use-limits-display-prefs-BZlxCSKp.js","assets/Card-_FGU06_g.js","assets/FadeIn-By_JNfKb.js","assets/LocalOnlyNotice-DF1lCLZT.js","assets/arrow-up-right-BCwkxp9i.js","assets/download-DYn5lZdU.js","assets/LeaderboardPage-Ctco-Kdt.js","assets/Select-BTE9IFaB.js","assets/SelectItemText-fTD-_D4r.js","assets/useScrollLock-DqpLDNcl.js","assets/useCurrency-CgeoIGsJ.js","assets/LeaderboardAvatar-CLLQCHHj.js","assets/DashboardPage-sfNk7IcJ.js","assets/ActivityHeatmap-cLPCmg1i.js","assets/info-VYTQzNiq.js","assets/DialogTitle-BXqPt5Ob.js","assets/agent-logos-D1CgjfSi.js","assets/PopoverPopup-sfd3Ot7l.js","assets/LandingPage-Cs-U-Y5I.js","assets/HeaderGithubStar-BOfxPmYV.js","assets/LeaderboardProfilePage-BQJbJ4Zk.js","assets/LeaderboardProfileModal-DIu4iePI.js","assets/SettingsPage-DERfKxU0.js","assets/use-native-settings-Cbz2Ycln.js","assets/SkillsPage-kLIOS3gm.js","assets/WidgetsPage-BIaj8VAc.js"])))=>i.map(i=>d[i]);
2
2
  function NS(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(a,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>a[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Wk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function OS(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var i=!1;try{i=this instanceof a}catch{}return 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(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ep={exports:{}},el={},Rp={exports:{}},tt={};var Av;function jS(){if(Av)return tt;Av=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function P(M,Z,be){this.props=M,this.context=Z,this.refs=C,this.updater=be||k}P.prototype.isReactComponent={},P.prototype.setState=function(M,Z){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,Z,"setState")},P.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function A(){}A.prototype=P.prototype;function D(M,Z,be){this.props=M,this.context=Z,this.refs=C,this.updater=be||k}var E=D.prototype=new A;E.constructor=D,x(E,P.prototype),E.isPureReactComponent=!0;var R=Array.isArray,z=Object.prototype.hasOwnProperty,W={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function T(M,Z,be){var he,de={},ye=null,Be=null;if(Z!=null)for(he in Z.ref!==void 0&&(Be=Z.ref),Z.key!==void 0&&(ye=""+Z.key),Z)z.call(Z,he)&&!F.hasOwnProperty(he)&&(de[he]=Z[he]);var Ke=arguments.length-2;if(Ke===1)de.children=be;else if(1<Ke){for(var Ne=Array(Ke),At=0;At<Ke;At++)Ne[At]=arguments[At+2];de.children=Ne}if(M&&M.defaultProps)for(he in Ke=M.defaultProps,Ke)de[he]===void 0&&(de[he]=Ke[he]);return{$$typeof:e,type:M,key:ye,ref:Be,props:de,_owner:W.current}}function $(M,Z){return{$$typeof:e,type:M.type,key:Z,ref:M.ref,props:M.props,_owner:M._owner}}function q(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function re(M){var Z={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(be){return Z[be]})}var se=/\/+/g;function Se(M,Z){return typeof M=="object"&&M!==null&&M.key!=null?re(""+M.key):Z.toString(36)}function pe(M,Z,be,he,de){var ye=typeof M;(ye==="undefined"||ye==="boolean")&&(M=null);var Be=!1;if(M===null)Be=!0;else switch(ye){case"string":case"number":Be=!0;break;case"object":switch(M.$$typeof){case e:case t:Be=!0}}if(Be)return Be=M,de=de(Be),M=he===""?"."+Se(Be,0):he,R(de)?(be="",M!=null&&(be=M.replace(se,"$&/")+"/"),pe(de,Z,be,"",function(At){return At})):de!=null&&(q(de)&&(de=$(de,be+(!de.key||Be&&Be.key===de.key?"":(""+de.key).replace(se,"$&/")+"/")+M)),Z.push(de)),1;if(Be=0,he=he===""?".":he+":",R(M))for(var Ke=0;Ke<M.length;Ke++){ye=M[Ke];var Ne=he+Se(ye,Ke);Be+=pe(ye,Z,be,Ne,de)}else if(Ne=v(M),typeof Ne=="function")for(M=Ne.call(M),Ke=0;!(ye=M.next()).done;)ye=ye.value,Ne=he+Se(ye,Ke++),Be+=pe(ye,Z,be,Ne,de);else if(ye==="object")throw Z=String(M),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return Be}function ue(M,Z,be){if(M==null)return M;var he=[],de=0;return pe(M,he,"","",function(ye){return Z.call(be,ye,de++)}),he}function ie(M){if(M._status===-1){var Z=M._result;Z=Z(),Z.then(function(be){(M._status===0||M._status===-1)&&(M._status=1,M._result=be)},function(be){(M._status===0||M._status===-1)&&(M._status=2,M._result=be)}),M._status===-1&&(M._status=0,M._result=Z)}if(M._status===1)return M._result.default;throw M._result}var ge={current:null},B={transition:null},X={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:B,ReactCurrentOwner:W};function V(){throw Error("act(...) is not supported in production builds of React.")}return tt.Children={map:ue,forEach:function(M,Z,be){ue(M,function(){Z.apply(this,arguments)},be)},count:function(M){var Z=0;return ue(M,function(){Z++}),Z},toArray:function(M){return ue(M,function(Z){return Z})||[]},only:function(M){if(!q(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},tt.Component=P,tt.Fragment=n,tt.Profiler=i,tt.PureComponent=D,tt.StrictMode=a,tt.Suspense=h,tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,tt.act=V,tt.cloneElement=function(M,Z,be){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var he=x({},M.props),de=M.key,ye=M.ref,Be=M._owner;if(Z!=null){if(Z.ref!==void 0&&(ye=Z.ref,Be=W.current),Z.key!==void 0&&(de=""+Z.key),M.type&&M.type.defaultProps)var Ke=M.type.defaultProps;for(Ne in Z)z.call(Z,Ne)&&!F.hasOwnProperty(Ne)&&(he[Ne]=Z[Ne]===void 0&&Ke!==void 0?Ke[Ne]:Z[Ne])}var Ne=arguments.length-2;if(Ne===1)he.children=be;else if(1<Ne){Ke=Array(Ne);for(var At=0;At<Ne;At++)Ke[At]=arguments[At+2];he.children=Ke}return{$$typeof:e,type:M.type,key:de,ref:ye,props:he,_owner:Be}},tt.createContext=function(M){return M={$$typeof:l,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:s,_context:M},M.Consumer=M},tt.createElement=T,tt.createFactory=function(M){var Z=T.bind(null,M);return Z.type=M,Z},tt.createRef=function(){return{current:null}},tt.forwardRef=function(M){return{$$typeof:u,render:M}},tt.isValidElement=q,tt.lazy=function(M){return{$$typeof:f,_payload:{_status:-1,_result:M},_init:ie}},tt.memo=function(M,Z){return{$$typeof:p,type:M,compare:Z===void 0?null:Z}},tt.startTransition=function(M){var Z=B.transition;B.transition={};try{M()}finally{B.transition=Z}},tt.unstable_act=V,tt.useCallback=function(M,Z){return ge.current.useCallback(M,Z)},tt.useContext=function(M){return ge.current.useContext(M)},tt.useDebugValue=function(){},tt.useDeferredValue=function(M){return ge.current.useDeferredValue(M)},tt.useEffect=function(M,Z){return ge.current.useEffect(M,Z)},tt.useId=function(){return ge.current.useId()},tt.useImperativeHandle=function(M,Z,be){return ge.current.useImperativeHandle(M,Z,be)},tt.useInsertionEffect=function(M,Z){return ge.current.useInsertionEffect(M,Z)},tt.useLayoutEffect=function(M,Z){return ge.current.useLayoutEffect(M,Z)},tt.useMemo=function(M,Z){return ge.current.useMemo(M,Z)},tt.useReducer=function(M,Z,be){return ge.current.useReducer(M,Z,be)},tt.useRef=function(M){return ge.current.useRef(M)},tt.useState=function(M){return ge.current.useState(M)},tt.useSyncExternalStore=function(M,Z,be){return ge.current.useSyncExternalStore(M,Z,be)},tt.useTransition=function(){return ge.current.useTransition()},tt.version="18.3.1",tt}var Lv;function Ul(){return Lv||(Lv=1,Rp.exports=jS()),Rp.exports}var Dv;function US(){if(Dv)return el;Dv=1;var e=Ul(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,h,p){var f,g={},v=null,k=null;p!==void 0&&(v=""+p),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(k=h.ref);for(f in h)a.call(h,f)&&!s.hasOwnProperty(f)&&(g[f]=h[f]);if(u&&u.defaultProps)for(f in h=u.defaultProps,h)g[f]===void 0&&(g[f]=h[f]);return{$$typeof:t,type:u,key:v,ref:k,props:g,_owner:i.current}}return el.Fragment=n,el.jsx=l,el.jsxs=l,el}var Iv;function zS(){return Iv||(Iv=1,Ep.exports=US()),Ep.exports}var S=zS(),b=Ul();const Zo=Wk(b),Gk=NS({__proto__:null,default:Zo},[b]);var ru={},Ap={exports:{}},Un={},Lp={exports:{}},Dp={};var Mv;function FS(){return Mv||(Mv=1,(function(e){function t(B,X){var V=B.length;B.push(X);e:for(;0<V;){var M=V-1>>>1,Z=B[M];if(0<i(Z,X))B[M]=X,B[V]=Z,V=M;else break e}}function n(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var X=B[0],V=B.pop();if(V!==X){B[0]=V;e:for(var M=0,Z=B.length,be=Z>>>1;M<be;){var he=2*(M+1)-1,de=B[he],ye=he+1,Be=B[ye];if(0>i(de,V))ye<Z&&0>i(Be,de)?(B[M]=Be,B[ye]=V,M=ye):(B[M]=de,B[he]=V,M=he);else if(ye<Z&&0>i(Be,V))B[M]=Be,B[ye]=V,M=ye;else break e}}return X}function i(B,X){var V=B.sortIndex-X.sortIndex;return V!==0?V:B.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var h=[],p=[],f=1,g=null,v=3,k=!1,x=!1,C=!1,P=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(B){for(var X=n(p);X!==null;){if(X.callback===null)a(p);else if(X.startTime<=B)a(p),X.sortIndex=X.expirationTime,t(h,X);else break;X=n(p)}}function R(B){if(C=!1,E(B),!x)if(n(h)!==null)x=!0,ie(z);else{var X=n(p);X!==null&&ge(R,X.startTime-B)}}function z(B,X){x=!1,C&&(C=!1,A(T),T=-1),k=!0;var V=v;try{for(E(X),g=n(h);g!==null&&(!(g.expirationTime>X)||B&&!re());){var M=g.callback;if(typeof M=="function"){g.callback=null,v=g.priorityLevel;var Z=M(g.expirationTime<=X);X=e.unstable_now(),typeof Z=="function"?g.callback=Z:g===n(h)&&a(h),E(X)}else a(h);g=n(h)}if(g!==null)var be=!0;else{var he=n(p);he!==null&&ge(R,he.startTime-X),be=!1}return be}finally{g=null,v=V,k=!1}}var W=!1,F=null,T=-1,$=5,q=-1;function re(){return!(e.unstable_now()-q<$)}function se(){if(F!==null){var B=e.unstable_now();q=B;var X=!0;try{X=F(!0,B)}finally{X?Se():(W=!1,F=null)}}else W=!1}var Se;if(typeof D=="function")Se=function(){D(se)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ue=pe.port2;pe.port1.onmessage=se,Se=function(){ue.postMessage(null)}}else Se=function(){P(se,0)};function ie(B){F=B,W||(W=!0,Se())}function ge(B,X){T=P(function(){B(e.unstable_now())},X)}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(B){B.callback=null},e.unstable_continueExecution=function(){x||k||(x=!0,ie(z))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(B){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var V=v;v=X;try{return B()}finally{v=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var V=v;v=B;try{return X()}finally{v=V}},e.unstable_scheduleCallback=function(B,X,V){var M=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?M+V:M):V=M,B){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=V+Z,B={id:f++,callback:X,priorityLevel:B,startTime:V,expirationTime:Z,sortIndex:-1},V>M?(B.sortIndex=V,t(p,B),n(h)===null&&B===n(p)&&(C?(A(T),T=-1):C=!0,ge(R,V-M))):(B.sortIndex=Z,t(h,B),x||k||(x=!0,ie(z))),B},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(B){var X=v;return function(){var V=v;v=X;try{return B.apply(this,arguments)}finally{v=V}}}})(Dp)),Dp}var Nv;function BS(){return Nv||(Nv=1,Lp.exports=FS()),Lp.exports}var Ov;function VS(){if(Ov)return Un;Ov=1;var e=Ul(),t=BS();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,c=1;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,i={};function s(r,o){l(r,o),l(r+"Capture",o)}function l(r,o){for(i[r]=o,r=0;r<o.length;r++)a.add(o[r])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,f={},g={};function v(r){return h.call(g,r)?!0:h.call(f,r)?!1:p.test(r)?g[r]=!0:(f[r]=!0,!1)}function k(r,o,c,d){if(c!==null&&c.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:c!==null?!c.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function x(r,o,c,d){if(o===null||typeof o>"u"||k(r,o,c,d))return!0;if(d)return!1;if(c!==null)switch(c.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function C(r,o,c,d,m,y,w){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=c,this.propertyName=r,this.type=o,this.sanitizeURL=y,this.removeEmptyString=w}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){P[r]=new C(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];P[o]=new C(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){P[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){P[r]=new C(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){P[r]=new C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){P[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){P[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){P[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){P[r]=new C(r,5,!1,r.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function D(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(A,D);P[o]=new C(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(A,D);P[o]=new C(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(A,D);P[o]=new C(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){P[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),P.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){P[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function E(r,o,c,d){var m=P.hasOwnProperty(o)?P[o]:null;(m!==null?m.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(x(o,c,m,d)&&(c=null),d||m===null?v(o)&&(c===null?r.removeAttribute(o):r.setAttribute(o,""+c)):m.mustUseProperty?r[m.propertyName]=c===null?m.type===3?!1:"":c:(o=m.attributeName,d=m.attributeNamespace,c===null?r.removeAttribute(o):(m=m.type,c=m===3||m===4&&c===!0?"":""+c,d?r.setAttributeNS(d,o,c):r.setAttribute(o,c))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),W=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),re=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),B=Symbol.iterator;function X(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var V=Object.assign,M;function Z(r){if(M===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);M=o&&o[1]||""}return`
3
3
  `+M+r}var be=!1;function he(r,o){if(!r||be)return"";be=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(Y){var d=Y}Reflect.construct(r,[],o)}else{try{o.call()}catch(Y){d=Y}r.call(o.prototype)}else{try{throw Error()}catch(Y){d=Y}r()}}catch(Y){if(Y&&d&&typeof Y.stack=="string"){for(var m=Y.stack.split(`
4
4
  `),y=d.stack.split(`
@@ -1042,4 +1042,4 @@ limits.opencodeGo.setupHint.copied,ui,LimitsPage,UsageLimitsPanel,opencode_go_hi
1042
1042
  ${R}px !important;
1043
1043
  ${z}px !important;
1044
1044
  }
1045
- `),()=>{u.current?.removeAttribute("data-motion-pop-id"),F.contains(W)&&F.removeChild(W)}},[t]),S.jsx(AI,{isPresent:t,childRef:u,sizeRef:h,pop:s,children:s===!1?e:b.cloneElement(e,{ref:g})})}const DI=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:i,presenceAffectsLayout:s,mode:l,anchorX:u,anchorY:h,root:p})=>{const f=hg(II),g=b.useId(),v=b.useRef(n),k=b.useRef(a);pg(()=>{v.current=n,k.current=a});let x=!0,C=b.useMemo(()=>(x=!1,{id:g,initial:t,isPresent:n,custom:i,onExitComplete:P=>{f.set(P,!0);for(const A of f.values())if(!A)return;a&&a()},register:P=>(f.set(P,!1),()=>{f.delete(P),!v.current&&!f.size&&k.current?.()})}),[n,f,a]);return s&&x&&(C={...C}),b.useMemo(()=>{f.forEach((P,A)=>f.set(A,!1))},[n]),b.useEffect(()=>{!n&&!f.size&&a&&a()},[n]),e=S.jsx(LI,{pop:l==="popLayout",isPresent:n,anchorX:u,anchorY:h,root:p,children:e}),S.jsx(Vd.Provider,{value:C,children:e})};function II(){return new Map}function Mx(e=!0){const t=b.useContext(Vd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:i}=t,s=b.useId();b.useEffect(()=>{if(e)return i(s)},[e]);const l=b.useCallback(()=>e&&a&&a(s),[s,a,e]);return!n&&a?[!1,l]:[!0]}const fu=e=>e.key||"";function tk(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Nx=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:i=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",anchorY:h="top",root:p})=>{const[f,g]=Mx(l),v=b.useMemo(()=>tk(e),[e]),k=l&&!f?[]:v.map(fu),x=b.useRef(!0),C=b.useRef(v),P=hg(()=>new Map),A=b.useRef(new Set),[D,E]=b.useState(v),[R,z]=b.useState(v);pg(()=>{x.current=!1,C.current=v;for(let T=0;T<R.length;T++){const $=fu(R[T]);k.includes($)?(P.delete($),A.current.delete($)):P.get($)!==!0&&P.set($,!1)}},[R,k.length,k.join("-")]);const W=[];if(v!==D){let T=[...v];for(let $=0;$<R.length;$++){const q=R[$],re=fu(q);k.includes(re)||(T.splice($,0,q),W.push(q))}return s==="wait"&&W.length&&(T=W),z(tk(T)),E(v),null}const{forceRender:F}=b.useContext(dg);return S.jsx(S.Fragment,{children:R.map(T=>{const $=fu(T),q=l&&!f?!1:v===R||k.includes($),re=()=>{if(A.current.has($))return;if(P.has($))A.current.add($),P.set($,!0);else return;let se=!0;P.forEach(Se=>{Se||(se=!1)}),se&&(F?.(),z(C.current),l&&g?.(),a&&a())};return S.jsx(DI,{isPresent:q,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:p,onExitComplete:q?void 0:re,anchorX:u,anchorY:h,children:T},$)})})},Ox=b.createContext({strict:!1}),nk={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"]};let ak=!1;function MI(){if(ak)return;const e={};for(const t in nk)e[t]={isEnabled:n=>nk[t].some(a=>!!n[a])};ux(e),ak=!0}function jx(){return MI(),vD()}function NI(e){const t=jx();for(const n in e)t[n]={...t[n],...e[n]};ux(t)}const OI=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","propagate","ignoreStrict","viewport"]);function Pd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||OI.has(e)}let Ux=e=>!Pd(e);function jI(e){typeof e=="function"&&(Ux=t=>t.startsWith("on")?!Pd(t):e(t))}try{jI(require("@emotion/is-prop-valid").default)}catch{}function UI(e,t,n){const a={};for(const i in e)i==="values"&&typeof e.values=="object"||dn(e[i])||(Ux(i)||n===!0&&Pd(i)||!t&&!Pd(i)||e.draggable&&i.startsWith("onDrag"))&&(a[i]=e[i]);return a}const Gd=b.createContext({});function zI(e,t){if(Wd(e)){const{initial:n,animate:a}=e;return{initial:n===!1||Ml(n)?n:void 0,animate:Ml(a)?a:void 0}}return e.inherit!==!1?t:{}}function FI(e){const{initial:t,animate:n}=zI(e,b.useContext(Gd));return b.useMemo(()=>({initial:t,animate:n}),[rk(t),rk(n)])}function rk(e){return Array.isArray(e)?e.join(" "):e}const zg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zx(e,t,n){for(const a in t)!dn(t[a])&&!yx(a,n)&&(e[a]=t[a])}function BI({transformTemplate:e},t){return b.useMemo(()=>{const n=zg();return Og(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VI(e,t){const n=e.style||{},a={};return zx(a,n,e),Object.assign(a,BI(e,t)),a}function HI(e,t){const n={},a=VI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.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=a,n}const Fx=()=>({...zg(),attrs:{}});function $I(e,t,n,a){const i=b.useMemo(()=>{const s=Fx();return vx(s,t,_x(a),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};zx(s,e.style,e),i.style={...s,...i.style}}return i}const WI=["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 Fg(e){return typeof e!="string"||e.includes("-")?!1:!!(WI.indexOf(e)>-1||/[A-Z]/u.test(e))}function GI(e,t,n,{latestValues:a},i,s=!1,l){const h=(l??Fg(e)?$I:HI)(t,a,i,e),p=UI(t,typeof e=="string",s),f=e!==b.Fragment?{...p,...h,ref:n}:{},{children:g}=t,v=b.useMemo(()=>dn(g)?g.get():g,[g]);return b.createElement(e,{...f,children:v})}function KI({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,i){return{latestValues:qI(n,a,i,e),renderState:t()}}function qI(e,t,n,a){const i={},s=a(e,{});for(const v in s)i[v]=$u(s[v]);let{initial:l,animate:u}=e;const h=Wd(e),p=lx(e);t&&p&&!h&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||l===!1;const g=f?u:l;if(g&&typeof g!="boolean"&&!$d(g)){const v=Array.isArray(g)?g:[g];for(let k=0;k<v.length;k++){const x=Eg(e,v[k]);if(x){const{transitionEnd:C,transition:P,...A}=x;for(const D in A){let E=A[D];if(Array.isArray(E)){const R=f?E.length-1:0;E=E[R]}E!==null&&(i[D]=E)}for(const D in C)i[D]=C[D]}}}return i}const Bx=e=>(t,n)=>{const a=b.useContext(Gd),i=b.useContext(Vd),s=()=>KI(e,t,a,i);return n?s():hg(s)},YI=Bx({scrapeMotionValuesFromProps:jg,createRenderState:zg}),ZI=Bx({scrapeMotionValuesFromProps:kx,createRenderState:Fx}),XI=Symbol.for("motionComponentSymbol");function JI(e,t,n){const a=b.useRef(n);b.useInsertionEffect(()=>{a.current=n});const i=b.useRef(null);return b.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const l=a.current;if(typeof l=="function")if(s){const u=l(s);typeof u=="function"&&(i.current=u)}else i.current?(i.current(),i.current=null):l(s);else l&&(l.current=s)},[t])}const Vx=b.createContext({});function Bo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QI(e,t,n,a,i,s){const{visualElement:l}=b.useContext(Gd),u=b.useContext(Ox),h=b.useContext(Vd),p=b.useContext(Ug),f=p.reducedMotion,g=p.skipAnimations,v=b.useRef(null),k=b.useRef(!1);a=a||u.renderer,!v.current&&a&&(v.current=a(e,{visualState:t,parent:l,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:f,skipAnimations:g,isSVG:s}),k.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const x=v.current,C=b.useContext(Vx);x&&!x.projection&&i&&(x.type==="html"||x.type==="svg")&&e9(v.current,n,i,C);const P=b.useRef(!1);b.useInsertionEffect(()=>{x&&P.current&&x.update(n,h)});const A=n[Z2],D=b.useRef(!!A&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return pg(()=>{k.current=!0,x&&(P.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),D.current&&x.animationState&&x.animationState.animateChanges())}),b.useEffect(()=>{x&&(!D.current&&x.animationState&&x.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),D.current=!1),x.enteringChildren=void 0)}),x}function e9(e,t,n,a){const{layoutId:i,layout:s,drag:l,dragConstraints:u,layoutScroll:h,layoutRoot:p,layoutAnchor:f,layoutCrossfade:g}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Hx(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!l||u&&Bo(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:a,crossfade:g,layoutScroll:h,layoutRoot:p,layoutAnchor:f})}function Hx(e){if(e)return e.options.allowProjection!==!1?e.projection:Hx(e.parent)}function sf(e,{forwardMotionProps:t=!1,type:n}={},a,i){a&&NI(a);const s=n?n==="svg":Fg(e),l=s?ZI:YI;function u(p,f){let g;const v={...b.useContext(Ug),...p,layoutId:t9(p)},{isStatic:k}=v,x=FI(p),C=l(p,k);if(!k&&typeof window<"u"){n9();const P=a9(v);g=P.MeasureLayout,x.visualElement=QI(e,C,v,i,P.ProjectionNode,s)}return S.jsxs(Gd.Provider,{value:x,children:[g&&x.visualElement?S.jsx(g,{visualElement:x.visualElement,...v}):null,GI(e,p,JI(C,x.visualElement,f),C,k,t,s)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=b.forwardRef(u);return h[XI]=e,h}function t9({layoutId:e}){const t=b.useContext(dg).id;return t&&e!==void 0?t+"-"+e:e}function n9(e,t){b.useContext(Ox).strict}function a9(e){const t=jx(),{drag:n,layout:a}=t;if(!n&&!a)return{};const i={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function r9(e,t){if(typeof Proxy>"u")return sf;const n=new Map,a=(s,l)=>sf(s,l,e,t),i=(s,l)=>a(s,l);return new Proxy(i,{get:(s,l)=>l==="create"?a:(n.has(l)||n.set(l,sf(l,void 0,e,t)),n.get(l))})}const i9=(e,t)=>t.isSVG??Fg(e)?new ND(t):new RD(t,{allowProjection:e!==b.Fragment});class o9 extends pi{constructor(t){super(t),t.animationState||(t.animationState=FD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$d(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(){this.node.animationState.reset(),this.unmountControls?.()}}let s9=0;class l9 extends pi{constructor(){super(...arguments),this.id=s9++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:s,custom:l}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){const u=Wi(this.node,s,l);if(u){const{transition:h,transitionEnd:p,...f}=u;for(const g in f)this.node.getValue(g)?.jump(f[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const c9={animation:{Feature:o9},exit:{Feature:l9}};function Jl(e){return{point:{x:e.pageX,y:e.pageY}}}const u9=e=>t=>Lg(t)&&e(t,Jl(t));function xl(e,t,n,a){return Nl(e,t,u9(n),a)}const $x=({current:e})=>e?e.ownerDocument.defaultView:null,ik=(e,t)=>Math.abs(e-t);function d9(e,t){const n=ik(e.x,t.x),a=ik(e.y,t.y);return Math.sqrt(n**2+a**2)}const ok=new Set(["auto","scroll"]);class Wx{constructor(t,n,{transformPagePoint:a,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=mu(this.lastRawMoveEventInfo,this.transformPagePoint));const x=lf(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,P=d9(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!C&&!P)return;const{point:A}=x,{timestamp:D}=un;this.history.push({...A,timestamp:D});const{onStart:E,onMove:R}=this.handlers;C||(E&&E(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,x)},this.handlePointerMove=(x,C)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=C,this.lastMoveEventInfo=mu(C,this.transformPagePoint),_t.update(this.updatePoint,!0)},this.handlePointerUp=(x,C)=>{this.end();const{onEnd:P,onSessionEnd:A,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=lf(x.type==="pointercancel"?this.lastMoveEventInfo:mu(C,this.transformPagePoint),this.history);this.startEvent&&P&&P(x,E),A&&A(x,E)},!Lg(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=l,this.contextWindow=i||window;const h=Jl(t),p=mu(h,this.transformPagePoint),{point:f}=p,{timestamp:g}=un;this.history=[{...f,timestamp:g}];const{onSessionStart:v}=n;v&&v(t,lf(p,this.history));const k={passive:!0,capture:!0};this.removeListeners=Yl(xl(this.contextWindow,"pointermove",this.handlePointerMove,k),xl(this.contextWindow,"pointerup",this.handlePointerUp,k),xl(this.contextWindow,"pointercancel",this.handlePointerUp,k)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const a=getComputedStyle(n);(ok.has(a.overflowX)||ok.has(a.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const a=t===window,i=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),_t.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),di(this.updatePoint)}}function mu(e,t){return t?{point:t(e.point)}:e}function sk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lf({point:e},t){return{point:e,delta:sk(e,Gx(t)),offset:sk(e,h9(t)),velocity:p9(t,.1)}}function h9(e){return e[0]}function Gx(e){return e[e.length-1]}function p9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const i=Gx(e);for(;n>=0&&(a=e[n],!(i.timestamp-a.timestamp>Yn(t)));)n--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&i.timestamp-a.timestamp>Yn(t)*2&&(a=e[1]);const s=sa(i.timestamp-a.timestamp);if(s===0)return{x:0,y:0};const l={x:(i.x-a.x)/s,y:(i.y-a.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function f9(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?bt(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?bt(n,e,a.max):Math.min(e,n)),e}function lk(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 m9(e,{top:t,left:n,bottom:a,right:i}){return{x:lk(e.x,n,i),y:lk(e.y,t,a)}}function ck(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function g9(e,t){return{x:ck(e.x,t.x),y:ck(e.y,t.y)}}function y9(e,t){let n=.5;const a=Tn(e),i=Tn(t);return i>a?n=Dl(t.min,t.max-a,e.min):a>i&&(n=Dl(e.min,e.max-i,t.min)),ar(0,1,n)}function v9(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 gm=.35;function b9(e=gm){return e===!1?e=0:e===!0&&(e=gm),{x:uk(e,"left","right"),y:uk(e,"top","bottom")}}function uk(e,t,n){return{min:dk(e,t),max:dk(e,n)}}function dk(e,t){return typeof e=="number"?e:e[t]||0}const _9=new WeakMap;class k9{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=Qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=g=>{n&&this.snapToCursor(Jl(g).point),this.stopAnimation()},l=(g,v)=>{const{drag:k,dragPropagation:x,onDragStart:C}=this.getProps();if(k&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YL(k),!this.openDragLock))return;this.latestPointerEvent=g,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),Ka(A=>{let D=this.getAxisMotionValue(A).get()||0;if(Xa.test(D)){const{projection:E}=this.visualElement;if(E&&E.layout){const R=E.layout.layoutBox[A];R&&(D=Tn(R)*(parseFloat(D)/100))}}this.originPoint[A]=D}),C&&_t.update(()=>C(g,v),!1,!0),sm(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},u=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:k,dragDirectionLock:x,onDirectionLock:C,onDrag:P}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:A}=v;if(x&&this.currentDirection===null){this.currentDirection=x9(A),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,A),this.updateAxis("y",v.point,A),this.visualElement.render(),P&&_t.update(()=>P(g,v),!1,!0)},h=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new Wx(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:a,contextWindow:$x(this.visualElement),element:this.visualElement.current})}stop(t,n){const a=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!a)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&_t.postRender(()=>u(a,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,a){const{drag:i}=this.getProps();if(!a||!gu(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(l=f9(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Bo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=m9(a.layoutBox,t):this.constraints=!1,this.elastic=b9(n),i!==this.constraints&&!Bo(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&Ka(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=v9(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bo(t))return!1;const a=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const s=xD(a,i.root,this.visualElement.getTransformPagePoint());let l=g9(i.layout.layoutBox,s);if(n){const u=n(_D(l));this.hasMutatedConstraints=!!u,u&&(l=hx(u))}return l}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:i,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),h=this.constraints||{},p=Ka(f=>{if(!gu(f,n,this.currentDirection))return;let g=h&&h[f]||{};(l===!0||l===f)&&(g={min:0,max:0});const v=i?200:1e6,k=i?40:1e7,x={type:"inertia",velocity:a?t[f]:0,bounceStiffness:v,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(f,x)});return Promise.all(p).then(u)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return sm(this.visualElement,t),a.start(Tg(t,a,0,n,this.visualElement,!1))}stopAnimation(){Ka(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Ka(n=>{const{drag:a}=this.getProps();if(!gu(n,a,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n],h=s.get()||0;s.set(t[n]-bt(l,u,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!Bo(n)||!a||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ka(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const h=u.get();i[l]=y9({min:h,max:h},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ka(l=>{if(!gu(l,t,null))return;const u=this.getAxisMotionValue(l),{min:h,max:p}=this.constraints[l];u.set(bt(h,p,i[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_9.set(this.visualElement,this);const t=this.visualElement.current,n=xl(t,"pointerdown",p=>{const{drag:f,dragListener:g=!0}=this.getProps(),v=p.target,k=v!==t&&tD(v);f&&g&&!k&&this.start(p)});let a;const i=()=>{const{dragConstraints:p}=this.getProps();Bo(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),a||(a=w9(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),_t.read(i);const u=Nl(window,"resize",()=>this.scalePositionWithinConstraints()),h=s.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:f})=>{this.isDragging&&f&&(Ka(g=>{const v=this.getAxisMotionValue(g);v&&(this.originPoint[g]+=p[g].translate,v.set(v.get()+p[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),h&&h(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:l=gm,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function hk(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function w9(e,t,n){const a=b_(e,hk(n)),i=b_(t,hk(n));return()=>{a(),i()}}function gu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function x9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P9 extends pi{constructor(t){super(t),this.removeGroupControls=ua,this.removeListeners=ua,this.controls=new k9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ua}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const cf=e=>(t,n)=>{e&&_t.update(()=>e(t,n),!1,!0)};class S9 extends pi{constructor(){super(...arguments),this.removePointerDownListener=ua}onPointerDown(t){this.session=new Wx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$x(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:i}=this.node.getProps();return{onSessionStart:cf(t),onStart:cf(n),onMove:cf(a),onEnd:(s,l)=>{delete this.session,i&&_t.postRender(()=>i(s,l))}}}mount(){this.removePointerDownListener=xl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let uf=!1;class C9 extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),a&&a.register&&i&&a.register(s),uf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:i,isPresent:s}=this.props,{projection:l}=a;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),uf=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||_t.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=n,a.root.didUpdate(),Ag.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:i}=t;uf=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),a&&a.deregister&&a.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Kx(e){const[t,n]=Mx(),a=b.useContext(dg);return S.jsx(C9,{...e,layoutGroup:a,switchLayoutGroup:b.useContext(Vx),isPresent:t,safeToRemove:n})}const T9={pan:{Feature:S9},drag:{Feature:P9,ProjectionNode:Ix,MeasureLayout:Kx}};function pk(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=a[i];s&&_t.postRender(()=>s(t,Jl(t)))}class E9 extends pi{mount(){const{current:t}=this.node;t&&(this.unmount=XL(t,(n,a)=>(pk(this.node,a,"Start"),i=>pk(this.node,i,"End"))))}unmount(){}}class R9 extends pi{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=Yl(Nl(this.node.current,"focus",()=>this.onFocus()),Nl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fk(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=a[i];s&&_t.postRender(()=>s(t,Jl(t)))}class A9 extends pi{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:a}=this.node.props;this.unmount=aD(t,(i,s)=>(fk(this.node,s,"Start"),(l,{success:u})=>fk(this.node,l,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:a?.tap===!1})}unmount(){}}const ym=new WeakMap,df=new WeakMap,L9=e=>{const t=ym.get(e.target);t&&t(e)},D9=e=>{e.forEach(L9)};function I9({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const a=df.get(n),i=JSON.stringify(t);return a[i]||(a[i]=new IntersectionObserver(D9,{root:e,...t})),a[i]}function M9(e,t,n){const a=I9(t);return ym.set(e,n),a.observe(e),()=>{ym.delete(e),a.unobserve(e)}}const N9={some:0,all:1};class O9 extends pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:i="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:a,threshold:typeof i=="number"?i:N9[i]},u=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,s&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:f,onViewportLeave:g}=this.node.getProps(),v=p?f:g;v&&v(h)};this.stopObserver=M9(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(j9(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function j9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const U9={inView:{Feature:O9},tap:{Feature:A9},focus:{Feature:R9},hover:{Feature:E9}},z9={layout:{ProjectionNode:Ix,MeasureLayout:Kx}},F9={...c9,...U9,...T9,...z9},B9=r9(F9,i9);function V9(){!Ng.current&&cx();const[e]=b.useState(_d.current);return e}const Pl=B9;function qx(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qx(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function H9(){for(var e,t,n=0,a="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qx(e))&&(a&&(a+=" "),a+=t);return a}const $9=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},W9=(e,t)=>({classGroupId:e,validator:t}),Yx=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Sd="-",mk=[],G9="arbitrary..",K9=e=>{const t=Y9(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return q9(l);const u=l.split(Sd),h=u[0]===""&&u.length>1?1:0;return Zx(u,h,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const h=a[l],p=n[l];return h?p?$9(p,h):h:p||mk}return n[l]||mk}}},Zx=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const p=Zx(e,t+1,s);if(p)return p}const l=n.validators;if(l===null)return;const u=t===0?e.join(Sd):e.slice(t).join(Sd),h=l.length;for(let p=0;p<h;p++){const f=l[p];if(f.validator(u))return f.classGroupId}},q9=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?G9+a:void 0})(),Y9=e=>{const{theme:t,classGroups:n}=e;return Z9(n,t)},Z9=(e,t)=>{const n=Yx();for(const a in e){const i=e[a];Bg(i,n,a,t)}return n},Bg=(e,t,n,a)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];X9(l,t,n,a)}},X9=(e,t,n,a)=>{if(typeof e=="string"){J9(e,t,n);return}if(typeof e=="function"){Q9(e,t,n,a);return}eM(e,t,n,a)},J9=(e,t,n)=>{const a=e===""?t:Xx(t,e);a.classGroupId=n},Q9=(e,t,n,a)=>{if(tM(e)){Bg(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(W9(n,e))},eM=(e,t,n,a)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[u,h]=i[l];Bg(h,Xx(t,u),n,a)}},Xx=(e,t)=>{let n=e;const a=t.split(Sd),i=a.length;for(let s=0;s<i;s++){const l=a[s];let u=n.nextPart.get(l);u||(u=Yx(),n.nextPart.set(l,u)),n=u}return n},tM=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const i=(s,l)=>{n[s]=l,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=a[s])!==void 0)return i(s,l),l},set(s,l){s in n?n[s]=l:i(s,l)}}},vm="!",gk=":",aM=[],yk=(e,t,n,a,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:i}),rM=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=i=>{const s=[];let l=0,u=0,h=0,p;const f=i.length;for(let C=0;C<f;C++){const P=i[C];if(l===0&&u===0){if(P===gk){s.push(i.slice(h,C)),h=C+1;continue}if(P==="/"){p=C;continue}}P==="["?l++:P==="]"?l--:P==="("?u++:P===")"&&u--}const g=s.length===0?i:i.slice(h);let v=g,k=!1;g.endsWith(vm)?(v=g.slice(0,-1),k=!0):g.startsWith(vm)&&(v=g.slice(1),k=!0);const x=p&&p>h?p-h:void 0;return yk(s,k,v,x)};if(t){const i=t+gk,s=a;a=l=>l.startsWith(i)?s(l.slice(i.length)):yk(aM,!1,l,void 0,!0)}if(n){const i=a;a=s=>n({className:s,parseClassName:i})}return a},iM=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let i=[];for(let s=0;s<n.length;s++){const l=n[s],u=l[0]==="[",h=t.has(l);u||h?(i.length>0&&(i.sort(),a.push(...i),i=[]),a.push(l)):i.push(l)}return i.length>0&&(i.sort(),a.push(...i)),a}},oM=e=>({cache:nM(e.cacheSize),parseClassName:rM(e),sortModifiers:iM(e),postfixLookupClassGroupIds:sM(e),...K9(e)}),sM=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let a=0;a<n.length;a++)t[n[a]]=!0;return t},lM=/\s+/,cM=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:i,sortModifiers:s,postfixLookupClassGroupIds:l}=t,u=[],h=e.trim().split(lM);let p="";for(let f=h.length-1;f>=0;f-=1){const g=h[f],{isExternal:v,modifiers:k,hasImportantModifier:x,baseClassName:C,maybePostfixModifierPosition:P}=n(g);if(v){p=g+(p.length>0?" "+p:p);continue}let A=!!P,D;if(A){const F=C.substring(0,P);D=a(F);const T=D&&l[D]?a(C):void 0;T&&T!==D&&(D=T,A=!1)}else D=a(C);if(!D){if(!A){p=g+(p.length>0?" "+p:p);continue}if(D=a(C),!D){p=g+(p.length>0?" "+p:p);continue}A=!1}const E=k.length===0?"":k.length===1?k[0]:s(k).join(":"),R=x?E+vm:E,z=R+D;if(u.indexOf(z)>-1)continue;u.push(z);const W=i(D,A);for(let F=0;F<W.length;++F){const T=W[F];u.push(R+T)}p=g+(p.length>0?" "+p:p)}return p},uM=(...e)=>{let t=0,n,a,i="";for(;t<e.length;)(n=e[t++])&&(a=Jx(n))&&(i&&(i+=" "),i+=a);return i},Jx=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=Jx(e[a]))&&(n&&(n+=" "),n+=t);return n},dM=(e,...t)=>{let n,a,i,s;const l=h=>{const p=t.reduce((f,g)=>g(f),e());return n=oM(p),a=n.cache.get,i=n.cache.set,s=u,u(h)},u=h=>{const p=a(h);if(p)return p;const f=cM(h,n);return i(h,f),f};return s=l,(...h)=>s(uM(...h))},hM=[],Jt=e=>{const t=n=>n[e]||hM;return t.isThemeGetter=!0,t},Qx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pM=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,fM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mM=/\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$/,gM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ei=e=>pM.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Ha=e=>!!e&&Number.isInteger(Number(e)),hf=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),kr=e=>fM.test(e),tP=()=>!0,bM=e=>mM.test(e)&&!gM.test(e),Vg=()=>!1,_M=e=>yM.test(e),kM=e=>vM.test(e),wM=e=>!ke(e)&&!xe(e),xM=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),PM=e=>fi(e,rP,Vg),ke=e=>Qx.test(e),Di=e=>fi(e,iP,bM),vk=e=>fi(e,DM,Qe),SM=e=>fi(e,sP,tP),CM=e=>fi(e,oP,Vg),bk=e=>fi(e,nP,Vg),TM=e=>fi(e,aP,kM),yu=e=>fi(e,lP,_M),xe=e=>eP.test(e),ol=e=>no(e,iP),EM=e=>no(e,oP),_k=e=>no(e,nP),RM=e=>no(e,rP),AM=e=>no(e,aP),vu=e=>no(e,lP,!0),LM=e=>no(e,sP,!0),fi=(e,t,n)=>{const a=Qx.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},no=(e,t,n=!1)=>{const a=eP.exec(e);return a?a[1]?t(a[1]):n:!1},nP=e=>e==="position"||e==="percentage",aP=e=>e==="image"||e==="url",rP=e=>e==="length"||e==="size"||e==="bg-size",iP=e=>e==="length",DM=e=>e==="number",oP=e=>e==="family-name",sP=e=>e==="number"||e==="weight",lP=e=>e==="shadow",IM=()=>{const e=Jt("color"),t=Jt("font"),n=Jt("text"),a=Jt("font-weight"),i=Jt("tracking"),s=Jt("leading"),l=Jt("breakpoint"),u=Jt("container"),h=Jt("spacing"),p=Jt("radius"),f=Jt("shadow"),g=Jt("inset-shadow"),v=Jt("text-shadow"),k=Jt("drop-shadow"),x=Jt("blur"),C=Jt("perspective"),P=Jt("aspect"),A=Jt("ease"),D=Jt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...R(),xe,ke],W=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],T=()=>[xe,ke,h],$=()=>[ei,"full","auto",...T()],q=()=>[Ha,"none","subgrid",xe,ke],re=()=>["auto",{span:["full",Ha,xe,ke]},Ha,xe,ke],se=()=>[Ha,"auto",xe,ke],Se=()=>["auto","min","max","fr",xe,ke],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...T()],ge=()=>[ei,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],B=()=>[ei,"screen","full","dvw","lvw","svw","min","max","fit",...T()],X=()=>[ei,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],V=()=>[e,xe,ke],M=()=>[...R(),_k,bk,{position:[xe,ke]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",RM,PM,{size:[xe,ke]}],he=()=>[hf,ol,Di],de=()=>["","none","full",p,xe,ke],ye=()=>["",Qe,ol,Di],Be=()=>["solid","dashed","dotted","double"],Ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>[Qe,hf,_k,bk],At=()=>["","none",x,xe,ke],qt=()=>["none",Qe,xe,ke],sn=()=>["none",Qe,xe,ke],pt=()=>[Qe,xe,ke],Ut=()=>[ei,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kr],breakpoint:[kr],color:[tP],container:[kr],"drop-shadow":[kr],ease:["in","out","in-out"],font:[wM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kr],shadow:[kr],spacing:["px",Qe],text:[kr],"text-shadow":[kr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ei,ke,xe,P]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,ke]}],"container-named":[xM],columns:[{columns:[Qe,ke,xe,u]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:z()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Ha,"auto",xe,ke]}],basis:[{basis:[ei,"full","auto",u,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,ei,"auto","initial","none",ke]}],grow:[{grow:["",Qe,xe,ke]}],shrink:[{shrink:["",Qe,xe,ke]}],order:[{order:[Ha,"first","last","none",xe,ke]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mbs:[{mbs:ie()}],mbe:[{mbe:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:ge()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[u,"screen",...ge()]}],"min-w":[{"min-w":[u,"screen","none",...ge()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...ge()]}],h:[{h:["screen","lh",...ge()]}],"min-h":[{"min-h":["screen","lh","none",...ge()]}],"max-h":[{"max-h":["screen","lh",...ge()]}],"font-size":[{text:["base",n,ol,Di]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,LM,SM]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hf,ke]}],"font-family":[{font:[EM,CM,t]}],"font-features":[{"font-features":[ke]}],"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:[i,xe,ke]}],"line-clamp":[{"line-clamp":[Qe,"none",xe,vk]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",xe,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ke]}],"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:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",xe,Di]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Qe,"auto",xe,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"tab-size":[{tab:[Ha,xe,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ke]}],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",xe,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ha,xe,ke],radial:["",xe,ke],conic:[Ha,xe,ke]},AM,TM]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:ye()}],"border-w-x":[{"border-x":ye()}],"border-w-y":[{"border-y":ye()}],"border-w-s":[{"border-s":ye()}],"border-w-e":[{"border-e":ye()}],"border-w-bs":[{"border-bs":ye()}],"border-w-be":[{"border-be":ye()}],"border-w-t":[{"border-t":ye()}],"border-w-r":[{"border-r":ye()}],"border-w-b":[{"border-b":ye()}],"border-w-l":[{"border-l":ye()}],"divide-x":[{"divide-x":ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"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-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":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:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,xe,ke]}],"outline-w":[{outline:["",Qe,ol,Di]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",f,vu,yu]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",g,vu,yu]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Qe,Di]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":ye()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",v,vu,yu]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Qe,xe,ke]}],"mix-blend":[{"mix-blend":[...Ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ke()}],"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":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ne()}],"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":Ne()}],"mask-image-t-to-pos":[{"mask-t-to":Ne()}],"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":Ne()}],"mask-image-r-to-pos":[{"mask-r-to":Ne()}],"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":Ne()}],"mask-image-b-to-pos":[{"mask-b-to":Ne()}],"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":Ne()}],"mask-image-l-to-pos":[{"mask-l-to":Ne()}],"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":Ne()}],"mask-image-x-to-pos":[{"mask-x-to":Ne()}],"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":Ne()}],"mask-image-y-to-pos":[{"mask-y-to":Ne()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[xe,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ne()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ne()}],"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:M()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ke]}],filter:[{filter:["","none",xe,ke]}],blur:[{blur:At()}],brightness:[{brightness:[Qe,xe,ke]}],contrast:[{contrast:[Qe,xe,ke]}],"drop-shadow":[{"drop-shadow":["","none",k,vu,yu]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Qe,xe,ke]}],"hue-rotate":[{"hue-rotate":[Qe,xe,ke]}],invert:[{invert:["",Qe,xe,ke]}],saturate:[{saturate:[Qe,xe,ke]}],sepia:[{sepia:["",Qe,xe,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ke]}],"backdrop-blur":[{"backdrop-blur":At()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,xe,ke]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,xe,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,xe,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,xe,ke]}],"backdrop-invert":[{"backdrop-invert":["",Qe,xe,ke]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,xe,ke]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,xe,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,xe,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",xe,ke]}],ease:[{ease:["linear","initial",A,xe,ke]}],delay:[{delay:[Qe,xe,ke]}],animate:[{animate:["none",D,xe,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,xe,ke]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:qt()}],"rotate-x":[{"rotate-x":qt()}],"rotate-y":[{"rotate-y":qt()}],"rotate-z":[{"rotate-z":qt()}],scale:[{scale:sn()}],"scale-x":[{"scale-x":sn()}],"scale-y":[{"scale-y":sn()}],"scale-z":[{"scale-z":sn()}],"scale-3d":["scale-3d"],skew:[{skew:pt()}],"skew-x":[{"skew-x":pt()}],"skew-y":[{"skew-y":pt()}],transform:[{transform:[xe,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ut()}],"translate-x":[{"translate-x":Ut()}],"translate-y":[{"translate-y":Ut()}],"translate-z":[{"translate-z":Ut()}],"translate-none":["translate-none"],zoom:[{zoom:[Ha,xe,ke]}],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",xe,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":V()}],"scrollbar-track-color":[{"scrollbar-track":V()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",xe,ke]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Qe,ol,Di,vk]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},MM=dM(IM);function Pt(...e){return MM(H9(e))}const NM=S.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[S.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1Z",fill:"#4285F4"}),S.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23Z",fill:"#34A853"}),S.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.44 1.18 4.93l3.66-2.84Z",fill:"#FBBC05"}),S.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53Z",fill:"#EA4335"})]}),OM=S.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:S.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12Z"})}),jM={google:NM,github:OM},UM={google:"Google",github:"GitHub",microsoft:"Microsoft",discord:"Discord",apple:"Apple"};function zM(e){return UM[e]||String(e||"").replace(/-/g," ")}function FM(e){if(typeof e=="string"&&e.trim())return e.trim();if(e&&typeof e=="object"){if(typeof e.token=="string"&&e.token.trim())return e.token.trim();if(typeof e.otp=="string"&&e.otp.trim())return e.otp.trim()}return""}function BM({title:e,subtitle:t,className:n="",onSuccess:a,hideLogo:i=!1,initialMode:s="signin",tokenFromUrl:l="",initialEmail:u="",initialCode:h=""}){ql();const{enabled:p,signedIn:f,refreshUser:g,signInWithPassword:v,signUp:k,signInWithOAuth:x,getPublicAuthConfig:C,sendResetPasswordEmail:P,exchangeResetPasswordToken:A,resetPassword:D}=to(),[E,R]=b.useState(s),[z,W]=b.useState(u),[F,T]=b.useState(""),[$,q]=b.useState(""),[re,se]=b.useState(""),[Se,pe]=b.useState(h),[ue,ie]=b.useState(!1),[ge,B]=b.useState(null),[X,V]=b.useState(null),[M,Z]=b.useState(!1),[be,he]=b.useState(!!(s!=="signin"||u)),[de,ye]=b.useState(!0),[Be,Ke]=b.useState([]),[Ne,At]=b.useState(8);b.useEffect(()=>{s&&R(s)},[s]),b.useEffect(()=>{u&&W(u)},[u]),b.useEffect(()=>{h&&pe(h)},[h]),b.useEffect(()=>{if(!p)return;let qe=!0;return ye(!0),(async()=>{const{data:nt,error:Lt}=await C();if(qe){if(Lt||!nt)Ke(["google","github"]);else{const St=Array.isArray(nt.oAuthProviders)?nt.oAuthProviders:[],Ln=Array.isArray(nt.customOAuthProviders)?nt.customOAuthProviders:[];Ke([...St,...Ln]),typeof nt.passwordMinLength=="number"&&nt.passwordMinLength>0&&At(nt.passwordMinLength)}ye(!1)}})(),()=>{qe=!1}},[p,C]),b.useEffect(()=>{f&&a&&a()},[f,a]);const qt=b.useMemo(()=>typeof window>"u"?"":!!window.webkit?.messageHandlers?.nativeOAuth?`${window.location.origin}/auth/callback`:`${window.location.origin}/`,[]),sn=b.useMemo(()=>typeof window>"u"?"/reset-password":`${window.location.origin}/reset-password`,[]),pt=b.useCallback(async qe=>{B(null),ie(!0);try{const{error:nt}=await x(qe,qt);nt&&B(nt.message||String(nt))}finally{ie(!1)}},[x,qt]);b.useEffect(()=>{if(!p||de||f||typeof window>"u")return;const qe=window.location.search;if(!qe)return;const nt=new URLSearchParams(qe),Lt=nt.get("native")==="1",St=nt.get("provider");Lt&&St&&[...Be].includes(St)&&pt(St)},[p,de,f,Be,pt]);const Ut=b.useCallback(async qe=>{qe.preventDefault(),B(null),ie(!0);try{if(E==="signup"){const{data:Lt,error:St}=await k({email:z.trim(),password:F,name:re.trim()||void 0});if(St){B(St.message||String(St));return}if(Lt?.requireEmailVerification){V(fe("login.verify_email_pending")),R("signin");return}await g();return}const{error:nt}=await v({email:z.trim(),password:F});if(nt){B(nt.message||String(nt));return}await g()}finally{ie(!1)}},[E,z,F,re,k,v,g]),lr=b.useCallback(async qe=>{qe.preventDefault(),B(null),ie(!0);try{const nt=z.trim(),{error:Lt}=await P({email:nt,redirectTo:sn});if(Lt){B(Lt.message||String(Lt));return}W(nt),V(fe("reset_password.request.sent")),R("reset_confirm")}finally{ie(!1)}},[z,sn,P]),Er=b.useCallback(async qe=>{if(qe.preventDefault(),B(null),F!==$){B(fe("reset_password.error.password_mismatch"));return}ie(!0);try{let nt=l;if(!nt){const{data:St,error:Ln}=await A({email:z.trim(),code:Se.trim()});if(Ln){B(Ln.message||String(Ln));return}if(nt=FM(St),!nt){B(fe("reset_password.error.missing_token"));return}}const{error:Lt}=await D({newPassword:F,otp:nt});if(Lt){B(Lt.message||String(Lt));return}Z(!0),V(fe("reset_password.success"))}finally{ie(!1)}},[Se,$,z,A,F,D,l]);if(!p)return null;const Mt=E==="reset_email"||E==="reset_confirm";return S.jsxs("div",{className:Pt("w-full bg-white dark:bg-oai-gray-950 p-6 transition-colors duration-200",n),children:[Mt&&S.jsxs("button",{type:"button",onClick:()=>{R("signin"),V(null),B(null),Z(!1),T(""),q("")},className:"flex items-center gap-1.5 text-xs font-medium text-oai-gray-500 hover:text-oai-black dark:hover:text-white transition-colors mb-4 focus:outline-none",children:[S.jsx(sR,{className:"h-3.5 w-3.5"}),fe("reset_password.back_to_sign_in")]}),S.jsxs("div",{className:Pt("mb-6",Mt?"text-left":"text-center"),children:[!i&&!Mt&&S.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[S.jsx("img",{src:"/app-icon.png",alt:"",width:28,height:28,className:"rounded-md"}),S.jsx("span",{className:"text-lg font-semibold text-oai-black dark:text-white font-oai tracking-tight",children:fe("shared.app_name")})]}),S.jsx("h2",{className:Pt("text-sm font-semibold text-oai-black dark:text-white tracking-tight mb-1",(i||Mt)&&"text-base font-bold md:text-lg"),children:Mt?fe("reset_password.title"):e||fe("login_modal.subtitle")}),!Mt&&t&&S.jsx("p",{className:"text-xs text-oai-gray-500 dark:text-oai-gray-400 mt-1.5 leading-relaxed max-w-[320px] mx-auto",children:t}),Mt&&S.jsx("p",{className:"text-xs text-oai-gray-500 dark:text-oai-gray-400 mt-1.5 leading-relaxed max-w-[320px]",children:X&&E==="reset_confirm"&&!M?X:fe("reset_password.subtitle")})]}),X&&(!Mt||M)&&S.jsx("div",{className:"mb-4 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900/50 px-3 py-2 text-xs text-oai-gray-700 dark:text-oai-gray-300",children:X}),ge&&S.jsx("p",{className:"mb-4 text-sm text-red-500 dark:text-red-400 text-center",role:"alert",children:ge}),E==="reset_email"&&S.jsxs("form",{onSubmit:lr,className:"space-y-3",children:[S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-email",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.email")}),S.jsx("input",{id:"card-reset-email",type:"email",autoComplete:"email",required:!0,value:z,onChange:qe=>W(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsx("button",{type:"submit",disabled:ue,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:fe("reset_password.request.submit")})]}),E==="reset_confirm"&&(M?S.jsx("button",{type:"button",onClick:()=>{R("signin"),Z(!1),V(null),B(null),T(""),q("")},className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors text-center shadow-sm",children:fe("reset_password.success_cta")}):S.jsxs("form",{onSubmit:Er,className:"space-y-3",children:[!l&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-email-confirm",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.email")}),S.jsx("input",{id:"card-reset-email-confirm",type:"email",autoComplete:"email",required:!0,value:z,onChange:qe=>W(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-code",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("reset_password.field.code")}),S.jsx("input",{id:"card-reset-code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",required:!0,value:Se,onChange:qe=>pe(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-password",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("reset_password.field.new_password")}),S.jsx("input",{id:"card-reset-password",type:"password",autoComplete:"new-password",required:!0,minLength:8,value:F,onChange:qe=>T(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-password-confirm",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("reset_password.field.confirm_password")}),S.jsx("input",{id:"card-reset-password-confirm",type:"password",autoComplete:"new-password",required:!0,minLength:8,value:$,onChange:qe=>q(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsx("button",{type:"submit",disabled:ue,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:fe("reset_password.reset.submit")})]})),!Mt&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"space-y-2.5 mb-5",children:de?S.jsxs("div",{className:"space-y-2.5",children:[S.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"}),S.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"})]}):Be.map(qe=>S.jsxs("button",{type:"button",disabled:ue,onClick:()=>pt(qe),className:Pt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors disabled:opacity-50","flex items-center justify-center gap-2.5"),children:[jM[qe]||null,fe("login.oauth.continue",{provider:zM(qe)})]},qe))}),be?S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"relative mb-5",children:[S.jsx("div",{className:"absolute inset-0 flex items-center",children:S.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),S.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:S.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:fe("login_modal.divider_email")})})]}),S.jsxs("div",{className:"flex rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 p-0.5 bg-oai-gray-50 dark:bg-oai-gray-900/50 mb-4",children:[S.jsx("button",{type:"button",className:Pt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",E==="signin"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{R("signin"),B(null)},children:fe("login.tab.sign_in")}),S.jsx("button",{type:"button",className:Pt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",E==="signup"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{R("signup"),B(null)},children:fe("login.tab.sign_up")})]}),S.jsxs("form",{onSubmit:Ut,className:"space-y-3",children:[E==="signup"&&S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-name",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.name")}),S.jsx("input",{id:"card-name",type:"text",autoComplete:"name",value:re,onChange:qe=>se(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500",placeholder:fe("login.field.name_placeholder")})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-email",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.email")}),S.jsx("input",{id:"card-email",type:"email",autoComplete:"email",required:!0,value:z,onChange:qe=>W(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-password",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.password")}),S.jsx("input",{id:"card-password",type:"password",autoComplete:E==="signup"?"new-password":"current-password",required:!0,minLength:E==="signup"?Ne:void 0,value:F,onChange:qe=>T(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"}),E==="signup"&&S.jsx("p",{className:"mt-1 text-xs text-oai-gray-400 dark:text-oai-gray-600",children:fe("login.password_hint",{min:String(Ne)})}),E==="signin"&&S.jsx("div",{className:"mt-1 text-right",children:S.jsx("button",{type:"button",onClick:()=>{R("reset_email"),B(null),V(null)},className:"text-xs font-medium text-oai-gray-500 hover:text-oai-black dark:hover:text-white no-underline bg-transparent border-0 p-0 cursor-pointer focus:outline-none",children:fe("login.forgot_password")})})]}),S.jsx("button",{type:"submit",disabled:ue,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:fe(E==="signup"?"login.submit.sign_up":"login.submit.sign_in")})]})]}):S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"relative mb-5",children:[S.jsx("div",{className:"absolute inset-0 flex items-center",children:S.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),S.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:S.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:fe("login.divider")})})]}),S.jsxs("button",{type:"button",onClick:()=>he(!0),className:Pt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors","flex items-center justify-center gap-2.5"),children:[S.jsx(bR,{className:"h-[18px] w-[18px] text-oai-gray-500 dark:text-oai-gray-400",strokeWidth:1.75}),fe("login_modal.continue_email")]})]})]})]})}function VM(){const{isOpen:e,closeLoginModal:t}=l2(),{enabled:n}=to();return b.useEffect(()=>{if(!e)return;const a=i=>{i.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),n?S.jsx(Nx,{children:e&&S.jsxs(Pl.div,{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[S.jsx(Pl.div,{className:"absolute inset-0 bg-black/40 dark:bg-black/60",onClick:t,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),S.jsxs(Pl.div,{className:"relative w-full max-w-[420px] rounded-2xl border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-950 shadow-2xl overflow-hidden",initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2},onClick:a=>a.stopPropagation(),children:[S.jsx("button",{type:"button",onClick:t,className:"absolute right-4 top-4 z-10 text-oai-gray-400 dark:text-oai-gray-500 hover:text-oai-black dark:hover:text-white transition-colors",children:S.jsx(ug,{className:"h-5 w-5"})}),S.jsx(BM,{onSuccess:t,className:"p-6 bg-transparent"})]})]})}):null}const HM={VITE_INSFORGE_BASE_URL:"https://srctyff5.us-east.insforge.app"},wz="https://tokentracker.statuspage.io/";function $M(){if(typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"))return"";const t=typeof import.meta<"u"?HM:void 0;return(t?.VITE_TOKENTRACKER_BACKEND_BASE_URL||t?.VITE_INSFORGE_BASE_URL||nr()).trim()}function WM(){return nr()}function GM(e=""){if(typeof e!="string"||e.length===0)return!1;const t=new URLSearchParams(e),n=String(t.get("screenshot")||"").toLowerCase();return n==="1"||n==="true"}const KM=300*1e3,qM=720*60*1e3;function Hg(e){return typeof e=="string"&&/^https?:\/\//i.test(e.trim())}function YM(e,t=Date.now()){if(!e?.token||!e?.deviceId||!e?.issuedAt)return!0;const n=Date.parse(e.issuedAt);return Number.isFinite(n)?n+qM<=t:!0}async function cP(e,t){const n=nr();if(!Hg(n)||!e)return;const a=n.replace(/\/$/,""),i=us(),s={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};i&&(s.apikey=i);try{await fetch(`${a}/functions/tokentracker-leaderboard-refresh`,{method:"POST",headers:s,body:JSON.stringify({period:"week",source:t})})}catch{}}async function ZM(){try{const e=await fetch("/functions/tokentracker-machine-id",{headers:{Accept:"application/json"},cache:"no-store"});if(e.ok){const t=await e.json().catch(()=>null),n=typeof t?.machineId=="string"?t.machineId.trim():null;if(n&&n.length>=8)return n}}catch{}return null}async function XM(e){const t=nr();if(!Hg(t)||!e)return null;const n=t.replace(/\/$/,""),a=us(),i={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};a&&(i.apikey=a);const s=typeof navigator<"u"&&typeof navigator.platform=="string"?navigator.platform:"web",l=await ZM();if(!l)return null;const u=`Token Tracker (dashboard) #${l.slice(0,8)}`,h=await fetch(`${n}/functions/tokentracker-device-token-issue`,{method:"POST",headers:i,body:JSON.stringify({device_name:u,platform:s,machine_id:l})});if(!h.ok)return null;const p=await h.json().catch(()=>null),f=typeof p?.token=="string"?p.token:null,g=typeof p?.device_id=="string"?p.device_id:null;return!f||!g?null:{token:f,deviceId:g,issuedAt:typeof p?.created_at=="string"?p.created_at:new Date().toISOString()}}async function kk(e){const{deviceToken:t,insforgeBaseUrl:n,drain:a}=e,i={deviceToken:t};a===!0&&(i.drain=!0);const s=n||nr();Hg(s)&&(i.insforgeBaseUrl=s.trim());const l=await Gl(),u=await fetch("/functions/tokentracker-local-sync",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...l},body:JSON.stringify(i)}),h=await u.json().catch(()=>({}));if(!u.ok){const p=typeof h.error=="string"?h.error:`HTTP ${u.status}`;throw new Error(p)}return h}async function wk(e){const t=await e();if(!t)return null;const n=xw();if(n&&!YM(n))return n;const a=await XM(t);return a?(XE(a),a):null}async function uP(e,t={}){let n=await e();if(!n)return null;let a=await wk(async()=>n);if(!a)return n;try{return await kk({deviceToken:a.token,insforgeBaseUrl:nr(),drain:t.drain===!0}),n}catch(i){if(!xw()||(Pw(),n=await e(),!n)||(a=await wk(async()=>n),!a))throw i;return await kk({deviceToken:a.token,insforgeBaseUrl:nr(),drain:t.drain===!0}),n}}async function JM(e){const t=JE();if(Date.now()-t<KM)return;const n=await uP(e);n&&(Sw(Date.now()),await cP(n,"cloud-sync-auto"))}async function xz(e){const t=await uP(e,{drain:!0});t&&(Sw(Date.now()),await cP(t,"cloud-sync-now"))}function QM(e){const t=e.replace(/\/+$/,"")||"/";return t==="/share"||t==="/share.html"||t.startsWith("/share/")}function eN(e){const t=e.replace(/\/+$/,"")||"/";return t==="/login"||t==="/landing"||QM(t)?!1:t==="/"||t==="/dashboard"||t.startsWith("/leaderboard")}function tN(){const e=zn(),t=to(),n=b.useRef(!1);b.useEffect(()=>{if(!id()||!eN(e.pathname||"/")||!t.enabled||!t.signedIn||t.loading||!od())return;let a=!1;const i=window.setTimeout(()=>{(async()=>{if(!(a||n.current)){n.current=!0;try{await JM(()=>t.getAccessToken())}catch(s){console.warn("[tokentracker] cloud usage sync:",s)}finally{n.current=!1}}})()},2500);return()=>{a=!0,window.clearTimeout(i)}},[e.pathname,t.enabled,t.signedIn,t.loading,t.getAccessToken])}function nN(){const e=b.useContext(o2);if(e===null)throw new Error("useTheme must be used within a ThemeProvider");return e}function aN({prefersReducedMotion:e,screenshotCapture:t}){return!(t||e)}function rN(e){if(!e||typeof e!="object")return null;const t=e.user_metadata&&typeof e.user_metadata=="object"?e.user_metadata:{},n=e.profile&&typeof e.profile=="object"?e.profile:{},a=t.avatar_url||t.picture||n.avatar_url||e.avatar_url;return typeof a=="string"&&a.trim()?a.trim():null}function iN(e){return e?Fd()?`/api/avatar-proxy?url=${encodeURIComponent(e)}`:e:null}function bu(e){const t=String(e||"").trim();if(!t)return"?";const n=t.split(/\s+/).filter(Boolean);return n.length>=2?(n[0][0]+n[n.length-1][0]).toUpperCase():t.slice(0,2).toUpperCase()}function xk({className:e,variant:t="header",collapsed:n=!1,onAfterAction:a}){ql();const i=t==="sidebar",{enabled:s,loading:l,signedIn:u,user:h,displayName:p}=to(),{openLoginModal:f}=l2(),g=os(),v=b.useMemo(()=>rN(h),[h]),k=b.useMemo(()=>iN(v),[v]),[x,C]=Zo.useState(!1);if(Zo.useEffect(()=>{C(!1)},[k]),!s)return null;if(l)return S.jsx("div",{className:Pt("h-9 w-9 shrink-0 rounded-full bg-oai-gray-200 dark:bg-oai-gray-800 animate-pulse",e),"aria-hidden":!0});if(!u)return i?S.jsxs("button",{type:"button",onClick:()=>{f(),a?.()},className:Pt("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] font-medium text-oai-gray-700 dark:text-oai-gray-300 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500 min-w-0",n?"h-8 w-8 justify-center px-0":"w-full",e),"aria-label":fe("header.auth.sign_in_aria"),title:n?fe("header.auth.sign_in_aria"):void 0,children:[S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:S.jsx("img",{src:"/app-icon.png",alt:"",width:18,height:18,className:"h-[18px] w-[18px] rounded"})}),!n&&S.jsx("span",{className:"truncate flex-1 text-left",children:fe("header.auth.sign_in_aria")})]}):S.jsx("button",{type:"button",onClick:f,className:Pt("shrink-0 inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4 text-sm font-medium transition-colors duration-200 ease-out shadow-sm ring-1 ring-oai-gray-200 dark:ring-white/10 bg-oai-gray-900 text-white hover:bg-oai-gray-800 active:bg-oai-gray-950 dark:bg-white dark:text-oai-gray-900 dark:hover:bg-oai-gray-100 dark:active:bg-oai-gray-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-oai-gray-950",e),"aria-label":fe("header.auth.sign_in_aria"),children:fe("header.auth.sign_in_aria")});const P=()=>{g("/settings"),a?.()};return S.jsx("div",{className:Pt(i?"relative flex w-full shrink-0 items-center":"relative flex shrink-0 items-center",e),children:S.jsxs("button",{type:"button",onClick:P,className:Pt(i?Pt("flex w-full items-center gap-2 rounded-md px-2 py-1.5 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 transition-colors min-w-0",n&&"justify-center px-0 py-0 h-9 w-9"):"flex items-center gap-2 rounded-md pl-1 pr-2 py-1 border border-transparent hover:bg-oai-gray-100 dark:hover:bg-oai-gray-900/80 hover:border-oai-gray-200 dark:hover:border-oai-gray-800 transition-colors"),"aria-label":fe("header.auth.open_settings"),title:i&&n?p:void 0,children:[i?S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:k&&!x?S.jsx("img",{src:k,alt:"",width:20,height:20,className:"h-5 w-5 rounded-full object-cover ring-1 ring-oai-gray-300 dark:ring-oai-gray-700",referrerPolicy:"no-referrer",onError:()=>C(!0)}):bu(p)==="?"?S.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-oai-brand-600/30 text-white ring-1 ring-oai-brand-500/50",children:S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"w-3 h-3 opacity-80",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})})}):S.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-oai-brand-600 text-[9px] font-semibold text-white ring-1 ring-oai-brand-500/50",children:bu(p)})}):k&&!x?S.jsx("img",{src:k,alt:"",width:32,height:32,className:"h-8 w-8 rounded-full object-cover ring-1 ring-oai-gray-300 dark:ring-oai-gray-700 shrink-0",referrerPolicy:"no-referrer",onError:()=>C(!0)}):bu(p)==="?"?S.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-oai-brand-600/30 text-white ring-1 ring-oai-brand-500/50",children:S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"w-4 h-4 opacity-80",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})})}):S.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-oai-brand-600 text-xs font-semibold text-white ring-1 ring-oai-brand-500/50",children:bu(p)}),i?!n&&S.jsx("span",{className:"truncate text-[13px] font-medium text-oai-gray-900 dark:text-oai-gray-200 flex-1 text-left min-w-0",children:p}):S.jsx("span",{className:"hidden sm:inline truncate text-sm font-medium text-oai-gray-900 dark:text-oai-gray-200 max-w-[120px]",children:p})]})})}const bm="tt.sidebarCollapsed";function dP(){return[{id:"general",label:fe("nav.group.general"),items:[{id:"usage",to:"/dashboard",icon:cR,label:fe("nav.usage")},{id:"limits",to:"/limits",icon:pR,label:fe("nav.limits")},{id:"leaderboard",to:"/leaderboard",icon:jR,label:fe("nav.leaderboard")}]},{id:"tools",label:fe("nav.group.tools"),items:[{id:"widgets",to:"/widgets",icon:yR,label:fe("nav.widgets")},{id:"skills",to:"/skills",icon:CR,label:fe("nav.skills")},{id:"ip-check",to:"/ip-check",icon:mR,label:fe("nav.ip_check")}]},{id:"account",label:fe("nav.group.account"),items:[{id:"settings",to:"/settings",icon:DR,label:fe("nav.settings")}]}]}function oN(){if(typeof window>"u")return!1;try{return window.localStorage.getItem(bm)==="1"}catch{return!1}}function sN(){const[e,t]=b.useState(oN),n=b.useCallback(()=>{t(a=>{const i=!a;try{typeof window<"u"&&window.localStorage.setItem(bm,i?"1":"0")}catch{}return i})},[]);return b.useEffect(()=>{if(typeof window>"u")return;const a=i=>{i.key===bm&&t(i.newValue==="1")};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[]),{collapsed:e,toggle:n}}function lN(e,t){const n=e.replace(/\/+$/,"")||"/";return t==="/dashboard"?n==="/dashboard"||n==="/":t==="/leaderboard"?n==="/leaderboard"||n.startsWith("/leaderboard/"):n===t}function cN({label:e,collapsed:t,first:n}){return t?n?null:S.jsx("div",{className:"mx-2 my-2 h-px bg-oai-gray-200/70 dark:bg-oai-gray-800/70","aria-hidden":!0}):S.jsx("div",{className:Pt("px-3 pb-1 text-[10px] uppercase tracking-wider text-oai-gray-500 dark:text-oai-gray-500",n?"pt-2":"pt-4"),children:e})}function uN({item:e,collapsed:t,active:n,onClick:a}){const i=e.icon;return S.jsxs(Md,{to:e.to,onClick:a,title:t?e.label:void 0,"aria-current":n?"page":void 0,className:Pt("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] no-underline transition-colors",t&&"justify-center px-0 py-2",n?"bg-oai-gray-200/70 text-oai-black font-medium dark:bg-oai-gray-800 dark:text-white":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/50 hover:text-oai-black dark:hover:bg-oai-gray-800/60 dark:hover:text-white"),children:[S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:S.jsx(i,{className:"h-[15px] w-[15px]","aria-hidden":!0})}),!t&&S.jsx("span",{className:"truncate",children:e.label})]})}function dN({as:e="button",title:t,onClick:n,href:a,children:i,className:s,...l}){const u=Pt("flex h-10 w-10 items-center justify-center rounded-lg text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",s);return e==="a"?S.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",title:t,"aria-label":t,className:u,...l,children:i}):S.jsx("button",{type:"button",title:t,"aria-label":t,onClick:n,className:u,...l,children:i})}function hN({repo:e="mm7894215/TokenTracker",glassChrome:t=!1}){const[n,a]=b.useState(null);return b.useEffect(()=>{if(typeof window>"u")return;const i=typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;aN({prefersReducedMotion:i,screenshotCapture:!1})&&fetch(`https://api.github.com/repos/${e}`).then(s=>s.json()).then(s=>{s&&typeof s.stargazers_count=="number"&&a(s.stargazers_count)}).catch(()=>{})},[e]),S.jsxs("a",{href:`https://github.com/${e}`,target:"_blank",rel:"noopener noreferrer","aria-label":n!==null?`Star on GitHub (${n})`:"Star on GitHub",className:Pt("inline-flex h-7 items-center gap-1.5 rounded-full px-2.5 text-xs font-medium transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",t?"border border-gray-500/20 dark:border-gray-500/30 bg-gray-500/[0.04] dark:bg-gray-500/[0.06] backdrop-blur-[2px] text-oai-gray-700 dark:text-oai-gray-300 hover:bg-gray-500/10 dark:hover:bg-gray-500/12 hover:border-gray-500/30 dark:hover:border-gray-500/40 hover:text-oai-black dark:hover:text-white":"border border-oai-gray-200 dark:border-oai-gray-700 text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white hover:border-oai-gray-300 dark:hover:border-oai-gray-600"),children:[S.jsx("svg",{height:"12",viewBox:"0 0 16 16",width:"12",className:"shrink-0 fill-current",children:S.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})}),S.jsx("span",{children:"Star"}),n!==null&&S.jsx("span",{className:"text-[10px] text-oai-gray-500 dark:text-oai-gray-500 tabular-nums",children:n})]})}const pN=[{value:"light",label:"Light",Icon:i2},{value:"dark",label:"Dark",Icon:r2},{value:"system",label:"System",Icon:xR}];function fN({theme:e,resolvedTheme:t,onSetTheme:n,glassChrome:a=!1}){const[i,s]=b.useState(!1),l=b.useRef(null),u=t==="dark"?r2:i2;return b.useEffect(()=>{if(!i)return;const h=f=>{l.current&&!l.current.contains(f.target)&&s(!1)},p=f=>{f.key==="Escape"&&s(!1)};return document.addEventListener("mousedown",h),document.addEventListener("keydown",p),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",p)}},[i]),S.jsxs("div",{ref:l,className:"relative",children:[S.jsx("button",{type:"button","aria-label":"Theme","aria-expanded":i,"aria-haspopup":"menu",title:"Theme",onClick:()=>s(h=>!h),className:Pt("inline-flex h-7 w-7 items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",a?"border border-gray-500/20 dark:border-gray-500/30 bg-gray-500/[0.04] dark:bg-gray-500/[0.06] backdrop-blur-[2px] text-oai-gray-700 dark:text-oai-gray-300 hover:bg-gray-500/10 dark:hover:bg-gray-500/12 hover:border-gray-500/30 dark:hover:border-gray-500/40 hover:text-oai-black dark:hover:text-white":"border border-oai-gray-200 dark:border-oai-gray-700 text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white hover:border-oai-gray-300 dark:hover:border-oai-gray-600"),children:S.jsx(u,{className:"h-3.5 w-3.5","aria-hidden":!0})}),i&&S.jsx("div",{role:"menu",className:"absolute bottom-full left-0 mb-2 z-50 min-w-[140px] py-1 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-900 shadow-lg",children:pN.map(({value:h,label:p,Icon:f})=>{const g=e===h;return S.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{n(h),s(!1)},className:Pt("flex w-full items-center gap-2.5 px-3 py-1.5 text-[13px] transition-colors",g?"text-oai-black dark:text-white bg-oai-gray-100 dark:bg-oai-gray-800":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-50 dark:hover:bg-oai-gray-800/60 hover:text-oai-black dark:hover:text-white"),children:[S.jsx(f,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),S.jsx("span",{children:p})]},h)})})]})}function hP({collapsed:e,onToggleCollapsed:t,onItemClick:n,showCloseButton:a=!1,onClose:i,glassChrome:s=!1}){const u=zn()?.pathname||"/",{theme:h,resolvedTheme:p,setTheme:f}=nN(),{resolvedLocale:g}=ql(),v=b.useMemo(()=>dP(),[g]);return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Pt("px-2 pt-2 pb-2",e&&"flex justify-center"),children:a?S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"flex-1 min-w-0",children:S.jsx(xk,{variant:"sidebar",collapsed:e,onAfterAction:n})}),S.jsx("button",{type:"button",onClick:i,"aria-label":fe("nav.close_menu"),title:fe("nav.close_menu"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:S.jsx(ug,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})]}):S.jsx(xk,{variant:"sidebar",collapsed:e,onAfterAction:n})}),S.jsx("nav",{"aria-label":fe("nav.nav_label"),className:"flex-1 px-2 pb-2 flex flex-col overflow-y-auto",children:v.map((k,x)=>S.jsxs("div",{className:"flex flex-col",children:[S.jsx(cN,{label:k.label,collapsed:e,first:x===0}),S.jsx("div",{className:"flex flex-col gap-0.5",children:k.items.filter(C=>!(C.to==="/widgets"&&og())).map(C=>S.jsx(uN,{item:C,collapsed:e,active:lN(u,C.to),onClick:n},C.id))})]},k.id))}),S.jsxs("div",{className:Pt("flex items-center px-2 py-3",e?"flex-col justify-center gap-2":"justify-between gap-2"),children:[S.jsx(fN,{theme:h,resolvedTheme:p,onSetTheme:f,glassChrome:s}),S.jsx("div",{className:"flex items-center gap-1.5",children:!e&&S.jsx(hN,{glassChrome:s})})]})]})}function mN({collapsed:e,onToggleCollapsed:t}){const n=b.useMemo(()=>typeof window>"u"?!1:Aa()||Fd(),[]);return S.jsx("aside",{"aria-label":fe("nav.aside_label"),className:Pt("hidden lg:flex flex-col shrink-0 h-full min-h-0 transition-[width] duration-200",e?"w-[72px]":"w-[220px]"),children:S.jsx(hP,{collapsed:e,onToggleCollapsed:t,glassChrome:n})})}function gN({open:e,onClose:t}){return b.useEffect(()=>{if(!e)return;const n=a=>{a.key==="Escape"&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),b.useEffect(()=>{if(!e)return;const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=n}},[e]),e?S.jsxs("div",{className:"lg:hidden fixed inset-0 z-[80] flex",children:[S.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:t,"aria-hidden":!0}),S.jsx("aside",{"aria-label":fe("nav.aside_label"),className:"relative w-[260px] max-w-[80vw] flex flex-col bg-oai-white dark:bg-oai-gray-900 border-r border-oai-gray-200 dark:border-oai-gray-800 shadow-2xl",children:S.jsx(hP,{collapsed:!1,showCloseButton:!0,onClose:t,onItemClick:t})})]}):null}function yN({onOpenDrawer:e}){return S.jsxs("div",{className:"lg:hidden flex items-center justify-between gap-2 px-3 h-14 border-b border-oai-gray-200 dark:border-oai-gray-800",children:[S.jsx(dN,{title:fe("nav.menu"),onClick:e,children:S.jsx(kR,{className:"h-5 w-5","aria-hidden":!0})}),S.jsxs(Md,{to:"/landing",className:"flex items-center gap-2 no-underline hover:opacity-80 transition-opacity","aria-label":"Token Tracker",children:[S.jsx("img",{src:"/app-icon.png",alt:"",width:24,height:24,className:"rounded-md"}),S.jsx("span",{className:"text-sm font-semibold text-oai-black dark:text-oai-white",children:"Token Tracker"})]}),S.jsx("div",{className:"w-10 shrink-0","aria-hidden":!0})]})}function vN({children:e}){const{collapsed:t,toggle:n}=sN(),[a,i]=b.useState(!1),s=b.useCallback(()=>i(!0),[]),l=b.useCallback(()=>i(!1),[]),u=b.useMemo(()=>typeof window>"u"?!1:Aa()||Fd(),[]);return S.jsxs("div",{className:Pt("fixed inset-0 flex flex-col text-oai-black dark:text-oai-white font-sans overflow-hidden",og()&&"tt-native-glass-shell",u?"bg-transparent":"bg-oai-gray-100 dark:bg-oai-gray-950"),children:[u&&S.jsx("div",{className:"h-7 shrink-0",style:{WebkitAppRegion:"drag"},"aria-hidden":!0}),S.jsxs("div",{className:"flex-1 min-h-0 flex",children:[S.jsx(mN,{collapsed:t,onToggleCollapsed:n}),S.jsx(gN,{open:a,onClose:l}),S.jsx("div",{className:"flex-1 min-w-0 min-h-0 p-2 lg:pl-0 lg:pr-3 lg:pb-3 flex flex-col",children:S.jsxs("div",{className:Pt("flex-1 min-h-0 flex flex-col bg-oai-white dark:bg-oai-gray-900 border border-oai-gray-200 dark:border-oai-gray-800 overflow-hidden",u?"tt-native-main-card":"rounded-2xl",!u&&"shadow-sm"),children:[S.jsx(yN,{onOpenDrawer:s}),S.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:e})]})})]})]})}function bN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})}function _N({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:S.jsx("path",{d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"})})}function kN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"})})}function wN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})})}function xN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})})}function PN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 -1 22 28",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M4.125 20.149c-2.69 5.959 3.036 7.453 7.26 3.966 1.24 3.91 5.898.993 7.569-2.036 3.682-6.678 2.195-13.49 1.813-14.895-2.617-9.582-15.699-9.592-17.95.049-.526 1.687-.535 3.606-.833 5.598-.15 1.005-.256 1.646-.645 2.703-.223.607-.53 1.147-1.014 2.056-.75 1.412-.434 4.138 3.434 2.724v.001ZM11.895 11.332c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.395.9.395 1.578 0 1.283-.493 2.048-1.319 2.048Zm4.416 0c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.396.9.396 1.578 0 1.283-.494 2.048-1.32 2.048Z"})})}function SN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M16 6H8v12h8V6zm4 16H4V2h16v20z"})})}function CN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:[S.jsx("path",{d:"M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"}),S.jsx("path",{d:"M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"})]})}function TN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"})})}function Pk({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 60",fill:"none",className:t,"aria-hidden":"true",children:[S.jsx("path",{fill:"currentColor",d:"M37.2114 3.75318C37.6821 3.33106 37.7106 3.31457 38.0558 3.29385C38.6149 3.2531 39.1272 3.52199 39.9989 4.31564C42.0356 6.16652 44.8714 9.97183 46.6346 13.2212L47.3163 14.4819L48.2782 14.9605C49.2072 15.4299 50.7308 16.3923 51.3672 16.9085C51.655 17.1464 51.6956 17.1508 51.9947 17.0344C53.3454 16.5084 55.2803 17.206 56.9869 18.8432C58.5231 20.3155 59.9943 22.8312 60.558 24.9308C60.6403 25.2687 60.7493 25.9952 60.7891 26.5362C60.9177 28.4358 60.3092 29.9532 59.1362 30.64C58.8965 30.7784 58.8801 30.8158 58.8868 31.4132C58.9409 34.2583 58.1741 37.0985 56.6335 39.8679C54.8946 42.9773 51.7981 46.1938 47.6074 49.2243C45.357 50.8619 40.0323 53.964 37.6248 55.0532C31.8578 57.6496 27.2346 58.646 23.2188 58.154C20.8236 57.8638 18.1124 56.9287 16.5082 55.8433C16.086 55.5515 16.0191 55.5329 15.6966 55.6251C13.9793 56.1185 11.73 55.1053 9.81931 52.9844C9.05725 52.1366 7.82714 50.0548 7.42839 48.9409C6.50606 46.3339 6.68976 43.9816 7.91836 42.5767C8.23573 42.2149 8.2453 42.1995 8.17598 41.5912C8.06148 40.5951 8.00971 39.1206 8.06202 38.1692L8.10361 37.2803L6.76977 34.9212C4.70378 31.2451 3.3912 28.1582 2.88489 25.7998C2.61762 24.5066 2.63385 23.9324 2.96214 23.5078C3.16198 23.2515 3.81796 22.9866 4.60785 22.8407C6.59665 22.4917 10.9334 22.8076 15.7581 23.6595L16.259 23.7458L17.3608 22.7713C19.1891 21.1519 20.4038 20.244 22.6429 18.8478C24.9768 17.3876 27.6108 16.1858 30.577 15.2346L31.5295 14.9294L32.0526 13.5561C33.9257 8.61146 35.8437 4.96584 37.2114 3.75318ZM21.5208 29.0919C19.404 30.314 18.3453 30.9251 17.5676 31.6099C14.4179 34.3835 13.2414 38.777 14.5823 42.7537C14.9135 43.7357 15.5247 44.7942 16.7469 46.9111C17.9691 49.0279 18.5801 50.0865 19.2649 50.8643C22.0385 54.014 26.4316 55.1918 30.4084 53.8509C31.3904 53.5198 32.4489 52.9085 34.5657 51.6863L46.7442 44.6551C48.8613 43.4328 49.9205 42.8214 50.6983 42.1365C53.8479 39.363 55.0245 34.9695 53.6835 30.9927C53.3524 30.0107 52.7412 28.9522 51.519 26.8354C50.2968 24.7185 49.6858 23.66 49.0009 22.8822C46.2274 19.7325 41.8342 18.5547 37.8575 19.8956C36.8754 20.2267 35.8163 20.8383 33.6993 22.0606L21.5208 29.0919Z"}),S.jsx("g",{transform:"rotate(-30 22.6953 37.6011)",children:S.jsx("rect",{x:"22.6953",y:"37.6011",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})}),S.jsx("g",{transform:"rotate(-30 35.6748 30.1074)",children:S.jsx("rect",{x:"35.6748",y:"30.1074",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})})]})}function EN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:[S.jsx("path",{d:"M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z"}),S.jsx("path",{d:"M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z"}),S.jsx("path",{d:"M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z"})]})}function RN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",className:t,children:S.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"})})}function AN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":"true",children:S.jsx("g",{transform:"translate(3.4502, 3)",fill:"#9570BE",children:S.jsx("path",{d:"M3.17890888,3.6 L3.17890888,0 L16,0 L16,3.6 L3.17890888,3.6 Z M9.642,7.2 L9.64218223,10.8 L0,10.8 L0,3.6 L16,3.6 L16,7.2 L9.642,7.2 Z M3.17890888,18 L3.178,14.4 L0,14.4 L0,10.8 L16,10.8 L16,18 L3.17890888,18 Z",fillRule:"nonzero"})})})}function LN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[S.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),S.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),S.jsx("rect",{x:"75",y:"20",width:"12",height:"45",rx:"2"}),S.jsx("rect",{x:"71",y:"55",width:"20",height:"16",rx:"3"}),S.jsx("rect",{x:"76",y:"71",width:"3",height:"8",rx:"1"}),S.jsx("rect",{x:"82",y:"71",width:"3",height:"8",rx:"1"})]})}function DN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[S.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),S.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),S.jsx("rect",{x:"83",y:"20",width:"12",height:"62",rx:"2"})]})}function IN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[S.jsx("path",{d:"M9 3v2"}),S.jsx("path",{d:"M15 3v2"}),S.jsx("rect",{x:"4",y:"6",width:"16",height:"13",rx:"3"}),S.jsx("circle",{cx:"9",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),S.jsx("circle",{cx:"15",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),S.jsx("path",{d:"M9 16h6"})]})}function MN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"})})}function NN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M20.113 5.5l-.442 1.557a.157.157 0 01-.196.106l-7.414-2.157a.16.16 0 00-.143.028l-7.342 5.74a.159.159 0 01-.074.032l-4.37.656a.154.154 0 00-.132.162l.02.245c.005.078.071.14.152.141l5.074.128.058.002 3.75-1.953a.16.16 0 01.164.01l2.657 1.847a.152.152 0 01.066.125l-.023 2.45c0 .032.01.063.028.089l3.737 5.227c.03.04.077.065.129.065h1.182a.153.153 0 00.14-.224l-2.664-4.919a.15.15 0 01.005-.152l1.389-2.169a.156.156 0 01.062-.055l4.965-2.456a.16.16 0 01.158.01l1.418.921a.16.16 0 00.087.026h1.289c.125 0 .2-.136.13-.237l-3.578-5.29c-.074-.109-.246-.082-.282.044z"})})}function ON({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M21.595 23.61c1.167-.254 2.405-.944 2.405-.944l-2.167-1.784a12.124 12.124 0 01-2.695-3.131 12.127 12.127 0 00-3.97-4.049l-.794-.462a1.115 1.115 0 01-.488-.815.844.844 0 01.154-.575c.413-.582 2.548-3.115 2.94-3.44.503-.416 1.065-.762 1.586-1.159.074-.056.148-.112.221-.17.003-.002.007-.004.009-.007.167-.131.325-.272.45-.438.453-.524.563-.988.59-1.193-.061-.197-.244-.639-.753-1.148.319.02.705.272 1.056.569.235-.376.481-.773.727-1.171.165-.266-.08-.465-.086-.471h-.001V3.22c-.007-.007-.206-.25-.471-.086-.567.35-1.134.702-1.639 1.021 0 0-.597-.012-1.305.599a2.464 2.464 0 00-.438.45l-.007.009c-.058.072-.114.147-.17.221-.397.521-.743 1.083-1.16 1.587-.323.391-2.857 2.526-3.44 2.94a.842.842 0 01-.574.153 1.115 1.115 0 01-.815-.488l-.462-.794a12.123 12.123 0 00-4.049-3.97 12.133 12.133 0 01-3.13-2.695L1.332 0S.643 1.238.39 2.405c.352.428 1.27 1.49 2.34 2.302C1.58 4.167.73 3.75.06 3.4c-.103.765-.063 1.92.043 2.816.726.317 1.961.806 3.219 1.066-1.006.236-2.11.278-2.961.262.15.554.358 1.119.64 1.688.119.263.25.52.39.77.452.125 2.222.383 3.164.171l-2.51.897a27.776 27.776 0 002.544 2.726c2.031-1.092 2.494-1.241 4.018-2.238-2.467 2.008-3.108 2.828-3.8 3.67l-.483.678c-.25.351-.469.725-.65 1.117-.61 1.31-1.47 4.1-1.47 4.1-.154.486.202.842.674.674 0 0 2.79-.861 4.1-1.47.392-.182.766-.4 1.118-.65l.677-.483c.227-.187.453-.37.701-.586 0 0 1.705 2.02 3.458 3.349l.896-2.511c-.211.942.046 2.712.17 3.163.252.142.509.272.772.392.569.28 1.134.49 1.688.64-.016-.853.026-1.956.261-2.962.26 1.258.75 2.493 1.067 3.219.895.106 2.051.146 2.816.043a73.87 73.87 0 01-1.308-2.67c.811 1.07 1.874 1.988 2.302 2.34h-.001z"})})}function jN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M0 0v24h24V0H0zm22.222 22.222H1.778V1.778h20.444v20.444zm-7.555-4.964h2.222v1.778h-2.794L12.89 17.83v-2.794h1.778v2.222zm4 0h-1.778v-2.222h-2.222v-1.778h2.793l1.207 1.207v2.793zm-7.556-2.591H9.333v-1.778h1.778v1.778zm-5.778-1.778h1.778v4h4v1.778H6.54L5.333 17.46V12.89zm13.334-3.556v1.778h-5.778V9.333h1.987V7.111h-1.987V5.333h2.558l1.206 1.207v2.793h2.014zm-11.556-2h2.222l1.778 1.778v2H9.333v-2H7.111v2H5.333V5.333h1.778v2zm4 0H9.333v-2h1.778v2z"})})}function UN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,children:S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.125 2.75C2.9179 2.75 2.75 2.9179 2.75 3.125V11.375H2V3.125C2 2.50368 2.50368 2 3.125 2H13.1723C13.6735 2 13.9244 2.6059 13.5701 2.96025L7.38189 9.14843H9.125V8.375H9.875V9.33593C9.875 9.6466 9.6232 9.8984 9.3125 9.8984H6.63189L5.34282 11.1875H11.1875V6.5H11.9375V11.1875C11.9375 11.6017 11.6017 11.9375 11.1875 11.9375H4.59282L3.28032 13.25H12.875C13.0821 13.25 13.25 13.0821 13.25 12.875V4.625H14V12.875C14 13.4963 13.4963 14 12.875 14H2.82767C2.32653 14 2.07557 13.3941 2.42992 13.0397L8.59468 6.875H6.875V7.625H6.125V6.6875C6.125 6.37684 6.37684 6.125 6.6875 6.125H9.34468L10.6571 4.8125H4.8125V9.5H4.0625V4.8125C4.0625 4.39829 4.39829 4.0625 4.8125 4.0625H11.4071L12.7197 2.75H3.125Z"})})}const zN={CLAUDE:bN,ZCODE:MN,CODEBUDDY:Pk,WORKBUDDY:Pk,CODEX:_N,COPILOT:TN,CRAFT:AN,CURSOR:kN,DROID:IN,GEMINI:wN,GITHUB:RN,GOOSE:ON,GROK:xN,HERMES:EN,KIMI:CN,KIRO:PN,KILOCODE:jN,OPENCODE:SN,OMP:LN,PI:DN,ROOCODE:NN,ZED:UN},FN={ANTIGRAVITY:"/brand-logos/antigravity.svg",CLAUDE:"/brand-logos/claude-code.svg",CODEX:"/brand-logos/codex.svg",GEMINI:"/brand-logos/gemini.svg","KILO-CLI":"/brand-logos/kilo.svg","KILO-CODE":"/brand-logos/kilo.svg",MIMO:"/brand-logos/mimo.svg",OPENCLAW:"/brand-logos/openclaw.svg",OPENCODE:"/brand-logos/opencode.svg"};function BN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:S.jsx("circle",{cx:"12",cy:"12",r:"7.5",strokeDasharray:"3 3"})})}function VN({provider:e,size:t=16,color:n,className:a=""}){const i=e?.toUpperCase?.()||"",s=FN[i];if(s)return S.jsx("img",{src:s,alt:"",width:t,height:t,className:a,style:{width:t,height:t,objectFit:"contain"},"aria-hidden":!0});const l=zN[i];return l?S.jsx(l,{size:t,className:a}):S.jsx(BN,{size:t,className:`text-oai-gray-400 dark:text-oai-gray-500 shrink-0 ${a}`})}const pP="tokentracker-skills";async function ao(e){const t=new URL(`/functions/${pP}`,window.location.origin);if(e)for(const[i,s]of Object.entries(e))s!=null&&s!==""&&t.searchParams.set(i,String(s));const n=await fetch(t.toString(),{headers:{Accept:"application/json"},cache:"no-store"}),a=await n.json().catch(()=>null);if(!n.ok)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}async function mi(e){const t=await Gl(),n=await fetch(`/functions/${pP}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...t},cache:"no-store",body:JSON.stringify(e)}),a=await n.json().catch(()=>null);if(!n.ok||a?.ok===!1)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}function HN(){return ao({mode:"installed"})}function Pz(e={}){return ao({mode:"discover",...e.force?{force:1}:{}})}function Sz(e,t=0,n=20){return ao({mode:"search",q:e,offset:t,limit:n})}function Cz(){return ao({mode:"repos"})}function Tz(e,t){return mi({action:"install",skill:e,targets:t})}function Ez(e){return mi({action:"uninstall",id:e})}function Rz(e){return mi({action:"restore",id:e})}function Az(e,t){return mi({action:"set_targets",id:e,targets:t})}function Lz(e,t){return mi({action:"import_local",directory:e,targets:t})}function Dz(e,t){return mi({action:"delete_local",directory:e,targets:t||[]})}function Iz(e){return mi({action:"add_repo",repo:e})}function Mz(e,t){return mi({action:"remove_repo",owner:e,name:t})}function Nz(e={}){return ao({mode:"popular",...e.force?{force:1}:{}})}function Oz(e={}){return ao({mode:"updates",...e.force?{force:1}:{}})}function jz(e={}){return ao({mode:"skill_usage",...e.force?{force:1}:{}})}const $N=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function WN(){const e=os(),t=V9(),[n,a]=b.useState(!1),[i,s]=b.useState(""),[l,u]=b.useState(0),[h,p]=b.useState([]),f=b.useRef(null),g=b.useRef(null);b.useEffect(()=>{const E=R=>{(R.metaKey||R.ctrlKey)&&(R.key==="k"||R.key==="K")&&(R.preventDefault(),a(W=>!W))};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[]),b.useEffect(()=>{if(!n)return;s(""),u(0);const E=requestAnimationFrame(()=>f.current?.focus());return $N&&!h.length&&HN().then(R=>p(R?.skills||[])).catch(()=>p([])),()=>cancelAnimationFrame(E)},[n,h.length]);const v=b.useMemo(()=>{const E=dP().flatMap(z=>z.items.map(W=>({kind:"page",id:`page:${W.id}`,label:W.label,sub:fe("cmdk.group.pages"),Icon:W.icon,run:()=>e(W.to)}))),R=(h||[]).map(z=>({kind:"skill",id:`skill:${z.id||z.directory}`,label:z.name||z.directory,sub:z.repoOwner&&z.repoName?`${z.repoOwner}/${z.repoName}`:fe("cmdk.group.skills"),provider:(z.targets||[])[0]||"claude",run:()=>e(`/skills?skill=${encodeURIComponent(z.directory||z.id)}`)}));return[...E,...R]},[e,h]),k=b.useMemo(()=>{const E=i.trim().toLowerCase();return E?v.filter(R=>R.label.toLowerCase().includes(E)||String(R.sub||"").toLowerCase().includes(E)):v},[v,i]);b.useEffect(()=>{l>=k.length&&u(k.length?k.length-1:0)},[l,k.length]),b.useEffect(()=>{if(!n)return;g.current?.querySelector(`[data-cmdk-index="${l}"]`)?.scrollIntoView({block:"nearest"})},[l,n]);const x=b.useCallback(()=>a(!1),[]),C=b.useCallback(E=>{E&&(x(),E.run())},[x]),P=E=>{E.key==="ArrowDown"?(E.preventDefault(),u(R=>Math.min(R+1,Math.max(0,k.length-1)))):E.key==="ArrowUp"?(E.preventDefault(),u(R=>Math.max(R-1,0))):E.key==="Enter"?(E.preventDefault(),C(k[l])):E.key==="Escape"&&(E.preventDefault(),x())},A={duration:t?0:.12},D=t?{duration:0}:{type:"spring",stiffness:460,damping:34,mass:.6};return S.jsx(Nx,{children:n?S.jsxs(Pl.div,{className:"fixed inset-0 z-[120] flex items-start justify-center px-4 pt-[16vh]",initial:t?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:A,children:[S.jsx("button",{type:"button","aria-label":fe("cmdk.close"),onClick:x,className:"absolute inset-0 cursor-default bg-oai-black/40"}),S.jsxs(Pl.div,{role:"dialog","aria-modal":"true","aria-label":fe("cmdk.open_aria"),initial:t?!1:{opacity:0,y:-8,scale:.985},animate:{opacity:1,y:0,scale:1},exit:t?{opacity:0}:{opacity:0,y:-8,scale:.985},transition:D,className:"relative w-full max-w-xl overflow-hidden rounded-2xl border border-oai-gray-200 bg-oai-white shadow-2xl dark:border-oai-gray-800 dark:bg-oai-gray-950",children:[S.jsxs("div",{className:"flex items-center gap-2.5 border-b border-oai-gray-200 px-4 dark:border-oai-gray-800",children:[S.jsx(AR,{className:"h-4 w-4 shrink-0 text-oai-gray-400","aria-hidden":!0}),S.jsx("input",{ref:f,type:"text",value:i,onChange:E=>{s(E.target.value),u(0)},onKeyDown:P,"aria-label":fe("cmdk.placeholder"),"aria-controls":"cmdk-listbox","aria-activedescendant":k[l]?`cmdk-opt-${l}`:void 0,role:"combobox","aria-expanded":"true",placeholder:fe("cmdk.placeholder"),className:"h-12 w-full bg-transparent text-sm text-oai-black placeholder:text-oai-gray-400 focus:outline-none dark:text-white"})]}),S.jsx("div",{ref:g,id:"cmdk-listbox",role:"listbox",className:"max-h-[min(56vh,22rem)] overflow-y-auto p-1.5",children:k.length===0?S.jsx("div",{className:"px-3 py-8 text-center text-sm text-oai-gray-500 dark:text-oai-gray-400",children:fe("cmdk.empty")}):k.map((E,R)=>{const z=R===l;return S.jsxs("button",{type:"button",role:"option",id:`cmdk-opt-${R}`,"data-cmdk-index":R,"aria-selected":z,onMouseMove:()=>u(R),onClick:()=>C(E),className:Pt("flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm transition-colors",z?"bg-oai-gray-100 text-oai-black dark:bg-oai-gray-800/70 dark:text-white":"text-oai-gray-700 dark:text-oai-gray-200"),children:[S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-oai-gray-500 dark:text-oai-gray-400",children:E.kind==="skill"?S.jsx(VN,{provider:E.provider,size:16}):S.jsx(E.Icon,{className:"h-4 w-4","aria-hidden":!0})}),S.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:E.label}),S.jsx("span",{className:"shrink-0 truncate text-xs text-oai-gray-400 dark:text-oai-gray-500",children:E.sub}),z?S.jsx(dR,{className:"h-3.5 w-3.5 shrink-0 text-oai-gray-400","aria-hidden":!0}):null]},E.id)})})]})]}):null})}const GN=[];function $g(e){b.useEffect(e,GN)}const Sk={};function gs(e,t){const n=b.useRef(Sk);return n.current===Sk&&(n.current=e(t)),n}const KN=()=>{},la=typeof document<"u"?b.useLayoutEffect:KN;function qN(e,t){return function(a,...i){const s=new URL(e);return s.searchParams.set("code",a.toString()),i.forEach(l=>s.searchParams.append("args[]",l)),`${t} error #${a}; visit ${s} for the full message.`}}const ys=qN("https://base-ui.com/production-error","Base UI"),Wg=b.createContext(void 0);function Gg(){const e=b.useContext(Wg);if(!e)throw new Error(ys(73));return e}const Ca=(e,t,n,a,i,s,...l)=>{if(l.length>0)throw new Error(ys(1));let u;if(e&&t&&n&&a&&i&&s)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g),x=n(h,p,f,g),C=a(h,p,f,g),P=i(h,p,f,g);return s(v,k,x,C,P,p,f,g)};else if(e&&t&&n&&a&&i)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g),x=n(h,p,f,g),C=a(h,p,f,g);return i(v,k,x,C,p,f,g)};else if(e&&t&&n&&a)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g),x=n(h,p,f,g);return a(v,k,x,p,f,g)};else if(e&&t&&n)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g);return n(v,k,p,f,g)};else if(e&&t)u=(h,p,f,g)=>{const v=e(h,p,f,g);return t(v,p,f,g)};else if(e)u=e;else throw new Error("Missing arguments");return u};var pf={exports:{}},ff={};var Ck;function YN(){if(Ck)return ff;Ck=1;var e=Ul();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,v){var k=v(),x=a({inst:{value:k,getSnapshot:v}}),C=x[0].inst,P=x[1];return s(function(){C.value=k,C.getSnapshot=v,h(C)&&P({inst:C})},[g,k,v]),i(function(){return h(C)&&P({inst:C}),g(function(){h(C)&&P({inst:C})})},[g]),l(k),k}function h(g){var v=g.getSnapshot;g=g.value;try{var k=v();return!n(g,k)}catch{return!0}}function p(g,v){return v()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return ff.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,ff}var Tk;function fP(){return Tk||(Tk=1,pf.exports=YN()),pf.exports}var ZN=fP(),mf={exports:{}},gf={};var Ek;function XN(){if(Ek)return gf;Ek=1;var e=Ul(),t=fP();function n(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var a=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,h=e.useDebugValue;return gf.useSyncExternalStoreWithSelector=function(p,f,g,v,k){var x=s(null);if(x.current===null){var C={hasValue:!1,value:null};x.current=C}else C=x.current;x=u(function(){function A(W){if(!D){if(D=!0,E=W,W=v(W),k!==void 0&&C.hasValue){var F=C.value;if(k(F,W))return R=F}return R=W}if(F=R,a(E,W))return F;var T=v(W);return k!==void 0&&k(F,T)?(E=W,F):(E=W,R=T)}var D=!1,E,R,z=g===void 0?null:g;return[function(){return A(f())},z===null?void 0:function(){return A(z())}]},[f,g,v,k]);var P=i(p,x[0],x[1]);return l(function(){C.hasValue=!0,C.value=P},[P]),h(P),P},gf}var Rk;function JN(){return Rk||(Rk=1,mf.exports=XN()),mf.exports}var QN=JN();const eO=parseInt(b.version,10);function Kg(e){return eO>=e}const tO=Kg(19),nO=tO?rO:iO;function mP(e,t,n,a,i){return nO(e,t,n,a,i)}function aO(e,t,n,a,i){const s=b.useCallback(()=>t(e.getSnapshot(),n,a,i),[e,t,n,a,i]);return ZN.useSyncExternalStore(e.subscribe,s,s)}function rO(e,t,n,a,i){return aO(e,t,n,a,i)}function iO(e,t,n,a,i){return QN.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,a,i))}class oO{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const a of this.listeners){if(n!==this.updateTick)return;a(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,a,i){return mP(this,t,n,a,i)}}const qg={...Gk},yf=qg.useInsertionEffect,sO=yf&&yf!==qg.useLayoutEffect?yf:e=>e();function Ji(e){const t=gs(lO).current;return t.next=e,sO(t.effect),t.trampoline}function lO(){const e={next:void 0,callback:cO,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function cO(){}function uO(){}const Uz=Object.freeze([]),Bi=Object.freeze({});class dO extends oO{constructor(t,n={},a){super(t),this.context=n,this.selectors=a}useSyncedValue(t,n){b.useDebugValue(t);const a=this;la(()=>{a.state[t]!==n&&a.set(t,n)},[a,t,n])}useSyncedValueWithCleanup(t,n){const a=this;la(()=>(a.state[t]!==n&&a.set(t,n),()=>{a.set(t,void 0)}),[a,t,n])}useSyncedValues(t){const n=this,a=Object.values(t);la(()=>{n.update(t)},[n,...a])}useControlledProp(t,n){b.useDebugValue(t);const a=this,i=n!==void 0;la(()=>{i&&!Object.is(a.state[t],n)&&a.setState({...a.state,[t]:n})},[a,t,n,i])}select(t,n,a,i){const s=this.selectors[t];return s(this.state,n,a,i)}useState(t,n,a,i){return b.useDebugValue(t),mP(this,this.selectors[t],n,a,i)}useContextCallback(t,n){b.useDebugValue(t);const a=Ji(n??uO);this.context[t]=a}useStateSetter(t){const n=b.useRef(void 0);return n.current===void 0&&(n.current=a=>{this.set(t,a)}),n.current}observe(t,n){let a;typeof t=="function"?a=t:a=this.selectors[t];let i=a(this.state);return n(i,i,this),this.subscribe(s=>{const l=a(s);if(!Object.is(i,l)){const u=i;i=l,n(l,u,this)}})}}function Kd(){return typeof window<"u"}function Ia(e){return Yg(e)?(e.nodeName||"").toLowerCase():"#document"}function Cr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hO(e){var t;return(t=(Yg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yg(e){return Kd()?e instanceof Node||e instanceof Cr(e).Node:!1}function Zg(e){return Kd()?e instanceof Element||e instanceof Cr(e).Element:!1}function hi(e){return Kd()?e instanceof HTMLElement||e instanceof Cr(e).HTMLElement:!1}function Cd(e){return!Kd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cr(e).ShadowRoot}function gP(e){const{overflow:t,overflowX:n,overflowY:a,display:i}=qd(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&i!=="inline"&&i!=="contents"}function zz(e){return/^(table|td|th)$/.test(Ia(e))}function pO(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const fO=/transform|translate|scale|rotate|perspective|filter/,mO=/paint|layout|strict|content/,Ii=e=>!!e&&e!=="none";let vf;function gO(e){const t=Zg(e)?qd(e):e;return Ii(t.transform)||Ii(t.translate)||Ii(t.scale)||Ii(t.rotate)||Ii(t.perspective)||!yO()&&(Ii(t.backdropFilter)||Ii(t.filter))||fO.test(t.willChange||"")||mO.test(t.contain||"")}function Fz(e){let t=_m(e);for(;hi(t)&&!yP(t);){if(gO(t))return t;if(pO(t))return null;t=_m(t)}return null}function yO(){return vf==null&&(vf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vf}function yP(e){return/^(html|body|#document)$/.test(Ia(e))}function qd(e){return Cr(e).getComputedStyle(e)}function Bz(e){return Zg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _m(e){if(Ia(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cd(e)&&e.host||hO(e);return Cd(t)?t.host:t}function vP(e){const t=_m(e);return yP(t)?e.ownerDocument?e.ownerDocument.body:e.body:hi(t)&&gP(t)?t:vP(t)}function Ak(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=vP(e),s=i===((a=e.ownerDocument)==null?void 0:a.body),l=Cr(i);if(s){const u=vO(l);return t.concat(l,l.visualViewport||[],gP(i)?i:[],u&&n?Ak(u):[])}else return t.concat(i,Ak(i,[],n))}function vO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bP(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function La(e){return e?.ownerDocument||document}function Vi(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}const _u=null;class bO{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let i=0;i<n.length;i+=1)n[i]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const ku=new bO;class Xg{static create(){return new Xg}static request(t){return ku.request(t)}static cancel(t){return ku.cancel(t)}currentId=_u;request(t){this.cancel(),this.currentId=ku.request(()=>{this.currentId=_u,t()})}cancel=()=>{this.currentId!==_u&&(ku.cancel(this.currentId),this.currentId=_u)};disposeEffect=()=>this.cancel}function _O(){const e=gs(Xg.create).current;return $g(e.disposeEffect),e}const sl=0;class Ol{static create(){return new Ol}currentId=sl;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=sl,n()},t)}isStarted(){return this.currentId!==sl}clear=()=>{this.currentId!==sl&&(clearTimeout(this.currentId),this.currentId=sl)};disposeEffect=()=>this.clear}function kO(){const e=gs(Ol.create).current;return $g(e.disposeEffect),e}let Lk=0;function _P(e){return Lk+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Lk}`}function bf(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const n=e(t);return typeof n=="string"?{description:n}:n}return e}function wO(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:xO,platform:PO,maxTouchPoints:SO}=wO(),Yd=xO.toLowerCase(),jl=PO.toLowerCase(),kP=/^i(os$|p)/.test(jl)||jl==="macintel"&&SO>1,Dk="android",Vz=jl===Dk||Yd.includes(Dk),CO=!kP&&jl.startsWith("mac");jl.startsWith("win");const TO=CO||kP,Jg=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none");!Jg&&Yd.includes("firefox");!Jg&&Yd.includes("chrom");const EO=TO,RO=/jsdom|happydom/.test(Yd),Ik="data-base-ui-focusable",wP="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Hz="ArrowLeft",$z="ArrowRight",Wz="ArrowUp",Gz="ArrowDown";function Yo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Tr(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Cd(n)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function Hi(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Kz(e,t){if(!Zg(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,a]of t.entries())if(Tr(a,n))return!a.hasAttribute("data-trigger-disabled");return!1}function qz(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Yz(e){return e.matches("html,body")}function AO(e){return hi(e)&&e.matches(wP)}function Zz(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${wP}`)!=null}function Xz(e){return e?e.getAttribute("role")==="combobox"&&AO(e):!1}function km(e){if(!e||RO)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Jz(e){return e?e.hasAttribute(Ik)?e:e.querySelector(`[${Ik}]`)||e:null}function Qz(e,t){return t<0||t>=e.length}function eF(e,t){return xP(e.current,{disabledIndices:t})}function tF(e,t){return xP(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function xP(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:a,amount:i=1}={}){let s=t;do s+=n?-i:i;while(s>=0&&s<=e.length-1&&LO(e,s,a));return s}function LO(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const i=e[t];return i?PP(i)?!n&&(i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true"):!0:!1}function DO(e){return e.visibility==="hidden"||e.visibility==="collapse"}function PP(e,t=e?qd(e):null){return!e||!e.isConnected||!t||DO(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const IO='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function MO(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return Cd(n)?n.host:null}function wm(e){for(const t of Array.from(e.children))if(Ia(t)==="summary")return t;return null}function NO(e,t){const n=wm(t);return!!n&&(e===n||Tr(n,e))}function SP(e){const t=e?Ia(e):"";return e!=null&&e.matches(IO)&&(t!=="summary"||e.parentElement!=null&&Ia(e.parentElement)==="details"&&wm(e.parentElement)===e)&&(t!=="details"||wm(e)==null)&&(t!=="input"||e.type!=="hidden")}function CP(e){if(!SP(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=MO(t)){const n=t!==e,a=Ia(t)==="slot";if(t.hasAttribute("inert")||n&&Ia(t)==="details"&&!t.open&&!NO(e,t)||t.hasAttribute("hidden")||!a&&!OO(t,n))return!1}return!0}function OO(e,t){const n=qd(e);return t?n.display!=="none":PP(e,n)}function TP(e){const t=e.tabIndex;if(t<0){const n=Ia(e);if(n==="details"||n==="audio"||n==="video"||hi(e)&&e.isContentEditable)return 0}return t}function _f(e){if(Ia(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function jO(e,t){const n=_f(e);if(!n)return!0;const a=t.find(i=>{const s=_f(i);return s?.name===n.name&&s.form===n.form&&s.checked});return a?a===n:t.find(i=>{const s=_f(i);return s?.name===n.name&&s.form===n.form})===n}function EP(e){if(hi(e)&&Ia(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return hi(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function RP(e,t){EP(e).forEach(n=>{SP(n)&&t.push(n),RP(n,t)})}function AP(e,t,n){EP(e).forEach(a=>{hi(a)&&a.matches(t)&&n.push(a),AP(a,t,n)})}function nF(e){return CP(e)&&TP(e)>=0}function UO(e){const t=[];return RP(e,t),t.filter(CP)}function Qg(e){const t=UO(e);return t.filter(n=>TP(n)>=0&&jO(n,t))}function LP(e,t){const n=Qg(e),a=n.length;if(a===0)return;const i=Yo(La(e)),s=n.indexOf(i),l=s===-1?t===1?0:a-1:s+t;return n[l]}function zO(e){return LP(La(e).body,1)||e}function FO(e){return LP(La(e).body,-1)||e}function DP(e,t){if(!e)return null;const n=Qg(La(e).body),a=n.length;if(a===0)return null;const i=n.indexOf(e);if(i===-1)return null;const s=(i+t+a)%a;return n[s]}function aF(e){return DP(e,1)}function rF(e){return DP(e,-1)}function kf(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!Tr(n,a)}function BO(e){Qg(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Mk(e){const t=[];AP(e,"[data-tabindex]",t),t.forEach(n=>{const a=n.dataset.tabindex;delete n.dataset.tabindex,a?n.setAttribute("tabindex",a):n.removeAttribute("tabindex")})}function wu(e){const t=new Map;let n=0,a=0;return e.forEach((i,s)=>{const l=i.transitionStatus==="ending";t.set(i.id,{value:i,domIndex:s,visibleIndex:l?-1:n,offsetY:a}),a+=i.height||0,l||(n+=1)}),t}function wf(e,t){let n=0;return e.map(a=>{if(a.transitionStatus==="ending")return a;const i=n>=t;return n+=1,a.limited===i?a:{...a,limited:i}})}const xu=e=>e.toastMetadata,$a={toasts:Ca(e=>e.toasts),isEmpty:Ca(e=>e.toasts.length===0),toast:Ca(xu,(e,t)=>e.get(t)?.value),toastIndex:Ca(xu,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:Ca(xu,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:Ca(xu,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:Ca(e=>e.hovering),focused:Ca(e=>e.focused),expanded:Ca(e=>e.hovering||e.focused),expandedOrOutOfFocus:Ca(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:Ca(e=>e.prevFocusElement)};class VO extends dO{timers=new Map;areTimersPaused=!1;constructor(t){super({...t,toastMetadata:wu(t.toasts)},{},$a)}setFocused(t){this.set("focused",t)}setHovering(t){this.set("hovering",t)}setIsWindowFocused(t){this.set("isWindowFocused",t)}setPrevFocusElement(t){this.set("prevFocusElement",t)}setViewport=t=>{this.set("viewport",t)};syncProviderProps(t){const n=this.state.limit!==t.limit;if(this.state.timeout===t.timeout&&!n)return;const a={timeout:t.timeout,limit:t.limit};if(n){const i=wf(this.state.toasts,t.limit);a.toasts=i,a.toastMetadata=wu(i)}this.update(a)}disposeEffect=()=>()=>{this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear()};removeToast(t,n={}){const a=$a.toastIndex(this.state,t);if(a===-1)return;const i=this.state.toasts[a];n.skipOnRemove||i?.onRemove?.();const s=[...this.state.toasts];s.splice(a,1),this.setToasts(s)}addToast=t=>{const{timeout:n,limit:a}=this.state,i=t.id||_P("toast");if(t.id){const h=$a.toast(this.state,t.id);if(h)if(h.transitionStatus==="ending")this.removeToast(t.id,{skipOnRemove:!0});else{const{id:p,transitionStatus:f,...g}=t;return this.updateToastInternal(t.id,g,{resetTimer:!0,markUpdated:!0}),t.id}}const s={...t,id:i,updateKey:0,transitionStatus:"starting"},l=[s,...this.state.toasts];this.setToasts(wf(l,a));const u=s.timeout??n;return s.type!=="loading"&&u>0&&this.scheduleTimer(i,u,()=>this.closeToast(i)),$a.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),i};updateToast=(t,n)=>{this.updateToastInternal(t,n,{markUpdated:!0})};updateToastInternal=(t,n,a={})=>{const{timeout:i,toasts:s}=this.state,l=$a.toast(this.state,t)??null;if(!l||l.transitionStatus==="ending")return;const u={...l,...n,...a.markUpdated&&{updateKey:(l.updateKey??0)+1}};this.setToasts(s.map(C=>C.id===t?u:C));const h=u.timeout??i,p=l?.timeout??i,f=Object.hasOwn(n,"timeout"),g=u.transitionStatus!=="ending"&&u.type!=="loading"&&h>0,v=this.timers.has(t),k=p!==h,x=l?.type==="loading";if(!g&&v){this.clearTimer(t);return}g&&(!v||k||f||x||a.resetTimer)&&(this.clearTimer(t),this.scheduleTimer(t,h,()=>this.closeToast(t)),$a.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=t=>{const n=t===void 0,{limit:a,toasts:i}=this.state;let s;if(n)s=i,this.clearTimers();else{const f=$a.toast(this.state,t);if(!f)return;s=[f],this.clearTimer(t)}const l=i.map(f=>n||f.id===t?{...f,transitionStatus:"ending",height:0}:f),u=wf(l,a),h={toasts:u,toastMetadata:wu(u)};u.some(f=>f.transitionStatus!=="ending")||(h.hovering=!1,h.focused=!1),this.update(h),s.forEach(f=>{f.transitionStatus!=="ending"&&f.onClose?.()}),this.handleFocusManagement(t)};promiseToast=(t,n)=>{const a=bf(n.loading),i=this.addToast({...a,type:"loading"}),s=t.then(l=>{const u=bf(n.success,l);return this.updateToast(i,{...u,type:"success",timeout:u.timeout}),l}).catch(l=>{const u=bf(n.error,l);return this.updateToast(i,{...u,type:"error",timeout:u.timeout}),Promise.reject(l)});return{}.hasOwnProperty.call(n,"setPromise")&&n.setPromise(s),s};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(t=>{if(t.timeout){t.timeout.clear();const n=Date.now()-t.start,a=t.delay-n;t.remaining=a>0?a:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((t,n)=>{t.remaining=t.remaining>0?t.remaining:t.delay,t.timeout??=Ol.create(),t.timeout.start(t.remaining,()=>{this.handleTimerFired(n),t.callback()}),t.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=t=>{if(t.pointerType!=="touch")return;const n=Hi(t);Tr(this.state.viewport,n)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(t,n,a){const i=Date.now(),s=!$a.expandedOrOutOfFocus(this.state),l=s?Ol.create():void 0;l?.start(n,()=>{this.handleTimerFired(t),a()}),this.timers.set(t,{timeout:l,start:s?i:0,delay:n,remaining:n,callback:a})}clearTimers(){this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(t){this.timers.get(t)?.timeout?.clear(),this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(t){this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(t){const n={toasts:t,toastMetadata:wu(t)};t.length===0&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(t){const n=Yo(La(this.state.viewport));if(!this.state.viewport||!Tr(this.state.viewport,n)||!km(n))return;if(t===void 0){this.restoreFocusToPrevElement();return}const a=$a.toasts(this.state),i=$a.toastIndex(this.state,t);let s=null,l=i+1;for(;l<a.length;){if(a[l].transitionStatus!=="ending"){s=a[l];break}l+=1}if(!s)for(l=i-1;l>=0;){if(a[l].transitionStatus!=="ending"){s=a[l];break}l-=1}s?s.ref?.current?.focus():this.restoreFocusToPrevElement()}}const HO=function(t){const{children:n,timeout:a=5e3,limit:i=3,toastManager:s}=t,l=gs(()=>new VO({timeout:a,limit:i,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return $g(l.disposeEffect),b.useEffect(function(){return s?s[" subscribe"](({action:p,options:f})=>{const g=f.id;p==="promise"&&f.promise?l.promiseToast(f.promise,f):p==="update"&&g?l.updateToast(g,f):p==="close"?l.closeToast(g):l.addToast(f)}):void 0},[l,s]),la(()=>{l.syncProviderProps({timeout:a,limit:i})},[l,a,i]),S.jsx(Wg.Provider,{value:l,children:n})},IP={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},MP={...IP,position:"fixed",top:0,left:0},iF={...IP,position:"absolute"},Sl=b.forwardRef(function(t,n){const[a,i]=b.useState();la(()=>{EO&&Jg&&i("button")},[]);const s={tabIndex:0,role:a};return S.jsx("span",{...t,ref:n,style:MP,"aria-hidden":a?void 0:!0,...s,"data-base-ui-focus-guard":""})});function Nk(e,t,n,a){const i=gs(NP).current;return WO(i,e,t,n,a)&&OP(i,[e,t,n,a]),i.callback}function $O(e){const t=gs(NP).current;return GO(t,e)&&OP(t,e),t.callback}function NP(){return{callback:null,cleanup:null,refs:[]}}function WO(e,t,n,a,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==a||e.refs[3]!==i}function GO(e,t){return e.refs.length!==t.length||e.refs.some((n,a)=>n!==t[a])}function OP(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const a=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(a[i]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=a[i];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}function Ok(e){if(!b.isValidElement(e))return null;const t=e,n=t.props;return(Kg(19)?n?.ref:t.ref)??null}function xm(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function KO(e,t){const n={};for(const a in e){const i=e[a];if(t?.hasOwnProperty(a)){const s=t[a](i);s!=null&&Object.assign(n,s);continue}i===!0?n[`data-${a.toLowerCase()}`]="":i&&(n[`data-${a.toLowerCase()}`]=i.toString())}return n}function qO(e,t){return typeof e=="function"?e(t):e}function YO(e,t){return typeof e=="function"?e(t):e}const e0={};function t0(e,t,n,a,i){if(!n&&!a&&!i&&!e)return Td(t);let s=Td(e);return t&&(s=fl(s,t)),n&&(s=fl(s,n)),a&&(s=fl(s,a)),i&&(s=fl(s,i)),s}function ZO(e){if(e.length===0)return e0;if(e.length===1)return Td(e[0]);let t=Td(e[0]);for(let n=1;n<e.length;n+=1)t=fl(t,e[n]);return t}function Td(e){return n0(e)?{...UP(e,e0)}:XO(e)}function fl(e,t){return n0(t)?UP(t,e):JO(e,t)}function XO(e){const t={...e};for(const n in t){const a=t[n];jP(n,a)&&(t[n]=zP(a))}return t}function JO(e,t){if(!t)return e;for(const n in t){const a=t[n];switch(n){case"style":{e[n]=xm(e.style,a);break}case"className":{e[n]=FP(e.className,a);break}default:jP(n,a)?e[n]=QO(e[n],a):e[n]=a}}return e}function jP(e,t){const n=e.charCodeAt(0),a=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&a===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function n0(e){return typeof e=="function"}function UP(e,t){return n0(e)?e(t):e??e0}function QO(e,t){return t?e?(...n)=>{const a=n[0];if(BP(a)){const s=a;Ed(s);const l=t(...n);return s.baseUIHandlerPrevented||e?.(...n),l}const i=t(...n);return e?.(...n),i}:zP(t):e}function zP(e){return e&&((...t)=>{const n=t[0];return BP(n)&&Ed(n),e(...t)})}function Ed(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function FP(e,t){return t?e?t+" "+e:t:e}function BP(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Ql(e,t,n={}){const a=t.render,i=ej(t,n);if(n.enabled===!1)return null;const s=n.state??Bi;return aj(e,a,i,s)}function ej(e,t={}){const{className:n,style:a,render:i}=e,{state:s=Bi,ref:l,props:u,stateAttributesMapping:h,enabled:p=!0}=t,f=p?qO(n,s):void 0,g=p?YO(a,s):void 0,v=p?KO(s,h):Bi,k=p&&u?tj(u):void 0,x=p?xm(v,k)??{}:Bi;return typeof document<"u"&&(p?Array.isArray(l)?x.ref=$O([x.ref,Ok(i),...l]):x.ref=Nk(x.ref,Ok(i),l):Nk(null,null)),p?(f!==void 0&&(x.className=FP(x.className,f)),g!==void 0&&(x.style=xm(x.style,g)),x):Bi}function tj(e){return Array.isArray(e)?ZO(e):t0(void 0,e)}const nj=Symbol.for("react.lazy");function aj(e,t,n,a){if(t){if(typeof t=="function")return t(n,a);const i=t0(n,t.props);i.ref=n.ref;let s=t;return s?.$$typeof===nj&&(s=b.Children.toArray(t)[0]),b.cloneElement(s,i)}if(e&&typeof e=="string")return rj(e,n);throw new Error(ys(8))}function rj(e,t){return e==="button"?b.createElement("button",{type:"button",...t,key:t.key}):e==="img"?b.createElement("img",{alt:"",...t,key:t.key}):b.createElement(e,t)}let ij=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const oj=b.forwardRef(function(t,n){const{render:a,className:i,style:s,children:l,...u}=t,h=Gg(),p=kO(),f=b.useRef(!1),g=b.useRef(!1),v=b.useRef(!1),k=h.useState("isEmpty"),x=h.useState("toasts"),C=h.useState("focused"),P=h.useState("expanded"),A=h.useState("prevFocusElement"),D=x[0]?.height??0,E=b.useMemo(()=>x.some(B=>B.transitionStatus==="ending"),[x]),R=b.useMemo(()=>x.filter(B=>B.priority==="high"),[x]);b.useEffect(()=>{const B=h.state.viewport;if(!B)return;function X(M){k||M.key==="F6"&&Hi(M)!==B&&(M.preventDefault(),h.setPrevFocusElement(Yo(La(B))),B?.focus({preventScroll:!0}),h.pauseTimers(),h.setFocused(!0))}const V=Cr(B);return Vi(V,"keydown",X)},[h,k]),b.useEffect(()=>{const B=h.state.viewport;if(!B||k)return;const X=Cr(B);function V(Z){Hi(Z)===X&&(h.setIsWindowFocused(!1),h.pauseTimers())}function M(Z){if(Z.relatedTarget)return;const be=Hi(Z),he=Yo(La(B));(be===X||!Tr(B,be)||!km(he))&&h.resumeTimers(),p.start(0,()=>h.setIsWindowFocused(!0))}return bP(Vi(X,"blur",V,!0),Vi(X,"focus",M,!0))},[h,p,k]),b.useEffect(()=>{const B=h.state.viewport;if(!B||k)return;const X=La(B);return Vi(X,"pointerdown",h.handleDocumentPointerDown,!0)},[k,h]);function z(B){const X=h.state.viewport;if(X)if(f.current=!0,B.relatedTarget===X){const V=x.find(M=>M.transitionStatus!=="ending"&&!M.limited);V?V.ref?.current?.focus():h.restoreFocusToPrevElement()}else h.restoreFocusToPrevElement()}function W(B){B.key==="Tab"&&B.shiftKey&&Hi(B.nativeEvent)===h.state.viewport&&(B.preventDefault(),h.restoreFocusToPrevElement(),h.resumeTimers())}function F(){h.state.toasts.some(X=>X.transitionStatus==="ending")||v.current||!g.current||(h.state.isWindowFocused&&h.resumeTimers(),h.setHovering(!1),g.current=!1)}b.useEffect(F,[E,h]);function T(){h.pauseTimers(),h.setHovering(!0),g.current=!1}function $(){h.state.isWindowFocused&&h.resumeTimers()}function q(){h.state.toasts.some(X=>X.transitionStatus==="ending")||v.current?g.current=!0:($(),h.setHovering(!1))}function re(B){B.pointerType==="touch"&&(v.current=!0)}function se(B){B.pointerType==="touch"&&(v.current=!1,F())}function Se(){if(f.current){f.current=!1;return}C||km(Yo(La(h.state.viewport)))&&(h.setFocused(!0),h.pauseTimers())}function pe(B){!C||Tr(h.state.viewport,B.relatedTarget)||(h.setFocused(!1),$())}const ue={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:T,onMouseMove:T,onMouseLeave:q,onFocus:Se,onBlur:pe,onKeyDown:W,onClick:Se,onPointerDown:re,onPointerUp:se,onPointerCancel:se},ie={expanded:P},ge=Ql("div",t,{ref:[n,h.setViewport],state:ie,props:[ue,{style:{[ij.frontmostHeight]:D?`${D}px`:void 0}},u,{children:S.jsxs(b.Fragment,{children:[!k&&A&&S.jsx(Sl,{onFocus:z}),l,!k&&A&&S.jsx(Sl,{onFocus:z})]})}]});return S.jsxs(b.Fragment,{children:[!k&&A&&S.jsx(Sl,{onFocus:z}),ge,!C&&R.length>0&&S.jsx("div",{style:MP,children:R.map(B=>S.jsxs("div",{role:"alert","aria-atomic":!0,children:[S.jsx("div",{children:B.title}),S.jsx("div",{children:B.description})]},B.id))})]})});function sj(e){return Kg(19)?e:e?"true":void 0}const VP=b.createContext(void 0);function HP(){const e=b.useContext(VP);if(!e)throw new Error(ys(66));return e}let a0=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const lj={[a0.startingStyle]:""},cj={[a0.endingStyle]:""},uj={transitionStatus(e){return e==="starting"?lj:e==="ending"?cj:null}};function dj(e){return e==null?e:"current"in e?e.current:e}function hj(e,t=!1,n=!0){const a=_O();return Ji((i,s=null)=>{a.cancel();const l=dj(e);if(l==null)return;const u=l,h=()=>{ss.flushSync(i)};if(typeof u.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function p(){Promise.all(u.getAnimations().map(f=>f.finished)).then(()=>{s?.aborted||h()}).catch(()=>{if(n){s?.aborted||h();return}const f=u.getAnimations();!s?.aborted&&f.length>0&&f.some(g=>g.pending||g.playState!=="finished")&&p()})}if(t){const f=a0.startingStyle;if(!u.hasAttribute(f)){a.request(p);return}const g=new MutationObserver(()=>{u.hasAttribute(f)||(g.disconnect(),p())});g.observe(u,{attributes:!0,attributeFilter:[f]}),s?.addEventListener("abort",()=>g.disconnect(),{once:!0});return}a.request(p)})}function pj(e){const{enabled:t=!0,open:n,ref:a,onComplete:i}=e,s=Ji(i),l=hj(a,n,!1);b.useEffect(()=>{if(!t)return;const u=new AbortController;return l(s,u.signal),()=>{u.abort()}},[t,n,s,l])}let Mi=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const oF=500,sF={style:{transition:"none"}},lF="data-base-ui-click-trigger",fj="data-base-ui-swipe-ignore",mj="data-swipe-ignore",gj=`[${fj}]`,yj=`[${mj}]`,cF={fallbackAxisSide:"none"},uF={fallbackAxisSide:"end"},vj={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function jk(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}function bj(e){const n=Cr(e).getComputedStyle(e).transform;let a=0,i=0,s=1;if(n&&n!=="none"){const l=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(l){const u=l[1].split(", ").map(parseFloat);u.length===6?(a=u[4],i=u[5],s=Math.sqrt(u[0]*u[0]+u[1]*u[1])):u.length===16&&(a=u[12],i=u[13],s=u[0])}}return{x:a,y:i,scale:s}}const _j={...uj,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},ll=40,kj=10,ti=.5,wj=1,xj=`${gj},${yj}`,Pj=b.forwardRef(function(t,n){const{toast:a,render:i,className:s,swipeDirection:l=["down","right"],style:u,...h}=t,p=a.positionerProps?.anchor!==void 0;let f=[];p||(f=Array.isArray(l)?l:[l]);const g=f.length>0,v=Gg(),[k,x]=b.useState(void 0),[C,P]=b.useState(!1),[A,D]=b.useState(!1),[E,R]=b.useState(!1),[z,W]=b.useState({x:0,y:0}),[F,T]=b.useState({x:0,y:0,scale:1}),[$,q]=b.useState(),[re,se]=b.useState(),[Se,pe]=b.useState(null),ue=b.useRef(null),ie=b.useRef({x:0,y:0}),ge=b.useRef({x:0,y:0,scale:1}),B=b.useRef(void 0),X=b.useRef(0),V=b.useRef(!1),M=b.useRef({x:0,y:0}),Z=b.useRef(!1),be=b.useRef({x:0,y:0}),he=b.useRef(null),de=b.useRef(null),ye=v.useState("toastIndex",a.id),Be=v.useState("toastVisibleIndex",a.id),Ke=v.useState("toastOffsetY",a.id),Ne=v.useState("focused"),At=v.useState("expanded");pj({open:a.transitionStatus!=="ending",ref:ue,onComplete(){a.transitionStatus==="ending"&&v.removeToast(a.id)}});const qt=Ji((Ge=!1)=>{const We=ue.current;if(!We)return;const dt=We.style.height;We.style.height="auto";const Nt=We.offsetHeight;We.style.height=dt;function kt(){v.updateToastInternal(a.id,{ref:ue,height:Nt,...a.transitionStatus==="starting"?{transitionStatus:void 0}:{}})}Ge?ss.flushSync(kt):kt()});la(qt,[qt]);function sn(Ge){be.current=Ge,W(Ge)}la(()=>()=>{de.current?.abort()},[]);function pt(Ge,We){let dt=Ge,Nt=We;return!f.includes("left")&&!f.includes("right")?dt=Ge>0?Ge**ti:-(Math.abs(Ge)**ti):(!f.includes("right")&&Ge>0&&(dt=Ge**ti),!f.includes("left")&&Ge<0&&(dt=-(Math.abs(Ge)**ti))),!f.includes("up")&&!f.includes("down")?Nt=We>0?We**ti:-(Math.abs(We)**ti):(!f.includes("down")&&We>0&&(Nt=We**ti),!f.includes("up")&&We<0&&(Nt=-(Math.abs(We)**ti))),{x:dt,y:Nt}}const Ut=Ji(Ge=>{if(Ge.pointerId!==he.current)return;he.current=null,de.current?.abort(),de.current=null,P(!1),D(!1),pe(null);const We=ge.current;if(Ge.type==="pointercancel"||V.current){sn({x:We.x,y:We.y}),x(void 0);return}let dt=!1;const Nt=be.current,kt=Nt.x-We.x,vt=Nt.y-We.y;let ft;for(const ma of f){switch(ma){case"right":kt>ll&&(dt=!0,ft="right");break;case"left":kt<-ll&&(dt=!0,ft="left");break;case"down":vt>ll&&(dt=!0,ft="down");break;case"up":vt<-ll&&(dt=!0,ft="up");break}if(dt)break}dt?(x(ft),R(!0),v.closeToast(a.id)):(sn({x:We.x,y:We.y}),x(void 0))});function lr(Ge){if(Ge.button!==0)return;Ge.pointerType==="touch"&&v.pauseTimers();const We=Hi(Ge.nativeEvent);if(We?We.closest(`button,a,input,textarea,[role="button"],${xj}`):!1)return;if(V.current=!1,B.current=void 0,X.current=0,he.current=Ge.pointerId,ie.current={x:Ge.clientX,y:Ge.clientY},M.current=ie.current,ue.current){const kt=bj(ue.current);ge.current=kt,T(kt),sn({x:kt.x,y:kt.y})}v.setHovering(!0),P(!0),D(!1),pe(null),Z.current=!0;const Nt=ue.current;if(Nt){de.current?.abort();const kt=new AbortController;de.current=kt;const vt=La(Nt);vt.addEventListener("pointerup",Ut,{signal:kt.signal}),vt.addEventListener("pointercancel",Ut,{signal:kt.signal}),Nt.setPointerCapture?.(Ge.pointerId)}}function Er(Ge){if(Ge.pointerId!==he.current)return;Ge.preventDefault(),Z.current&&(ie.current={x:Ge.clientX,y:Ge.clientY},Z.current=!1);const{clientY:We,clientX:dt,movementX:Nt,movementY:kt}=Ge;(kt<0&&We>M.current.y||kt>0&&We<M.current.y)&&(M.current={x:M.current.x,y:We}),(Nt<0&&dt>M.current.x||Nt>0&&dt<M.current.x)&&(M.current={x:dt,y:M.current.y});const vt=dt-ie.current.x,ft=We-ie.current.y,ma=We-M.current.y,vs=dt-M.current.x;if(!A&&Math.sqrt(vt*vt+ft*ft)>=wj&&(D(!0),Se===null)){const ga=f.includes("left")||f.includes("right"),gi=f.includes("up")||f.includes("down");if(ga&&gi){const Rr=Math.abs(vt),Bn=Math.abs(ft);pe(Rr>Bn?"horizontal":"vertical")}}let en;if(!B.current)Se==="vertical"?ft>0?en="down":ft<0&&(en="up"):Se==="horizontal"?vt>0?en="right":vt<0&&(en="left"):Math.abs(vt)>=Math.abs(ft)?en=vt>0?"right":"left":en=ft>0?"down":"up",en&&f.includes(en)&&(B.current=en,X.current=jk(en,vt,ft),x(en));else{const Oa=B.current,ga=jk(Oa,vs,ma);ga>ll?(V.current=!1,x(Oa)):!(f.includes("left")&&f.includes("right"))&&!(f.includes("up")&&f.includes("down"))&&X.current-ga>=kj&&(V.current=!0)}const cr=pt(vt,ft);let wn=ge.current.x,Na=ge.current.y;Se==="horizontal"?(f.includes("left")||f.includes("right"))&&(wn+=cr.x):(Se==="vertical"||(f.includes("left")||f.includes("right"))&&(wn+=cr.x),(f.includes("up")||f.includes("down"))&&(Na+=cr.y)),sn({x:wn,y:Na})}function Mt(Ge){if(Ge.key==="Escape"){if(!ue.current||!Tr(ue.current,Yo(La(ue.current))))return;v.closeToast(a.id)}}b.useEffect(()=>{if(!g)return;const Ge=ue.current;if(!Ge)return;function We(dt){he.current===null||!Tr(Ge,Hi(dt))||dt.preventDefault()}return Vi(Ge,"touchmove",We,{passive:!1})},[g]);function qe(){if(!C&&z.x===F.x&&z.y===F.y&&!E)return{[Mi.swipeMovementX]:"0px",[Mi.swipeMovementY]:"0px"};const Ge=z.x-F.x,We=z.y-F.y;return{transition:C?"none":void 0,transform:C?`translateX(${z.x}px) translateY(${z.y}px) scale(${F.scale})`:void 0,[Mi.swipeMovementX]:`${Ge}px`,[Mi.swipeMovementY]:`${We}px`}}const nt=a.priority==="high",Lt={role:nt?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":$,"aria-describedby":re,"aria-hidden":nt&&!Ne?!0:void 0,onPointerDown:g?lr:void 0,onPointerMove:g?Er:void 0,onPointerUp:g?Ut:void 0,onPointerCancel:g?Ut:void 0,onKeyDown:Mt,inert:sj(a.limited),style:{...qe(),[Mi.index]:a.transitionStatus==="ending"?ye:Be,[Mi.offsetY]:`${Ke}px`,[Mi.height]:a.height?`${a.height}px`:void 0}},St=b.useMemo(()=>({rootRef:ue,toast:a,titleId:$,setTitleId:q,descriptionId:re,setDescriptionId:se,swiping:C,swipeDirection:k,recalculateHeight:qt,index:ye,visibleIndex:Be,expanded:At}),[a,$,re,C,k,qt,ye,Be,At]),Ln={transitionStatus:a.transitionStatus,expanded:At,limited:a.limited||!1,type:a.type,swiping:St.swiping,swipeDirection:St.swipeDirection},ro=Ql("div",t,{ref:[n,St.rootRef],state:Ln,stateAttributesMapping:_j,props:[Lt,h]});return S.jsx(VP.Provider,{value:St,children:ro})});let Uk=0;function Sj(e,t="mui"){const[n,a]=b.useState(e),i=e||n;return b.useEffect(()=>{n==null&&(Uk+=1,a(`${t}-${Uk}`))},[n,t]),i}const zk=qg.useId;function $P(e,t){if(zk!==void 0){const n=zk();return e??(t?`${t}-${n}`:n)}return Sj(e,t)}const Cj=b.forwardRef(function(t,n){const{render:a,className:i,style:s,id:l,children:u,...h}=t,{toast:p,setTitleId:f}=HP(),g=u??p.title,v=!!g,k=$P(l);la(()=>{if(v)return f(k),()=>{f(void 0)}},[v,k,f]);const x={type:p.type},C=Ql("h2",t,{ref:n,state:x,props:{...h,id:k,children:g}});return v?C:null}),Tj=b.createContext(void 0);function Ej(e=!1){const t=b.useContext(Tj);if(t===void 0&&!e)throw new Error(ys(16));return t}function Rj(e){const{focusableWhenDisabled:t,disabled:n,composite:a=!1,tabIndex:i=0,isNativeButton:s}=e,l=a&&t!==!1,u=a&&t===!1;return{props:b.useMemo(()=>{const p={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return a||(p.tabIndex=i,!s&&n&&(p.tabIndex=t?i:-1)),(s&&(t||l)||!s&&n)&&(p["aria-disabled"]=n),s&&(!t||u)&&(p.disabled=n),p},[a,n,t,l,u,s,i])}}function Aj(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:a=0,native:i=!0,composite:s}=e,l=b.useRef(null),u=Ej(!0),h=s??u!==void 0,{props:p}=Rj({focusableWhenDisabled:n,disabled:t,composite:h,tabIndex:a,isNativeButton:i}),f=b.useCallback(()=>{const k=l.current;xf(k)&&h&&t&&p.disabled===void 0&&k.disabled&&(k.disabled=!1)},[t,p.disabled,h]);la(f,[f]);const g=b.useCallback((k={})=>{const{onClick:x,onMouseDown:C,onKeyUp:P,onKeyDown:A,onPointerDown:D,...E}=k;return t0({onClick(R){if(t){R.preventDefault();return}x?.(R)},onMouseDown(R){t||C?.(R)},onKeyDown(R){if(t||(Ed(R),A?.(R),R.baseUIHandlerPrevented))return;const z=R.target===R.currentTarget,W=R.currentTarget,F=xf(W),T=!i&&Lj(W),$=z&&(i?F:!T),q=R.key==="Enter",re=R.key===" ",se=W.getAttribute("role"),Se=se?.startsWith("menuitem")||se==="option"||se==="gridcell";if(z&&h&&re){if(R.defaultPrevented&&Se)return;R.preventDefault(),T||i&&F?(W.click(),R.preventBaseUIHandler()):$&&(x?.(R),R.preventBaseUIHandler());return}$&&(!i&&(re||q)&&R.preventDefault(),!i&&q&&x?.(R))},onKeyUp(R){if(!t){if(Ed(R),P?.(R),R.target===R.currentTarget&&i&&h&&xf(R.currentTarget)&&R.key===" "){R.preventDefault();return}R.baseUIHandlerPrevented||R.target===R.currentTarget&&!i&&!h&&R.key===" "&&x?.(R)}},onPointerDown(R){if(t){R.preventDefault();return}D?.(R)}},i?{type:"button"}:{role:"button"},p,E)},[t,p,h,i]),v=Ji(k=>{l.current=k,f()});return{getButtonProps:g,buttonRef:v}}function xf(e){return hi(e)&&e.tagName==="BUTTON"}function Lj(e){return!!(e?.tagName==="A"&&e?.href)}const Dj=b.forwardRef(function(t,n){const{render:a,className:i,style:s,disabled:l,nativeButton:u=!0,...h}=t,p=Gg(),{toast:f}=HP(),g=p.useState("expanded"),[v,k]=b.useState(!1),{getButtonProps:x,buttonRef:C}=Aj({disabled:l,native:u}),P={type:f.type};return Ql("button",t,{ref:[n,C],state:P,props:[{"aria-hidden":!g&&!v,onClick(){p.closeToast(f.id)},onFocus(){k(!0)},onBlur(){k(!1)}},h,x]})}),dF="none",hF="trigger-press",pF="trigger-hover",fF="outside-press",mF="item-press",gF="close-press",Ij="focus-out",yF="escape-key",vF="list-navigation",bF="cancel-open",_F="imperative-action",kF="window-resize";function Mj(e,t,n,a){let i=!1,s=!1;const l=Bi;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...l}}function Nj(e){return`data-base-ui-${e}`}const WP=b.createContext(null),Oj=()=>b.useContext(WP),jj=Nj("portal");function GP(e={}){const{ref:t,container:n,componentProps:a=Bi,elementProps:i}=e,s=$P(),u=Oj()?.portalNode,[h,p]=b.useState(null),[f,g]=b.useState(null),v=Ji(P=>{P!==null&&g(P)}),k=b.useRef(null);la(()=>{if(n===null){k.current&&(k.current=null,g(null),p(null));return}if(s==null)return;const P=(n&&(Yg(n)?n:n.current))??u??document.body;if(P==null){k.current&&(k.current=null,g(null),p(null));return}k.current!==P&&(k.current=P,g(null),p(P))},[n,u,s]);const x=Ql("div",a,{ref:[t,v],props:[{id:s,[jj]:""},i]});return{portalNode:f,portalSubtree:h&&x?ss.createPortal(x,h):null}}const wF=b.forwardRef(function(t,n){const{render:a,className:i,style:s,children:l,container:u,renderGuards:h,...p}=t,{portalNode:f,portalSubtree:g}=GP({container:u,ref:n,componentProps:t,elementProps:p}),v=b.useRef(null),k=b.useRef(null),x=b.useRef(null),C=b.useRef(null),[P,A]=b.useState(null),D=b.useRef(!1),E=P?.modal,R=P?.open,z=typeof h=="boolean"?h:!!P&&!P.modal&&P.open&&!!f;b.useEffect(()=>{if(!f||E)return;function F(T){f&&T.relatedTarget&&kf(T)&&(T.type==="focusin"?D.current&&(Mk(f),D.current=!1):(BO(f),D.current=!0))}return bP(Vi(f,"focusin",F,!0),Vi(f,"focusout",F,!0))},[f,E]),la(()=>{!f||R!==!0||!D.current||(Mk(f),D.current=!1)},[R,f]);const W=b.useMemo(()=>({beforeOutsideRef:v,afterOutsideRef:k,beforeInsideRef:x,afterInsideRef:C,portalNode:f,setFocusManagerState:A}),[f]);return S.jsxs(b.Fragment,{children:[g,S.jsxs(WP.Provider,{value:W,children:[z&&f&&S.jsx(Sl,{"data-type":"outside",ref:v,onFocus:F=>{if(kf(F,f))x.current?.focus();else{const T=P?P.domReference:null;FO(T)?.focus()}}}),z&&f&&S.jsx("span",{"aria-owns":f.id,style:vj}),f&&ss.createPortal(l,f),z&&f&&S.jsx(Sl,{"data-type":"outside",ref:k,onFocus:F=>{if(kf(F,f))C.current?.focus();else{const T=P?P.domReference:null;zO(T)?.focus(),P?.closeOnFocusOut&&P?.onOpenChange(!1,Mj(Ij,F.nativeEvent))}}})]})]})}),Uj=b.forwardRef(function(t,n){const{children:a,container:i,className:s,render:l,style:u,...h}=t,{portalNode:p,portalSubtree:f}=GP({container:i,ref:n,componentProps:t,elementProps:h});return!f&&!p?null:S.jsxs(b.Fragment,{children:[f,p&&ss.createPortal(a,p)]})}),zj=Uj;function Fj(){const e=b.useContext(Wg);if(!e)throw new Error(ys(73));const t=e.useState("toasts");return b.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function Bj(){const e=new Set;function t(n){e.forEach(a=>a(n))}return{" subscribe":function(a){return e.add(a),()=>{e.delete(a)}},add(n){const a=n.id||_P("toast"),i={...n,id:a,transitionStatus:"starting"};return t({action:"add",options:i}),a},close(n){t({action:"close",options:{id:n}})},update(n,a){t({action:"update",options:{...a,id:n}})},promise(n,a){let i=n;return t({action:"promise",options:{...a,promise:n,setPromise(s){i=s}}}),i}}}const r0=Bj();function xF(e){return r0.add(e)}function Vj({children:e}){return S.jsxs(HO,{toastManager:r0,children:[e,S.jsx(zj,{children:S.jsx(oj,{className:"fixed inset-x-0 top-6 z-[100] mx-auto flex w-full max-w-sm flex-col items-center gap-2 px-4 outline-none",children:S.jsx(Hj,{})})})]})}function Hj(){const{toasts:e}=Fj();return e.map(t=>{const n=t.data?.onUndo;return S.jsxs(Pj,{toast:t,className:Pt("pointer-events-auto flex w-full items-center gap-3 rounded-xl border border-oai-gray-200 bg-oai-white px-4 py-3 shadow-xl transition-all duration-200 ease-out","data-[starting-style]:-translate-y-3 data-[starting-style]:opacity-0","data-[ending-style]:-translate-y-3 data-[ending-style]:opacity-0","dark:border-oai-gray-800 dark:bg-oai-gray-900"),children:[S.jsx(Cj,{className:"min-w-0 flex-1 text-sm font-medium text-oai-black dark:text-white"}),n?S.jsx("button",{type:"button",onClick:()=>{n(),r0.close(t.id)},className:"shrink-0 rounded-md px-2 py-1 text-xs font-semibold text-oai-gray-600 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:text-oai-gray-300 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:fe("shared.action.undo")}):null,S.jsx(Dj,{"aria-label":fe("shared.action.dismiss"),className:"-mr-1 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-oai-gray-400 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:S.jsx(ug,{className:"h-3.5 w-3.5","aria-hidden":!0})})]},t.id)})}const i0=Object.freeze(["limits","leaderboard"]),$j=Object.freeze({limits:"/limits",leaderboard:"/leaderboard"}),Wj=Object.freeze({limits:()=>_n(()=>import("./LimitsPage-DXyn6hkD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),leaderboard:()=>_n(()=>import("./LeaderboardPage-BhZsDjl0.js"),__vite__mapDeps([8,9,10,11,12,13]))}),KP="total",qP=0,Fk=20,Gj=Object.freeze([10,20,50,100]),Kj="tokentracker:leaderboard:pageSize",qj=20,Yj=Object.freeze(["dashboard-existing","silent-preload","page-load","manual-refresh"]);let Bk=0,da;class Zj{constructor(t={}){this.limits=null,this.leaderboard=new Map,this.leaderboardMaxEntries=Qj(t.leaderboardMaxEntries)}read(t,n){return ec(t),t==="limits"?!this.limits||this.limits.contextKey!==n?null:Gu(this.limits):n?Gu(this.leaderboard.get(n)):null}write(t,n={}){if(t.targetKey==="limits"){this.limits=t;return}this.leaderboard.has(t.contextKey)&&this.leaderboard.delete(t.contextKey),this.leaderboard.set(t.contextKey,t),this.evictLeaderboardEntries(n.activeContextKey||t.contextKey)}evictLeaderboardEntries(t=null){for(;this.leaderboard.size>this.leaderboardMaxEntries;){const n=Array.from(this.leaderboard.keys()).find(a=>a!==t)||this.leaderboard.keys().next().value;this.leaderboard.delete(n)}}snapshot(){return{limits:Gu(this.limits),leaderboard:{maxEntries:this.leaderboardMaxEntries,size:this.leaderboard.size,keys:Array.from(this.leaderboard.keys())}}}}class Xj{constructor(t={}){Bk+=1,this.sessionId=`dashboard-preload-${Bk}`,this.createdAt=Date.now(),this.completedAt=null,this.startedAfterMainContentVisible=!1,this.cache=new Zj(t),this.targets={limits:Vk("limits"),leaderboard:Vk("leaderboard")}}}function Vk(e){return{key:e,route:$j[e],resourceStatus:"idle",stateStatus:"idle",error:null,resourcePromise:null,resourceModule:null,resourceRequestId:0,statePromise:null,stateRequestId:0,pendingStateContextKey:null}}function Jj(e={}){return new Xj(e)}function Qj(e){const t=Number(e);return!Number.isInteger(t)||t<1?qj:t}da=Jj();function ec(e){if(!i0.includes(e))throw new Error(`Unknown dashboard preload target: ${e}`)}function YP(e){return e?typeof e=="string"?e:e.message||String(e):null}function eU(e,t){return Yj.includes(e)?e:t}function tU(e){const t=Number(e);return Number.isFinite(t)?t:Date.now()}function Gu(e){return e?{...e}:null}function Hk(){const e=i0.every(t=>{const n=da.targets[t];return n.resourceStatus==="fulfilled"||n.resourceStatus==="rejected"});da.completedAt=e?Date.now():null}function nU(){da.startedAfterMainContentVisible=!0}function o0(e,t={}){ec(e);const n=Object.entries(t).filter(([,a])=>a!==void 0).sort(([a],[i])=>a.localeCompare(i)).map(([a,i])=>`${a}=${i===null?"null":String(i)}`);return`${e}:${n.join("|")}`}function aU(e,t={}){ec(e);const n=da.targets[e];if(n.resourceStatus==="fulfilled")return Promise.resolve(n.resourceModule);if(n.resourceStatus==="pending"&&n.resourcePromise)return n.resourcePromise;const a=t.loader||Wj[e],i=n.resourceRequestId+1;n.resourceRequestId=i,n.resourceStatus="pending",n.error=null;const s=Promise.resolve().then(()=>a()).then(l=>n.resourceRequestId!==i||n.resourcePromise!==s?null:(n.resourceStatus="fulfilled",n.resourceModule=l,n.error=null,Hk(),l)).catch(l=>(n.resourceRequestId!==i||n.resourcePromise!==s||(n.resourceStatus="rejected",n.error=YP(l),Hk()),null));return n.resourcePromise=s,s}function rU(e={}){const t=e.loaders||{};return Promise.all(i0.map(n=>aU(n,{loader:t[n]})))}function ZP(e,t){ec(e);const n=da.targets[e],a=t?.status||"fulfilled",i={targetKey:e,status:a,data:t?.data??null,error:YP(t?.error),source:eU(t?.source,"silent-preload"),generatedAt:tU(t?.generatedAt),updatedAt:Date.now(),contextKey:t?.contextKey||o0(e,t?.context||{})};return n.stateStatus=a,a==="rejected"||a==="skipped"?n.error=i.error:a==="fulfilled"&&(n.error=null,da.cache.write(i,{activeContextKey:t?.activeContextKey})),Gu(i)}function XP(e,t){return ec(e),da.cache.read(e,t)}function PF(e,t={}){return ZP("limits",{data:e,source:t.source||"dashboard-existing",contextKey:t.contextKey||JP(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function JP(e={}){return o0("limits",{state:"current",...e})}function SF(e=JP()){return XP("limits",e)}function Pm(e,t={}){return ZP("leaderboard",{activeContextKey:t.activeContextKey,data:e,source:t.source||"silent-preload",contextKey:t.contextKey||s0(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function iU(e){return XP("leaderboard",e)}function QP(){if(typeof window>"u")return Fk;try{const e=window.localStorage.getItem(Kj),t=Number(e);if(Gj.includes(t))return t}catch{}return Fk}function e3(e={}){const t=e.userId;return t!==void 0?t||null:e.cloudUser?.id||null}function t3(e={}){return typeof e.accessMode=="string"&&e.accessMode.trim()?e.accessMode.trim():e.mockEnabled?"mock":e.baseUrl?"cloud":"unavailable"}function s0(e={}){const t=!!e.mockEnabled,n=e.baseUrl??"";return o0("leaderboard",{accessMode:t3({...e,baseUrl:n,mockEnabled:t}),baseUrl:n,mockEnabled:t,offset:e.offset??qP,pageSize:e.pageSize??QP(),period:e.period||KP,userId:e3(e)})}function Pu(e,t){const n=da.targets.leaderboard;return n.stateRequestId+=1,n.statePromise=null,n.pendingStateContextKey=null,Pm(null,{contextKey:t,status:"skipped",error:e})}function oU(e={}){const t=da,n=!!e.mockEnabled,a=e.baseUrl??"",i=t3({...e,baseUrl:a,mockEnabled:n}),s=e.period||KP,l=e.pageSize??QP(),u=e.offset??qP,h=e3(e),p=s0({accessMode:i,baseUrl:a,mockEnabled:n,offset:u,pageSize:l,period:s,userId:h});if(!n&&e.authLoading)return Promise.resolve(Pu("auth-loading",p));if(!n&&!e.signedIn&&i!=="public")return Promise.resolve(Pu("not-signed-in",p));if(!n&&!a)return Promise.resolve(Pu("missing-base-url",p));if(!n&&i==="unavailable")return Promise.resolve(Pu("access-unavailable",p));const f=t.targets.leaderboard,g=iU(p);if(g)return Promise.resolve(g);if(f.stateStatus==="pending"&&f.statePromise&&f.pendingStateContextKey===p)return f.statePromise;const v=f.stateRequestId+1;f.stateRequestId=v,f.stateStatus="pending",f.pendingStateContextKey=p,f.error=null;const k=Promise.resolve().then(()=>B8({userId:h,period:s,limit:l,offset:u})).then(x=>da!==t||f.stateRequestId!==v||f.statePromise!==k?null:(f.pendingStateContextKey=null,Pm(x,{contextKey:p}))).catch(x=>(da!==t||f.stateRequestId!==v||f.statePromise!==k||(f.pendingStateContextKey=null,Pm(null,{contextKey:p,status:"rejected",error:x})),null));return f.statePromise=k,k}const sU=typeof window<"u"?window.location.search:"",$k=new URLSearchParams(sU),Su=$k.get("insforge_code")||$k.get("code")||null,lU=typeof window<"u"&&!!window.webkit?.messageHandlers?.nativeOAuth;function cU(){ql();const{loading:e,signedIn:t}=to(),n=os(),[a,i]=b.useState("processing"),[s,l]=b.useState(null),u=b.useRef(!1);b.useEffect(()=>{if(!(!Su||u.current)){if(u.current=!0,lU){l(!1);return}(async()=>{try{const f=await(await fetch("/api/auth-bridge/verifier")).json();l(!!f?.native)}catch{l(!1)}})()}},[]),b.useEffect(()=>{if(s!==!0||!Su)return;i("redirecting");const p=setTimeout(()=>{window.location.href=`tokentracker://auth/callback?insforge_code=${encodeURIComponent(Su)}`},200);return()=>clearTimeout(p)},[s]),b.useEffect(()=>{if(s!==!1||e)return;if(t){n("/dashboard",{replace:!0});return}const p=setTimeout(()=>{t||i("failed")},12e3);return()=>clearTimeout(p)},[s,e,t,n]),b.useEffect(()=>{if(!Su&&s===null){const p=setTimeout(()=>i("failed"),3e3);return()=>clearTimeout(p)}},[s]);const h=()=>{n("/dashboard",{replace:!0})};return a==="processing"&&s!==!0&&(s===null||s===!1&&e)?S.jsx("div",{className:"min-h-screen bg-oai-gray-950"}):S.jsx("div",{className:"min-h-screen bg-oai-gray-950 text-white font-oai antialiased dark flex items-center justify-center",children:S.jsxs("div",{className:"text-center space-y-4 max-w-sm px-4",children:[a==="processing"&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"w-8 h-8 border-2 border-oai-gray-600 border-t-white rounded-full animate-spin mx-auto"}),S.jsx("p",{className:"text-oai-gray-400 text-sm",children:fe("auth.callback.processing")})]}),a==="redirecting"&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"w-12 h-12 mx-auto rounded-full bg-green-500/15 flex items-center justify-center",children:S.jsx("svg",{className:"w-6 h-6 text-green-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:S.jsx("path",{d:"M20 6 9 17l-5-5"})})}),S.jsx("p",{className:"text-white text-sm font-medium",children:fe("auth.callback.success")}),S.jsx("p",{className:"text-oai-gray-500 text-xs",children:fe("auth.callback.redirecting")})]}),a==="failed"&&S.jsxs("div",{className:"space-y-3",children:[S.jsx("p",{className:"text-oai-gray-300 text-sm",children:fe("auth.callback.failed")}),S.jsx("button",{type:"button",onClick:h,className:"px-4 py-2 rounded-lg bg-oai-gray-800 text-sm text-white hover:bg-oai-gray-700 transition-colors",children:fe("auth.callback.close")})]})]})})}const uU=b.lazy(()=>_n(()=>import("./DashboardPage-Ct6CoW1Y.js"),__vite__mapDeps([14,1,12,15,16,17,11,3,9,10,18,19,4])).then(e=>({default:e.DashboardPage}))),dU=b.lazy(()=>_n(()=>import("./IpCheckPage--FQjGxXm.js"),[])),hU=b.lazy(()=>_n(()=>import("./LandingPage-B-t8RDCn.js"),__vite__mapDeps([20,21,18])).then(e=>({default:e.LandingPage}))),pU=b.lazy(()=>_n(()=>import("./LeaderboardPage-BhZsDjl0.js"),__vite__mapDeps([8,9,10,11,12,13])).then(e=>({default:e.LeaderboardPage}))),fU=b.lazy(()=>_n(()=>import("./LeaderboardProfilePage-CkWHkweP.js"),__vite__mapDeps([22,12,21,23,13,15,16,6,11,17,7])).then(e=>({default:e.LeaderboardProfilePage}))),mU=b.lazy(()=>_n(()=>import("./LimitsPage-DXyn6hkD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>({default:e.LimitsPage}))),gU=b.lazy(()=>_n(()=>import("./LoginPage-DktOVgCy.js"),[]).then(e=>({default:e.LoginPage}))),yU=b.lazy(()=>_n(()=>import("./ResetPasswordPage-Cb7h0l-Q.js"),[]).then(e=>({default:e.ResetPasswordPage}))),vU=b.lazy(()=>_n(()=>import("./DevicePage-B_zSy31A.js"),[])),bU=b.lazy(()=>_n(()=>import("./WrappedPage-C1enRwTG.js"),[])),_U=b.lazy(()=>_n(()=>import("./SettingsPage-CAP7uK2t.js"),__vite__mapDeps([24,2,25,3,11,12,9,10,16,7])).then(e=>({default:e.SettingsPage}))),kU=b.lazy(()=>_n(()=>import("./SkillsPage-CTgBETDM.js"),__vite__mapDeps([26,5,6,7,3,17,11,16,12,19,10])).then(e=>({default:e.SkillsPage}))),wU=b.lazy(()=>_n(()=>import("./WidgetsPage-1lAVZO-r.js"),__vite__mapDeps([27,9,10,11,25,3,4,6,7])).then(e=>({default:e.WidgetsPage})));function xU(){const{resolvedLocale:e}=ql(),t=zn(),n=to();tN();const a=b.useRef(!1),i=b.useRef(!1),s=b.useRef(new Set),l=An(),u=b.useMemo(()=>typeof window>"u"?!1:GM(window.location.search),[]),h=t?.pathname||"/",p=new URL(window.location.href),f=p.pathname.replace(/\/+$/,"")||"/",v=f.match(/^\/share\/([^/?#]+)$/i)?.[1]||null,k=p.searchParams.get("token")||null,x=v||k,C=f==="/share"||f==="/share.html"||f.startsWith("/share/"),P=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"),A=h.replace(/\/+$/,"")||"/",D=A==="/"||A==="/dashboard",E=A==="/leaderboard",R=A.match(/^\/u\/([^/]+)$/i),z=R?R[1]:null,W=!!(n.enabled&&n.signedIn),F=P||W,T=!1,$=$M(),q=!F&&!l&&!P,re=l?"mock":n.loading?"unavailable":W?"cloud":F?"local":"unavailable",se=b.useCallback(()=>{if(!a.current||!l&&n.loading||!l&&!F)return;const de={accessMode:re,baseUrl:WM(),mockEnabled:l,signedIn:F,authLoading:!!n.loading,userId:W&&n.user?.id||null},ye=s0(de);s.current.has(ye)||(s.current.add(ye),oU(de))},[W,n.loading,n.user?.id,re,l,F]),Se=b.useCallback(()=>{D&&(a.current||(a.current=!0,nU()),i.current||(i.current=!0,rU()),se())},[D,se]);b.useEffect(()=>{se()},[se]);const pe=b.useMemo(()=>!n.enabled||!W?null:{getAccessToken:()=>n.getAccessToken(),name:n.displayName||"",userId:n.user?.id||null},[W,n]);let ue=P||l||u?"dashboard":"landing";A==="/landing"&&(ue="landing"),A==="/dashboard"&&(ue="dashboard"),E&&(ue="dashboard"),z&&(ue="dashboard");const ie=A==="/limits",ge=A==="/settings",B=A==="/skills",X=A==="/widgets",V=A==="/ip-check";(ie||ge||B||X||V)&&(ue="dashboard");let M=uU;z?M=fU:A==="/leaderboard"?M=pU:ie?M=mU:ge?M=_U:B?M=kU:X?M=wU:V&&(M=dU);const Z=!C&&!q&&(A==="/dashboard"||A==="/"||E||ie||ge||B||X||V);if(!P&&!W&&!C&&!n.loading&&ue==="dashboard"&&!E&&!z&&A!=="/login"&&A!=="/reset-password"&&A!=="/landing"&&A!=="/auth/callback"&&A!=="/auth/native-callback")return S.jsx(A4,{to:"/login",replace:!0});let he=null;if(A==="/auth/callback"||A==="/auth/native-callback")he=S.jsx(cU,{});else if(A==="/login")he=S.jsx(gU,{});else if(A==="/reset-password")he=S.jsx(yU,{});else if(A==="/device")he=S.jsx(vU,{});else if(A==="/wrapped")he=S.jsx(bU,{});else if(ue==="landing")he=S.jsx(hU,{signInUrl:"/login",signUpUrl:"/login"});else{const de=S.jsx(M,{baseUrl:$,auth:pe,signedIn:F,sessionSoftExpired:T,signOut:()=>n.enabled?n.signOut():Promise.resolve(),publicMode:C,publicToken:x,userId:z,signInUrl:"/login",signUpUrl:"/login",onMainContentVisible:Se},e);Z?he=S.jsx(vN,{children:de}):he=de}return S.jsx(FR,{children:S.jsx(HR,{children:S.jsx(Vj,{children:S.jsxs($R,{children:[S.jsx(b.Suspense,{fallback:null,children:he}),Z?S.jsx(WN,{}):null,S.jsx(VM,{}),S.jsx(V7,{}),S.jsx(Q7,{})]})})})})}const PU=n5([{path:"*",element:S.jsx(xU,{})}]);$S.createRoot(document.getElementById("root")).render(S.jsx(Zo.StrictMode,{children:S.jsx(x7,{children:S.jsx(A7,{children:S.jsx(G8,{children:S.jsx(K8,{children:S.jsx(f5,{router:PU})})})})})}));export{_n as $,Rt as A,cz as B,KU as C,fz as D,nz as E,Nw as F,fe as G,Nu as H,WU as I,$U as J,Al as K,Md as L,zR as M,_z as N,az as O,NU as P,MU as Q,Zo as R,Nx as S,nN as T,VN as U,Pt as V,l2 as W,ug as X,to as Y,og as Z,BM as _,Ql as a,bl as a$,BU as a0,B8 as a1,ql as a2,GM as a3,ii as a4,bz as a5,ez as a6,GU as a7,s8 as a8,OU as a9,xz as aA,DU as aB,ZU as aC,Fd as aD,jR as aE,aN as aF,SF as aG,DR as aH,sz as aI,SU as aJ,WE as aK,dg as aL,id as aM,$b as aN,YU as aO,i2 as aP,r2 as aQ,xR as aR,VU as aS,ns as aT,cd as aU,Kw as aV,qw as aW,Yw as aX,Zw as aY,ER as aZ,Aa as a_,jU as aa,PF as ab,tz as ac,HU as ad,FU as ae,xk as af,wz as ag,zA as ah,_t as ai,dn as aj,vd as ak,hg as al,rs as am,Ug as an,pg as ao,di as ap,h_ as aq,ss as ar,zn as as,os as at,WM as au,od as av,s0 as aw,iU as ax,Pm as ay,YE as az,Mj as b,hi as b$,vz as b0,gz as b1,mP as b2,la as b3,ys as b4,gs as b5,uO as b6,Nk as b7,t0 as b8,Bi as b9,Ji as bA,Zg as bB,La as bC,bP as bD,Vi as bE,Hi as bF,Zz as bG,Kz as bH,Tr as bI,pF as bJ,dO as bK,hF as bL,yF as bM,oF as bN,Ij as bO,Ca as bP,_F as bQ,kf as bR,aF as bS,zO as bT,rF as bU,lF as bV,Sl as bW,wF as bX,uF as bY,hj as bZ,sj as b_,Cr as ba,iF as bb,MP as bc,dF as bd,pj as be,uj as bf,HN as bg,Cz as bh,Pz as bi,Nz as bj,Oz as bk,jz as bl,AR as bm,Sz as bn,Tz as bo,xF as bp,Ez as bq,Dz as br,Rz as bs,Az as bt,Lz as bu,Mz as bv,Iz as bw,$g as bx,Ol as by,kO as bz,on as c,nr as c$,R7 as c0,ag as c1,yz as c2,mz as c3,_O as c4,AO as c5,hO as c6,Ak as c7,qd as c8,pO as c9,sF as cA,kP as cB,oO as cC,fF as cD,RO as cE,bF as cF,cF as cG,Jg as cH,kF as cI,mF as cJ,Vz as cK,Cd as cL,Oj as cM,Qg as cN,Nj as cO,dj as cP,FO as cQ,nF as cR,UO as cS,qz as cT,Yz as cU,Xg as cV,Ik as cW,a0 as cX,JU as cY,QU as cZ,XU as c_,_m as ca,yP as cb,zz as cc,gO as cd,Fz as ce,Ia as cf,gP as cg,Bz as ch,vO as ci,yO as cj,$P as ck,Jz as cl,Xz as cm,Qz as cn,eF as co,tF as cp,Yo as cq,vF as cr,xP as cs,Hz as ct,$z as cu,Wz as cv,Gz as cw,LO as cx,PP as cy,Uz as cz,gF as d,V9 as e,IU as f,Ow as g,t8 as h,An as i,S as j,pz as k,lz as l,Pl as m,g8 as n,y8 as o,uz as p,rz as q,b as r,zU as s,qU as t,Aj as u,dz as v,iz as w,hz as x,oz as y,UU as z};
1045
+ `),()=>{u.current?.removeAttribute("data-motion-pop-id"),F.contains(W)&&F.removeChild(W)}},[t]),S.jsx(AI,{isPresent:t,childRef:u,sizeRef:h,pop:s,children:s===!1?e:b.cloneElement(e,{ref:g})})}const DI=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:i,presenceAffectsLayout:s,mode:l,anchorX:u,anchorY:h,root:p})=>{const f=hg(II),g=b.useId(),v=b.useRef(n),k=b.useRef(a);pg(()=>{v.current=n,k.current=a});let x=!0,C=b.useMemo(()=>(x=!1,{id:g,initial:t,isPresent:n,custom:i,onExitComplete:P=>{f.set(P,!0);for(const A of f.values())if(!A)return;a&&a()},register:P=>(f.set(P,!1),()=>{f.delete(P),!v.current&&!f.size&&k.current?.()})}),[n,f,a]);return s&&x&&(C={...C}),b.useMemo(()=>{f.forEach((P,A)=>f.set(A,!1))},[n]),b.useEffect(()=>{!n&&!f.size&&a&&a()},[n]),e=S.jsx(LI,{pop:l==="popLayout",isPresent:n,anchorX:u,anchorY:h,root:p,children:e}),S.jsx(Vd.Provider,{value:C,children:e})};function II(){return new Map}function Mx(e=!0){const t=b.useContext(Vd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:i}=t,s=b.useId();b.useEffect(()=>{if(e)return i(s)},[e]);const l=b.useCallback(()=>e&&a&&a(s),[s,a,e]);return!n&&a?[!1,l]:[!0]}const fu=e=>e.key||"";function tk(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Nx=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:i=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",anchorY:h="top",root:p})=>{const[f,g]=Mx(l),v=b.useMemo(()=>tk(e),[e]),k=l&&!f?[]:v.map(fu),x=b.useRef(!0),C=b.useRef(v),P=hg(()=>new Map),A=b.useRef(new Set),[D,E]=b.useState(v),[R,z]=b.useState(v);pg(()=>{x.current=!1,C.current=v;for(let T=0;T<R.length;T++){const $=fu(R[T]);k.includes($)?(P.delete($),A.current.delete($)):P.get($)!==!0&&P.set($,!1)}},[R,k.length,k.join("-")]);const W=[];if(v!==D){let T=[...v];for(let $=0;$<R.length;$++){const q=R[$],re=fu(q);k.includes(re)||(T.splice($,0,q),W.push(q))}return s==="wait"&&W.length&&(T=W),z(tk(T)),E(v),null}const{forceRender:F}=b.useContext(dg);return S.jsx(S.Fragment,{children:R.map(T=>{const $=fu(T),q=l&&!f?!1:v===R||k.includes($),re=()=>{if(A.current.has($))return;if(P.has($))A.current.add($),P.set($,!0);else return;let se=!0;P.forEach(Se=>{Se||(se=!1)}),se&&(F?.(),z(C.current),l&&g?.(),a&&a())};return S.jsx(DI,{isPresent:q,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:p,onExitComplete:q?void 0:re,anchorX:u,anchorY:h,children:T},$)})})},Ox=b.createContext({strict:!1}),nk={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"]};let ak=!1;function MI(){if(ak)return;const e={};for(const t in nk)e[t]={isEnabled:n=>nk[t].some(a=>!!n[a])};ux(e),ak=!0}function jx(){return MI(),vD()}function NI(e){const t=jx();for(const n in e)t[n]={...t[n],...e[n]};ux(t)}const OI=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","propagate","ignoreStrict","viewport"]);function Pd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||OI.has(e)}let Ux=e=>!Pd(e);function jI(e){typeof e=="function"&&(Ux=t=>t.startsWith("on")?!Pd(t):e(t))}try{jI(require("@emotion/is-prop-valid").default)}catch{}function UI(e,t,n){const a={};for(const i in e)i==="values"&&typeof e.values=="object"||dn(e[i])||(Ux(i)||n===!0&&Pd(i)||!t&&!Pd(i)||e.draggable&&i.startsWith("onDrag"))&&(a[i]=e[i]);return a}const Gd=b.createContext({});function zI(e,t){if(Wd(e)){const{initial:n,animate:a}=e;return{initial:n===!1||Ml(n)?n:void 0,animate:Ml(a)?a:void 0}}return e.inherit!==!1?t:{}}function FI(e){const{initial:t,animate:n}=zI(e,b.useContext(Gd));return b.useMemo(()=>({initial:t,animate:n}),[rk(t),rk(n)])}function rk(e){return Array.isArray(e)?e.join(" "):e}const zg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zx(e,t,n){for(const a in t)!dn(t[a])&&!yx(a,n)&&(e[a]=t[a])}function BI({transformTemplate:e},t){return b.useMemo(()=>{const n=zg();return Og(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VI(e,t){const n=e.style||{},a={};return zx(a,n,e),Object.assign(a,BI(e,t)),a}function HI(e,t){const n={},a=VI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.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=a,n}const Fx=()=>({...zg(),attrs:{}});function $I(e,t,n,a){const i=b.useMemo(()=>{const s=Fx();return vx(s,t,_x(a),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};zx(s,e.style,e),i.style={...s,...i.style}}return i}const WI=["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 Fg(e){return typeof e!="string"||e.includes("-")?!1:!!(WI.indexOf(e)>-1||/[A-Z]/u.test(e))}function GI(e,t,n,{latestValues:a},i,s=!1,l){const h=(l??Fg(e)?$I:HI)(t,a,i,e),p=UI(t,typeof e=="string",s),f=e!==b.Fragment?{...p,...h,ref:n}:{},{children:g}=t,v=b.useMemo(()=>dn(g)?g.get():g,[g]);return b.createElement(e,{...f,children:v})}function KI({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,i){return{latestValues:qI(n,a,i,e),renderState:t()}}function qI(e,t,n,a){const i={},s=a(e,{});for(const v in s)i[v]=$u(s[v]);let{initial:l,animate:u}=e;const h=Wd(e),p=lx(e);t&&p&&!h&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||l===!1;const g=f?u:l;if(g&&typeof g!="boolean"&&!$d(g)){const v=Array.isArray(g)?g:[g];for(let k=0;k<v.length;k++){const x=Eg(e,v[k]);if(x){const{transitionEnd:C,transition:P,...A}=x;for(const D in A){let E=A[D];if(Array.isArray(E)){const R=f?E.length-1:0;E=E[R]}E!==null&&(i[D]=E)}for(const D in C)i[D]=C[D]}}}return i}const Bx=e=>(t,n)=>{const a=b.useContext(Gd),i=b.useContext(Vd),s=()=>KI(e,t,a,i);return n?s():hg(s)},YI=Bx({scrapeMotionValuesFromProps:jg,createRenderState:zg}),ZI=Bx({scrapeMotionValuesFromProps:kx,createRenderState:Fx}),XI=Symbol.for("motionComponentSymbol");function JI(e,t,n){const a=b.useRef(n);b.useInsertionEffect(()=>{a.current=n});const i=b.useRef(null);return b.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const l=a.current;if(typeof l=="function")if(s){const u=l(s);typeof u=="function"&&(i.current=u)}else i.current?(i.current(),i.current=null):l(s);else l&&(l.current=s)},[t])}const Vx=b.createContext({});function Bo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QI(e,t,n,a,i,s){const{visualElement:l}=b.useContext(Gd),u=b.useContext(Ox),h=b.useContext(Vd),p=b.useContext(Ug),f=p.reducedMotion,g=p.skipAnimations,v=b.useRef(null),k=b.useRef(!1);a=a||u.renderer,!v.current&&a&&(v.current=a(e,{visualState:t,parent:l,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:f,skipAnimations:g,isSVG:s}),k.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const x=v.current,C=b.useContext(Vx);x&&!x.projection&&i&&(x.type==="html"||x.type==="svg")&&e9(v.current,n,i,C);const P=b.useRef(!1);b.useInsertionEffect(()=>{x&&P.current&&x.update(n,h)});const A=n[Z2],D=b.useRef(!!A&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return pg(()=>{k.current=!0,x&&(P.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),D.current&&x.animationState&&x.animationState.animateChanges())}),b.useEffect(()=>{x&&(!D.current&&x.animationState&&x.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),D.current=!1),x.enteringChildren=void 0)}),x}function e9(e,t,n,a){const{layoutId:i,layout:s,drag:l,dragConstraints:u,layoutScroll:h,layoutRoot:p,layoutAnchor:f,layoutCrossfade:g}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Hx(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!l||u&&Bo(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:a,crossfade:g,layoutScroll:h,layoutRoot:p,layoutAnchor:f})}function Hx(e){if(e)return e.options.allowProjection!==!1?e.projection:Hx(e.parent)}function sf(e,{forwardMotionProps:t=!1,type:n}={},a,i){a&&NI(a);const s=n?n==="svg":Fg(e),l=s?ZI:YI;function u(p,f){let g;const v={...b.useContext(Ug),...p,layoutId:t9(p)},{isStatic:k}=v,x=FI(p),C=l(p,k);if(!k&&typeof window<"u"){n9();const P=a9(v);g=P.MeasureLayout,x.visualElement=QI(e,C,v,i,P.ProjectionNode,s)}return S.jsxs(Gd.Provider,{value:x,children:[g&&x.visualElement?S.jsx(g,{visualElement:x.visualElement,...v}):null,GI(e,p,JI(C,x.visualElement,f),C,k,t,s)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=b.forwardRef(u);return h[XI]=e,h}function t9({layoutId:e}){const t=b.useContext(dg).id;return t&&e!==void 0?t+"-"+e:e}function n9(e,t){b.useContext(Ox).strict}function a9(e){const t=jx(),{drag:n,layout:a}=t;if(!n&&!a)return{};const i={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function r9(e,t){if(typeof Proxy>"u")return sf;const n=new Map,a=(s,l)=>sf(s,l,e,t),i=(s,l)=>a(s,l);return new Proxy(i,{get:(s,l)=>l==="create"?a:(n.has(l)||n.set(l,sf(l,void 0,e,t)),n.get(l))})}const i9=(e,t)=>t.isSVG??Fg(e)?new ND(t):new RD(t,{allowProjection:e!==b.Fragment});class o9 extends pi{constructor(t){super(t),t.animationState||(t.animationState=FD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$d(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(){this.node.animationState.reset(),this.unmountControls?.()}}let s9=0;class l9 extends pi{constructor(){super(...arguments),this.id=s9++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:s,custom:l}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){const u=Wi(this.node,s,l);if(u){const{transition:h,transitionEnd:p,...f}=u;for(const g in f)this.node.getValue(g)?.jump(f[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const c9={animation:{Feature:o9},exit:{Feature:l9}};function Jl(e){return{point:{x:e.pageX,y:e.pageY}}}const u9=e=>t=>Lg(t)&&e(t,Jl(t));function xl(e,t,n,a){return Nl(e,t,u9(n),a)}const $x=({current:e})=>e?e.ownerDocument.defaultView:null,ik=(e,t)=>Math.abs(e-t);function d9(e,t){const n=ik(e.x,t.x),a=ik(e.y,t.y);return Math.sqrt(n**2+a**2)}const ok=new Set(["auto","scroll"]);class Wx{constructor(t,n,{transformPagePoint:a,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=mu(this.lastRawMoveEventInfo,this.transformPagePoint));const x=lf(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,P=d9(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!C&&!P)return;const{point:A}=x,{timestamp:D}=un;this.history.push({...A,timestamp:D});const{onStart:E,onMove:R}=this.handlers;C||(E&&E(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,x)},this.handlePointerMove=(x,C)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=C,this.lastMoveEventInfo=mu(C,this.transformPagePoint),_t.update(this.updatePoint,!0)},this.handlePointerUp=(x,C)=>{this.end();const{onEnd:P,onSessionEnd:A,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=lf(x.type==="pointercancel"?this.lastMoveEventInfo:mu(C,this.transformPagePoint),this.history);this.startEvent&&P&&P(x,E),A&&A(x,E)},!Lg(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=l,this.contextWindow=i||window;const h=Jl(t),p=mu(h,this.transformPagePoint),{point:f}=p,{timestamp:g}=un;this.history=[{...f,timestamp:g}];const{onSessionStart:v}=n;v&&v(t,lf(p,this.history));const k={passive:!0,capture:!0};this.removeListeners=Yl(xl(this.contextWindow,"pointermove",this.handlePointerMove,k),xl(this.contextWindow,"pointerup",this.handlePointerUp,k),xl(this.contextWindow,"pointercancel",this.handlePointerUp,k)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const a=getComputedStyle(n);(ok.has(a.overflowX)||ok.has(a.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const a=t===window,i=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),_t.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),di(this.updatePoint)}}function mu(e,t){return t?{point:t(e.point)}:e}function sk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lf({point:e},t){return{point:e,delta:sk(e,Gx(t)),offset:sk(e,h9(t)),velocity:p9(t,.1)}}function h9(e){return e[0]}function Gx(e){return e[e.length-1]}function p9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const i=Gx(e);for(;n>=0&&(a=e[n],!(i.timestamp-a.timestamp>Yn(t)));)n--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&i.timestamp-a.timestamp>Yn(t)*2&&(a=e[1]);const s=sa(i.timestamp-a.timestamp);if(s===0)return{x:0,y:0};const l={x:(i.x-a.x)/s,y:(i.y-a.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function f9(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?bt(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?bt(n,e,a.max):Math.min(e,n)),e}function lk(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 m9(e,{top:t,left:n,bottom:a,right:i}){return{x:lk(e.x,n,i),y:lk(e.y,t,a)}}function ck(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function g9(e,t){return{x:ck(e.x,t.x),y:ck(e.y,t.y)}}function y9(e,t){let n=.5;const a=Tn(e),i=Tn(t);return i>a?n=Dl(t.min,t.max-a,e.min):a>i&&(n=Dl(e.min,e.max-i,t.min)),ar(0,1,n)}function v9(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 gm=.35;function b9(e=gm){return e===!1?e=0:e===!0&&(e=gm),{x:uk(e,"left","right"),y:uk(e,"top","bottom")}}function uk(e,t,n){return{min:dk(e,t),max:dk(e,n)}}function dk(e,t){return typeof e=="number"?e:e[t]||0}const _9=new WeakMap;class k9{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=Qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=g=>{n&&this.snapToCursor(Jl(g).point),this.stopAnimation()},l=(g,v)=>{const{drag:k,dragPropagation:x,onDragStart:C}=this.getProps();if(k&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YL(k),!this.openDragLock))return;this.latestPointerEvent=g,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),Ka(A=>{let D=this.getAxisMotionValue(A).get()||0;if(Xa.test(D)){const{projection:E}=this.visualElement;if(E&&E.layout){const R=E.layout.layoutBox[A];R&&(D=Tn(R)*(parseFloat(D)/100))}}this.originPoint[A]=D}),C&&_t.update(()=>C(g,v),!1,!0),sm(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},u=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:k,dragDirectionLock:x,onDirectionLock:C,onDrag:P}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:A}=v;if(x&&this.currentDirection===null){this.currentDirection=x9(A),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,A),this.updateAxis("y",v.point,A),this.visualElement.render(),P&&_t.update(()=>P(g,v),!1,!0)},h=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new Wx(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:a,contextWindow:$x(this.visualElement),element:this.visualElement.current})}stop(t,n){const a=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!a)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&_t.postRender(()=>u(a,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,a){const{drag:i}=this.getProps();if(!a||!gu(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(l=f9(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Bo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=m9(a.layoutBox,t):this.constraints=!1,this.elastic=b9(n),i!==this.constraints&&!Bo(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&Ka(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=v9(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bo(t))return!1;const a=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const s=xD(a,i.root,this.visualElement.getTransformPagePoint());let l=g9(i.layout.layoutBox,s);if(n){const u=n(_D(l));this.hasMutatedConstraints=!!u,u&&(l=hx(u))}return l}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:i,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),h=this.constraints||{},p=Ka(f=>{if(!gu(f,n,this.currentDirection))return;let g=h&&h[f]||{};(l===!0||l===f)&&(g={min:0,max:0});const v=i?200:1e6,k=i?40:1e7,x={type:"inertia",velocity:a?t[f]:0,bounceStiffness:v,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(f,x)});return Promise.all(p).then(u)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return sm(this.visualElement,t),a.start(Tg(t,a,0,n,this.visualElement,!1))}stopAnimation(){Ka(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Ka(n=>{const{drag:a}=this.getProps();if(!gu(n,a,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n],h=s.get()||0;s.set(t[n]-bt(l,u,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!Bo(n)||!a||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ka(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const h=u.get();i[l]=y9({min:h,max:h},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ka(l=>{if(!gu(l,t,null))return;const u=this.getAxisMotionValue(l),{min:h,max:p}=this.constraints[l];u.set(bt(h,p,i[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_9.set(this.visualElement,this);const t=this.visualElement.current,n=xl(t,"pointerdown",p=>{const{drag:f,dragListener:g=!0}=this.getProps(),v=p.target,k=v!==t&&tD(v);f&&g&&!k&&this.start(p)});let a;const i=()=>{const{dragConstraints:p}=this.getProps();Bo(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),a||(a=w9(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),_t.read(i);const u=Nl(window,"resize",()=>this.scalePositionWithinConstraints()),h=s.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:f})=>{this.isDragging&&f&&(Ka(g=>{const v=this.getAxisMotionValue(g);v&&(this.originPoint[g]+=p[g].translate,v.set(v.get()+p[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),h&&h(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:l=gm,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function hk(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function w9(e,t,n){const a=b_(e,hk(n)),i=b_(t,hk(n));return()=>{a(),i()}}function gu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function x9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P9 extends pi{constructor(t){super(t),this.removeGroupControls=ua,this.removeListeners=ua,this.controls=new k9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ua}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const cf=e=>(t,n)=>{e&&_t.update(()=>e(t,n),!1,!0)};class S9 extends pi{constructor(){super(...arguments),this.removePointerDownListener=ua}onPointerDown(t){this.session=new Wx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$x(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:i}=this.node.getProps();return{onSessionStart:cf(t),onStart:cf(n),onMove:cf(a),onEnd:(s,l)=>{delete this.session,i&&_t.postRender(()=>i(s,l))}}}mount(){this.removePointerDownListener=xl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let uf=!1;class C9 extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),a&&a.register&&i&&a.register(s),uf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:i,isPresent:s}=this.props,{projection:l}=a;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),uf=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||_t.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=n,a.root.didUpdate(),Ag.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:i}=t;uf=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),a&&a.deregister&&a.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Kx(e){const[t,n]=Mx(),a=b.useContext(dg);return S.jsx(C9,{...e,layoutGroup:a,switchLayoutGroup:b.useContext(Vx),isPresent:t,safeToRemove:n})}const T9={pan:{Feature:S9},drag:{Feature:P9,ProjectionNode:Ix,MeasureLayout:Kx}};function pk(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=a[i];s&&_t.postRender(()=>s(t,Jl(t)))}class E9 extends pi{mount(){const{current:t}=this.node;t&&(this.unmount=XL(t,(n,a)=>(pk(this.node,a,"Start"),i=>pk(this.node,i,"End"))))}unmount(){}}class R9 extends pi{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=Yl(Nl(this.node.current,"focus",()=>this.onFocus()),Nl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fk(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=a[i];s&&_t.postRender(()=>s(t,Jl(t)))}class A9 extends pi{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:a}=this.node.props;this.unmount=aD(t,(i,s)=>(fk(this.node,s,"Start"),(l,{success:u})=>fk(this.node,l,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:a?.tap===!1})}unmount(){}}const ym=new WeakMap,df=new WeakMap,L9=e=>{const t=ym.get(e.target);t&&t(e)},D9=e=>{e.forEach(L9)};function I9({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const a=df.get(n),i=JSON.stringify(t);return a[i]||(a[i]=new IntersectionObserver(D9,{root:e,...t})),a[i]}function M9(e,t,n){const a=I9(t);return ym.set(e,n),a.observe(e),()=>{ym.delete(e),a.unobserve(e)}}const N9={some:0,all:1};class O9 extends pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:i="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:a,threshold:typeof i=="number"?i:N9[i]},u=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,s&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:f,onViewportLeave:g}=this.node.getProps(),v=p?f:g;v&&v(h)};this.stopObserver=M9(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(j9(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function j9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const U9={inView:{Feature:O9},tap:{Feature:A9},focus:{Feature:R9},hover:{Feature:E9}},z9={layout:{ProjectionNode:Ix,MeasureLayout:Kx}},F9={...c9,...U9,...T9,...z9},B9=r9(F9,i9);function V9(){!Ng.current&&cx();const[e]=b.useState(_d.current);return e}const Pl=B9;function qx(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qx(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function H9(){for(var e,t,n=0,a="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qx(e))&&(a&&(a+=" "),a+=t);return a}const $9=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},W9=(e,t)=>({classGroupId:e,validator:t}),Yx=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Sd="-",mk=[],G9="arbitrary..",K9=e=>{const t=Y9(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return q9(l);const u=l.split(Sd),h=u[0]===""&&u.length>1?1:0;return Zx(u,h,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const h=a[l],p=n[l];return h?p?$9(p,h):h:p||mk}return n[l]||mk}}},Zx=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const p=Zx(e,t+1,s);if(p)return p}const l=n.validators;if(l===null)return;const u=t===0?e.join(Sd):e.slice(t).join(Sd),h=l.length;for(let p=0;p<h;p++){const f=l[p];if(f.validator(u))return f.classGroupId}},q9=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?G9+a:void 0})(),Y9=e=>{const{theme:t,classGroups:n}=e;return Z9(n,t)},Z9=(e,t)=>{const n=Yx();for(const a in e){const i=e[a];Bg(i,n,a,t)}return n},Bg=(e,t,n,a)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];X9(l,t,n,a)}},X9=(e,t,n,a)=>{if(typeof e=="string"){J9(e,t,n);return}if(typeof e=="function"){Q9(e,t,n,a);return}eM(e,t,n,a)},J9=(e,t,n)=>{const a=e===""?t:Xx(t,e);a.classGroupId=n},Q9=(e,t,n,a)=>{if(tM(e)){Bg(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(W9(n,e))},eM=(e,t,n,a)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[u,h]=i[l];Bg(h,Xx(t,u),n,a)}},Xx=(e,t)=>{let n=e;const a=t.split(Sd),i=a.length;for(let s=0;s<i;s++){const l=a[s];let u=n.nextPart.get(l);u||(u=Yx(),n.nextPart.set(l,u)),n=u}return n},tM=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const i=(s,l)=>{n[s]=l,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=a[s])!==void 0)return i(s,l),l},set(s,l){s in n?n[s]=l:i(s,l)}}},vm="!",gk=":",aM=[],yk=(e,t,n,a,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:i}),rM=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=i=>{const s=[];let l=0,u=0,h=0,p;const f=i.length;for(let C=0;C<f;C++){const P=i[C];if(l===0&&u===0){if(P===gk){s.push(i.slice(h,C)),h=C+1;continue}if(P==="/"){p=C;continue}}P==="["?l++:P==="]"?l--:P==="("?u++:P===")"&&u--}const g=s.length===0?i:i.slice(h);let v=g,k=!1;g.endsWith(vm)?(v=g.slice(0,-1),k=!0):g.startsWith(vm)&&(v=g.slice(1),k=!0);const x=p&&p>h?p-h:void 0;return yk(s,k,v,x)};if(t){const i=t+gk,s=a;a=l=>l.startsWith(i)?s(l.slice(i.length)):yk(aM,!1,l,void 0,!0)}if(n){const i=a;a=s=>n({className:s,parseClassName:i})}return a},iM=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let i=[];for(let s=0;s<n.length;s++){const l=n[s],u=l[0]==="[",h=t.has(l);u||h?(i.length>0&&(i.sort(),a.push(...i),i=[]),a.push(l)):i.push(l)}return i.length>0&&(i.sort(),a.push(...i)),a}},oM=e=>({cache:nM(e.cacheSize),parseClassName:rM(e),sortModifiers:iM(e),postfixLookupClassGroupIds:sM(e),...K9(e)}),sM=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let a=0;a<n.length;a++)t[n[a]]=!0;return t},lM=/\s+/,cM=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:i,sortModifiers:s,postfixLookupClassGroupIds:l}=t,u=[],h=e.trim().split(lM);let p="";for(let f=h.length-1;f>=0;f-=1){const g=h[f],{isExternal:v,modifiers:k,hasImportantModifier:x,baseClassName:C,maybePostfixModifierPosition:P}=n(g);if(v){p=g+(p.length>0?" "+p:p);continue}let A=!!P,D;if(A){const F=C.substring(0,P);D=a(F);const T=D&&l[D]?a(C):void 0;T&&T!==D&&(D=T,A=!1)}else D=a(C);if(!D){if(!A){p=g+(p.length>0?" "+p:p);continue}if(D=a(C),!D){p=g+(p.length>0?" "+p:p);continue}A=!1}const E=k.length===0?"":k.length===1?k[0]:s(k).join(":"),R=x?E+vm:E,z=R+D;if(u.indexOf(z)>-1)continue;u.push(z);const W=i(D,A);for(let F=0;F<W.length;++F){const T=W[F];u.push(R+T)}p=g+(p.length>0?" "+p:p)}return p},uM=(...e)=>{let t=0,n,a,i="";for(;t<e.length;)(n=e[t++])&&(a=Jx(n))&&(i&&(i+=" "),i+=a);return i},Jx=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=Jx(e[a]))&&(n&&(n+=" "),n+=t);return n},dM=(e,...t)=>{let n,a,i,s;const l=h=>{const p=t.reduce((f,g)=>g(f),e());return n=oM(p),a=n.cache.get,i=n.cache.set,s=u,u(h)},u=h=>{const p=a(h);if(p)return p;const f=cM(h,n);return i(h,f),f};return s=l,(...h)=>s(uM(...h))},hM=[],Jt=e=>{const t=n=>n[e]||hM;return t.isThemeGetter=!0,t},Qx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pM=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,fM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mM=/\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$/,gM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ei=e=>pM.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Ha=e=>!!e&&Number.isInteger(Number(e)),hf=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),kr=e=>fM.test(e),tP=()=>!0,bM=e=>mM.test(e)&&!gM.test(e),Vg=()=>!1,_M=e=>yM.test(e),kM=e=>vM.test(e),wM=e=>!ke(e)&&!xe(e),xM=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),PM=e=>fi(e,rP,Vg),ke=e=>Qx.test(e),Di=e=>fi(e,iP,bM),vk=e=>fi(e,DM,Qe),SM=e=>fi(e,sP,tP),CM=e=>fi(e,oP,Vg),bk=e=>fi(e,nP,Vg),TM=e=>fi(e,aP,kM),yu=e=>fi(e,lP,_M),xe=e=>eP.test(e),ol=e=>no(e,iP),EM=e=>no(e,oP),_k=e=>no(e,nP),RM=e=>no(e,rP),AM=e=>no(e,aP),vu=e=>no(e,lP,!0),LM=e=>no(e,sP,!0),fi=(e,t,n)=>{const a=Qx.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},no=(e,t,n=!1)=>{const a=eP.exec(e);return a?a[1]?t(a[1]):n:!1},nP=e=>e==="position"||e==="percentage",aP=e=>e==="image"||e==="url",rP=e=>e==="length"||e==="size"||e==="bg-size",iP=e=>e==="length",DM=e=>e==="number",oP=e=>e==="family-name",sP=e=>e==="number"||e==="weight",lP=e=>e==="shadow",IM=()=>{const e=Jt("color"),t=Jt("font"),n=Jt("text"),a=Jt("font-weight"),i=Jt("tracking"),s=Jt("leading"),l=Jt("breakpoint"),u=Jt("container"),h=Jt("spacing"),p=Jt("radius"),f=Jt("shadow"),g=Jt("inset-shadow"),v=Jt("text-shadow"),k=Jt("drop-shadow"),x=Jt("blur"),C=Jt("perspective"),P=Jt("aspect"),A=Jt("ease"),D=Jt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...R(),xe,ke],W=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],T=()=>[xe,ke,h],$=()=>[ei,"full","auto",...T()],q=()=>[Ha,"none","subgrid",xe,ke],re=()=>["auto",{span:["full",Ha,xe,ke]},Ha,xe,ke],se=()=>[Ha,"auto",xe,ke],Se=()=>["auto","min","max","fr",xe,ke],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...T()],ge=()=>[ei,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],B=()=>[ei,"screen","full","dvw","lvw","svw","min","max","fit",...T()],X=()=>[ei,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],V=()=>[e,xe,ke],M=()=>[...R(),_k,bk,{position:[xe,ke]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",RM,PM,{size:[xe,ke]}],he=()=>[hf,ol,Di],de=()=>["","none","full",p,xe,ke],ye=()=>["",Qe,ol,Di],Be=()=>["solid","dashed","dotted","double"],Ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>[Qe,hf,_k,bk],At=()=>["","none",x,xe,ke],qt=()=>["none",Qe,xe,ke],sn=()=>["none",Qe,xe,ke],pt=()=>[Qe,xe,ke],Ut=()=>[ei,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kr],breakpoint:[kr],color:[tP],container:[kr],"drop-shadow":[kr],ease:["in","out","in-out"],font:[wM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kr],shadow:[kr],spacing:["px",Qe],text:[kr],"text-shadow":[kr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ei,ke,xe,P]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,ke]}],"container-named":[xM],columns:[{columns:[Qe,ke,xe,u]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:z()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Ha,"auto",xe,ke]}],basis:[{basis:[ei,"full","auto",u,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,ei,"auto","initial","none",ke]}],grow:[{grow:["",Qe,xe,ke]}],shrink:[{shrink:["",Qe,xe,ke]}],order:[{order:[Ha,"first","last","none",xe,ke]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mbs:[{mbs:ie()}],mbe:[{mbe:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:ge()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[u,"screen",...ge()]}],"min-w":[{"min-w":[u,"screen","none",...ge()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...ge()]}],h:[{h:["screen","lh",...ge()]}],"min-h":[{"min-h":["screen","lh","none",...ge()]}],"max-h":[{"max-h":["screen","lh",...ge()]}],"font-size":[{text:["base",n,ol,Di]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,LM,SM]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hf,ke]}],"font-family":[{font:[EM,CM,t]}],"font-features":[{"font-features":[ke]}],"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:[i,xe,ke]}],"line-clamp":[{"line-clamp":[Qe,"none",xe,vk]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",xe,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ke]}],"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:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",xe,Di]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Qe,"auto",xe,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"tab-size":[{tab:[Ha,xe,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ke]}],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",xe,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ha,xe,ke],radial:["",xe,ke],conic:[Ha,xe,ke]},AM,TM]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:ye()}],"border-w-x":[{"border-x":ye()}],"border-w-y":[{"border-y":ye()}],"border-w-s":[{"border-s":ye()}],"border-w-e":[{"border-e":ye()}],"border-w-bs":[{"border-bs":ye()}],"border-w-be":[{"border-be":ye()}],"border-w-t":[{"border-t":ye()}],"border-w-r":[{"border-r":ye()}],"border-w-b":[{"border-b":ye()}],"border-w-l":[{"border-l":ye()}],"divide-x":[{"divide-x":ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"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-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":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:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,xe,ke]}],"outline-w":[{outline:["",Qe,ol,Di]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",f,vu,yu]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",g,vu,yu]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Qe,Di]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":ye()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",v,vu,yu]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Qe,xe,ke]}],"mix-blend":[{"mix-blend":[...Ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ke()}],"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":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ne()}],"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":Ne()}],"mask-image-t-to-pos":[{"mask-t-to":Ne()}],"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":Ne()}],"mask-image-r-to-pos":[{"mask-r-to":Ne()}],"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":Ne()}],"mask-image-b-to-pos":[{"mask-b-to":Ne()}],"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":Ne()}],"mask-image-l-to-pos":[{"mask-l-to":Ne()}],"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":Ne()}],"mask-image-x-to-pos":[{"mask-x-to":Ne()}],"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":Ne()}],"mask-image-y-to-pos":[{"mask-y-to":Ne()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[xe,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ne()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ne()}],"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:M()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ke]}],filter:[{filter:["","none",xe,ke]}],blur:[{blur:At()}],brightness:[{brightness:[Qe,xe,ke]}],contrast:[{contrast:[Qe,xe,ke]}],"drop-shadow":[{"drop-shadow":["","none",k,vu,yu]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Qe,xe,ke]}],"hue-rotate":[{"hue-rotate":[Qe,xe,ke]}],invert:[{invert:["",Qe,xe,ke]}],saturate:[{saturate:[Qe,xe,ke]}],sepia:[{sepia:["",Qe,xe,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ke]}],"backdrop-blur":[{"backdrop-blur":At()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,xe,ke]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,xe,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,xe,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,xe,ke]}],"backdrop-invert":[{"backdrop-invert":["",Qe,xe,ke]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,xe,ke]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,xe,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,xe,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",xe,ke]}],ease:[{ease:["linear","initial",A,xe,ke]}],delay:[{delay:[Qe,xe,ke]}],animate:[{animate:["none",D,xe,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,xe,ke]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:qt()}],"rotate-x":[{"rotate-x":qt()}],"rotate-y":[{"rotate-y":qt()}],"rotate-z":[{"rotate-z":qt()}],scale:[{scale:sn()}],"scale-x":[{"scale-x":sn()}],"scale-y":[{"scale-y":sn()}],"scale-z":[{"scale-z":sn()}],"scale-3d":["scale-3d"],skew:[{skew:pt()}],"skew-x":[{"skew-x":pt()}],"skew-y":[{"skew-y":pt()}],transform:[{transform:[xe,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ut()}],"translate-x":[{"translate-x":Ut()}],"translate-y":[{"translate-y":Ut()}],"translate-z":[{"translate-z":Ut()}],"translate-none":["translate-none"],zoom:[{zoom:[Ha,xe,ke]}],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",xe,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":V()}],"scrollbar-track-color":[{"scrollbar-track":V()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",xe,ke]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Qe,ol,Di,vk]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},MM=dM(IM);function Pt(...e){return MM(H9(e))}const NM=S.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[S.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1Z",fill:"#4285F4"}),S.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23Z",fill:"#34A853"}),S.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.44 1.18 4.93l3.66-2.84Z",fill:"#FBBC05"}),S.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53Z",fill:"#EA4335"})]}),OM=S.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:S.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12Z"})}),jM={google:NM,github:OM},UM={google:"Google",github:"GitHub",microsoft:"Microsoft",discord:"Discord",apple:"Apple"};function zM(e){return UM[e]||String(e||"").replace(/-/g," ")}function FM(e){if(typeof e=="string"&&e.trim())return e.trim();if(e&&typeof e=="object"){if(typeof e.token=="string"&&e.token.trim())return e.token.trim();if(typeof e.otp=="string"&&e.otp.trim())return e.otp.trim()}return""}function BM({title:e,subtitle:t,className:n="",onSuccess:a,hideLogo:i=!1,initialMode:s="signin",tokenFromUrl:l="",initialEmail:u="",initialCode:h=""}){ql();const{enabled:p,signedIn:f,refreshUser:g,signInWithPassword:v,signUp:k,signInWithOAuth:x,getPublicAuthConfig:C,sendResetPasswordEmail:P,exchangeResetPasswordToken:A,resetPassword:D}=to(),[E,R]=b.useState(s),[z,W]=b.useState(u),[F,T]=b.useState(""),[$,q]=b.useState(""),[re,se]=b.useState(""),[Se,pe]=b.useState(h),[ue,ie]=b.useState(!1),[ge,B]=b.useState(null),[X,V]=b.useState(null),[M,Z]=b.useState(!1),[be,he]=b.useState(!!(s!=="signin"||u)),[de,ye]=b.useState(!0),[Be,Ke]=b.useState([]),[Ne,At]=b.useState(8);b.useEffect(()=>{s&&R(s)},[s]),b.useEffect(()=>{u&&W(u)},[u]),b.useEffect(()=>{h&&pe(h)},[h]),b.useEffect(()=>{if(!p)return;let qe=!0;return ye(!0),(async()=>{const{data:nt,error:Lt}=await C();if(qe){if(Lt||!nt)Ke(["google","github"]);else{const St=Array.isArray(nt.oAuthProviders)?nt.oAuthProviders:[],Ln=Array.isArray(nt.customOAuthProviders)?nt.customOAuthProviders:[];Ke([...St,...Ln]),typeof nt.passwordMinLength=="number"&&nt.passwordMinLength>0&&At(nt.passwordMinLength)}ye(!1)}})(),()=>{qe=!1}},[p,C]),b.useEffect(()=>{f&&a&&a()},[f,a]);const qt=b.useMemo(()=>typeof window>"u"?"":!!window.webkit?.messageHandlers?.nativeOAuth?`${window.location.origin}/auth/callback`:`${window.location.origin}/`,[]),sn=b.useMemo(()=>typeof window>"u"?"/reset-password":`${window.location.origin}/reset-password`,[]),pt=b.useCallback(async qe=>{B(null),ie(!0);try{const{error:nt}=await x(qe,qt);nt&&B(nt.message||String(nt))}finally{ie(!1)}},[x,qt]);b.useEffect(()=>{if(!p||de||f||typeof window>"u")return;const qe=window.location.search;if(!qe)return;const nt=new URLSearchParams(qe),Lt=nt.get("native")==="1",St=nt.get("provider");Lt&&St&&[...Be].includes(St)&&pt(St)},[p,de,f,Be,pt]);const Ut=b.useCallback(async qe=>{qe.preventDefault(),B(null),ie(!0);try{if(E==="signup"){const{data:Lt,error:St}=await k({email:z.trim(),password:F,name:re.trim()||void 0});if(St){B(St.message||String(St));return}if(Lt?.requireEmailVerification){V(fe("login.verify_email_pending")),R("signin");return}await g();return}const{error:nt}=await v({email:z.trim(),password:F});if(nt){B(nt.message||String(nt));return}await g()}finally{ie(!1)}},[E,z,F,re,k,v,g]),lr=b.useCallback(async qe=>{qe.preventDefault(),B(null),ie(!0);try{const nt=z.trim(),{error:Lt}=await P({email:nt,redirectTo:sn});if(Lt){B(Lt.message||String(Lt));return}W(nt),V(fe("reset_password.request.sent")),R("reset_confirm")}finally{ie(!1)}},[z,sn,P]),Er=b.useCallback(async qe=>{if(qe.preventDefault(),B(null),F!==$){B(fe("reset_password.error.password_mismatch"));return}ie(!0);try{let nt=l;if(!nt){const{data:St,error:Ln}=await A({email:z.trim(),code:Se.trim()});if(Ln){B(Ln.message||String(Ln));return}if(nt=FM(St),!nt){B(fe("reset_password.error.missing_token"));return}}const{error:Lt}=await D({newPassword:F,otp:nt});if(Lt){B(Lt.message||String(Lt));return}Z(!0),V(fe("reset_password.success"))}finally{ie(!1)}},[Se,$,z,A,F,D,l]);if(!p)return null;const Mt=E==="reset_email"||E==="reset_confirm";return S.jsxs("div",{className:Pt("w-full bg-white dark:bg-oai-gray-950 p-6 transition-colors duration-200",n),children:[Mt&&S.jsxs("button",{type:"button",onClick:()=>{R("signin"),V(null),B(null),Z(!1),T(""),q("")},className:"flex items-center gap-1.5 text-xs font-medium text-oai-gray-500 hover:text-oai-black dark:hover:text-white transition-colors mb-4 focus:outline-none",children:[S.jsx(sR,{className:"h-3.5 w-3.5"}),fe("reset_password.back_to_sign_in")]}),S.jsxs("div",{className:Pt("mb-6",Mt?"text-left":"text-center"),children:[!i&&!Mt&&S.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[S.jsx("img",{src:"/app-icon.png",alt:"",width:28,height:28,className:"rounded-md"}),S.jsx("span",{className:"text-lg font-semibold text-oai-black dark:text-white font-oai tracking-tight",children:fe("shared.app_name")})]}),S.jsx("h2",{className:Pt("text-sm font-semibold text-oai-black dark:text-white tracking-tight mb-1",(i||Mt)&&"text-base font-bold md:text-lg"),children:Mt?fe("reset_password.title"):e||fe("login_modal.subtitle")}),!Mt&&t&&S.jsx("p",{className:"text-xs text-oai-gray-500 dark:text-oai-gray-400 mt-1.5 leading-relaxed max-w-[320px] mx-auto",children:t}),Mt&&S.jsx("p",{className:"text-xs text-oai-gray-500 dark:text-oai-gray-400 mt-1.5 leading-relaxed max-w-[320px]",children:X&&E==="reset_confirm"&&!M?X:fe("reset_password.subtitle")})]}),X&&(!Mt||M)&&S.jsx("div",{className:"mb-4 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900/50 px-3 py-2 text-xs text-oai-gray-700 dark:text-oai-gray-300",children:X}),ge&&S.jsx("p",{className:"mb-4 text-sm text-red-500 dark:text-red-400 text-center",role:"alert",children:ge}),E==="reset_email"&&S.jsxs("form",{onSubmit:lr,className:"space-y-3",children:[S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-email",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.email")}),S.jsx("input",{id:"card-reset-email",type:"email",autoComplete:"email",required:!0,value:z,onChange:qe=>W(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsx("button",{type:"submit",disabled:ue,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:fe("reset_password.request.submit")})]}),E==="reset_confirm"&&(M?S.jsx("button",{type:"button",onClick:()=>{R("signin"),Z(!1),V(null),B(null),T(""),q("")},className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors text-center shadow-sm",children:fe("reset_password.success_cta")}):S.jsxs("form",{onSubmit:Er,className:"space-y-3",children:[!l&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-email-confirm",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.email")}),S.jsx("input",{id:"card-reset-email-confirm",type:"email",autoComplete:"email",required:!0,value:z,onChange:qe=>W(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-code",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("reset_password.field.code")}),S.jsx("input",{id:"card-reset-code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",required:!0,value:Se,onChange:qe=>pe(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-password",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("reset_password.field.new_password")}),S.jsx("input",{id:"card-reset-password",type:"password",autoComplete:"new-password",required:!0,minLength:8,value:F,onChange:qe=>T(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-reset-password-confirm",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("reset_password.field.confirm_password")}),S.jsx("input",{id:"card-reset-password-confirm",type:"password",autoComplete:"new-password",required:!0,minLength:8,value:$,onChange:qe=>q(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsx("button",{type:"submit",disabled:ue,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:fe("reset_password.reset.submit")})]})),!Mt&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"space-y-2.5 mb-5",children:de?S.jsxs("div",{className:"space-y-2.5",children:[S.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"}),S.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"})]}):Be.map(qe=>S.jsxs("button",{type:"button",disabled:ue,onClick:()=>pt(qe),className:Pt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors disabled:opacity-50","flex items-center justify-center gap-2.5"),children:[jM[qe]||null,fe("login.oauth.continue",{provider:zM(qe)})]},qe))}),be?S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"relative mb-5",children:[S.jsx("div",{className:"absolute inset-0 flex items-center",children:S.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),S.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:S.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:fe("login_modal.divider_email")})})]}),S.jsxs("div",{className:"flex rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 p-0.5 bg-oai-gray-50 dark:bg-oai-gray-900/50 mb-4",children:[S.jsx("button",{type:"button",className:Pt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",E==="signin"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{R("signin"),B(null)},children:fe("login.tab.sign_in")}),S.jsx("button",{type:"button",className:Pt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",E==="signup"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{R("signup"),B(null)},children:fe("login.tab.sign_up")})]}),S.jsxs("form",{onSubmit:Ut,className:"space-y-3",children:[E==="signup"&&S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-name",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.name")}),S.jsx("input",{id:"card-name",type:"text",autoComplete:"name",value:re,onChange:qe=>se(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500",placeholder:fe("login.field.name_placeholder")})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-email",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.email")}),S.jsx("input",{id:"card-email",type:"email",autoComplete:"email",required:!0,value:z,onChange:qe=>W(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"card-password",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:fe("login.field.password")}),S.jsx("input",{id:"card-password",type:"password",autoComplete:E==="signup"?"new-password":"current-password",required:!0,minLength:E==="signup"?Ne:void 0,value:F,onChange:qe=>T(qe.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"}),E==="signup"&&S.jsx("p",{className:"mt-1 text-xs text-oai-gray-400 dark:text-oai-gray-600",children:fe("login.password_hint",{min:String(Ne)})}),E==="signin"&&S.jsx("div",{className:"mt-1 text-right",children:S.jsx("button",{type:"button",onClick:()=>{R("reset_email"),B(null),V(null)},className:"text-xs font-medium text-oai-gray-500 hover:text-oai-black dark:hover:text-white no-underline bg-transparent border-0 p-0 cursor-pointer focus:outline-none",children:fe("login.forgot_password")})})]}),S.jsx("button",{type:"submit",disabled:ue,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:fe(E==="signup"?"login.submit.sign_up":"login.submit.sign_in")})]})]}):S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"relative mb-5",children:[S.jsx("div",{className:"absolute inset-0 flex items-center",children:S.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),S.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:S.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:fe("login.divider")})})]}),S.jsxs("button",{type:"button",onClick:()=>he(!0),className:Pt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors","flex items-center justify-center gap-2.5"),children:[S.jsx(bR,{className:"h-[18px] w-[18px] text-oai-gray-500 dark:text-oai-gray-400",strokeWidth:1.75}),fe("login_modal.continue_email")]})]})]})]})}function VM(){const{isOpen:e,closeLoginModal:t}=l2(),{enabled:n}=to();return b.useEffect(()=>{if(!e)return;const a=i=>{i.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),n?S.jsx(Nx,{children:e&&S.jsxs(Pl.div,{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[S.jsx(Pl.div,{className:"absolute inset-0 bg-black/40 dark:bg-black/60",onClick:t,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),S.jsxs(Pl.div,{className:"relative w-full max-w-[420px] rounded-2xl border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-950 shadow-2xl overflow-hidden",initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2},onClick:a=>a.stopPropagation(),children:[S.jsx("button",{type:"button",onClick:t,className:"absolute right-4 top-4 z-10 text-oai-gray-400 dark:text-oai-gray-500 hover:text-oai-black dark:hover:text-white transition-colors",children:S.jsx(ug,{className:"h-5 w-5"})}),S.jsx(BM,{onSuccess:t,className:"p-6 bg-transparent"})]})]})}):null}const HM={VITE_INSFORGE_BASE_URL:"https://srctyff5.us-east.insforge.app"},wz="https://tokentracker.statuspage.io/";function $M(){if(typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"))return"";const t=typeof import.meta<"u"?HM:void 0;return(t?.VITE_TOKENTRACKER_BACKEND_BASE_URL||t?.VITE_INSFORGE_BASE_URL||nr()).trim()}function WM(){return nr()}function GM(e=""){if(typeof e!="string"||e.length===0)return!1;const t=new URLSearchParams(e),n=String(t.get("screenshot")||"").toLowerCase();return n==="1"||n==="true"}const KM=300*1e3,qM=720*60*1e3;function Hg(e){return typeof e=="string"&&/^https?:\/\//i.test(e.trim())}function YM(e,t=Date.now()){if(!e?.token||!e?.deviceId||!e?.issuedAt)return!0;const n=Date.parse(e.issuedAt);return Number.isFinite(n)?n+qM<=t:!0}async function cP(e,t){const n=nr();if(!Hg(n)||!e)return;const a=n.replace(/\/$/,""),i=us(),s={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};i&&(s.apikey=i);try{await fetch(`${a}/functions/tokentracker-leaderboard-refresh`,{method:"POST",headers:s,body:JSON.stringify({period:"week",source:t})})}catch{}}async function ZM(){try{const e=await fetch("/functions/tokentracker-machine-id",{headers:{Accept:"application/json"},cache:"no-store"});if(e.ok){const t=await e.json().catch(()=>null),n=typeof t?.machineId=="string"?t.machineId.trim():null;if(n&&n.length>=8)return n}}catch{}return null}async function XM(e){const t=nr();if(!Hg(t)||!e)return null;const n=t.replace(/\/$/,""),a=us(),i={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};a&&(i.apikey=a);const s=typeof navigator<"u"&&typeof navigator.platform=="string"?navigator.platform:"web",l=await ZM();if(!l)return null;const u=`Token Tracker (dashboard) #${l.slice(0,8)}`,h=await fetch(`${n}/functions/tokentracker-device-token-issue`,{method:"POST",headers:i,body:JSON.stringify({device_name:u,platform:s,machine_id:l})});if(!h.ok)return null;const p=await h.json().catch(()=>null),f=typeof p?.token=="string"?p.token:null,g=typeof p?.device_id=="string"?p.device_id:null;return!f||!g?null:{token:f,deviceId:g,issuedAt:typeof p?.created_at=="string"?p.created_at:new Date().toISOString()}}async function kk(e){const{deviceToken:t,insforgeBaseUrl:n,drain:a}=e,i={deviceToken:t};a===!0&&(i.drain=!0);const s=n||nr();Hg(s)&&(i.insforgeBaseUrl=s.trim());const l=await Gl(),u=await fetch("/functions/tokentracker-local-sync",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...l},body:JSON.stringify(i)}),h=await u.json().catch(()=>({}));if(!u.ok){const p=typeof h.error=="string"?h.error:`HTTP ${u.status}`;throw new Error(p)}return h}async function wk(e){const t=await e();if(!t)return null;const n=xw();if(n&&!YM(n))return n;const a=await XM(t);return a?(XE(a),a):null}async function uP(e,t={}){let n=await e();if(!n)return null;let a=await wk(async()=>n);if(!a)return n;try{return await kk({deviceToken:a.token,insforgeBaseUrl:nr(),drain:t.drain===!0}),n}catch(i){if(!xw()||(Pw(),n=await e(),!n)||(a=await wk(async()=>n),!a))throw i;return await kk({deviceToken:a.token,insforgeBaseUrl:nr(),drain:t.drain===!0}),n}}async function JM(e){const t=JE();if(Date.now()-t<KM)return;const n=await uP(e);n&&(Sw(Date.now()),await cP(n,"cloud-sync-auto"))}async function xz(e){const t=await uP(e,{drain:!0});t&&(Sw(Date.now()),await cP(t,"cloud-sync-now"))}function QM(e){const t=e.replace(/\/+$/,"")||"/";return t==="/share"||t==="/share.html"||t.startsWith("/share/")}function eN(e){const t=e.replace(/\/+$/,"")||"/";return t==="/login"||t==="/landing"||QM(t)?!1:t==="/"||t==="/dashboard"||t.startsWith("/leaderboard")}function tN(){const e=zn(),t=to(),n=b.useRef(!1);b.useEffect(()=>{if(!id()||!eN(e.pathname||"/")||!t.enabled||!t.signedIn||t.loading||!od())return;let a=!1;const i=window.setTimeout(()=>{(async()=>{if(!(a||n.current)){n.current=!0;try{await JM(()=>t.getAccessToken())}catch(s){console.warn("[tokentracker] cloud usage sync:",s)}finally{n.current=!1}}})()},2500);return()=>{a=!0,window.clearTimeout(i)}},[e.pathname,t.enabled,t.signedIn,t.loading,t.getAccessToken])}function nN(){const e=b.useContext(o2);if(e===null)throw new Error("useTheme must be used within a ThemeProvider");return e}function aN({prefersReducedMotion:e,screenshotCapture:t}){return!(t||e)}function rN(e){if(!e||typeof e!="object")return null;const t=e.user_metadata&&typeof e.user_metadata=="object"?e.user_metadata:{},n=e.profile&&typeof e.profile=="object"?e.profile:{},a=t.avatar_url||t.picture||n.avatar_url||e.avatar_url;return typeof a=="string"&&a.trim()?a.trim():null}function iN(e){return e?Fd()?`/api/avatar-proxy?url=${encodeURIComponent(e)}`:e:null}function bu(e){const t=String(e||"").trim();if(!t)return"?";const n=t.split(/\s+/).filter(Boolean);return n.length>=2?(n[0][0]+n[n.length-1][0]).toUpperCase():t.slice(0,2).toUpperCase()}function xk({className:e,variant:t="header",collapsed:n=!1,onAfterAction:a}){ql();const i=t==="sidebar",{enabled:s,loading:l,signedIn:u,user:h,displayName:p}=to(),{openLoginModal:f}=l2(),g=os(),v=b.useMemo(()=>rN(h),[h]),k=b.useMemo(()=>iN(v),[v]),[x,C]=Zo.useState(!1);if(Zo.useEffect(()=>{C(!1)},[k]),!s)return null;if(l)return S.jsx("div",{className:Pt("h-9 w-9 shrink-0 rounded-full bg-oai-gray-200 dark:bg-oai-gray-800 animate-pulse",e),"aria-hidden":!0});if(!u)return i?S.jsxs("button",{type:"button",onClick:()=>{f(),a?.()},className:Pt("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] font-medium text-oai-gray-700 dark:text-oai-gray-300 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500 min-w-0",n?"h-8 w-8 justify-center px-0":"w-full",e),"aria-label":fe("header.auth.sign_in_aria"),title:n?fe("header.auth.sign_in_aria"):void 0,children:[S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:S.jsx("img",{src:"/app-icon.png",alt:"",width:18,height:18,className:"h-[18px] w-[18px] rounded"})}),!n&&S.jsx("span",{className:"truncate flex-1 text-left",children:fe("header.auth.sign_in_aria")})]}):S.jsx("button",{type:"button",onClick:f,className:Pt("shrink-0 inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4 text-sm font-medium transition-colors duration-200 ease-out shadow-sm ring-1 ring-oai-gray-200 dark:ring-white/10 bg-oai-gray-900 text-white hover:bg-oai-gray-800 active:bg-oai-gray-950 dark:bg-white dark:text-oai-gray-900 dark:hover:bg-oai-gray-100 dark:active:bg-oai-gray-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-oai-gray-950",e),"aria-label":fe("header.auth.sign_in_aria"),children:fe("header.auth.sign_in_aria")});const P=()=>{g("/settings"),a?.()};return S.jsx("div",{className:Pt(i?"relative flex w-full shrink-0 items-center":"relative flex shrink-0 items-center",e),children:S.jsxs("button",{type:"button",onClick:P,className:Pt(i?Pt("flex w-full items-center gap-2 rounded-md px-2 py-1.5 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 transition-colors min-w-0",n&&"justify-center px-0 py-0 h-9 w-9"):"flex items-center gap-2 rounded-md pl-1 pr-2 py-1 border border-transparent hover:bg-oai-gray-100 dark:hover:bg-oai-gray-900/80 hover:border-oai-gray-200 dark:hover:border-oai-gray-800 transition-colors"),"aria-label":fe("header.auth.open_settings"),title:i&&n?p:void 0,children:[i?S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:k&&!x?S.jsx("img",{src:k,alt:"",width:20,height:20,className:"h-5 w-5 rounded-full object-cover ring-1 ring-oai-gray-300 dark:ring-oai-gray-700",referrerPolicy:"no-referrer",onError:()=>C(!0)}):bu(p)==="?"?S.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-oai-brand-600/30 text-white ring-1 ring-oai-brand-500/50",children:S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"w-3 h-3 opacity-80",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})})}):S.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-oai-brand-600 text-[9px] font-semibold text-white ring-1 ring-oai-brand-500/50",children:bu(p)})}):k&&!x?S.jsx("img",{src:k,alt:"",width:32,height:32,className:"h-8 w-8 rounded-full object-cover ring-1 ring-oai-gray-300 dark:ring-oai-gray-700 shrink-0",referrerPolicy:"no-referrer",onError:()=>C(!0)}):bu(p)==="?"?S.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-oai-brand-600/30 text-white ring-1 ring-oai-brand-500/50",children:S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"w-4 h-4 opacity-80",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})})}):S.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-oai-brand-600 text-xs font-semibold text-white ring-1 ring-oai-brand-500/50",children:bu(p)}),i?!n&&S.jsx("span",{className:"truncate text-[13px] font-medium text-oai-gray-900 dark:text-oai-gray-200 flex-1 text-left min-w-0",children:p}):S.jsx("span",{className:"hidden sm:inline truncate text-sm font-medium text-oai-gray-900 dark:text-oai-gray-200 max-w-[120px]",children:p})]})})}const bm="tt.sidebarCollapsed";function dP(){return[{id:"general",label:fe("nav.group.general"),items:[{id:"usage",to:"/dashboard",icon:cR,label:fe("nav.usage")},{id:"limits",to:"/limits",icon:pR,label:fe("nav.limits")},{id:"leaderboard",to:"/leaderboard",icon:jR,label:fe("nav.leaderboard")}]},{id:"tools",label:fe("nav.group.tools"),items:[{id:"widgets",to:"/widgets",icon:yR,label:fe("nav.widgets")},{id:"skills",to:"/skills",icon:CR,label:fe("nav.skills")},{id:"ip-check",to:"/ip-check",icon:mR,label:fe("nav.ip_check")}]},{id:"account",label:fe("nav.group.account"),items:[{id:"settings",to:"/settings",icon:DR,label:fe("nav.settings")}]}]}function oN(){if(typeof window>"u")return!1;try{return window.localStorage.getItem(bm)==="1"}catch{return!1}}function sN(){const[e,t]=b.useState(oN),n=b.useCallback(()=>{t(a=>{const i=!a;try{typeof window<"u"&&window.localStorage.setItem(bm,i?"1":"0")}catch{}return i})},[]);return b.useEffect(()=>{if(typeof window>"u")return;const a=i=>{i.key===bm&&t(i.newValue==="1")};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[]),{collapsed:e,toggle:n}}function lN(e,t){const n=e.replace(/\/+$/,"")||"/";return t==="/dashboard"?n==="/dashboard"||n==="/":t==="/leaderboard"?n==="/leaderboard"||n.startsWith("/leaderboard/"):n===t}function cN({label:e,collapsed:t,first:n}){return t?n?null:S.jsx("div",{className:"mx-2 my-2 h-px bg-oai-gray-200/70 dark:bg-oai-gray-800/70","aria-hidden":!0}):S.jsx("div",{className:Pt("px-3 pb-1 text-[10px] uppercase tracking-wider text-oai-gray-500 dark:text-oai-gray-500",n?"pt-2":"pt-4"),children:e})}function uN({item:e,collapsed:t,active:n,onClick:a}){const i=e.icon;return S.jsxs(Md,{to:e.to,onClick:a,title:t?e.label:void 0,"aria-current":n?"page":void 0,className:Pt("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] no-underline transition-colors",t&&"justify-center px-0 py-2",n?"bg-oai-gray-200/70 text-oai-black font-medium dark:bg-oai-gray-800 dark:text-white":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/50 hover:text-oai-black dark:hover:bg-oai-gray-800/60 dark:hover:text-white"),children:[S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:S.jsx(i,{className:"h-[15px] w-[15px]","aria-hidden":!0})}),!t&&S.jsx("span",{className:"truncate",children:e.label})]})}function dN({as:e="button",title:t,onClick:n,href:a,children:i,className:s,...l}){const u=Pt("flex h-10 w-10 items-center justify-center rounded-lg text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",s);return e==="a"?S.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",title:t,"aria-label":t,className:u,...l,children:i}):S.jsx("button",{type:"button",title:t,"aria-label":t,onClick:n,className:u,...l,children:i})}function hN({repo:e="mm7894215/TokenTracker",glassChrome:t=!1}){const[n,a]=b.useState(null);return b.useEffect(()=>{if(typeof window>"u")return;const i=typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;aN({prefersReducedMotion:i,screenshotCapture:!1})&&fetch(`https://api.github.com/repos/${e}`).then(s=>s.json()).then(s=>{s&&typeof s.stargazers_count=="number"&&a(s.stargazers_count)}).catch(()=>{})},[e]),S.jsxs("a",{href:`https://github.com/${e}`,target:"_blank",rel:"noopener noreferrer","aria-label":n!==null?`Star on GitHub (${n})`:"Star on GitHub",className:Pt("inline-flex h-7 items-center gap-1.5 rounded-full px-2.5 text-xs font-medium transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",t?"border border-gray-500/20 dark:border-gray-500/30 bg-gray-500/[0.04] dark:bg-gray-500/[0.06] backdrop-blur-[2px] text-oai-gray-700 dark:text-oai-gray-300 hover:bg-gray-500/10 dark:hover:bg-gray-500/12 hover:border-gray-500/30 dark:hover:border-gray-500/40 hover:text-oai-black dark:hover:text-white":"border border-oai-gray-200 dark:border-oai-gray-700 text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white hover:border-oai-gray-300 dark:hover:border-oai-gray-600"),children:[S.jsx("svg",{height:"12",viewBox:"0 0 16 16",width:"12",className:"shrink-0 fill-current",children:S.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})}),S.jsx("span",{children:"Star"}),n!==null&&S.jsx("span",{className:"text-[10px] text-oai-gray-500 dark:text-oai-gray-500 tabular-nums",children:n})]})}const pN=[{value:"light",label:"Light",Icon:i2},{value:"dark",label:"Dark",Icon:r2},{value:"system",label:"System",Icon:xR}];function fN({theme:e,resolvedTheme:t,onSetTheme:n,glassChrome:a=!1}){const[i,s]=b.useState(!1),l=b.useRef(null),u=t==="dark"?r2:i2;return b.useEffect(()=>{if(!i)return;const h=f=>{l.current&&!l.current.contains(f.target)&&s(!1)},p=f=>{f.key==="Escape"&&s(!1)};return document.addEventListener("mousedown",h),document.addEventListener("keydown",p),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",p)}},[i]),S.jsxs("div",{ref:l,className:"relative",children:[S.jsx("button",{type:"button","aria-label":"Theme","aria-expanded":i,"aria-haspopup":"menu",title:"Theme",onClick:()=>s(h=>!h),className:Pt("inline-flex h-7 w-7 items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",a?"border border-gray-500/20 dark:border-gray-500/30 bg-gray-500/[0.04] dark:bg-gray-500/[0.06] backdrop-blur-[2px] text-oai-gray-700 dark:text-oai-gray-300 hover:bg-gray-500/10 dark:hover:bg-gray-500/12 hover:border-gray-500/30 dark:hover:border-gray-500/40 hover:text-oai-black dark:hover:text-white":"border border-oai-gray-200 dark:border-oai-gray-700 text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white hover:border-oai-gray-300 dark:hover:border-oai-gray-600"),children:S.jsx(u,{className:"h-3.5 w-3.5","aria-hidden":!0})}),i&&S.jsx("div",{role:"menu",className:"absolute bottom-full left-0 mb-2 z-50 min-w-[140px] py-1 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-900 shadow-lg",children:pN.map(({value:h,label:p,Icon:f})=>{const g=e===h;return S.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{n(h),s(!1)},className:Pt("flex w-full items-center gap-2.5 px-3 py-1.5 text-[13px] transition-colors",g?"text-oai-black dark:text-white bg-oai-gray-100 dark:bg-oai-gray-800":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-50 dark:hover:bg-oai-gray-800/60 hover:text-oai-black dark:hover:text-white"),children:[S.jsx(f,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),S.jsx("span",{children:p})]},h)})})]})}function hP({collapsed:e,onToggleCollapsed:t,onItemClick:n,showCloseButton:a=!1,onClose:i,glassChrome:s=!1}){const u=zn()?.pathname||"/",{theme:h,resolvedTheme:p,setTheme:f}=nN(),{resolvedLocale:g}=ql(),v=b.useMemo(()=>dP(),[g]);return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Pt("px-2 pt-2 pb-2",e&&"flex justify-center"),children:a?S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"flex-1 min-w-0",children:S.jsx(xk,{variant:"sidebar",collapsed:e,onAfterAction:n})}),S.jsx("button",{type:"button",onClick:i,"aria-label":fe("nav.close_menu"),title:fe("nav.close_menu"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:S.jsx(ug,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})]}):S.jsx(xk,{variant:"sidebar",collapsed:e,onAfterAction:n})}),S.jsx("nav",{"aria-label":fe("nav.nav_label"),className:"flex-1 px-2 pb-2 flex flex-col overflow-y-auto",children:v.map((k,x)=>S.jsxs("div",{className:"flex flex-col",children:[S.jsx(cN,{label:k.label,collapsed:e,first:x===0}),S.jsx("div",{className:"flex flex-col gap-0.5",children:k.items.filter(C=>!(C.to==="/widgets"&&og())).map(C=>S.jsx(uN,{item:C,collapsed:e,active:lN(u,C.to),onClick:n},C.id))})]},k.id))}),S.jsxs("div",{className:Pt("flex items-center px-2 py-3",e?"flex-col justify-center gap-2":"justify-between gap-2"),children:[S.jsx(fN,{theme:h,resolvedTheme:p,onSetTheme:f,glassChrome:s}),S.jsx("div",{className:"flex items-center gap-1.5",children:!e&&S.jsx(hN,{glassChrome:s})})]})]})}function mN({collapsed:e,onToggleCollapsed:t}){const n=b.useMemo(()=>typeof window>"u"?!1:Aa()||Fd(),[]);return S.jsx("aside",{"aria-label":fe("nav.aside_label"),className:Pt("hidden lg:flex flex-col shrink-0 h-full min-h-0 transition-[width] duration-200",e?"w-[72px]":"w-[220px]"),children:S.jsx(hP,{collapsed:e,onToggleCollapsed:t,glassChrome:n})})}function gN({open:e,onClose:t}){return b.useEffect(()=>{if(!e)return;const n=a=>{a.key==="Escape"&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),b.useEffect(()=>{if(!e)return;const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=n}},[e]),e?S.jsxs("div",{className:"lg:hidden fixed inset-0 z-[80] flex",children:[S.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:t,"aria-hidden":!0}),S.jsx("aside",{"aria-label":fe("nav.aside_label"),className:"relative w-[260px] max-w-[80vw] flex flex-col bg-oai-white dark:bg-oai-gray-900 border-r border-oai-gray-200 dark:border-oai-gray-800 shadow-2xl",children:S.jsx(hP,{collapsed:!1,showCloseButton:!0,onClose:t,onItemClick:t})})]}):null}function yN({onOpenDrawer:e}){return S.jsxs("div",{className:"lg:hidden flex items-center justify-between gap-2 px-3 h-14 border-b border-oai-gray-200 dark:border-oai-gray-800",children:[S.jsx(dN,{title:fe("nav.menu"),onClick:e,children:S.jsx(kR,{className:"h-5 w-5","aria-hidden":!0})}),S.jsxs(Md,{to:"/landing",className:"flex items-center gap-2 no-underline hover:opacity-80 transition-opacity","aria-label":"Token Tracker",children:[S.jsx("img",{src:"/app-icon.png",alt:"",width:24,height:24,className:"rounded-md"}),S.jsx("span",{className:"text-sm font-semibold text-oai-black dark:text-oai-white",children:"Token Tracker"})]}),S.jsx("div",{className:"w-10 shrink-0","aria-hidden":!0})]})}function vN({children:e}){const{collapsed:t,toggle:n}=sN(),[a,i]=b.useState(!1),s=b.useCallback(()=>i(!0),[]),l=b.useCallback(()=>i(!1),[]),u=b.useMemo(()=>typeof window>"u"?!1:Aa()||Fd(),[]);return S.jsxs("div",{className:Pt("fixed inset-0 flex flex-col text-oai-black dark:text-oai-white font-sans overflow-hidden",og()&&"tt-native-glass-shell",u?"bg-transparent":"bg-oai-gray-100 dark:bg-oai-gray-950"),children:[u&&S.jsx("div",{className:"h-7 shrink-0",style:{WebkitAppRegion:"drag"},"aria-hidden":!0}),S.jsxs("div",{className:"flex-1 min-h-0 flex",children:[S.jsx(mN,{collapsed:t,onToggleCollapsed:n}),S.jsx(gN,{open:a,onClose:l}),S.jsx("div",{className:"flex-1 min-w-0 min-h-0 p-2 lg:pl-0 lg:pr-3 lg:pb-3 flex flex-col",children:S.jsxs("div",{className:Pt("flex-1 min-h-0 flex flex-col bg-oai-white dark:bg-oai-gray-900 border border-oai-gray-200 dark:border-oai-gray-800 overflow-hidden",u?"tt-native-main-card":"rounded-2xl",!u&&"shadow-sm"),children:[S.jsx(yN,{onOpenDrawer:s}),S.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:e})]})})]})]})}function bN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})}function _N({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:S.jsx("path",{d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"})})}function kN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"})})}function wN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})})}function xN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})})}function PN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 -1 22 28",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M4.125 20.149c-2.69 5.959 3.036 7.453 7.26 3.966 1.24 3.91 5.898.993 7.569-2.036 3.682-6.678 2.195-13.49 1.813-14.895-2.617-9.582-15.699-9.592-17.95.049-.526 1.687-.535 3.606-.833 5.598-.15 1.005-.256 1.646-.645 2.703-.223.607-.53 1.147-1.014 2.056-.75 1.412-.434 4.138 3.434 2.724v.001ZM11.895 11.332c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.395.9.395 1.578 0 1.283-.493 2.048-1.319 2.048Zm4.416 0c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.396.9.396 1.578 0 1.283-.494 2.048-1.32 2.048Z"})})}function SN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M16 6H8v12h8V6zm4 16H4V2h16v20z"})})}function CN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:[S.jsx("path",{d:"M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"}),S.jsx("path",{d:"M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"})]})}function TN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"})})}function Pk({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 60",fill:"none",className:t,"aria-hidden":"true",children:[S.jsx("path",{fill:"currentColor",d:"M37.2114 3.75318C37.6821 3.33106 37.7106 3.31457 38.0558 3.29385C38.6149 3.2531 39.1272 3.52199 39.9989 4.31564C42.0356 6.16652 44.8714 9.97183 46.6346 13.2212L47.3163 14.4819L48.2782 14.9605C49.2072 15.4299 50.7308 16.3923 51.3672 16.9085C51.655 17.1464 51.6956 17.1508 51.9947 17.0344C53.3454 16.5084 55.2803 17.206 56.9869 18.8432C58.5231 20.3155 59.9943 22.8312 60.558 24.9308C60.6403 25.2687 60.7493 25.9952 60.7891 26.5362C60.9177 28.4358 60.3092 29.9532 59.1362 30.64C58.8965 30.7784 58.8801 30.8158 58.8868 31.4132C58.9409 34.2583 58.1741 37.0985 56.6335 39.8679C54.8946 42.9773 51.7981 46.1938 47.6074 49.2243C45.357 50.8619 40.0323 53.964 37.6248 55.0532C31.8578 57.6496 27.2346 58.646 23.2188 58.154C20.8236 57.8638 18.1124 56.9287 16.5082 55.8433C16.086 55.5515 16.0191 55.5329 15.6966 55.6251C13.9793 56.1185 11.73 55.1053 9.81931 52.9844C9.05725 52.1366 7.82714 50.0548 7.42839 48.9409C6.50606 46.3339 6.68976 43.9816 7.91836 42.5767C8.23573 42.2149 8.2453 42.1995 8.17598 41.5912C8.06148 40.5951 8.00971 39.1206 8.06202 38.1692L8.10361 37.2803L6.76977 34.9212C4.70378 31.2451 3.3912 28.1582 2.88489 25.7998C2.61762 24.5066 2.63385 23.9324 2.96214 23.5078C3.16198 23.2515 3.81796 22.9866 4.60785 22.8407C6.59665 22.4917 10.9334 22.8076 15.7581 23.6595L16.259 23.7458L17.3608 22.7713C19.1891 21.1519 20.4038 20.244 22.6429 18.8478C24.9768 17.3876 27.6108 16.1858 30.577 15.2346L31.5295 14.9294L32.0526 13.5561C33.9257 8.61146 35.8437 4.96584 37.2114 3.75318ZM21.5208 29.0919C19.404 30.314 18.3453 30.9251 17.5676 31.6099C14.4179 34.3835 13.2414 38.777 14.5823 42.7537C14.9135 43.7357 15.5247 44.7942 16.7469 46.9111C17.9691 49.0279 18.5801 50.0865 19.2649 50.8643C22.0385 54.014 26.4316 55.1918 30.4084 53.8509C31.3904 53.5198 32.4489 52.9085 34.5657 51.6863L46.7442 44.6551C48.8613 43.4328 49.9205 42.8214 50.6983 42.1365C53.8479 39.363 55.0245 34.9695 53.6835 30.9927C53.3524 30.0107 52.7412 28.9522 51.519 26.8354C50.2968 24.7185 49.6858 23.66 49.0009 22.8822C46.2274 19.7325 41.8342 18.5547 37.8575 19.8956C36.8754 20.2267 35.8163 20.8383 33.6993 22.0606L21.5208 29.0919Z"}),S.jsx("g",{transform:"rotate(-30 22.6953 37.6011)",children:S.jsx("rect",{x:"22.6953",y:"37.6011",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})}),S.jsx("g",{transform:"rotate(-30 35.6748 30.1074)",children:S.jsx("rect",{x:"35.6748",y:"30.1074",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})})]})}function EN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:[S.jsx("path",{d:"M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z"}),S.jsx("path",{d:"M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z"}),S.jsx("path",{d:"M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z"})]})}function RN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",className:t,children:S.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"})})}function AN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":"true",children:S.jsx("g",{transform:"translate(3.4502, 3)",fill:"#9570BE",children:S.jsx("path",{d:"M3.17890888,3.6 L3.17890888,0 L16,0 L16,3.6 L3.17890888,3.6 Z M9.642,7.2 L9.64218223,10.8 L0,10.8 L0,3.6 L16,3.6 L16,7.2 L9.642,7.2 Z M3.17890888,18 L3.178,14.4 L0,14.4 L0,10.8 L16,10.8 L16,18 L3.17890888,18 Z",fillRule:"nonzero"})})})}function LN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[S.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),S.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),S.jsx("rect",{x:"75",y:"20",width:"12",height:"45",rx:"2"}),S.jsx("rect",{x:"71",y:"55",width:"20",height:"16",rx:"3"}),S.jsx("rect",{x:"76",y:"71",width:"3",height:"8",rx:"1"}),S.jsx("rect",{x:"82",y:"71",width:"3",height:"8",rx:"1"})]})}function DN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[S.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),S.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),S.jsx("rect",{x:"83",y:"20",width:"12",height:"62",rx:"2"})]})}function IN({size:e=16,className:t=""}){return S.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[S.jsx("path",{d:"M9 3v2"}),S.jsx("path",{d:"M15 3v2"}),S.jsx("rect",{x:"4",y:"6",width:"16",height:"13",rx:"3"}),S.jsx("circle",{cx:"9",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),S.jsx("circle",{cx:"15",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),S.jsx("path",{d:"M9 16h6"})]})}function MN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"})})}function NN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M20.113 5.5l-.442 1.557a.157.157 0 01-.196.106l-7.414-2.157a.16.16 0 00-.143.028l-7.342 5.74a.159.159 0 01-.074.032l-4.37.656a.154.154 0 00-.132.162l.02.245c.005.078.071.14.152.141l5.074.128.058.002 3.75-1.953a.16.16 0 01.164.01l2.657 1.847a.152.152 0 01.066.125l-.023 2.45c0 .032.01.063.028.089l3.737 5.227c.03.04.077.065.129.065h1.182a.153.153 0 00.14-.224l-2.664-4.919a.15.15 0 01.005-.152l1.389-2.169a.156.156 0 01.062-.055l4.965-2.456a.16.16 0 01.158.01l1.418.921a.16.16 0 00.087.026h1.289c.125 0 .2-.136.13-.237l-3.578-5.29c-.074-.109-.246-.082-.282.044z"})})}function ON({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M21.595 23.61c1.167-.254 2.405-.944 2.405-.944l-2.167-1.784a12.124 12.124 0 01-2.695-3.131 12.127 12.127 0 00-3.97-4.049l-.794-.462a1.115 1.115 0 01-.488-.815.844.844 0 01.154-.575c.413-.582 2.548-3.115 2.94-3.44.503-.416 1.065-.762 1.586-1.159.074-.056.148-.112.221-.17.003-.002.007-.004.009-.007.167-.131.325-.272.45-.438.453-.524.563-.988.59-1.193-.061-.197-.244-.639-.753-1.148.319.02.705.272 1.056.569.235-.376.481-.773.727-1.171.165-.266-.08-.465-.086-.471h-.001V3.22c-.007-.007-.206-.25-.471-.086-.567.35-1.134.702-1.639 1.021 0 0-.597-.012-1.305.599a2.464 2.464 0 00-.438.45l-.007.009c-.058.072-.114.147-.17.221-.397.521-.743 1.083-1.16 1.587-.323.391-2.857 2.526-3.44 2.94a.842.842 0 01-.574.153 1.115 1.115 0 01-.815-.488l-.462-.794a12.123 12.123 0 00-4.049-3.97 12.133 12.133 0 01-3.13-2.695L1.332 0S.643 1.238.39 2.405c.352.428 1.27 1.49 2.34 2.302C1.58 4.167.73 3.75.06 3.4c-.103.765-.063 1.92.043 2.816.726.317 1.961.806 3.219 1.066-1.006.236-2.11.278-2.961.262.15.554.358 1.119.64 1.688.119.263.25.52.39.77.452.125 2.222.383 3.164.171l-2.51.897a27.776 27.776 0 002.544 2.726c2.031-1.092 2.494-1.241 4.018-2.238-2.467 2.008-3.108 2.828-3.8 3.67l-.483.678c-.25.351-.469.725-.65 1.117-.61 1.31-1.47 4.1-1.47 4.1-.154.486.202.842.674.674 0 0 2.79-.861 4.1-1.47.392-.182.766-.4 1.118-.65l.677-.483c.227-.187.453-.37.701-.586 0 0 1.705 2.02 3.458 3.349l.896-2.511c-.211.942.046 2.712.17 3.163.252.142.509.272.772.392.569.28 1.134.49 1.688.64-.016-.853.026-1.956.261-2.962.26 1.258.75 2.493 1.067 3.219.895.106 2.051.146 2.816.043a73.87 73.87 0 01-1.308-2.67c.811 1.07 1.874 1.988 2.302 2.34h-.001z"})})}function jN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:S.jsx("path",{d:"M0 0v24h24V0H0zm22.222 22.222H1.778V1.778h20.444v20.444zm-7.555-4.964h2.222v1.778h-2.794L12.89 17.83v-2.794h1.778v2.222zm4 0h-1.778v-2.222h-2.222v-1.778h2.793l1.207 1.207v2.793zm-7.556-2.591H9.333v-1.778h1.778v1.778zm-5.778-1.778h1.778v4h4v1.778H6.54L5.333 17.46V12.89zm13.334-3.556v1.778h-5.778V9.333h1.987V7.111h-1.987V5.333h2.558l1.206 1.207v2.793h2.014zm-11.556-2h2.222l1.778 1.778v2H9.333v-2H7.111v2H5.333V5.333h1.778v2zm4 0H9.333v-2h1.778v2z"})})}function UN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,children:S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.125 2.75C2.9179 2.75 2.75 2.9179 2.75 3.125V11.375H2V3.125C2 2.50368 2.50368 2 3.125 2H13.1723C13.6735 2 13.9244 2.6059 13.5701 2.96025L7.38189 9.14843H9.125V8.375H9.875V9.33593C9.875 9.6466 9.6232 9.8984 9.3125 9.8984H6.63189L5.34282 11.1875H11.1875V6.5H11.9375V11.1875C11.9375 11.6017 11.6017 11.9375 11.1875 11.9375H4.59282L3.28032 13.25H12.875C13.0821 13.25 13.25 13.0821 13.25 12.875V4.625H14V12.875C14 13.4963 13.4963 14 12.875 14H2.82767C2.32653 14 2.07557 13.3941 2.42992 13.0397L8.59468 6.875H6.875V7.625H6.125V6.6875C6.125 6.37684 6.37684 6.125 6.6875 6.125H9.34468L10.6571 4.8125H4.8125V9.5H4.0625V4.8125C4.0625 4.39829 4.39829 4.0625 4.8125 4.0625H11.4071L12.7197 2.75H3.125Z"})})}const zN={CLAUDE:bN,ZCODE:MN,CODEBUDDY:Pk,WORKBUDDY:Pk,CODEX:_N,COPILOT:TN,CRAFT:AN,CURSOR:kN,DROID:IN,GEMINI:wN,GITHUB:RN,GOOSE:ON,GROK:xN,HERMES:EN,KIMI:CN,KIRO:PN,KILOCODE:jN,OPENCODE:SN,OMP:LN,PI:DN,ROOCODE:NN,ZED:UN},FN={ANTIGRAVITY:"/brand-logos/antigravity.svg",CLAUDE:"/brand-logos/claude-code.svg",CODEX:"/brand-logos/codex.svg",GEMINI:"/brand-logos/gemini.svg","KILO-CLI":"/brand-logos/kilo.svg","KILO-CODE":"/brand-logos/kilo.svg",MIMO:"/brand-logos/mimo.svg",OPENCLAW:"/brand-logos/openclaw.svg",OPENCODE:"/brand-logos/opencode.svg"};function BN({size:e=16,className:t=""}){return S.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:S.jsx("circle",{cx:"12",cy:"12",r:"7.5",strokeDasharray:"3 3"})})}function VN({provider:e,size:t=16,color:n,className:a=""}){const i=e?.toUpperCase?.()||"",s=FN[i];if(s)return S.jsx("img",{src:s,alt:"",width:t,height:t,className:a,style:{width:t,height:t,objectFit:"contain"},"aria-hidden":!0});const l=zN[i];return l?S.jsx(l,{size:t,className:a}):S.jsx(BN,{size:t,className:`text-oai-gray-400 dark:text-oai-gray-500 shrink-0 ${a}`})}const pP="tokentracker-skills";async function ao(e){const t=new URL(`/functions/${pP}`,window.location.origin);if(e)for(const[i,s]of Object.entries(e))s!=null&&s!==""&&t.searchParams.set(i,String(s));const n=await fetch(t.toString(),{headers:{Accept:"application/json"},cache:"no-store"}),a=await n.json().catch(()=>null);if(!n.ok)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}async function mi(e){const t=await Gl(),n=await fetch(`/functions/${pP}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...t},cache:"no-store",body:JSON.stringify(e)}),a=await n.json().catch(()=>null);if(!n.ok||a?.ok===!1)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}function HN(){return ao({mode:"installed"})}function Pz(e={}){return ao({mode:"discover",...e.force?{force:1}:{}})}function Sz(e,t=0,n=20){return ao({mode:"search",q:e,offset:t,limit:n})}function Cz(){return ao({mode:"repos"})}function Tz(e,t){return mi({action:"install",skill:e,targets:t})}function Ez(e){return mi({action:"uninstall",id:e})}function Rz(e){return mi({action:"restore",id:e})}function Az(e,t){return mi({action:"set_targets",id:e,targets:t})}function Lz(e,t){return mi({action:"import_local",directory:e,targets:t})}function Dz(e,t){return mi({action:"delete_local",directory:e,targets:t||[]})}function Iz(e){return mi({action:"add_repo",repo:e})}function Mz(e,t){return mi({action:"remove_repo",owner:e,name:t})}function Nz(e={}){return ao({mode:"popular",...e.force?{force:1}:{}})}function Oz(e={}){return ao({mode:"updates",...e.force?{force:1}:{}})}function jz(e={}){return ao({mode:"skill_usage",...e.force?{force:1}:{}})}const $N=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function WN(){const e=os(),t=V9(),[n,a]=b.useState(!1),[i,s]=b.useState(""),[l,u]=b.useState(0),[h,p]=b.useState([]),f=b.useRef(null),g=b.useRef(null);b.useEffect(()=>{const E=R=>{(R.metaKey||R.ctrlKey)&&(R.key==="k"||R.key==="K")&&(R.preventDefault(),a(W=>!W))};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[]),b.useEffect(()=>{if(!n)return;s(""),u(0);const E=requestAnimationFrame(()=>f.current?.focus());return $N&&!h.length&&HN().then(R=>p(R?.skills||[])).catch(()=>p([])),()=>cancelAnimationFrame(E)},[n,h.length]);const v=b.useMemo(()=>{const E=dP().flatMap(z=>z.items.map(W=>({kind:"page",id:`page:${W.id}`,label:W.label,sub:fe("cmdk.group.pages"),Icon:W.icon,run:()=>e(W.to)}))),R=(h||[]).map(z=>({kind:"skill",id:`skill:${z.id||z.directory}`,label:z.name||z.directory,sub:z.repoOwner&&z.repoName?`${z.repoOwner}/${z.repoName}`:fe("cmdk.group.skills"),provider:(z.targets||[])[0]||"claude",run:()=>e(`/skills?skill=${encodeURIComponent(z.directory||z.id)}`)}));return[...E,...R]},[e,h]),k=b.useMemo(()=>{const E=i.trim().toLowerCase();return E?v.filter(R=>R.label.toLowerCase().includes(E)||String(R.sub||"").toLowerCase().includes(E)):v},[v,i]);b.useEffect(()=>{l>=k.length&&u(k.length?k.length-1:0)},[l,k.length]),b.useEffect(()=>{if(!n)return;g.current?.querySelector(`[data-cmdk-index="${l}"]`)?.scrollIntoView({block:"nearest"})},[l,n]);const x=b.useCallback(()=>a(!1),[]),C=b.useCallback(E=>{E&&(x(),E.run())},[x]),P=E=>{E.key==="ArrowDown"?(E.preventDefault(),u(R=>Math.min(R+1,Math.max(0,k.length-1)))):E.key==="ArrowUp"?(E.preventDefault(),u(R=>Math.max(R-1,0))):E.key==="Enter"?(E.preventDefault(),C(k[l])):E.key==="Escape"&&(E.preventDefault(),x())},A={duration:t?0:.12},D=t?{duration:0}:{type:"spring",stiffness:460,damping:34,mass:.6};return S.jsx(Nx,{children:n?S.jsxs(Pl.div,{className:"fixed inset-0 z-[120] flex items-start justify-center px-4 pt-[16vh]",initial:t?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:A,children:[S.jsx("button",{type:"button","aria-label":fe("cmdk.close"),onClick:x,className:"absolute inset-0 cursor-default bg-oai-black/40"}),S.jsxs(Pl.div,{role:"dialog","aria-modal":"true","aria-label":fe("cmdk.open_aria"),initial:t?!1:{opacity:0,y:-8,scale:.985},animate:{opacity:1,y:0,scale:1},exit:t?{opacity:0}:{opacity:0,y:-8,scale:.985},transition:D,className:"relative w-full max-w-xl overflow-hidden rounded-2xl border border-oai-gray-200 bg-oai-white shadow-2xl dark:border-oai-gray-800 dark:bg-oai-gray-950",children:[S.jsxs("div",{className:"flex items-center gap-2.5 border-b border-oai-gray-200 px-4 dark:border-oai-gray-800",children:[S.jsx(AR,{className:"h-4 w-4 shrink-0 text-oai-gray-400","aria-hidden":!0}),S.jsx("input",{ref:f,type:"text",value:i,onChange:E=>{s(E.target.value),u(0)},onKeyDown:P,"aria-label":fe("cmdk.placeholder"),"aria-controls":"cmdk-listbox","aria-activedescendant":k[l]?`cmdk-opt-${l}`:void 0,role:"combobox","aria-expanded":"true",placeholder:fe("cmdk.placeholder"),className:"h-12 w-full bg-transparent text-sm text-oai-black placeholder:text-oai-gray-400 focus:outline-none dark:text-white"})]}),S.jsx("div",{ref:g,id:"cmdk-listbox",role:"listbox",className:"max-h-[min(56vh,22rem)] overflow-y-auto p-1.5",children:k.length===0?S.jsx("div",{className:"px-3 py-8 text-center text-sm text-oai-gray-500 dark:text-oai-gray-400",children:fe("cmdk.empty")}):k.map((E,R)=>{const z=R===l;return S.jsxs("button",{type:"button",role:"option",id:`cmdk-opt-${R}`,"data-cmdk-index":R,"aria-selected":z,onMouseMove:()=>u(R),onClick:()=>C(E),className:Pt("flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm transition-colors",z?"bg-oai-gray-100 text-oai-black dark:bg-oai-gray-800/70 dark:text-white":"text-oai-gray-700 dark:text-oai-gray-200"),children:[S.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-oai-gray-500 dark:text-oai-gray-400",children:E.kind==="skill"?S.jsx(VN,{provider:E.provider,size:16}):S.jsx(E.Icon,{className:"h-4 w-4","aria-hidden":!0})}),S.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:E.label}),S.jsx("span",{className:"shrink-0 truncate text-xs text-oai-gray-400 dark:text-oai-gray-500",children:E.sub}),z?S.jsx(dR,{className:"h-3.5 w-3.5 shrink-0 text-oai-gray-400","aria-hidden":!0}):null]},E.id)})})]})]}):null})}const GN=[];function $g(e){b.useEffect(e,GN)}const Sk={};function gs(e,t){const n=b.useRef(Sk);return n.current===Sk&&(n.current=e(t)),n}const KN=()=>{},la=typeof document<"u"?b.useLayoutEffect:KN;function qN(e,t){return function(a,...i){const s=new URL(e);return s.searchParams.set("code",a.toString()),i.forEach(l=>s.searchParams.append("args[]",l)),`${t} error #${a}; visit ${s} for the full message.`}}const ys=qN("https://base-ui.com/production-error","Base UI"),Wg=b.createContext(void 0);function Gg(){const e=b.useContext(Wg);if(!e)throw new Error(ys(73));return e}const Ca=(e,t,n,a,i,s,...l)=>{if(l.length>0)throw new Error(ys(1));let u;if(e&&t&&n&&a&&i&&s)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g),x=n(h,p,f,g),C=a(h,p,f,g),P=i(h,p,f,g);return s(v,k,x,C,P,p,f,g)};else if(e&&t&&n&&a&&i)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g),x=n(h,p,f,g),C=a(h,p,f,g);return i(v,k,x,C,p,f,g)};else if(e&&t&&n&&a)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g),x=n(h,p,f,g);return a(v,k,x,p,f,g)};else if(e&&t&&n)u=(h,p,f,g)=>{const v=e(h,p,f,g),k=t(h,p,f,g);return n(v,k,p,f,g)};else if(e&&t)u=(h,p,f,g)=>{const v=e(h,p,f,g);return t(v,p,f,g)};else if(e)u=e;else throw new Error("Missing arguments");return u};var pf={exports:{}},ff={};var Ck;function YN(){if(Ck)return ff;Ck=1;var e=Ul();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,v){var k=v(),x=a({inst:{value:k,getSnapshot:v}}),C=x[0].inst,P=x[1];return s(function(){C.value=k,C.getSnapshot=v,h(C)&&P({inst:C})},[g,k,v]),i(function(){return h(C)&&P({inst:C}),g(function(){h(C)&&P({inst:C})})},[g]),l(k),k}function h(g){var v=g.getSnapshot;g=g.value;try{var k=v();return!n(g,k)}catch{return!0}}function p(g,v){return v()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return ff.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,ff}var Tk;function fP(){return Tk||(Tk=1,pf.exports=YN()),pf.exports}var ZN=fP(),mf={exports:{}},gf={};var Ek;function XN(){if(Ek)return gf;Ek=1;var e=Ul(),t=fP();function n(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var a=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,h=e.useDebugValue;return gf.useSyncExternalStoreWithSelector=function(p,f,g,v,k){var x=s(null);if(x.current===null){var C={hasValue:!1,value:null};x.current=C}else C=x.current;x=u(function(){function A(W){if(!D){if(D=!0,E=W,W=v(W),k!==void 0&&C.hasValue){var F=C.value;if(k(F,W))return R=F}return R=W}if(F=R,a(E,W))return F;var T=v(W);return k!==void 0&&k(F,T)?(E=W,F):(E=W,R=T)}var D=!1,E,R,z=g===void 0?null:g;return[function(){return A(f())},z===null?void 0:function(){return A(z())}]},[f,g,v,k]);var P=i(p,x[0],x[1]);return l(function(){C.hasValue=!0,C.value=P},[P]),h(P),P},gf}var Rk;function JN(){return Rk||(Rk=1,mf.exports=XN()),mf.exports}var QN=JN();const eO=parseInt(b.version,10);function Kg(e){return eO>=e}const tO=Kg(19),nO=tO?rO:iO;function mP(e,t,n,a,i){return nO(e,t,n,a,i)}function aO(e,t,n,a,i){const s=b.useCallback(()=>t(e.getSnapshot(),n,a,i),[e,t,n,a,i]);return ZN.useSyncExternalStore(e.subscribe,s,s)}function rO(e,t,n,a,i){return aO(e,t,n,a,i)}function iO(e,t,n,a,i){return QN.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,a,i))}class oO{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const a of this.listeners){if(n!==this.updateTick)return;a(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,a,i){return mP(this,t,n,a,i)}}const qg={...Gk},yf=qg.useInsertionEffect,sO=yf&&yf!==qg.useLayoutEffect?yf:e=>e();function Ji(e){const t=gs(lO).current;return t.next=e,sO(t.effect),t.trampoline}function lO(){const e={next:void 0,callback:cO,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function cO(){}function uO(){}const Uz=Object.freeze([]),Bi=Object.freeze({});class dO extends oO{constructor(t,n={},a){super(t),this.context=n,this.selectors=a}useSyncedValue(t,n){b.useDebugValue(t);const a=this;la(()=>{a.state[t]!==n&&a.set(t,n)},[a,t,n])}useSyncedValueWithCleanup(t,n){const a=this;la(()=>(a.state[t]!==n&&a.set(t,n),()=>{a.set(t,void 0)}),[a,t,n])}useSyncedValues(t){const n=this,a=Object.values(t);la(()=>{n.update(t)},[n,...a])}useControlledProp(t,n){b.useDebugValue(t);const a=this,i=n!==void 0;la(()=>{i&&!Object.is(a.state[t],n)&&a.setState({...a.state,[t]:n})},[a,t,n,i])}select(t,n,a,i){const s=this.selectors[t];return s(this.state,n,a,i)}useState(t,n,a,i){return b.useDebugValue(t),mP(this,this.selectors[t],n,a,i)}useContextCallback(t,n){b.useDebugValue(t);const a=Ji(n??uO);this.context[t]=a}useStateSetter(t){const n=b.useRef(void 0);return n.current===void 0&&(n.current=a=>{this.set(t,a)}),n.current}observe(t,n){let a;typeof t=="function"?a=t:a=this.selectors[t];let i=a(this.state);return n(i,i,this),this.subscribe(s=>{const l=a(s);if(!Object.is(i,l)){const u=i;i=l,n(l,u,this)}})}}function Kd(){return typeof window<"u"}function Ia(e){return Yg(e)?(e.nodeName||"").toLowerCase():"#document"}function Cr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hO(e){var t;return(t=(Yg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yg(e){return Kd()?e instanceof Node||e instanceof Cr(e).Node:!1}function Zg(e){return Kd()?e instanceof Element||e instanceof Cr(e).Element:!1}function hi(e){return Kd()?e instanceof HTMLElement||e instanceof Cr(e).HTMLElement:!1}function Cd(e){return!Kd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cr(e).ShadowRoot}function gP(e){const{overflow:t,overflowX:n,overflowY:a,display:i}=qd(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&i!=="inline"&&i!=="contents"}function zz(e){return/^(table|td|th)$/.test(Ia(e))}function pO(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const fO=/transform|translate|scale|rotate|perspective|filter/,mO=/paint|layout|strict|content/,Ii=e=>!!e&&e!=="none";let vf;function gO(e){const t=Zg(e)?qd(e):e;return Ii(t.transform)||Ii(t.translate)||Ii(t.scale)||Ii(t.rotate)||Ii(t.perspective)||!yO()&&(Ii(t.backdropFilter)||Ii(t.filter))||fO.test(t.willChange||"")||mO.test(t.contain||"")}function Fz(e){let t=_m(e);for(;hi(t)&&!yP(t);){if(gO(t))return t;if(pO(t))return null;t=_m(t)}return null}function yO(){return vf==null&&(vf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vf}function yP(e){return/^(html|body|#document)$/.test(Ia(e))}function qd(e){return Cr(e).getComputedStyle(e)}function Bz(e){return Zg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _m(e){if(Ia(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cd(e)&&e.host||hO(e);return Cd(t)?t.host:t}function vP(e){const t=_m(e);return yP(t)?e.ownerDocument?e.ownerDocument.body:e.body:hi(t)&&gP(t)?t:vP(t)}function Ak(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=vP(e),s=i===((a=e.ownerDocument)==null?void 0:a.body),l=Cr(i);if(s){const u=vO(l);return t.concat(l,l.visualViewport||[],gP(i)?i:[],u&&n?Ak(u):[])}else return t.concat(i,Ak(i,[],n))}function vO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bP(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function La(e){return e?.ownerDocument||document}function Vi(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}const _u=null;class bO{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let i=0;i<n.length;i+=1)n[i]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const ku=new bO;class Xg{static create(){return new Xg}static request(t){return ku.request(t)}static cancel(t){return ku.cancel(t)}currentId=_u;request(t){this.cancel(),this.currentId=ku.request(()=>{this.currentId=_u,t()})}cancel=()=>{this.currentId!==_u&&(ku.cancel(this.currentId),this.currentId=_u)};disposeEffect=()=>this.cancel}function _O(){const e=gs(Xg.create).current;return $g(e.disposeEffect),e}const sl=0;class Ol{static create(){return new Ol}currentId=sl;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=sl,n()},t)}isStarted(){return this.currentId!==sl}clear=()=>{this.currentId!==sl&&(clearTimeout(this.currentId),this.currentId=sl)};disposeEffect=()=>this.clear}function kO(){const e=gs(Ol.create).current;return $g(e.disposeEffect),e}let Lk=0;function _P(e){return Lk+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Lk}`}function bf(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const n=e(t);return typeof n=="string"?{description:n}:n}return e}function wO(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:xO,platform:PO,maxTouchPoints:SO}=wO(),Yd=xO.toLowerCase(),jl=PO.toLowerCase(),kP=/^i(os$|p)/.test(jl)||jl==="macintel"&&SO>1,Dk="android",Vz=jl===Dk||Yd.includes(Dk),CO=!kP&&jl.startsWith("mac");jl.startsWith("win");const TO=CO||kP,Jg=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none");!Jg&&Yd.includes("firefox");!Jg&&Yd.includes("chrom");const EO=TO,RO=/jsdom|happydom/.test(Yd),Ik="data-base-ui-focusable",wP="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Hz="ArrowLeft",$z="ArrowRight",Wz="ArrowUp",Gz="ArrowDown";function Yo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Tr(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Cd(n)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function Hi(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Kz(e,t){if(!Zg(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,a]of t.entries())if(Tr(a,n))return!a.hasAttribute("data-trigger-disabled");return!1}function qz(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Yz(e){return e.matches("html,body")}function AO(e){return hi(e)&&e.matches(wP)}function Zz(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${wP}`)!=null}function Xz(e){return e?e.getAttribute("role")==="combobox"&&AO(e):!1}function km(e){if(!e||RO)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Jz(e){return e?e.hasAttribute(Ik)?e:e.querySelector(`[${Ik}]`)||e:null}function Qz(e,t){return t<0||t>=e.length}function eF(e,t){return xP(e.current,{disabledIndices:t})}function tF(e,t){return xP(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function xP(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:a,amount:i=1}={}){let s=t;do s+=n?-i:i;while(s>=0&&s<=e.length-1&&LO(e,s,a));return s}function LO(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const i=e[t];return i?PP(i)?!n&&(i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true"):!0:!1}function DO(e){return e.visibility==="hidden"||e.visibility==="collapse"}function PP(e,t=e?qd(e):null){return!e||!e.isConnected||!t||DO(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const IO='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function MO(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return Cd(n)?n.host:null}function wm(e){for(const t of Array.from(e.children))if(Ia(t)==="summary")return t;return null}function NO(e,t){const n=wm(t);return!!n&&(e===n||Tr(n,e))}function SP(e){const t=e?Ia(e):"";return e!=null&&e.matches(IO)&&(t!=="summary"||e.parentElement!=null&&Ia(e.parentElement)==="details"&&wm(e.parentElement)===e)&&(t!=="details"||wm(e)==null)&&(t!=="input"||e.type!=="hidden")}function CP(e){if(!SP(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=MO(t)){const n=t!==e,a=Ia(t)==="slot";if(t.hasAttribute("inert")||n&&Ia(t)==="details"&&!t.open&&!NO(e,t)||t.hasAttribute("hidden")||!a&&!OO(t,n))return!1}return!0}function OO(e,t){const n=qd(e);return t?n.display!=="none":PP(e,n)}function TP(e){const t=e.tabIndex;if(t<0){const n=Ia(e);if(n==="details"||n==="audio"||n==="video"||hi(e)&&e.isContentEditable)return 0}return t}function _f(e){if(Ia(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function jO(e,t){const n=_f(e);if(!n)return!0;const a=t.find(i=>{const s=_f(i);return s?.name===n.name&&s.form===n.form&&s.checked});return a?a===n:t.find(i=>{const s=_f(i);return s?.name===n.name&&s.form===n.form})===n}function EP(e){if(hi(e)&&Ia(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return hi(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function RP(e,t){EP(e).forEach(n=>{SP(n)&&t.push(n),RP(n,t)})}function AP(e,t,n){EP(e).forEach(a=>{hi(a)&&a.matches(t)&&n.push(a),AP(a,t,n)})}function nF(e){return CP(e)&&TP(e)>=0}function UO(e){const t=[];return RP(e,t),t.filter(CP)}function Qg(e){const t=UO(e);return t.filter(n=>TP(n)>=0&&jO(n,t))}function LP(e,t){const n=Qg(e),a=n.length;if(a===0)return;const i=Yo(La(e)),s=n.indexOf(i),l=s===-1?t===1?0:a-1:s+t;return n[l]}function zO(e){return LP(La(e).body,1)||e}function FO(e){return LP(La(e).body,-1)||e}function DP(e,t){if(!e)return null;const n=Qg(La(e).body),a=n.length;if(a===0)return null;const i=n.indexOf(e);if(i===-1)return null;const s=(i+t+a)%a;return n[s]}function aF(e){return DP(e,1)}function rF(e){return DP(e,-1)}function kf(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!Tr(n,a)}function BO(e){Qg(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Mk(e){const t=[];AP(e,"[data-tabindex]",t),t.forEach(n=>{const a=n.dataset.tabindex;delete n.dataset.tabindex,a?n.setAttribute("tabindex",a):n.removeAttribute("tabindex")})}function wu(e){const t=new Map;let n=0,a=0;return e.forEach((i,s)=>{const l=i.transitionStatus==="ending";t.set(i.id,{value:i,domIndex:s,visibleIndex:l?-1:n,offsetY:a}),a+=i.height||0,l||(n+=1)}),t}function wf(e,t){let n=0;return e.map(a=>{if(a.transitionStatus==="ending")return a;const i=n>=t;return n+=1,a.limited===i?a:{...a,limited:i}})}const xu=e=>e.toastMetadata,$a={toasts:Ca(e=>e.toasts),isEmpty:Ca(e=>e.toasts.length===0),toast:Ca(xu,(e,t)=>e.get(t)?.value),toastIndex:Ca(xu,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:Ca(xu,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:Ca(xu,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:Ca(e=>e.hovering),focused:Ca(e=>e.focused),expanded:Ca(e=>e.hovering||e.focused),expandedOrOutOfFocus:Ca(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:Ca(e=>e.prevFocusElement)};class VO extends dO{timers=new Map;areTimersPaused=!1;constructor(t){super({...t,toastMetadata:wu(t.toasts)},{},$a)}setFocused(t){this.set("focused",t)}setHovering(t){this.set("hovering",t)}setIsWindowFocused(t){this.set("isWindowFocused",t)}setPrevFocusElement(t){this.set("prevFocusElement",t)}setViewport=t=>{this.set("viewport",t)};syncProviderProps(t){const n=this.state.limit!==t.limit;if(this.state.timeout===t.timeout&&!n)return;const a={timeout:t.timeout,limit:t.limit};if(n){const i=wf(this.state.toasts,t.limit);a.toasts=i,a.toastMetadata=wu(i)}this.update(a)}disposeEffect=()=>()=>{this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear()};removeToast(t,n={}){const a=$a.toastIndex(this.state,t);if(a===-1)return;const i=this.state.toasts[a];n.skipOnRemove||i?.onRemove?.();const s=[...this.state.toasts];s.splice(a,1),this.setToasts(s)}addToast=t=>{const{timeout:n,limit:a}=this.state,i=t.id||_P("toast");if(t.id){const h=$a.toast(this.state,t.id);if(h)if(h.transitionStatus==="ending")this.removeToast(t.id,{skipOnRemove:!0});else{const{id:p,transitionStatus:f,...g}=t;return this.updateToastInternal(t.id,g,{resetTimer:!0,markUpdated:!0}),t.id}}const s={...t,id:i,updateKey:0,transitionStatus:"starting"},l=[s,...this.state.toasts];this.setToasts(wf(l,a));const u=s.timeout??n;return s.type!=="loading"&&u>0&&this.scheduleTimer(i,u,()=>this.closeToast(i)),$a.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),i};updateToast=(t,n)=>{this.updateToastInternal(t,n,{markUpdated:!0})};updateToastInternal=(t,n,a={})=>{const{timeout:i,toasts:s}=this.state,l=$a.toast(this.state,t)??null;if(!l||l.transitionStatus==="ending")return;const u={...l,...n,...a.markUpdated&&{updateKey:(l.updateKey??0)+1}};this.setToasts(s.map(C=>C.id===t?u:C));const h=u.timeout??i,p=l?.timeout??i,f=Object.hasOwn(n,"timeout"),g=u.transitionStatus!=="ending"&&u.type!=="loading"&&h>0,v=this.timers.has(t),k=p!==h,x=l?.type==="loading";if(!g&&v){this.clearTimer(t);return}g&&(!v||k||f||x||a.resetTimer)&&(this.clearTimer(t),this.scheduleTimer(t,h,()=>this.closeToast(t)),$a.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=t=>{const n=t===void 0,{limit:a,toasts:i}=this.state;let s;if(n)s=i,this.clearTimers();else{const f=$a.toast(this.state,t);if(!f)return;s=[f],this.clearTimer(t)}const l=i.map(f=>n||f.id===t?{...f,transitionStatus:"ending",height:0}:f),u=wf(l,a),h={toasts:u,toastMetadata:wu(u)};u.some(f=>f.transitionStatus!=="ending")||(h.hovering=!1,h.focused=!1),this.update(h),s.forEach(f=>{f.transitionStatus!=="ending"&&f.onClose?.()}),this.handleFocusManagement(t)};promiseToast=(t,n)=>{const a=bf(n.loading),i=this.addToast({...a,type:"loading"}),s=t.then(l=>{const u=bf(n.success,l);return this.updateToast(i,{...u,type:"success",timeout:u.timeout}),l}).catch(l=>{const u=bf(n.error,l);return this.updateToast(i,{...u,type:"error",timeout:u.timeout}),Promise.reject(l)});return{}.hasOwnProperty.call(n,"setPromise")&&n.setPromise(s),s};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(t=>{if(t.timeout){t.timeout.clear();const n=Date.now()-t.start,a=t.delay-n;t.remaining=a>0?a:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((t,n)=>{t.remaining=t.remaining>0?t.remaining:t.delay,t.timeout??=Ol.create(),t.timeout.start(t.remaining,()=>{this.handleTimerFired(n),t.callback()}),t.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=t=>{if(t.pointerType!=="touch")return;const n=Hi(t);Tr(this.state.viewport,n)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(t,n,a){const i=Date.now(),s=!$a.expandedOrOutOfFocus(this.state),l=s?Ol.create():void 0;l?.start(n,()=>{this.handleTimerFired(t),a()}),this.timers.set(t,{timeout:l,start:s?i:0,delay:n,remaining:n,callback:a})}clearTimers(){this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(t){this.timers.get(t)?.timeout?.clear(),this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(t){this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(t){const n={toasts:t,toastMetadata:wu(t)};t.length===0&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(t){const n=Yo(La(this.state.viewport));if(!this.state.viewport||!Tr(this.state.viewport,n)||!km(n))return;if(t===void 0){this.restoreFocusToPrevElement();return}const a=$a.toasts(this.state),i=$a.toastIndex(this.state,t);let s=null,l=i+1;for(;l<a.length;){if(a[l].transitionStatus!=="ending"){s=a[l];break}l+=1}if(!s)for(l=i-1;l>=0;){if(a[l].transitionStatus!=="ending"){s=a[l];break}l-=1}s?s.ref?.current?.focus():this.restoreFocusToPrevElement()}}const HO=function(t){const{children:n,timeout:a=5e3,limit:i=3,toastManager:s}=t,l=gs(()=>new VO({timeout:a,limit:i,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return $g(l.disposeEffect),b.useEffect(function(){return s?s[" subscribe"](({action:p,options:f})=>{const g=f.id;p==="promise"&&f.promise?l.promiseToast(f.promise,f):p==="update"&&g?l.updateToast(g,f):p==="close"?l.closeToast(g):l.addToast(f)}):void 0},[l,s]),la(()=>{l.syncProviderProps({timeout:a,limit:i})},[l,a,i]),S.jsx(Wg.Provider,{value:l,children:n})},IP={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},MP={...IP,position:"fixed",top:0,left:0},iF={...IP,position:"absolute"},Sl=b.forwardRef(function(t,n){const[a,i]=b.useState();la(()=>{EO&&Jg&&i("button")},[]);const s={tabIndex:0,role:a};return S.jsx("span",{...t,ref:n,style:MP,"aria-hidden":a?void 0:!0,...s,"data-base-ui-focus-guard":""})});function Nk(e,t,n,a){const i=gs(NP).current;return WO(i,e,t,n,a)&&OP(i,[e,t,n,a]),i.callback}function $O(e){const t=gs(NP).current;return GO(t,e)&&OP(t,e),t.callback}function NP(){return{callback:null,cleanup:null,refs:[]}}function WO(e,t,n,a,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==a||e.refs[3]!==i}function GO(e,t){return e.refs.length!==t.length||e.refs.some((n,a)=>n!==t[a])}function OP(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const a=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(a[i]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=a[i];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}function Ok(e){if(!b.isValidElement(e))return null;const t=e,n=t.props;return(Kg(19)?n?.ref:t.ref)??null}function xm(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function KO(e,t){const n={};for(const a in e){const i=e[a];if(t?.hasOwnProperty(a)){const s=t[a](i);s!=null&&Object.assign(n,s);continue}i===!0?n[`data-${a.toLowerCase()}`]="":i&&(n[`data-${a.toLowerCase()}`]=i.toString())}return n}function qO(e,t){return typeof e=="function"?e(t):e}function YO(e,t){return typeof e=="function"?e(t):e}const e0={};function t0(e,t,n,a,i){if(!n&&!a&&!i&&!e)return Td(t);let s=Td(e);return t&&(s=fl(s,t)),n&&(s=fl(s,n)),a&&(s=fl(s,a)),i&&(s=fl(s,i)),s}function ZO(e){if(e.length===0)return e0;if(e.length===1)return Td(e[0]);let t=Td(e[0]);for(let n=1;n<e.length;n+=1)t=fl(t,e[n]);return t}function Td(e){return n0(e)?{...UP(e,e0)}:XO(e)}function fl(e,t){return n0(t)?UP(t,e):JO(e,t)}function XO(e){const t={...e};for(const n in t){const a=t[n];jP(n,a)&&(t[n]=zP(a))}return t}function JO(e,t){if(!t)return e;for(const n in t){const a=t[n];switch(n){case"style":{e[n]=xm(e.style,a);break}case"className":{e[n]=FP(e.className,a);break}default:jP(n,a)?e[n]=QO(e[n],a):e[n]=a}}return e}function jP(e,t){const n=e.charCodeAt(0),a=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&a===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function n0(e){return typeof e=="function"}function UP(e,t){return n0(e)?e(t):e??e0}function QO(e,t){return t?e?(...n)=>{const a=n[0];if(BP(a)){const s=a;Ed(s);const l=t(...n);return s.baseUIHandlerPrevented||e?.(...n),l}const i=t(...n);return e?.(...n),i}:zP(t):e}function zP(e){return e&&((...t)=>{const n=t[0];return BP(n)&&Ed(n),e(...t)})}function Ed(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function FP(e,t){return t?e?t+" "+e:t:e}function BP(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Ql(e,t,n={}){const a=t.render,i=ej(t,n);if(n.enabled===!1)return null;const s=n.state??Bi;return aj(e,a,i,s)}function ej(e,t={}){const{className:n,style:a,render:i}=e,{state:s=Bi,ref:l,props:u,stateAttributesMapping:h,enabled:p=!0}=t,f=p?qO(n,s):void 0,g=p?YO(a,s):void 0,v=p?KO(s,h):Bi,k=p&&u?tj(u):void 0,x=p?xm(v,k)??{}:Bi;return typeof document<"u"&&(p?Array.isArray(l)?x.ref=$O([x.ref,Ok(i),...l]):x.ref=Nk(x.ref,Ok(i),l):Nk(null,null)),p?(f!==void 0&&(x.className=FP(x.className,f)),g!==void 0&&(x.style=xm(x.style,g)),x):Bi}function tj(e){return Array.isArray(e)?ZO(e):t0(void 0,e)}const nj=Symbol.for("react.lazy");function aj(e,t,n,a){if(t){if(typeof t=="function")return t(n,a);const i=t0(n,t.props);i.ref=n.ref;let s=t;return s?.$$typeof===nj&&(s=b.Children.toArray(t)[0]),b.cloneElement(s,i)}if(e&&typeof e=="string")return rj(e,n);throw new Error(ys(8))}function rj(e,t){return e==="button"?b.createElement("button",{type:"button",...t,key:t.key}):e==="img"?b.createElement("img",{alt:"",...t,key:t.key}):b.createElement(e,t)}let ij=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const oj=b.forwardRef(function(t,n){const{render:a,className:i,style:s,children:l,...u}=t,h=Gg(),p=kO(),f=b.useRef(!1),g=b.useRef(!1),v=b.useRef(!1),k=h.useState("isEmpty"),x=h.useState("toasts"),C=h.useState("focused"),P=h.useState("expanded"),A=h.useState("prevFocusElement"),D=x[0]?.height??0,E=b.useMemo(()=>x.some(B=>B.transitionStatus==="ending"),[x]),R=b.useMemo(()=>x.filter(B=>B.priority==="high"),[x]);b.useEffect(()=>{const B=h.state.viewport;if(!B)return;function X(M){k||M.key==="F6"&&Hi(M)!==B&&(M.preventDefault(),h.setPrevFocusElement(Yo(La(B))),B?.focus({preventScroll:!0}),h.pauseTimers(),h.setFocused(!0))}const V=Cr(B);return Vi(V,"keydown",X)},[h,k]),b.useEffect(()=>{const B=h.state.viewport;if(!B||k)return;const X=Cr(B);function V(Z){Hi(Z)===X&&(h.setIsWindowFocused(!1),h.pauseTimers())}function M(Z){if(Z.relatedTarget)return;const be=Hi(Z),he=Yo(La(B));(be===X||!Tr(B,be)||!km(he))&&h.resumeTimers(),p.start(0,()=>h.setIsWindowFocused(!0))}return bP(Vi(X,"blur",V,!0),Vi(X,"focus",M,!0))},[h,p,k]),b.useEffect(()=>{const B=h.state.viewport;if(!B||k)return;const X=La(B);return Vi(X,"pointerdown",h.handleDocumentPointerDown,!0)},[k,h]);function z(B){const X=h.state.viewport;if(X)if(f.current=!0,B.relatedTarget===X){const V=x.find(M=>M.transitionStatus!=="ending"&&!M.limited);V?V.ref?.current?.focus():h.restoreFocusToPrevElement()}else h.restoreFocusToPrevElement()}function W(B){B.key==="Tab"&&B.shiftKey&&Hi(B.nativeEvent)===h.state.viewport&&(B.preventDefault(),h.restoreFocusToPrevElement(),h.resumeTimers())}function F(){h.state.toasts.some(X=>X.transitionStatus==="ending")||v.current||!g.current||(h.state.isWindowFocused&&h.resumeTimers(),h.setHovering(!1),g.current=!1)}b.useEffect(F,[E,h]);function T(){h.pauseTimers(),h.setHovering(!0),g.current=!1}function $(){h.state.isWindowFocused&&h.resumeTimers()}function q(){h.state.toasts.some(X=>X.transitionStatus==="ending")||v.current?g.current=!0:($(),h.setHovering(!1))}function re(B){B.pointerType==="touch"&&(v.current=!0)}function se(B){B.pointerType==="touch"&&(v.current=!1,F())}function Se(){if(f.current){f.current=!1;return}C||km(Yo(La(h.state.viewport)))&&(h.setFocused(!0),h.pauseTimers())}function pe(B){!C||Tr(h.state.viewport,B.relatedTarget)||(h.setFocused(!1),$())}const ue={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:T,onMouseMove:T,onMouseLeave:q,onFocus:Se,onBlur:pe,onKeyDown:W,onClick:Se,onPointerDown:re,onPointerUp:se,onPointerCancel:se},ie={expanded:P},ge=Ql("div",t,{ref:[n,h.setViewport],state:ie,props:[ue,{style:{[ij.frontmostHeight]:D?`${D}px`:void 0}},u,{children:S.jsxs(b.Fragment,{children:[!k&&A&&S.jsx(Sl,{onFocus:z}),l,!k&&A&&S.jsx(Sl,{onFocus:z})]})}]});return S.jsxs(b.Fragment,{children:[!k&&A&&S.jsx(Sl,{onFocus:z}),ge,!C&&R.length>0&&S.jsx("div",{style:MP,children:R.map(B=>S.jsxs("div",{role:"alert","aria-atomic":!0,children:[S.jsx("div",{children:B.title}),S.jsx("div",{children:B.description})]},B.id))})]})});function sj(e){return Kg(19)?e:e?"true":void 0}const VP=b.createContext(void 0);function HP(){const e=b.useContext(VP);if(!e)throw new Error(ys(66));return e}let a0=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const lj={[a0.startingStyle]:""},cj={[a0.endingStyle]:""},uj={transitionStatus(e){return e==="starting"?lj:e==="ending"?cj:null}};function dj(e){return e==null?e:"current"in e?e.current:e}function hj(e,t=!1,n=!0){const a=_O();return Ji((i,s=null)=>{a.cancel();const l=dj(e);if(l==null)return;const u=l,h=()=>{ss.flushSync(i)};if(typeof u.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function p(){Promise.all(u.getAnimations().map(f=>f.finished)).then(()=>{s?.aborted||h()}).catch(()=>{if(n){s?.aborted||h();return}const f=u.getAnimations();!s?.aborted&&f.length>0&&f.some(g=>g.pending||g.playState!=="finished")&&p()})}if(t){const f=a0.startingStyle;if(!u.hasAttribute(f)){a.request(p);return}const g=new MutationObserver(()=>{u.hasAttribute(f)||(g.disconnect(),p())});g.observe(u,{attributes:!0,attributeFilter:[f]}),s?.addEventListener("abort",()=>g.disconnect(),{once:!0});return}a.request(p)})}function pj(e){const{enabled:t=!0,open:n,ref:a,onComplete:i}=e,s=Ji(i),l=hj(a,n,!1);b.useEffect(()=>{if(!t)return;const u=new AbortController;return l(s,u.signal),()=>{u.abort()}},[t,n,s,l])}let Mi=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const oF=500,sF={style:{transition:"none"}},lF="data-base-ui-click-trigger",fj="data-base-ui-swipe-ignore",mj="data-swipe-ignore",gj=`[${fj}]`,yj=`[${mj}]`,cF={fallbackAxisSide:"none"},uF={fallbackAxisSide:"end"},vj={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function jk(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}function bj(e){const n=Cr(e).getComputedStyle(e).transform;let a=0,i=0,s=1;if(n&&n!=="none"){const l=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(l){const u=l[1].split(", ").map(parseFloat);u.length===6?(a=u[4],i=u[5],s=Math.sqrt(u[0]*u[0]+u[1]*u[1])):u.length===16&&(a=u[12],i=u[13],s=u[0])}}return{x:a,y:i,scale:s}}const _j={...uj,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},ll=40,kj=10,ti=.5,wj=1,xj=`${gj},${yj}`,Pj=b.forwardRef(function(t,n){const{toast:a,render:i,className:s,swipeDirection:l=["down","right"],style:u,...h}=t,p=a.positionerProps?.anchor!==void 0;let f=[];p||(f=Array.isArray(l)?l:[l]);const g=f.length>0,v=Gg(),[k,x]=b.useState(void 0),[C,P]=b.useState(!1),[A,D]=b.useState(!1),[E,R]=b.useState(!1),[z,W]=b.useState({x:0,y:0}),[F,T]=b.useState({x:0,y:0,scale:1}),[$,q]=b.useState(),[re,se]=b.useState(),[Se,pe]=b.useState(null),ue=b.useRef(null),ie=b.useRef({x:0,y:0}),ge=b.useRef({x:0,y:0,scale:1}),B=b.useRef(void 0),X=b.useRef(0),V=b.useRef(!1),M=b.useRef({x:0,y:0}),Z=b.useRef(!1),be=b.useRef({x:0,y:0}),he=b.useRef(null),de=b.useRef(null),ye=v.useState("toastIndex",a.id),Be=v.useState("toastVisibleIndex",a.id),Ke=v.useState("toastOffsetY",a.id),Ne=v.useState("focused"),At=v.useState("expanded");pj({open:a.transitionStatus!=="ending",ref:ue,onComplete(){a.transitionStatus==="ending"&&v.removeToast(a.id)}});const qt=Ji((Ge=!1)=>{const We=ue.current;if(!We)return;const dt=We.style.height;We.style.height="auto";const Nt=We.offsetHeight;We.style.height=dt;function kt(){v.updateToastInternal(a.id,{ref:ue,height:Nt,...a.transitionStatus==="starting"?{transitionStatus:void 0}:{}})}Ge?ss.flushSync(kt):kt()});la(qt,[qt]);function sn(Ge){be.current=Ge,W(Ge)}la(()=>()=>{de.current?.abort()},[]);function pt(Ge,We){let dt=Ge,Nt=We;return!f.includes("left")&&!f.includes("right")?dt=Ge>0?Ge**ti:-(Math.abs(Ge)**ti):(!f.includes("right")&&Ge>0&&(dt=Ge**ti),!f.includes("left")&&Ge<0&&(dt=-(Math.abs(Ge)**ti))),!f.includes("up")&&!f.includes("down")?Nt=We>0?We**ti:-(Math.abs(We)**ti):(!f.includes("down")&&We>0&&(Nt=We**ti),!f.includes("up")&&We<0&&(Nt=-(Math.abs(We)**ti))),{x:dt,y:Nt}}const Ut=Ji(Ge=>{if(Ge.pointerId!==he.current)return;he.current=null,de.current?.abort(),de.current=null,P(!1),D(!1),pe(null);const We=ge.current;if(Ge.type==="pointercancel"||V.current){sn({x:We.x,y:We.y}),x(void 0);return}let dt=!1;const Nt=be.current,kt=Nt.x-We.x,vt=Nt.y-We.y;let ft;for(const ma of f){switch(ma){case"right":kt>ll&&(dt=!0,ft="right");break;case"left":kt<-ll&&(dt=!0,ft="left");break;case"down":vt>ll&&(dt=!0,ft="down");break;case"up":vt<-ll&&(dt=!0,ft="up");break}if(dt)break}dt?(x(ft),R(!0),v.closeToast(a.id)):(sn({x:We.x,y:We.y}),x(void 0))});function lr(Ge){if(Ge.button!==0)return;Ge.pointerType==="touch"&&v.pauseTimers();const We=Hi(Ge.nativeEvent);if(We?We.closest(`button,a,input,textarea,[role="button"],${xj}`):!1)return;if(V.current=!1,B.current=void 0,X.current=0,he.current=Ge.pointerId,ie.current={x:Ge.clientX,y:Ge.clientY},M.current=ie.current,ue.current){const kt=bj(ue.current);ge.current=kt,T(kt),sn({x:kt.x,y:kt.y})}v.setHovering(!0),P(!0),D(!1),pe(null),Z.current=!0;const Nt=ue.current;if(Nt){de.current?.abort();const kt=new AbortController;de.current=kt;const vt=La(Nt);vt.addEventListener("pointerup",Ut,{signal:kt.signal}),vt.addEventListener("pointercancel",Ut,{signal:kt.signal}),Nt.setPointerCapture?.(Ge.pointerId)}}function Er(Ge){if(Ge.pointerId!==he.current)return;Ge.preventDefault(),Z.current&&(ie.current={x:Ge.clientX,y:Ge.clientY},Z.current=!1);const{clientY:We,clientX:dt,movementX:Nt,movementY:kt}=Ge;(kt<0&&We>M.current.y||kt>0&&We<M.current.y)&&(M.current={x:M.current.x,y:We}),(Nt<0&&dt>M.current.x||Nt>0&&dt<M.current.x)&&(M.current={x:dt,y:M.current.y});const vt=dt-ie.current.x,ft=We-ie.current.y,ma=We-M.current.y,vs=dt-M.current.x;if(!A&&Math.sqrt(vt*vt+ft*ft)>=wj&&(D(!0),Se===null)){const ga=f.includes("left")||f.includes("right"),gi=f.includes("up")||f.includes("down");if(ga&&gi){const Rr=Math.abs(vt),Bn=Math.abs(ft);pe(Rr>Bn?"horizontal":"vertical")}}let en;if(!B.current)Se==="vertical"?ft>0?en="down":ft<0&&(en="up"):Se==="horizontal"?vt>0?en="right":vt<0&&(en="left"):Math.abs(vt)>=Math.abs(ft)?en=vt>0?"right":"left":en=ft>0?"down":"up",en&&f.includes(en)&&(B.current=en,X.current=jk(en,vt,ft),x(en));else{const Oa=B.current,ga=jk(Oa,vs,ma);ga>ll?(V.current=!1,x(Oa)):!(f.includes("left")&&f.includes("right"))&&!(f.includes("up")&&f.includes("down"))&&X.current-ga>=kj&&(V.current=!0)}const cr=pt(vt,ft);let wn=ge.current.x,Na=ge.current.y;Se==="horizontal"?(f.includes("left")||f.includes("right"))&&(wn+=cr.x):(Se==="vertical"||(f.includes("left")||f.includes("right"))&&(wn+=cr.x),(f.includes("up")||f.includes("down"))&&(Na+=cr.y)),sn({x:wn,y:Na})}function Mt(Ge){if(Ge.key==="Escape"){if(!ue.current||!Tr(ue.current,Yo(La(ue.current))))return;v.closeToast(a.id)}}b.useEffect(()=>{if(!g)return;const Ge=ue.current;if(!Ge)return;function We(dt){he.current===null||!Tr(Ge,Hi(dt))||dt.preventDefault()}return Vi(Ge,"touchmove",We,{passive:!1})},[g]);function qe(){if(!C&&z.x===F.x&&z.y===F.y&&!E)return{[Mi.swipeMovementX]:"0px",[Mi.swipeMovementY]:"0px"};const Ge=z.x-F.x,We=z.y-F.y;return{transition:C?"none":void 0,transform:C?`translateX(${z.x}px) translateY(${z.y}px) scale(${F.scale})`:void 0,[Mi.swipeMovementX]:`${Ge}px`,[Mi.swipeMovementY]:`${We}px`}}const nt=a.priority==="high",Lt={role:nt?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":$,"aria-describedby":re,"aria-hidden":nt&&!Ne?!0:void 0,onPointerDown:g?lr:void 0,onPointerMove:g?Er:void 0,onPointerUp:g?Ut:void 0,onPointerCancel:g?Ut:void 0,onKeyDown:Mt,inert:sj(a.limited),style:{...qe(),[Mi.index]:a.transitionStatus==="ending"?ye:Be,[Mi.offsetY]:`${Ke}px`,[Mi.height]:a.height?`${a.height}px`:void 0}},St=b.useMemo(()=>({rootRef:ue,toast:a,titleId:$,setTitleId:q,descriptionId:re,setDescriptionId:se,swiping:C,swipeDirection:k,recalculateHeight:qt,index:ye,visibleIndex:Be,expanded:At}),[a,$,re,C,k,qt,ye,Be,At]),Ln={transitionStatus:a.transitionStatus,expanded:At,limited:a.limited||!1,type:a.type,swiping:St.swiping,swipeDirection:St.swipeDirection},ro=Ql("div",t,{ref:[n,St.rootRef],state:Ln,stateAttributesMapping:_j,props:[Lt,h]});return S.jsx(VP.Provider,{value:St,children:ro})});let Uk=0;function Sj(e,t="mui"){const[n,a]=b.useState(e),i=e||n;return b.useEffect(()=>{n==null&&(Uk+=1,a(`${t}-${Uk}`))},[n,t]),i}const zk=qg.useId;function $P(e,t){if(zk!==void 0){const n=zk();return e??(t?`${t}-${n}`:n)}return Sj(e,t)}const Cj=b.forwardRef(function(t,n){const{render:a,className:i,style:s,id:l,children:u,...h}=t,{toast:p,setTitleId:f}=HP(),g=u??p.title,v=!!g,k=$P(l);la(()=>{if(v)return f(k),()=>{f(void 0)}},[v,k,f]);const x={type:p.type},C=Ql("h2",t,{ref:n,state:x,props:{...h,id:k,children:g}});return v?C:null}),Tj=b.createContext(void 0);function Ej(e=!1){const t=b.useContext(Tj);if(t===void 0&&!e)throw new Error(ys(16));return t}function Rj(e){const{focusableWhenDisabled:t,disabled:n,composite:a=!1,tabIndex:i=0,isNativeButton:s}=e,l=a&&t!==!1,u=a&&t===!1;return{props:b.useMemo(()=>{const p={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return a||(p.tabIndex=i,!s&&n&&(p.tabIndex=t?i:-1)),(s&&(t||l)||!s&&n)&&(p["aria-disabled"]=n),s&&(!t||u)&&(p.disabled=n),p},[a,n,t,l,u,s,i])}}function Aj(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:a=0,native:i=!0,composite:s}=e,l=b.useRef(null),u=Ej(!0),h=s??u!==void 0,{props:p}=Rj({focusableWhenDisabled:n,disabled:t,composite:h,tabIndex:a,isNativeButton:i}),f=b.useCallback(()=>{const k=l.current;xf(k)&&h&&t&&p.disabled===void 0&&k.disabled&&(k.disabled=!1)},[t,p.disabled,h]);la(f,[f]);const g=b.useCallback((k={})=>{const{onClick:x,onMouseDown:C,onKeyUp:P,onKeyDown:A,onPointerDown:D,...E}=k;return t0({onClick(R){if(t){R.preventDefault();return}x?.(R)},onMouseDown(R){t||C?.(R)},onKeyDown(R){if(t||(Ed(R),A?.(R),R.baseUIHandlerPrevented))return;const z=R.target===R.currentTarget,W=R.currentTarget,F=xf(W),T=!i&&Lj(W),$=z&&(i?F:!T),q=R.key==="Enter",re=R.key===" ",se=W.getAttribute("role"),Se=se?.startsWith("menuitem")||se==="option"||se==="gridcell";if(z&&h&&re){if(R.defaultPrevented&&Se)return;R.preventDefault(),T||i&&F?(W.click(),R.preventBaseUIHandler()):$&&(x?.(R),R.preventBaseUIHandler());return}$&&(!i&&(re||q)&&R.preventDefault(),!i&&q&&x?.(R))},onKeyUp(R){if(!t){if(Ed(R),P?.(R),R.target===R.currentTarget&&i&&h&&xf(R.currentTarget)&&R.key===" "){R.preventDefault();return}R.baseUIHandlerPrevented||R.target===R.currentTarget&&!i&&!h&&R.key===" "&&x?.(R)}},onPointerDown(R){if(t){R.preventDefault();return}D?.(R)}},i?{type:"button"}:{role:"button"},p,E)},[t,p,h,i]),v=Ji(k=>{l.current=k,f()});return{getButtonProps:g,buttonRef:v}}function xf(e){return hi(e)&&e.tagName==="BUTTON"}function Lj(e){return!!(e?.tagName==="A"&&e?.href)}const Dj=b.forwardRef(function(t,n){const{render:a,className:i,style:s,disabled:l,nativeButton:u=!0,...h}=t,p=Gg(),{toast:f}=HP(),g=p.useState("expanded"),[v,k]=b.useState(!1),{getButtonProps:x,buttonRef:C}=Aj({disabled:l,native:u}),P={type:f.type};return Ql("button",t,{ref:[n,C],state:P,props:[{"aria-hidden":!g&&!v,onClick(){p.closeToast(f.id)},onFocus(){k(!0)},onBlur(){k(!1)}},h,x]})}),dF="none",hF="trigger-press",pF="trigger-hover",fF="outside-press",mF="item-press",gF="close-press",Ij="focus-out",yF="escape-key",vF="list-navigation",bF="cancel-open",_F="imperative-action",kF="window-resize";function Mj(e,t,n,a){let i=!1,s=!1;const l=Bi;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...l}}function Nj(e){return`data-base-ui-${e}`}const WP=b.createContext(null),Oj=()=>b.useContext(WP),jj=Nj("portal");function GP(e={}){const{ref:t,container:n,componentProps:a=Bi,elementProps:i}=e,s=$P(),u=Oj()?.portalNode,[h,p]=b.useState(null),[f,g]=b.useState(null),v=Ji(P=>{P!==null&&g(P)}),k=b.useRef(null);la(()=>{if(n===null){k.current&&(k.current=null,g(null),p(null));return}if(s==null)return;const P=(n&&(Yg(n)?n:n.current))??u??document.body;if(P==null){k.current&&(k.current=null,g(null),p(null));return}k.current!==P&&(k.current=P,g(null),p(P))},[n,u,s]);const x=Ql("div",a,{ref:[t,v],props:[{id:s,[jj]:""},i]});return{portalNode:f,portalSubtree:h&&x?ss.createPortal(x,h):null}}const wF=b.forwardRef(function(t,n){const{render:a,className:i,style:s,children:l,container:u,renderGuards:h,...p}=t,{portalNode:f,portalSubtree:g}=GP({container:u,ref:n,componentProps:t,elementProps:p}),v=b.useRef(null),k=b.useRef(null),x=b.useRef(null),C=b.useRef(null),[P,A]=b.useState(null),D=b.useRef(!1),E=P?.modal,R=P?.open,z=typeof h=="boolean"?h:!!P&&!P.modal&&P.open&&!!f;b.useEffect(()=>{if(!f||E)return;function F(T){f&&T.relatedTarget&&kf(T)&&(T.type==="focusin"?D.current&&(Mk(f),D.current=!1):(BO(f),D.current=!0))}return bP(Vi(f,"focusin",F,!0),Vi(f,"focusout",F,!0))},[f,E]),la(()=>{!f||R!==!0||!D.current||(Mk(f),D.current=!1)},[R,f]);const W=b.useMemo(()=>({beforeOutsideRef:v,afterOutsideRef:k,beforeInsideRef:x,afterInsideRef:C,portalNode:f,setFocusManagerState:A}),[f]);return S.jsxs(b.Fragment,{children:[g,S.jsxs(WP.Provider,{value:W,children:[z&&f&&S.jsx(Sl,{"data-type":"outside",ref:v,onFocus:F=>{if(kf(F,f))x.current?.focus();else{const T=P?P.domReference:null;FO(T)?.focus()}}}),z&&f&&S.jsx("span",{"aria-owns":f.id,style:vj}),f&&ss.createPortal(l,f),z&&f&&S.jsx(Sl,{"data-type":"outside",ref:k,onFocus:F=>{if(kf(F,f))C.current?.focus();else{const T=P?P.domReference:null;zO(T)?.focus(),P?.closeOnFocusOut&&P?.onOpenChange(!1,Mj(Ij,F.nativeEvent))}}})]})]})}),Uj=b.forwardRef(function(t,n){const{children:a,container:i,className:s,render:l,style:u,...h}=t,{portalNode:p,portalSubtree:f}=GP({container:i,ref:n,componentProps:t,elementProps:h});return!f&&!p?null:S.jsxs(b.Fragment,{children:[f,p&&ss.createPortal(a,p)]})}),zj=Uj;function Fj(){const e=b.useContext(Wg);if(!e)throw new Error(ys(73));const t=e.useState("toasts");return b.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function Bj(){const e=new Set;function t(n){e.forEach(a=>a(n))}return{" subscribe":function(a){return e.add(a),()=>{e.delete(a)}},add(n){const a=n.id||_P("toast"),i={...n,id:a,transitionStatus:"starting"};return t({action:"add",options:i}),a},close(n){t({action:"close",options:{id:n}})},update(n,a){t({action:"update",options:{...a,id:n}})},promise(n,a){let i=n;return t({action:"promise",options:{...a,promise:n,setPromise(s){i=s}}}),i}}}const r0=Bj();function xF(e){return r0.add(e)}function Vj({children:e}){return S.jsxs(HO,{toastManager:r0,children:[e,S.jsx(zj,{children:S.jsx(oj,{className:"fixed inset-x-0 top-6 z-[100] mx-auto flex w-full max-w-sm flex-col items-center gap-2 px-4 outline-none",children:S.jsx(Hj,{})})})]})}function Hj(){const{toasts:e}=Fj();return e.map(t=>{const n=t.data?.onUndo;return S.jsxs(Pj,{toast:t,className:Pt("pointer-events-auto flex w-full items-center gap-3 rounded-xl border border-oai-gray-200 bg-oai-white px-4 py-3 shadow-xl transition-all duration-200 ease-out","data-[starting-style]:-translate-y-3 data-[starting-style]:opacity-0","data-[ending-style]:-translate-y-3 data-[ending-style]:opacity-0","dark:border-oai-gray-800 dark:bg-oai-gray-900"),children:[S.jsx(Cj,{className:"min-w-0 flex-1 text-sm font-medium text-oai-black dark:text-white"}),n?S.jsx("button",{type:"button",onClick:()=>{n(),r0.close(t.id)},className:"shrink-0 rounded-md px-2 py-1 text-xs font-semibold text-oai-gray-600 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:text-oai-gray-300 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:fe("shared.action.undo")}):null,S.jsx(Dj,{"aria-label":fe("shared.action.dismiss"),className:"-mr-1 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-oai-gray-400 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:S.jsx(ug,{className:"h-3.5 w-3.5","aria-hidden":!0})})]},t.id)})}const i0=Object.freeze(["limits","leaderboard"]),$j=Object.freeze({limits:"/limits",leaderboard:"/leaderboard"}),Wj=Object.freeze({limits:()=>_n(()=>import("./LimitsPage-B6cYrodR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),leaderboard:()=>_n(()=>import("./LeaderboardPage-Ctco-Kdt.js"),__vite__mapDeps([8,9,10,11,12,13]))}),KP="total",qP=0,Fk=20,Gj=Object.freeze([10,20,50,100]),Kj="tokentracker:leaderboard:pageSize",qj=20,Yj=Object.freeze(["dashboard-existing","silent-preload","page-load","manual-refresh"]);let Bk=0,da;class Zj{constructor(t={}){this.limits=null,this.leaderboard=new Map,this.leaderboardMaxEntries=Qj(t.leaderboardMaxEntries)}read(t,n){return ec(t),t==="limits"?!this.limits||this.limits.contextKey!==n?null:Gu(this.limits):n?Gu(this.leaderboard.get(n)):null}write(t,n={}){if(t.targetKey==="limits"){this.limits=t;return}this.leaderboard.has(t.contextKey)&&this.leaderboard.delete(t.contextKey),this.leaderboard.set(t.contextKey,t),this.evictLeaderboardEntries(n.activeContextKey||t.contextKey)}evictLeaderboardEntries(t=null){for(;this.leaderboard.size>this.leaderboardMaxEntries;){const n=Array.from(this.leaderboard.keys()).find(a=>a!==t)||this.leaderboard.keys().next().value;this.leaderboard.delete(n)}}snapshot(){return{limits:Gu(this.limits),leaderboard:{maxEntries:this.leaderboardMaxEntries,size:this.leaderboard.size,keys:Array.from(this.leaderboard.keys())}}}}class Xj{constructor(t={}){Bk+=1,this.sessionId=`dashboard-preload-${Bk}`,this.createdAt=Date.now(),this.completedAt=null,this.startedAfterMainContentVisible=!1,this.cache=new Zj(t),this.targets={limits:Vk("limits"),leaderboard:Vk("leaderboard")}}}function Vk(e){return{key:e,route:$j[e],resourceStatus:"idle",stateStatus:"idle",error:null,resourcePromise:null,resourceModule:null,resourceRequestId:0,statePromise:null,stateRequestId:0,pendingStateContextKey:null}}function Jj(e={}){return new Xj(e)}function Qj(e){const t=Number(e);return!Number.isInteger(t)||t<1?qj:t}da=Jj();function ec(e){if(!i0.includes(e))throw new Error(`Unknown dashboard preload target: ${e}`)}function YP(e){return e?typeof e=="string"?e:e.message||String(e):null}function eU(e,t){return Yj.includes(e)?e:t}function tU(e){const t=Number(e);return Number.isFinite(t)?t:Date.now()}function Gu(e){return e?{...e}:null}function Hk(){const e=i0.every(t=>{const n=da.targets[t];return n.resourceStatus==="fulfilled"||n.resourceStatus==="rejected"});da.completedAt=e?Date.now():null}function nU(){da.startedAfterMainContentVisible=!0}function o0(e,t={}){ec(e);const n=Object.entries(t).filter(([,a])=>a!==void 0).sort(([a],[i])=>a.localeCompare(i)).map(([a,i])=>`${a}=${i===null?"null":String(i)}`);return`${e}:${n.join("|")}`}function aU(e,t={}){ec(e);const n=da.targets[e];if(n.resourceStatus==="fulfilled")return Promise.resolve(n.resourceModule);if(n.resourceStatus==="pending"&&n.resourcePromise)return n.resourcePromise;const a=t.loader||Wj[e],i=n.resourceRequestId+1;n.resourceRequestId=i,n.resourceStatus="pending",n.error=null;const s=Promise.resolve().then(()=>a()).then(l=>n.resourceRequestId!==i||n.resourcePromise!==s?null:(n.resourceStatus="fulfilled",n.resourceModule=l,n.error=null,Hk(),l)).catch(l=>(n.resourceRequestId!==i||n.resourcePromise!==s||(n.resourceStatus="rejected",n.error=YP(l),Hk()),null));return n.resourcePromise=s,s}function rU(e={}){const t=e.loaders||{};return Promise.all(i0.map(n=>aU(n,{loader:t[n]})))}function ZP(e,t){ec(e);const n=da.targets[e],a=t?.status||"fulfilled",i={targetKey:e,status:a,data:t?.data??null,error:YP(t?.error),source:eU(t?.source,"silent-preload"),generatedAt:tU(t?.generatedAt),updatedAt:Date.now(),contextKey:t?.contextKey||o0(e,t?.context||{})};return n.stateStatus=a,a==="rejected"||a==="skipped"?n.error=i.error:a==="fulfilled"&&(n.error=null,da.cache.write(i,{activeContextKey:t?.activeContextKey})),Gu(i)}function XP(e,t){return ec(e),da.cache.read(e,t)}function PF(e,t={}){return ZP("limits",{data:e,source:t.source||"dashboard-existing",contextKey:t.contextKey||JP(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function JP(e={}){return o0("limits",{state:"current",...e})}function SF(e=JP()){return XP("limits",e)}function Pm(e,t={}){return ZP("leaderboard",{activeContextKey:t.activeContextKey,data:e,source:t.source||"silent-preload",contextKey:t.contextKey||s0(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function iU(e){return XP("leaderboard",e)}function QP(){if(typeof window>"u")return Fk;try{const e=window.localStorage.getItem(Kj),t=Number(e);if(Gj.includes(t))return t}catch{}return Fk}function e3(e={}){const t=e.userId;return t!==void 0?t||null:e.cloudUser?.id||null}function t3(e={}){return typeof e.accessMode=="string"&&e.accessMode.trim()?e.accessMode.trim():e.mockEnabled?"mock":e.baseUrl?"cloud":"unavailable"}function s0(e={}){const t=!!e.mockEnabled,n=e.baseUrl??"";return o0("leaderboard",{accessMode:t3({...e,baseUrl:n,mockEnabled:t}),baseUrl:n,mockEnabled:t,offset:e.offset??qP,pageSize:e.pageSize??QP(),period:e.period||KP,userId:e3(e)})}function Pu(e,t){const n=da.targets.leaderboard;return n.stateRequestId+=1,n.statePromise=null,n.pendingStateContextKey=null,Pm(null,{contextKey:t,status:"skipped",error:e})}function oU(e={}){const t=da,n=!!e.mockEnabled,a=e.baseUrl??"",i=t3({...e,baseUrl:a,mockEnabled:n}),s=e.period||KP,l=e.pageSize??QP(),u=e.offset??qP,h=e3(e),p=s0({accessMode:i,baseUrl:a,mockEnabled:n,offset:u,pageSize:l,period:s,userId:h});if(!n&&e.authLoading)return Promise.resolve(Pu("auth-loading",p));if(!n&&!e.signedIn&&i!=="public")return Promise.resolve(Pu("not-signed-in",p));if(!n&&!a)return Promise.resolve(Pu("missing-base-url",p));if(!n&&i==="unavailable")return Promise.resolve(Pu("access-unavailable",p));const f=t.targets.leaderboard,g=iU(p);if(g)return Promise.resolve(g);if(f.stateStatus==="pending"&&f.statePromise&&f.pendingStateContextKey===p)return f.statePromise;const v=f.stateRequestId+1;f.stateRequestId=v,f.stateStatus="pending",f.pendingStateContextKey=p,f.error=null;const k=Promise.resolve().then(()=>B8({userId:h,period:s,limit:l,offset:u})).then(x=>da!==t||f.stateRequestId!==v||f.statePromise!==k?null:(f.pendingStateContextKey=null,Pm(x,{contextKey:p}))).catch(x=>(da!==t||f.stateRequestId!==v||f.statePromise!==k||(f.pendingStateContextKey=null,Pm(null,{contextKey:p,status:"rejected",error:x})),null));return f.statePromise=k,k}const sU=typeof window<"u"?window.location.search:"",$k=new URLSearchParams(sU),Su=$k.get("insforge_code")||$k.get("code")||null,lU=typeof window<"u"&&!!window.webkit?.messageHandlers?.nativeOAuth;function cU(){ql();const{loading:e,signedIn:t}=to(),n=os(),[a,i]=b.useState("processing"),[s,l]=b.useState(null),u=b.useRef(!1);b.useEffect(()=>{if(!(!Su||u.current)){if(u.current=!0,lU){l(!1);return}(async()=>{try{const f=await(await fetch("/api/auth-bridge/verifier")).json();l(!!f?.native)}catch{l(!1)}})()}},[]),b.useEffect(()=>{if(s!==!0||!Su)return;i("redirecting");const p=setTimeout(()=>{window.location.href=`tokentracker://auth/callback?insforge_code=${encodeURIComponent(Su)}`},200);return()=>clearTimeout(p)},[s]),b.useEffect(()=>{if(s!==!1||e)return;if(t){n("/dashboard",{replace:!0});return}const p=setTimeout(()=>{t||i("failed")},12e3);return()=>clearTimeout(p)},[s,e,t,n]),b.useEffect(()=>{if(!Su&&s===null){const p=setTimeout(()=>i("failed"),3e3);return()=>clearTimeout(p)}},[s]);const h=()=>{n("/dashboard",{replace:!0})};return a==="processing"&&s!==!0&&(s===null||s===!1&&e)?S.jsx("div",{className:"min-h-screen bg-oai-gray-950"}):S.jsx("div",{className:"min-h-screen bg-oai-gray-950 text-white font-oai antialiased dark flex items-center justify-center",children:S.jsxs("div",{className:"text-center space-y-4 max-w-sm px-4",children:[a==="processing"&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"w-8 h-8 border-2 border-oai-gray-600 border-t-white rounded-full animate-spin mx-auto"}),S.jsx("p",{className:"text-oai-gray-400 text-sm",children:fe("auth.callback.processing")})]}),a==="redirecting"&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"w-12 h-12 mx-auto rounded-full bg-green-500/15 flex items-center justify-center",children:S.jsx("svg",{className:"w-6 h-6 text-green-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:S.jsx("path",{d:"M20 6 9 17l-5-5"})})}),S.jsx("p",{className:"text-white text-sm font-medium",children:fe("auth.callback.success")}),S.jsx("p",{className:"text-oai-gray-500 text-xs",children:fe("auth.callback.redirecting")})]}),a==="failed"&&S.jsxs("div",{className:"space-y-3",children:[S.jsx("p",{className:"text-oai-gray-300 text-sm",children:fe("auth.callback.failed")}),S.jsx("button",{type:"button",onClick:h,className:"px-4 py-2 rounded-lg bg-oai-gray-800 text-sm text-white hover:bg-oai-gray-700 transition-colors",children:fe("auth.callback.close")})]})]})})}const uU=b.lazy(()=>_n(()=>import("./DashboardPage-sfNk7IcJ.js"),__vite__mapDeps([14,1,12,15,16,17,11,3,9,10,18,19,4])).then(e=>({default:e.DashboardPage}))),dU=b.lazy(()=>_n(()=>import("./IpCheckPage-DofM0M8X.js"),[])),hU=b.lazy(()=>_n(()=>import("./LandingPage-Cs-U-Y5I.js"),__vite__mapDeps([20,21,18])).then(e=>({default:e.LandingPage}))),pU=b.lazy(()=>_n(()=>import("./LeaderboardPage-Ctco-Kdt.js"),__vite__mapDeps([8,9,10,11,12,13])).then(e=>({default:e.LeaderboardPage}))),fU=b.lazy(()=>_n(()=>import("./LeaderboardProfilePage-BQJbJ4Zk.js"),__vite__mapDeps([22,12,21,23,13,15,16,6,11,17,7])).then(e=>({default:e.LeaderboardProfilePage}))),mU=b.lazy(()=>_n(()=>import("./LimitsPage-B6cYrodR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>({default:e.LimitsPage}))),gU=b.lazy(()=>_n(()=>import("./LoginPage-Br4lL88q.js"),[]).then(e=>({default:e.LoginPage}))),yU=b.lazy(()=>_n(()=>import("./ResetPasswordPage-DPCimfFC.js"),[]).then(e=>({default:e.ResetPasswordPage}))),vU=b.lazy(()=>_n(()=>import("./DevicePage-SEcI1kHh.js"),[])),bU=b.lazy(()=>_n(()=>import("./WrappedPage-Bgjnpl0T.js"),[])),_U=b.lazy(()=>_n(()=>import("./SettingsPage-DERfKxU0.js"),__vite__mapDeps([24,2,25,3,11,12,9,10,16,7])).then(e=>({default:e.SettingsPage}))),kU=b.lazy(()=>_n(()=>import("./SkillsPage-kLIOS3gm.js"),__vite__mapDeps([26,5,6,7,3,17,11,16,12,19,10])).then(e=>({default:e.SkillsPage}))),wU=b.lazy(()=>_n(()=>import("./WidgetsPage-BIaj8VAc.js"),__vite__mapDeps([27,9,10,11,25,3,4,6,7])).then(e=>({default:e.WidgetsPage})));function xU(){const{resolvedLocale:e}=ql(),t=zn(),n=to();tN();const a=b.useRef(!1),i=b.useRef(!1),s=b.useRef(new Set),l=An(),u=b.useMemo(()=>typeof window>"u"?!1:GM(window.location.search),[]),h=t?.pathname||"/",p=new URL(window.location.href),f=p.pathname.replace(/\/+$/,"")||"/",v=f.match(/^\/share\/([^/?#]+)$/i)?.[1]||null,k=p.searchParams.get("token")||null,x=v||k,C=f==="/share"||f==="/share.html"||f.startsWith("/share/"),P=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"),A=h.replace(/\/+$/,"")||"/",D=A==="/"||A==="/dashboard",E=A==="/leaderboard",R=A.match(/^\/u\/([^/]+)$/i),z=R?R[1]:null,W=!!(n.enabled&&n.signedIn),F=P||W,T=!1,$=$M(),q=!F&&!l&&!P,re=l?"mock":n.loading?"unavailable":W?"cloud":F?"local":"unavailable",se=b.useCallback(()=>{if(!a.current||!l&&n.loading||!l&&!F)return;const de={accessMode:re,baseUrl:WM(),mockEnabled:l,signedIn:F,authLoading:!!n.loading,userId:W&&n.user?.id||null},ye=s0(de);s.current.has(ye)||(s.current.add(ye),oU(de))},[W,n.loading,n.user?.id,re,l,F]),Se=b.useCallback(()=>{D&&(a.current||(a.current=!0,nU()),i.current||(i.current=!0,rU()),se())},[D,se]);b.useEffect(()=>{se()},[se]);const pe=b.useMemo(()=>!n.enabled||!W?null:{getAccessToken:()=>n.getAccessToken(),name:n.displayName||"",userId:n.user?.id||null},[W,n]);let ue=P||l||u?"dashboard":"landing";A==="/landing"&&(ue="landing"),A==="/dashboard"&&(ue="dashboard"),E&&(ue="dashboard"),z&&(ue="dashboard");const ie=A==="/limits",ge=A==="/settings",B=A==="/skills",X=A==="/widgets",V=A==="/ip-check";(ie||ge||B||X||V)&&(ue="dashboard");let M=uU;z?M=fU:A==="/leaderboard"?M=pU:ie?M=mU:ge?M=_U:B?M=kU:X?M=wU:V&&(M=dU);const Z=!C&&!q&&(A==="/dashboard"||A==="/"||E||ie||ge||B||X||V);if(!P&&!W&&!C&&!n.loading&&ue==="dashboard"&&!E&&!z&&A!=="/login"&&A!=="/reset-password"&&A!=="/landing"&&A!=="/auth/callback"&&A!=="/auth/native-callback")return S.jsx(A4,{to:"/login",replace:!0});let he=null;if(A==="/auth/callback"||A==="/auth/native-callback")he=S.jsx(cU,{});else if(A==="/login")he=S.jsx(gU,{});else if(A==="/reset-password")he=S.jsx(yU,{});else if(A==="/device")he=S.jsx(vU,{});else if(A==="/wrapped")he=S.jsx(bU,{});else if(ue==="landing")he=S.jsx(hU,{signInUrl:"/login",signUpUrl:"/login"});else{const de=S.jsx(M,{baseUrl:$,auth:pe,signedIn:F,sessionSoftExpired:T,signOut:()=>n.enabled?n.signOut():Promise.resolve(),publicMode:C,publicToken:x,userId:z,signInUrl:"/login",signUpUrl:"/login",onMainContentVisible:Se},e);Z?he=S.jsx(vN,{children:de}):he=de}return S.jsx(FR,{children:S.jsx(HR,{children:S.jsx(Vj,{children:S.jsxs($R,{children:[S.jsx(b.Suspense,{fallback:null,children:he}),Z?S.jsx(WN,{}):null,S.jsx(VM,{}),S.jsx(V7,{}),S.jsx(Q7,{})]})})})})}const PU=n5([{path:"*",element:S.jsx(xU,{})}]);$S.createRoot(document.getElementById("root")).render(S.jsx(Zo.StrictMode,{children:S.jsx(x7,{children:S.jsx(A7,{children:S.jsx(G8,{children:S.jsx(K8,{children:S.jsx(f5,{router:PU})})})})})}));export{_n as $,Rt as A,cz as B,KU as C,fz as D,nz as E,Nw as F,fe as G,Nu as H,WU as I,$U as J,Al as K,Md as L,zR as M,_z as N,az as O,NU as P,MU as Q,Zo as R,Nx as S,nN as T,VN as U,Pt as V,l2 as W,ug as X,to as Y,og as Z,BM as _,Ql as a,bl as a$,BU as a0,B8 as a1,ql as a2,GM as a3,ii as a4,bz as a5,ez as a6,GU as a7,s8 as a8,OU as a9,xz as aA,DU as aB,ZU as aC,Fd as aD,jR as aE,aN as aF,SF as aG,DR as aH,sz as aI,SU as aJ,WE as aK,dg as aL,id as aM,$b as aN,YU as aO,i2 as aP,r2 as aQ,xR as aR,VU as aS,ns as aT,cd as aU,Kw as aV,qw as aW,Yw as aX,Zw as aY,ER as aZ,Aa as a_,jU as aa,PF as ab,tz as ac,HU as ad,FU as ae,xk as af,wz as ag,zA as ah,_t as ai,dn as aj,vd as ak,hg as al,rs as am,Ug as an,pg as ao,di as ap,h_ as aq,ss as ar,zn as as,os as at,WM as au,od as av,s0 as aw,iU as ax,Pm as ay,YE as az,Mj as b,hi as b$,vz as b0,gz as b1,mP as b2,la as b3,ys as b4,gs as b5,uO as b6,Nk as b7,t0 as b8,Bi as b9,Ji as bA,Zg as bB,La as bC,bP as bD,Vi as bE,Hi as bF,Zz as bG,Kz as bH,Tr as bI,pF as bJ,dO as bK,hF as bL,yF as bM,oF as bN,Ij as bO,Ca as bP,_F as bQ,kf as bR,aF as bS,zO as bT,rF as bU,lF as bV,Sl as bW,wF as bX,uF as bY,hj as bZ,sj as b_,Cr as ba,iF as bb,MP as bc,dF as bd,pj as be,uj as bf,HN as bg,Cz as bh,Pz as bi,Nz as bj,Oz as bk,jz as bl,AR as bm,Sz as bn,Tz as bo,xF as bp,Ez as bq,Dz as br,Rz as bs,Az as bt,Lz as bu,Mz as bv,Iz as bw,$g as bx,Ol as by,kO as bz,on as c,nr as c$,R7 as c0,ag as c1,yz as c2,mz as c3,_O as c4,AO as c5,hO as c6,Ak as c7,qd as c8,pO as c9,sF as cA,kP as cB,oO as cC,fF as cD,RO as cE,bF as cF,cF as cG,Jg as cH,kF as cI,mF as cJ,Vz as cK,Cd as cL,Oj as cM,Qg as cN,Nj as cO,dj as cP,FO as cQ,nF as cR,UO as cS,qz as cT,Yz as cU,Xg as cV,Ik as cW,a0 as cX,JU as cY,QU as cZ,XU as c_,_m as ca,yP as cb,zz as cc,gO as cd,Fz as ce,Ia as cf,gP as cg,Bz as ch,vO as ci,yO as cj,$P as ck,Jz as cl,Xz as cm,Qz as cn,eF as co,tF as cp,Yo as cq,vF as cr,xP as cs,Hz as ct,$z as cu,Wz as cv,Gz as cw,LO as cx,PP as cy,Uz as cz,gF as d,V9 as e,IU as f,Ow as g,t8 as h,An as i,S as j,pz as k,lz as l,Pl as m,g8 as n,y8 as o,uz as p,rz as q,b as r,zU as s,qU as t,Aj as u,dz as v,iz as w,hz as x,oz as y,UU as z};