PageSourceSearch

https://bags-screener.lovable.app/assets/index-DydYllLi.js

js bags-screener.lovable.app collected 2026-10-03 03:23:22 UTC 705,567 bytes, 293 lines download raw bytes

vendor: 4,700 bytes, lines 1-9
1var Wm=e=>{throw TypeError(e)};var Ou=(e,t,n)=>t.has(e)||Wm("Cannot "+n);var C=(e,t,n)=>(Ou(e,t,"read from private field"),n?n.call(e):t.get(e)),Q=(e,t,n)=>t.has(e)?Wm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(Ou(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ie=(e,t,n)=>(Ou(e,t,"access private method"),n);var nl=(e,t,n,r)=>({set _(s){U(e,t,s,n)},get _(){return C(e,t,r)}});function kS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SS(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var qy={exports:{}},Fc={},Ky={exports:{}},se={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Da=Symbol.for("react.element"),CS=Symbol.for("react.portal"),jS=Symbol.for("react.fragment"),NS=Symbol.for("react.strict_mode"),ES=Symbol.for("react.profiler"),PS=Symbol.for("react.provider"),TS=Symbol.for("react.context"),RS=Symbol.for("react.forward_ref"),OS=Symbol.for("react.suspense"),AS=Symbol.for("react.memo"),MS=Symbol.for("react.lazy"),Um=Symbol.iterator;function IS(e){return e===null||typeof e!="object"?null:(e=Um&&e[Um]||e["@@iterator"],typeof e=="function"?e:null)}var Gy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yy=Object.assign,Qy={};function ai(e,t,n){this.props=e,this.context=t,this.refs=Qy,this.updater=n||Gy}ai.prototype.isReactComponent={};ai.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jy(){}Jy.prototype=ai.prototype;function Ih(e,t,n){this.props=e,this.context=t,this.refs=Qy,this.updater=n||Gy}var Dh=Ih.prototype=new Jy;Dh.constructor=Ih;Yy(Dh,ai.prototype);Dh.isPureReactComponent=!0;var Hm=Array.isArray,Xy=Object.prototype.hasOwnProperty,$h={current:null},Zy={key:!0,ref:!0,__self:!0,__source:!0};function e0(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Xy.call(t,r)&&!Zy.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Da,type:e,key:o,ref:i,props:s,_owner:$h.current}}function DS(e,t){return{$$typeof:Da,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Lh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Da}function $S(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vm=/\/+/g;function Au(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$S(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Ml(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Da:case CS:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Au(i,0):r,Hm(s)?(n="",e!=null&&(n=e.replace(Vm,"$&/")+"/"),Ml(s,t,n,"",function(u){return u})):s!=null&&(Lh(s)&&(s=DS(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Vm,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Hm(e))for(var a=0;a<e.length;a++){o=e[a];var c=r+Au(o,a);i+=Ml(o,t,n,c,s)}else if(c=IS(e),typeof c=="function")for(e=c.call(e),a=0;!(o=e.next()).done;)o=o.value,c=r+Au(o,a++),i+=Ml(o,t,n,c,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function rl(e,t,n){if(e==null)return e;var r=[],s=0;return Ml(e,r,"","",function(o){return t.call(n,o,s++)}),r}function LS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dt={current:null},Il={transition:null},FS={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:Il,ReactCurrentOwner:$h};function t0(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:rl,forEach:function(e,t,n){rl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rl(e,function(){t++}),t},toArray:function(e){return rl(e,function(t){return t})||[]},only:function(e){if(!Lh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=ai;se.Fragment=jS;se.Profiler=ES;se.PureComponent=Ih;se.StrictMode=NS;se.Suspense=OS;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FS;se.act=t0;se.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Yy({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=$h.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Xy.call(t,c)&&!Zy.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Da,type:e.type,key:s,ref:o,props:r,_owner:i}};se.createContext=function(e){return e={$$typeof:TS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:PS,_context:e},e.Consumer=e};se.createElement=e0;se.createFactory=function(e){var t=e0.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:RS,render:e}};se.isValidElement=Lh;se.lazy=function(e){return{$$typeof:MS,_payload:{_status:-1,_result:e},_init:LS}};se.memo=function(e,t){return{$$typeof:AS,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Il.transition;Il.transition={};try{e()}finally{Il.transition=t}};se.unstable_act=t0;se.useCallback=function(e,t){return dt.current.useCallback(e,t)};se.useContext=function(e){return dt.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};se.useEffect=function(e,t){return dt.current.useEffect(e,t)};se.useId=function(){return dt.current.useId()};se.useImperativeHandle=function(e,t,n){return dt.current.useImperativeHandle(e,t,n)};se.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return dt.current.useMemo(e,t)};se.useReducer=function(e,t,n){return dt.current.useReducer(e,t,n)};se.useRef=function(e){return dt.current.useRef(e)};se.useState=function(e){return dt.current.useState(e)};se.useSyncExternalStore=function(e,t,n){return dt.current.useSyncExternalStore(e,t,n)};se.useTransition=function(){return dt.current.useTransition()};se.version="18.3.1";Ky.exports=se;var p=Ky.exports;const $=Vy(p),Fh=kS({__proto__:null,default:$},[p]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var zS=p,BS=Symbol.for("react.element"),WS=Symbol.for("react.fragment"),US=Object.prototype.hasOwnProperty,HS=zS.__SECRET_INT
vendor: 11,405 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VS={key:!0,ref:!0,__self:!0,__source:!0};function n0(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)US.call(t,r)&&!VS.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:BS,type:e,key:o,ref:i,props:s,_owner:HS.current}}Fc.Fragment=WS;Fc.jsx=n0;Fc.jsxs=n0;qy.exports=Fc;var l=qy.exports,r0={exports:{}},Mt={},s0={exports:{}},o0={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(N,M){var z=N.length;N.push(M);e:for(;0<z;){var K=z-1>>>1,q=N[K];if(0<s(q,M))N[K]=M,N[z]=q,z=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var M=N[0],z=N.pop();if(z!==M){N[0]=z;e:for(var K=0,q=N.length,te=q>>>1;K<te;){var X=2*(K+1)-1,ke=N[X],Ae=X+1,B=N[Ae];if(0>s(ke,z))Ae<q&&0>s(B,ke)?(N[K]=B,N[Ae]=z,K=Ae):(N[K]=ke,N[X]=z,K=X);else if(Ae<q&&0>s(B,z))N[K]=B,N[Ae]=z,K=Ae;else break e}}return M}function s(N,M){var z=N.sortIndex-M.sortIndex;return z!==0?z:N.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var c=[],u=[],d=1,f=null,m=3,h=!1,b=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=N)r(u),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(u)}}function _(N){if(v=!1,w(N),!b)if(n(c)!==null)b=!0,F(k);else{var M=n(u);M!==null&&I(_,M.startTime-N)}}function k(N,M){b=!1,v&&(v=!1,x(P),P=-1),h=!0;var z=m;try{for(w(M),f=n(c);f!==null&&(!(f.expirationTime>M)||N&&!T());){var K=f.callback;if(typeof K=="function"){f.callback=null,m=f.priorityLevel;var q=K(f.expirationTime<=M);M=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(c)&&r(c),w(M)}else r(c);f=n(c)}if(f!==null)var te=!0;else{var X=n(u);X!==null&&I(_,X.startTime-M),te=!1}return te}finally{f=null,m=z,h=!1}}var S=!1,j=null,P=-1,R=5,O=-1;function T(){return!(e.unstable_now()-O<R)}function E(){if(j!==null){var N=e.unstable_now();O=N;var M=!0;try{M=j(!0,N)}finally{M?L():(S=!1,j=null)}}else S=!1}var L;if(typeof g=="function")L=function(){g(E)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,H=A.port2;A.port1.onmessage=E,L=function(){H.postMessage(null)}}else L=function(){y(E,0)};function F(N){j=N,S||(S=!0,L())}function I(N,M){P=y(function(){N(e.unstable_now())},M)}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(N){N.callback=null},e.unstable_continueExecution=function(){b||h||(b=!0,F(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(N){switch(m){case 1:case 2:case 3:var M=3;break;default:M=m}var z=m;m=M;try{return N()}finally{m=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,M){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=m;m=N;try{return M()}finally{m=z}},e.unstable_scheduleCallback=function(N,M,z){var K=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?K+z:K):z=K,N){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=z+q,N={id:d++,callback:M,priorityLevel:N,startTime:z,expirationTime:q,sortIndex:-1},z>K?(N.sortIndex=z,t(u,N),n(c)===null&&N===n(u)&&(v?(x(P),P=-1):v=!0,I(_,z-K))):(N.sortIndex=q,t(c,N),b||h||(b=!0,F(k))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var M=m;return function(){var z=m;m=M;try{return N.apply(this,arguments)}finally{m=z}}}})(o0);s0.exports=o0;var qS=s0.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var KS=p,Rt=qS;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i0=new Set,oa={};function Ws(e,t){Go(e,t),Go(e+"Capture",t)}function Go(e,t){for(oa[e]=t,e=0;e<t.length;e++)i0.add(t[e])}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wd=Object.prototype.hasOwnProperty,GS=/^[: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]*$/,qm={},Km={};function YS(e){return Wd.call(Km,e)?!0:Wd.call(qm,e)?!1:GS.test(e)?Km[e]=!0:(qm[e]=!0,!1)}function QS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function JS(e,t,n,r){if(t===null||typeof t>"u"||QS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new ft(e,2,!1,e,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(e){Je[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var zh=/[\-:]([a-z])/g;function Bh(e){return e[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(e){var t=e.replace(zh,Bh);Je[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zh,Bh);Je[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zh,Bh);Je[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wh(e,t,n,r){var s=Je.hasOwnProperty(t)?Je[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(JS(t,n,s,r)&&(n=null),r||s===null?YS(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var er=KS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sl=Symbol.for("react.element"),ho=Symbol.for("react.portal"),po=Symbol.for("react.fragment"),Uh=Symbol.for("react.strict_mode"),Ud=Symbol.for("react.profiler"),a0=Symbol.for("react.provider"),l0=Symbol.for("react.context"),Hh=Symbol.for("react.forward_ref"),Hd=Symbol.for("react.suspense"),Vd=Symbol.for("react.suspense_list"),Vh=Symbol.for("react.memo"),mr=Symbol.for("react.lazy"),c0=Symbol.for("react.offscreen"),Gm=Symbol.iterator;function Si(e){return e===null||typeof e!="object"?null:(e=Gm&&e[Gm]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Object.assign,Mu;function Li(e){if(Mu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mu=t&&t[1]||""}return`
34`+Mu+e}var Iu=!1;function Du(e,t){if(!e||Iu)return"";Iu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 3,826 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),o=r.stack.split(`
36`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var c=`
37`+s[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=a);break}}}finally{Iu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function XS(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=Du(e.type,!1),e;case 11:return e=Du(e.type.render,!1),e;case 1:return e=Du(e.type,!0),e;default:return""}}function qd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case po:return"Fragment";case ho:return"Portal";case Ud:return"Profiler";case Uh:return"StrictMode";case Hd:return"Suspense";case Vd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l0:return(e.displayName||"Context")+".Consumer";case a0:return(e._context.displayName||"Context")+".Provider";case Hh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vh:return t=e.displayName||null,t!==null?t:qd(e.type)||"Memo";case mr:t=e._payload,e=e._init;try{return qd(e(t))}catch{}}return null}function ZS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qd(t);case 8:return t===Uh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ur(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function u0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eC(e){var t=u0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ol(e){e._valueTracker||(e._valueTracker=eC(e))}function d0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=u0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ec(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kd(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ym(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ur(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,651 bytes, line 37
37function f0(e,t){t=t.checked,t!=null&&Wh(e,"checked",t,!1)}function Gd(e,t){f0(e,t);var n=Ur(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yd(e,t.type,Ur(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yd(e,t,n){(t!=="number"||ec(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function jo(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ur(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Qd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Fi(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ur(n)}}function h0(e,t){var n=Ur(t.value),r=Ur(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function p0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?p0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var il,m0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(il=il||document.createElement("div"),il.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=il.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tC=["Webkit","ms","Moz","O"];Object.keys(qi).forEach(function(e){tC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qi[t]=qi[e]})});function g0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qi.hasOwnProperty(e)&&qi[e]?(""+t).trim():t+"px"}function v0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=g0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var nC=Oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xd(e,t){if(t){if(nC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Zd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ef=null;function qh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tf=null,No=null,Eo=null;function Zm(e){if(e=Fa(e)){if(typeof tf!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Hc(t),tf(e.stateNode,e.type,t))}}function y0(e){No?Eo?Eo.push(e):Eo=[e]:No=e}function x0(){if(No){var e=No,t=Eo;if(Eo=No=null,Zm(e),t)for(e=0;e<t.length;e++)Zm(t[e])}}function w0(e,t){return e(t)}function b0(){}var $u=!1;function _0(e,t,n){if($u)return e(t,n);$u=!0;try{return w0(e,t,n)}finally{$u=!1,(No!==null||Eo!==null)&&(b0(),x0())}}function aa(e,t){var n=e.stateNode;if(n===null)return null;var r=Hc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var nf=!1;if(Kn)try{var Ci={};Object.defineProperty(Ci,"passive",{get:function(){nf=!0}}),window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch{nf=!1}function rC(e,t,n,r,s,o,i,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ki=!1,tc=null,nc=!1,rf=null,sC={onError:function(e){Ki=!0,tc=e}};function oC(e,t,n,r,s,o,i,a,c){Ki=!1,tc=null,rC.apply(sC,arguments)}function iC(e,t,n,r,s,o,i,a,c){if(oC.apply(this,arguments),Ki){if(Ki){var u=tc;Ki=!1,tc=null}else throw Error(D(198));nc||(nc=!0,rf=u)}}function Us(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function k0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eg(e){if(Us(e)!==e)throw Error(D(188))}function aC(e){var t=e.alternate;if(!t){if(t=Us(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return eg(s),e;if(o===r)return eg(s),t;o=o.sibling}throw Error(D(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function S0(e){return e=aC(e),e!==null?C0(e):null}function C0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=C0(e);if(t!==null)return t;e=e.sibling}return null}var j0=Rt.unstable_scheduleCallback,tg=Rt.unstable_cancelCallback,lC=Rt.unstable_shouldYield,cC=Rt.unstable_requestPaint,$e=Rt.unstable_now,uC=Rt.unstable_getCurrentPriorityLevel,Kh=Rt.unstable_ImmediatePriority,N0=Rt.unstable_UserBlockingPriority,rc=Rt.unstable_NormalPriority,dC=Rt.unstable_LowPriority,E0=Rt.unstable_IdlePriority,zc=null,jn=null;function fC(e){if(jn&&typeof jn.onCommitFiberRoot=="function")try{jn.onCommitFiberRoot(zc,e,void 0,(e.current.flags&128)===128)}catch{}}var an=Math.clz32?Math.clz32:mC,hC=Math.log,pC=Math.LN2;function mC(e){return e>>>=0,e===0?32:31-(hC(e)/pC|0)|0}var al=64,ll=4194304;function zi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=zi(a):(o&=i,o!==0&&(r=zi(o)))}else i=n&~s,i!==0?r=zi(i):o!==0&&(r=zi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-an(t),s=1<<n,r|=e[n],t&=~s;return r}function gC(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-an(o),a=1<<i,c=s[i];c===-1?(!(a&n)||a&r)&&(s[i]=gC(a,t)):c<=t&&(e.expiredLanes|=a),o&=~a}}function sf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function P0(){var e=al;return al<<=1,!(al&4194240)&&(al=64),e}function Lu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $a(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-an(t),e[t]=n}function yC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-an(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function Gh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-an(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ve=0;function T0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var R0,Yh,O0,A0,M0,of=!1,cl=[],Or=null,Ar=null,Mr=null,la=new Map,ca=new Map,vr=[],xC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ng(e,t){switch(e){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":Mr=null;break;case"pointerover":case"pointerout":la.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ca.delete(t.pointerId)}}function ji(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Fa(t),t!==null&&Yh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 5,884 bytes, line 37
37function wC(e,t,n,r,s){switch(t){case"focusin":return Or=ji(Or,e,t,n,r,s),!0;case"dragenter":return Ar=ji(Ar,e,t,n,r,s),!0;case"mouseover":return Mr=ji(Mr,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return la.set(o,ji(la.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,ca.set(o,ji(ca.get(o)||null,e,t,n,r,s)),!0}return!1}function I0(e){var t=hs(e.target);if(t!==null){var n=Us(t);if(n!==null){if(t=n.tag,t===13){if(t=k0(n),t!==null){e.blockedOn=t,M0(e.priority,function(){O0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=af(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ef=r,n.target.dispatchEvent(r),ef=null}else return t=Fa(n),t!==null&&Yh(t),e.blockedOn=n,!1;t.shift()}return!0}function rg(e,t,n){Dl(e)&&n.delete(t)}function bC(){of=!1,Or!==null&&Dl(Or)&&(Or=null),Ar!==null&&Dl(Ar)&&(Ar=null),Mr!==null&&Dl(Mr)&&(Mr=null),la.forEach(rg),ca.forEach(rg)}function Ni(e,t){e.blockedOn===t&&(e.blockedOn=null,of||(of=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,bC)))}function ua(e){function t(s){return Ni(s,e)}if(0<cl.length){Ni(cl[0],e);for(var n=1;n<cl.length;n++){var r=cl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Or!==null&&Ni(Or,e),Ar!==null&&Ni(Ar,e),Mr!==null&&Ni(Mr,e),la.forEach(t),ca.forEach(t),n=0;n<vr.length;n++)r=vr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vr.length&&(n=vr[0],n.blockedOn===null);)I0(n),n.blockedOn===null&&vr.shift()}var Po=er.ReactCurrentBatchConfig,oc=!0;function _C(e,t,n,r){var s=ve,o=Po.transition;Po.transition=null;try{ve=1,Qh(e,t,n,r)}finally{ve=s,Po.transition=o}}function kC(e,t,n,r){var s=ve,o=Po.transition;Po.transition=null;try{ve=4,Qh(e,t,n,r)}finally{ve=s,Po.transition=o}}function Qh(e,t,n,r){if(oc){var s=af(e,t,n,r);if(s===null)Gu(e,t,r,ic,n),ng(e,r);else if(wC(s,e,t,n,r))r.stopPropagation();else if(ng(e,r),t&4&&-1<xC.indexOf(e)){for(;s!==null;){var o=Fa(s);if(o!==null&&R0(o),o=af(e,t,n,r),o===null&&Gu(e,t,r,ic,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Gu(e,t,r,null,n)}}var ic=null;function af(e,t,n,r){if(ic=null,e=qh(r),e=hs(e),e!==null)if(t=Us(e),t===null)e=null;else if(n=t.tag,n===13){if(e=k0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ic=e,null}function D0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(uC()){case Kh:return 1;case N0:return 4;case rc:case dC:return 16;case E0:return 536870912;default:return 16}default:return 16}}var Er=null,Jh=null,$l=null;function $0(){if($l)return $l;var e,t=Jh,n=t.length,r,s="value"in Er?Er.value:Er.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return $l=s.slice(e,1<r?1-r:void 0)}function Ll(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ul(){return!0}function sg(){return!1}function It(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ul:sg,this.isPropagationStopped=sg,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ul)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ul)},persist:function(){},isPersistent:ul}),t}var li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xh=It(li),La=Oe({},li,{view:0,detail:0}),SC=It(La),Fu,zu,Ei,Bc=Oe({},La,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ei&&(Ei&&e.type==="mousemove"?(Fu=e.screenX-Ei.screenX,zu=e.screenY-Ei.screenY):zu=Fu=0,Ei=e),Fu)},movementY:function(e){return"movementY"in e?e.movementY:zu}}),og=It(Bc),CC=Oe({},Bc,{dataTransfer:0}),jC=It(CC),NC=Oe({},La,{relatedTarget:0}),Bu=It(NC),EC=Oe({},li,{animationName:0,elapsedTime:0,pseudoElement:0}
vendor: 4,547 bytes, line 37
37),PC=It(EC),TC=Oe({},li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),RC=It(TC),OC=Oe({},li,{data:0}),ig=It(OC),AC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},IC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=IC[e])?!!t[e]:!1}function Zh(){return DC}var $C=Oe({},La,{key:function(e){if(e.key){var t=AC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?MC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zh,charCode:function(e){return e.type==="keypress"?Ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LC=It($C),FC=Oe({},Bc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ag=It(FC),zC=Oe({},La,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zh}),BC=It(zC),WC=Oe({},li,{propertyName:0,elapsedTime:0,pseudoElement:0}),UC=It(WC),HC=Oe({},Bc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),VC=It(HC),qC=[9,13,27,32],ep=Kn&&"CompositionEvent"in window,Gi=null;Kn&&"documentMode"in document&&(Gi=document.documentMode);var KC=Kn&&"TextEvent"in window&&!Gi,L0=Kn&&(!ep||Gi&&8<Gi&&11>=Gi),lg=" ",cg=!1;function F0(e,t){switch(e){case"keyup":return qC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mo=!1;function GC(e,t){switch(e){case"compositionend":return z0(t);case"keypress":return t.which!==32?null:(cg=!0,lg);case"textInput":return e=t.data,e===lg&&cg?null:e;default:return null}}function YC(e,t){if(mo)return e==="compositionend"||!ep&&F0(e,t)?(e=$0(),$l=Jh=Er=null,mo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return L0&&t.locale!=="ko"?null:t.data;default:return null}}var QC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ug(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QC[e.type]:t==="textarea"}function B0(e,t,n,r){y0(r),t=ac(t,"onChange"),0<t.length&&(n=new Xh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yi=null,da=null;function JC(e){X0(e,0)}function Wc(e){var t=yo(e);if(d0(t))return e}function XC(e,t){if(e==="change")return t}var W0=!1;if(Kn){var Wu;if(Kn){var Uu="oninput"in document;if(!Uu){var dg=document.createElement("div");dg.setAttribute("oninput","return;"),Uu=typeof dg.oninput=="function"}Wu=Uu}else Wu=!1;W0=Wu&&(!document.documentMode||9<document.documentMode)}function fg(){Yi&&(Yi.detachEvent("onpropertychange",U0),da=Yi=null)}function U0(e){if(e.propertyName==="value"&&Wc(da)){var t=[];B0(t,da,e,qh(e)),_0(JC,t)}}function ZC(e,t,n){e==="focusin"?(fg(),Yi=t,da=n,Yi.attachEvent("onpropertychange",U0)):e==="focusout"&&fg()}function ej(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wc(da)}function tj(e,t){if(e==="click")return Wc(t)}function nj(e,t){if(e==="input"||e==="change")return Wc(t)}function rj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:rj;function fa(e,t){if(cn(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Wd.call(t,s)||!cn(e[s],t[s]))return!1}return!0}function hg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pg(e,t){var n=hg(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hg(n)}}function H0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function V0(){for(var e=window,t=ec();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ec(e.document)}return t}function tp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sj(e){var t=V0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H0(n.ownerDocument.documentElement,n)){if(r!==null&&tp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=pg(n,o);var i=pg(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oj=Kn&&"documentMode"in document&&11>=document.documentMode,go=null,lf=null,Qi=null,cf=!1;function mg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cf||go==null||go!==ec(r)||(r=go,"selectionStart"in r&&tp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qi&&fa(Qi,r)||(Qi=r,r=ac(lf,"onSelect"),0<r.length&&(t=new Xh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=go)))}function dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vo={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionend:dl("Transition","TransitionEnd")},Hu={},q0={};Kn&&(q0=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);function Uc(e){if(Hu[e])return Hu[e];if(!vo[e])return e;var t=vo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in q0)return Hu[e]=t[n];return e}var K0=Uc("animationend"),G0=Uc("animationiteration"),Y0=Uc("animationstart"),Q0=Uc("transitionend"),J0=new Map,gg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Kr(e,t){J0.set(e,t),Ws(t,[e])}for(var Vu=0;Vu<gg.length;Vu++){var qu=gg[Vu],ij=qu.toLowerCase(),aj=qu[0].toUpperCase()+qu.slice(1);Kr(ij,"on"+aj)}Kr(K0,"onAnimationEnd");Kr(G0,"onAnimationIteration");Kr(Y0,"onAnimationStart");Kr("dblclick","onDoubleClick");Kr("focusin","onFocus");Kr("focusout","onBlur");Kr(Q0,"onTransitionEnd");Go("onMouseEnter",["mouseout","mouseover"]);Go("onMouseLeave",["mouseout","mouseover"]);Go("onPointerEnter",["pointerout","pointerover"]);Go("onPointerLeave",["pointerout","pointerover"]);Ws("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37Ws("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ws("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ws("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ws("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ws("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),lj=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bi));function vg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,iC(r,t,void 0,e),e.currentTarget=null}function X0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==o&&s.isPropagationStopped())break e;vg(s,a,u),o=c}else for(i=0;i<r.length;i++){if(a=r[i],c=a.instance,u=a.currentTarget,a=a.listener,c!==o&&s.isPropagationStopped())break e;vg(s,a,u),o=c}}}if(nc)throw e=rf,nc=!1,rf=null,e}function Ce(e,t){var n=t[pf];n===void 0&&(n=t[pf]=new Set);var r=e+"__bubble";n.has(r)||(Z0(t,e,2,!1),n.add(r))}function Ku(e,t,n){var r=0;t&&(r|=4),Z0(n,e,r,t)}var fl="_reactListening"+Math.random().toString(36).slice(2);function ha(e){if(!e[fl]){e[fl]=!0,i0.forEach(function(n){n!=="selectionchange"&&(lj.has(n)||Ku(n,!1,e),Ku(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fl]||(t[fl]=!0,Ku("selectionchange",!1,t))}}function Z0(e,t,n,r){switch(D0(t)){case 1:var s=_C;break;case 4:s=kC;break;default:s=Qh}n=s.bind(null,t,n,e),s=void 0,!nf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Gu(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;i=i.return}for(;a!==null;){if(i=hs(a),i===null)return;if(c=i.tag,c===5||c===6){r=o=i;continue e}a=a.parentNode}}r=r.return}_0(function(){var u=o,d=qh(n),f=[];e:{var m=J0.get(e);if(m!==void 0){var h=Xh,b=e;switch(e){case"keypress":if(Ll(n)===0)break e;case"keydown":case"keyup":h=LC;break;case"focusin":b="focus",h=Bu;break;case"focusout":b="blur",h=Bu;break;case"beforeblur":case"afterblur":h=Bu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=jC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=BC;break;case K0:case G0:case Y0:h=PC;break;case Q0:h=UC;break;case"scroll":h=SC;break;case"wheel":h=VC;break;case"copy":case"cut":case"paste":h=RC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ag}var v=(t&4)!==0,y=!v&&e==="scroll",x=v?m!==null?m+"Capture":null:m;v=[];for(var g=u,w;g!==null;){w=g;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,x!==null&&(_=aa(g,x),_!=null&&v.push(pa(g,_,w)))),y)break;g=g.return}0<v.length&&(m=new h(m,b,null,n,d),f.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",m&&n!==ef&&(b=n.relatedTarget||n.fromElement)&&(hs(b)||b[Gn]))break e;if((h||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,h?(b=n.relatedTarget||n.toElement,h=u,b=b?hs(b):null,b!==null&&(y=Us(b),b!==y||b.tag!==5&&b.tag!==6)&&(b=null)):(h=null,b=u),h!==b)){if(v=og,_="onMouseLeave",x="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=ag,_="onPointerLeave",x="onPointerEnter",g="pointer"),y=h==null?m:yo(h),w=b==null?m:yo(b),m=new v(_,g+"leave",h,n,d),m.target=y,m.relatedTarget=w,_=null,hs(d)===u&&(v=new v(x,g+"enter",b,n,d),v.target=w,v.relatedTarget=y,_=v),y=_,h&&b)t:{for(v=h,x=b,g=0,w=v;w;w=Xs(w))g++;for(w=0,_=x;_;_=Xs(_))w++;for(;0<g-w;)v=Xs(v),g--;for(;0<w-g;)x=Xs(x),w--;for(;g--;){if(v===x||x!==null&&v===x.alternate)break t;v=Xs(v),x=Xs(x)}v=null}else v=null;h!==null&&yg(f,m,h,v,!1),b!==null&&y!==null&&yg(f,y,b,v,!0)}}
vendor: 4,435 bytes, lines 37-38
37e:{if(m=u?yo(u):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var k=XC;else if(ug(m))if(W0)k=nj;else{k=ej;var S=ZC}else(h=m.nodeName)&&h.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=tj);if(k&&(k=k(e,u))){B0(f,k,n,d);break e}S&&S(e,m,u),e==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&Yd(m,"number",m.value)}switch(S=u?yo(u):window,e){case"focusin":(ug(S)||S.contentEditable==="true")&&(go=S,lf=u,Qi=null);break;case"focusout":Qi=lf=go=null;break;case"mousedown":cf=!0;break;case"contextmenu":case"mouseup":case"dragend":cf=!1,mg(f,n,d);break;case"selectionchange":if(oj)break;case"keydown":case"keyup":mg(f,n,d)}var j;if(ep)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else mo?F0(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(L0&&n.locale!=="ko"&&(mo||P!=="onCompositionStart"?P==="onCompositionEnd"&&mo&&(j=$0()):(Er=d,Jh="value"in Er?Er.value:Er.textContent,mo=!0)),S=ac(u,P),0<S.length&&(P=new ig(P,e,null,n,d),f.push({event:P,listeners:S}),j?P.data=j:(j=z0(n),j!==null&&(P.data=j)))),(j=KC?GC(e,n):YC(e,n))&&(u=ac(u,"onBeforeInput"),0<u.length&&(d=new ig("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=j))}X0(f,t)})}function pa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ac(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=aa(e,n),o!=null&&r.unshift(pa(e,o,s)),o=aa(e,t),o!=null&&r.push(pa(e,o,s))),e=e.return}return r}function Xs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yg(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,s?(c=aa(n,o),c!=null&&i.unshift(pa(n,c,a))):s||(c=aa(n,o),c!=null&&i.push(pa(n,c,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var cj=/\r\n?/g,uj=/\u0000|\uFFFD/g;function xg(e){return(typeof e=="string"?e:""+e).replace(cj,`
38`).replace(uj,"")}function hl(e,t,n){if(t=xg(t),xg(e)!==t&&n)throw Error(D(425))}function lc(){}var uf=null,df=null;function ff(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hf=typeof setTimeout=="function"?setTimeout:void 0,dj=typeof clearTimeout=="function"?clearTimeout:void 0,wg=typeof Promise=="function"?Promise:void 0,fj=typeof queueMicrotask=="function"?queueMicrotask:typeof wg<"u"?function(e){return wg.resolve(null).then(e).catch(hj)}:hf;function hj(e){setTimeout(function(){throw e})}function Yu(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ua(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ua(t)}function Ir(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function bg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ci=Math.random().toString(36).slice(2),_n="__reactFiber$"+ci,ma="__reactProps$"+ci,Gn="__reactContainer$"+ci,pf="__reactEvents$"+ci,pj="__reactListeners$"+ci,mj="__reactHandles$"+ci;function hs(e){var t=e[_n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gn]||n[_n]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bg(e);e!==null;){if(n=e[_n])return n;e=bg(e)}return t}e=n,n=e.parentNode}return null}function Fa(e){return e=e[_n]||e[Gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Hc(e){return e[ma]||null}var mf=[],xo=-1;function Gr(e){return{current:e}}function je(e){0>xo||(e.current=mf[xo],mf[xo]=null,xo--)}function be(e,t){xo++,mf[xo]=e.current,e.current=t}var Hr={},ot=Gr(Hr),bt=Gr(!1),Ns=Hr;function Yo(e,t){var n=e.type.contextTypes;if(!n)return Hr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;
vendor: 4,190 bytes, line 38
38for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function _t(e){return e=e.childContextTypes,e!=null}function cc(){je(bt),je(ot)}function _g(e,t,n){if(ot.current!==Hr)throw Error(D(168));be(ot,t),be(bt,n)}function ex(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(D(108,ZS(e)||"Unknown",s));return Oe({},n,r)}function uc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hr,Ns=ot.current,be(ot,e),be(bt,bt.current),!0}function kg(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=ex(e,t,Ns),r.__reactInternalMemoizedMergedChildContext=e,je(bt),je(ot),be(ot,e)):je(bt),be(bt,n)}var Wn=null,Vc=!1,Qu=!1;function tx(e){Wn===null?Wn=[e]:Wn.push(e)}function gj(e){Vc=!0,tx(e)}function Yr(){if(!Qu&&Wn!==null){Qu=!0;var e=0,t=ve;try{var n=Wn;for(ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Wn=null,Vc=!1}catch(s){throw Wn!==null&&(Wn=Wn.slice(e+1)),j0(Kh,Yr),s}finally{ve=t,Qu=!1}}return null}var wo=[],bo=0,dc=null,fc=0,zt=[],Bt=0,Es=null,Hn=1,Vn="";function ls(e,t){wo[bo++]=fc,wo[bo++]=dc,dc=e,fc=t}function nx(e,t,n){zt[Bt++]=Hn,zt[Bt++]=Vn,zt[Bt++]=Es,Es=e;var r=Hn;e=Vn;var s=32-an(r)-1;r&=~(1<<s),n+=1;var o=32-an(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,Hn=1<<32-an(t)+s|n<<s|r,Vn=o+e}else Hn=1<<o|n<<s|r,Vn=e}function np(e){e.return!==null&&(ls(e,1),nx(e,1,0))}function rp(e){for(;e===dc;)dc=wo[--bo],wo[bo]=null,fc=wo[--bo],wo[bo]=null;for(;e===Es;)Es=zt[--Bt],zt[Bt]=null,Vn=zt[--Bt],zt[Bt]=null,Hn=zt[--Bt],zt[Bt]=null}var Pt=null,Et=null,Ee=!1,on=null;function rx(e,t){var n=Wt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Pt=e,Et=Ir(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Pt=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Es!==null?{id:Hn,overflow:Vn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Pt=e,Et=null,!0):!1;default:return!1}}function gf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vf(e){if(Ee){var t=Et;if(t){var n=t;if(!Sg(e,t)){if(gf(e))throw Error(D(418));t=Ir(n.nextSibling);var r=Pt;t&&Sg(e,t)?rx(r,n):(e.flags=e.flags&-4097|2,Ee=!1,Pt=e)}}else{if(gf(e))throw Error(D(418));e.flags=e.flags&-4097|2,Ee=!1,Pt=e}}}function Cg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Pt=e}function pl(e){if(e!==Pt)return!1;if(!Ee)return Cg(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ff(e.type,e.memoizedProps)),t&&(t=Et)){if(gf(e))throw sx(),Error(D(418));for(;t;)rx(e,t),t=Ir(t.nextSibling)}if(Cg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Et=Ir(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=Pt?Ir(e.stateNode.nextSibling):null;return!0}function sx(){for(var e=Et;e;)e=Ir(e.nextSibling)}function Qo(){Et=Pt=null,Ee=!1}function sp(e){on===null?on=[e]:on.push(e)}var vj=er.ReactCurrentBatchConfig;function Pi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function ml(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jg(e){var t=e._init;return t(e._payload)}
vendor: 4,890 bytes, line 38
38function ox(e){function t(x,g){if(e){var w=x.deletions;w===null?(x.deletions=[g],x.flags|=16):w.push(g)}}function n(x,g){if(!e)return null;for(;g!==null;)t(x,g),g=g.sibling;return null}function r(x,g){for(x=new Map;g!==null;)g.key!==null?x.set(g.key,g):x.set(g.index,g),g=g.sibling;return x}function s(x,g){return x=Fr(x,g),x.index=0,x.sibling=null,x}function o(x,g,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<g?(x.flags|=2,g):w):(x.flags|=2,g)):(x.flags|=1048576,g)}function i(x){return e&&x.alternate===null&&(x.flags|=2),x}function a(x,g,w,_){return g===null||g.tag!==6?(g=rd(w,x.mode,_),g.return=x,g):(g=s(g,w),g.return=x,g)}function c(x,g,w,_){var k=w.type;return k===po?d(x,g,w.props.children,_,w.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mr&&jg(k)===g.type)?(_=s(g,w.props),_.ref=Pi(x,g,w),_.return=x,_):(_=Vl(w.type,w.key,w.props,null,x.mode,_),_.ref=Pi(x,g,w),_.return=x,_)}function u(x,g,w,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=sd(w,x.mode,_),g.return=x,g):(g=s(g,w.children||[]),g.return=x,g)}function d(x,g,w,_,k){return g===null||g.tag!==7?(g=js(w,x.mode,_,k),g.return=x,g):(g=s(g,w),g.return=x,g)}function f(x,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=rd(""+g,x.mode,w),g.return=x,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case sl:return w=Vl(g.type,g.key,g.props,null,x.mode,w),w.ref=Pi(x,null,g),w.return=x,w;case ho:return g=sd(g,x.mode,w),g.return=x,g;case mr:var _=g._init;return f(x,_(g._payload),w)}if(Fi(g)||Si(g))return g=js(g,x.mode,w,null),g.return=x,g;ml(x,g)}return null}function m(x,g,w,_){var k=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(x,g,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case sl:return w.key===k?c(x,g,w,_):null;case ho:return w.key===k?u(x,g,w,_):null;case mr:return k=w._init,m(x,g,k(w._payload),_)}if(Fi(w)||Si(w))return k!==null?null:d(x,g,w,_,null);ml(x,w)}return null}function h(x,g,w,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return x=x.get(w)||null,a(g,x,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case sl:return x=x.get(_.key===null?w:_.key)||null,c(g,x,_,k);case ho:return x=x.get(_.key===null?w:_.key)||null,u(g,x,_,k);case mr:var S=_._init;return h(x,g,w,S(_._payload),k)}if(Fi(_)||Si(_))return x=x.get(w)||null,d(g,x,_,k,null);ml(g,_)}return null}function b(x,g,w,_){for(var k=null,S=null,j=g,P=g=0,R=null;j!==null&&P<w.length;P++){j.index>P?(R=j,j=null):R=j.sibling;var O=m(x,j,w[P],_);if(O===null){j===null&&(j=R);break}e&&j&&O.alternate===null&&t(x,j),g=o(O,g,P),S===null?k=O:S.sibling=O,S=O,j=R}if(P===w.length)return n(x,j),Ee&&ls(x,P),k;if(j===null){for(;P<w.length;P++)j=f(x,w[P],_),j!==null&&(g=o(j,g,P),S===null?k=j:S.sibling=j,S=j);return Ee&&ls(x,P),k}for(j=r(x,j);P<w.length;P++)R=h(j,x,P,w[P],_),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?P:R.key),g=o(R,g,P),S===null?k=R:S.sibling=R,S=R);return e&&j.forEach(function(T){return t(x,T)}),Ee&&ls(x,P),k}function v(x,g,w,_){var k=Si(w);if(typeof k!="function")throw Error(D(150));if(w=k.call(w),w==null)throw Error(D(151));for(var S=k=null,j=g,P=g=0,R=null,O=w.next();j!==null&&!O.done;P++,O=w.next()){j.index>P?(R=j,j=null):R=j.sibling;var T=m(x,j,O.value,_);if(T===null){j===null&&(j=R);break}e&&j&&T.alternate===null&&t(x,j),g=o(T,g,P),S===null?k=T:S.sibling=T,S=T,j=R}if(O.done)return n(x,j),Ee&&ls(x,P),k;if(j===null){for(;!O.done;P++,O=w.next())O=f(x,O.value,_),O!==null&&(g=o(O,g,P),S===null?k=O:S.sibling=O,S=O);return Ee&&ls(x,P),k}for(j=r(x,j);!O.done;P++,O=w.next())O=h(j,x,P,O.value,_),O!==null&&(e&&O.alternate!==null&&j.delete(O.key===null?P:O.key),g=o(O,g,P),S===null?k=O:S.sibling=O,S=O);return e&&j.forEach(function(E){return t(x,E)}),Ee&&ls(x,P),k}function y(x,g,w,_){if(typeof w=="object"&&w!==null&&w.type===po&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case sl:e:{for(var k=w.key,S=g;S!==null;){if(S.key===k){if(k=w.type,k===po){if(S.tag===7){n(x,S.sibling),g=s(S,w.props.children),g.return=x,x=g;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mr&&jg(k)===S.type){n(x,S.sibling),g=s(S,w.props),g.ref=Pi(x,S,w),g.return=x,x=g;break e}n(x,S);break}else t(x,S);S=S.sibling}w.type===po?(g=js(w.props.children,x.mode,_,w.key),g.return=x,x=g):(_=Vl(w.type,w.key,w.props,null,x.mode,_),_.ref=Pi(x,g,w),_.return=x,x=_)}return i(x);case ho:e:{for(S=w.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(x,g.sibling),g=s(g,w.children||[]),g.return=x,x=g;break e}else{n(x,g);break}else t(x,g);g=g.sibling}g=sd(w,x.mode,_),g.return=x,x=g}return i(x);case mr:return S=w._init,y(x,g,S(w._payload),_)}if(Fi(w))return b(x,g,w,_);
vendor: 6,575 bytes, line 38
38if(Si(w))return v(x,g,w,_);ml(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(x,g.sibling),g=s(g,w),g.return=x,x=g):(n(x,g),g=rd(w,x.mode,_),g.return=x,x=g),i(x)):n(x,g)}return y}var Jo=ox(!0),ix=ox(!1),hc=Gr(null),pc=null,_o=null,op=null;function ip(){op=_o=pc=null}function ap(e){var t=hc.current;je(hc),e._currentValue=t}function yf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function To(e,t){pc=e,op=_o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xt=!0),e.firstContext=null)}function Vt(e){var t=e._currentValue;if(op!==e)if(e={context:e,memoizedValue:t,next:null},_o===null){if(pc===null)throw Error(D(308));_o=e,pc.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var ps=null;function lp(e){ps===null?ps=[e]:ps.push(e)}function ax(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,lp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Yn(e,r)}function Yn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gr=!1;function cp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Yn(e,n)}return s=r.interleaved,s===null?(t.next=t,lp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Yn(e,n)}function Fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gh(e,n)}}function Ng(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mc(e,t,n,r){var s=e.updateQueue;gr=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=s.baseState;i=0,d=u=c=null,a=o;do{var m=a.lane,h=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,v=a;switch(m=t,h=n,v.tag){case 1:if(b=v.payload,typeof b=="function"){f=b.call(h,f,m);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,m=typeof b=="function"?b.call(h,f,m):b,m==null)break e;f=Oe({},f,m);break e;case 2:gr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[a]:m.push(a))}else h={eventTime:h,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,i|=m;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;m=a,a=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(d===null&&(c=f),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Ts|=i,e.lanes=i,e.memoizedState=f}}function Eg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(D(191,s));s.call(r)}}}var za={},Nn=Gr(za),ga=Gr(za),va=Gr(za);function ms(e){if(e===za)throw Error(D(174));return e}function up(e,t){switch(be(va,t),be(ga,e),be(Nn,za),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jd(t,e)}je(Nn),be(Nn,t)}function Xo(){je(Nn),je(ga),je(va)}function cx(e){ms(va.current);var t=ms(Nn.current),n=Jd(t,e.type);t!==n&&(be(ga,e),be(Nn,n))}function dp(e){ga.current===e&&(je(Nn),je(ga))}var Te=Gr(0);function gc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ju=[];function fp(){for(var e=0;e<Ju.length;e++)Ju[e]._workInProgressVersionPrimary=null;Ju.length=0}var zl=er.ReactCurrentDispatcher,Xu=er.ReactCurrentBatchConfig,Ps=0,Re=null,We=null,qe=null,vc=!1,Ji=!1,ya=0,yj=0;function Ze(){throw Error(D(321))}function hp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}function pp(e,t,n,r,s,o){if(Ps=o,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zl.current=e===null||e.memoizedState===null?_j:kj,e=n(r,s),Ji){o=0;do{if(Ji=!1,ya=0,25<=o)throw Error(D(301));o+=1,qe=We=null,t.updateQueue=null,zl.current=Sj,e=n(r,s)}while(Ji)}if(zl.current=yc,t=We!==null&&We.next!==null,Ps=0,qe=We=Re=null,vc=!1,t)throw Error(D(300));return e}function mp(){var e=ya!==0;return ya=0,e}function vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Re.memoizedState=qe=e:qe=qe.next=e,qe}function qt(){if(We===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=qe===null?Re.memoizedState:qe.next;if(t!==null)qe=t,We=e;else{if(e===null)throw Error(D(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},qe===null?Re.memoizedState=qe=e:qe=qe.next=e}return qe}function xa(e,t){return typeof t=="function"?t(e):t}function Zu(e){var t=qt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;
vendor: 5,688 bytes, line 38
38var r=We,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,c=null,u=o;do{var d=u.lane;if((Ps&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=f,i=r):c=c.next=f,Re.lanes|=d,Ts|=d}u=u.next}while(u!==null&&u!==o);c===null?i=r:c.next=a,cn(r,t.memoizedState)||(xt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,Re.lanes|=o,Ts|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ed(e){var t=qt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);cn(o,t.memoizedState)||(xt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ux(){}function dx(e,t){var n=Re,r=qt(),s=t(),o=!cn(r.memoizedState,s);if(o&&(r.memoizedState=s,xt=!0),r=r.queue,gp(px.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||qe!==null&&qe.memoizedState.tag&1){if(n.flags|=2048,wa(9,hx.bind(null,n,r,s,t),void 0,null),Ke===null)throw Error(D(349));Ps&30||fx(n,t,s)}return s}function fx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hx(e,t,n,r){t.value=n,t.getSnapshot=r,mx(t)&&gx(e)}function px(e,t,n){return n(function(){mx(t)&&gx(e)})}function mx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cn(e,n)}catch{return!0}}function gx(e){var t=Yn(e,1);t!==null&&ln(t,e,1,-1)}function Pg(e){var t=vn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=bj.bind(null,Re,e),[t.memoizedState,e]}function wa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function vx(){return qt().memoizedState}function Bl(e,t,n,r){var s=vn();Re.flags|=e,s.memoizedState=wa(1|t,n,void 0,r===void 0?null:r)}function qc(e,t,n,r){var s=qt();r=r===void 0?null:r;var o=void 0;if(We!==null){var i=We.memoizedState;if(o=i.destroy,r!==null&&hp(r,i.deps)){s.memoizedState=wa(t,n,o,r);return}}Re.flags|=e,s.memoizedState=wa(1|t,n,o,r)}function Tg(e,t){return Bl(8390656,8,e,t)}function gp(e,t){return qc(2048,8,e,t)}function yx(e,t){return qc(4,2,e,t)}function xx(e,t){return qc(4,4,e,t)}function wx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bx(e,t,n){return n=n!=null?n.concat([e]):null,qc(4,4,wx.bind(null,t,e),n)}function vp(){}function _x(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kx(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Sx(e,t,n){return Ps&21?(cn(n,t)||(n=P0(),Re.lanes|=n,Ts|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=n)}function xj(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var r=Xu.transition;Xu.transition={};try{e(!1),t()}finally{ve=n,Xu.transition=r}}function Cx(){return qt().memoizedState}function wj(e,t,n){var r=Lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jx(e))Nx(t,n);else if(n=ax(e,t,n,r),n!==null){var s=ut();ln(n,e,r,s),Ex(n,t,r)}}function bj(e,t,n){var r=Lr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jx(e))Nx(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,cn(a,i)){var c=t.interleaved;c===null?(s.next=s,lp(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=ax(e,t,s,r),n!==null&&(s=ut(),ln(n,e,r,s),Ex(n,t,r))}}function jx(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Nx(e,t){Ji=vc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ex(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gh(e,n)}}var yc={readContext:Vt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},_j={readContext:Vt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:Tg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bl(4194308,4,wx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bl(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=wj.bind(null,Re,e),[r.memoizedState,e]}
vendor: 4,766 bytes, lines 38-40
38,useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Pg,useDebugValue:vp,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Pg(!1),t=e[0];return e=xj.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,s=vn();if(Ee){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Ke===null)throw Error(D(349));Ps&30||fx(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Tg(px.bind(null,r,o,e),[e]),r.flags|=2048,wa(9,hx.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=vn(),t=Ke.identifierPrefix;if(Ee){var n=Vn,r=Hn;n=(r&~(1<<32-an(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ya++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=yj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kj={readContext:Vt,useCallback:_x,useContext:Vt,useEffect:gp,useImperativeHandle:bx,useInsertionEffect:yx,useLayoutEffect:xx,useMemo:kx,useReducer:Zu,useRef:vx,useState:function(){return Zu(xa)},useDebugValue:vp,useDeferredValue:function(e){var t=qt();return Sx(t,We.memoizedState,e)},useTransition:function(){var e=Zu(xa)[0],t=qt().memoizedState;return[e,t]},useMutableSource:ux,useSyncExternalStore:dx,useId:Cx,unstable_isNewReconciler:!1},Sj={readContext:Vt,useCallback:_x,useContext:Vt,useEffect:gp,useImperativeHandle:bx,useInsertionEffect:yx,useLayoutEffect:xx,useMemo:kx,useReducer:ed,useRef:vx,useState:function(){return ed(xa)},useDebugValue:vp,useDeferredValue:function(e){var t=qt();return We===null?t.memoizedState=e:Sx(t,We.memoizedState,e)},useTransition:function(){var e=ed(xa)[0],t=qt().memoizedState;return[e,t]},useMutableSource:ux,useSyncExternalStore:dx,useId:Cx,unstable_isNewReconciler:!1};function en(e,t){if(e&&e.defaultProps){t=Oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kc={isMounted:function(e){return(e=e._reactInternals)?Us(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ut(),s=Lr(e),o=qn(r,s);o.payload=t,n!=null&&(o.callback=n),t=Dr(e,o,s),t!==null&&(ln(t,e,s,r),Fl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ut(),s=Lr(e),o=qn(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Dr(e,o,s),t!==null&&(ln(t,e,s,r),Fl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ut(),r=Lr(e),s=qn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Dr(e,s,r),t!==null&&(ln(t,e,r,n),Fl(t,e,r))}};function Rg(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!fa(n,r)||!fa(s,o):!0}function Px(e,t,n){var r=!1,s=Hr,o=t.contextType;return typeof o=="object"&&o!==null?o=Vt(o):(s=_t(t)?Ns:ot.current,r=t.contextTypes,o=(r=r!=null)?Yo(e,s):Hr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function Og(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kc.enqueueReplaceState(t,t.state,null)}function wf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},cp(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Vt(o):(o=_t(t)?Ns:ot.current,s.context=Yo(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(xf(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Kc.enqueueReplaceState(s,s.state,null),mc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Zo(e,t){try{var n="",r=t;do n+=XS(r),r=r.return;while(r);var s=n}catch(o){s=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:s,digest:null}}function td(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Cj=typeof WeakMap=="function"?WeakMap:Map;function Tx(e,t,n){n=qn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){wc||(wc=!0,Rf=r),bf(e,t)},n}
vendor: 10,937 bytes, line 40
40function Rx(e,t,n){n=qn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){bf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bf(e,t),typeof r!="function"&&($r===null?$r=new Set([this]):$r.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ag(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cj;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Fj.bind(null,e,t,n),t.then(e,e))}function Mg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ig(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qn(-1,1),t.tag=2,Dr(n,t,1))),n.lanes|=1),e)}var jj=er.ReactCurrentOwner,xt=!1;function lt(e,t,n,r){t.child=e===null?ix(t,null,n,r):Jo(t,e.child,n,r)}function Dg(e,t,n,r,s){n=n.render;var o=t.ref;return To(t,s),r=pp(e,t,n,r,o,s),n=mp(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qn(e,t,s)):(Ee&&n&&np(t),t.flags|=1,lt(e,t,r,s),t.child)}function $g(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Cp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ox(e,t,o,r,s)):(e=Vl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:fa,n(i,r)&&e.ref===t.ref)return Qn(e,t,s)}return t.flags|=1,e=Fr(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ox(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(fa(o,r)&&e.ref===t.ref)if(xt=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(xt=!0);else return t.lanes=e.lanes,Qn(e,t,s)}return _f(e,t,n,r,s)}function Ax(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(So,Ct),Ct|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,be(So,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,be(So,Ct),Ct|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,be(So,Ct),Ct|=r;return lt(e,t,s,n),t.child}function Mx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _f(e,t,n,r,s){var o=_t(n)?Ns:ot.current;return o=Yo(t,o),To(t,s),n=pp(e,t,n,r,o,s),r=mp(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qn(e,t,s)):(Ee&&r&&np(t),t.flags|=1,lt(e,t,n,s),t.child)}function Lg(e,t,n,r,s){if(_t(n)){var o=!0;uc(t)}else o=!1;if(To(t,s),t.stateNode===null)Wl(e,t),Px(t,n,r),wf(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Vt(u):(u=_t(n)?Ns:ot.current,u=Yo(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||c!==u)&&Og(t,i,r,u),gr=!1;var m=t.memoizedState;i.state=m,mc(t,r,i,s),c=t.memoizedState,a!==r||m!==c||bt.current||gr?(typeof d=="function"&&(xf(t,n,d,r),c=t.memoizedState),(a=gr||Rg(t,n,a,r,m,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,lx(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:en(t.type,a),i.props=u,f=t.pendingProps,m=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Vt(c):(c=_t(n)?Ns:ot.current,c=Yo(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||m!==c)&&Og(t,i,r,c),gr=!1,m=t.memoizedState,i.state=m,mc(t,r,i,s);var b=t.memoizedState;a!==f||m!==b||bt.current||gr?(typeof h=="function"&&(xf(t,n,h,r),b=t.memoizedState),(u=gr||Rg(t,n,u,r,m,b,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,b,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,b,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),i.props=r,i.state=b,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return kf(e,t,n,r,o,s)}function kf(e,t,n,r,s,o){Mx(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&kg(t,n,!1),Qn(e,t,o);r=t.stateNode,jj.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Jo(t,e.child,null,o),t.child=Jo(t,null,a,o)):lt(e,t,a,o),t.memoizedState=r.state,s&&kg(t,n,!0),t.child}function Ix(e){var t=e.stateNode;t.pendingContext?_g(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_g(e,t.context,!1),up(e,t.containerInfo)}function Fg(e,t,n,r,s){return Qo(),sp(s),t.flags|=256,lt(e,t,n,r),t.child}var Sf={dehydrated:null,treeContext:null,retryLane:0};function Cf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dx(e,t,n){var r=t.pendingProps,s=Te.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),be(Te,s&1),e===null)return vf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Qc(i,r,0,null),e=js(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Cf(n),t.memoizedState=Sf,e):yp(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Nj(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Fr(s,c),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Fr(a,o):(o=js(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Cf(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Sf,r}return o=e.child,e=o.sibling,r=Fr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function yp(e,t){return t=Qc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gl(e,t,n,r){return r!==null&&sp(r),Jo(t,e.child,null,n),e=yp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nj(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=td(Error(D(422))),gl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Qc({mode:"visible",children:r.children},s,0,null),o=js(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Jo(t,e.child,null,i),t.child.memoizedState=Cf(i),t.memoizedState=Sf,o);if(!(t.mode&1))return gl(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(D(419)),r=td(o,r,void 0),gl(e,t,i,r)}if(a=(i&e.childLanes)!==0,xt||a){if(r=Ke,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Yn(e,s),ln(r,e,s,-1))}return Sp(),r=td(Error(D(421))),gl(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=zj.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,Et=Ir(s.nextSibling),Pt=t,Ee=!0,on=null,e!==null&&(zt[Bt++]=Hn,zt[Bt++]=Vn,zt[Bt++]=Es,Hn=e.id,Vn=e.overflow,Es=t),t=yp(t,r.children),t.flags|=4096,t)}function zg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yf(e.return,t,n)}function nd(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function $x(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(lt(e,t,r.children,n),r=Te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zg(e,n,t);else if(e.tag===19)zg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(be(Te,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&gc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),nd(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&gc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}nd(t,!0,n,null,o);break;case"together":nd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ts|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=Fr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;
vendor: 4,652 bytes, line 40
40)e=e.sibling,n=n.sibling=Fr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ej(e,t,n){switch(t.tag){case 3:Ix(t),Qo();break;case 5:cx(t);break;case 1:_t(t.type)&&uc(t);break;case 4:up(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;be(hc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(be(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?Dx(e,t,n):(be(Te,Te.current&1),e=Qn(e,t,n),e!==null?e.sibling:null);be(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $x(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),be(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,Ax(e,t,n)}return Qn(e,t,n)}var Lx,jf,Fx,zx;Lx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};jf=function(){};Fx=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ms(Nn.current);var o=null;switch(n){case"input":s=Kd(e,s),r=Kd(e,r),o=[];break;case"select":s=Oe({},s,{value:void 0}),r=Oe({},r,{value:void 0}),o=[];break;case"textarea":s=Qd(e,s),r=Qd(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=lc)}Xd(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oa.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&a[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oa.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Ce("scroll",e),o||a===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};zx=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ti(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Pj(e,t,n){var r=t.pendingProps;switch(rp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return _t(t.type)&&cc(),et(t),null;case 3:return r=t.stateNode,Xo(),je(bt),je(ot),fp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,on!==null&&(Mf(on),on=null))),jf(e,t),et(t),null;case 5:dp(t);var s=ms(va.current);if(n=t.type,e!==null&&t.stateNode!=null)Fx(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return et(t),null}if(e=ms(Nn.current),pl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_n]=t,r[ma]=o,e=(t.mode&1)!==0,n){case"dialog":Ce("cancel",r),Ce("close",r);break;case"iframe":case"object":case"embed":Ce("load",r);break;case"video":case"audio":for(s=0;s<Bi.length;s++)Ce(Bi[s],r);break;case"source":Ce("error",r);break;case"img":case"image":case"link":Ce("error",r),Ce("load",r);break;case"details":Ce("toggle",r);break;case"input":Ym(r,o),Ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ce("invalid",r);break;case"textarea":Jm(r,o),Ce("invalid",r)}Xd(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 28,896 bytes, line 40
40i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&hl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&hl(r.textContent,a,e),s=["children",""+a]):oa.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&Ce("scroll",r)}switch(n){case"input":ol(r),Qm(r,o,!0);break;case"textarea":ol(r),Xm(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=lc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=p0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[_n]=t,e[ma]=r,Lx(e,t,!1,!1),t.stateNode=e;e:{switch(i=Zd(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),s=r;break;case"iframe":case"object":case"embed":Ce("load",e),s=r;break;case"video":case"audio":for(s=0;s<Bi.length;s++)Ce(Bi[s],e);s=r;break;case"source":Ce("error",e),s=r;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),s=r;break;case"details":Ce("toggle",e),s=r;break;case"input":Ym(e,r),s=Kd(e,r),Ce("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Oe({},r,{value:void 0}),Ce("invalid",e);break;case"textarea":Jm(e,r),s=Qd(e,r),Ce("invalid",e);break;default:s=r}Xd(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];o==="style"?v0(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&m0(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&ia(e,c):typeof c=="number"&&ia(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(oa.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Ce("scroll",e):c!=null&&Wh(e,o,c,i))}switch(n){case"input":ol(e),Qm(e,r,!1);break;case"textarea":ol(e),Xm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ur(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?jo(e,!!r.multiple,o,!1):r.defaultValue!=null&&jo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=lc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)zx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=ms(va.current),ms(Nn.current),pl(t)){if(r=t.stateNode,n=t.memoizedProps,r[_n]=t,(o=r.nodeValue!==n)&&(e=Pt,e!==null))switch(e.tag){case 3:hl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_n]=t,t.stateNode=r}return et(t),null;case 13:if(je(Te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&Et!==null&&t.mode&1&&!(t.flags&128))sx(),Qo(),t.flags|=98560,o=!1;else if(o=pl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(D(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(D(317));o[_n]=t}else Qo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else on!==null&&(Mf(on),on=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Te.current&1?He===0&&(He=3):Sp())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return Xo(),jf(e,t),e===null&&ha(t.stateNode.containerInfo),et(t),null;case 10:return ap(t.type._context),et(t),null;case 17:return _t(t.type)&&cc(),et(t),null;case 19:if(je(Te),o=t.memoizedState,o===null)return et(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Ti(o,!1);else{if(He!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=gc(e),i!==null){for(t.flags|=128,Ti(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return be(Te,Te.current&1|2),t.child}e=e.sibling}o.tail!==null&&$e()>ei&&(t.flags|=128,r=!0,Ti(o,!1),t.lanes=4194304)}else{if(!r)if(e=gc(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ti(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Ee)return et(t),null}else 2*$e()-o.renderingStartTime>ei&&n!==1073741824&&(t.flags|=128,r=!0,Ti(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$e(),t.sibling=null,n=Te.current,be(Te,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return kp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function Tj(e,t){switch(rp(t),t.tag){case 1:return _t(t.type)&&cc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xo(),je(bt),je(ot),fp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dp(t),null;case 13:if(je(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Qo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(Te),null;case 4:return Xo(),null;case 10:return ap(t.type._context),null;case 22:case 23:return kp(),null;case 24:return null;default:return null}}var vl=!1,rt=!1,Rj=typeof WeakSet=="function"?WeakSet:Set,W=null;function ko(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Nf(e,t,n){try{n()}catch(r){De(e,t,r)}}var Bg=!1;function Oj(e,t){if(uf=oc,e=V0(),tp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var h;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++u===s&&(a=i),m===o&&++d===r&&(c=i),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(df={focusedElem:e,selectionRange:n},oc=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,y=b.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?v:en(t.type,v),y);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(_){De(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return b=Bg,Bg=!1,b}function Xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Nf(t,n,o)}s=s.next}while(s!==r)}}function Gc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ef(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Bx(e){var t=e.alternate;t!==null&&(e.alternate=null,Bx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[ma],delete t[pf],delete t[pj],delete t[mj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wx(e){return e.tag===5||e.tag===3||e.tag===4}function Wg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lc));else if(r!==4&&(e=e.child,e!==null))for(Pf(e,t,n),e=e.sibling;e!==null;)Pf(e,t,n),e=e.sibling}function Tf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tf(e,t,n),e=e.sibling;e!==null;)Tf(e,t,n),e=e.sibling}var Ge=null,rn=!1;function or(e,t,n){for(n=n.child;n!==null;)Ux(e,t,n),n=n.sibling}function Ux(e,t,n){if(jn&&typeof jn.onCommitFiberUnmount=="function")try{jn.onCommitFiberUnmount(zc,n)}catch{}switch(n.tag){case 5:rt||ko(n,t);case 6:var r=Ge,s=rn;Ge=null,or(e,t,n),Ge=r,rn=s,Ge!==null&&(rn?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(rn?(e=Ge,n=n.stateNode,e.nodeType===8?Yu(e.parentNode,n):e.nodeType===1&&Yu(e,n),ua(e)):Yu(Ge,n.stateNode));break;case 4:r=Ge,s=rn,Ge=n.stateNode.containerInfo,rn=!0,or(e,t,n),Ge=r,rn=s;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Nf(n,t,i),s=s.next}while(s!==r)}or(e,t,n);break;case 1:if(!rt&&(ko(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){De(n,t,a)}or(e,t,n);break;case 21:or(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,or(e,t,n),rt=r):or(e,t,n);break;default:or(e,t,n)}}function Ug(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rj),t.forEach(function(r){var s=Bj.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Ge=a.stateNode,rn=!1;break e;case 3:Ge=a.stateNode.containerInfo,rn=!0;break e;case 4:Ge=a.stateNode.containerInfo,rn=!0;break e}a=a.return}if(Ge===null)throw Error(D(160));Ux(o,i,s),Ge=null,rn=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){De(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hx(t,e),t=t.sibling}function Hx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(t,e),gn(e),r&4){try{Xi(3,e,e.return),Gc(3,e)}catch(v){De(e,e.return,v)}try{Xi(5,e,e.return)}catch(v){De(e,e.return,v)}}break;case 1:Qt(t,e),gn(e),r&512&&n!==null&&ko(n,n.return);break;case 5:if(Qt(t,e),gn(e),r&512&&n!==null&&ko(n,n.return),e.flags&32){var s=e.stateNode;try{ia(s,"")}catch(v){De(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&f0(s,o),Zd(a,i);var u=Zd(a,o);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];d==="style"?v0(s,f):d==="dangerouslySetInnerHTML"?m0(s,f):d==="children"?ia(s,f):Wh(s,d,f,u)}switch(a){case"input":Gd(s,o);break;case"textarea":h0(s,o);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?jo(s,!!o.multiple,h,!1):m!==!!o.multiple&&(o.defaultValue!=null?jo(s,!!o.multiple,o.defaultValue,!0):jo(s,!!o.multiple,o.multiple?[]:"",!1))}s[ma]=o}catch(v){De(e,e.return,v)}}break;case 6:if(Qt(t,e),gn(e),r&4){if(e.stateNode===null)throw Error(D(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(v){De(e,e.return,v)}}break;case 3:if(Qt(t,e),gn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ua(t.containerInfo)}catch(v){De(e,e.return,v)}break;case 4:Qt(t,e),gn(e);break;case 13:Qt(t,e),gn(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(bp=$e())),r&4&&Ug(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(rt=(u=rt)||d,Qt(t,e),rt=u):Qt(t,e),gn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(W=e,d=e.child;d!==null;){for(f=W=d;W!==null;){switch(m=W,h=m.child,m.tag){case 0:case 11:case 14:case 15:Xi(4,m,m.return);break;case 1:ko(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(v){De(r,n,v)}}break;case 5:ko(m,m.return);break;case 22:if(m.memoizedState!==null){Vg(f);continue}}h!==null?(h.return=m,W=h):Vg(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=g0("display",i))}catch(v){De(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){De(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Qt(t,e),gn(e),r&4&&Ug(e);break;case 21:break;default:Qt(t,e),gn(e)}}function gn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Wx(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ia(s,""),r.flags&=-33);var o=Wg(e);Tf(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Wg(e);Pf(e,a,i);break;default:throw Error(D(161))}}catch(c){De(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Aj(e,t,n){W=e,Vx(e)}function Vx(e,t,n){for(var r=(e.mode&1)!==0;W!==null;){var s=W,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||vl;if(!i){var a=s.alternate,c=a!==null&&a.memoizedState!==null||rt;a=vl;var u=rt;if(vl=i,(rt=c)&&!u)for(W=s;W!==null;)i=W,c=i.child,i.tag===22&&i.memoizedState!==null?qg(s):c!==null?(c.return=i,W=c):qg(s);for(;o!==null;)W=o,Vx(o),o=o.sibling;W=s,vl=a,rt=u}Hg(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,W=o):Hg(e)}}function Hg(e){for(;W!==null;){var t=W;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rt||Gc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Eg(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Eg(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ua(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}rt||t.flags&512&&Ef(t)}catch(m){De(t,t.return,m)}}if(t===e){W=null;break}if(n=t.sibling,n!==null){n.return=t.return,W=n;break}W=t.return}}function Vg(e){for(;W!==null;){var t=W;if(t===e){W=null;break}var n=t.sibling;if(n!==null){n.return=t.return,W=n;break}W=t.return}}function qg(e){for(;W!==null;){var t=W;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gc(4,t)}catch(c){De(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){De(t,s,c)}}var o=t.return;try{Ef(t)}catch(c){De(t,o,c)}break;case 5:var i=t.return;try{Ef(t)}catch(c){De(t,i,c)}}}catch(c){De(t,t.return,c)}if(t===e){W=null;break}var a=t.sibling;if(a!==null){a.return=t.return,W=a;break}W=t.return}}var Mj=Math.ceil,xc=er.ReactCurrentDispatcher,xp=er.ReactCurrentOwner,Ut=er.ReactCurrentBatchConfig,ce=0,Ke=null,Le=null,Qe=0,Ct=0,So=Gr(0),He=0,ba=null,Ts=0,Yc=0,wp=0,Zi=null,vt=null,bp=0,ei=1/0,Fn=null,wc=!1,Rf=null,$r=null,yl=!1,Pr=null,bc=0,ea=0,Of=null,Ul=-1,Hl=0;function ut(){return ce&6?$e():Ul!==-1?Ul:Ul=$e()}function Lr(e){return e.mode&1?ce&2&&Qe!==0?Qe&-Qe:vj.transition!==null?(Hl===0&&(Hl=P0()),Hl):(e=ve,e!==0||(e=window.event,e=e===void 0?16:D0(e.type)),e):1}function ln(e,t,n,r){if(50<ea)throw ea=0,Of=null,Error(D(185));$a(e,n,r),(!(ce&2)||e!==Ke)&&(e===Ke&&(!(ce&2)&&(Yc|=n),He===4&&yr(e,Qe)),kt(e,r),n===1&&ce===0&&!(t.mode&1)&&(ei=$e()+500,Vc&&Yr()))}function kt(e,t){var n=e.callbackNode;vC(e,t);var r=sc(e,e===Ke?Qe:0);if(r===0)n!==null&&tg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&tg(n),t===1)e.tag===0?gj(Kg.bind(null,e)):tx(Kg.bind(null,e)),fj(function(){!(ce&6)&&Yr()}),n=null;else{switch(T0(r)){case 1:n=Kh;break;case 4:n=N0;break;case 16:n=rc;break;case 536870912:n=E0;break;default:n=rc}n=Zx(n,qx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qx(e,t){if(Ul=-1,Hl=0,ce&6)throw Error(D(327));var n=e.callbackNode;if(Ro()&&e.callbackNode!==n)return null;var r=sc(e,e===Ke?Qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_c(e,r);else{t=r;var s=ce;ce|=2;var o=Gx();(Ke!==e||Qe!==t)&&(Fn=null,ei=$e()+500,Cs(e,t));do try{$j();break}catch(a){Kx(e,a)}while(!0);ip(),xc.current=o,ce=s,Le!==null?t=0:(Ke=null,Qe=0,t=He)}if(t!==0){if(t===2&&(s=sf(e),s!==0&&(r=s,t=Af(e,s))),t===1)throw n=ba,Cs(e,0),yr(e,r),kt(e,$e()),n;if(t===6)yr(e,r);else{if(s=e.current.alternate,!(r&30)&&!Ij(s)&&(t=_c(e,r),t===2&&(o=sf(e),o!==0&&(r=o,t=Af(e,o))),t===1))throw n=ba,Cs(e,0),yr(e,r),kt(e,$e()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:cs(e,vt,Fn);break;case 3:if(yr(e,r),(r&130023424)===r&&(t=bp+500-$e(),10<t)){if(sc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ut(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=hf(cs.bind(null,e,vt,Fn),t);break}cs(e,vt,Fn);break;case 4:if(yr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-an(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=$e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mj(r/1960))-r,10<r){e.timeoutHandle=hf(cs.bind(null,e,vt,Fn),r);break}cs(e,vt,Fn);break;case 5:cs(e,vt,Fn);break;default:throw Error(D(329))}}}return kt(e,$e()),e.callbackNode===n?qx.bind(null,e):null}function Af(e,t){var n=Zi;return e.current.memoizedState.isDehydrated&&(Cs(e,t).flags|=256),e=_c(e,t),e!==2&&(t=vt,vt=n,t!==null&&Mf(t)),e}function Mf(e){vt===null?vt=e:vt.push.apply(vt,e)}function Ij(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!cn(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yr(e,t){for(t&=~wp,t&=~Yc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-an(t),r=1<<n;e[n]=-1,t&=~r}}function Kg(e){if(ce&6)throw Error(D(327));Ro();var t=sc(e,0);if(!(t&1))return kt(e,$e()),null;var n=_c(e,t);if(e.tag!==0&&n===2){var r=sf(e);r!==0&&(t=r,n=Af(e,r))}if(n===1)throw n=ba,Cs(e,0),yr(e,t),kt(e,$e()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cs(e,vt,Fn),kt(e,$e()),null}function _p(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(ei=$e()+500,Vc&&Yr())}}function Rs(e){Pr!==null&&Pr.tag===0&&!(ce&6)&&Ro();var t=ce;ce|=1;var n=Ut.transition,r=ve;try{if(Ut.transition=null,ve=1,e)return e()}finally{ve=r,Ut.transition=n,ce=t,!(ce&6)&&Yr()}}function kp(){Ct=So.current,je(So)}function Cs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dj(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(rp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&cc();break;case 3:Xo(),je(bt),je(ot),fp();break;case 5:dp(r);break;case 4:Xo();break;case 13:je(Te);break;case 19:je(Te);break;case 10:ap(r.type._context);break;case 22:case 23:kp()}n=n.return}if(Ke=e,Le=e=Fr(e.current,null),Qe=Ct=t,He=0,ba=null,wp=Yc=Ts=0,vt=Zi=null,ps!==null){for(t=0;t<ps.length;t++)if(n=ps[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}ps=null}return e}function Kx(e,t){do{var n=Le;try{if(ip(),zl.current=yc,vc){for(var r=Re.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}vc=!1}if(Ps=0,qe=We=Re=null,Ji=!1,ya=0,xp.current=null,n===null||n.return===null){He=1,ba=t,Le=null;break}e:{var o=e,i=n.return,a=n,c=t;if(t=Qe,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Mg(i);if(h!==null){h.flags&=-257,Ig(h,i,a,o,t),h.mode&1&&Ag(o,u,t),t=h,c=u;var b=t.updateQueue;if(b===null){var v=new Set;v.add(c),t.updateQueue=v}else b.add(c);break e}else{if(!(t&1)){Ag(o,u,t),Sp();break e}c=Error(D(426))}}else if(Ee&&a.mode&1){var y=Mg(i);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Ig(y,i,a,o,t),sp(Zo(c,a));break e}}o=c=Zo(c,a),He!==4&&(He=2),Zi===null?Zi=[o]:Zi.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var x=Tx(o,c,t);Ng(o,x);break e;case 1:a=c;var g=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&($r===null||!$r.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Rx(o,a,t);Ng(o,_);break e}}o=o.return}while(o!==null)}Qx(n)}catch(k){t=k,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function Gx(){var e=xc.current;return xc.current=yc,e===null?yc:e}function Sp(){(He===0||He===3||He===2)&&(He=4),Ke===null||!(Ts&268435455)&&!(Yc&268435455)||yr(Ke,Qe)}function _c(e,t){var n=ce;ce|=2;var r=Gx();(Ke!==e||Qe!==t)&&(Fn=null,Cs(e,t));do try{Dj();break}catch(s){Kx(e,s)}while(!0);if(ip(),ce=n,xc.current=r,Le!==null)throw Error(D(261));return Ke=null,Qe=0,He}function Dj(){for(;Le!==null;)Yx(Le)}function $j(){for(;Le!==null&&!lC();)Yx(Le)}function Yx(e){var t=Xx(e.alternate,e,Ct);e.memoizedProps=e.pendingProps,t===null?Qx(e):Le=t,xp.current=null}function Qx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Tj(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,Le=null;return}}else if(n=Pj(n,t,Ct),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);He===0&&(He=5)}function cs(e,t,n){var r=ve,s=Ut.transition;try{Ut.transition=null,ve=1,Lj(e,t,n,r)}finally{Ut.transition=s,ve=r}return null}function Lj(e,t,n,r){do Ro();while(Pr!==null);if(ce&6)throw Error(D(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(yC(e,o),e===Ke&&(Le=Ke=null,Qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yl||(yl=!0,Zx(rc,function(){return Ro(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ut.transition,Ut.transition=null;var i=ve;ve=1;var a=ce;ce|=4,xp.current=null,Oj(e,n),Hx(n,e),sj(df),oc=!!uf,df=uf=null,e.current=n,Aj(n),cC(),ce=a,ve=i,Ut.transition=o}else e.current=n;if(yl&&(yl=!1,Pr=e,bc=s),o=e.pendingLanes,o===0&&($r=null),fC(n.stateNode),kt(e,$e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(wc)throw wc=!1,e=Rf,Rf=null,e;return bc&1&&e.tag!==0&&Ro(),o=e.pendingLanes,o&1?e===Of?ea++:(ea=0,Of=e):ea=0,Yr(),null}function Ro(){if(Pr!==null){var e=T0(bc),t=Ut.transition,n=ve;try{if(Ut.transition=null,ve=16>e?16:e,Pr===null)var r=!1;else{if(e=Pr,Pr=null,bc=0,ce&6)throw Error(D(331));var s=ce;for(ce|=4,W=e.current;W!==null;){var o=W,i=o.child;if(W.flags&16){var a=o.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(W=u;W!==null;){var d=W;switch(d.tag){case 0:case 11:case 15:Xi(8,d,o)}var f=d.child;if(f!==null)f.return=d,W=f;else for(;W!==null;){d=W;var m=d.sibling,h=d.return;if(Bx(d),d===u){W=null;break}if(m!==null){m.return=h,W=m;break}W=h}}}var b=o.alternate;if(b!==null){var v=b.child;if(v!==null){b.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}W=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,W=i;else e:for(;W!==null;){if(o=W,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Xi(9,o,o.return)}var x=o.sibling;if(x!==null){x.return=o.return,W=x;break e}W=o.return}}var g=e.current;for(W=g;W!==null;){i=W;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,W=w;else e:for(i=g;W!==null;){if(a=W,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Gc(9,a)}}catch(k){De(a,a.return,k)}if(a===i){W=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,W=_;break e}W=a.return}}if(ce=s,Yr(),jn&&typeof jn.onPostCommitFiberRoot=="function")try{jn.onPostCommitFiberRoot(zc,e)}catch{}r=!0}return r}finally{ve=n,Ut.transition=t}}return!1}function Gg(e,t,n){t=Zo(n,t),t=Tx(e,t,1),e=Dr(e,t,1),t=ut(),e!==null&&($a(e,1,t),kt(e,t))}function De(e,t,n){if(e.tag===3)Gg(e,e,n);else for(;t!==null;){if(t.tag===3){Gg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($r===null||!$r.has(r))){e=Zo(n,e),e=Rx(t,e,1),t=Dr(t,e,1),e=ut(),t!==null&&($a(t,1,e),kt(t,e));break}}t=t.return}}function Fj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ut(),e.pingedLanes|=e.suspendedLanes&n,Ke===e&&(Qe&n)===n&&(He===4||He===3&&(Qe&130023424)===Qe&&500>$e()-bp?Cs(e,0):wp|=n),kt(e,t)}function Jx(e,t){t===0&&(e.mode&1?(t=ll,ll<<=1,!(ll&130023424)&&(ll=4194304)):t=1);var n=ut();e=Yn(e,t),e!==null&&($a(e,t,n),kt(e,n))}function zj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jx(e,n)}function Bj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),Jx(e,n)}var Xx;Xx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)xt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xt=!1,Ej(e,t,n);xt=!!(e.flags&131072)}else xt=!1,Ee&&t.flags&1048576&&nx(t,fc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var s=Yo(t,ot.current);To(t,n),s=pp(null,t,r,e,s,n);var o=mp();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_t(r)?(o=!0,uc(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,cp(t),s.updater=Kc,t.stateNode=s,s._reactInternals=t,wf(t,r,e,n),t=kf(null,t,r,!0,o,n)):(t.tag=0,Ee&&o&&np(t),lt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Uj(r),e=en(r,e),s){case 0:t=_f(null,t,r,e,n);break e;case 1:t=Lg(null,t,r,e,n);break e;case 11:t=Dg(null,t,r,e,n);break e;case 14:t=$g(null,t,r,en(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),_f(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Lg(e,t,r,s,n);case 3:e:{if(Ix(t),e===null)throw Error(D(387));
vendor: 4,912 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,s=o.element,lx(e,t),mc(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=Zo(Error(D(423)),t),t=Fg(e,t,r,n,s);break e}else if(r!==s){s=Zo(Error(D(424)),t),t=Fg(e,t,r,n,s);break e}else for(Et=Ir(t.stateNode.containerInfo.firstChild),Pt=t,Ee=!0,on=null,n=ix(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qo(),r===s){t=Qn(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return cx(t),e===null&&vf(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,ff(r,s)?i=null:o!==null&&ff(r,o)&&(t.flags|=32),Mx(e,t),lt(e,t,i,n),t.child;case 6:return e===null&&vf(t),null;case 13:return Dx(e,t,n);case 4:return up(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jo(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Dg(e,t,r,s,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,be(hc,r._currentValue),r._currentValue=i,o!==null)if(cn(o.value,i)){if(o.children===s.children&&!bt.current){t=Qn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=qn(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),yf(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(D(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),yf(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}lt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,To(t,n),s=Vt(s),r=r(s),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,s=en(r,t.pendingProps),s=en(r.type,s),$g(e,t,r,s,n);case 15:return Ox(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Wl(e,t),t.tag=1,_t(r)?(e=!0,uc(t)):e=!1,To(t,n),Px(t,r,s),wf(t,r,s,n),kf(null,t,r,!0,e,n);case 19:return $x(e,t,n);case 22:return Ax(e,t,n)}throw Error(D(156,t.tag))};function Zx(e,t){return j0(e,t)}function Wj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,n,r){return new Wj(e,t,n,r)}function Cp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uj(e){if(typeof e=="function")return Cp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hh)return 11;if(e===Vh)return 14}return 2}function Fr(e,t){var n=e.alternate;return n===null?(n=Wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vl(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Cp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case po:return js(n.children,s,o,t);case Uh:i=8,s|=8;break;case Ud:return e=Wt(12,n,t,s|2),e.elementType=Ud,e.lanes=o,e;case Hd:return e=Wt(13,n,t,s),e.elementType=Hd,e.lanes=o,e;case Vd:return e=Wt(19,n,t,s),e.elementType=Vd,e.lanes=o,e;case c0:return Qc(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a0:i=10;break e;case l0:i=9;break e;case Hh:i=11;break e;case Vh:i=14;break e;case mr:i=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Wt(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function js(e,t,n,r){return e=Wt(7,e,r,t),e.lanes=n,e}function Qc(e,t,n,r){return e=Wt(22,e,r,t),e.elementType=c0,e.lanes=n,e.stateNode={isHidden:!1},e}function rd(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function sd(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}
vendor: 5,453 bytes, line 40
40function Hj(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lu(0),this.expirationTimes=Lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function jp(e,t,n,r,s,o,i,a,c){return e=new Hj(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Wt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cp(o),e}function Vj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ho,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ew(e){if(!e)return Hr;e=e._reactInternals;e:{if(Us(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(_t(n))return ex(e,n,t)}return t}function tw(e,t,n,r,s,o,i,a,c){return e=jp(n,r,!0,e,s,o,i,a,c),e.context=ew(null),n=e.current,r=ut(),s=Lr(n),o=qn(r,s),o.callback=t??null,Dr(n,o,s),e.current.lanes=s,$a(e,s,r),kt(e,r),e}function Jc(e,t,n,r){var s=t.current,o=ut(),i=Lr(s);return n=ew(n),t.context===null?t.context=n:t.pendingContext=n,t=qn(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Dr(s,t,i),e!==null&&(ln(e,s,i,o),Fl(e,s,i)),i}function kc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Np(e,t){Yg(e,t),(e=e.alternate)&&Yg(e,t)}function qj(){return null}var nw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ep(e){this._internalRoot=e}Xc.prototype.render=Ep.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Jc(e,t,null,null)};Xc.prototype.unmount=Ep.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rs(function(){Jc(null,e,null,null)}),t[Gn]=null}};function Xc(e){this._internalRoot=e}Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=A0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vr.length&&t!==0&&t<vr[n].priority;n++);vr.splice(n,0,e),n===0&&I0(e)}};function Pp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qg(){}function Kj(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=kc(i);o.call(u)}}var i=tw(t,r,e,0,null,!1,!1,"",Qg);return e._reactRootContainer=i,e[Gn]=i.current,ha(e.nodeType===8?e.parentNode:e),Rs(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=kc(c);a.call(u)}}var c=jp(e,0,!1,null,null,!1,!1,"",Qg);return e._reactRootContainer=c,e[Gn]=c.current,ha(e.nodeType===8?e.parentNode:e),Rs(function(){Jc(t,c,n,r)}),c}function eu(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var c=kc(i);a.call(c)}}Jc(t,i,e,s)}else i=Kj(n,t,e,s,r);return kc(i)}R0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=zi(t.pendingLanes);n!==0&&(Gh(t,n|1),kt(t,$e()),!(ce&6)&&(ei=$e()+500,Yr()))}break;case 13:Rs(function(){var r=Yn(e,1);if(r!==null){var s=ut();ln(r,e,1,s)}}),Np(e,1)}};Yh=function(e){if(e.tag===13){var t=Yn(e,134217728);if(t!==null){var n=ut();ln(t,e,134217728,n)}Np(e,134217728)}};O0=function(e){if(e.tag===13){var t=Lr(e),n=Yn(e,t);if(n!==null){var r=ut();ln(n,e,t,r)}Np(e,t)}};A0=function(){return ve};M0=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}};tf=function(e,t,n){switch(t){case"input":if(Gd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Hc(r);if(!s)throw Error(D(90));d0(r),Gd(r,s)}}}break;case"textarea":h0(e,n);break;case"select":t=n.value,t!=null&&jo(e,!!n.multiple,t,!1)}};w0=_p;b0=Rs;var Gj={usingClientEntryPoint:!1,Events:[Fa,yo,Hc,y0,x0,_p]},Ri={findFiberByHostInstance:hs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Yj={bundleType:Ri.bundleType,version:Ri.version,rendererPackageName:Ri.rendererPackageName,rendererConfig:Ri.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:er.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=S0(e),e===null?null:e.stateNode},findFiberByHostInstance:Ri.findFiberByHostInstance||qj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xl.isDisabled&&xl.supportsFiber)try{zc=xl.inject(Yj),jn=xl}catch{}}Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gj;Mt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pp(t))throw Error(D(200));return Vj(e,t,null,n)};Mt.createRoot=function(e,t){if(!Pp(e))throw Error(D(299));var n=!1,r="",s=nw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=jp(e,1,!1,null,null,n,!1,r,s),e[Gn]=t.current,ha(e.nodeType===8?e.parentNode:e),new Ep(t)};Mt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=S0(t),e=e===null?null:e.stateNode,e};Mt.flushSync=function(e){return Rs(e)};Mt.hydrate=function(e,t,n){if(!Zc(t))throw Error(D(200));return eu(null,e,t,!0,n)};Mt.hydrateRoot=function(e,t,n){if(!Pp(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=nw;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=tw(t,null,e,1,n??null,s,!1,o,i),e[Gn]=t.current,ha(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Xc(t)};Mt.render=function(e,t,n){if(!Zc(t))throw Error(D(200));return eu(null,e,t,!1,n)};Mt.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(D(40));return e._reactRootContainer?(Rs(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[Gn]=null})}),!0):!1};Mt.unstable_batchedUpdates=_p;Mt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return eu(e,t,n,!1,r)};Mt.version="18.3.1-next-f1338f8080-20240426";function rw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rw)}catch(e){console.error(e)}}rw(),r0.exports=Mt;var Hs=r0.exports;const sw=Vy(Hs);var ow,Jg=Hs;ow=Jg.createRoot,Jg.hydrateRoot;const Qj=1,Jj=1e6;let od=0;function Xj(){return od=(od+1)%Number.MAX_SAFE_INTEGER,od.toString()}const id=new Map,Xg=e=>{if(id.has(e))return;const t=setTimeout(()=>{id.delete(e),ta({type:"REMOVE_TOAST",toastId:e})},Jj);id.set(e,t)},Zj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Qj)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Xg(n):e.toasts.forEach(r=>{Xg(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ql=[];let Kl={toasts:[]};function ta(e){Kl=Zj(Kl,e),ql.forEach(t=>{t(Kl)})}function If({...e}){const t=Xj(),n=s=>ta({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>ta({type:"DISMISS_TOAST",toastId:t});return ta({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function ui(){const[e,t]=p.useState(Kl);return p.useEffect(()=>(ql.push(t),()=>{const n=ql.indexOf(t);n>-1&&ql.splice(n,1)}),[e]),{...e,toast:If,dismiss:n=>ta({type:"DISMISS_TOAST",toastId:n})}}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Zg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function iw(...e){return t=>{let n=!1;const r=e.map(s=>{const o=Zg(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():Zg(e[s],null)}}}}function pe(...e){return p.useCallback(iw(...e),e)}function eN(e,t){const n=p.createContext(t),r=o=>{const{children:i,...a}=o,c=p.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function s(o){const i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,s]}function pn(e,t=[]){let n=[];function r(o,i){const a=p.createContext(i),c=n.length;n=[...n,i];const u=f=>{var x;const{scope:m,children:h,...b}=f,v=((x=m==null?void 0:m[e])==null?void 0:x[c])||a,y=p.useMemo(()=>b,Object.values(b));return l.jsx(v.Provider,{value:y,children:h})};u.displayName=o+"Provider";function d(f,m){var v;const h=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,b=p.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const c=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,tN(s,...t)]}function tN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const f=c(o)[`__scope${u}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Os(e){const t=rN(e),n=p.forwardRef((r,s)=>{const{children:o,...i}=r,a=p.Children.toArray(o),c=a.find(oN);if(c){const u=c.props.children,d=a.map(f=>f===c?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...i,ref:s,children:p.isValidElement(u)?p.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}var nN=Os("Slot");function rN(e){const t=p.forwardRef((n,r)=>{const{children:s,...o}=n;if(p.isValidElement(s)){const i=aN(s),a=iN(o,s.props);return s.type!==p.Fragment&&(a.ref=r?iw(r,i):i),p.cloneElement(s,a)}return p.Children.count(s)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aw=Symbol("radix.slottable");function sN(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=aw,t}function oN(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aw}function iN(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{const c=o(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}
vendor: 8,742 bytes, line 40
40:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function aN(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Tp(e){const t=e+"CollectionProvider",[n,r]=pn(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:y,children:x}=v,g=$.useRef(null),w=$.useRef(new Map).current;return l.jsx(s,{scope:y,itemMap:w,collectionRef:g,children:x})};i.displayName=t;const a=e+"CollectionSlot",c=Os(a),u=$.forwardRef((v,y)=>{const{scope:x,children:g}=v,w=o(a,x),_=pe(y,w.collectionRef);return l.jsx(c,{ref:_,children:g})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Os(d),h=$.forwardRef((v,y)=>{const{scope:x,children:g,...w}=v,_=$.useRef(null),k=pe(y,_),S=o(d,x);return $.useEffect(()=>(S.itemMap.set(_,{ref:_,...w}),()=>void S.itemMap.delete(_))),l.jsx(m,{[f]:"",ref:k,children:g})});h.displayName=d;function b(v){const y=o(e+"CollectionConsumer",v);return $.useCallback(()=>{const g=y.collectionRef.current;if(!g)return[];const w=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((S,j)=>w.indexOf(S.ref.current)-w.indexOf(j.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},b,r]}var lN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=lN.reduce((e,t)=>{const n=Os(`Primitive.${t}`),r=p.forwardRef((s,o)=>{const{asChild:i,...a}=s,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lw(e,t){e&&Hs.flushSync(()=>e.dispatchEvent(t))}function Ot(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function cN(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e);p.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var uN="DismissableLayer",Df="dismissableLayer.update",dN="dismissableLayer.pointerDownOutside",fN="dismissableLayer.focusOutside",ev,cw=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),di=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...c}=e,u=p.useContext(cw),[d,f]=p.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=p.useState({}),b=pe(t,j=>f(j)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y),g=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=x,k=pN(j=>{const P=j.target,R=[...u.branches].some(O=>O.contains(P));!_||R||(s==null||s(j),i==null||i(j),j.defaultPrevented||a==null||a())},m),S=mN(j=>{const P=j.target;[...u.branches].some(O=>O.contains(P))||(o==null||o(j),i==null||i(j),j.defaultPrevented||a==null||a())},m);return cN(j=>{g===u.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},m),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ev=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),tv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ev)}},[d,m,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),tv())},[d,u]),p.useEffect(()=>{const j=()=>h({});return document.addEventListener(Df,j),()=>document.removeEventListener(Df,j)},[]),l.jsx(Y.div,{...c,ref:b,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,S.onFocusCapture),onBlurCapture:V(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,k.onPointerDownCapture)})});di.displayName=uN;var hN="DismissableLayerBranch",uw=p.forwardRef((e,t)=>{const n=p.useContext(cw),r=p.useRef(null),s=pe(t,r);return p.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),l.jsx(Y.div,{...e,ref:s})});uw.displayName=hN;function pN(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let c=function(){dw(dN,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function mN(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=p.useRef(!1);return p.useEffect(()=>{const s=o=>{o.target&&!r.current&&dw(fN,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tv(){const e=new CustomEvent(Df);document.dispatchEvent(e)}function dw(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?lw(s,o):s.dispatchEvent(o)}var gN=di,vN=uw,ze=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},yN="Portal",Ba=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=p.useState(!1);ze(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?sw.createPortal(l.jsx(Y.div,{...r,ref:t}),i):null});Ba.displayName=yN;function xN(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var On=e=>{const{present:t,children:n}=e,r=wN(t),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=pe(r.ref,bN(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:o}):null};On.displayName="Presence";function wN(e){const[t,n]=p.useState(),r=p.useRef(null),s=p.useRef(e),o=p.useRef("none"),i=e?"mounted":"unmounted",[a,c]=xN(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=wl(r.current);o.current=a==="mounted"?u:"none"},[a]),ze(()=>{const u=r.current,d=s.current;if(d!==e){const m=o.current,h=wl(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),ze(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const v=wl(r.current).includes(h.animationName);if(h.target===t&&v&&(c("ANIMATION_END"),!s.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=h=>{h.target===t&&(o.current=wl(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function wl(e){return(e==null?void 0:e.animationName)||"none"}function bN(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _N=Fh[" useInsertionEffect ".trim().toString()]||ze;function Jn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,o,i]=kN({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:s;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=p.useCallback(d=>{var f;if(a){const m=SN(d)?d(e):d;
40m!==e&&((f=i.current)==null||f.call(i,m))}else o(d)},[a,e,o,i]);return[c,u]}function kN({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),s=p.useRef(n),o=p.useRef(t);return _N(()=>{o.current=t},[t]),p.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}function SN(e){return typeof e=="function"}var fw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),CN="VisuallyHidden",tu=p.forwardRef((e,t)=>l.jsx(Y.span,{...e,ref:t,style:{...fw,...e.style}}));tu.displayName=CN;var jN=tu,Rp="ToastProvider",[Op,NN,EN]=Tp("Toast"),[hw,l3]=pn("Toast",[EN]),[PN,nu]=hw(Rp),pw=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,c]=p.useState(null),[u,d]=p.useState(0),f=p.useRef(!1),m=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Rp}\`. Expected non-empty \`string\`.`),l.jsx(Op.Provider,{scope:t,children:l.jsx(PN,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:c,onToastAdd:p.useCallback(()=>d(h=>h+1),[]),onToastRemove:p.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:i})})};pw.displayName=Rp;var mw="ToastViewport",TN=["F8"],$f="toast.viewportPause",Lf="toast.viewportResume",gw=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=TN,label:s="Notifications ({hotkey})",...o}=e,i=nu(mw,n),a=NN(n),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),m=pe(t,f,i.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;p.useEffect(()=>{const y=x=>{var w;r.length!==0&&r.every(_=>x[_]||x.code===_)&&((w=f.current)==null||w.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[r]),p.useEffect(()=>{const y=c.current,x=f.current;if(b&&y&&x){const g=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent($f);x.dispatchEvent(S),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(Lf);x.dispatchEvent(S),i.isClosePausedRef.current=!1}},_=S=>{!y.contains(S.relatedTarget)&&w()},k=()=>{y.contains(document.activeElement)||w()};return y.addEventListener("focusin",g),y.addEventListener("focusout",_),y.addEventListener("pointermove",g),y.addEventListener("pointerleave",k),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{y.removeEventListener("focusin",g),y.removeEventListener("focusout",_),y.removeEventListener("pointermove",g),y.removeEventListener("pointerleave",k),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[b,i.isClosePausedRef]);const v=p.useCallback(({tabbingDirection:y})=>{const g=a().map(w=>{const _=w.ref.current,k=[_,...UN(_)];return y==="forwards"?k:k.reverse()});return(y==="forwards"?g.reverse():g).flat()},[a]);return p.useEffect(()=>{const y=f.current;if(y){const x=g=>{var k,S,j;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const P=document.activeElement,R=g.shiftKey;if(g.target===y&&R){(k=u.current)==null||k.focus();return}const E=v({tabbingDirection:R?"backwards":"forwards"}),L=E.findIndex(A=>A===P);ad(E.slice(L+1))?g.preventDefault():R?(S=u.current)==null||S.focus():(j=d.current)==null||j.focus()}};return y.addEventListener("keydown",x),()=>y.removeEventListener("keydown",x)}},[a,v]),l.jsxs(vN,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&l.jsx(Ff,{ref:u,onFocusFromOutsideViewport:()=>{const y=v({tabbingDirection:"forwards"});ad(y)}}),l.jsx(Op.Slot,{scope:n,children:l.jsx(Y.ol,{tabIndex:-1,...o,ref:m})}),b&&l.jsx(Ff,{ref:d,onFocusFromOutsideViewport:()=>{const y=v({tabbingDirection:"backwards"});ad(y)}})]})});gw.displayName=mw;var vw="ToastFocusProxy",Ff=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=nu(vw,n);return l.jsx(tu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});Ff.displayName=vw;var Wa="Toast",RN="toast.swipeStart",ON="toast.swipeMove",AN="toast.swipeCancel",MN="toast.swipeEnd",yw=p.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[a,c]=Jn({prop:r,defaultProp:s??!0,onChange:o,caller:Wa});return l.jsx(On,{present:n||a,children:l.jsx($N,{open:a,...i,ref:t,onClose:()=>c(!1),onPause:Ot(e.onPause),onResume:Ot(e.onResume),onSwipeStart:V(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:V(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:V(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:V(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});yw.displayName=Wa;var[IN,DN]=hw(Wa,{onClose(){}}),$N=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:h,...b}=e,v=nu(Wa,n),[y,x]=p.useState(null),g=pe(t,A=>x(A)),w=p.useRef(null),_=p.useRef(null),k=s||v.duration,S=p.useRef(0),j=p.useRef(k),P=p.useRef(0),{onToastAdd:R,onToastRemove:O}=v,T=Ot(()=>{var H;(y==null?void 0:y.contains(document.activeElement))&&((H=v.viewport)==null||H.focus()),i()}),E=p.useCallback(A=>{!A||A===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout(T,A))},[T]);p.useEffect(()=>{const A=v.viewport;if(A){const H=()=>{E(j.current),u==null||u()},F=()=>{const I=new Date().getTime()-S.current;j.current=j.current-I,window.clearTimeout(P.current),c==null||c()};return A.addEventListener($f,F),A.addEventListener(Lf,H),()=>{A.removeEventListener($f,F),A.removeEventListener(Lf,H)}}},[v.viewport,k,c,u,E]),p.useEffect(()=>{o&&!v.isClosePausedRef.current&&E(k)},[o,k,v.isClosePausedRef,E]),p.useEffect(()=>(R(),()=>O()),[R,O]);const L=p.useMemo(()=>y?Cw(y):null,[y]);return v.viewport?l.jsxs(l.Fragment,{children:[L&&l.jsx(LN,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:L}),l.jsx(IN,{scope:n,onClose:T,children:Hs.createPortal(l.jsx(Op.ItemSlot,{scope:n,children:l.jsx(gN,{asChild:!0,onEscapeKeyDown:V(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||T(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(Y.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:V(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:V(e.onPointerDown,A=>{A.button===0&&(w.current={x:A.clientX,y:A.clientY})}),onPointerMove:V(e.onPointerMove,A=>{if(!w.current)return;const H=A.clientX-w.current.x,F=A.clientY-w.current.y,I=!!_.current,N=["left","right"].includes(v.swipeDirection),M=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,z=N?M(0,H):0,K=N?0:M(0,F),q=A.pointerType==="touch"?10:2,te={x:z,y:K},X={originalEvent:A,delta:te};I?(_.current=te,bl(ON,f,X,{discrete:!1})):nv(te,v.swipeDirection,q)?(_.current=te,bl(RN,d,X,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(H)>q||Math.abs(F)>q)&&(w.current=null)}),onPointerUp:V(e.onPointerUp,A=>{const H=_.current,F=A.target;if(F.hasPointerCapture(A.pointerId)&&F.releasePointerCapture(A.pointerId),_.current=null,w.current=null,H){const I=A.currentTarget,N={originalEvent:A,delta:H};nv(H,v.swipeDirection,v.swipeThreshold)?bl(MN,h,N,{discrete:!0}):bl(AN,m,N,{discrete:!0}),I.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),LN=e=>{const{__scopeToast:t,children:n,...r}=e,s=nu(Wa,t),[o,i]=p.useState(!1),[a,c]=p.useState(!1);return BN(()=>i(!0)),p.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:l.jsx(Ba,{asChild:!0,children:l.jsx(tu,{...r,children:o&&l.jsxs(l.Fragment,{children:[s.label," ",n]})})})},FN="ToastTitle",xw=p.forwardRef((e,t)=>
vendor: 4,737 bytes, lines 40-60
40{const{__scopeToast:n,...r}=e;return l.jsx(Y.div,{...r,ref:t})});xw.displayName=FN;var zN="ToastDescription",ww=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(Y.div,{...r,ref:t})});ww.displayName=zN;var bw="ToastAction",_w=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(Sw,{altText:n,asChild:!0,children:l.jsx(Ap,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bw}\`. Expected non-empty \`string\`.`),null)});_w.displayName=bw;var kw="ToastClose",Ap=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=DN(kw,n);return l.jsx(Sw,{asChild:!0,children:l.jsx(Y.button,{type:"button",...r,ref:t,onClick:V(e.onClick,s.onClose)})})});Ap.displayName=kw;var Sw=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return l.jsx(Y.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function Cw(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),WN(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Cw(r))}}),t}function bl(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?lw(s,o):s.dispatchEvent(o)}var nv=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n};function BN(e=()=>{}){const t=Ot(e);ze(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function WN(e){return e.nodeType===e.ELEMENT_NODE}function UN(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ad(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var HN=pw,jw=gw,Nw=yw,Ew=xw,Pw=ww,Tw=_w,Rw=Ap;function Ow(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Ow(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Aw(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ow(e))&&(r&&(r+=" "),r+=t);return r}const rv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,sv=Aw,ru=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return sv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],f=o==null?void 0:o[u];if(d===null)return null;const m=rv(d)||rv(f);return s[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:m,...h}=d;return Object.entries(h).every(b=>{let[v,y]=b;return Array.isArray(y)?y.includes({...o,...a}[v]):{...o,...a}[v]===y})?[...u,f,m]:u},[]);return sv(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const VN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mw=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var qN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const KN=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},c)=>p.createElement("svg",{ref:c,...qN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mw("lucide",s),...a},[...i.map(([u,d])=>p.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Pe=(e,t)=>
60{const n=p.forwardRef(({className:r,...s},o)=>p.createElement(KN,{ref:o,iconNode:t,className:Mw(`lucide-${VN(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const GN=Pe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Mp=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Iw=Pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const YN=Pe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const QN=Pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const JN=Pe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const XN=Pe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const ZN=Pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const eE=Pe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const _a=Pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const tE=Pe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const nE=Pe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const rE=Pe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const sE=Pe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const oE=Pe("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const Dw=Pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
vendor: 9,805 bytes, lines 145-180
145 */const iE=Pe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const ov=Pe("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const iv=Pe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const $w=Pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const aE=Pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const Lw=Pe("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const Fw=Pe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const zw=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ip="-",lE=e=>{const t=uE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Ip);return a[0]===""&&a.length!==1&&a.shift(),Bw(a,t)||cE(i)},getConflictingClassGroupIds:(i,a)=>{const c=n[i]||[];return a&&r[i]?[...c,...r[i]]:c}}},Bw=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Bw(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Ip);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},av=/^\[(.+)\]$/,cE=e=>{if(av.test(e)){const t=av.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},uE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fE(Object.entries(e.classGroups),n).forEach(([o,i])=>{zf(i,r,o,t)}),r},zf=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:lv(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(dE(s)){zf(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{zf(i,lv(t,o),n,r)})})},lv=(e,t)=>{let n=e;return t.split(Ip).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dE=e=>e.isThemeGetter,fE=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,hE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},Ww="!",pE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const c=[];let u=0,d=0,f;for(let y=0;y<a.length;y++){let x=a[y];if(u===0){if(x===s&&(r||a.slice(y,y+o)===t)){c.push(a.slice(d,y)),d=y+o;continue}if(x==="/"){f=y;continue}}x==="["?u++:x==="]"&&u--}const m=c.length===0?a:a.substring(d),h=m.startsWith(Ww),b=h?m.substring(1):m,v=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},mE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},gE=e=>({cache:hE(e.cacheSize),parseClassName:pE(e),...lE(e)}),vE=/\s+/,yE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(vE);let a="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:h}=n(u);let b=!!h,v=r(b?m.substring(0,h):m);if(!v){if(!b){a=u+(a.length>0?" "+a:a);continue}if(v=r(m),!v){a=u+(a.length>0?" "+a:a);continue}b=!1}const y=mE(d).join(":"),x=f?y+Ww:y,g=x+v;if(o.includes(g))continue;o.push(g);const w=s(v,b);for(let _=0;_<w.length;++_){const k=w[_];o.push(x+k)}a=u+(a.length>0?" "+a:a)}return a};function xE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Uw(t))&&(r&&(r+=" "),r+=n);return r}const Uw=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Uw(e[r]))&&(n&&(n+=" "),n+=t);return n};function wE(e,...t){let n,r,s,o=i;function i(c){const u=t.reduce((d,f)=>f(d),e());return n=gE(u),r=n.cache.get,s=n.cache.set,o=a,a(c)}function a(c){const u=r(c);if(u)return u;const d=yE(c,n);return s(c,d),d}return function(){return o(xE.apply(null,arguments))}}const Se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Hw=/^\[(?:([a-z-]+):)?(.+)\]$/i,bE=/^\d+\/\d+$/,_E=new Set(["px","full","screen"]),kE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,SE=/\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$/,CE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,In=e=>Oo(e)||_E.has(e)||bE.test(e),ir=e=>fi(e,"length",IE),Oo=e=>!!e&&!Number.isNaN(Number(e)),ld=e=>fi(e,"number",Oo),Oi=e=>!!e&&Number.isInteger(Number(e)),EE=e=>e.endsWith("%")&&Oo(e.slice(0,-1)),ne=e=>Hw.test(e),ar=e=>kE.test(e),PE=new Set(["length","size","percentage"]),TE=e=>fi(e,PE,Vw),RE=e=>fi(e,"position",Vw),OE=new Set(["image","url"]),AE=e=>fi(e,OE,$E),ME=e=>fi(e,"",DE),Ai=()=>!0,fi=(e,t,n)=>{const r=Hw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},IE=e=>SE.test(e)&&!CE.test(e),Vw=()=>!1,DE=e=>jE.test(e),$E=e=>NE.test(e),LE=()=>{const e=Se("colors"),t=Se("spacing"),n=Se("blur"),r=Se("brightness"),s=Se("borderColor"),o=Se("borderRadius"),i=Se("borderSpacing"),a=Se("borderWidth"),c=Se("contrast"),u=Se("grayscale"),d=Se("hueRotate"),f=Se("invert"),m=Se("gap"),h=Se("gradientColorStops"),b=Se("gradientColorStopPositions"),v=Se("inset"),y=Se("margin"),x=Se("opacity"),g=Se("padding"),w=Se("saturate"),_=Se("scale"),k=Se("sepia"),S=Se("skew"),j=Se("space"),P=Se("translate"),R=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",ne,t],E=()=>[ne,t],L=()=>["",In,ir],A=()=>["auto",Oo,ne],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],I=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",ne],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Oo,ne];return{cacheSize:500,separator:":",theme:{colors:[Ai],spacing:[In,ir],blur:["none","",ar,ne],brightness:K(),borderColor:[e],borderRadius:["none","","full",ar,ne],borderSpacing:E(),borderWidth:L(),contrast:K(),grayscale:M(),hueRotate:K(),invert:M(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[EE,ir],inset:T(),margin:T(),opacity:K(),padding:E(),saturate:K(),scale:K(),sepia:M(),skew:K(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",ne]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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"],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:[...H(),ne]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}
vendor: 9,947 bytes, line 180
180],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oi,ne]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ne]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Oi,ne]}],"grid-cols":[{"grid-cols":[Ai]}],"col-start-end":[{col:["auto",{span:["full",Oi,ne]},ne]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Ai]}],"row-start-end":[{row:["auto",{span:[Oi,ne]},ne]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ne]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ne,t]}],"min-w":[{"min-w":[ne,t,"min","max","fit"]}],"max-w":[{"max-w":[ne,t,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ld]}],"font-family":[{font:[Ai]}],"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:["tighter","tight","normal","wide","wider","widest",ne]}],"line-clamp":[{"line-clamp":["none",Oo,ld]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",In,ne]}],"list-image":[{"list-image":["none",ne]}],"list-style-type":[{list:["none","disc","decimal",ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",In,ir]}],"underline-offset":[{"underline-offset":["auto",In,ne]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),RE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},AE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:F()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[In,ne]}],"outline-w":[{outline:[In,ir]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[In,ir]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ar,ME]}],"shadow-color":[{shadow:[Ai]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...I(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":I()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ar,ne]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ne]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",ne]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Oi,ne]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ne]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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"]}
vendor: 4,642 bytes, line 180
180],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",ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[In,ir,ld]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},FE=wE(LE);function G(...e){return FE(Aw(e))}const zE=HN,qw=p.forwardRef(({className:e,...t},n)=>l.jsx(jw,{ref:n,className:G("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));qw.displayName=jw.displayName;const BE=ru("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Kw=p.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(Nw,{ref:r,className:G(BE({variant:t}),e),...n}));Kw.displayName=Nw.displayName;const WE=p.forwardRef(({className:e,...t},n)=>l.jsx(Tw,{ref:n,className:G("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));WE.displayName=Tw.displayName;const Gw=p.forwardRef(({className:e,...t},n)=>l.jsx(Rw,{ref:n,className:G("absolute right-2 top-2 rounded-md p-1 text-foreground
180/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(zw,{className:"h-4 w-4"})}));Gw.displayName=Rw.displayName;const Yw=p.forwardRef(({className:e,...t},n)=>l.jsx(Ew,{ref:n,className:G("text-sm font-semibold",e),...t}));Yw.displayName=Ew.displayName;const Qw=p.forwardRef(({className:e,...t},n)=>l.jsx(Pw,{ref:n,className:G("text-sm opacity-90",e),...t}));Qw.displayName=Pw.displayName;function UE(){const{toasts:e}=ui();return l.jsxs(zE,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return l.jsxs(Kw,{...o,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(Yw,{children:n}),r&&l.jsx(Qw,{children:r})]}),s,l.jsx(Gw,{})]},t)}),l.jsx(qw,{})]})}var cv=["light","dark"],HE="(prefers-color-scheme: dark)",VE=p.createContext(void 0),qE={setTheme:e=>{},themes:[]},KE=()=>{var e;return(e=p.useContext(VE))!=null?e:qE};p.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:c})=>{let u=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?cv.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(b,v=!1,y=!0)=>{let x=i?i[b]:b,g=v?b+"|| ''":`'${x}'`,w="";return s&&y&&!v&&cv.includes(b)&&(w+=`d.style.colorScheme = '${b}';`),n==="class"?v||x?w+=`c.add(${g})`:w+="null":x&&(w+=`d[s](n,${g})`),w},h=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${HE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}${u?"":"else{"+m(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}else{${m(o,!1,!1)};}${f}}catch(t){}}();`;return p.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:h}})});var GE=e=>{switch(e){case"success":return JE;case"info":return ZE;case"warning":return XE;case"error":return eP;default:return null}},YE=Array(12).fill(0),QE=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},YE.map((n,r)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),JE=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),XE=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ZE=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),eP=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),tP=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),nP=()=>{let[e,t]=$.useState(document.hidden);return $.useEffect(()=>{let n=()=>{t(document.hidden)};
180return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Bf=1,rP=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Bf++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
180this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,o,i=r.then(async c=>{if(o=["resolve",c],$.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(oP(c)&&!c.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(o=["reject",c],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),a=()=>new Promise((c,u)=>i.then(()=>o[0]==="reject"?u(o[1]):c(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Bf++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},mt=new rP,sP=(e,t)=>{let n=(t==null?void 0:t.id)||Bf++;return mt.addToast({title:e,...t,id:n}),n},oP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",iP=sP,aP=()=>mt.toasts,lP=()=>mt.getActiveToasts();Object.assign(iP,{success:mt.success,info:mt.info,warning:mt.warning,error:mt.error,custom:mt.custom,message:mt.message,promise:mt.promise,dismiss:mt.dismiss,loading:mt.loading},{getHistory:aP,getToasts:lP});function cP(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}cP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
180left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
180:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
180--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
181`);function _l(e){return e.label!==void 0}var uP=3,dP="32px",fP="16px",uv=4e3,hP=356,pP=14,mP=20,gP=200;function Jt(...e){return e.filter(Boolean).join(" ")}function vP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var yP=e=>{var t,n,r,s,o,i,a,c,u,d,f;let{invert:m,toast:h,unstyled:b,interacting:v,setHeights:y,visibleToasts:x,heights:g,index:w,toasts:_,expanded:k,removeToast:S,defaultRichColors:j,closeButton:P,style:R,cancelButtonStyle:O,actionButtonStyle:T,className:E="",descriptionClassName:L="",duration:A,position:H,gap:F,loadingIcon:I,expandByDefault:N,classNames:M,icons:z,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:q}=e,[te,X]=$.useState(null),[ke,Ae]=$.useState(null),[B,me]=$.useState(!1),[Me,fe]=$.useState(!1),[le,de]=$.useState(!1),[Xe,Dt]=$.useState(!1),[ts,tr]=$.useState(!1),[ns,_i]=$.useState(0),[Gs,Dm]=$.useState(0),
181ki=$.useRef(h.duration||A||uv),$m=$.useRef(null),rs=$.useRef(null),pS=w===0,mS=w+1<=x,$t=h.type,Ys=h.dismissible!==!1,gS=h.className||"",vS=h.descriptionClassName||"",tl=$.useMemo(()=>g.findIndex(Z=>Z.toastId===h.id)||0,[g,h.id]),yS=$.useMemo(()=>{var Z;return(Z=h.closeButton)!=null?Z:P},[h.closeButton,P]),Lm=$.useMemo(()=>h.duration||A||uv,[h.duration,A]),Tu=$.useRef(0),Qs=$.useRef(0),Fm=$.useRef(0),Js=$.useRef(null),[xS,wS]=H.split("-"),zm=$.useMemo(()=>g.reduce((Z,ye,Ne)=>Ne>=tl?Z:Z+ye.height,0),[g,tl]),Bm=nP(),bS=h.invert||m,Ru=$t==="loading";Qs.current=$.useMemo(()=>tl*F+zm,[tl,zm]),$.useEffect(()=>{ki.current=Lm},[Lm]),$.useEffect(()=>{me(!0)},[]),$.useEffect(()=>{let Z=rs.current;if(Z){let ye=Z.getBoundingClientRect().height;return Dm(ye),y(Ne=>[{toastId:h.id,height:ye,position:h.position},...Ne]),()=>y(Ne=>Ne.filter(Kt=>Kt.toastId!==h.id))}},[y,h.id]),$.useLayoutEffect(()=>{if(!B)return;let Z=rs.current,ye=Z.style.height;Z.style.height="auto";let Ne=Z.getBoundingClientRect().height;Z.style.height=ye,Dm(Ne),y(Kt=>Kt.find(Gt=>Gt.toastId===h.id)?Kt.map(Gt=>Gt.toastId===h.id?{...Gt,height:Ne}:Gt):[{toastId:h.id,height:Ne,position:h.position},...Kt])},[B,h.title,h.description,y,h.id]);let nr=$.useCallback(()=>{fe(!0),_i(Qs.current),y(Z=>Z.filter(ye=>ye.toastId!==h.id)),setTimeout(()=>{S(h)},gP)},[h,S,y,Qs]);$.useEffect(()=>{if(h.promise&&$t==="loading"||h.duration===1/0||h.type==="loading")return;let Z;return k||v||q&&Bm?(()=>{if(Fm.current<Tu.current){let ye=new Date().getTime()-Tu.current;ki.current=ki.current-ye}Fm.current=new Date().getTime()})():ki.current!==1/0&&(Tu.current=new Date().getTime(),Z=setTimeout(()=>{var ye;(ye=h.onAutoClose)==null||ye.call(h,h),nr()},ki.current)),()=>clearTimeout(Z)},[k,v,h,$t,q,Bm,nr]),$.useEffect(()=>{h.delete&&nr()},[nr,h.delete]);function _S(){var Z,ye,Ne;return z!=null&&z.loading?$.createElement("div",{className:Jt(M==null?void 0:M.loader,(Z=h==null?void 0:h.classNames)==null?void 0:Z.loader,"sonner-loader"),"data-visible":$t==="loading"},z.loading):I?$.createElement("div",{className:Jt(M==null?void 0:M.loader,(ye=h==null?void 0:h.classNames)==null?void 0:ye.loader,"sonner-loader"),"data-visible":$t==="loading"},I):$.createElement(QE,{className:Jt(M==null?void 0:M.loader,(Ne=h==null?void 0:h.classNames)==null?void 0:Ne.loader),visible:$t==="loading"})}return $.createElement("li",{tabIndex:0,ref:rs,className:Jt(E,gS,M==null?void 0:M.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[$t],(n=h==null?void 0:h.classNames)==null?void 0:n[$t]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:j,"data-styled":!(h.jsx||h.unstyled||b),"data-mounted":B,"data-promise":!!h.promise,"data-swiped":ts,"data-removed":Me,"data-visible":mS,"data-y-position":xS,"data-x-position":wS,"data-index":w,"data-front":pS,"data-swiping":le,"data-dismissible":Ys,"data-type":$t,"data-invert":bS,"data-swipe-out":Xe,"data-swipe-direction":ke,"data-expanded":!!(k||N&&B),style:{"--index":w,"--toasts-before":w,"--z-index":_.length-w,"--offset":`${Me?ns:Qs.current}px`,"--initial-height":N?"auto":`${Gs}px`,...R,...h.style},onDragEnd:()=>{de(!1),X(null),Js.current=null},onPointerDown:Z=>{Ru||!Ys||($m.current=new Date,_i(Qs.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(de(!0),Js.current={x:Z.clientX,y:Z.clientY}))},onPointerUp:()=>{var Z,ye,Ne,Kt;if(Xe||!Ys)return;Js.current=null;let Gt=Number(((Z=rs.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),rr=Number(((ye=rs.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ss=new Date().getTime()-((Ne=$m.current)==null?void 0:Ne.getTime()),Yt=te==="x"?Gt:rr,sr=Math.abs(Yt)/ss;if(Math.abs(Yt)>=mP||sr>.11){_i(Qs.current),(Kt=h.onDismiss)==null||Kt.call(h,h),Ae(te==="x"?Gt>0?"right":"left":rr>0?"down":"up"),nr(),Dt(!0),tr(!1);return}de(!1),X(null)},onPointerMove:Z=>{var ye,Ne,Kt,Gt;if(!Js.current||!Ys||((ye=window.getSelection())==null?void 0:ye.toString().length)>0)return;let rr=Z.clientY-Js.current.y,ss=Z.clientX-Js.current.x,Yt=(Ne=e.swipeDirections)!=null?Ne:vP(H);!te&&(Math.abs(ss)>1||Math.abs(rr)>
1811)&&X(Math.abs(ss)>Math.abs(rr)?"x":"y");let sr={x:0,y:0};te==="y"?(Yt.includes("top")||Yt.includes("bottom"))&&(Yt.includes("top")&&rr<0||Yt.includes("bottom")&&rr>0)&&(sr.y=rr):te==="x"&&(Yt.includes("left")||Yt.includes("right"))&&(Yt.includes("left")&&ss<0||Yt.includes("right")&&ss>0)&&(sr.x=ss),(Math.abs(sr.x)>0||Math.abs(sr.y)>0)&&tr(!0),(Kt=rs.current)==null||Kt.style.setProperty("--swipe-amount-x",`${sr.x}px`),(Gt=rs.current)==null||Gt.style.setProperty("--swipe-amount-y",`${sr.y}px`)}},yS&&!h.jsx?$.createElement("button",{"aria-label":K,"data-disabled":Ru,"data-close-button":!0,onClick:Ru||!Ys?()=>{}:()=>{var Z;nr(),(Z=h.onDismiss)==null||Z.call(h,h)},className:Jt(M==null?void 0:M.closeButton,(s=h==null?void 0:h.classNames)==null?void 0:s.closeButton)},(o=z==null?void 0:z.close)!=null?o:tP):null,h.jsx||p.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:$.createElement($.Fragment,null,$t||h.icon||h.promise?$.createElement("div",{"data-icon":"",className:Jt(M==null?void 0:M.icon,(i=h==null?void 0:h.classNames)==null?void 0:i.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||_S():null,h.type!=="loading"?h.icon||(z==null?void 0:z[$t])||GE($t):null):null,$.createElement("div",{"data-content":"",className:Jt(M==null?void 0:M.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},$.createElement("div",{"data-title":"",className:Jt(M==null?void 0:M.title,(c=h==null?void 0:h.classNames)==null?void 0:c.title)},typeof h.title=="function"?h.title():h.title),h.description?$.createElement("div",{"data-description":"",className:Jt(L,vS,M==null?void 0:M.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),p.isValidElement(h.cancel)?h.cancel:h.cancel&&_l(h.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||O,onClick:Z=>{var ye,Ne;_l(h.cancel)&&Ys&&((Ne=(ye=h.cancel).onClick)==null||Ne.call(ye,Z),nr())},className:Jt(M==null?void 0:M.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,p.isValidElement(h.action)?h.action:h.action&&_l(h.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||T,onClick:Z=>{var ye,Ne;_l(h.action)&&((Ne=(ye=h.action).onClick)==null||Ne.call(ye,Z),!Z.defaultPrevented&&nr())},className:Jt(M==null?void 0:M.actionButton,(f=h==null?void 0:h.classNames)==null?void 0:f.actionButton)},h.action.label):null))};function dv(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function xP(e,t){let n={};return[e,t].forEach((r,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?fP:dP;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(a)}),n}var wP=p.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:c,mobileOffset:u,theme:d="light",richColors:f,duration:m,style:h,visibleToasts:b=uP,toastOptions:v,dir:y=dv(),gap:x=pP,loadingIcon:g,icons:w,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:k}=e,[S,j]=$.useState([]),P=$.useMemo(()=>Array.from(new Set([r].concat(S.filter(q=>q.position).map(q=>q.position)))),[S,r]),[R,O]=$.useState([]),[T,E]=$.useState(!1),[L,A]=$.useState(!1),[H,F]=$.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=$.useRef(null),N=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=$.useRef(null),z=$.useRef(!1),K=$.useCallback(q=>{j(te=>{var X;return(X=te.find(ke=>ke.id===q.id))!=null&&X.delete||mt.dismiss(q.id),te.filter(({id:ke})=>ke!==q.id)})},[]);return $.useEffect(()=>mt.subscribe(q=>{if(q.dismiss){j(te=>te.map(X=>X.id===q.id?{...X,delete:!0}:X));return}setTimeout(()=>{sw.flushSync(()=>{j(te=>{let X=te.findIndex(ke=>ke.id===q.id);return X!==-1?[...te.slice(0,X),{...te[X],...q},...te.slice(X+1)]:[q,...te]})})})}),[]),$.useEffect(()=>{if(d!=="system"){F(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:te})=>{F(te?"dark":"light")})}catch{q.addListener(({matches:X})=>{try{F(X?"dark":"light")}catch(ke){console.error(ke)}})}},[d]),$.useEffect(()=>{S.length<=1&&E(!1)},[S]),$.useEffect(()=>{let q=te=>{var X,ke;s.every(Ae=>te[Ae]||te.code===Ae)&&(E(!0),(X=I.current)==null||X.focus()),te.code==="Escape"&&(document.activeElement===I.current||(ke=I.current)!=null&&ke.contains(document.activeElement))&&E(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[s]),$.useEffect(()=>{if(I.current)return()=>
vendor: 4,746 bytes, line 181
181{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,z.current=!1)}},[I.current]),$.createElement("section",{ref:t,"aria-label":`${_} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((q,te)=>{var X;let[ke,Ae]=q.split("-");return S.length?$.createElement("ol",{key:q,dir:y==="auto"?dv():y,tabIndex:-1,ref:I,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":ke,"data-lifted":T&&S.length>1&&!o,"data-x-position":Ae,style:{"--front-toast-height":`${((X=R[0])==null?void 0:X.height)||0}px`,"--width":`${hP}px`,"--gap":`${x}px`,...h,...xP(c,u)},onBlur:B=>{z.current&&!B.currentTarget.contains(B.relatedTarget)&&(z.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:B=>{B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||z.current||(z.current=!0,M.current=B.relatedTarget)},onMouseEnter:()=>E(!0),onMouseMove:()=>E(!0),onMouseLeave:()=>{L||E(!1)},onDragEnd:()=>E(!1),onPointerDown:B=>{B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},S.filter(B=>!B.position&&te===0||B.position===q).map((B,me)=>{var Me,fe;return $.createElement(yP,{key:B.id,icons:w,index:me,toast:B,defaultRichColors:f,duration:(Me=v==null?void 0:v.duration)!=null?Me:m,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:b,closeButton:(fe=v==null?void 0:v.closeButton)!=null?fe:i,interacting:L,position:q,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:K,toasts:S.filter(le=>le.position==B.position),heights:R.filter(le=>le.position==B.position),setHeights:O,expandByDefault:o,gap:x,loadingIcon:g,expanded:T,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const bP=({...e})=>{const{theme:t="system"}=KE();return l.jsx(wP,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var _P=Fh[" useId ".trim().toString()]||(()=>{}),kP=0;function En(e){const[t,n]=p.useState(_P());return ze(()=>{n(r=>r??String(kP++))},[e]),t?`radix-${t}`:""}const SP=["top","right","bottom","left"],Vr=Math.min,jt=Math.max,Sc=Math.round,kl=Math.floor,Pn=e=>({x:e,y:e}),CP={left:"right",right:"left",bottom:"top",top:"bottom"},jP={start:"end",end:"start"};function Wf(e,t,n){return jt(e,Vr(t,n))}function Xn(e,t){return typeof e=="function"?e(t):e}function Zn(e){return e.split("-")[0]}function hi(e){return e.split("-")[1]}function Dp(e){return e==="x"?"y":"x"}function $p(e){return e==="y"?"height":"width"}const NP=new Set(["top","bottom"]);function Sn(e){return NP.has(Zn(e))?"y":"x"}function Lp(e){return Dp(Sn(e))}function EP(e,t,n){n===void 0&&(n=!1);const r=hi(e),s=Lp(e),o=$p(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Cc(i)),[i,Cc(i)]}function PP(e){const t=Cc(e);return[Uf(e),t,Uf(t)]}function Uf(e){return e.replace(/start|end/g,t=>jP[t])}const fv=["left","right"],hv=["right","left"],TP=["top","bottom"],RP=["bottom","top"];function OP(e,t,n){switch(e){case"top":case"bottom":return n?t?hv:fv:t?fv:hv;case"left":case"right":return t?TP:RP;default:return[]}}function AP(e,t,n,r){const s=hi(e);let o=OP(Zn(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Uf)))),o}function Cc(e){return e.replace(/left|right|bottom|top/g,t=>CP[t])}function MP(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jw(e){return typeof e!="number"?MP(e):{top:e,right:e,bottom:e,left:e}}function jc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function pv(e,t,n){let{reference:r,floating:s}=e;const o=Sn(t),i=Lp(t),a=$p(i),c=Zn(t),u=o==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,m=r[a]/2-s[a]/2;let h;switch(c){case"top":h={x:d,y:r.y-s.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(hi(t)){case"start":h[i]-=m*(n&&u?-1:1);break;case"end":h[i]+=m*(n&&u?-1:1);break}return h}const IP=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}
vendor: 10,410 bytes, line 181
181=n,a=o.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=pv(u,r,c),m=r,h={},b=0;for(let v=0;v<a.length;v++){const{name:y,fn:x}=a[v],{x:g,y:w,data:_,reset:k}=await x({x:d,y:f,initialPlacement:r,placement:m,strategy:s,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});d=g??d,f=w??f,h={...h,[y]:{...h[y],..._}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(m=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:f}=pv(u,m,c)),v=-1)}return{x:d,y:f,placement:m,strategy:s,middlewareData:h}};async function ka(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=Xn(t,e),b=Jw(h),y=a[m?f==="floating"?"reference":"floating":f],x=jc(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),g=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},k=jc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:c}):g);return{top:(x.top-k.top+b.top)/_.y,bottom:(k.bottom-x.bottom+b.bottom)/_.y,left:(x.left-k.left+b.left)/_.x,right:(k.right-x.right+b.right)/_.x}}const DP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Xn(e,t)||{};if(u==null)return{};const f=Jw(d),m={x:n,y:r},h=Lp(s),b=$p(h),v=await i.getDimensions(u),y=h==="y",x=y?"top":"left",g=y?"bottom":"right",w=y?"clientHeight":"clientWidth",_=o.reference[b]+o.reference[h]-m[h]-o.floating[b],k=m[h]-o.reference[h],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let j=S?S[w]:0;(!j||!await(i.isElement==null?void 0:i.isElement(S)))&&(j=a.floating[w]||o.floating[b]);const P=_/2-k/2,R=j/2-v[b]/2-1,O=Vr(f[x],R),T=Vr(f[g],R),E=O,L=j-v[b]-T,A=j/2-v[b]/2+P,H=Wf(E,A,L),F=!c.arrow&&hi(s)!=null&&A!==H&&o.reference[b]/2-(A<E?O:T)-v[b]/2<0,I=F?A<E?A-E:A-L:0;return{[h]:m[h]+I,data:{[h]:H,centerOffset:A-H-I,...F&&{alignmentOffset:I}},reset:F}}}),$P=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=Xn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Zn(s),g=Sn(a),w=Zn(a)===a,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=m||(w||!v?[Cc(a)]:PP(a)),S=b!=="none";!m&&S&&k.push(...AP(a,v,b,_));const j=[a,...k],P=await ka(t,y),R=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&R.push(P[x]),f){const A=EP(s,i,_);R.push(P[A[0]],P[A[1]])}if(O=[...O,{placement:s,overflows:R}],!R.every(A=>A<=0)){var T,E;const A=(((T=o.flip)==null?void 0:T.index)||0)+1,H=j[A];if(H&&(!(f==="alignment"?g!==Sn(H):!1)||O.every(N=>N.overflows[0]>0&&Sn(N.placement)===g)))return{data:{index:A,overflows:O},reset:{placement:H}};let F=(E=O.filter(I=>I.overflows[0]<=0).sort((I,N)=>I.overflows[1]-N.overflows[1])[0])==null?void 0:E.placement;if(!F)switch(h){case"bestFit":{var L;const I=(L=O.filter(N=>{if(S){const M=Sn(N.placement);return M===g||M==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(M=>M>0).reduce((M,z)=>M+z,0)]).sort((N,M)=>N[1]-M[1])[0])==null?void 0:L[0];I&&(F=I);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function mv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gv(e){return SP.some(t=>e[t]>=0)}const LP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Xn(e,t);switch(r){case"referenceHidden":{const o=await ka(t,{...s,elementContext:"reference"}),i=mv(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:gv(i)}}}case"escaped":{const o=await ka(t,{...s,altBoundary:!0}),i=mv(o,n.floating);return{data:{escapedOffsets:i,escaped:gv(i)}}}default:return{}}}}},Xw=new Set(["left","top"]);async function FP(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Zn(n),a=hi(n),c=Sn(n)==="y",u=Xw.has(i)?-1:1,d=o&&c?-1:1,f=Xn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(h=a==="end"?b*-1:b),c?{x:h*d,y:m*u}:{x:m*u,y:h*d}}const zP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,c=await FP(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:o+c.y,data:{...c,placement:i}}}}},BP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x,y:g}=y;return{x,y:g}}},...c}=Xn(e,t),u={x:n,y:r},d=await ka(t,c),f=Sn(Zn(s)),m=Dp(f);let h=u[m],b=u[f];if(o){const y=m==="y"?"top":"left",x=m==="y"?"bottom":"right",g=h+d[y],w=h-d[x];h=Wf(g,h,w)}if(i){const y=f==="y"?"top":"left",x=f==="y"?"bottom":"right",g=b+d[y],w=b-d[x];b=Wf(g,b,w)}const v=a.fn({...t,[m]:h,[f]:b});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:o,[f]:i}}}}}},WP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Xn(e,t),d={x:n,y:r},f=Sn(s),m=Dp(f);let h=d[m],b=d[f];const v=Xn(a,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=m==="y"?"height":"width",_=o.reference[m]-o.floating[w]+y.mainAxis,k=o.reference[m]+o.reference[w]-y.mainAxis;h<_?h=_:h>k&&(h=k)}if(u){var x,g;const w=m==="y"?"width":"height",_=Xw.has(Zn(s)),k=o.reference[f]-o.floating[w]+(_&&((x=i.offset)==null?void 0:x[f])||0)+(_?0:y.crossAxis),S=o.reference[f]+o.reference[w]+(_?0:((g=i.offset)==null?void 0:g[f])||0)-(_?y.crossAxis:0);b<k?b=k:b>S&&(b=S)}return{[m]:h,[f]:b}}}},UP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:c=()=>{},...u}=Xn(e,t),d=await ka(t,u),f=Zn(s),m=hi(s),h=Sn(s)==="y",{width:b,height:v}=o.floating;let y,x;f==="top"||f==="bottom"?(y=f,x=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(x=f,y=m==="end"?"top":"bottom");const g=v-d.top-d.bottom,w=b-d.left-d.right,_=Vr(v-d[y],g),k=Vr(b-d[x],w),S=!t.middlewareData.shift;let j=_,P=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=g),S&&!m){const O=jt(d.left,0),T=jt(d.right,0),E=jt(d.top,0),L=jt(d.bottom,0);h?P=b-2*(O!==0||T!==0?O+T:jt(d.left,d.right)):j=v-2*(E!==0||L!==0?E+L:jt(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:j});const R=await i.getDimensions(a.floating);return b!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}};function su(){return typeof window<"u"}function pi(e){return Zw(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function An(e){var t;return(t=(Zw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zw(e){return su()?e instanceof Node||e instanceof Tt(e).Node:!1}function un(e){return su()?e instanceof Element||e instanceof Tt(e).Element:!1}function Tn(e){return su()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function vv(e){return!su()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}const HP=new Set(["inline","contents"]);function Ua(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!HP.has(s)}const VP=new Set(["table","td","th"]);function qP(e){return VP.has(pi(e))}const KP=[":popover-open",":modal"];function ou(e){return KP.some(t=>{try{return e.matches(t)}catch{return!1}})}const GP=["transform","translate","scale","rotate","perspective"],YP=["transform","translate","scale","rotate","perspective","filter"],QP=["paint","layout","strict","content"];function Fp(e){const t=zp(),n=un(e)?dn(e):e;return GP.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||YP.some(r=>(n.willChange||"").includes(r))||QP.some(r=>(n.contain||"").includes(r))}function JP(e){let t=qr(e);for(;Tn(t)&&!ti(t);){if(Fp(t))return t;if(ou(t))return null;t=qr(t)}return null}function zp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const XP=new Set(["html","body","#document"]);function ti(e){return XP.has(pi(e))}function dn(e){return Tt(e).getComputedStyle(e)}function iu(e){return un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qr(e){if(pi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vv(e)&&e.host||An(e);return vv(t)?t.host:t}function eb(e){const t=qr(e);return ti(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tn(t)&&Ua(t)?t:eb(t)}function Sa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=eb(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=Tt(s);if(o){const a=Hf(i);return t.concat(i,i.visualViewport||[],Ua(s)?s:[],a&&n?Sa(a):[])}return t.concat(s,Sa(s,[],n))}function Hf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tb(e){const t=dn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Tn(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=Sc(n)!==o||Sc(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Bp(e){return un(e)?e:e.contextElement}function Ao(e){const t=Bp(e);if(!Tn(t))return Pn(1);
vendor: 6,653 bytes, line 181
181const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=tb(t);let i=(o?Sc(n.width):n.width)/r,a=(o?Sc(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ZP=Pn(0);function nb(e){const t=Tt(e);return!zp()||!t.visualViewport?ZP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function As(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Bp(e);let i=Pn(1);t&&(r?un(r)&&(i=Ao(r)):i=Ao(e));const a=eT(o,n,r)?nb(o):Pn(0);let c=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(o){const m=Tt(o),h=r&&un(r)?Tt(r):r;let b=m,v=Hf(b);for(;v&&r&&h!==b;){const y=Ao(v),x=v.getBoundingClientRect(),g=dn(v),w=x.left+(v.clientLeft+parseFloat(g.paddingLeft))*y.x,_=x.top+(v.clientTop+parseFloat(g.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,f*=y.y,c+=w,u+=_,b=Tt(v),v=Hf(b)}}return jc({width:d,height:f,x:c,y:u})}function Wp(e,t){const n=iu(e).scrollLeft;return t?t.left+n:As(An(e)).left+n}function rb(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Wp(e,r)),o=r.top+t.scrollTop;return{x:s,y:o}}function tT(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=An(r),a=t?ou(t.floating):!1;if(r===i||a&&o)return n;let c={scrollLeft:0,scrollTop:0},u=Pn(1);const d=Pn(0),f=Tn(r);if((f||!f&&!o)&&((pi(r)!=="body"||Ua(i))&&(c=iu(r)),Tn(r))){const h=As(r);u=Ao(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=i&&!f&&!o?rb(i,c,!0):Pn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-c.scrollTop*u.y+d.y+m.y}}function nT(e){return Array.from(e.getClientRects())}function rT(e){const t=An(e),n=iu(e),r=e.ownerDocument.body,s=jt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=jt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Wp(e);const a=-n.scrollTop;return dn(r).direction==="rtl"&&(i+=jt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function sT(e,t){const n=Tt(e),r=An(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,c=0;if(s){o=s.width,i=s.height;const u=zp();(!u||u&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:o,height:i,x:a,y:c}}const oT=new Set(["absolute","fixed"]);function iT(e,t){const n=As(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Tn(e)?Ao(e):Pn(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,c=s*o.x,u=r*o.y;return{width:i,height:a,x:c,y:u}}function yv(e,t,n){let r;if(t==="viewport")r=sT(e,n);else if(t==="document")r=rT(An(e));else if(un(t))r=iT(t,n);else{const s=nb(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return jc(r)}function sb(e,t){const n=qr(e);return n===t||!un(n)||ti(n)?!1:dn(n).position==="fixed"||sb(n,t)}function aT(e,t){const n=t.get(e);if(n)return n;let r=Sa(e,[],!1).filter(a=>un(a)&&pi(a)!=="body"),s=null;const o=dn(e).position==="fixed";let i=o?qr(e):e;for(;un(i)&&!ti(i);){const a=dn(i),c=Fp(i);!c&&a.position==="fixed"&&(s=null),(o?!c&&!s:!c&&a.position==="static"&&!!s&&oT.has(s.position)||Ua(i)&&!c&&sb(e,i))?r=r.filter(d=>d!==i):s=a,i=qr(i)}return t.set(e,r),r}function lT(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?ou(t)?[]:aT(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const f=yv(t,d,s);return u.top=jt(f.top,u.top),u.right=Vr(f.right,u.right),u.bottom=Vr(f.bottom,u.bottom),u.left=jt(f.left,u.left),u},yv(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function cT(e){const{width:t,height:n}=tb(e);return{width:t,height:n}}function uT(e,t,n){const r=Tn(t),s=An(t),o=n==="fixed",i=As(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=Pn(0);function u(){c.x=Wp(s)}if(r||!r&&!o)if((pi(t)!=="body"||Ua(s))&&(a=iu(t)),r){const h=As(t,!0,o,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&u();o&&!r&&s&&u();const d=s&&!r&&!o?rb(s,a):Pn(0),f=i.left+a.scrollLeft-c.x-d.x,m=i.top+a.scrollTop-c.y-d.y;return{x:f,y:m,width:i.width,height:i.height}}function cd(e){return dn(e).position==="static"}function xv(e,t){if(!Tn(e)||dn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return An(e)===n&&(n=n.ownerDocument.body),n}function ob(e,t){const n=Tt(e);if(ou(e))return n;if(!Tn(e)){let s=qr(e);for(;s&&!ti(s);){if(un(s)&&!cd(s))return s;s=qr(s)}return n}let r=xv(e,t);for(;r&&qP(r)&&cd(r);)r=xv(r,t);return r&&ti(r)&&cd(r)&&!Fp(r)?n:r||JP(e)||n}const dT=async function(e){const t=this.getOffsetParent||ob,n=this.getDimensions,r=await n(e.floating);return{reference:uT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fT(e){return dn(e).direction==="rtl"}const hT={convertOffsetParentRelativeRectToViewportRelativeRect:tT,getDocumentElement:An,getClippingRect:lT,getOffsetParent:ob,getElementRects:dT,getClientRects:nT,getDimensions:cT,getScale:Ao,isElement:un,isRTL:fT};function ib(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pT(e,t){let n=null,r;const s=An(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=u;if(a||t(),!m||!h)return;const b=kl(f),v=kl(s.clientWidth-(d+m)),y=kl(s.clientHeight-(f+h)),x=kl(d),w={rootMargin:-b+"px "+-v+"px "+-y+"px "+-x+"px",threshold:jt(0,Vr(1,c))||1};let _=!0;function k(S){const j=S[0].intersectionRatio;if(j!==c){if(!_)return i();j?i(!1,j):r=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!ib(u,e.getBoundingClientRect())&&i(),_=!1}try{n=new IntersectionObserver(k,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return i(!0),o}function mT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Bp(e),d=s||o?[...u?Sa(u):[],...Sa(t)]:[];d.forEach(x=>{s&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=u&&a?pT(u,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(x=>{let[g]=x;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let b,v=c?As(e):null;c&&y();function y(){const x=As(e);v&&!ib(v,x)&&n(),v=x,b=requestAnimationFrame(y)}return n(),()=>{var x;d.forEach(g=>{s&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(b)}}
vendor: 4,123 bytes, line 181
181const gT=zP,vT=BP,yT=$P,xT=UP,wT=LP,wv=DP,bT=WP,_T=(e,t,n)=>{const r=new Map,s={platform:hT,...n},o={...s.platform,_c:r};return IP(e,t,{...s,platform:o})};var kT=typeof document<"u",ST=function(){},Gl=kT?p.useLayoutEffect:ST;function Nc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Nc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!Nc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function ab(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bv(e,t){const n=ab(e);return Math.round(t*n)/n}function ud(e){const t=p.useRef(e);return Gl(()=>{t.current=e}),t}function CT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=p.useState(r);Nc(m,r)||h(r);const[b,v]=p.useState(null),[y,x]=p.useState(null),g=p.useCallback(N=>{N!==S.current&&(S.current=N,v(N))},[]),w=p.useCallback(N=>{N!==j.current&&(j.current=N,x(N))},[]),_=o||b,k=i||y,S=p.useRef(null),j=p.useRef(null),P=p.useRef(d),R=c!=null,O=ud(c),T=ud(s),E=ud(u),L=p.useCallback(()=>{if(!S.current||!j.current)return;const N={placement:t,strategy:n,middleware:m};T.current&&(N.platform=T.current),_T(S.current,j.current,N).then(M=>{const z={...M,isPositioned:E.current!==!1};A.current&&!Nc(P.current,z)&&(P.current=z,Hs.flushSync(()=>{f(z)}))})},[m,t,n,T,E]);Gl(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);const A=p.useRef(!1);Gl(()=>(A.current=!0,()=>{A.current=!1}),[]),Gl(()=>{if(_&&(S.current=_),k&&(j.current=k),_&&k){if(O.current)return O.current(_,k,L);L()}},[_,k,L,O,R]);const H=p.useMemo(()=>({reference:S,floating:j,setReference:g,setFloating:w}),[g,w]),F=p.useMemo(()=>({reference:_,floating:k}),[_,k]),I=p.useMemo(()=>{const N={position:n,left:0,top:0};if(!F.floating)return N;const M=bv(F.floating,d.x),z=bv(F.floating,d.y);return a?{...N,transform:"translate("+M+"px, "+z+"px)",...ab(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:z}},[n,a,F.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:L,refs:H,elements:F,floatingStyles:I}),[d,L,H,F,I])}const jT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?wv({element:r.current,padding:s}).fn(n):{}:r?wv({element:r,padding:s}).fn(n):{}}}},NT=(e,t)=>({...gT(e),options:[e,t]}),ET=(e,t)=>({...vT(e),options:[e,t]}),PT=(e,t)=>({...bT(e),options:[e,t]}),TT=(e,t)=>({...yT(e),options:[e,t]}),RT=(e,t)=>({...xT(e),options:[e,t]}),OT=(e,t)=>({...wT(e),options:[e,t]}),AT=(e,t)=>({...jT(e),options:[e,t]});var MT="Arrow",lb=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return l.jsx(Y.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});lb.displayName=MT;var IT=lb;function cb(e){const[t,n]=p.useState(void 0);return ze(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const c=o.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Up="Popper",[ub,mi]=pn(Up),[DT,db]=ub(Up),fb=e=>{const{__scopePopper:t,children:n}=e,[r,s]=p.useState(null);return l.jsx(DT,{scope:t,anchor:r,onAnchorChange:s,children:n})};fb.displayName=Up;var hb="PopperAnchor",pb=p.forwardRef((e,t)=>
vendor: 4,922 bytes, line 181
181{const{__scopePopper:n,virtualRef:r,...s}=e,o=db(hb,n),i=p.useRef(null),a=pe(t,i);return p.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(Y.div,{...s,ref:a})});pb.displayName=hb;var Hp="PopperContent",[$T,LT]=ub(Hp),mb=p.forwardRef((e,t)=>{var B,me,Me,fe,le,de;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...v}=e,y=db(Hp,n),[x,g]=p.useState(null),w=pe(t,Xe=>g(Xe)),[_,k]=p.useState(null),S=cb(_),j=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,R=r+(o!=="center"?"-"+o:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},T=Array.isArray(u)?u:[u],E=T.length>0,L={padding:O,boundary:T.filter(zT),altBoundary:E},{refs:A,floatingStyles:H,placement:F,isPositioned:I,middlewareData:N}=CT({strategy:"fixed",placement:R,whileElementsMounted:(...Xe)=>mT(...Xe,{animationFrame:h==="always"}),elements:{reference:y.anchor},middleware:[NT({mainAxis:s+P,alignmentAxis:i}),c&&ET({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?PT():void 0,...L}),c&&TT({...L}),RT({...L,apply:({elements:Xe,rects:Dt,availableWidth:ts,availableHeight:tr})=>{const{width:ns,height:_i}=Dt.reference,Gs=Xe.floating.style;Gs.setProperty("--radix-popper-available-width",`${ts}px`),Gs.setProperty("--radix-popper-available-height",`${tr}px`),Gs.setProperty("--radix-popper-anchor-width",`${ns}px`),Gs.setProperty("--radix-popper-anchor-height",`${_i}px`)}}),_&&AT({element:_,padding:a}),BT({arrowWidth:j,arrowHeight:P}),m&&OT({strategy:"referenceHidden",...L})]}),[M,z]=yb(F),K=Ot(b);ze(()=>{I&&(K==null||K())},[I,K]);const q=(B=N.arrow)==null?void 0:B.x,te=(me=N.arrow)==null?void 0:me.y,X=((Me=N.arrow)==null?void 0:Me.centerOffset)!==0,[ke,Ae]=p.useState();return ze(()=>{x&&Ae(window.getComputedStyle(x).zIndex)},[x]),l.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:I?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[(fe=N.transformOrigin)==null?void 0:fe.x,(le=N.transformOrigin)==null?void 0:le.y].join(" "),...((de=N.hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx($T,{scope:n,placedSide:M,onArrowChange:k,arrowX:q,arrowY:te,shouldHideArrow:X,children:l.jsx(Y.div,{"data-side":M,"data-align":z,...v,ref:w,style:{...v.style,animation:I?void 0:"none"}})})})});mb.displayName=Hp;var gb="PopperArrow",FT={top:"bottom",right:"left",bottom:"top",left:"right"},vb=p.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=LT(gb,r),i=FT[o.placedSide];return l.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:l.jsx(IT,{...s,ref:n,style:{...s.style,display:"block"}})})});vb.displayName=gb;function zT(e){return e!==null}var BT=e=>({name:"transformOrigin",options:e,fn(t){var y,x,g;const{placement:n,rects:r,middlewareData:s}=t,i=((y=s.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=yb(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((x=s.arrow)==null?void 0:x.x)??0)+a/2,h=(((g=s.arrow)==null?void 0:g.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=i?f:`${m}px`,v=`${-c}px`):u==="top"?(b=i?f:`${m}px`,v=`${r.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=i?f:`${h}px`):u==="left"&&(b=`${r.floating.width+c}px`,v=i?f:`${h}px`),{data:{x:b,y:v}}}});function yb(e){const[t,n="center"]=e.split("-");return[t,n]}var Vp=fb,au=pb,qp=mb,Kp=vb,[lu,c3]=pn("Tooltip",[mi]),cu=mi(),xb="TooltipProvider",WT=700,Vf="tooltip.open",[UT,Gp]=lu(xb),wb=e=>{const{__scopeTooltip:t,delayDuration:n=WT,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,i=p.useRef(!0),a=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(UT,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:p.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:o})};wb.displayName=xb;var Ca="Tooltip",[HT,uu]=lu(Ca),bb=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:s,onOpenChange:o,disableHoverableContent:i,delayDuration:a}=e,c=Gp(Ca,e.__scopeTooltip),u=cu(t),[d,f]=p.useState(null),m=En(),h=p.useRef(0),b=i??c.disableHoverableContent,v=a??
vendor: 4,610 bytes, line 181
181c.delayDuration,y=p.useRef(!1),[x,g]=Jn({prop:r,defaultProp:s??!1,onChange:j=>{j?(c.onOpen(),document.dispatchEvent(new CustomEvent(Vf))):c.onClose(),o==null||o(j)},caller:Ca}),w=p.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),_=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,g(!0)},[g]),k=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g(!1)},[g]),S=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,g(!0),h.current=0},v)},[v,g]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),l.jsx(Vp,{...u,children:l.jsx(HT,{scope:t,contentId:m,open:x,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{c.isOpenDelayedRef.current?S():_()},[c.isOpenDelayedRef,S,_]),onTriggerLeave:p.useCallback(()=>{b?k():(window.clearTimeout(h.current),h.current=0)},[k,b]),onOpen:_,onClose:k,disableHoverableContent:b,children:n})})};bb.displayName=Ca;var qf="TooltipTrigger",_b=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=uu(qf,n),o=Gp(qf,n),i=cu(n),a=p.useRef(null),c=pe(t,a,s.onTriggerChange),u=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.jsx(au,{asChild:!0,...i,children:l.jsx(Y.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:V(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:V(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:V(e.onBlur,s.onClose),onClick:V(e.onClick,s.onClose)})})});_b.displayName=qf;var VT="TooltipPortal",[u3,qT]=lu(VT,{forceMount:void 0}),ni="TooltipContent",kb=p.forwardRef((e,t)=>{const n=qT(ni,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=uu(ni,e.__scopeTooltip);return l.jsx(On,{present:r||i.open,children:i.disableHoverableContent?l.jsx(Sb,{side:s,...o,ref:t}):l.jsx(KT,{side:s,...o,ref:t})})}),KT=p.forwardRef((e,t)=>{const n=uu(ni,e.__scopeTooltip),r=Gp(ni,e.__scopeTooltip),s=p.useRef(null),o=pe(t,s),[i,a]=p.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:f}=r,m=p.useCallback(()=>{a(null),f(!1)},[f]),h=p.useCallback((b,v)=>{const y=b.currentTarget,x={x:b.clientX,y:b.clientY},g=XT(x,y.getBoundingClientRect()),w=ZT(x,g),_=eR(v.getBoundingClientRect()),k=nR([...w,..._]);a(k),f(!0)},[f]);return p.useEffect(()=>()=>m(),[m]),p.useEffect(()=>{if(c&&d){const b=y=>h(y,d),v=y=>h(y,c);return c.addEventListener("pointerleave",b),d.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",v)}}},[c,d,h,m]),p.useEffect(()=>{if(i){const b=v=>{const y=v.target,x={x:v.clientX,y:v.clientY},g=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),w=!tR(x,i);g?m():w&&(m(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,d,i,u,m]),l.jsx(Sb,{...e,ref:o})}),[GT,YT]=lu(Ca,{isInside:!1}),QT=sN("TooltipContent"),Sb=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,c=uu(ni,n),u=cu(n),{onClose:d}=c;return p.useEffect(()=>(document.addEventListener(Vf,d),()=>document.removeEventListener(Vf,d)),[d]),p.useEffect(()=>{if(c.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),l.jsx(di,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:l.jsxs(qp,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(QT,{children:r}),l.jsx(GT,{scope:n,isInside:!0,children:l.jsx(jN,{id:c.contentId,role:"tooltip",children:s||r})})]})})});kb.displayName=ni;var Cb="TooltipArrow",JT=p.forwardRef((e,t)=>
vendor: 1,685 bytes, line 181
181{const{__scopeTooltip:n,...r}=e,s=cu(n);return YT(Cb,n).isInside?null:l.jsx(Kp,{...s,...r,ref:t})});JT.displayName=Cb;function XT(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ZT(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function eR(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function tR(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],c=t[i],u=a.x,d=a.y,f=c.x,m=c.y;d>r!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(s=!s)}return s}function nR(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),rR(t)}function rR(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var sR=wb,oR=bb,iR=_b,jb=kb;const Nb=sR,aR=oR,lR=iR,Eb=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 8,320 bytes, line 181
181l.jsx(jb,{ref:r,sideOffset:t,className:G("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Eb.displayName=jb.displayName;var Ha=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ms=typeof window>"u"||"Deno"in globalThis;function gt(){}function cR(e,t){return typeof e=="function"?e(t):e}function Kf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zr(e,t){return typeof e=="function"?e(t):e}function Ft(e,t){return typeof e=="function"?e(t):e}function _v(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Yp(i,t.options))return!1}else if(!Na(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function kv(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ja(t.options.mutationKey)!==ja(o))return!1}else if(!Na(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Yp(e,t){return((t==null?void 0:t.queryKeyHashFn)||ja)(e)}function ja(e){return JSON.stringify(e,(t,n)=>Yf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Na(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Na(e[n],t[n])):!1}function Tb(e,t){if(e===t)return e;const n=Sv(e)&&Sv(t);if(n||Yf(e)&&Yf(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<i;d++){const f=n?d:o[d];(!n&&c.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=Tb(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return s===i&&u===s?e:a}return t}function Gf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Sv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yf(e){if(!Cv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Cv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Cv(e){return Object.prototype.toString.call(e)==="[object Object]"}function uR(e){return new Promise(t=>{setTimeout(t,e)})}function Qf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tb(e,t):t}function dR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function fR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qp=Symbol();function Rb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function hR(e,t){return typeof e=="function"?e(...t):!!e}var gs,wr,Do,Dy,pR=(Dy=class extends Ha{constructor(){super();Q(this,gs);Q(this,wr);Q(this,Do);U(this,Do,t=>{if(!Ms&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,wr)||this.setEventListener(C(this,Do))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wr))==null||t.call(this),U(this,wr,void 0))}setEventListener(t){var n;U(this,Do,t),(n=C(this,wr))==null||n.call(this),U(this,wr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,gs)!==t&&(U(this,gs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,gs)=="boolean"?C(this,gs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},gs=new WeakMap,wr=new WeakMap,Do=new WeakMap,Dy),Jp=new pR,$o,br,Lo,$y,mR=($y=class extends Ha{constructor(){super();Q(this,$o,!0);Q(this,br);Q(this,Lo);U(this,Lo,t=>{if(!Ms&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,br)||this.setEventListener(C(this,Lo))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,br))==null||t.call(this),U(this,br,void 0))}setEventListener(t){var n;U(this,Lo,t),(n=C(this,br))==null||n.call(this),U(this,br,t(this.setOnline.bind(this)))}setOnline(t){C(this,$o)!==t&&(U(this,$o,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,$o)}},$o=new WeakMap,br=new WeakMap,Lo=new WeakMap,$y),Ec=new mR;function Jf(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function gR(e){return Math.min(1e3*2**e,3e4)}function Ob(e){return(e??"online")==="online"?Ec.isOnline():!0}var Ab=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dd(e){return e instanceof Ab}function Mb(e){let t=!1,n=0,r=!1,s;const o=Jf(),i=v=>{var y;r||(m(new Ab(v)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>Jp.isFocused()&&(e.networkMode==="always"||Ec.isOnline())&&e.canRun(),d=()=>Ob(e.networkMode)&&e.canRun(),f=v=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,v),s==null||s(),o.resolve(v))},m=v=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,v),s==null||s(),o.reject(v))},h=()=>new Promise(v=>{var y;s=x=>{(r||u())&&v(x)},(y=e.onPause)==null||y.call(e)}).then(()=>{var v;s=void 0,r||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(r)return;let v;const y=n===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(x){v=Promise.reject(x)}Promise.resolve(v).then(f).catch(x=>{var S;if(r)return;const g=e.retry??(Ms?0:3),w=e.retryDelay??gR,_=typeof w=="function"?w(n,x):w,k=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,x);if(t||!k){m(x);return}n++,(S=e.onFail)==null||S.call(e,n,x),uR(_).then(()=>u()?void 0:h()).then(()=>{t?m(x):b()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?b():h().then(b),o)}}var vR=e=>setTimeout(e,0);function yR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=vR;const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{o(()=>{a(...c)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Ye=yR(),vs,Ly,Ib=(Ly=class{constructor(){Q(this,vs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Kf(this.gcTime)&&U(this,vs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ms?1/0:5*60*1e3))}clearGcTimeout(){C(this,vs)&&(clearTimeout(C(this,vs)),U(this,vs,void 0))}},vs=new WeakMap,Ly),Fo,ys,Lt,xs,tt,Oa,ws,tn,$n,Fy,xR=(Fy=class extends Ib{constructor(t){super();Q(this,tn);Q(this,Fo);Q(this,ys);Q(this,Lt);Q(this,xs);Q(this,tt);Q(this,Oa);Q(this,ws);U(this,ws,!1),U(this,Oa,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,xs,t.client),U(this,Lt,C(this,xs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Fo,wR(this.options)),this.state=t.state??C(this,Fo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,tt))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Oa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Lt).remove(this)}setData(t,n){const r=Qf(this.state.data,t,this.options);
vendor: 1,863 bytes, line 181
181return ie(this,tn,$n).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ie(this,tn,$n).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=C(this,tt))==null?void 0:r.promise;return(s=C(this,tt))==null||s.cancel(t),n?n.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Fo))}isActive(){return this.observers.some(t=>Ft(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>zr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Pb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,tt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,tt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,tt)&&(C(this,ws)?C(this,tt).cancel({revert:!0}):C(this,tt).cancelRetry()),this.scheduleGc()),C(this,Lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}
181invalidate(){this.state.isInvalidated||ie(this,tn,$n).call(this,{type:"invalidate"})}fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,tt))return C(this,tt).continueRetry(),C(this,tt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(h=>h.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(U(this,ws,!0),r.signal)})},o=()=>{const m=Rb(this.options,n),b=(()=>{const v={client:C(this,xs),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return U(this,ws,!1),this.options.persister?this.options.persister(m,b,this):m(b)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,xs),state:this.state,fetchFn:o};return s(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),U(this,ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&ie(this,tn,$n
vendor: 23,873 bytes, line 181
181).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const c=m=>{var h,b,v,y;dd(m)&&m.silent||ie(this,tn,$n).call(this,{type:"error",error:m}),dd(m)||((b=(h=C(this,Lt).config).onError)==null||b.call(h,m,this),(y=(v=C(this,Lt).config).onSettled)==null||y.call(v,this.state.data,m,this)),this.scheduleGc()};return U(this,tt,Mb({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var h,b,v,y;if(m===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(x){c(x);return}(b=(h=C(this,Lt).config).onSuccess)==null||b.call(h,m,this),(y=(v=C(this,Lt).config).onSettled)==null||y.call(v,m,this.state.error,this),this.scheduleGc()},onError:c,onFail:(m,h)=>{ie(this,tn,$n).call(this,{type:"failed",failureCount:m,error:h})},onPause:()=>{ie(this,tn,$n).call(this,{type:"pause"})},onContinue:()=>{ie(this,tn,$n).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,tt).start()}},Fo=new WeakMap,ys=new WeakMap,Lt=new WeakMap,xs=new WeakMap,tt=new WeakMap,Oa=new WeakMap,ws=new WeakMap,tn=new WeakSet,$n=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Db(r.data,this.options),fetchMeta:t.meta??null};case"success":return U(this,ys,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return dd(s)&&s.revert&&C(this,ys)?{...C(this,ys),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Lt).notify({query:this,type:"updated",action:t})})},Fy);function Db(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ob(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var yn,zy,bR=(zy=class extends Ha{constructor(t={}){super();Q(this,yn);this.config=t,U(this,yn,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??Yp(s,n);let i=this.get(o);return i||(i=new xR({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){C(this,yn).has(t.queryHash)||(C(this,yn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,yn).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,yn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,yn).get(t)}getAll(){return[...C(this,yn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_v(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>_v(t,r)):n}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},yn=new WeakMap,zy),xn,it,bs,wn,fr,By,_R=(By=class extends Ib{constructor(t){super();Q(this,wn);Q(this,xn);Q(this,it);Q(this,bs);this.mutationId=t.mutationId,U(this,it,t.mutationCache),U(this,xn,[]),this.state=t.state||kR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,xn).includes(t)||(C(this,xn).push(t),this.clearGcTimeout(),C(this,it).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,xn,C(this,xn).filter(n=>n!==t)),this.scheduleGc(),C(this,it).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,xn).length||(this.state.status==="pending"?this.scheduleGc():C(this,it).remove(this))}continue(){var t;return((t=C(this,bs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,c,u,d,f,m,h,b,v,y,x,g,w,_,k,S,j,P;const n=()=>{ie(this,wn,fr).call(this,{type:"continue"})};U(this,bs,Mb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,O)=>{ie(this,wn,fr).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{ie(this,wn,fr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,it).canRun(this)}));const r=this.state.status==="pending",s=!C(this,bs).canStart();try{if(r)n();else{ie(this,wn,fr).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=C(this,it).config).onMutate)==null?void 0:i.call(o,t,this));const O=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));O!==this.state.context&&ie(this,wn,fr).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const R=await C(this,bs).start();return await((d=(u=C(this,it).config).onSuccess)==null?void 0:d.call(u,R,t,this.state.context,this)),await((m=(f=this.options).onSuccess)==null?void 0:m.call(f,R,t,this.state.context)),await((b=(h=C(this,it).config).onSettled)==null?void 0:b.call(h,R,null,this.state.variables,this.state.context,this)),await((y=(v=this.options).onSettled)==null?void 0:y.call(v,R,null,t,this.state.context)),ie(this,wn,fr).call(this,{type:"success",data:R}),R}catch(R){try{throw await((g=(x=C(this,it).config).onError)==null?void 0:g.call(x,R,t,this.state.context,this)),await((_=(w=this.options).onError)==null?void 0:_.call(w,R,t,this.state.context)),await((S=(k=C(this,it).config).onSettled)==null?void 0:S.call(k,void 0,R,this.state.variables,this.state.context,this)),await((P=(j=this.options).onSettled)==null?void 0:P.call(j,void 0,R,t,this.state.context)),R}finally{ie(this,wn,fr).call(this,{type:"error",error:R})}}finally{C(this,it).runNext(this)}}},xn=new WeakMap,it=new WeakMap,bs=new WeakMap,wn=new WeakSet,fr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ye.batch(()=>{C(this,xn).forEach(r=>{r.onMutationUpdate(t)}),C(this,it).notify({mutation:this,type:"updated",action:t})})},By);function kR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Un,nn,Aa,Wy,SR=(Wy=class extends Ha{constructor(t={}){super();Q(this,Un);Q(this,nn);Q(this,Aa);this.config=t,U(this,Un,new Set),U(this,nn,new Map),U(this,Aa,0)}build(t,n,r){const s=new _R({mutationCache:this,mutationId:++nl(this,Aa)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){C(this,Un).add(t);const n=Sl(t);if(typeof n=="string"){const r=C(this,nn).get(n);r?r.push(t):C(this,nn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Un).delete(t)){const n=Sl(t);if(typeof n=="string"){const r=C(this,nn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&C(this,nn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sl(t);if(typeof n=="string"){const r=C(this,nn).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Sl(t);if(typeof n=="string"){const s=(r=C(this,nn).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ye.batch(()=>{C(this,Un).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Un).clear(),C(this,nn).clear()})}getAll(){return Array.from(C(this,Un))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kv(n,r))}findAll(t={}){return this.getAll().filter(n=>kv(t,n))}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(gt))))}},Un=new WeakMap,nn=new WeakMap,Aa=new WeakMap,Wy);function Sl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function jv(e){return{onFetch:(t,n)=>{var d,f,m,h,b;const r=t.options,s=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let v=!1;const y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},x=Rb(t.options,t.fetchOptions),g=async(w,_,k)=>{if(v)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const j=(()=>{const T={client:t.client,queryKey:t.queryKey,pageParam:_,direction:k?"backward":"forward",meta:t.options.meta};return y(T),T})(),P=await x(j),{maxPages:R}=t.options,O=k?fR:dR;return{pages:O(w.pages,P,R),pageParams:O(w.pageParams,_,R)}};if(s&&o.length){const w=s==="backward",_=w?CR:Nv,k={pages:o,pageParams:i},S=_(r,k);a=await g(k,S,w)}else{const w=e??o.length;do{const _=c===0?i[0]??r.initialPageParam:Nv(r,a);if(c>0&&_==null)break;a=await g(a,_),c++}while(c<w)}return a};t.options.persister?t.fetchFn=()=>{var v,y;return(y=(v=t.options).persister)==null?void 0:y.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Nv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function CR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ie,_r,kr,zo,Bo,Sr,Wo,Uo,Uy,jR=(Uy=class{constructor(e={}){Q(this,Ie);Q(this,_r);Q(this,kr);Q(this,zo);Q(this,Bo);Q(this,Sr);Q(this,Wo);Q(this,Uo);U(this,Ie,e.queryCache||new bR),U(this,_r,e.mutationCache||new SR),U(this,kr,e.defaultOptions||{}),U(this,zo,new Map),U(this,Bo,new Map),U(this,Sr,0)}mount(){nl(this,Sr)._++,C(this,Sr)===1&&(U(this,Wo,Jp.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ie).onFocus())})),U(this,Uo,Ec.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ie).onOnline())})))}unmount(){var e,t;nl(this,Sr)._--,C(this,Sr)===0&&((e=C(this,Wo))==null||e.call(this),U(this,Wo,void 0),(t=C(this,Uo))==null||t.call(this),U(this,Uo,void 0))}isFetching(e){return C(this,Ie).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,_r).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ie).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,Ie).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(zr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,Ie).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=C(this,Ie).get(r.queryHash),o=s==null?void 0:s.state.data,i=cR(t,o);if(i!==void 0)return C(this,Ie).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ye.batch(()=>C(this,Ie).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ie).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Ie);Ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Ie);return Ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ye.batch(()=>C(this,Ie).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return Ye.batch(()=>(C(this,Ie).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ye.batch(()=>C(this,Ie).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(gt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Ie).build(this,t);return n.isStaleByTime(zr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=jv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=jv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ec.isOnline()?C(this,_r).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Ie)}getMutationCache(){return C(this,_r)}getDefaultOptions(){return C(this,kr)}setDefaultOptions(e){U(this,kr,e)}setQueryDefaults(e,t){C(this,zo).set(ja(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,zo).values()],n={};return t.forEach(r=>{Na(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Bo).set(ja(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Bo).values()],n={};return t.forEach(r=>{Na(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,kr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Qp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,kr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Ie).clear(),C(this,_r).clear()}},Ie=new WeakMap,_r=new WeakMap,kr=new WeakMap,zo=new WeakMap,Bo=new WeakMap,Sr=new WeakMap,Wo=new WeakMap,Uo=new WeakMap,Uy),pt,ae,Ma,at,_s,Ho,Cr,jr,Ia,Vo,qo,ks,Ss,Nr,Ko,he,Wi,Xf,Zf,eh,th,nh,rh,sh,$b,Hy,NR=(Hy=class extends Ha{constructor(t,n){super();Q(this,he);Q(this,pt);Q(this,ae);Q(this,Ma);Q(this,at);Q(this,_s);Q(this,Ho);Q(this,Cr);Q(this,jr);Q(this,Ia);Q(this,Vo);Q(this,qo);Q(this,ks);Q(this,Ss);Q(this,Nr);Q(this,Ko,new Set);this.options=n,U(this,pt,t),U(this,jr,null),U(this,Cr,Jf()),this.options.experimental_prefetchInRender||C(this,Cr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ae).addObserver(this),Ev(C(this,ae),this.options)?ie(this,he,Wi).call(this):this.updateResult(),ie(this,he,th).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return oh(C(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return oh(C(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ie(this,he,nh).call(this),ie(this,he,rh).call(this),C(this,ae).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,ae);if(this.options=C(this,pt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ft(this.options.enabled,C(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ie(this,he,sh).call(this),C(this,ae).setOptions(this.options),n._defaulted&&!Gf(this.options,n)&&C(this,pt).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ae),observer:this});const s=this.hasListeners();s&&Pv(C(this,ae),r,this.options,n)&&ie(this,he,Wi).call(this),this.updateResult(),s&&(C(this,ae)!==r||Ft(this.options.enabled,C(this,ae))!==Ft(n.enabled,C(this,ae))||zr(this.options.staleTime,C(this,ae))!==zr(n.staleTime,C(this,ae)))&&ie(this,he,Xf).call(this);const o=ie(this,he,Zf).call(this);s&&(C(this,ae)!==r||Ft(this.options.enabled,C(this,ae))!==Ft(n.enabled,C(this,ae))||o!==C(this,Nr))&&ie(this,he,eh).call(this,o)}getOptimisticResult(t){const n=C(this,pt).getQueryCache().build(C(this,pt),t),r=this.createResult(n,t);return PR(this,r)&&(U(this,at,r),U(this,Ho,this.options),U(this,_s,C(this,ae).state)),r}getCurrentResult(){return C(this,at)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){C(this,Ko).add(t)}getCurrentQuery(){return C(this,ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,pt).defaultQueryOptions(t),r=C(this,pt).getQueryCache().build(C(this,pt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ie(this,he,Wi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,at)))}createResult(t,n){var R;const r=C(this,ae),s=this.options,o=C(this,at),i=C(this,_s),a=C(this,Ho),u=t!==r?t.state:C(this,Ma),{state:d}=t;let f={...d},m=!1,h;if(n._optimisticResults){const O=this.hasListeners(),T=!O&&Ev(t,n),E=O&&Pv(t,r,n,s);(T||E)&&(f={...f,...Db(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:y}=f;h=f.data;let x=!1;if(n.placeholderData!==void 0&&h===void 0&&y==="pending"){let O;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(O=o.data,x=!0):O=typeof n.placeholderData=="function"?n.placeholderData((R=C(this,qo))==null?void 0:R.state.data,C(this,qo)):n.placeholderData,O!==void 0&&(y="success",h=Qf(o==null?void 0:o.data,O,n),m=!0)}if(n.select&&h!==void 0&&!x)if(o&&h===(i==null?void 0:i.data)&&n.select===C(this,Ia))h=C(this,Vo);else try{U(this,Ia,n.select),h=n.select(h),h=Qf(o==null?void 0:o.data,h,n),U(this,Vo,h),U(this,jr,null)}catch(O){U(this,jr,O)}C(this,jr)&&(b=C(this,jr),h=C(this,Vo),v=Date.now(),y="error");const g=f.fetchStatus==="fetching",w=y==="pending",_=y==="error",k=w&&g,S=h!==void 0,P={status:y,fetchStatus:f.fetchStatus,isPending:w,isSuccess:y==="success",isError:_,isInitialLoading:k,isLoading:k,data:h,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!w,isLoadingError:_&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:_&&S,isStale:Xp(t,n),refetch:this.refetch,promise:C(this,Cr),isEnabled:Ft(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=L=>{P.status==="error"?L.reject(P.error):P.data!==void 0&&L.resolve(P.data)},T=()=>{const L=U(this,Cr,P.promise=Jf());O(L)},E=C(this,Cr);switch(E.status){case"pending":t.queryHash===r.queryHash&&O(E);break;case"fulfilled":(P.status==="error"||P.data!==E.value)&&T();break;case"rejected":(P.status!=="error"||P.error!==E.reason)&&T();break}}return P}updateResult(){const t=C(this,at),n=this.createResult(C(this,ae),this.options);if(U(this,_s,C(this,ae).state),U(this,Ho,this.options),C(this,_s).data!==void 0&&U(this,qo,C(this,ae)),Gf(n,t))return;U(this,at,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!C(this,Ko).size)return!0;const i=new Set(o??C(this,Ko));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,at)).some(a=>{const c=a;return C(this,at)[c]!==t[c]&&i.has(c)})};ie(this,he,$b).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ie(this,he,th).call(this)}},pt=new WeakMap,ae=new WeakMap,Ma=new WeakMap,at=new WeakMap,_s=new WeakMap,Ho=new WeakMap,Cr=new WeakMap,jr=new WeakMap,Ia=new WeakMap,Vo=new WeakMap,qo=new WeakMap,ks=new WeakMap,Ss=new WeakMap,Nr=new WeakMap,Ko=new WeakMap,he=new WeakSet,Wi=function(t){ie(this,he,sh).call(this);let n=C(this,ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(gt)),n},Xf=function(){ie(this,he,nh).call(this);const t=zr(this.options.staleTime,C(this,ae));if(Ms||C(this,at).isStale||!Kf(t))return;const r=Pb(C(this,at).dataUpdatedAt,t)+1;U(this,ks,setTimeout(()=>{C(this,at).isStale||this.updateResult()},r))},Zf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ae)):this.options.refetchInterval)??!1},eh=function(t){ie(this,he,rh).call(this),U(this,Nr,t),!(Ms||Ft(this.options.enabled,C(this,ae))===!1||!Kf(C(this,Nr))||C(this,Nr)===0)&&U(this,Ss,setInterval(()=>{(this.options.refetchIntervalInBackground||Jp.isFocused())&&ie(this,he,Wi).call(this)},C(this,Nr)))},th=function(){ie(this,he,Xf).call(this),ie(this,he,eh).call(this,ie(this,he,Zf).call(this))},nh=function(){C(this,ks)&&(clearTimeout(C(this,ks)),U(this,ks,void 0))},rh=function(){C(this,Ss)&&(clearInterval(C(this,Ss)),U(this,Ss,void 0))},sh=function(){const t=C(this,pt).getQueryCache().build(C(this,pt),this.options);if(t===C(this,ae))return;const n=C(this,ae);U(this,ae,t),U(this,Ma,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},$b=function(t){Ye.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,at))}),C(this,pt).getQueryCache().notify({query:C(this,ae),type:"observerResultsUpdated"})})},Hy);function ER(e,t){return Ft(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ev(e,t){return ER(e,t)||e.state.data!==void 0&&oh(e,t,t.refetchOnMount)}function oh(e,t,n){if(Ft(t.enabled,e)!==!1&&zr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Xp(e,t)}return!1}function Pv(e,t,n,r){return(e!==t||Ft(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xp(e,n)}function Xp(e,t){return Ft(t.enabled,e)!==!1&&e.isStaleByTime(zr(t.staleTime,e))}function PR(e,t){return!Gf(e.getCurrentResult(),t)}var Lb=p.createContext(void 0),Fb=e=>{const t=p.useContext(Lb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TR=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(Lb.Provider,{value:e,children:t})),zb=p.createContext(!1),RR=()=>p.useContext(zb);zb.Provider;function OR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
181var AR=p.createContext(OR()),MR=()=>p.useContext(AR),IR=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},DR=e=>{p.useEffect(()=>{e.clearReset()},[e])},$R=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||hR(n,[e.error,r])),LR=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},FR=(e,t)=>e.isLoading&&e.isFetching&&!t,zR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Tv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function BR(e,t,n){var f,m,h,b,v;const r=RR(),s=MR(),o=Fb(),i=o.defaultQueryOptions(e);(m=(f=o.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||m.call(f,i),i._optimisticResults=r?"isRestoring":"optimistic",LR(i),IR(i,s),DR(s);const a=!o.getQueryCache().get(i.queryHash),[c]=p.useState(()=>new t(o,i)),u=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const x=d?c.subscribe(Ye.batchCalls(y)):gt;return c.updateResult(),x},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setOptions(i)},[i,c]),zR(i,u))throw Tv(i,c,s);if($R({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((b=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||b.call(h,i,u),i.experimental_prefetchInRender&&!Ms&&FR(u,r)){const y=a?Tv(i,c,s):(v=o.getQueryCache().get(i.queryHash))==null?void 0:v.promise;y==null||y.catch(gt).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function Mn(e,t){return BR(e,NR)}/**
182 * @remix-run/router v1.23.0
183 *
184 * Copyright (c) Remix Software Inc.
185 *
186 * This source code is licensed under the MIT license found in the
187 * LICENSE.md file in the root directory of this source tree.
188 *
189 * @license MIT
190 */function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(this,arguments)}var Tr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Tr||(Tr={}));const Rv="popstate";function WR(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return ih("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Pc(s)}return HR(t,n,null,e)}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function UR(){return Math.random().toString(36).substr(2,8)}function Ov(e,t){return{usr:e.state,key:e.key,idx:t}}function ih(e,t,n,r){return n===void 0&&(n=null),Ea({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gi(t):t,{state:n,key:t&&t.key||r||UR()})}function Pc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function gi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function HR(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Tr.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(Ea({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=Tr.Pop;let y=d(),x=y==null?null:y-u;u=y,c&&c({action:a,location:v.location,delta:x})}function m(y,x){a=Tr.Push;let g=ih(v.location,y,x);u=d()+1;let w=Ov(g,u),_=v.createHref(g);try{i.pushState(w,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(_)}o&&c&&c({action:a,location:v.location,delta:1})}function h(y,x){a=Tr.Replace;let g=ih(v.location,y,x);u=d();let w=Ov(g,u),_=v.createHref(g);i.replaceState(w,"",_),o&&c&&c({action:a,location:v.location,delta:0})}function b(y){let x=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof y=="string"?y:Pc(y);return g=g.replace(/ $/,"%20"),Fe(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let v={get action(){return a},get location(){return e(s,i)},listen(y){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(Rv,f),c=y,()=>{s.removeEventListener(Rv,f),c=null}},createHref(y){return t(s,y)},createURL:b,encodeLocation(y){let x=b(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:h,go(y){return i.go(y)}};return v}var Av;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Av||(Av={}));function VR(e,t,n){return n===void 0&&(n="/"),qR(e,t,n,!1)}function qR(e,t,n,r){let s=typeof t=="string"?gi(t):t,o=Zp(s.pathname||"/",n);if(o==null)return null;let i=Wb(e);KR(i);let a=null;for(let c=0;a==null&&c<i.length;++c){let u=s2(o);a=n2(i[c],u,r)}return a}function Wb(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let c={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Fe(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
190id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Br([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Fe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Wb(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:e2(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let c of Ub(o.path))s(o,i,c)}),t}function Ub(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=Ub(r.join("/")),a=[];return a.push(...i.map(c=>c===""?o:[o,c].join("/"))),s&&a.push(...i),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function KR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:t2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const GR=/^:[\w-]+$/,YR=3,QR=2,JR=1,XR=10,ZR=-2,Mv=e=>e==="*";function e2(e,t){let n=e.split("/"),r=n.length;return n.some(Mv)&&(r+=ZR),t&&(r+=QR),n.filter(s=>!Mv(s)).reduce((s,o)=>s+(GR.test(o)?YR:o===""?JR:XR),r)}function t2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function n2(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let c=r[a],u=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=Iv({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Iv({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;
vendor: 13,850 bytes, lines 190-208
190Object.assign(s,f.params),i.push({params:s,pathname:Br([o,f.pathname]),pathnameBase:l2(Br([o,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(o=Br([o,f.pathnameBase]))}return i}function Iv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=r2(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:m,isOptional:h}=d;if(m==="*"){let v=a[f]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const b=a[f];return h&&!b?u[m]=void 0:u[m]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function r2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Bb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function s2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Bb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Zp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function o2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?gi(e):e;return{pathname:n?n.startsWith("/")?n:i2(n,t):t,search:c2(r),hash:u2(s)}}function i2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function fd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function a2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hb(e,t){let n=a2(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Vb(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=gi(e):(s=Ea({},e),Fe(!s.pathname||!s.pathname.includes("?"),fd("?","pathname","search",s)),Fe(!s.pathname||!s.pathname.includes("#"),fd("#","pathname","hash",s)),Fe(!s.search||!s.search.includes("#"),fd("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;s.pathname=m.join("/")}a=f>=0?t[f]:"/"}let c=o2(s,a),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Br=e=>e.join("/").replace(/\/\/+/g,"/"),l2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,u2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function d2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qb=["post","put","patch","delete"];new Set(qb);const f2=["get",...qb];new Set(f2);/**
191 * React Router v6.30.1
192 *
193 * Copyright (c) Remix Software Inc.
194 *
195 * This source code is licensed under the MIT license found in the
196 * LICENSE.md file in the root directory of this source tree.
197 *
198 * @license MIT
199 */function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pa.apply(this,arguments)}const em=p.createContext(null),h2=p.createContext(null),Vs=p.createContext(null),du=p.createContext(null),qs=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Kb=p.createContext(null);function p2(e,t){let{relative:n}=t===void 0?{}:t;Va()||Fe(!1);let{basename:r,navigator:s}=p.useContext(Vs),{hash:o,pathname:i,search:a}=Yb(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:Br([r,i])),s.createHref({pathname:c,search:a,hash:o})}function Va(){return p.useContext(du)!=null}function vi(){return Va()||Fe(!1),p.useContext(du).location}function Gb(e){p.useContext(Vs).static||p.useLayoutEffect(e)}function m2(){let{isDataRoute:e}=p.useContext(qs);return e?E2():g2()}function g2(){Va()||Fe(!1);let e=p.useContext(em),{basename:t,future:n,navigator:r}=p.useContext(Vs),{matches:s}=p.useContext(qs),{pathname:o}=vi(),i=JSON.stringify(Hb(s,n.v7_relativeSplatPath)),a=p.useRef(!1);return Gb(()=>{a.current=!0}),p.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=Vb(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Br([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}function Yb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Vs),{matches:s}=p.useContext(qs),{pathname:o}=vi(),i=JSON.stringify(Hb(s,r.v7_relativeSplatPath));return p.useMemo(()=>Vb(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function v2(e,t){return y2(e,t)}function y2(e,t,n,r){Va()||Fe(!1);let{navigator:s}=p.useContext(Vs),{matches:o}=p.useContext(qs),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=vi(),d;if(t){var f;let y=typeof t=="string"?gi(t):t;c==="/"||(f=y.pathname)!=null&&f.startsWith(c)||Fe(!1),d=y}else d=u;let m=d.pathname||"/",h=m;if(c!=="/"){let y=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=VR(e,{pathname:h}),v=k2(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Br([c,s.encodeLocation?s.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:Br([c,s.encodeLocation?s.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r);return t&&v?p.createElement(du.Provider,{value:{location:Pa({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Tr.Pop}},v):v}function x2(){let e=N2(),t=d2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:s},n):null,null)}const w2=p.createElement(x2,null);class b2 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(qs.Provider,{value:this.props.routeContext},p.createElement(Kb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _2(e){let{routeContext:t,match:n,children:r}=e,s=p.useContext(em);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(qs.Provider,{value:t},r)}function k2(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Fe(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:h}=n,b=f.route.loader&&m[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||b){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let h,b=!1,v=null,y=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||w2,c&&(u<0&&m===0?(b=!0,y=null):u===m&&(b=!0,y=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,m+1)),g=()=>{let w;return h?w=v:b?w=y:f.route.Component?w=p.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,p.createElement(_2,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?p.createElement(b2,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:g(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):g()},null)}var Qb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Qb||{}),Tc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Tc||{});function S2(e){let t=p.useContext(em);return t||Fe(!1),t}function C2(e){let t=p.useContext(h2);return t||Fe(!1),t}function j2(e){let t=p.useContext(qs);return t||Fe(!1),t}function Jb(e){let t=j2(),n=t.matches[t.matches.length-1];return n.route.id||Fe(!1),n.route.id}function N2(){var e;let t=p.useContext(Kb),n=C2(Tc.UseRouteError),r=Jb(Tc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function E2(){let{router:e}=S2(Qb.UseNavigateStable),t=Jb(Tc.UseNavigateStable),n=p.useRef(!1);return Gb(()=>{n.current=!0}),p.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Pa({fromRouteId:t},o)))},[e,t])}function P2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function co(e){Fe(!1)}function T2(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Tr.Pop,navigator:o,static:i=!1,future:a}=e;Va()&&Fe(!1);let c=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:c,navigator:o,static:i,future:Pa({v7_relativeSplatPath:!1},a)}),[c,a,o,i]);typeof r=="string"&&(r=gi(r));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:b="default"}=r,v=p.useMemo(()=>{let y=Zp(d,c);return y==null?null:{location:{pathname:y,search:f,hash:m,state:h,key:b},navigationType:s}},[c,d,f,m,h,b,s]);return v==null?null:p.createElement(Vs.Provider,{value:u},p.createElement(du.Provider,{children:n,value:v}))}function R2(e){let{children:t,location:n}=e;return v2(ah(t),n)}new Promise(()=>{});function ah(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,s)=>{if(!p.isValidElement(r))return;let o=[...t,s];if(r.type===p.Fragment){n.push.apply(n,ah(r.props.children,o));return}r.type!==co&&Fe(!1),!r.props.index||!r.props.children||Fe(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=ah(r.props.children,o)),n.push(i)}),n}/**
200 * React Router DOM v6.30.1
201 *
202 * Copyright (c) Remix Software Inc.
203 *
204 * This source code is licensed under the MIT license found in the
205 * LICENSE.md file in the root directory of this source tree.
206 *
207 * @license MIT
208 */function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lh.apply(this,arguments)}function O2(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function A2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M2(e,t){return e.button===0&&(!t||t==="_self")&&!A2(e)}const I2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],D2="6";try{window.__reactRouterVersion=D2}catch{}const $2="startTransition",Dv=Fh[$2];function L2(e){let{basename:t,children:n,future:r,window:s}=e,o=p.useRef();o.current==null&&(o.current=WR({window:s,v5Compat:!0}));let i=o.current,[a,c]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=p.useCallback(f=>{u&&Dv?Dv(()=>c(f)):c(f)},[c,u]);return p.useLayoutEffect(()=>i.listen(d),[i,d]),p.useEffect(()=>P2(r),[r]),p.createElement(T2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const F2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tm=p.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:c,to:u,preventScrollReset:d,viewTransition:f}
208=t,m=O2(t,I2),{basename:h}=p.useContext(Vs),b,v=!1;if(typeof u=="string"&&z2.test(u)&&(b=u,F2))try{let w=new URL(window.location.href),_=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=Zp(_.pathname,h);_.origin===w.origin&&k!=null?u=k+_.search+_.hash:v=!0}catch{}let y=p2(u,{relative:s}),x=B2(u,{replace:i,state:a,target:c,preventScrollReset:d,relative:s,viewTransition:f});function g(w){r&&r(w),w.defaultPrevented||x(w)}return p.createElement("a",lh({},m,{href:b||y,onClick:v||o?r:g,ref:n,target:c}))});var $v;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($v||($v={}));var Lv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Lv||(Lv={}));function B2(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,c=m2(),u=vi(),d=Yb(e,{relative:i});return p.useCallback(f=>{if(M2(f,n)){f.preventDefault();let m=r!==void 0?r:Pc(u)===Pc(d);c(e,{replace:m,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[u,c,d,r,s,n,e,o,i,a])}const W2="modulepreload",U2=function(e){return"/"+e},Fv={},qa=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=U2(c),c in Fv)return;Fv[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":W2,u||(f.as="script"),f.crossOrigin="",f.href=c,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((m,h)=>{f.addEventListener("load",m),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},H2=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>qa(async()=>{const{default:r}=await Promise.resolve().then(()=>yi);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class nm extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class V2 extends nm{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class zv extends nm{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Bv extends nm{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var ch;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(ch||(ch={}));var q2=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class K2{constructor(t,{headers:n={},customFetch:r,region:s=ch.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=H2(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return q2(this,void 0,void 0,function*(){try{const{headers:s,method:o,body:i}=n;let a={},{region:c}=n;c||(c=this.region);const u=new URL(`${this.url}/${t}`);c&&c!=="any"&&(a["x-region"]=c,u.searchParams.set("forceFunctionRegion",c));let d;i&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=i):typeof i=="string"?(a["Content-Type"]="text/plain",d=i):typeof FormData<"u"&&i instanceof FormData?d=i:(a["Content-Type"]="application/json",d=JSON.stringify(i)));const f=yield this.fetch(u.toString(),{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:d}).catch(v=>{throw new V2(v)}),m=f.headers.get("x-relay-error");
208if(m&&m==="true")throw new zv(f);if(!f.ok)throw new Bv(f);let h=((r=f.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),b;return h==="application/json"?b=yield f.json():h==="application/octet-stream"?b=yield f.blob():h==="text/event-stream"?b=f:h==="multipart/form-data"?b=yield f.formData():b=yield f.text(),{data:b,error:null,response:f}}catch(s){return{data:null,error:s,response:s instanceof Bv||s instanceof zv?s.context:void 0}}})}}var yt={},rm={},fu={},Ka={},hu={},pu={},G2=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},ri=G2();const Y2=ri.fetch,Xb=ri.fetch.bind(ri),Zb=ri.Headers,Q2=ri.Request,J2=ri.Response,yi=Object.freeze(Object.defineProperty({__proto__:null,Headers:Zb,Request:Q2,Response:J2,default:Xb,fetch:Y2},Symbol.toStringTag,{value:"Module"})),X2=SS(yi);var mu={};Object.defineProperty(mu,"__esModule",{value:!0});let Z2=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
208de=t.code}};mu.default=Z2;var e_=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pu,"__esModule",{value:!0});const eO=e_(X2),tO=e_(mu);let nO=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=eO.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{var i,a,c;let u=null,d=null,f=null,m=o.status,h=o.statusText;if(o.ok){if(this.method!=="HEAD"){const x=await o.text();x===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=x:d=JSON.parse(x))}const v=(i=this.headers.Prefer)===null||i===void 0?void 0:i.match(/count=(exact|planned|estimated)/),y=(a=o.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");v&&y&&y.length>1&&(f=parseInt(y[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(u={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,f=null,m=406,h="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const v=await o.text();try{u=JSON.parse(v),Array.isArray(u)&&o.status===404&&(d=[],u=null,m=200,h="OK")}catch{o.status===404&&v===""?(m=204,h="No Content"):u={message:v}}if(u&&this.isMaybeSingle&&(!((c=u==null?void 0:u.details)===null||c===void 0)&&c.includes("0 rows"))&&(u=null,m=200,h="OK"),u&&this.shouldThrowOnError)throw new tO.default(u)}return{error:u,data:d,count:f,status:m,statusText:h}});return this.shouldThrowOnError||(s=s.catch(o=>{var i,a,c;return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:`${(a=o==null?void 0:o.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(c=o==null?void 0:o.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};pu.default=nO;var rO=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hu,"__esModule",{value:!0});const sO=rO(pu);let oO=class extends sO.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:o=s}={}){const i=o?`${o}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const o=typeof s>"u"?"offset":`${s}.offset`,i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
208explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:o=!1,format:i="text"}={}){var a;const c=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${i}; for="${u}"; options=${c};`,i==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};hu.default=oO;var iO=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ka,"__esModule",{value:!0});const aO=iO(hu);let lO=class extends aO.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${o}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Ka.default=lO;var cO=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fu,"__esModule",{value:!0});const Mi=cO(Ka);let uO=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=n,this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let o=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),r&&(this.headers.Prefer=`count=${r}`),new Mi.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const s="POST",o=[];if(this.headers.Prefer&&o.push(this.headers.Prefer),n&&o.push(`count=${n}`),r||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const i=t.reduce((a,c)=>a.concat(Object.keys(c)),[]);if(i.length>0){const a=[...new Set(i)].map(c=>`"${c}"`);this.url.searchParams.set("columns",a.join(","))}}return new Mi.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:o=!0}={}){const i="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),o||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const c=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new Mi.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new Mi.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Mi.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};fu.default=uO;var gu={},vu={};
208Object.defineProperty(vu,"__esModule",{value:!0});vu.version=void 0;vu.version="0.0.0-automated";Object.defineProperty(gu,"__esModule",{value:!0});gu.DEFAULT_HEADERS=void 0;const dO=vu;gu.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${dO.version}`};var t_=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rm,"__esModule",{value:!0});const fO=t_(fu),hO=t_(Ka),pO=gu;let mO=class n_{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},pO.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new fO.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new n_(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:o}={}){let i;const a=new URL(`${this.url}/rpc/${t}`);let c;r||s?(i=r?"HEAD":"GET",Object.entries(n).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{a.searchParams.append(d,f)})):(i="POST",c=n);const u=Object.assign({},this.headers);return o&&(u.Prefer=`count=${o}`),new hO.default({method:i,url:a,headers:u,schema:this.schemaName,body:c,fetch:this.fetch,allowEmpty:!1})}};rm.default=mO;var xi=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yt,"__esModule",{value:!0});yt.PostgrestError=yt.PostgrestBuilder=yt.PostgrestTransformBuilder=yt.PostgrestFilterBuilder=yt.PostgrestQueryBuilder=yt.PostgrestClient=void 0;const r_=xi(rm);yt.PostgrestClient=r_.default;const s_=xi(fu);yt.PostgrestQueryBuilder=s_.default;const o_=xi(Ka);yt.PostgrestFilterBuilder=o_.default;const i_=xi(hu);yt.PostgrestTransformBuilder=i_.default;const a_=xi(pu);yt.PostgrestBuilder=a_.default;const l_=xi(mu);yt.PostgrestError=l_.default;var gO=yt.default={PostgrestClient:r_.default,PostgrestQueryBuilder:s_.default,PostgrestFilterBuilder:o_.default,PostgrestTransformBuilder:i_.default,PostgrestBuilder:a_.default,PostgrestError:l_.default};const{PostgrestClient:vO,PostgrestQueryBuilder:g3,PostgrestFilterBuilder:v3,PostgrestTransformBuilder:y3,PostgrestBuilder:x3,PostgrestError:w3}=gO;class yO{static dynamicRequire(t){try{return typeof process<"u"&&process.versions&&process.versions.node&&typeof require<"u"?require(t):null}catch{return null}}static detectEnvironment(){var t,n;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"&&process.versions&&process.versions.node){const r=parseInt(process.versions.node.split(".")[0]);if(r>=22)try{if(typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};const s=this.dynamicRequire("undici");if(s&&s.WebSocket)return{type:"native",constructor:s.WebSocket};throw new Error("undici not available")}catch{return{type:"unsupported",error:`Node.js ${r} detected but native WebSocket not found.`,workaround:'Install the "ws" package or check your Node.js installation.'}}try{const s=this.dynamicRequire("ws");if(s)return{type:"ws",constructor:(n=s.WebSocket)!==null&&n!==void 0?n:s};throw new Error("ws package not available")}catch{return{type:"unsupported",error:`Node.js ${r} detected without WebSocket support.`,workaround:'Install the "ws" package: npm install ws'}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
209
210Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const xO="2.15.0",wO=`realtime-js/${xO}`,bO="1.0.0",uh=1e4,_O=1e3,kO=100;var na;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(na||(na={}));var Be;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Be||(Be={}));var sn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(sn||(sn={}));var dh;(function(e){e.websocket="websocket"})(dh||(dh={}));var fs;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(fs||(fs={}));class SO{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),o=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+s));i=i+s;const c=r.decode(t.slice(i,i+o));i=i+o;const u=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:c,payload:u}}}class c_{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var we;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(we||(we={}));const Wv=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((o,i)=>(o[i]=CO(i,e,t,s),o),{})},CO=(e,t,n,r)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=n[e];return o&&!r.includes(o)?u_(o,i):fh(i)},u_=(e,t)=>
vendor: 4,459 bytes, line 210
210{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return PO(t,n)}switch(e){case we.bool:return jO(t);case we.float4:case we.float8:case we.int2:case we.int4:case we.int8:case we.numeric:case we.oid:return NO(t);case we.json:case we.jsonb:return EO(t);case we.timestamp:return TO(t);case we.abstime:case we.date:case we.daterange:case we.int4range:case we.int8range:case we.money:case we.reltime:case we.text:case we.time:case we.timestamptz:case we.timetz:case we.tsrange:case we.tstzrange:return fh(t);default:return fh(t)}},fh=e=>e,jO=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},NO=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},EO=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},PO=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const i=e.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>u_(t,a))}return e},TO=e=>typeof e=="string"?e.replace(" ","T"):e,d_=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class hd{constructor(t,n,r={},s=uh){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Uv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Uv||(Uv={}));class ra{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ra.syncState(this.state,s,o,i),this.pendingDiffs.forEach(c=>{this.state=ra.syncDiff(this.state,c,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ra.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const o=this.cloneDeep(t),i=this.transformState(n),a={},c={};return this.map(o,(u,d)=>{i[u]||(c[u]=d)}),this.map(i,(u,d)=>{const f=o[u];if(f){const m=d.map(y=>y.presence_ref),h=f.map(y=>y.presence_ref),b=d.filter(y=>h.indexOf(y.presence_ref)<0),v=f.filter(y=>m.indexOf(y.presence_ref)<0);b.length>0&&(a[u]=b),v.length>0&&(c[u]=v)}else a[u]=d}),this.syncDiff(o,{joins:a,leaves:c},r,s)}static syncDiff(t,n,r,s){const{joins:o,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(a,c)=>{var u;
210const d=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(c),d.length>0){const f=t[a].map(h=>h.presence_ref),m=d.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...m)}r(a,d,c)}),this.map(i,(a,c)=>{let u=t[a];if(!u)return;const d=c.map(f=>f.presence_ref);u=u.filter(f=>d.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,c),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Hv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Hv||(Hv={}));var sa;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(sa||(sa={}));var zn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(zn||(zn={}));class sm{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Be.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new hd(this,sn.join,this.params,this.timeout),this.rejoinTimer=new c_(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Be.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Be.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Be.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Be.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Be.errored,this.rejoinTimer.scheduleTimeout())}),this._on(sn.reply,{},(s,o)=>{this._trigger(this._replyEventName(o),s)}),this.presence=new ra(this),this.broadcastEndpointURL=d_(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Be.closed){const{config:{broadcast:o,presence:i,private:a}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(m=>m.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[sa.PRESENCE]&&this.bindings[sa.PRESENCE].length>0,d={},f={broadcast:o,presence:Object.assign(Object.assign({},i),{enabled:u}),postgres_changes:c,private:a};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(m=>t==null?void 0:t(zn.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(zn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var h;if(this.socket.setAuth(),m===void 0){t==null||t(zn.SUBSCRIBED);return}else{const b=this.bindings.postgres_changes,v=(h=b==null?void 0:b.length)!==null&&h!==void 0?h:0,y=[];for(let x=0;x<v;x++){const g=b[x],{filter:{event:w,schema:_,table:k,filter:S}}=g,j=m&&m[x];if(j&&j.event===w&&j.schema===_&&j.table===k&&j.filter===S)y.push(Object.assign(Object.assign({},g),{id:j.id}));else{this.unsubscribe(),this.state=Be.errored,t==null||t(zn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,t&&t(zn.SUBSCRIBED);return}}).receive("error",m=>{this.state=Be.errored,t==null||t(zn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(zn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Be.joined&&t===sa.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:o,payload:i}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,c;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||c===void 0)&&c.ack)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Be.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(sn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new hd(this,sn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Be.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new hd(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>kO){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:c,leave:u,join:d}=sn;if(r&&[a,c,u,d].indexOf(i)>=0&&r!==this._joinRef())return;let m=this._onMessage(i,n,r);if(n&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(h=>{var b,v,y;return((b=h.filter)===null||b===void 0?void 0:b.event)==="*"||((y=(v=h.filter)===null||v===void 0?void 0:v.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===i}).map(h=>h.callback(m,r)):(o=this.bindings[i])===null||o===void 0||o.filter(h=>{var b,v,y,x,g,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in h){const _=h.id,k=(b=h.filter)===null||b===void 0?void 0:b.event;return _&&((v=n.ids)===null||v===void 0?void 0:v.includes(_))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((y=n.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const _=(g=(x=h==null?void 0:h.filter)===null||x===void 0?void 0:x.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===i}).map(h=>{if(typeof m=="object"&&"ids"in m){const b=m.data,{schema:v,table:y,commit_timestamp:x,type:g,errors:w}=b;m=Object.assign(Object.assign({},{schema:v,table:y,commit_timestamp:x,eventType:g,new:{},old:{},errors:w}),this._getPayloadRecords(b))}h.callback(m,r)})}_isClosed(){return this.state===Be.closed}_isJoined(){return this.state===Be.joined}_isJoining(){return this.state===Be.joining}_isLeaving(){return this.state===Be.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&sm.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(sn.close,{},t)}_onError(t){this._on(sn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Be.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Wv(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Wv(t.columns,t.old_record)),n}}const Vv=()=>{},Cl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},RO=[1e3,2e3,5e3,1e4],OO=1e4,AO=`
211  addEventListener("message", (e) => {
212    if (e.data.event === "start") {
213      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
214    }
215  });`;class MO{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=uh,this.transport=null,this.heartbeatIntervalMs=Cl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Vv,this.ref=0,this.reconnectTimer=null,this.logger=Vv,this.conn=null,this.sendBuffer=[],this.serializer
215=new SO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let o;return s?o=s:typeof fetch>"u"?o=(...i)=>qa(async()=>{const{default:a}=await Promise.resolve().then(()=>yi);return{default:a}},void 0).then(({default:a})=>a(...i)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):o=fetch,(...i)=>o(...i)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${dh.websocket}`,this.httpEndpoint=d_(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=yO.createWebSocket(this.endpointURL())}catch(t){throw this._setConnectionState("disconnected"),new Error(`WebSocket not available: ${t.message}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:bO}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case na.connecting:return fs.Connecting;case na.open:return fs.Open;case na.closing:return fs.Closing;default:return fs.Closed}}isConnected(){return this.connectionState()===fs.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new sm(`realtime:${t}`,n,this);return this.channels.push(o),o}}push(t){const{topic:n,event:r,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var c;(c=this.conn)===null||c===void 0||c.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(_O,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Cl.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{n.topic==="phoenix"&&n.event==="phx_reply"&&this.heartbeatCallback(n.payload.status==="ok"?"ok":"error"),n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:o,ref:i}=n,a=i?`(${i})`:"",c=o.status||"";this.log("receive",`${c} ${r} ${s} ${a}`.trim(),o),this.channels.filter(u=>
215u._isMember(r)).forEach(u=>u._trigger(s,o,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(sn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([AO],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:wO};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(sn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new c_(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Cl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,o,i,a,c,u;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:uh,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Cl.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=t==null?void 0:t.reconnectAfterMs)!==null&&a!==void 0?a:d=>RO[d-1]||OO,this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(d,f)=>f(JSON.stringify(d)),this.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}
215class om extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ve(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class IO extends om{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class hh extends om{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var DO=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const f_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>qa(async()=>{const{default:r}=await Promise.resolve().then(()=>yi);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},$O=()=>DO(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield qa(()=>Promise.resolve().then(()=>yi),void 0)).Response:Response}),ph=e=>{if(Array.isArray(e))return e.map(n=>ph(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=ph(r)}),t},LO=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var Ks=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const pd=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),FO=(e,t,n)=>Ks(void 0,void 0,void 0,function*(){const r=yield $O();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{const o=e.status||500,i=(s==null?void 0:s.statusCode)||o+"";t(new IO(pd(s),o,i))}).catch(s=>{t(new hh(pd(s),s))}):t(new hh(pd(e),e))}),zO=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(LO(r)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,Object.assign(Object.assign({},s),n))};function Ga(e,t,n,r,s,o){return Ks(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,zO(t,r,s,o)).then(c=>{if(!c.ok)throw c;return r!=null&&r.noResolveJson?c:c.json()}).then(c=>i(c)).catch(c=>FO(c,a,r))})})}function Rc(e,t,n,r){return Ks(this,void 0,void 0,function*(){return Ga(e,"GET",t,n,r)})}function Bn(e,t,n,r,s){return Ks(this,void 0,void 0,function*(){return Ga(e,"POST",t,r,s,n)})}function mh(e,t,n,r,s){return Ks(this,void 0,void 0,function*(){return Ga(e,"PUT",t,r,s,n)})}function BO(e,t,n,r){return Ks(this,void 0,void 0,function*(){return Ga(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function h_(e,t,n,r,s){return Ks(this,void 0,void 0,function*(){return Ga(e,"DELETE",t,r,s,n)})}var ht=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const WO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},qv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class UO{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=f_(s)}uploadOrUpdate(t,n,r,s){return ht(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},qv),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const c=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),c&&o.append("metadata",this.encodeMetadata(c)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl),c&&o.append("metadata",this.encodeMetadata(c))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,c&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),d=this._getFinalPath(u),f=yield(t=="PUT"?mh:Bn)(this.fetch,`${this.url}/object/${d}`,o,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(o){if(Ve(o))return{data:null,error:o};throw o}})}upload(t,n,r){return ht(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return ht(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(t),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let c;const u=Object.assign({upsert:qv.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const f=yield mh(this.fetch,a.toString(),c,{headers:d});return{data:{path:o,fullPath:f.Key},error:null}}catch(c){if(Ve(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,n){return ht(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield Bn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new om("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(Ve(r))return{data:null,error:r};throw r}})}update(t,n,r){return ht(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return ht(this,void 0,void 0,function*(){try{return{data:yield Bn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(Ve(s))return{data:null,error:s};throw s}})}copy(t,n,r){return ht(this,void 0,void 0,function*(){try{return{data:{path:(yield Bn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(Ve(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return ht(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),o=yield Bn(this.fetch,`${this.url}/object/sign/${s}
215`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(Ve(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return ht(this,void 0,void 0,function*(){try{const s=yield Bn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(Ve(s))return{data:null,error:s};throw s}})}download(t,n){return ht(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=o?`?${o}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield Rc(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Ve(a))return{data:null,error:a};throw a}})}info(t){return ht(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield Rc(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:ph(r),error:null}}catch(r){if(Ve(r))return{data:null,error:r};throw r}})}exists(t){return ht(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield BO(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(Ve(r)&&r instanceof hh){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],o=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";o!==""&&s.push(o);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});c!==""&&s.push(c);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return ht(this,void 0,void 0,function*(){try{return{data:yield h_(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(Ve(n))return{data:null,error:n};throw n}})}list(t,n,r){return ht(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},WO),n),{prefix:t||""});return{data:yield Bn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(Ve(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const HO="2.10.4",VO={"X-Client-Info":`storage-js/${HO}`};var Zs=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class qO{constructor(t,n={},r,s){const o=new URL(t);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase.")),this.url=o.href,this.headers=Object.assign(Object.assign({},VO),n),this.fetch=f_(r)}listBuckets(){return Zs(this,void 0,void 0,function*(){try{return{data:yield Rc(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Ve(t))return{data:null,error:t};throw t}})}getBucket(t){return Zs(this,void 0,void 0,function*(){try{return{data:yield Rc(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(Ve(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Zs(this,void 0,void 0,function*(){try{return{data:yield Bn(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ve(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Zs(this,void 0,void 0,function*(){try{return{data:yield mh(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ve(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Zs(this,void 0,void 0,function*(){try{return{data:yield Bn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Ve(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Zs(this,void 0,void 0,function*(){try{return{data:yield h_(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(Ve(n))return{data:null,error:n};throw n}})}}class KO extends qO{constructor(t,n={},r,s){super(t,n,r,s)}from(t){return new UO(this.url,this.headers,t,this.fetch)}}const GO="2.54.0";let Ui="";typeof Deno<"u"?Ui="deno":typeof document<"u"?Ui="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Ui="react-native":Ui="node";const YO={"X-Client-Info":`supabase-js-${Ui}/${GO}`},QO={headers:YO},JO={schema:"public"},XO={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},ZO={};var eA=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
215return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const tA=e=>{let t;return e?t=e:typeof fetch>"u"?t=Xb:t=fetch,(...n)=>t(...n)},nA=()=>typeof Headers>"u"?Zb:Headers,rA=(e,t,n)=>{const r=tA(n),s=nA();return(o,i)=>eA(void 0,void 0,void 0,function*(){var a;const c=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(o,Object.assign(Object.assign({},i),{headers:u}))})};var sA=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};function oA(e){return e.endsWith("/")?e:e+"/"}function iA(e,t){var n,r;const{db:s,auth:o,realtime:i,global:a}=e,{db:c,auth:u,realtime:d,global:f}=t,m={db:Object.assign(Object.assign({},c),s),auth:Object.assign(Object.assign({},u),o),realtime:Object.assign(Object.assign({},d),i),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>sA(this,void 0,void 0,function*(){return""})};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}const p_="2.71.1",uo=30*1e3,gh=3,md=gh*uo,aA="http://localhost:9999",lA="supabase.auth.token",cA={"X-Client-Info":`gotrue-js/${p_}`},vh="X-Supabase-Api-Version",m_={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},uA=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,dA=10*60*1e3;class im extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ee(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class fA extends im{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function hA(e){return ee(e)&&e.name==="AuthApiError"}class g_ extends im{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Qr extends im{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class hr extends Qr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function pA(e){return ee(e)&&e.name==="AuthSessionMissingError"}class jl extends Qr{constructor(){super("Auth session or user missing","AuthInvalidToken
215ResponseError",500,void 0)}}class Nl extends Qr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class El extends Qr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function mA(e){return ee(e)&&e.name==="AuthImplicitGrantRedirectError"}class Kv extends Qr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class yh extends Qr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function gd(e){return ee(e)&&e.name==="AuthRetryableFetchError"}class Gv extends Qr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class xh extends Qr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Oc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Yv=` 	
216\r=`.split(""),gA=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Yv.length;t+=1)e[Yv[t].charCodeAt(0)]=-2;for(let t=0;t<Oc.length;t+=1)e[Oc[t].charCodeAt(0)]=t;return e})();function Qv(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Oc[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Oc[r]),t.queuedBits-=6}}function v_(e,t,n){const r=gA[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Jv(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{xA(i,r,n)};for(let i=0;i<e.length;i+=1)v_(e.charCodeAt(i),s,o);return t.join("")}function vA(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function yA(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}vA(r,t)}}function xA(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function wA(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)v_(e.charCodeAt(s),n,r);return new Uint8Array(t)}function bA(e){const t=[];return yA(e,n=>t.push(n)),new Uint8Array(t)}function _A(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Qv(s,n,r)),Qv(null,n,r),t.join("")}function kA(e){return Math.round(Date.now()/1e3)+e}function SA(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Xt=()=>typeof window<"u"&&typeof document<"u",os={tested:!1,writable:!1},y_=()=>{if(!Xt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(os.tested)return os.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),os.tested=!0,os.writable=!0}catch{os.tested=!0,os.writable=!1}return os.writable};function CA(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,o)=>{t[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const x_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>qa(async()=>{const{default:r}=await Promise.resolve().then(()=>yi);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},jA=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",fo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},is=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},lr=async(e,t)=>{await e.removeItem(t)};class yu{constructor(){this.promise=new yu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}yu.promiseConstructor=Promise;function vd(e){const t=e.split(".");if(t.length!==3)throw new xh("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!uA.test(t[r]))throw new xh("JWT not in base64url format");return{header:JSON.parse(Jv(t[0])),payload:JSON.parse(Jv(t[1])),signature:wA(t[2]),raw:{header:t[0],payload:t[1]}}}async function NA(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function EA(e,t){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){r(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function PA(e){return("0"+e.toString(16)).substr(-2)}function TA(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,PA).join("")}async function RA(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
216n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function OA(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await RA(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function eo(e,t,n=!1){const r=TA();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await fo(e,`${t}-code-verifier`,s);const o=await OA(r);return[o,r===o?"plain":"s256"]}const AA=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function MA(e){const t=e.headers.get(vh);if(!t||!t.match(AA))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function IA(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function DA(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const $A=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function to(e){if(!$A.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function yd(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Xv(e){return JSON.parse(JSON.stringify(e))}var LA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const us=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),FA=[502,503,504];async function Zv(e){var t;if(!jA(e))throw new yh(us(e),0);if(FA.includes(e.status))throw new yh(us(e),e.status);let n;try{n=await e.json()}catch(o){throw new g_(us(o),o)}let r;const s=MA(e);if(s&&s.getTime()>=m_["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Gv(us(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new hr}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new Gv(us(n),e.status,n.weak_password.reasons);throw new fA(us(n),e.status||500,r)}const zA=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function re(e,t,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[vh]||(o[vh]=m_["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const i=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",c=await BA(e,t,n+a,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function BA(e,t,n,r,s,o){const i=zA(t,r,s,o);let a;try{a=await e(n,Object.assign({},i))}catch(c){throw console.error(c),new yh(us(c),0)}if(a.ok||await Zv(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(c){await Zv(c)}}function Ln(e){var t;let n=null;VA(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=kA(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function ey(e){const t=Ln(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function xr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function WA(e){return{data:e,error:null}}function UA(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=e,i=LA(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},c=Object.assign({},i);return{data:{properties:a,user:c},error:null}}function HA(e){return e}function VA(e){return e.access_token&&e.refresh_token&&e.expires_in}const xd=["global","local","others"];var qA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};class KA{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=x_(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}
216async signOut(t,n=xd[0]){if(xd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${xd.join(", ")}`);try{return await re(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ee(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await re(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:xr})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=qA(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await re(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:UA,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ee(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await re(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:xr})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,o,i,a,c;try{const u={nextPage:null,lastPage:0,total:0},d=await re(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:HA});if(d.error)throw d.error;const f=await d.json(),m=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,h=(c=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&c!==void 0?c:[];return h.length>0&&(h.forEach(b=>{const v=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(b.split(";")[1].split("=")[1]);u[`${y}Page`]=v}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(ee(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){to(t);try{return await re(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:xr})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){to(t);try{return await re(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:xr})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){to(t);try{return await re(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:xr})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){to(t.userId);try{const{data:n,error:r}=await re(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _deleteFactor(t){to(t.userId),to(t.id);try{return{data:await re(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}}function ty(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function GA(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const no={debug:!!(globalThis&&y_()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class w_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class YA extends w_{}async function QA(e,t,n){no.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),no.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){no.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{no.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw no.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new YA(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(no.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}GA();const JA={url:aA,storageKey:lA,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:cA,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function ny(e,t,n){return await n()}const ro={};class Ta{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Ta.nextInstanceID,Ta.nextInstanceID+=1,this.instanceID>
2160&&Xt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},JA),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new KA({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=x_(s.fetch),this.lock=s.lock||ny,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:Xt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=QA:this.lock=ny,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:y_()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=ty(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=ty(this.memoryStorage)),Xt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=ro[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){ro[this.storageKey]=Object.assign(Object.assign({},ro[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=ro[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ro[this.storageKey]=Object.assign(Object.assign({},ro[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${p_}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=CA(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Xt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),mA(o)){const c=(t=o.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ee(n)?{error:n}:{error:new g_("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const o=await re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Ln}),{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const c=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(o){if(ee(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(t){var n,r,s;try{let o;if("email"in t){const{email:d,password:f,options:m}=t;let h=null,b=null;this.flowType==="pkce"&&([h,b]=await eo(this.storage,this.storageKey)),o=await re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:f,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:h,code_challenge_method:b},xform:Ln})}else if("phone"in t){const{phone:d,password:f,options:m}=t;o=await re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},channel:(s=m==null?void 0:m.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:Ln})}else throw new Nl("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const c=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(o){if(ee(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:i,options:a}=t;n=await re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:ey})}else if("phone"in t){const{phone:o,password:i,options:a}=t;n=await re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:ey})}else throw new Nl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new jl}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
216ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,r,s,o,i,a,c,u,d,f,m,h;let b,v;if("message"in t)b=t.message,v=t.signature;else{const{chain:y,wallet:x,statement:g,options:w}=t;let _;if(Xt())if(typeof x=="object")_=x;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))_=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=x}const k=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const S=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),g?{statement:g}:null));let j;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")j=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)j=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)b=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),v=j.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${k.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((u=w==null?void 0:w.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((f=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...w.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(`
217`);const S=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=S}}try{const{data:y,error:x}=await re(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:_A(v)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Ln});if(x)throw x;return!y||!y.session||!y.user?{data:{user:null,session:null},error:new jl}:(y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),{data:Object.assign({},y),error:x})}catch(y){if(ee(y))return{data:{user:null,session:null},error:y};throw y}}async _exchangeCodeForSession(t){const n=await is(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:i}=await re(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Ln});if(await lr(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new jl}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(ee(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=t,a=await re(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Ln}),{data:c,error:u}=a;return u?{data:{user:null,session:null},error:u}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new jl}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:u})}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,o,i;try{if("email"in t){const{email:a,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await eo(this.storage,this.storageKey));const{error:f}=await re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:c}=t,{data:u,error:d}=await re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(o=c==null?void 0:c.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(i=c==null?void 0:c.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new Nl("You must provide either an email or phone number.")}catch(a){if(ee(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,o;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await re(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Ln});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const c=i.session,u=i.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(ee(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let o=null,i=null;return this.flowType==="pkce"&&([o,i]=await eo(this.storage,this.storageKey)),await re(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
217:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:WA})}catch(o){if(ee(o))return{data:null,error:o};throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new hr;const{error:s}=await re(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(ee(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:o}=t,{error:i}=await re(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:s,options:o}=t,{data:i,error:a}=await re(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new Nl("You must provide either an email or phone number and a type")}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await is(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<md:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await is(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=yd()}if(this.storage.isServer&&t.user){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,u,d)=>(!i&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,u,d))})}return{data:{session:t},error:null}}const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:xr}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;
217if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new hr}:await re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:xr})})}catch(n){if(ee(n))return pA(n)&&(await this._removeSession(),await lr(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new hr;const i=s.session;let a=null,c=null;this.flowType==="pkce"&&t.email!=null&&([a,c]=await eo(this.storage,this.storageKey));const{data:u,error:d}=await re(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:c}),jwt:i.access_token,xform:xr});if(d)throw d;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new hr;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:i}=vd(t.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{session:a,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:c}=await this._getUser(t.access_token);if(c)throw c;o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return{data:{user:o.user,session:o},error:null}}catch(n){if(ee(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new hr;const{session:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?{data:{user:null,session:null},error:o}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!Xt())throw new El("No browser detected.");if(t.error||t.error_description||t.error_code)throw new El(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Kv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new El("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Kv("No code detected.");const{data:g,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:c,token_type:u}=t;if(!o||!a||!i||!u)throw new El("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let m=d+f;c&&(m=parseInt(c));const h=m-d;h*1e3<=uo&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${f}s`);const b=m-f;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,m,d):d-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,m,d);const{data:v,error:y}=await this._getUser(o);if(y)throw y;const x={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:f,expires_at:m,refresh_token:i,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:x,redirectType:t.type},error:null}}catch(r){if(ee(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await is(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
217if(o)return{error:o};const i=(r=s.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(hA(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await lr(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=SA(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await eo(this.storage,this.storageKey,!0));try{return await re(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(ee(o))return{data:null,error:o};throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,c,u,d;const{data:f,error:m}=o;if(m)throw m;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await re(this.fetch,"GET",h,{headers:this.headers,jwt:(d=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Xt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(ee(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;return await re(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await EA(async s=>(s>0&&await NA(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await re(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ln})),(s,o)=>{const i=200*Math.pow(2,s);return o&&gd(o)&&Date.now()+i-r<uo})}catch(r){if(this._debug(n,"error",r),ee(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Xt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await is(this.storage,this.storageKey);if(s&&this.userStorage){let i=await is(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await fo(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:yd()}else if(s&&!s.user&&!s.user){const i=await is(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await lr(this.storage,this.storageKey+"-user"),await fo(this.storage,this.storageKey,s)):s.user=yd()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not val
217id"),s!==null&&await this._removeSession();return}const o=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<md;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${md}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),gd(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(r,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new hr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new yu;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new hr;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={session:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),ee(o)){const i={session:null,error:o};return gd(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(c){o.push(c)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await fo(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const o=Xv(s);await fo(this.storage,this.storageKey,o)}else{const s=Xv(n);await fo(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await lr(this.storage,this.storageKey),await lr(this.storage,this.storageKey+"-code-verifier"),await lr(this.storage,this.storageKey+"-user"),this.userStorage&&await lr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Xt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),uo);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/uo);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${uo}ms, refresh threshold is ${gh} ticks`),s<=gh&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof w_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Xt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>
217{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,i]=await eo(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await re(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:u}=await re(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{data:null,error:o};const{data:i,error:a}=await re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(ee(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ee(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),o=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:s,phone:o},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:o}=t;if(o)return{data:null,error:o};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=vd(s.access_token);let a=null;i.aal&&(a=i.aal);let c=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(c="aal2");const d=i.amr||[];return{data:{currentLevel:a,nextLevel:c,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+dA>s)return r;const{data:o,error:i}=await re(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,r=o.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:b}
217=await this.getSession();if(b||!h.session)return{data:null,error:b};r=h.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:c}}=vd(r);n!=null&&n.allowExpired||IA(o.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:o,header:s,signature:i},error:null}}const d=DA(s.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,i,bA(`${a}.${c}`)))throw new xh("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(r){if(ee(r))return{data:null,error:r};throw r}}}Ta.nextInstanceID=0;const XA=Ta;class ZA extends XA{constructor(t){super(t)}}var eM=function(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class tM{constructor(t,n,r){var s,o,i;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=oA(t),c=new URL(a);this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,d={db:JO,realtime:ZO,auth:Object.assign(Object.assign({},XO),{storageKey:u}),global:QO},f=iA(r??{},d);this.storageKey=(s=f.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=f.global.headers)!==null&&o!==void 0?o:{},f.accessToken?(this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(m,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=f.auth)!==null&&i!==void 0?i:{},this.headers,f.global.fetch),this.fetch=rA(n,this._getAccessToken.bind(this),f.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},f.realtime)),this.rest=new vO(new URL("rest/v1",c).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch}),this.storage=new KO(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),f.accessToken||this._listenForAuthEvents()}get functions(){return new K2(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return eM(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:o,flowType:i,lock:a,debug:c},u,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new ZA({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),u),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:i,lock:a,debug:c,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new MO(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const nM=(e,t,n)=>new tM(e,t,n);function rM(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}rM()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
217ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const sM="https://oekaeogckbqbsncvkoqm.supabase.co",oM="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9la2Flb2dja2JxYnNuY3Zrb3FtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTQ4MDk3NzQsImV4cCI6MjA3MDM4NTc3NH0.1dtIaIsCDiZ_5jcyvvQ5tGG1D9g6MReWFoHfMycmsfU",oe=nM(sM,oM,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});function iM(e){const t=[];if(t.push("first_tweet_id.not.is.null"),e.scope==="creator"){if(e.directPerson.creatorEquals){const n=e.directPerson.creatorEquals.startsWith("@")?e.directPerson.creatorEquals.slice(1):e.directPerson.creatorEquals;t.push(`or(created_by_handle.eq.${n},creator_snapshot->>name.ilike.*${n}*)`)}if(e.directPerson.creatorKeywords){const n=e.directPerson.creatorKeywords;t.push(`or(creator_snapshot->>name.ilike.*${n}*,created_by_handle.ilike.*${n}*,creator_snapshot->>description.ilike.*${n}*)`)}e.verification.blueVerified===!0?t.push("creator_blue_verified.is.true"):e.verification.blueVerified===!1&&t.push("creator_blue_verified.is.false"),e.stats.followers!==void 0&&t.push(`creator_followers.gte.${e.stats.followers}`),e.stats.following!==void 0&&t.push(`creator_following.gte.${e.stats.following}`),e.stats.posts!==void 0&&t.push(`creator_posts.gte.${e.stats.posts}`),e.stats.media!==void 0&&t.push(`creator_media.gte.${e.stats.media}`),e.dates.joinedSince&&t.push(`creator_joined_at.gte.${e.dates.joinedSince.toISOString()}`)}else{const n=[],r=[];if(t.push("receiver_snapshot.not.is.null"),e.directPerson.creatorEquals){const s=e.directPerson.creatorEquals.startsWith("@")?e.directPerson.creatorEquals.slice(1):e.directPerson.creatorEquals;n.push(`or(created_by_handle.eq.${s},creator_snapshot->>name.ilike.*${s}*)`)}
217if(e.directPerson.receiverEquals){const s=e.directPerson.receiverEquals.startsWith("@")?e.directPerson.receiverEquals.slice(1):e.directPerson.receiverEquals;r.push(`or(royalties_receiver_handle.eq.${s},receiver_snapshot->>name.ilike.*${s}*)`)}if(e.directPerson.creatorKeywords){const s=e.directPerson.creatorKeywords;n.push(`or(creator_snapshot->>name.ilike.*${s}*,created_by_handle.ilike.*${s}*,creator_snapshot->>description.ilike.*${s}*)`)}if(e.directPerson.receiverKeywords){const s=e.directPerson.receiverKeywords;r.push(`or(receiver_snapshot->>name.ilike.*${s}*,royalties_receiver_handle.ilike.*${s}*,receiver_snapshot->>description.ilike.*${s}*)`)}if(e.verification.blueVerified===!0?(n.push("creator_blue_verified.is.true"),r.push("receiver_blue_verified.is.true")):e.verification.blueVerified===!1&&(n.push("creator_blue_verified.is.false"),r.push("receiver_blue_verified.is.false")),e.stats.followers!==void 0&&(n.push(`creator_followers.gte.${e.stats.followers}`),r.push(`receiver_followers.gte.${e.stats.followers}`)),e.stats.following!==void 0&&(n.push(`creator_following.gte.${e.stats.following}`),r.push(`receiver_following.gte.${e.stats.following}`)),e.stats.posts!==void 0&&(n.push(`creator_posts.gte.${e.stats.posts}`),r.push(`receiver_posts.gte.${e.stats.posts}`)),e.stats.media!==void 0&&(n.push(`creator_media.gte.${e.stats.media}`),r.push(`receiver_media.gte.${e.stats.media}`)),e.dates.joinedSince){const s=e.dates.joinedSince.toISOString();n.push(`creator_joined_at.gte.${s}`),r.push(`receiver_joined_at.gte.${s}`)}t.push(...n,...r)}return t}function aM(e,t){return t?e.filter(n=>{const r=n.creator_snapshot;if(r!=null&&r.followers&&(r!=null&&r.following)&&r.followers/Math.max(1,r.following)<t)return!1;if(n.receiver_snapshot){const s=n.receiver_snapshot;if(s!=null&&s.followers&&(s!=null&&s.following)&&s.followers/Math.max(1,s.following)<t)return!1}return!0}):e}function lM(e,t){const n=p.useMemo(()=>["filtered_tokens_paginated",e,t.pageSize],[e,t.pageSize]),r=p.useCallback(async()=>{console.debug("useFilteredTokensPaginated filters:",e,"pagination:",t);const s=0,o=t.pageSize-1;let i=null;if(e.marketCap.min!==void 0||e.marketCap.max!==void 0){let h=oe.from("token_marketcap").select("token_id");e.marketCap.min!==void 0&&(h=h.gte("market_cap_usd",e.marketCap.min)),e.marketCap.max!==void 0&&(h=h.lte("market_cap_usd",e.marketCap.max));const{data:b,error:v}=await h;
217if(v)throw console.error("Market cap filter error:",v),v;if(i=(b==null?void 0:b.map(y=>y.token_id))||[],console.debug("Market cap filter found token IDs:",i.length),i.length===0)return console.debug("No tokens match market cap criteria, returning empty result"),{items:[],pageSize:t.pageSize,totalShown:0}}let c=oe.from("v_dash_tokens_typed").select(`
218        bags_address, token_symbol, created_by_handle, royalties_receiver_handle, 
219        royalties_percent, first_tweet_url, first_tweet_created_at, 
220        creator_snapshot, receiver_snapshot, created_at,
221        token_marketcap (
222          market_cap_usd, price_usd, price_sol, last_quote_at,
223          price_change_1m, price_change_5m, price_change_15m, price_change_30m,
224          price_change_1h, price_change_4h, price_change_12h, price_change_24h
225        )
226      `).order("created_at",{ascending:!1,nullsFirst:!1}).order("bags_address",{ascending:!1}).range(s,o);i!==null&&(c=c.in("bags_address",i));const u=iM(e);if(u.length>0)for(const h of u)if(h.startsWith("or("))c=c.or(h.slice(3,-1));else{const b=h.split("."),v=b[0],y=b[1],x=b.slice(2).join(".");y==="gte"?c=c.gte(v,x):y==="lte"?c=c.lte(v,x):y==="eq"?c=c.eq(v,x):y==="is"?x==="true"?c=c.eq(v,!0):x==="false"?c=c.eq(v,!1):c=c.is(v,x):y==="not"?c=c.not(v,b.slice(2).join(".")):c=c.filter(v,b.slice(1).join("."))}console.debug("Final query built, executing...");const{data:d,error:f}=await c;if(f)throw console.error("Main query error:",f),f;let m=d||[];if(console.debug("Query returned items:",m.length),e.stats.ratio){const h=m.length;m=aM(m,e.stats.ratio),console.debug(`Ratio filter: ${h} -> ${m.length} items`)}return{items:m,pageSize:t.pageSize,totalShown:m.length}},[e,t]);return Mn({queryKey:n,queryFn:r,staleTime:3e4,gcTime:5*6e4})}function cM(e){return Mn({queryKey:["latest_claims_paginated",e.pageSize],queryFn:async()=>{const t=oe,n=0,r=e.pageSize-1;let s=t.from("dash_claims").select("id, claimer_handle, followers, token_symbol, tweet_url, tweet_created_at, claimer_snapshot, bags_address, lifetime_fees").order("tweet_created_at",{ascending:!1,nullsFirst:!1}).order("id",{ascending:!1}).range(n,r);const{data:o,error:i}=await s;if(i)throw i;const a=o||[],c=a.map(h=>h.bags_address).filter(Boolean);let u=new Map;if(c.length>0)try{const{data:h}=await oe.from("dash_token_meta").select("token_id, image_url").in("token_id",c).not("image_url","is",null);h&&h.forEach(b=>{b.image_url&&u.set(b.token_id,b.image_url)})}catch(h){console.warn("Failed to fetch token meta images:",h)}let d=new Map;if(c.length>0)try{const{data:h}=await oe.from("token_marketcap").select("token_id, market_cap_usd, price_usd, price_sol, last_quote_at, price_change_1m, price_change_5m, price_change_15m, price_change_1h, price_change_4h, price_change_24h").in("token_id",c);h&&h.forEach(b=>{d.set(b.token_id,b)})}catch(h){console.warn("Failed to fetch token market cap data:",h)}let f=new Map;if(c.length>0)try{const{data:h}=await oe.from("dash_token_meta").select("token_id, holders, tx_total, volume_total").in("token_id",c);h&&h.forEach(b=>{f.set(b.token_id,b)})}catch(h){console.warn("Failed to fetch token metadata:",h)}return{items:a.map(h=>{const b=h.bags_address?d.get(h.bags_address):null,v=h.bags_address?f.get(h.bags_address):null;return{...h,image_url:h.bags_address&&u.get(h.bags_address)||null,market_cap_usd:b==null?void 0:b.market_cap_usd,price_usd:b==null?void 0:b.price_usd,price_sol:b==null?void 0:b.price_sol,last_quote_at:b==null?void 0:b.last_quote_at,price_change_1m:b==null?void 0:b.price_change_1m,price_change_5m:b==null?void 0:b.price_change_5m,price_change_15m:b==null?void 0:b.price_change_15m,price_change_1h:b==null?void 0:b.price_change_1h,price_change_4h:b==null?void 0:b.price_change_4h,price_change_24h:b==null?void 0:b.price_change_24h,holders:v==null?void 0:v.holders,tx_total:v==null?void 0:v.tx_total,volume_total:v==null?void 0:v.volume_total}}),pageSize:e.pageSize,totalShown:a.length}},staleTime:3e4,gcTime:5*6e4})}function b_(e){return e?e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("ipfs://")?`https://image.solanatracker.io/proxy?url=https://ipfs-forward.solanatracker.io/ipfs/${e.replace("ipfs://","")}`:e.match(/^Qm[1-9A-HJ-NP-Za-km-z]{44}$/)||e.startsWith("Qm")?`https://image.solanatracker.io/proxy?url=https://ipfs-forward.solanatracker.io/ipfs/${e}`:e:null}function __(e){const[t,n]=p.useState(e),[r,s]=p.useState(new Set),o=p.useRef(0),i=p.useRef(0),a=12,c=p.useMemo(()=>JSON.stringify(e.map(d=>({id:d.bags_address,hasImage:!!d.image_url}))),[e]);p.useEffect(()=>{const d=new Set;e.forEach(f=>{f.image_url||d.add(f.bags_address)}),s(d),n(e),o.current=0,i.current=0},[c]);const{data:u}=Mn({queryKey:["token_images_hydration",Array.from(r).sort()],queryFn:async()=>
226{if(r.size===0)return null;i.current+=1;try{const{data:d}=await oe.from("dash_token_meta").select("token_id, image_url").in("token_id",Array.from(r)).not("image_url","is",null);return d||[]}catch{return[]}},enabled:r.size>0&&i.current<a,refetchInterval:5e3,staleTime:0,gcTime:0});return p.useEffect(()=>{if(!u||u.length===0)return;const d=new Set,f=new Map;u.forEach(m=>{if(m.image_url){d.add(m.token_id);const h=b_(m.image_url);h&&f.set(m.token_id,h)}}),d.size>0&&(n(m=>m.map(h=>d.has(h.bags_address)?{...h,image_url:f.get(h.bags_address)}:h)),s(m=>{const h=new Set(m);return d.forEach(b=>h.delete(b)),h}))},[u]),{hydratedItems:t,isHydrating:r.size>0&&i.current<a,missingCount:r.size}}const nt=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:G("rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-all duration-75 hover:shadow-glow",e),...t}));nt.displayName="Card";const uM=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:G("flex flex-col space-y-1.5 p-6",e),...t}));uM.displayName="CardHeader";const dM=p.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:G("text-2xl font-semibold leading-none tracking-tight",e),...t}));dM.displayName="CardTitle";const fM=p.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:G("text-sm text-muted-foreground",e),...t}));fM.displayName="CardDescription";const hM=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:G("p-6 pt-0",e),...t}));hM.displayName="CardContent";const pM=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:G("flex items-center p-6 pt-0",e),...t}));pM.displayName="CardFooter";var k_={exports:{}},S_={};/**
227 * @license React
228 * use-sync-external-store-shim.production.js
229 *
230 * Copyright (c) Meta Platforms, Inc. and affiliates.
231 *
232 * This source code is licensed under the MIT license found in the
233 * LICENSE file in the root directory of this source tree.
234 */var si=p;function mM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gM=typeof Object.is=="function"?Object.is:mM,vM=si.useState,yM=si.useEffect,xM=si.useLayoutEffect,wM=si.useDebugValue;function bM(e,t){var n=t(),r=vM({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return xM(function(){s.value=n,s.getSnapshot=t,wd(s)&&o({inst:s})},[e,n,t]),yM(function(){return wd(s)&&o({inst:s}),e(function(){wd(s)&&o({inst:s})})},[e]),wM(n),n}function wd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gM(e,n)}catch{return!0}}function _M(e,t){return t()}var kM=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_M:bM;S_.useSyncExternalStore=si.useSyncExternalStore!==void 0?si.useSyncExternalStore:kM;k_.exports=S_;var SM=k_.exports;function CM(){return SM.useSyncExternalStore(jM,()=>!0,()=>!1)}function jM(){return()=>{}}var am="Avatar",[NM,b3]=pn(am),[EM,C_]=NM(am),j_=p.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[s,o]=p.useState("idle");return l.jsx(EM,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:o,children:l.jsx(Y.span,{...r,ref:t})})});j_.displayName=am;var N_="AvatarImage",E_=p.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:s=()=>{},...o}=e,i=C_(N_,n),a=PM(r,o),c=Ot(u=>{s(u),i.onImageLoadingStatusChange(u)});return ze(()=>{a!=="idle"&&c(a)},[a,c]),a==="loaded"?l.jsx(Y.img,{...o,ref:t,src:r}):null});E_.displayName=N_;var P_="AvatarFallback",T_=p.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...s}=e,o=C_(P_,n),[i,a]=p.useState(r===void 0);return p.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(c)}},[r]),i&&o.imageLoadingStatus!=="loaded"?l.jsx(Y.span,{...s,ref:t}):null});T_.displayName=P_;function ry(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function PM(e,{referrerPolicy:t,crossOrigin:n}){const r=CM(),s=p.useRef(null),o=r?(s.current||(s.current=new window.Image),s.current):null,[i,a]=p.useState(()=>ry(o,e));return ze(()=>{a(ry(o,e))},[o,e]),ze(()=>{const c=f=>()=>{a(f)};if(!o)return;const u=c("loaded"),d=c("error");return o.addEventListener("load",u),o.addEventListener("error",d),t&&(o.referrerPolicy=t),typeof n=="string"&&(o.crossOrigin=n),()=>{o.removeEventListener("load",u),o.removeEventListener("error",d)}},[o,n,t]),i}var R_=j_,O_=E_,A_=T_;const Is=p.forwardRef(({className:e,...t},n)=>l.jsx(R_,{ref:n,className:G("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));
234Is.displayName=R_.displayName;const Ds=p.forwardRef(({className:e,...t},n)=>l.jsx(O_,{ref:n,className:G("aspect-square h-full w-full",e),...t}));Ds.displayName=O_.displayName;const $s=p.forwardRef(({className:e,...t},n)=>l.jsx(A_,{ref:n,className:G("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));$s.displayName=A_.displayName;const TM=ru("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-mono uppercase font-medium transition-colors focus:outline-none focus:ring-1 focus:ring-ring focus:ring-offset-1 letter-spacing-wide",{variants:{variant:{default:"border-transparent bg-primary/12 text-primary hover:bg-primary/16",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive/12 text-destructive hover:bg-destructive/16",outline:"text-foreground border-border"}},defaultVariants:{variant:"default"}});function M_({className:e,variant:t,...n}){return l.jsx("div",{className:G(TM({variant:t}),e),...n})}function Rr({size:e=60,className:t}){return l.jsx("div",{className:`flex items-center justify-center bg-base border border-border rounded-lg overflow-hidden ${t||""}`,style:{width:e,height:e},children:l.jsxs("div",{className:"relative w-full h-full",children:[l.jsx("div",{className:"absolute inset-0 opacity-20",style:{backgroundImage:`
235              linear-gradient(rgba(57, 255, 20, 0.1) 1px, transparent 1px),
236              linear-gradient(90deg, rgba(57, 255, 20, 0.1) 1px, transparent 1px)
237            `,backgroundSize:"4px 4px"}}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l.jsx("div",{className:"text-accent font-mono font-bold text-xs",children:"◊"})})]})})}function RM(e){return e?(typeof e=="string"?parseFloat(e):e)/1e9:0}function OM(e){return e===0?"0 SOL":e<1e-4?"<0.0001 SOL":`${e.toFixed(4).replace(/\.?0+$/,"")} SOL`}function AM(e){return e===0?"$0.00":e<.01?"<$0.01":`$${e.toFixed(2)}`}function Co(e){return e==null?"":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":String(e)}function MM(e){if(!e)return"";const t=new Date(e),r=new Date().getTime()-t.getTime(),s=r/(1e3*60*60*24*365.25);if(s>=1)return`member for ${Math.floor(s)}y`;{const o=r/2630016e3;return`member for ${Math.floor(o)}m`}}function wh(e,t){const n=e||t;return n?`https://x.com/${n.replace(/^@+/,"")}`:""}function Ue({className:e,...t}){return l.jsx("div",{className:G("animate-pulse rounded-md bg-muted",e),...t})}const bd=768;function wi(){const[e,t]=p.useState(void 0);return p.useEffect(()=>{const n=window.matchMedia(`(max-width: ${bd-1}px)`),r=()=>{t(window.innerWidth<bd)};return n.addEventListener("change",r),t(window.innerWidth<bd),()=>n.removeEventListener("change",r)},[]),!!e}const _d=[{key:"price_change_1m",label:"1m",row:1},{key:"price_change_5m",label:"5m",row:1},{key:"price_change_15m",label:"15m",row:1},{key:"price_change_30m",label:"30m",row:2},{key:"price_change_1h",label:"1h",row:2},{key:"price_change_24h",label:"24h",row:2}],IM=e=>{const t=e/60,n=t/60;return t<5?["price_change_1m","price_change_5m","price_change_15m"]:t<30?["price_change_1m","price_change_5m","price_change_15m","price_change_30m"]:n<1?["price_change_1m","price_change_5m","price_change_15m","price_change_30m"]:n<4?["price_change_1m","price_change_5m","price_change_15m","price_change_30m","price_change_1h"]:n<12?["price_change_1m","price_change_5m","price_change_15m","price_change_30m","price_change_1h","price_change_4h"]:n<24?["price_change_1m","price_change_5m","price_change_15m","price_change_30m","price_change_1h","price_change_4h","price_change_12h"]:["price_change_1m","price_change_5m","price_change_15m","price_change_30m","price_change_1h","price_change_4h","price_change_12h","price_change_24h"]};function DM({tokenId:e}){const[t,n]=p.useState(null),[r,s]=p.useState(null),[o,i]=p.useState(null),[a,c]=p.useState(null),[u,d]=p.useState(!0),[f,m]=p.useState(null),h=p.useRef(),b=p.useRef(),v=p.useRef(null),y=wi(),x=async()=>{try{const[T,E,L]=await Promise.all([oe.from("token_marketcap").select(`
238            token_id, price_usd, price_sol, last_quote_at, market_cap_usd,
239            price_change_1m, price_change_5m, price_change_15m, price_change_30m,
240            price_change_1h, price_change_2h, price_change_3h, price_change_4h,
241            price_change_5h, price_change_6h, price_change_12h, price_change_24h
242          `).eq("token_id",e).maybeSingle(),oe.from("dash_ath").select("token_id, market_cap, datetime_iso, time_to_ath_seconds").eq("token_id",e).maybeSingle(),oe.from("dash_tokens").select("bags_address, created_at").eq("bags_address",e).maybeSingle()]);T.data&&(n(T.data),a===null&&T.data.market_cap_usd&&c(T.data.market_cap_usd)),E.data&&s(E.data),L.data&&i(L.data),m(new Date),d(!1)}catch(T){console.error("Error fetching token data:",T),d(!1)}},g=(T,E)=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{T&&((t==null?void 0:t.market_cap_usd)!==T.market_cap_usd&&c((t==null?void 0:t.market_cap_usd)||null),n(T)),E&&s(E),m(new Date)},150)};p.useEffect(()=>{x();const T=oe.channel(`live-${e}`).on("postgres_changes",{event:"UPDATE",schema:"public",table:"token_marketcap",filter:`token_id=eq.${e}`},E=>{E.new&&typeof E.new=="object"&&"token_id"in E.new&&g(E.new)}).on("postgres_changes",{event:"*",schema:"public",table:"dash_ath",filter:`token_id=eq.${e}`},E=>{E.new&&typeof E.new=="object"&&"token_id"in E.new&&g(void 0,E.new)}).subscribe();return v.current=T,h.current=setInterval(()=>{(f?Date.now()-f.getTime():1/0)>2e4&&x()},1e4),()=>{v.current&&oe.removeChannel(v.current),h.current&&clearInterval(h.current),b.current&&clearTimeout(b.current)}},[e]);const w=T=>{if(!T)return"—";const E=new Date,L=new Date(T),A=E.getTime()-L.getTime(),H=Math.floor(A/(1e3*60*60)),F=Math.floor(A%(1e3*60*60)/(1e3*60));return H>0?`${H}h ${F}m`:`${F}m`},_=T=>{if(!T)return"—";const E=Math.floor(T/3600),L=Math.floor(T%3600/60),A=T%60;return E>0?`${E}h ${L}m ${A}s`:L>0?`${L}m ${A}s`:`${A}s`},k=T=>{if(T==null)return"—";const E=Number(T);return isFinite(E)?`${E>0?"+":""}${E.toFixed(1)}%`:"—"},S=()=>!(t!=null&&t.market_cap_usd)||a===null?t!=null&&t.price_change_1m?t.price_change_1m>0?"up":t.price_change_1m<0?"down":"neutral":"neutral":t.market_cap_usd>a?"up":t.market_cap_usd<a?"down":"neutral",j=()=>
242{if(!(o!=null&&o.created_at))return 24*60*60;const T=new Date(o.created_at);return Math.floor((new Date().getTime()-T.getTime())/1e3)},P=S(),R=j(),O=IM(R);return u?l.jsxs("div",{className:"flex items-center justify-between gap-4 p-3 bg-background/50 rounded-lg border border-border/30",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Ue,{className:"h-6 w-20"}),l.jsx(Ue,{className:"h-4 w-16"})]}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(Ue,{className:"h-5 w-24"}),l.jsx(Ue,{className:"h-5 w-20"}),l.jsx(Ue,{className:"h-5 w-16"})]}),l.jsxs("div",{className:"grid grid-cols-4 gap-1",children:[l.jsx("div",{className:"flex gap-1",children:Array.from({length:4}).map((T,E)=>l.jsx(Ue,{className:"h-6 w-12"},`row1-${E}`))}),l.jsx("div",{className:"flex gap-1",children:Array.from({length:4}).map((T,E)=>l.jsx(Ue,{className:"h-6 w-12"},`row2-${E}`))})]})]}):l.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 p-3 bg-background/50 rounded-lg border border-border/30",children:[l.jsx("div",{className:"flex items-center gap-2",children:l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:`text-lg font-semibold ${P==="up"?"text-green-400":P==="down"?"text-red-400":"text-foreground"}`,children:t!=null&&t.market_cap_usd?Co(t.market_cap_usd):"—"}),P==="up"&&l.jsx(Fw,{className:"h-4 w-4 text-green-400","aria-label":"market cap rising"}),P==="down"&&l.jsx(Lw,{className:"h-4 w-4 text-red-400","aria-label":"market cap falling"})]})}),l.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"text-muted-foreground text-xs",children:"ATH Mcap"}),l.jsx("div",{className:"font-medium",children:r!=null&&r.market_cap?Co(r.market_cap):"—"})]}),l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"text-muted-foreground text-xs",children:"Since ATH"}),l.jsx("div",{className:"font-medium",children:w(r==null?void 0:r.datetime_iso)})]}),l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"text-muted-foreground text-xs",children:"Time to ATH"}),l.jsx("div",{className:"font-medium",children:_(r==null?void 0:r.time_to_ath_seconds)})]})]}),l.jsx("div",{className:y?"grid grid-cols-3 gap-2 mt-2":"flex flex-col gap-1",children:y?_d.map(T=>{const E=t==null?void 0:t[T.key],L=E&&E>0,A=E&&E<0;return l.jsxs("div",{className:`px-2 py-1 rounded text-xs font-medium border ${L?"border-green-500/30 bg-green-500/10 text-green-400":A?"border-red-500/30 bg-red-500/10 text-red-400":"border-border bg-muted/20 text-muted-foreground"}`,title:`Change over last ${T.label}`,children:[l.jsx("span",{className:"text-xs text-accent font-mono",children:T.label}),l.jsx("div",{className:"text-primary font-mono",children:k(E)})]},T.key)}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"flex gap-1",children:_d.filter(T=>T.row===1).map(T=>{if(!O.includes(T.key))return null;const E=t==null?void 0:t[T.key],L=E&&E>0,A=E&&E<0;return l.jsxs("div",{className:`px-2 py-1 rounded text-xs font-medium ${L?"bg-green-500/20 text-green-400":A?"bg-red-500/20 text-red-400":"bg-muted/50 text-muted-foreground"}`,title:`Change over last ${T.label}`,children:[l.jsx("span",{className:"text-xs text-muted-foreground",children:T.label}),l.jsx("span",{className:"ml-1",children:k(E)})]},T.key)})}),l.jsx("div",{className:"flex gap-1",children:_d.filter(T=>T.row===2).map(T=>{if(!O.includes(T.key))return null;const E=t==null?void 0:t[T.key],L=E&&E>0,A=E&&E<0;return l.jsxs("div",{className:`px-2 py-1 rounded text-xs font-medium ${L?"bg-green-500/20 text-green-400":A?"bg-red-500/20 text-red-400":"bg-muted/50 text-muted-foreground"}`,title:`Change over last ${T.label}`,children:[l.jsx("span",{className:"text-xs text-muted-foreground",children:T.label}),l.jsx("span",{className:"ml-1",children:k(E)})]},T.key)})})]})})]})}function sy({label:e,count:t,className:n}){return t==null?l.jsx("div",{className:G("h-6 inline-flex items-center rounded-full border border-primary/40 bg-primary/10 animate-pulse","px-3 text-xs font-semibold text-transparent select-none",n
vendor: 4,936 bytes, line 242
242),"aria-busy":"true","aria-live":"polite",children:"•••"}):l.jsxs(M_,{variant:"outline",className:G("border-primary text-primary bg-primary/10 hover:bg-primary/20 transition-colors","shadow-sm",n),children:[e,": ",t.toLocaleString()]})}const bh=ru("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-75 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 hover:shadow-glow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent/10 hover:text-accent hover:border-accent/50 hover:shadow-glow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent/10 hover:text-accent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded px-3 text-xs font-mono-ui",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),xe=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?nN:"button";return l.jsx(i,{className:G(bh({variant:t,size:n,className:e})),ref:o,...s})});xe.displayName="Button";var kd="focusScope.autoFocusOnMount",Sd="focusScope.autoFocusOnUnmount",oy={bubbles:!1,cancelable:!0},$M="FocusScope",xu=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,c]=p.useState(null),u=Ot(s),d=Ot(o),f=p.useRef(null),m=pe(t,v=>c(v)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let v=function(w){if(h.paused||!a)return;const _=w.target;a.contains(_)?f.current=_:pr(f.current,{select:!0})},y=function(w){if(h.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||pr(f.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&pr(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const g=new MutationObserver(x);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),g.disconnect()}}},[r,a,h.paused]),p.useEffect(()=>{if(a){ay.add(h);const v=document.activeElement;if(!a.contains(v)){const x=new CustomEvent(kd,oy);a.addEventListener(kd,u),a.dispatchEvent(x),x.defaultPrevented||(LM(UM(I_(a)),{select:!0}),document.activeElement===v&&pr(a))}return()=>{a.removeEventListener(kd,u),setTimeout(()=>{const x=new CustomEvent(Sd,oy);a.addEventListener(Sd,d),a.dispatchEvent(x),x.defaultPrevented||pr(v??document.body,{select:!0}),a.removeEventListener(Sd,d),ay.remove(h)},0)}}},[a,u,d,h]);const b=p.useCallback(v=>{if(!n&&!r||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(y&&x){const g=v.currentTarget,[w,_]=FM(g);w&&_?!v.shiftKey&&x===_?(v.preventDefault(),n&&pr(w,{select:!0})):v.shiftKey&&x===w&&(v.preventDefault(),n&&pr(_,{select:!0})):x===g&&v.preventDefault()}},[n,r,h.paused]);return l.jsx(Y.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});xu.displayName=$M;function LM(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pr(r,{select:t}),document.activeElement!==n)return}function FM(e){const t=I_(e),n=iy(t,e),r=iy(t.reverse(),e);return[n,r]}function I_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function iy(e,t){for(const n of e)if(!zM(n,{upTo:t}))return n}function zM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function BM(e){return e instanceof HTMLInputElement&&"select"in e}function pr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&BM(e)&&t&&e.select()}}var ay=WM();function WM(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ly(e,t),e.unshift(t)},remove(t){var n;e=ly(e,t),(n=e[0])==null||n.resume()}}}function ly(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function UM(e){return e.filter(t=>t.tagName!=="A")}var Cd=0;function lm(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cy()),document.body.insertAdjacentElement("beforeend",e[1]??cy()),Cd++,()=>{Cd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>
vendor: 4,310 bytes, line 242
242t.remove()),Cd--}},[])}function cy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var kn=function(){return kn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},kn.apply(this,arguments)};function D_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function HM(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Yl="right-scroll-bar-position",Ql="width-before-scroll-bar",VM="with-scroll-bars-hidden",qM="--removed-body-scroll-bar-size";function jd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KM(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var GM=typeof window<"u"?p.useLayoutEffect:p.useEffect,uy=new WeakMap;function YM(e,t){var n=KM(null,function(r){return e.forEach(function(s){return jd(s,r)})});return GM(function(){var r=uy.get(n);if(r){var s=new Set(r),o=new Set(e),i=n.current;s.forEach(function(a){o.has(a)||jd(a,null)}),o.forEach(function(a){s.has(a)||jd(a,i)})}uy.set(n,e)},[e]),n}function QM(e){return e}function JM(e,t){t===void 0&&(t=QM);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(o),i=n}var c=function(){var d=i;i=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return s}function XM(e){e===void 0&&(e={});var t=JM(null);return t.options=kn({async:!0,ssr:!1},e),t}var $_=function(e){var t=e.sideCar,n=D_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,kn({},n))};$_.isSideCarExport=!0;function ZM(e,t){return e.useMedium(t),$_}var L_=XM(),Nd=function(){},wu=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Nd,onWheelCapture:Nd,onTouchMoveCapture:Nd}),s=r[0],o=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,h=e.noRelative,b=e.noIsolation,v=e.inert,y=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,w=e.gapMode,_=D_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=m,S=YM([n,t]),j=kn(kn({},_),s);return p.createElement(p.Fragment,null,d&&p.createElement(k,{sideCar:L_,removeScrollBar:u,shards:f,noRelative:h,noIsolation:b,inert:v,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:w}),i?p.cloneElement(p.Children.only(a),kn(kn({},j),{ref:S})):p.createElement(g,kn({},j,{className:c,ref:S}),a))});wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wu.classNames={fullWidth:Ql,zeroRight:Yl};var eI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eI();return t&&e.setAttribute("nonce",t),e}function nI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sI=function(){var e=0,t=null;
vendor: 4,547 bytes, lines 242-282
242return{add:function(n){e==0&&(t=tI())&&(nI(t,n),rI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oI=function(){var e=sI();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},F_=function(){var e=oI(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},iI={left:0,top:0,right:0,gap:0},Ed=function(e){return parseInt(e||"",10)||0},aI=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ed(n),Ed(r),Ed(s)]},lI=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iI;var t=aI(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},cI=F_(),Mo="data-scroll-locked",uI=function(e,t,n,r){var s=e.left,o=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
243  .`.concat(VM,` {
244   overflow: hidden `).concat(r,`;
245   padding-right: `).concat(a,"px ").concat(r,`;
246  }
247  body[`).concat(Mo,`] {
248    overflow: hidden `).concat(r,`;
249    overscroll-behavior: contain;
250    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
251    padding-left: `.concat(s,`px;
252    padding-top: `).concat(o,`px;
253    padding-right: `).concat(i,`px;
254    margin-left:0;
255    margin-top:0;
256    margin-right: `).concat(a,"px ").concat(r,`;
257    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
258  }
259  
260  .`).concat(Yl,` {
261    right: `).concat(a,"px ").concat(r,`;
262  }
263  
264  .`).concat(Ql,` {
265    margin-right: `).concat(a,"px ").concat(r,`;
266  }
267  
268  .`).concat(Yl," .").concat(Yl,` {
269    right: 0 `).concat(r,`;
270  }
271  
272  .`).concat(Ql," .").concat(Ql,` {
273    margin-right: 0 `).concat(r,`;
274  }
275  
276  body[`).concat(Mo,`] {
277    `).concat(qM,": ").concat(a,`px;
278  }
279`)},dy=function(){var e=parseInt(document.body.getAttribute(Mo)||"0",10);return isFinite(e)?e:0},dI=function(){p.useEffect(function(){return document.body.setAttribute(Mo,(dy()+1).toString()),function(){var e=dy()-1;e<=0?document.body.removeAttribute(Mo):document.body.setAttribute(Mo,e.toString())}},[])},fI=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;dI();var o=p.useMemo(function(){return lI(s)},[s]);return p.createElement(cI,{styles:uI(o,!t,s,n?"":"!important")})},_h=!1;if(typeof window<"u")try{var Pl=Object.defineProperty({},"passive",{get:function(){return _h=!0,!0}});window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{_h=!1}var so=_h?{passive:!1}:!1,hI=function(e){return e.tagName==="TEXTAREA"},z_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hI(e)&&n[t]==="visible")},pI=function(e){return z_(e,"overflowY")},mI=function(e){return z_(e,"overflowX")},fy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=B_(e,r);if(s){var o=W_(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gI=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vI=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},B_=function(e,t){return e==="v"?pI(t):mI(t)},W_=function(e,t){return e==="v"?gI(t):vI(t)},yI=function(e,t){return e==="h"&&t==="rtl"?-1:1},xI=function(e,t,n,r,s){var o=yI(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,c=t.contains(a),u=!1,d=i>0,f=0,m=0;do{if(!a)break;var h=W_(e,a),b=h[0],v=h[1],y=h[2],x=v-y-o*b;(b||x)&&B_(e,a)&&(f+=x,m+=b);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(m)<1||!s))&&(u=!0),u},Tl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hy=function(e){return[e.deltaX,e.deltaY]},py=function(e){return e&&"current"in e?e.current:e},wI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bI=function(e){return`
280  .block-interactivity-`.concat(e,` {pointer-events: none;}
281  .allow-interactivity-`).concat(e,` {pointer-events: all;}
282`)},_I=0,oo=[];function kI(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),s=p.useState(_I++)[0],o=p.useState(F_)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));
vendor: 4,283 bytes, line 282
282var v=HM([e.lockRef.current],(e.shards||[]).map(py),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var x=Tl(v),g=n.current,w="deltaX"in v?v.deltaX:g[0]-x[0],_="deltaY"in v?v.deltaY:g[1]-x[1],k,S=v.target,j=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in v&&j==="h"&&S.type==="range")return!1;var P=fy(j,S);if(!P)return!0;if(P?k=j:(k=j==="v"?"h":"v",P=fy(j,S)),!P)return!1;if(!r.current&&"changedTouches"in v&&(w||_)&&(r.current=k),!k)return!0;var R=r.current||k;return xI(R,y,v,R==="h"?w:_,!0)},[]),c=p.useCallback(function(v){var y=v;if(!(!oo.length||oo[oo.length-1]!==o)){var x="deltaY"in y?hy(y):Tl(y),g=t.current.filter(function(k){return k.name===y.type&&(k.target===y.target||y.target===k.shadowParent)&&wI(k.delta,x)})[0];if(g&&g.should){y.cancelable&&y.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(py).filter(Boolean).filter(function(k){return k.contains(y.target)}),_=w.length>0?a(y,w[0]):!i.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),u=p.useCallback(function(v,y,x,g){var w={name:v,delta:y,target:x,should:g,shadowParent:SI(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),d=p.useCallback(function(v){n.current=Tl(v),r.current=void 0},[]),f=p.useCallback(function(v){u(v.type,hy(v),v.target,a(v,e.lockRef.current))},[]),m=p.useCallback(function(v){u(v.type,Tl(v),v.target,a(v,e.lockRef.current))},[]);p.useEffect(function(){return oo.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,so),document.addEventListener("touchmove",c,so),document.addEventListener("touchstart",d,so),function(){oo=oo.filter(function(v){return v!==o}),document.removeEventListener("wheel",c,so),document.removeEventListener("touchmove",c,so),document.removeEventListener("touchstart",d,so)}},[]);var h=e.removeScrollBar,b=e.inert;return p.createElement(p.Fragment,null,b?p.createElement(o,{styles:bI(s)}):null,h?p.createElement(fI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function SI(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CI=ZM(L_,kI);var bu=p.forwardRef(function(e,t){return p.createElement(wu,kn({},e,{ref:t,sideCar:CI}))});bu.classNames=wu.classNames;var jI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},io=new WeakMap,Rl=new WeakMap,Ol={},Pd=0,U_=function(e){return e&&(e.host||U_(e.parentNode))},NI=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=U_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EI=function(e,t,n,r){var s=NI(t,Array.isArray(e)?e:[e]);Ol[n]||(Ol[n]=new WeakMap);var o=Ol[n],i=[],a=new Set,c=new Set(s),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};s.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(a.has(m))d(m);else try{var h=m.getAttribute(r),b=h!==null&&h!=="false",v=(io.get(m)||0)+1,y=(o.get(m)||0)+1;io.set(m,v),o.set(m,y),i.push(m),v===1&&b&&Rl.set(m,!0),y===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return d(t),a.clear(),Pd++,function(){i.forEach(function(f){var m=io.get(f)-1,h=o.get(f)-1;io.set(f,m),o.set(f,h),m||(Rl.has(f)||f.removeAttribute(r),Rl.delete(f)),h||f.removeAttribute(n)}),Pd--,Pd||(io=new WeakMap,io=new WeakMap,Rl=new WeakMap,Ol={})}},cm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=jI(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),EI(r,s,n,"aria-hidden")):function(){return null}},_u="Dialog",[H_,_3]=pn(_u),[PI,mn]=H_(_u),V_=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}
vendor: 5,859 bytes, lines 282-286
282=e,a=p.useRef(null),c=p.useRef(null),[u,d]=Jn({prop:r,defaultProp:s??!1,onChange:o,caller:_u});return l.jsx(PI,{scope:t,triggerRef:a,contentRef:c,contentId:En(),titleId:En(),descriptionId:En(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};V_.displayName=_u;var q_="DialogTrigger",K_=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=mn(q_,n),o=pe(t,s.triggerRef);return l.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":fm(s.open),...r,ref:o,onClick:V(e.onClick,s.onOpenToggle)})});K_.displayName=q_;var um="DialogPortal",[TI,G_]=H_(um,{forceMount:void 0}),Y_=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=mn(um,t);return l.jsx(TI,{scope:t,forceMount:n,children:p.Children.map(r,i=>l.jsx(On,{present:n||o.open,children:l.jsx(Ba,{asChild:!0,container:s,children:i})}))})};Y_.displayName=um;var Ac="DialogOverlay",Q_=p.forwardRef((e,t)=>{const n=G_(Ac,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=mn(Ac,e.__scopeDialog);return o.modal?l.jsx(On,{present:r||o.open,children:l.jsx(OI,{...s,ref:t})}):null});Q_.displayName=Ac;var RI=Os("DialogOverlay.RemoveScroll"),OI=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=mn(Ac,n);return l.jsx(bu,{as:RI,allowPinchZoom:!0,shards:[s.contentRef],children:l.jsx(Y.div,{"data-state":fm(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ls="DialogContent",J_=p.forwardRef((e,t)=>{const n=G_(Ls,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=mn(Ls,e.__scopeDialog);return l.jsx(On,{present:r||o.open,children:o.modal?l.jsx(AI,{...s,ref:t}):l.jsx(MI,{...s,ref:t})})});J_.displayName=Ls;var AI=p.forwardRef((e,t)=>{const n=mn(Ls,e.__scopeDialog),r=p.useRef(null),s=pe(t,n.contentRef,r);return p.useEffect(()=>{const o=r.current;if(o)return cm(o)},[]),l.jsx(X_,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:V(e.onFocusOutside,o=>o.preventDefault())})}),MI=p.forwardRef((e,t)=>{const n=mn(Ls,e.__scopeDialog),r=p.useRef(!1),s=p.useRef(!1);return l.jsx(X_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),X_=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=mn(Ls,n),c=p.useRef(null),u=pe(t,c);return lm(),l.jsxs(l.Fragment,{children:[l.jsx(xu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:l.jsx(di,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":fm(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(II,{titleId:a.titleId}),l.jsx($I,{contentRef:c,descriptionId:a.descriptionId})]})]})}),dm="DialogTitle",Z_=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=mn(dm,n);return l.jsx(Y.h2,{id:s.titleId,...r,ref:t})});Z_.displayName=dm;var e1="DialogDescription",t1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=mn(e1,n);return l.jsx(Y.p,{id:s.descriptionId,...r,ref:t})});t1.displayName=e1;var n1="DialogClose",r1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=mn(n1,n);return l.jsx(Y.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>s.onOpenChange(!1))})});r1.displayName=n1;function fm(e){return e?"open":"closed"}var s1="DialogTitleWarning",[k3,o1]=eN(s1,{contentName:Ls,titleName:dm,docsSlug:"dialog"}),II=({titleId:e})=>{const t=o1(s1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
283
284If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
285
286For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},DI="DialogDescriptionWarning",$I=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${o1(DI).contentName}}.`;return p.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},LI=V_,FI=K_,zI=Y_,i1=Q_,a1=J_,l1=Z_,c1=t1,BI=r1;const WI=LI,UI=FI,HI=zI,u1=p.forwardRef(({className:e,...t},n)=>l.jsx(i1,{ref:n,className:G("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));u1.displayName=i1.displayName;const d1=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(HI,{children:[l.jsx(u1,{}),l.jsxs(a1,{ref:r,className:G("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
286nded-lg",e),...n,children:[t,l.jsxs(BI,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[l.jsx(zw,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));d1.displayName=a1.displayName;const VI=p.forwardRef(({className:e,...t},n)=>l.jsx(l1,{ref:n,className:G("text-lg font-semibold leading-none tracking-tight",e),...t}));VI.displayName=l1.displayName;const qI=p.forwardRef(({className:e,...t},n)=>l.jsx(c1,{ref:n,className:G("text-sm text-muted-foreground",e),...t}));qI.displayName=c1.displayName;function KI(e){return Mn({queryKey:["token_meta",e],enabled:!!e,queryFn:async()=>{const t=oe,{data:n,error:r}=await t.from("dash_token_meta").select("*").eq("token_id",e).maybeSingle();if(r)throw r;return n},staleTime:45e3})}function GI(e){return Mn({queryKey:["token_market_data",e],enabled:!!e,queryFn:async()=>{const t=oe,{data:n,error:r}=await t.from("token_marketcap").select("token_id, market_cap_usd, last_quote_at, price_change_1m, price_change_5m, price_change_15m, price_change_1h, price_change_4h, price_change_24h").eq("token_id",e).maybeSingle();if(r)throw r;return n},staleTime:3e4})}function YI(e){return Mn({queryKey:["token_ath",e],enabled:!!e,queryFn:async()=>{const t=oe,{data:n,error:r}=await t.from("dash_ath").select("token_id, market_cap, datetime_iso, time_to_ath_seconds").eq("token_id",e).maybeSingle();if(r)throw r;return n},staleTime:6e4})}const Mc=({bagsAddress:e,tokenSymbol:t,gmgnRef:n="KUTSxYbw",className:r})=>{if(!(e!=null&&e.trim()))return null;const s=encodeURIComponent(e),o=(t==null?void 0:t.replace(/^\$/,""))||"",i=`https://trade.padre.gg/trade/solana/${s}?rk=fomomofo`,a=`https://axiom.trade/t/${s}/@fomomofo`,c=`https://gmgn.ai/sol/token/${encodeURIComponent(n)}_${s}`;return l.jsxs("div",{className:r,children:[l.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[l.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center h-8 px-2 border border-border rounded hover:shadow-glow hover:border-accent/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent transition-smooth","aria-label":`Open ${o?`$${o}`:"token"} on Padre`,title:`Open ${o?`$${o}`:"token"} on Padre`,children:l.jsx("img",{src:"/images/padre-logo.svg",alt:"Padre",className:"h-5 w-auto"})}),l.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center h-8 px-2 border border-border rounded hover:shadow-glow hover:border-accent/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent transition-smooth","aria-label":`Open ${o?`$${o}`:"token"} on Axiom`,title:`Open ${o?`$${o}`:"token"} on Axiom Pro`,children:l.jsx("img",{src:"/images/axiom-logo.svg",alt:"Axiom Pro",className:"h-5 w-auto"})}),l.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center h-8 px-2 border border-border rounded hover:shadow-glow hover:border-accent/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent transition-smooth","aria-label":`Open ${o?`$${o}`:"token"} on GMGN`,title:`Open ${o?`$${o}`:"token"} on GMGN`,children:l.jsx("img",{src:"/images/gmgn-logo.svg",alt:"GMGN",className:"h-5 w-auto"})})]}),l.jsxs("div",{className:"flex md:hidden items-center gap-2",children:[l.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"px-2 py-1 text-xs font-mono text-accent border border-accent/30 rounded hover:bg-accent/10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent transition-colors","aria-label":`Open ${o?`$${o}`:"token"} on Padre`,children:"PADRE"}),l.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"px-2 py-1 text-xs font-mono text-accent border border-accent/30 rounded hover:bg-accent/10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent transition-colors","aria-label":`Open ${o?`$${o}`:"token"} on Axiom`,children:"AXIOM PRO"}),l.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"px-2 py-1 text-xs font-mono text-accent border border-accent/30 rounded hover:bg-accent/10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent transition-colors","aria-label":`Open ${o?`$${o}`:"token"} on GMGN`,children:"GMGN"})]})]})};function Io(e){return e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(1)}M`:e>=1e3?`$${(e/1e3).toFixed(1)}k`:`$${e.toFixed(0)}`}function bn(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString()}function kh(e,t){const n="$";return e>=1?`${n}${e.toFixed(2)}`:e>=.001?`${n}${e.toFixed(3)}`:`${n}${e.toFixed(6)}`}function hm(e){return e==null?"—":`${e>0?"+":""}${e.toFixed(1)}%`}function QI(e){if(!e)return"—";const t=Math.floor(e/60),n=Math.floor(t/60),r=Math.floor(n/24);return r>0?`${r}d`:n>0?`${n}h`:t>0?`${t}m`:`${e}s`}function Td({text:e,label:t}){const[n,r]=p.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(e),r(!0),If({description:`${t} copied to clipboard`}),setTimeout(()=>r(!1),2e3)}catch{If({variant:"destructive",description:"Failed to copy"})}};return l.jsx("button",{onClick:s,className:"inline-flex items-center gap-1 text-primary hover:text-primary/80 transition-colors focus-ring-matrix","aria-label":`Copy ${t}`,children:n?l.jsx(Mp,{className:"w-3 h-3"}):l.jsx(_a,{className:"w-3 h-3"})})}function ao({value:e}){if(e==null)return l.jsx("span",{className:"text-muted-foreground",children:"—"});const t=e>0,n=e<0,r=t?"text-success":n?"text-destructive":"text-muted-foreground";return l.jsx("span",{className:`font-mono text-xs ${r}`,children:hm(e)})}function f1({token:e,children:t}){var m,h,b,v;const n=KI(e.bags_address),r=GI(e.bags_address),s=YI(e.bags_address),o=n.data,i=r.data,a=s.data,c=((m=o==null?void 0:o.st_raw)==null?void 0:m.risk)||{};(h=o==null?void 0:o.st_raw)!=null&&h.security;const u=c.snipers||{},d=c.insiders||{},f=b_(o==null?void 0:o.image_url);return l.jsxs(WI,{children:[l.jsx(UI,{asChild:!0,children:t}),l.jsxs(d1,{className:"max-w-2xl bg-card text-card-foreground border-border",children:[l.jsxs("div",{className:"flex items-center justify-between mb-6",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-8 h-8 rounded border border-border overflow-hidden bg-muted flex-shrink-0",children:f?l.jsx("img",{src:f,alt:"Token",className:"w-full h-full object-cover"}):l.jsx(Rr,{size:32})}),l.jsx("div",{children:l.jsx("h2",{className:"text-lg font-semibold",children:e.token_symbol?`$${e.token_symbol}`:"Token"})})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[e.first_tweet_url&&l.jsx("a",{href:e.first_tweet_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary/80 underline text-sm focus-ring-matrix",children:"View Claim Tweet"}),l.jsx(Mc,{bagsAddress:e.bags_address,tokenSymbol:e.token_symbol,className:"justify-end"})]})]}),l.jsx("div",{className:"mb-6",children:l.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[l.jsx("span",{className:"text-muted-foreground font-mono text-xs uppercase tracking-wide",children:"Contract"}),l.jsx("code",{className:"font-mono text-xs break-all bg-muted/20 px-2 py-1 rounded border flex-1",children:e.bags_address}),l.jsx(Td,{text:e.bags_address,label:"Contract address"})]})}),l.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground",children:"Mcap"}),l.jsx("div",{className:"font-mono text-sm text-foreground",children:i!=null&&i.market_cap_usd?Io(i.market_cap_usd):"—"})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground",children:"Holders"}),l.jsx("div",{className:"font-mono text-sm text-foreground",children:o!=null&&o.holders?bn(o.holders):"—"})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground",children:"Tx Total"}),l.jsx("div",{className:"font-mono text-sm text-foreground",children:o!=null&&o.tx_total?bn(o.tx_total):"—"})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground",children:"Vol Total"}),l.jsx("div",{className:"font-mono text-sm text-foreground",children:o!=null&&o.volume_total?Io(o.volume_total):"—"})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground",children:"ATH Mcap"}),l.jsx("div",{className:"font-mono text-sm text-foreground",children:a!=null&&a.market_cap?Io(a.market_cap):"—"})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground",children:"Time to ATH"}),l.jsx("div",{className:"font-mono text-sm text-foreground",children:QI(a==null?void 0:a.time_to_ath_seconds)})]})]}),l.jsxs("div",{className:"mb-6",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground mb-3",children:"Price Changes"}),l.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"text-xs text-muted-foreground",children:"1m"}),l.jsx(ao,{value:i==null?void 0:i.price_change_1m})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"text-xs text-muted-foreground",children:"5m"}),l.jsx(ao,{value:i==null?void 0:i.price_change_5m})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"text-xs text-muted-foreground",children:"15m"}),l.jsx(ao,{value:i==null?void 0:i.price_change_15m})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"text-xs text-muted-foreground",children:"1h"}),l.jsx(ao,{value:i==null?void 0:i.price_change_1h})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"text-xs text-muted-foreground",children:"4h"}),l.jsx(ao,{value:i==null?void 0:i.price_change_4h})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("div",{className:"text-xs text-muted-foreground",children:"24h"}),l.jsx(ao,{value:i==null?void 0:i.price_change_24h})]})]})]}),l.jsxs("div",{className:"mb-6",children:[l.jsx("div",{className:"label-mono-sm text-muted-foreground mb-3",children:"Risk"}),l.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[l.jsxs("div",{className:"flex justify-between",children:[l.jsx("span",{className:"text-muted-foreground",children:"Top 10"}),l.jsx("span",{className:"font-mono",children:o!=null&&o.risk_top10?`${o.risk_top10}
286%`:"—"})]}),l.jsxs("div",{className:"flex justify-between",children:[l.jsx("span",{className:"text-muted-foreground",children:"Jupiter Verified"}),l.jsx("span",{className:"font-mono",children:o!=null&&o.risk_jupiter_verified?"Yes":"No"})]})]}),(u.count>0||d.count>0)&&l.jsxs("div",{className:"mt-4 space-y-3",children:[u.count>0&&l.jsxs("div",{children:[l.jsxs("div",{className:"text-xs text-muted-foreground mb-1",children:["Snipers: ",u.count," (",u.totalPercentage,"%)"]}),l.jsx("div",{className:"flex gap-2",children:(b=u.wallets)==null?void 0:b.slice(0,3).filter(y=>{const x=typeof y=="string"?y:(y==null?void 0:y.address)||(y==null?void 0:y.wallet)||String(y);return x&&x!=="0"&&typeof x=="string"&&x.length>10}).map((y,x)=>{const g=typeof y=="string"?y:(y==null?void 0:y.address)||(y==null?void 0:y.wallet)||String(y);return l.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[l.jsxs("code",{className:"bg-muted/20 px-1 py-0.5 rounded",children:[g.slice(0,6),"...",g.slice(-4)]}),l.jsx(Td,{text:g,label:"Wallet address"})]},x)})})]}),d.count>0&&l.jsxs("div",{children:[l.jsxs("div",{className:"text-xs text-muted-foreground mb-1",children:["Insiders: ",d.count," (",d.totalPercentage,"%)"]}),l.jsx("div",{className:"flex gap-2",children:(v=d.wallets)==null?void 0:v.slice(0,3).filter(y=>{const x=typeof y=="string"?y:(y==null?void 0:y.address)||(y==null?void 0:y.wallet)||String(y);return x&&x!=="0"&&typeof x=="string"&&x.length>10}).map((y,x)=>{const g=typeof y=="string"?y:(y==null?void 0:y.address)||(y==null?void 0:y.wallet)||String(y);return l.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[l.jsxs("code",{className:"bg-muted/20 px-1 py-0.5 rounded",children:[g.slice(0,6),"...",g.slice(-4)]}),l.jsx(Td,{text:g,label:"Wallet address"})]},x)})})]})]})]})]})]})}function Sh(e){if(!e)return"";const t=new Date,n=new Date(e),r=Math.max(0,t.getTime()-n.getTime()),s=Math.floor(r/1e3);if(s<60)return`${s}s ago`;const o=Math.floor(s/60);if(o<60)return`${o}m ago`;const i=Math.floor(o/60);if(i<24)return`${i}h ago`;const a=Math.floor(i/24);return a<7?`${a}d ago`:`${Math.floor(a/7)}w ago`}const as=new Map,Ch=new Set;function my(){Ch.forEach(e=>e())}function JI(e,t=4){let n=0,r=0;return new Promise((s,o)=>{const i=()=>{if(n>=e.length&&r===0)return s();for(;r<t&&n<e.length;){const a=e[n++];r++,a().catch(o).finally(()=>{r--,i()})}};i()})}function XI(){const[,e]=p.useState(0);p.useEffect(()=>{const r=()=>e(s=>s+1);return Ch.add(r),()=>{Ch.delete(r)}},[]);function t(r){if(!r)return{created:null,received:null};const s=as.get(r);return{created:typeof(s==null?void 0:s.created)=="number"?s.created:null,received:typeof(s==null?void 0:s.received)=="number"?s.received:null}}async function n(r,s){const o=Array.from(new Set(r.filter(Boolean))),i=Array.from(new Set(s.filter(Boolean))),a=[];for(const d of o){const f=as.get(d);(f==null?void 0:f.created)==null&&a.push(async()=>{const{count:m,error:h}=await oe.from("dash_tokens").select("*",{count:"exact",head:!0}).eq("created_by_handle",d);h||(as.set(d,{...as.get(d)??{},created:m??0}),my())})}const c=[];for(const d of i){const f=as.get(d);(f==null?void 0:f.received)==null&&c.push(async()=>{const{count:m,error:h}=await oe.from("dash_tokens").select("*",{count:"exact",head:!0}).eq("royalties_receiver_handle",d);h||(as.set(d,{...as.get(d)??{},received:m??0}),my())})}const u=[...a,...c];u.length!==0&&await JI(u,4)}return{getCounts:t,fetchCountsForHandles:n}}function h1(e,t=6,n=6){return e.length<=t+n?e:`${e.slice(0,t)}...${e.slice(-n)}`}function cr(e){return e==null?"":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":String(e)}function Ic(e){if(e)return e.replace(/^@+/,"")}function gy(e,t){return{...t||{},...e||{}}}async function vy(e,t){const n=Ic(e),r=Ic((t==null?void 0:t.username)??void 0),s=[];if(t!=null&&t.twitterId&&s.push(`twitter_id.eq.${t.twitterId}`),n&&s.push(`handle.eq.${n}`),r&&s.push(`username.eq.${r}`),s.length===0)return null;const{data:o,error:i}=await oe.from("dash_users").select("name, username, handle, verified, is_blue_verified, verified_type, followers, following, statuses_count, media_count, created_at_twitter, location, url, description, can_dm, protected, profile_image_url, profile_banner_url, twitter_id").or(s.join(",")).maybeSingle();if(i)throw i;return o}function ZI({token:e}){const[t,n]=p.useState(!1);p.useState(!1);const[r,s]=p.useState(null),[o,i]=p.useState(null),[a,c]=p.useState(!1),[u,d]=p.useState(!1),f=wi(),{getCounts:m,fetchCountsForHandles:h}=XI(),b=e.creator_snapshot||{},v=e.receiver_snapshot||{},y=async()=>
286{if(e.created_by_handle){c(!0);try{const A=await vy(e.created_by_handle,{twitterId:(b==null?void 0:b.twitter_id)||(b==null?void 0:b.id),username:b==null?void 0:b.username});s(A)}catch(A){console.error("Failed to load creator:",A)}finally{c(!1)}}},x=async()=>{if(e.royalties_receiver_handle){d(!0);try{const A=await vy(e.royalties_receiver_handle,{twitterId:(v==null?void 0:v.twitter_id)||(v==null?void 0:v.id),username:v==null?void 0:v.username});i(A)}catch(A){console.error("Failed to load receiver:",A)}finally{d(!1)}}};p.useEffect(()=>{y(),x()},[e.created_by_handle,e.royalties_receiver_handle]);const g=p.useMemo(()=>gy(b,r),[b,r]),w=p.useMemo(()=>gy(v,o),[v,o]),_=Ic(e.created_by_handle)||void 0,k=Ic(e.royalties_receiver_handle)||void 0;p.useEffect(()=>{h(_?[_]:[],k?[k]:[])},[_,k,h]);const S=_?m(_):{created:null},j=k?m(k):{received:null},{toast:P}=ui(),R=async()=>{try{await navigator.clipboard.writeText(e.bags_address),n(!0),setTimeout(()=>n(!1),1200),P({title:"Contract copied",description:"Address saved to clipboard"})}catch{P({title:"Copy failed",description:"Please try again",variant:"destructive"})}};`${encodeURIComponent(e.bags_address)}`;const O=wh(g.username,e.created_by_handle),T=wh(w.username,e.royalties_receiver_handle),E=e.token_symbol;return l.jsxs(nt,{className:"bg-surface border border-border rounded-lg transition-smooth hover:shadow-glow focus-visible:ring-2 focus-visible:ring-primary px-[13px] py-0",children:[f?l.jsxs(l.Fragment,{children:[l.jsx(Mc,{bagsAddress:e.bags_address,tokenSymbol:E,className:"mb-3"}),l.jsxs("div",{className:"grid grid-cols-[auto,1fr,auto] items-center gap-2 mb-3 text-xs",children:[l.jsxs("div",{className:"flex items-center gap-1 min-w-0 justify-center",children:[l.jsx("span",{className:"font-mono uppercase text-accent whitespace-nowrap",children:"TOKEN CA"}),l.jsxs("button",{onClick:R,className:"font-mono text-muted-foreground hover:text-accent flex items-center gap-1 min-w-0",title:e.bags_address,children:[l.jsx("span",{className:"min-w-0",children:h1(e.bags_address,4,4)}),l.jsx(_a,{className:"w-3 h-3 opacity-70 hover:opacity-100 shrink-0"})]})]}),l.jsx("div",{className:"font-mono text-muted-foreground whitespace-nowrap text-right",children:e.first_tweet_created_at?Sh(e.first_tweet_created_at):"—"})]}),l.jsx("div",{className:"mb-4",children:l.jsx("button",{onClick:R,className:"font-mono text-xs text-muted-foreground hover:text-accent break-all w-full text-left bg-surface/50 p-2 rounded border border-border/50",title:"Click to copy full address",children:e.bags_address})}),l.jsx("div",{className:"flex justify-center mb-4",children:l.jsxs("div",{className:"w-16 h-16 rounded-md overflow-hidden border border-border bg-surface",children:[e.image_url?l.jsx("img",{src:e.image_url,alt:"token image",className:"w-full h-full object-cover object-center block",loading:"lazy",referrerPolicy:"no-referrer",decoding:"async",onError:A=>{var H;A.currentTarget.style.display="none",(H=A.currentTarget.nextElementSibling)==null||H.classList.remove("hidden")}}):null,l.jsx("div",{className:e.image_url?"hidden":"",children:l.jsx(Rr,{size:64})})]})})]}):l.jsx(l.Fragment,{children:l.jsxs("div",{className:"flex items-center gap-4 pb-3 border-b border-border",children:[l.jsxs("div",{className:"shrink-0 w-[60px] h-[60px] rounded-md overflow-hidden border border-border bg-surface",children:[e.image_url?l.jsx("img",{src:e.image_url,alt:"token image",className:"w-full h-full object-cover object-center block",loading:"lazy",referrerPolicy:"no-referrer",decoding:"async",onError:A=>{var H;A.currentTarget.style.display="none",(H=A.currentTarget.nextElementSibling)==null||H.classList.remove("hidden")}}):null,l.jsx("div",{className:e.image_url?"hidden":"",children:l.jsx(Rr,{size:60})})]}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[l.jsx("h3",{className:"font-sans text-base font-semibold text-primary truncate",title:E,children:E?`$${E}`:"Unknown"}),e.royalties_percent!==null&&l.jsxs(M_,{variant:"default",className:"h-7 px-3 text-xs font-mono uppercase font-medium bg-accent/15 text-accent border-accent/20",children:[e.royalties_percent,"% ROYALTIES"]})]}),null,l.jsx("div",{className:"flex items-start gap-2 text-xs",children:l.jsxs("button",{onClick:R,className:"text-muted-foreground hover:text-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent rounded flex items-start gap-2",title:e.bags_address,children:[l.jsx("span",{className:"font-mono truncate max-w-[200px] whitespace-nowrap",children:e.bags_address}),l.jsx(_a,{className:"w-3 h-3 opacity-70 hover:opacity-100 shrink-0 mt-0.5"})]})})]}),l.jsxs("div",{className:"shrink-0 flex flex-col items-end gap-1",children:[l.jsx(Mc,{bagsAddress:e.bags_address,tokenSymbol:E}),l.jsx("div",{className:"text-xs font-mono text-muted-foreground",children:e.first_tweet_created_at&&`• ${Sh(e.first_tweet_created_at)}`})]})]})}),e.bags_address&&l.jsx("div",{className:"py-3 border-b border-border",children:l.jsx(DM,{tokenId:e.bags_address})}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 pt-4",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-[10px] font-mono uppercase text-accent tracking-wide mb-2",children:"Creator"}),l.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsxs(Is,{className:"h-8 w-8",children:[l.jsx(Ds,{src:(r==null?void 0:r.profile_image_url)||b.profile_image_url}),l.jsx($s,{children:"C"})]}),l.jsx("div",{className:"min-w-0",children:O?l.jsxs("a",{href:O,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-mono uppercase tracking-wide text-muted-foreground hover:text-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent rounded",children:["@",e.created_by_handle]}):l.jsxs("div",{className:"text-xs font-mono uppercase tracking-wide text-muted-foreground",children:["@",e.created_by_handle??"?"]})})]}),_&&l.jsx(sy,{label:"Tokens created",count:S.created??null})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-1 text-[11px]",children:[g.followers!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Followers"}),l.jsx("div",{className:"font-mono text-primary",children:cr(g.followers)})]}),g.following!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Following"}),l.jsx("div",{className:"font-mono text-primary",children:cr(g.following)})]}),g.statuses_count!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Posts"}),l.jsx("div",{className:"font-mono text-primary",children:cr(g.statuses_count)})]}),g.media_count!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Media"}),l.jsx("div",{className:"font-mono text-primary",children:cr(g.media_count)})]}),g.created_at_twitter&&l.jsxs("div",{className:"col-span-2",children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Member for"}),l.jsxs("div",{className:"font-mono text-primary",children:[Math.max(0,Math.floor((Date.now()-new Date(g.created_at_twitter).getTime())/(365*24*60*60*1e3))),"y"]})]}),g.can_dm!=null&&l.jsxs("div",{className:"col-span-2",children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Can DM"}),l.jsx("div",{className:"font-mono text-primary",children:g.can_dm?"Yes":"No"})]})]}),g.description&&l.jsx("p",{className:"mt-2 text-xs font-sans text-muted-foreground line-clamp-2",children:g.description})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[10px] font-mono uppercase text-accent tracking-wide mb-2",children:"Royalties Receiver"}),l.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsxs(Is,{className:"h-8 w-8",children:[l.jsx(Ds,{src:(o==null?void 0:o.profile_image_url)||v.profile_image_url}),l.jsx($s,{children:"R"})]}),l.jsx("div",{className:"min-w-0",children:T?l.jsxs("a",{href:T,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-mono uppercase tracking-wide text-muted-foreground hover:text-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent rounded",children:["@",e.royalties_receiver_handle]}):l.jsxs("div",{className:"text-xs font-mono uppercase tracking-wide text-muted-foreground",children:["@",e.royalties_receiver_handle??"?"]})})]}),k&&l.jsx(sy,{label:"Tokens received",count:j.received??null})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-1 text-[11px]",children:[w.followers!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Followers"}),l.jsx("div",{className:"font-mono text-primary",children:cr(w.followers)})]}),w.following!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Following"}),l.jsx("div",{className:"font-mono text-primary",children:cr(w.following)})]}),w.statuses_count!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Posts"}),l.jsx("div",{className:"font-mono text-primary",children:cr(w.statuses_count)})]}),w.media_count!=null&&l.jsxs("div",{children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Media"}),l.jsx("div",{className:"font-mono text-primary",children:cr(w.media_count)})]}),w.created_at_twitter&&l.jsxs("div",{className:"col-span-2",children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Member for"}),l.jsxs("div",{className:"font-mono text-primary",children:[Math.max(0,Math.floor((Date.now()-new Date(w.created_at_twitter).getTime())/(365*24*60*60*1e3))),"y"]})]}),w.can_dm!=null&&l.jsxs("div",{className:"col-span-2",children:[l.jsx("div",{className:"font-mono uppercase text-accent text-[10px]",children:"Can DM"}
286),l.jsx("div",{className:"font-mono text-primary",children:w.can_dm?"Yes":"No"})]})]}),w.description&&l.jsx("p",{className:"mt-2 text-xs font-sans text-muted-foreground line-clamp-2",children:w.description})]})]}),l.jsx("div",{className:"flex items-center justify-between pt-3 border-t border-border mt-4"})]})}const ur=new Map,jh=new Set;function Rd(){jh.forEach(e=>e())}function eD(e,t=4){let n=0,r=0;return new Promise((s,o)=>{const i=()=>{if(n>=e.length&&r===0)return s();for(;r<t&&n<e.length;){const a=e[n++];r++,a().catch(o).finally(()=>{r--,i()})}};i()})}function tD(){const[,e]=p.useState(0);p.useEffect(()=>{const r=()=>e(s=>s+1);return jh.add(r),()=>{jh.delete(r)}},[]);function t(r){if(!r)return{tokensReceived:null,tokensCreated:null,totalClaims:null};const s=ur.get(r);return{tokensReceived:typeof(s==null?void 0:s.tokensReceived)=="number"?s.tokensReceived:null,tokensCreated:typeof(s==null?void 0:s.tokensCreated)=="number"?s.tokensCreated:null,totalClaims:typeof(s==null?void 0:s.totalClaims)=="number"?s.totalClaims:null}}async function n(r){const s=Array.from(new Set(r.filter(Boolean))),o=[];for(const i of s){const a=ur.get(i);(a==null?void 0:a.tokensReceived)==null&&o.push(async()=>{const{count:c,error:u}=await oe.from("dash_tokens").select("*",{count:"exact",head:!0}).eq("royalties_receiver_handle",i);u||(ur.set(i,{...ur.get(i)??{},tokensReceived:c??0}),Rd())}),(a==null?void 0:a.tokensCreated)==null&&o.push(async()=>{const{count:c,error:u}=await oe.from("dash_tokens").select("*",{count:"exact",head:!0}).eq("created_by_handle",i);u||(ur.set(i,{...ur.get(i)??{},tokensCreated:c??0}),Rd())}),(a==null?void 0:a.totalClaims)==null&&o.push(async()=>{const{count:c,error:u}=await oe.from("dash_claims").select("*",{count:"exact",head:!0}).eq("claimer_handle",i);u||(ur.set(i,{...ur.get(i)??{},totalClaims:c??0}),Rd())})}o.length!==0&&await eD(o,4)}return{getCounts:t,fetchCountsForHandles:n}}function nD(){return Mn({queryKey:["sol_price"],queryFn:async()=>{const{data:e,error:t}=await oe.from("fx_prices").select("price_usd").eq("asset","SOL").maybeSingle();if(t)throw t;return(e==null?void 0:e.price_usd)||0},staleTime:3e4,gcTime:5*6e4})}function rD(e){const t=e.map(r=>r.claimer_handle).filter(Boolean),n=Array.from(new Set(t));return Mn({queryKey:["enhanced_claim_data",n.sort().join(",")],queryFn:async()=>{if(n.length===0)return new Map;const{data:r,error:s}=await oe.from("dash_users").select("*").in("handle",n);if(s)throw s;const o=new Map;return(r||[]).forEach(i=>{o.set(i.handle,i)}),o},staleTime:6e4,gcTime:5*6e4,enabled:n.length>0})}function sD(e,t){const n=e.claimer_snapshot||{};return{handle:e.claimer_handle||"",twitter_id:(t==null?void 0:t.twitter_id)||(n==null?void 0:n.twitter_id)||(n==null?void 0:n.id),username:(t==null?void 0:t.username)||(n==null?void 0:n.username),name:(t==null?void 0:t.name)||(n==null?void 0:n.name),profile_image_url:(t==null?void 0:t.profile_image_url)||(n==null?void 0:n.profile_image_url),verified:(t==null?void 0:t.verified)??(n==null?void 0:n.verified)??!1,is_blue_verified:(t==null?void 0:t.is_blue_verified)??(n==null?void 0:n.is_blue_verified)??!1,protected:(t==null?void 0:t.protected)??(n==null?void 0:n.protected)??!1,can_dm:(t==null?void 0:t.can_dm)??(n==null?void 0:n.can_dm)??!1,followers:e.followers??(t==null?void 0:t.followers)??(n==null?void 0:n.followers),following:(t==null?void 0:t.following)??(n==null?void 0:n.following),statuses_count:(t==null?void 0:t.statuses_count)??(n==null?void 0:n.statuses_count),media_count:(t==null?void 0:t.media_count)??(n==null?void 0:n.media_count),created_at_twitter:(t==null?void 0:t.created_at_twitter)??(n==null?void 0:n.created_at),description:(t==null?void 0:t.description)??(n==null?void 0:n.description),location:(t==null?void 0:t.location)??(n==null?void 0:n.location),url:(t==null?void 0:t.url)??(n==null?void 0:n.url),verified_type:(t==null?void 0:t.verified_type)??(n==null?void 0:n.verified_type)}}function oD({claim:e}){const{getCounts:t,fetchCountsForHandles:n}=tD(),{data:r=0}=nD(),{data:s}=rD([e]),o=wi(),i=e.claimer_handle,a=i?s==null?void 0:s.get(i):void 0,c=sD(e,a);t(i),p.useEffect(()=>{i&&n([i])},[i,n]);const u=e.lifetime_fees?parseFloat(e.lifetime_fees):0,d=RM(u),f=d*r,m=wh(c.username,c.handle),{toast:h}=ui(),b=g=>g==null||!isFinite(g)?"—":`${g>0?"+":""}${g.toFixed(1)}%`,v=g=>g==null||!isFinite(g)||g===0?"text-primary":g>0?"text-green-400":"text-red-400",y=async()=>
286{if(e.bags_address)try{await navigator.clipboard.writeText(e.bags_address),h({description:"Address copied"})}catch(g){console.error("Failed to copy:",g)}},x=c.name?c.name.split(" ").map(g=>g[0]).join("").toUpperCase().slice(0,2):c.handle.slice(0,2).toUpperCase();return l.jsx(nt,{className:"bg-surface border-hairline px-4 py-3 transition-smooth hover:shadow-glow",children:l.jsxs("div",{className:"space-y-2 text-left",children:[l.jsxs("div",{className:"flex justify-between items-start gap-3",children:[l.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 min-w-0 flex-1",children:[l.jsxs(Is,{className:`flex-shrink-0 ${o?"h-7 w-7":"h-9 w-9"}`,children:[l.jsx(Ds,{src:c.profile_image_url,alt:`${c.handle} avatar`}),l.jsx($s,{className:"bg-primary/12 text-primary font-mono text-sm",children:x})]}),l.jsx("h3",{className:`font-sans font-semibold text-primary whitespace-normal break-words ${o?"text-[14px]":"text-[16px]"}`,children:c.name||c.handle}),m?l.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs md:text-sm text-lime-400 hover:underline",children:["@",c.handle]}):l.jsxs("span",{className:"font-mono text-xs md:text-sm text-lime-400",children:["@",c.handle]}),l.jsxs("span",{className:"font-mono text-xs text-lime-400",children:["• ",Sh(e.tweet_created_at)]}),e.tweet_url&&l.jsx("a",{href:e.tweet_url,target:"_blank",rel:"noopener noreferrer",className:"text-lime-400 hover:underline text-xs",children:"View Claim Tweet"})]}),l.jsx(Mc,{bagsAddress:e.bags_address,tokenSymbol:e.token_symbol,className:"ml-auto"})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1 text-xs",children:[l.jsx("span",{className:"font-mono text-[10px] md:text-[11px] text-lime-400",children:"Followers"}),l.jsx("span",{className:"font-mono text-xs md:text-sm text-primary",children:Co(c.followers)}),l.jsx("span",{className:"text-hairline",children:"|"}),l.jsx("span",{className:"font-mono text-[10px] md:text-[11px] text-lime-400",children:"Following"}),l.jsx("span",{className:"font-mono text-xs md:text-sm text-primary",children:Co(c.following)}),l.jsx("span",{className:"text-hairline",children:"|"}),l.jsx("span",{className:"font-mono text-[10px] md:text-[11px] text-lime-400",children:"Posts"}),l.jsx("span",{className:"font-mono text-xs md:text-sm text-primary",children:Co(c.statuses_count)}),l.jsx("span",{className:"text-hairline",children:"|"}),l.jsx("span",{className:"font-mono text-[10px] md:text-[11px] text-lime-400",children:"Media"}),l.jsx("span",{className:"font-mono text-xs md:text-sm text-primary",children:Co(c.media_count)}),c.created_at_twitter&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-hairline",children:"|"}),l.jsxs("span",{className:"font-mono text-xs md:text-sm text-primary",children:["Member for ",MM(c.created_at_twitter)]})]})]}),l.jsx("div",{className:"text-xs md:text-sm",children:l.jsxs("span",{className:"font-mono text-primary",children:["Lifetime fees ",OM(d)," (",AM(f),")"]})}),c.location&&l.jsx("div",{className:"text-xs",children:l.jsx("span",{className:"text-primary",children:c.location})}),l.jsxs("div",{className:"pt-2 border-t border-hairline space-y-2",children:[l.jsx("div",{className:"flex items-start justify-between gap-3",children:l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[l.jsxs("div",{className:`flex-shrink-0 rounded-sm overflow-hidden border border-[#1a261a] bg-[#0f1411] ${o?"w-4 h-4":"w-6 h-6"}`,children:[e.image_url?l.jsx("img",{src:e.image_url,alt:"token image",className:"w-full h-full object-cover",loading:"lazy",onError:g=>{var w;g.currentTarget.style.display="none",(w=g.currentTarget.nextElementSibling)==null||w.classList.remove("hidden")}}):null,l.jsx("div",{className:e.image_url?"hidden":"",children:l.jsx(Rr,{size:o?16:24})})]}),l.jsxs("div",{className:"font-mono text-xs md:text-sm text-primary min-w-0 break-all",children:[l.jsxs("span",{children:["◊ $",e.token_symbol||"—"]}),l.jsx("span",{className:"text-hairline",children:" | "}),l.jsx("span",{className:"text-lime-400",children:"Holders"})," ",e.holders!=null?bn(e.holders):"—",l.jsx("span",{className:"text-hairline",children:" | "}),l.jsx("span",{className:"text-lime-400",children:"Tx Total"})," ",e.tx_total!=null?bn(e.tx_total):"—",l.jsx("span",{className:"text-hairline",children:" | "}),l.jsx("span",{className:"text-lime-400",children:"Vol Total"})," ",e.volume_total!=null?Io(e.volume_total):"—",l.jsx("span",{className:"text-hairline",children:" | "}),l.jsx("span",{className:"text-lime-400",children:"Mcap"})," ",e.market_cap_usd!=null?Io(e.market_cap_usd):"—"]})]}),e.bags_address&&l.jsx("div",{onClick:y,className:"font-mono text-xs md:text-sm text-primary break-all cursor-pointer hover:text-lime-400 transition-colors",children:e.bags_address})]})}),l.jsx("div",{className:"grid grid-cols-3 gap-2 mt-2",children:[{label:"1m",value:e.price_change_1m},{label:"5m",value:e.price_change_5m},{label:"15m",value:e.price_change_15m},{label:"1h",value:e.price_change_1h},{label:"4h",value:e.price_change_4h},{label:"24h",value:e.price_change_24h}].map(({label:g,value:w})=>l.jsxs("div",{className:"flex items-center justify-between text-xs",children:[l.jsx("span",{className:"font-mono text-[10px] text-lime-400",children:g}),l.jsx("span",{className:`font-mono text-xs ${v(w)}`,children:b(w)})]},g))})]})]})})}let Od=null,yy=0;const iD=5*60*1e3;function aD(e){return new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(e)}function lD(e){if(!isFinite(e))return"-";const n=Math.abs(e)>=1?4:6,r=e.toPrecision(n);return`$${parseFloat(r).toString()}`}function xy(e){const t=typeof e.market_cap=="number"&&e.market_cap>=0?aD(e.market_cap):typeof e.price=="number"?lD(e.price):"-",r=(e.symbol||e.name||"?").toString().replace(/^$/g,"").slice(0,2).toUpperCase()||"?";return{...e,valueText:t,initials:r}}const Ad="3wka7mLJyAWfQYzcpT54VGpPkJAKNgT4cyjbqGpXBAGS";function cD(){return Mn({queryKey:["dash_leaderboard_ticker"],queryFn:async()=>{const e=oe,{data:t,error:n}=await e.from("token_marketcap").select("token_id, market_cap_usd, price_usd, updated_at").gte("market_cap_usd",5e4).order("market_cap_usd",{ascending:!1,nullsFirst:!1}).limit(20);if(n)throw n;const r=t.map(d=>d.token_id),{data:s,error:o}=await e.from("dash_leaderboard").select("token_address, symbol, name, image_url").in("token_address",r),i=new Map;
286!o&&s&&s.forEach(d=>{i.set(d.token_address,d)});let a=t.map(d=>{const f=i.get(d.token_id),m={token_address:d.token_id,symbol:(f==null?void 0:f.symbol)||null,name:(f==null?void 0:f.name)||null,image_url:(f==null?void 0:f.image_url)||null,market_cap:d.market_cap_usd,price:d.price_usd,updated_at:d.updated_at};return xy(m)});const c=a.findIndex(d=>d.token_address===Ad);if(c!==-1)a[c]={...a[c],isPinned:!0};else{const{data:d,error:f}=await e.from("token_marketcap").select("token_id, market_cap_usd, price_usd, updated_at").eq("token_id",Ad).single();if(!f&&d){const{data:m}=await e.from("dash_leaderboard").select("token_address, symbol, name, image_url").eq("token_address",Ad).single(),h={token_address:d.token_id,symbol:(m==null?void 0:m.symbol)||null,name:(m==null?void 0:m.name)||null,image_url:(m==null?void 0:m.image_url)||null,market_cap:d.market_cap_usd,price:d.price_usd,updated_at:d.updated_at};a.unshift({...xy(h),isPinned:!0})}}const u=Date.now();return a.length>0?(Od=a,yy=u,a):Od&&u-yy<iD?Od:a},refetchInterval:3e4,staleTime:3e4,retry:3})}function p1(){const e=Fb();return{updateTickerToken:(i,a)=>{e.setQueryData(["dash_leaderboard_ticker"],c=>c&&c.map(u=>u.token_address===i?{...u,...a}:u))},updateRankingToken:(i,a)=>{e.setQueryData(["ranking-data"],c=>c&&c.map(u=>u.token_address===i?{...u,...a}:u))},updateSolPrice:i=>{e.setQueryData(["sol_price"],i)},batchUpdateTickerTokens:i=>{e.setQueryData(["dash_leaderboard_ticker"],a=>{if(!a)return a;const c=new Map(i.map(u=>[u.tokenAddress,u.data]));return a.map(u=>{const d=c.get(u.token_address);return d?{...u,...d}:u})})},batchUpdateRankingTokens:i=>{e.setQueryData(["ranking-data"],a=>{if(!a)return a;const c=new Map(i.map(u=>[u.tokenAddress,u.data]));return a.map(u=>{const d=c.get(u.token_address);return d?{...u,...d}:u})})}}}function wy(e){return new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(e)}function by(e){if(!isFinite(e))return"-";const n=Math.abs(e)>=1?4:6,r=e.toPrecision(n);return`$${parseFloat(r).toString()}`}function uD(){const{updateTickerToken:e,updateSolPrice:t}=p1(),n=p.useRef({leaderboard:null,marketcap:null,fx:null});p.useEffect(()=>{const r=oe.channel("financial-ticker-realtime").on("postgres_changes",{event:"*",schema:"public",table:"dash_leaderboard"},s=>{n.current.leaderboard&&clearTimeout(n.current.leaderboard),n.current.leaderboard=setTimeout(()=>{if(s.new&&typeof s.new=="object"){const o=s.new,i=typeof o.market_cap=="number"&&o.market_cap>=0?wy(o.market_cap):typeof o.price=="number"?by(o.price):"-";e(o.token_address,{symbol:o.symbol,name:o.name,price:o.price,market_cap:o.market_cap,image_url:o.image_url,valueText:i,updated_at:o.updated_at})}},500)}).on("postgres_changes",{event:"*",schema:"public",table:"token_marketcap"},s=>{n.current.marketcap&&clearTimeout(n.current.marketcap),n.current.marketcap=setTimeout(()=>{if(s.new&&typeof s.new=="object"){const o=s.new;console.log("📊 Financial ticker market cap update:",{token_id:o.token_id,price_usd:o.price_usd,market_cap_usd:o.market_cap_usd});const i=typeof o.market_cap_usd=="number"&&o.market_cap_usd>=0?wy(o.market_cap_usd):typeof o.price_usd=="number"?by(o.price_usd):"-";e(o.token_id,{market_cap:o.market_cap_usd,price:o.price_usd,valueText:i,price_change_1m:o.price_change_1m,price_change_5m:o.price_change_5m,price_change_15m:o.price_change_15m,price_change_1h:o.price_change_1h,price_change_4h:o.price_change_4h,price_change_24h:o.price_change_24h}),console.log("✅ Ticker cache updated for token:",o.token_id)}},100)}).on("postgres_changes",{event:"*",schema:"public",table:"fx_prices",filter:"asset=eq.SOL"},s=>{n.current.fx&&clearTimeout(n.current.fx),n.current.fx=setTimeout(()=>{if(s.new&&typeof s.new=="object"){const o=s.new;t(o.price_usd)}},200)}).subscribe();return()=>{Object.values(n.current).forEach(s=>{s&&clearTimeout(s)}),oe.removeChannel(r)}},[e,t])}function dD(e,t={}){const{duration:n=300,easing:r=f=>f}=t,[s,o]=p.useState(e??0),[i,a]=p.useState(!1),c=p.useRef(),u=p.useRef(),d=p.useRef();return p.useEffect(()=>{if(e==null)return;const f=s;if(Math.abs(e-f)<.001||e===f){o(e);return}a(!0),d.current=f,u.current=performance.now();const h=b=>{if(!u.current||!d.current)return;const v=b-u.current,y=Math.min(v/n,1),x=r(y),g=d.current+(e-d.current)*x;o(g),y<1?c.current=requestAnimationFrame(h):(a(!1),o(e))};return c.current=requestAnimationFrame(h),()=>{c.current&&cancelAnimationFrame(c.current)}},[e,n,r]),p.useEffect(()=>()=>{c.current&&cancelAnimationFrame(c.current)},[]),{value:s,isAnimating:i}}function fD(e,t=1e3){const[n,r]=p.useState({changeType:"none",flashClass:"",isFlashing:!1}),s=p.useRef(e),o=p.useRef();return p.useEffect(()=>{const i=s.current;if(e!=null&&i!=null&&e!==i){const a=e>i?"up":"down";r({changeType:a,flashClass:a==="up"?"animate-pulse bg-green-500/20 border-green-500/40":"animate-pulse bg-red-500/20 border-red-500/40",isFlashing:!0}),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(u=>({...u,flashClass:"",isFlashing:!1}))},t)}s.current=e},[e,t]),p.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]),n}function Hi({value:e,formatter:t=i=>i.toString(),className:n,showChangeFlash:r=!0,flashDuration:s=800,animationDuration:o=300}){const{value:i,isAnimating:a}=dD(e,{duration:o}),{flashClass:c,isFlashing:u}=fD(e,s),d=e!=null?t(i):"—";return l.jsx("span",{className:G("font-mono transition-all duration-200",a&&"scale-105",r&&u&&c,n),children:d})}const _y=10,hD=e=>{try{const t=e??document.documentElement,n=getComputedStyle(t).getPropertyValue("--ticker-speed-px-s").trim(),r
286=Number(n);return isFinite(r)&&r>0?r:_y}catch{return _y}};function pD(){const[e,t]=p.useState(!1);return p.useEffect(()=>{var s;const n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>t(n.matches);return r(),(s=n.addEventListener)==null||s.call(n,"change",r),()=>{var o;return(o=n.removeEventListener)==null?void 0:o.call(n,"change",r)}},[]),e}function mD(){const e=p.useRef(null),[t,n]=p.useState(!0);return p.useEffect(()=>{if(!e.current)return;const r=new IntersectionObserver(s=>{const o=s[0];n(o.isIntersecting)},{root:null,threshold:.01});return r.observe(e.current),()=>r.disconnect()},[]),{ref:e,visible:t}}function gD(){const e=cD();uD();const t=pD(),{ref:n,visible:r}=mD(),[s,o]=p.useState(!1);p.useEffect(()=>{if(!e.isPending)return;const R=setTimeout(()=>o(!0),1e4);return()=>clearTimeout(R)},[e.isPending]);const[i,a]=p.useState(e.data??[]),c=p.useRef(null),u=R=>R.map(O=>O.token_address).join("|");p.useEffect(()=>{if(!e.data)return;const R=u(e.data),O=u(i);R!==O&&(c.current=R)},[e.data,i]);const d=p.useRef(null),[f,m]=p.useState(30);p.useEffect(()=>{const R=d.current;if(!R)return;const O=()=>{const E=R.getBoundingClientRect().width,L=hD(n.current),A=E>0?E/L:30;m(A)},T=new ResizeObserver(O);return T.observe(R),window.addEventListener("resize",O),O(),()=>{T.disconnect(),window.removeEventListener("resize",O)}},[]);const[h,b]=p.useState(!1);p.useEffect(()=>{const R=()=>b(document.visibilityState==="hidden");return R(),document.addEventListener("visibilitychange",R),()=>document.removeEventListener("visibilitychange",R)},[]);const[v,y]=p.useState(!1),[x,g]=p.useState(!1),[w,_]=p.useState(!1),k=t||v||x||w||!r||h,S=p.useCallback(()=>{c.current&&e.data&&u(e.data)===c.current&&(a(e.data),c.current=null)},[e.data]),j=p.useMemo(()=>{var T;const R=i;if(!(R!=null&&R.length))return null;const O=new Map(((T=e.data)==null?void 0:T.map(E=>[E.token_address,E]))||[]);return l.jsx(l.Fragment,{children:R.map(E=>{const L=O.get(E.token_address)||E,A=`Open details for ${E.symbol?`$${E.symbol}`:E.name||"token"}`,H=E.symbol?`$${E.symbol}`:E.name||"";return l.jsx(f1,{token:{bags_address:E.token_address,token_symbol
286:E.symbol,first_tweet_url:null},children:l.jsxs("button",{className:`inline-flex items-center gap-2 h-10 px-3 rounded-full border text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background transition-smooth tabular-nums ${E.isPinned?"bg-primary/20 border-primary/50 hover:bg-primary/30":"bg-secondary/80 hover:bg-secondary border-border"}`,"aria-label":A,onFocus:()=>_(!0),onBlur:()=>_(!1),title:A,children:[l.jsxs(Is,{className:"h-7 w-7",children:[l.jsx(Ds,{src:E.image_url??void 0,alt:H||"Token avatar",loading:"lazy",decoding:"async"}),l.jsx($s,{children:E.initials})]}),l.jsx("span",{className:`font-semibold ${E.isPinned?"text-primary":"text-foreground"}`,children:E.symbol?`$${E.symbol}`:E.name}),l.jsx(Hi,{value:L.market_cap||L.price,formatter:F=>L.market_cap?Io(F):kh(F),className:"text-muted-foreground",showChangeFlash:!0}),L.price_change_1m!==null&&L.price_change_1m!==void 0&&l.jsx("span",{className:`text-xs ${L.price_change_1m>0?"text-green-400":L.price_change_1m<0?"text-red-400":"text-muted-foreground"}`,children:hm(L.price_change_1m)})]})},E.token_address)})})},[i,e.data]),P=p.useMemo(()=>({WebkitMaskImage:"linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%)",maskImage:"linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%)"}),[]);return t?l.jsxs("section",{ref:n,className:"relative w-full h-14 bg-background border-b border-border overflow-hidden","aria-live":"polite",role:"region","aria-label":"Top tokens ticker",children:[l.jsx("div",{className:"absolute inset-y-0 right-2 flex items-center gap-1",children:l.jsxs(xe,{variant:"outline",size:"icon",className:"h-8 w-8 rounded-full","aria-pressed":v,"aria-label":v?"Play ticker":"Pause ticker",onClick:()=>y(R=>!R),children:[v?l.jsx(iv,{className:"h-4 w-4"}):l.jsx(ov,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Toggle ticker"})]})}),l.jsx("div",{className:"h-full flex items-center overflow-x-hidden px-4",children:l.jsx("div",{className:"flex items-center gap-3",children:e.isPending?l.jsx(Ue,{className:"h-10 w-[240px]"}):j})})]}):l.jsxs("section",{ref:n,className:"relative w-full h-14 bg-background border-b border-border overflow-hidden","aria-live":"polite",role:"region","aria-label":"Top tokens ticker",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),style:P,children:[l.jsxs("div",{className:"absolute inset-y-0 right-2 flex items-center gap-2 z-10",children:[e.isError?l.jsx("div",{className:"text-xs text-destructive bg-destructive/10 border border-destructive/30 px-2 py-1 rounded-md",children:"Refresh failed"}):null,l.jsxs(xe,{variant:"outline",size:"icon",className:"h-8 w-8 rounded-full","aria-pressed":v,"aria-label":v?"Play ticker":"Pause ticker",onClick:()=>y(R=>!R),children:[v?l.jsx(iv,{className:"h-4 w-4"}):l.jsx(ov,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Toggle ticker"})]})]}),e.isPending?l.jsxs("div",{className:"h-full flex items-center px-4",children:[l.jsx(Ue,{className:"h-10 w-[320px]"}),s?l.jsx("span",{className:"ml-3 text-xs text-muted-foreground",children:"Loading top tokens…"}):null]}):l.jsx("div",{className:"absolute inset-0 flex items-center",children:l.jsxs("div",{className:"w-max flex items-center gap-3 will-change-transform",style:{animation:`ticker-loop var(--ticker-duration, ${f}s) linear infinite`,animationPlayState:k?"paused":"running",transform:"translateZ(0)","--ticker-duration":`${f}s`},onAnimationIteration:S,children:[l.jsx("div",{ref:d,className:"w-max flex items-center gap-3 pl-4 pr-8",children:j}),l.jsx("div",{className:"w-max flex items-center gap-3 pr-8",children:j})]})}),l.jsx("style",{children:"@keyframes ticker-loop { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }"})]})}var ku="Popover",[m1,S3]=pn(ku,[mi]),Ya=mi(),[vD,Jr]=m1(ku),g1=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!1}=e,a=Ya(t),c=p.useRef(null),[u,d]=p.useState(!1),[f,m]=Jn({prop:r,defaultProp:s??!1,onChange:o,caller:ku});return l.jsx(Vp,{...a,children:l.jsx(vD,{scope:t,contentId:En(),triggerRef:c,open:f,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(h=>!h),[m]),hasCustomAnchor:u,onCustomAnchorAdd:p.useCallback(()=>d(!0),[]),onCustomAnchorRemove:p.useCallback(()=>d(!1),[]),modal:i,children:n})})};g1.displayName=ku;var v1="PopoverAnchor",yD=p.forwardRef((e,t)=>
vendor: 4,441 bytes, line 286
286{const{__scopePopover:n,...r}=e,s=Jr(v1,n),o=Ya(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=s;return p.useEffect(()=>(i(),()=>a()),[i,a]),l.jsx(au,{...o,...r,ref:t})});yD.displayName=v1;var y1="PopoverTrigger",x1=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jr(y1,n),o=Ya(n),i=pe(t,s.triggerRef),a=l.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":S1(s.open),...r,ref:i,onClick:V(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:l.jsx(au,{asChild:!0,...o,children:a})});x1.displayName=y1;var pm="PopoverPortal",[xD,wD]=m1(pm,{forceMount:void 0}),w1=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,o=Jr(pm,t);return l.jsx(xD,{scope:t,forceMount:n,children:l.jsx(On,{present:n||o.open,children:l.jsx(Ba,{asChild:!0,container:s,children:r})})})};w1.displayName=pm;var oi="PopoverContent",b1=p.forwardRef((e,t)=>{const n=wD(oi,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,o=Jr(oi,e.__scopePopover);return l.jsx(On,{present:r||o.open,children:o.modal?l.jsx(_D,{...s,ref:t}):l.jsx(kD,{...s,ref:t})})});b1.displayName=oi;var bD=Os("PopoverContent.RemoveScroll"),_D=p.forwardRef((e,t)=>{const n=Jr(oi,e.__scopePopover),r=p.useRef(null),s=pe(t,r),o=p.useRef(!1);return p.useEffect(()=>{const i=r.current;if(i)return cm(i)},[]),l.jsx(bu,{as:bD,allowPinchZoom:!0,children:l.jsx(_1,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),o.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,u=a.button===2||c;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),kD=p.forwardRef((e,t)=>{const n=Jr(oi,e.__scopePopover),r=p.useRef(!1),s=p.useRef(!1);return l.jsx(_1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),_1=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,m=Jr(oi,n),h=Ya(n);return lm(),l.jsx(xu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:l.jsx(di,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:l.jsx(qp,{"data-state":S1(m.open),role:"dialog",id:m.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k1="PopoverClose",SD=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jr(k1,n);return l.jsx(Y.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>s.onOpenChange(!1))})});SD.displayName=k1;var CD="PopoverArrow",jD=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Ya(n);return l.jsx(Kp,{...s,...r,ref:t})});jD.displayName=CD;function S1(e){return e?"open":"closed"}var ND=g1,ED=x1,PD=w1,C1=b1;const j1=ND,N1=ED,mm=p.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>l.jsx(PD,{children:l.jsx(C1,{ref:s,align:t,sideOffset:n,className:G("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
286de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));mm.displayName=C1.displayName;function E1(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Su="Checkbox",[TD,C3]=pn(Su),[RD,gm]=TD(Su);function OD(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:s,disabled:o,form:i,name:a,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:f}=e,[m,h]=Jn({prop:n,defaultProp:s??!1,onChange:c,caller:Su}),[b,v]=p.useState(null),[y,x]=p.useState(null),g=p.useRef(!1),w=b?!!i||!!b.closest("form"):!0,_={checked:m,disabled:o,setChecked:h,control:b,setControl:v,name:a,form:i,value:d,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:Wr(s)?!1:s,isFormControl:w,bubbleInput:y,setBubbleInput:x};return l.jsx(RD,{scope:t,..._,children:AD(f)?f(_):r})}var P1="CheckboxTrigger",T1=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},s)=>{const{control:o,value:i,disabled:a,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:b}=gm(P1,e),v=pe(s,d),y=p.useRef(c);return p.useEffect(()=>{const x=o==null?void 0:o.form;if(x){const g=()=>f(y.current);return x.addEventListener("reset",g),()=>x.removeEventListener("reset",g)}},[o,f]),l.jsx(Y.button,{type:"button",role:"checkbox","aria-checked":Wr(c)?"mixed":c,"aria-required":u,"data-state":I1(c),"data-disabled":a?"":void 0,disabled:a,value:i,...r,ref:v,onKeyDown:V(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:V(n,x=>{f(g=>Wr(g)?!0:!g),b&&h&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})})});T1.displayName=P1;var vm=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:o,required:i,disabled:a,value:c,onCheckedChange:u,form:d,...f}=e;return l.jsx(OD,{__scopeCheckbox:n,checked:s,defaultChecked:o,disabled:a,required:i,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:m})=>l.jsxs(l.Fragment,{children:[l.jsx(T1,{...f,ref:t,__scopeCheckbox:n}),m&&l.jsx(M1,{__scopeCheckbox:n})]})})});vm.displayName=Su;var R1="CheckboxIndicator",O1=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...s}=e,o=gm(R1,n);return l.jsx(On,{present:r||Wr(o.checked)||o.checked===!0,children:l.jsx(Y.span,{"data-state":I1(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});O1.displayName=R1;var A1="CheckboxBubbleInput",M1=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:i,required:a,disabled:c,name:u,value:d,form:f,bubbleInput:m,setBubbleInput:h}=gm(A1,e),b=pe(n,h),v=E1(o),y=cb(r);p.useEffect(()=>{const g=m;if(!g)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,S=!s.current;if(v!==o&&k){const j=new Event("click",{bubbles:S});g.indeterminate=Wr(o),k.call(g,Wr(o)?!1:o),g.dispatchEvent(j)}},[m,v,o,s]);const x=p.useRef(Wr(o)?!1:o);return l.jsx(Y.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??x.current,required:a,disabled:c,name:u,value:d,form:f,...t,tabIndex:-1,ref:b,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});M1.displayName=A1;function AD(e){return typeof e=="function"}function Wr(e){return e==="indeterminate"}function I1(e){return Wr(e)?"indeterminate":e?"checked":"unchecked"}const ym=p.forwardRef(({className:e,...t},n)=>l.jsx(vm,{ref:n,className:G("peer h-4 w-4 shrink-0 rounded border border-input transition-all duration-75 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",e),...t,children:l.jsx(O1,{className:G("flex items-center justify-center text-current"),children:l.jsx(Mp,{className:"h-4 w-4"})})}));ym.displayName=vm.displayName;var MD="Label",D1=p.forwardRef((e,t)=>
286l.jsx(Y.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));D1.displayName=MD;var $1=D1;const ID=ru("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),st=p.forwardRef(({className:e,...t},n)=>l.jsx($1,{ref:n,className:G(ID(),e),...t}));st.displayName=$1.displayName;function DD({value:e,onChange:t,onReset:n}){return l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h3",{className:"matrix-section-label",children:"Filter Scope"}),l.jsx(xe,{variant:"ghost",size:"sm",onClick:n,className:"text-xs text-muted-foreground hover:text-foreground",children:"Reset"})]}),l.jsxs("div",{className:"flex items-center space-x-3",children:[l.jsx(ym,{id:"creators-only",checked:e==="creator",onCheckedChange:r=>t(r?"creator":"creatorAndReceiver"),className:"data-[state=checked]:bg-accent data-[state=checked]:border-accent data-[state=checked]:text-accent-foreground"}),l.jsx(st,{htmlFor:"creators-only",className:"matrix-section-label cursor-pointer select-none text-xs font-mono tracking-wider uppercase",children:"CREATORS ONLY"})]})]})}const Nt=p.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:G("flex h-8 w-full rounded border border-input bg-background px-3 py-1.5 text-sm transition-all duration-75 file:border-0 file:bg-transparent file:text-xs file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:border-accent/50 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Nt.displayName="Input";function $D({filters:e,onChange:t,onReset:n}){const[r,s]=p.useState(e),o=(c,u)=>{s(d=>({...d,[c]:u||void 0}))},i=()=>{Object.entries(r).forEach(([c,u])=>{t(`directPerson.${c}`,u)})},a=c=>{c.key==="Enter"&&i()};return l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h3",{className:"matrix-section-label",children:"Direct Person"}),l.jsx(xe,{variant:"ghost",size:"sm",onClick:n,className:"text-xs text-muted-foreground hover:text-foreground",children:"Reset"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Creator Equals"}),l.jsx(Nt,{placeholder:"@handle",value:r.creatorEquals||"",onChange:c=>o("creatorEquals",c.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Receiver Equals"}),l.jsx(Nt,{placeholder:"@handle",value:r.receiverEquals||"",onChange:c=>o("receiverEquals",c.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Creator Keywords"}),l.jsx(Nt,{placeholder:"bio, name...",value:r.creatorKeywords||"",onChange:c=>o("creatorKeywords",c.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Receiver Keywords"}),l.jsx(Nt,{placeholder:"bio, name...",value:r.receiverKeywords||"",onChange:c=>o("receiverKeywords",c.target.value),onKeyPress:a,className:"matrix-input"})]})]}),l.jsx("div",{className:"flex justify-end pt-2",children:l.jsx(xe,{size:"sm",onClick:i,className:"text-xs font-mono",children:"Apply"})})]})}function LD({blueVerified:e,onChange:t,onReset:n}){p.useEffect(()=>{const s=setTimeout(()=>{},200);return()=>clearTimeout(s)},[e]);const r=s=>{t("verification.blueVerified",s)};return l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h3",{className:"matrix-section-label",children:"Verification"}),l.jsx(xe,{variant:"ghost",size:"sm",onClick:n,className:"text-xs text-muted-foreground hover:text-foreground",children:"Reset"})]}),l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx(ym,{id:"blueVerified",checked:e===!0,onCheckedChange:r,className:"data-[state=checked]:bg-primary data-[state=checked]:border-primary"}),l.jsx(st,{htmlFor:"blueVerified",className:"text-sm font-mono curs
286or-pointer",children:"Blue Verified Only"})]})]})}function FD({stats:e,onChange:t,onReset:n}){var c,u,d,f,m;const[r,s]=p.useState({followers:((c=e.followers)==null?void 0:c.toString())||"",following:((u=e.following)==null?void 0:u.toString())||"",posts:((d=e.posts)==null?void 0:d.toString())||"",media:((f=e.media)==null?void 0:f.toString())||"",ratio:((m=e.ratio)==null?void 0:m.toString())||""}),o=(h,b)=>{s(v=>({...v,[h]:b}))},i=()=>{Object.entries(r).forEach(([h,b])=>{const v=b?parseFloat(b):void 0;t(`stats.${h}`,v)})},a=h=>{h.key==="Enter"&&i()};return l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h3",{className:"matrix-section-label",children:"Stats (Minimums)"}),l.jsx(xe,{variant:"ghost",size:"sm",onClick:n,className:"text-xs text-muted-foreground hover:text-foreground",children:"Reset"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Followers"}),l.jsx(Nt,{type:"number",placeholder:"0",value:r.followers,onChange:h=>o("followers",h.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Following"}),l.jsx(Nt,{type:"number",placeholder:"0",value:r.following,onChange:h=>o("following",h.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Posts"}),l.jsx(Nt,{type:"number",placeholder:"0",value:r.posts,onChange:h=>o("posts",h.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Media"}),l.jsx(Nt,{type:"number",placeholder:"0",value:r.media,onChange:h=>o("media",h.target.value),onKeyPress:a,className:"matrix-input"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"F/F Ratio"}),l.jsx(Nt,{type:"number",step:"0.1",placeholder:"0.0",value:r.ratio,onChange:h=>o("ratio",h.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsx("div",{className:"flex justify-end pt-2",children:l.jsx(xe,{size:"sm",onClick:i,className:"text-xs font-mono",children:"Apply"})})]})}function ue(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function At(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ct(e,t){const n=ue(e);return isNaN(t)?At(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function fn(e,t){const n=ue(e);if(isNaN(t))return At(e,NaN);if(!t)return n;const r=n.getDate(),s=At(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const o=s.getDate();return r>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}const xm=6048e5,zD=864e5;let BD={};function Qa(){return BD}function Rn(e,t){var a,c,u,d;const n=Qa(),r=(t==null?void 0:t.weekStartsOn)??((c=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=ue(e),o=s.getDay(),i=(o<r?7:0)+o-r;return s.setDate(s.getDate()-i),s.setHours(0,0,0,0),s}function Fs(e){return Rn(e,{weekStartsOn:1})}function L1(e){const t=ue(e),n=t.getFullYear(),r=At(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=Fs(r),o=At(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=Fs(o);return t.getTime()>=s.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ii(e){const t=ue(e);return t.setHours(0,0,0,0),t}function Dc(e){const t=ue(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Cn(e,t){const n=ii(e),r=ii(t),s=+n-Dc(n),o=+r-Dc(r);return Math.round((s-o)/zD)}function WD(e){const t=L1(e),n=At(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Fs(n)}function Nh(e,t){const n=t*7;return ct(e,n)}function UD(e,t){return fn(e,t*12)}function HD(e){let t;return e.forEach(function(n){const r=ue(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function VD(e){let t;return e.forEach(n=>{const r=ue(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function wt(e,t){const n=ii(e),r=ii(t);return+n==+r}function wm(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function qD(e){if(!wm(e)&&typeof e!="number")return!1;const t=ue(e);return!isNaN(Number(t))}
vendor: 8,152 bytes, line 286
286function Ra(e,t){const n=ue(e),r=ue(t),s=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return s*12+o}function KD(e,t,n){const r=Rn(e,n),s=Rn(t,n),o=+r-Dc(r),i=+s-Dc(s);return Math.round((o-i)/xm)}function bm(e){const t=ue(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function St(e){const t=ue(e);return t.setDate(1),t.setHours(0,0,0,0),t}function F1(e){const t=ue(e),n=At(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _m(e,t){var a,c,u,d;const n=Qa(),r=(t==null?void 0:t.weekStartsOn)??((c=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=ue(e),o=s.getDay(),i=(o<r?-7:0)+6-(o-r);return s.setDate(s.getDate()+i),s.setHours(23,59,59,999),s}function z1(e){return _m(e,{weekStartsOn:1})}const GD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},YD=(e,t,n)=>{let r;const s=GD[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Md(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const QD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},JD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},XD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ZD={date:Md({formats:QD,defaultWidth:"full"}),time:Md({formats:JD,defaultWidth:"full"}),dateTime:Md({formats:XD,defaultWidth:"full"})},e4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},t4=(e,t,n,r)=>e4[e];function Ii(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;s=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const n4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},r4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},o4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},i4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},a4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},l4=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},c4={ordinalNumber:l4,era:Ii({values:n4,defaultWidth:"wide"}),quarter:Ii({values:r4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ii({values:s4,defaultWidth:"wide"}),day:Ii({values:o4,defaultWidth:"wide"}),dayPeriod:Ii({values:i4,defaultWidth:"wide",formattingValues:a4,defaultFormattingWidth:"wide"})};function Di(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const i=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?d4(a,f=>f.test(i)):u4(a,f=>f.test(i));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function u4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function d4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function f4(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;const a=t.slice(s.length);return{value:i,rest:a}}}const h4=/^(\d+)(th|st|nd|rd)?/i,p4=/\d+/i,m4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},g4={any:[/^b/i,/^(a|c)/i]},v4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},y4={any:[/1/i,/2/i,/3/i,/4/i]},x4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},w4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},k4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},S4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},C4={ordinalNumber:f4({matchPattern:h4,parsePattern:p4,valueCallback:e=>parseInt(e,10)}),era:Di({matchPatterns:m4,defaultMatchWidth:"wide",parsePatterns:g4,defaultParseWidth:"any"}),quarter:Di({matchPatterns:v4,defaultMatchWidth:"wide",parsePatterns:y4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Di({matchPatterns:x4,defaultMatchWidth:"wide",parsePatterns:w4,defaultParseWidth:"any"}),day:Di({matchPatterns:b4,defaultMatchWidth:"wide",parsePatterns:_4,defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:k4,defaultMatchWidth:"any",parsePatterns:S4,defaultParseWidth:"any"})},B1={code:"en-US",formatDistance:YD,formatLong:ZD,formatRelative:t4,localize:c4,match:C4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function j4(e){const t=ue(e);return Cn(t,F1(t))+1}function W1(e){const t=ue(e),n=+Fs(t)-+WD(t);return Math.round(n/xm)+1}function U1(e,t){var d,f,m,h;
vendor: 6,465 bytes, line 286
286const n=ue(e),r=n.getFullYear(),s=Qa(),o=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((h=(m=s.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??1,i=At(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const a=Rn(i,t),c=At(e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Rn(c,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function N4(e,t){var a,c,u,d;const n=Qa(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=U1(e,t),o=At(e,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Rn(o,t)}function H1(e,t){const n=ue(e),r=+Rn(n,t)-+N4(n,t);return Math.round(r/xm)+1}function ge(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const dr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ge(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ge(n+1,2)},d(e,t){return ge(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ge(e.getHours()%12||12,t.length)},H(e,t){return ge(e.getHours(),t.length)},m(e,t){return ge(e.getMinutes(),t.length)},s(e,t){return ge(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ge(s,t.length)}},lo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ky={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return dr.y(e,t)},Y:function(e,t,n,r){const s=U1(e,r),o=s>0?s:1-s;if(t==="YY"){const i=o%100;return ge(i,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):ge(o,t.length)},R:function(e,t){const n=L1(e);return ge(n,t.length)},u:function(e,t){const n=e.getFullYear();return ge(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ge(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ge(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return dr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ge(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=H1(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):ge(s,t.length)},I:function(e,t,n){const r=W1(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ge(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):dr.d(e,t)},D:function(e,t,n){const r=j4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ge(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ge(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ge(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return ge(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=lo.noon:r===0?s=lo.midnight:s=r/12>
vendor: 4,371 bytes, line 286
286=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=lo.evening:r>=12?s=lo.afternoon:r>=4?s=lo.morning:s=lo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return dr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):dr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ge(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ge(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):dr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):dr.s(e,t)},S:function(e,t){return dr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Cy(r);case"XXXX":case"XX":return ds(r);case"XXXXX":case"XXX":default:return ds(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Cy(r);case"xxxx":case"xx":return ds(r);case"xxxxx":case"xxx":default:return ds(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Sy(r,":");case"OOOO":default:return"GMT"+ds(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Sy(r,":");case"zzzz":default:return"GMT"+ds(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ge(r,t.length)},T:function(e,t,n){const r=e.getTime();return ge(r,t.length)}};function Sy(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+t+ge(o,2)}function Cy(e,t){return e%60===0?(e>0?"-":"+")+ge(Math.abs(e)/60,2):ds(e,t)}function ds(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=ge(Math.trunc(r/60),2),o=ge(r%60,2);return n+s+t+o}const jy=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},V1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},E4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return jy(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",jy(r,t)).replace("{{time}}",V1(s,t))},P4={p:V1,P:E4},T4=/^D+$/,R4=/^Y+$/,O4=["D","DD","YY","YYYY"];function A4(e){return T4.test(e)}function M4(e){return R4.test(e)}function I4(e,t,n){const r=D4(e,t,n);if(console.warn(r),O4.includes(e))throw new RangeError(r)}function D4(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const $4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F4=/^'([^]*?)'?$/,z4=/''/g,B4=/[a-zA-Z]/;function Xr(e,t,n){var d,f,m,h,b,v,y,x;const r=Qa(),s=(n==null?void 0:n.locale)??r.locale??B1,o=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(m=r.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((v=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((x=(y=r.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,a=ue(e);
286if(!qD(a))throw new RangeError("Invalid time value");let c=t.match(L4).map(g=>{const w=g[0];if(w==="p"||w==="P"){const _=P4[w];return _(g,s.formatLong)}return g}).join("").match($4).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const w=g[0];if(w==="'")return{isToken:!1,value:W4(g)};if(ky[w])return{isToken:!0,value:g};if(w.match(B4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:g}});s.localize.preprocessor&&(c=s.localize.preprocessor(a,c));const u={firstWeekContainsDate:o,weekStartsOn:i,locale:s};return c.map(g=>{if(!g.isToken)return g.value;const w=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&M4(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&A4(w))&&I4(w,t,String(e));const _=ky[w[0]];return _(a,w,s.localize,u)}).join("")}function W4(e){const t=e.match(F4);return t?t[1].replace(z4,"'"):e}function U4(e){const t=ue(e),n=t.getFullYear(),r=t.getMonth(),s=At(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function H4(e){return Math.trunc(+ue(e)/1e3)}function V4(e){const t=ue(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function q4(e,t){return KD(V4(e),St(e),t)+1}function Eh(e,t){const n=ue(e),r=ue(t);return n.getTime()>r.getTime()}function q1(e,t){const n=ue(e),r=ue(t);return+n<+r}function km(e,t){const n=ue(e),r=ue(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function K4(e,t){const n=ue(e),r=ue(t);return n.getFullYear()===r.getFullYear()}function Id(e,t){return ct(e,-t)}function Dd(e,t){const n=ue(e),r=n.getFullYear(),s=n.getDate(),o=At(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const i=U4(o);return n.setMonth(t,Math.min(s,i)),n}function Ny(e,t){const n=ue(e);return isNaN(+n)?At(e,NaN):(n.setFullYear(t),n)}var J=function(){return J=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},J.apply(this,arguments)};function G4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function K1(e,t,n){for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Ja(e){return e.mode==="multiple"}function Xa(e){return e.mode==="range"}function Cu(e){return e.mode==="single"}var Y4={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Q4(e,t){return Xr(e,"LLLL y",t)}function J4(e,t){return Xr(e,"d",t)}function X4(e,t){return Xr(e,"LLLL",t)}function Z4(e){return"".concat(e)}function e$(e,t){return Xr(e,"cccccc",t)}function t$(e,t){return Xr(e,"yyyy",t)}var n$=Object.freeze({__proto__:null,formatCaption:Q4,formatDay:J4,formatMonthCaption:X4,formatWeekNumber:Z4,formatWeekdayName:e$,formatYearC
286aption:t$}),r$=function(e,t,n){return Xr(e,"do MMMM (EEEE)",n)},s$=function(){return"Month: "},o$=function(){return"Go to next month"},i$=function(){return"Go to previous month"},a$=function(e,t){return Xr(e,"cccc",t)},l$=function(e){return"Week n. ".concat(e)},c$=function(){return"Year: "},u$=Object.freeze({__proto__:null,labelDay:r$,labelMonthDropdown:s$,labelNext:o$,labelPrevious:i$,labelWeekNumber:l$,labelWeekday:a$,labelYearDropdown:c$});function d$(){var e="buttons",t=Y4,n=B1,r={},s={},o=1,i={},a=new Date;return{captionLayout:e,classNames:t,formatters:n$,labels:u$,locale:n,modifiersClassNames:r,modifiers:s,numberOfMonths:o,styles:i,today:a,mode:"default"}}function f$(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,s=e.toMonth,o=e.fromDate,i=e.toDate;return r?o=St(r):t&&(o=new Date(t,0,1)),s?i=bm(s):n&&(i=new Date(n,11,31)),{fromDate:o?ii(o):void 0,toDate:i?ii(i):void 0}}var G1=p.createContext(void 0);function h$(e){var t,n=e.initialProps,r=d$(),s=f$(n),o=s.fromDate,i=s.toDate,a=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;a!=="buttons"&&(!o||!i)&&(a="buttons");var c;(Cu(n)||Ja(n)||Xa(n))&&(c=n.onSelect);var u=J(J(J({},r),n),{captionLayout:a,classNames:J(J({},r.classNames),n.classNames),components:J({},n.components),formatters:J(J({},r.formatters),n.formatters),fromDate:o,labels:J(J({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:J(J({},r.modifiers),n.modifiers),modifiersClassNames:J(J({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:J(J({},r.styles),n.styles),toDate:i});return l.jsx(G1.Provider,{value:u,children:e.children})}function _e(){var e=p.useContext(G1);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Y1(e){var t=_e(),n=t.locale,r=t.classNames,s=t.styles,o=t.formatters.formatCaption;return l.jsx("div",{className:r.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:o(e.displayMonth,{locale:n})})}function p$(e){return l.jsx("svg",J({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:l.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Q1(e){var t,n,r=e.onChange,s=e.value,o=e.children,i=e.caption,a=e.className,c=e.style,u=_e(),d=(n=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:p$;return l.jsxs("div",{className:a,style:c,children:[l.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),l.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:s,onChange:r,children:o}),l.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[i,l.jsx(d,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function m$(e){var t,n=_e(),r=n.fromDate,s=n.toDate,o=n.styles,i=n.locale,a=n.formatters.formatMonthCaption,c=n.classNames,u=n.components,d=n.labels.labelMonthDropdown;if(!r)return l.jsx(l.Fragment,{});if(!s)return l.jsx(l.Fragment,{});var f=[];if(K4(r,s))for(var m=St(r),h=r.getMonth();h<=s.getMonth();h++)f.push(Dd(m,h));else for(var m=St(new Date),h=0;h<=11;h++)f.push(Dd(m,h));var b=function(y){var x=Number(y.target.value),g=Dd(St(e.displayMonth),x);e.onChange(g)},v=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:Q1;return l.jsx(v,{name:"months","aria-label":d(),className:c.dropdown_month,style:o.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:a(e.displayMonth,{locale:i}),children:f.map(function(y){return l.jsx("option",{value:y.getMonth(),children:a(y,{locale:i})},y.getMonth())})})}function g$(e){var t,n=e.displayMonth,r=_e(),s=r.fromDate,o=r.toDate,i=r.locale,a=r.
286styles,c=r.classNames,u=r.components,d=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,m=[];if(!s)return l.jsx(l.Fragment,{});if(!o)return l.jsx(l.Fragment,{});for(var h=s.getFullYear(),b=o.getFullYear(),v=h;v<=b;v++)m.push(Ny(F1(new Date),v));var y=function(g){var w=Ny(St(n),Number(g.target.value));e.onChange(w)},x=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:Q1;return l.jsx(x,{name:"years","aria-label":f(),className:c.dropdown_year,style:a.dropdown_year,onChange:y,value:n.getFullYear(),caption:d(n,{locale:i}),children:m.map(function(g){return l.jsx("option",{value:g.getFullYear(),children:d(g,{locale:i})},g.getFullYear())})})}function v$(e,t){var n=p.useState(e),r=n[0],s=n[1],o=t===void 0?r:t;return[o,s]}function y$(e){var t=e.month,n=e.defaultMonth,r=e.today,s=t||n||r||new Date,o=e.toDate,i=e.fromDate,a=e.numberOfMonths,c=a===void 0?1:a;if(o&&Ra(o,s)<0){var u=-1*(c-1);s=fn(o,u)}return i&&Ra(s,i)<0&&(s=i),St(s)}function x$(){var e=_e(),t=y$(e),n=v$(t,e.month),r=n[0],s=n[1],o=function(i){var a;if(!e.disableNavigation){var c=St(i);s(c),(a=e.onMonthChange)===null||a===void 0||a.call(e,c)}};return[r,o]}function w$(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,s=St(e),o=St(fn(s,r)),i=Ra(o,s),a=[],c=0;c<i;c++){var u=fn(s,c);a.push(u)}return n&&(a=a.reverse()),a}function b$(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,s=t.numberOfMonths,o=s===void 0?1:s,i=r?o:1,a=St(e);if(!n)return fn(a,i);var c=Ra(n,e);if(!(c<o))return fn(a,i)}}function _$(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,s=t.numberOfMonths,o=s===void 0?1:s,i=r?o:1,a=St(e);if(!n)return fn(a,-i);var c=Ra(a,n);if(!(c<=0))return fn(a,-i)}}var J1=p.createContext(void 0);function k$(e){var t=_e(),n=x$(),r=n[0],s=n[1],o=w$(r,t),i=b$(r,t),a=_$(r,t),c=function(f){return o.some(function(m){return km(f,m)})},u=function(f,m){c(f)||(m&&q1(f,m)?s(fn(f,1+t.numberOfMonths*-1)):s(f))},d={currentMonth:r,displayMonths:o,goToMonth:s,goToDate:u,previousMonth:a,nextMonth:i,isDateDisplayed:c};return l.jsx(J1.Provider,{value:d,children:e.children})}function Za(){var e=p.useContext(J1);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Ey(e){var t,n=_e(),r=n.classNames,s=n.styles,o=n.components,i=Za().goToMonth,a=function(d){i(fn(d,e.displayIndex?-e.dis
286playIndex:0))},c=(t=o==null?void 0:o.CaptionLabel)!==null&&t!==void 0?t:Y1,u=l.jsx(c,{id:e.id,displayMonth:e.displayMonth});return l.jsxs("div",{className:r.caption_dropdowns,style:s.caption_dropdowns,children:[l.jsx("div",{className:r.vhidden,children:u}),l.jsx(m$,{onChange:a,displayMonth:e.displayMonth}),l.jsx(g$,{onChange:a,displayMonth:e.displayMonth})]})}function S$(e){return l.jsx("svg",J({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function C$(e){return l.jsx("svg",J({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var $c=p.forwardRef(function(e,t){var n=_e(),r=n.classNames,s=n.styles,o=[r.button_reset,r.button];e.className&&o.push(e.className);var i=o.join(" "),a=J(J({},s.button_reset),s.button);return e.style&&Object.assign(a,e.style),l.jsx("button",J({},e,{ref:t,type:"button",className:i,style:a}))});function j$(e){var t,n,r=_e(),s=r.dir,o=r.locale,i=r.classNames,a=r.styles,c=r.labels,u=c.labelPrevious,d=c.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return l.jsx(l.Fragment,{});var m=u(e.previousMonth,{locale:o}),h=[i.nav_button,i.nav_button_previous].join(" "),b=d(e.nextMonth,{locale:o}),v=[i.nav_button,i.nav_button_next].join(" "),y=(t=f==null?void 0:f.IconRight)!==null&&t!==void 0?t:C$,x=(n=f==null?void 0:f.IconLeft)!==null&&n!==void 0?n:S$;return l.jsxs("div",{className:i.nav,style:a.nav,children:[!e.hidePrevious&&l.jsx($c,{name:"previous-month","aria-label":m,className:h,style:a.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?l.jsx(y,{className:i.nav_icon,style:a.nav_icon}):l.jsx(x,{className:i.nav_icon,style:a.nav_icon})}),!e.hideNext&&l.jsx($c,{name:"next-month","aria-label":b,className:v,style:a.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?l.jsx(x,{className:i.nav_icon,style:a.nav_icon}):l.jsx(y,{className:i.nav_icon,style:a.nav_icon})})]})}function Py(e){var t=_e().numberOfMonths,n=Za(),r=n.previousMonth,s=n.nextMonth,o=n.goToMonth,i=n.displayMonths,a=i.findIndex(function(b){return km(e.displayMonth,b)}),c=a===0,u=a===i.length-1,d=t>1&&(c||!u),f=t>1&&(u||!c),m=function(){r&&o(r)},h=function(){s&&o(s)};return l.jsx(j$,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:s,previousMonth:r,onPreviousClick:m,onNextClick:h})}function N$(e){var t,n=_e(),r=n.classNames,s=n.disableNavigation,o=n.styles,i=n.captionLayout,a=n.components,c=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:Y1,u;return s?u=l.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=l.jsx(Ey,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=l.jsxs(l.Fragment,{children:[l.jsx(Ey,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),l.jsx(Py,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=l.jsxs(l.Fragment,{children:[l.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(Py,{displayMonth:e.displayMonth,id:e.id})]}),l.jsx("div",{className:r.caption,style:o.caption,children:u})}function E$(e){var t=_e(),n=t.footer,r=t.styles,s=t.classNames.tfoot;return n?l.jsx("tfoot",{className:s,style:r.tfoot,children:l.jsx("tr",{children:l.jsx("td",{colSpan:8,children:n})})}):l.jsx(l.Fragment,{})}function P$(e,t,n){for(var r=n?Fs(new Date):Rn(new Date,{locale:e,weekStartsOn:t}),s=[],o=0;o<7;o++){var i=ct(r,o);s.push(i)}return s}function T$(){var e=_e(),t=e.classNames,n=e.styles,r=e.showWeekNumber,s=e.locale,o=e.weekStartsOn,i=e.ISOWeek,a=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,u=P$(s,o,i);return l.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&l.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map(function(d,f){return l.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(d,{locale:s}),children:a(d,{locale:s})},f)})]})}function R$(){var e,t=_e(),n=t.classNames,r=t.styles,s=t.components,o=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:T$;return l.jsx("thead",{style:r.head,className:n.head,children:l.jsx(o,{})})}function O$(e){var t=_e(),n=t.locale,r=t.formatters.formatDay;return l.jsx(l.Fragment,{children:r(e.date,{locale:n})})}var Sm=p.createContext(void 0);function A$(e){if(!Ja(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return l.jsx(Sm.Provider,{value:t,children:e.children})}return l.jsx(M$,{initialProps:e.initialProps,children:e.children})}function M$(e){var t=e.initialProps,n=e.children,r=t.selected,s=t.min,o=t.max,i=function(u,d,f){var m,h;(m=t.onDayClick)===null||m===void 0||m.call(t,u,d,f);var b=!!(d.selected&&s&&(r==null?void 0:r.length)===s);if(!b){var v=!!(!d.selected&&o&&(r==null?void 0:r.length)===o);if(!v){var y=r?K1([],r):[];if(d.selected){var x=y.findIndex(function(g){return wt(u,g)});
286y.splice(x,1)}else y.push(u);(h=t.onSelect)===null||h===void 0||h.call(t,y,u,d,f)}}},a={disabled:[]};r&&a.disabled.push(function(u){var d=o&&r.length>o-1,f=r.some(function(m){return wt(m,u)});return!!(d&&!f)});var c={selected:r,onDayClick:i,modifiers:a};return l.jsx(Sm.Provider,{value:c,children:n})}function Cm(){var e=p.useContext(Sm);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function I$(e,t){var n=t||{},r=n.from,s=n.to;return r&&s?wt(s,e)&&wt(r,e)?void 0:wt(s,e)?{from:s,to:void 0}:wt(r,e)?void 0:Eh(r,e)?{from:e,to:s}:{from:r,to:e}:s?Eh(e,s)?{from:s,to:e}:{from:e,to:s}:r?q1(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var jm=p.createContext(void 0);function D$(e){if(!Xa(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return l.jsx(jm.Provider,{value:t,children:e.children})}return l.jsx($$,{initialProps:e.initialProps,children:e.children})}function $$(e){var t=e.initialProps,n=e.children,r=t.selected,s=r||{},o=s.from,i=s.to,a=t.min,c=t.max,u=function(h,b,v){var y,x;(y=t.onDayClick)===null||y===void 0||y.call(t,h,b,v);var g=I$(h,r);(x=t.onSelect)===null||x===void 0||x.call(t,g,h,b,v)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(d.range_start=[o],i?(d.range_end=[i],wt(o,i)||(d.range_middle=[{after:o,before:i}])):d.range_end=[o]):i&&(d.range_start=[i],d.range_end=[i]),a&&(o&&!i&&d.disabled.push({after:Id(o,a-1),before:ct(o,a-1)}),o&&i&&d.disabled.push({after:o,before:ct(o,a-1)}),!o&&i&&d.disabled.push({after:Id(i,a-1),before:ct(i,a-1)})),c){if(o&&!i&&(d.disabled.push({before:ct(o,-c+1)}),d.disabled.push({after:ct(o,c-1)})),o&&i){var f=Cn(i,o)+1,m=c-f;d.disabled.push({before:Id(o,m)}),d.disabled.push({after:ct(i,m)})}!o&&i&&(d.disabled.push({before:ct(i,-c+1)}),d.disabled.push({after:ct(i,c-1)}))}return l.jsx(jm.Provider,{value:{selected:r,onDayClick:u,modifiers:d},children:n})}function Nm(){var e=p.useContext(jm);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Jl(e){return Array.isArray(e)?K1([],e):e!==void 0?[e]:[]}function L$(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],s=n[1];t[r]=Jl(s)}),t}var hn;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(hn||(hn={}));var F$=hn.Selected,Dn=hn.Disabled,z$=hn.Hidden,B$=hn.Today,$d=hn.RangeEnd,Ld=hn.RangeMiddle,Fd=hn.RangeStart,W$=hn.Outside;function U$(e,t,n){var r,s=(r={},r[F$]=Jl(e.selected),r[Dn]=Jl(e.disabled),r[z$]=Jl(e.hidden),r[B$]=[e.today],r[$d]=[],r[Ld]=[],r[Fd]=[],r[W$]=[],r);return e.fromDate&&s[Dn].push({before:e.fromDate}),e.toDate&&s[Dn].push({after:e.toDate}),Ja(e)?s[Dn]=s[Dn].concat(t.modifiers[Dn]):Xa(e)&&(s[Dn]=s[Dn].concat(n.modifiers[Dn]),s[Fd]=n.modifiers[Fd],s[Ld]=n.modifiers[Ld],s[$d]=n.modifiers[$d]),s}var X1=p.createContext(void 0);function H$(e){var t=_e(),n=Cm(),r=Nm(),s=U$(t,n,r),o=L$(t.modifiers),i=J(J({},s),o);return l.jsx(X1.Provider,{value:i,children:e.children})}function Z1(){var e=p.useContext(X1);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function V$(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function q$(e){return!!(e&&typeof e=="object"&&"from"in e)}function K$(e){return!!(e&&typeof e=="object"&&"after"in e)}function G$(e){return!!(e&&typeof e=="object"&&"before"in e)}function Y$(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Q$(e,t){var n,r=t.from,s=t.to;if(r&&s){var o=Cn(s,r)<0;o&&(n=[s,r],r=n[0],s=n[1]);var i=Cn(e,r)>=0&&Cn(s,e)>=0;return i}return s?wt(s,e):r?wt(r,e):!1}function J$(e){return wm(e)}function X$(e){return Array.isArray(e)&&e.every(wm)}function Z$(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(J$(n))return wt(e,n);if(X$(n))return n.includes(e);if(q$(n))return Q$(e,n);if(Y$(n))return n.dayOfWeek.includes(e.getDay());if(V$(n)){var r=Cn(n.before,e),s=Cn(n.after,e),o=r>0,i=s<0,a=Eh(n.before,n.after);return a?i&&o:o||i}return K$(n)?Cn(e,n.after)>0:G$(n)?Cn(n.before,e)>0:typeof n=="function"?n(e):!1})}function Em(e,t,n){var r=Object.keys(t).reduce(function(o,i){var a=t[i];return Z$(e,a)&&o.push(i),o},[]),s={};return r.forEach(function(o){return s[o]=!0}),n&&!km(e,n)&&(s.outside=!0),s}function eL(e,t){for(var n=St(e[0]),r=bm(e[e.length-1]),s,o,i=n;i<=r;){var a=Em(i,t),c=!a.disabled&&!a.hidden;if(!c){i=ct(i,1);continue}if(a.selected)return i;a.today&&!o&&(o=i),s||(s=i),i=ct(i,1)}return o||s}var tL=365;function ek(e,t){var n=t.moveBy,r=t.direction,s=t.context,o=t.modifiers,i=t.retry,a=i===void 0?{count:0,lastFocused:e}:i,c=s.weekStartsOn,u=s.fromDate,d=s.toDate,f=s.locale,m={day:ct,week:Nh,month:fn,year:UD,startOfWeek:function(y){return s.ISOWeek?Fs(y):Rn(y,{locale:f,weekStartsOn:c})},endOfWeek:function(y){return s.ISOWeek?z1(y):_m(y,{locale:f,weekStartsOn:c})}},h=m[n](e,r==="after"?1:-1);r==="before"&&u?h=HD([u,h]):r==="after"&&d&&(h=VD([d,h]));var b=!0;if(o){var v=Em(h,o);b=!v.disabled&&!v.hidden}return b?h:a.count>tL?a.lastFocused:ek(h,{moveBy:n,direction:r,context:s,modifiers:o,retry:J(J({},a),{count:a.count+1})})}var tk=p.createContext(void 0);function nL(e){var t=Za(),n=Z1(),r=p.useState(),s=r[0],o=r[1],i=p.useState(),a=i[0],c=i[1],u=eL(t.displayMonths,n),d=s??(a&&t.isDateDisplayed(a))?a:u,f=function(){c(s),o(void 0)},m=function(y){o(y)},h=_e(),b=function(y,x){if(s){var g=ek(s,{moveBy:y,direction:x,context:h,modifiers:n});wt(s,g)||(t.goToDate(g,s),m(g))}}
286,v={focusedDay:s,focusTarget:d,blur:f,focus:m,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return l.jsx(tk.Provider,{value:v,children:e.children})}function Pm(){var e=p.useContext(tk);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function rL(e,t){var n=Z1(),r=Em(e,n,t);return r}var Tm=p.createContext(void 0);function sL(e){if(!Cu(e.initialProps)){var t={selected:void 0};return l.jsx(Tm.Provider,{value:t,children:e.children})}return l.jsx(oL,{initialProps:e.initialProps,children:e.children})}function oL(e){var t=e.initialProps,n=e.children,r=function(o,i,a){var c,u,d;if((c=t.onDayClick)===null||c===void 0||c.call(t,o,i,a),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,o,i,a);return}(d=t.onSelect)===null||d===void 0||d.call(t,o,o,i,a)},s={selected:t.selected,onDayClick:r};return l.jsx(Tm.Provider,{value:s,children:n})}function nk(){var e=p.useContext(Tm);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function iL(e,t){var n=_e(),r=nk(),s=Cm(),o=Nm(),i=Pm(),a=i.focusDayAfter,c=i.focusDayBefore,u=i.focusWeekAfter,d=i.focusWeekBefore,f=i.blur,m=i.focus,h=i.focusMonthBefore,b=i.focusMonthAfter,v=i.focusYearBefore,y=i.focusYearAfter,x=i.focusStartOfWeek,g=i.focusEndOfWeek,w=function(I){var N,M,z,K;Cu(n)?(N=r.onDayClick)===null||N===void 0||N.call(r,e,t,I):Ja(n)?(M=s.onDayClick)===null||M===void 0||M.call(s,e,t,I):Xa(n)?(z=o.onDayClick)===null||z===void 0||z.call(o,e,t,I):(K=n.onDayClick)===null||K===void 0||K.call(n,e,t,I)},_=function(I){var N;m(e),(N=n.onDayFocus)===null||N===void 0||N.call(n,e,t,I)},k=function(I){var N;f(),(N=n.onDayBlur)===null||N===void 0||N.call(n,e,t,I)},S=function(I){var N;(N=n.onDayMouseEnter)===null||N===void 0||N.call(n,e,t,I)},j=function(I){var N;(N=n.onDayMouseLeave)===null||N===void 0||N.call(n,e,t,I)},P=function(I){var N;(N=n.onDayPointerEnter)===null||N===void 0||N.call(n,e,t,I)},R=function(I){var N;(N=n.onDayPointerLeave)===null||N===void 0||N.call(n,e,t,I)},O=function(I){var N;(N=n.onDayTouchCancel)===null||N===void 0||N.call(n,e,t,I)},T=function(I){var N;(N=n.onDayTouchEnd)===null||N===void 0||N.call(n,e,t,I)},E=function(I){var N;(N=n.onDayTouchMove)===null||N===void 0||N.call(n,e,t,I)},L=function(I){var N;(N=n.onDayTouchStart)===null||N===void 0||N.call(n,e,t,I)},A=function(I){var N;(N=n.onDayKeyUp)===null||N===void 0||N.call(n,e,t,I)},H=function(I){var N;switch(I.key){case"ArrowLeft":I.preventDefault(),I.stopPropagation(),n.dir==="rtl"?a():c();break;case"ArrowRight":I.preventDefault(),I.stopPropagation(),n.dir==="rtl"?c():a();break;case"ArrowDown":I.preventDefault(),I.stopPropagation(),u();break;case"ArrowUp":I.preventDefault(),I.stopPropagation(),d();break;case"PageUp":I.preventDefault(),I.stopPropagation(),I.shiftKey?v():h();break;case"PageDown":I.preventDefault(),I.stopPropagation(),I.shiftKey?y():b();break;case"Home":I.preventDefault(),I.stopPropagation(),x();break;case"End":I.preventDefault(),I.stopPropagation(),g();break}(N=n.onDayKeyDown)===null||N===void 0||N.call(n,e,t,I)},F={onClick:w,onFocus:_,onBlur:k,onKeyDown:H,onKeyUp:A,onMouseEnter:S,onMouseLeave:j,onPointerEnter:P,onPointerLeave:R,onTouchCancel:O,onTouchEnd:T,onTouchMove:E,onTouchStart:L};return F}function aL(){var e=_e(),t=nk(),n=Cm(),r=Nm(),s=Cu(e)?t.selected:Ja(e)?n.selected:Xa(e)?r.selected:void 0;return s}function lL(e){return Object.values(hn).includes(e)}function cL(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var s=e.modifiersClassNames[r];if(s)n.push(s);else if(lL(r)){var o=e.classNames["day_".concat(r)];o&&n.push(o)}}),n}function uL(e,t){var n=J({},e.styles.day);return Object.keys(t).forEach(function(r){var s;n=J(J({},n),(s=e.modifiersStyles)===null||s===void 0?void 0:s[r])}),n}function dL(e,t,n){var r,s,o,i=_e(),a=Pm(),c=rL(e,t),u=iL(e,c),d=aL(),f=!!(i.onDayCl
286ick||i.mode!=="default");p.useEffect(function(){var S;c.outside||a.focusedDay&&f&&wt(a.focusedDay,e)&&((S=n.current)===null||S===void 0||S.focus())},[a.focusedDay,e,n,f,c.outside]);var m=cL(i,c).join(" "),h=uL(i,c),b=!!(c.outside&&!i.showOutsideDays||c.hidden),v=(o=(s=i.components)===null||s===void 0?void 0:s.DayContent)!==null&&o!==void 0?o:O$,y=l.jsx(v,{date:e,displayMonth:t,activeModifiers:c}),x={style:h,className:m,children:y,role:"gridcell"},g=a.focusTarget&&wt(a.focusTarget,e)&&!c.outside,w=a.focusedDay&&wt(a.focusedDay,e),_=J(J(J({},x),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=w||g?0:-1,r)),u),k={isButton:f,isHidden:b,activeModifiers:c,selectedDays:d,buttonProps:_,divProps:x};return k}function fL(e){var t=p.useRef(null),n=dL(e.date,e.displayMonth,t);return n.isHidden?l.jsx("div",{role:"gridcell"}):n.isButton?l.jsx($c,J({name:"day",ref:t},n.buttonProps)):l.jsx("div",J({},n.divProps))}function hL(e){var t=e.number,n=e.dates,r=_e(),s=r.onWeekNumberClick,o=r.styles,i=r.classNames,a=r.locale,c=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,d=u(Number(t),{locale:a});if(!s)return l.jsx("span",{className:i.weeknumber,style:o.weeknumber,children:d});var f=c(Number(t),{locale:a}),m=function(h){s(t,n,h)};return l.jsx($c,{name:"week-number","aria-label":f,className:i.weeknumber,style:o.weeknumber,onClick:m,children:d})}function pL(e){var t,n,r=_e(),s=r.styles,o=r.classNames,i=r.showWeekNumber,a=r.components,c=(t=a==null?void 0:a.Day)!==null&&t!==void 0?t:fL,u=(n=a==null?void 0:a.WeekNumber)!==null&&n!==void 0?n:hL,d;return i&&(d=l.jsx("td",{className:o.cell,style:s.cell,children:l.jsx(u,{number:e.weekNumber,dates:e.dates})})),l.jsxs("tr",{className:o.row,style:s.row,children:[d,e.dates.map(function(f){return l.jsx("td",{className:o.cell,style:s.cell,role:"presentation",children:l.jsx(c,{displayMonth:e.displayMonth,date:f})},H4(f))})]})}function Ty(e,t,n){for(var r=n!=null&&n.ISOWeek?z1(t):_m(t,n),s=n!=null&&n.ISOWeek?Fs(e):Rn(e,n),o=Cn(r,s),i=[],a=0;a<=o;a++)i.push(ct(s,a));var c=i.reduce(function(u,d){var f=n!=null&&n.ISOWeek?W1(d):H1(d,n),m=u.find(function(h){return h.weekNumber===f});return m?(m.dates.push(d),u):(u.push({weekNumber:f,dates:[d]}),u)},[]);return c}function mL(e,t){var n=Ty(St(e),bm(e),t);if(t!=null&&t.useFixedWeeks){var r=q4(e,t);if(r<6){var s=n[n.length-1],o=s.dates[s.dates.length-1],i=Nh(o,6-r),a=Ty(Nh(o,1),i,t);n.push.apply(n,a)}}return n}function gL(e){var t,n,r,s=_e(),o=s.locale,i=s.classNames,a=s.styles,c=s.hideHead,u=s.fixedWeeks,d=s.components,f=s.weekStartsOn,m=s.firstWeekContainsDate,h=s.ISOWeek,b=mL(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:h,locale:o,weekStartsOn:f,firstWeekContainsDate:m}),v=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:R$,y=(n=d==null?void 0:d.Row)!==null&&n!==void 0?n:pL,x=(r=d==null?void 0:d.Footer)!==null&&r!==void 0?r:E$;return l.jsxs("table",{id:e.id,className:i.table,style:a.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&l.jsx(v,{}),l.jsx("tbody",{className:i.tbody,style:a.tbody,children:b.map(function(g){return l.jsx(y,{displayMonth:e.displayMonth,dates:g.dates,weekNumber:g.weekNumber},g.weekNumber)})}),l.jsx(x,{displayMonth:e.displayMonth})]})}function vL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var yL=vL()?p.useLayoutEffect:p.useEffect,zd=!1,xL=0;function Ry(){return"react-day-picker-".concat(++xL)}function wL(e){var t,n=e??(zd?Ry():null),r=p.useState(n),s=r[0],o=r[1];return yL(function(){s===null&&o(Ry())},[]),p.useEffect(function(){zd===!1&&(zd=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function bL(e){var t,n,r=_e(),s=r.dir,o=r.classNames,i=r.styles,a=r.components,c=Za().displayMonths,u=wL(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),d=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[o.month],m=i.month,h=e.displayIndex===0,b=e.displayIndex===c.length-1,v=!h&&!b;s==="rtl"&&(t=[h,b],b=t[0],h=t[1]),h&&(f.push(o.caption_start),m=J(J({},m),i.caption_start)),b&&(f.push(o.caption_end),m=J(J({},m),i.caption_end)),v&&(f.push(o.caption_between),m=J(J({},m),i.caption_between));var y=(n=a==null?void 0:a.Caption)!==null&&n!==void 0?n:N$;return l.jsxs("div",{className:f.join(" "),style:m,children:[l.jsx(y,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(gL,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function _L(e){var t=_e(),n=t.classNames,r=t.styles;return l.jsx("div",{className:n.months,style:r.months,children:e.children})}function kL(e){var t,n,r=e.initialProps,s=_e(),o=Pm(),i=Za(),a=p.useState(!1),c=a[0],u=a[1];p.useEffect(function(){s.initialFocus&&o.focusTarget&&(c||(o.focus(o.focusTarget),u(!0)))},[s.initialFocus,c,o.focus,o.focusTarget,o]);var d=[s.classNames.root,s.className];s.numberOfMonths>1&&d.push(s.classNames.multiple_months),s.showWeekNumber&&d.push(s.classNames.with_weeknumber);var f=J(J({},s.styles.root),s.style),m=Object.keys(r).filter(function(b){return b.startsWith("data-")}).reduce(function(b,v){var y;return J(J({},b),(y={},y[v]=r[v],y))},{}),h=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:_L;return l.jsx("div",J({className:d.join(" "),style:f,dir:s.dir,id:s.id,nonce:r.nonce,title:r.title,lang:r.lang},m,{children:l.jsx(h,{children:i.displayMonths.map(function(b,v){return l.jsx(bL,{displayIndex:v,displayMonth:b},v)})})}))}function SL(e){var t=e.children,n=G4(e,["children"]);return l.jsx(h$,{initialProps:n,children:l.jsx(k$,{children:l.jsx(sL,{initialProps:n,children:l.jsx(A$,{initialProps:n,children:l.jsx(D$,{initialProps:n,children:l.jsx(H$,{children:l.jsx(nL,{children:t})})})})})})})}function CL(e){return l.jsx(SL,J({},e,{children:l.jsx(kL,{initialProps:e})}))}function rk({className:e,classNames:t,showOutsideDays:n=!0,...r}){return l.jsx(CL,{showOutsideDays:n,className:G("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
286ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:G(bh({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:G(bh({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>l.jsx(YN,{className:"h-4 w-4"}),IconRight:({...s})=>l.jsx(QN,{className:"h-4 w-4"})},...r})}rk.displayName="Calendar";function jL({joinedSince:e,onChange:t,onReset:n}){const[r,s]=p.useState(e),[o,i]=p.useState(!1),a=f=>{s(f),i(!1)},c=()=>{t("dates.joinedSince",r)},u=f=>{f.key==="Enter"&&c()},d=()=>{s(void 0),t("dates.joinedSince",void 0)};return l.jsxs("div",{className:"p-4 space-y-4",onKeyDown:u,children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h3",{className:"matrix-section-label",children:"Account Age"}),l.jsx(xe,{variant:"ghost",size:"sm",onClick:n,className:"text-xs text-muted-foreground hover:text-foreground",children:"Reset"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Joined Since"}),l.jsxs(j1,{open:o,onOpenChange:i,children:[l.jsx(N1,{asChild:!0,children:l.jsxs(xe,{variant:"outline",className:G("w-full justify-start text-left font-mono matrix-input",!r&&"text-muted-foreground"),children:[l.jsx(GN,{className:"mr-2 h-4 w-4"}),r?Xr(r,"PPP"):l.jsx("span",{children:"Pick a date"})]})}),l.jsx(mm,{className:"w-auto p-0 matrix-popover",align:"start",children:l.jsx(rk,{mode:"single",selected:r,onSelect:a,initialFocus:!0,className:"p-3 pointer-events-auto"})})]}),r&&l.jsx(xe,{variant:"ghost",size:"sm",onClick:d,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear date"})]}),l.jsx("div",{className:"flex justify-end pt-2",children:l.jsx(xe,{size:"sm",onClick:c,className:"text-xs font-mono",children:"Apply"})})]})}const NL=[{label:"<10k",max:1e4},{label:"10k-100k",min:1e4,max:1e5},{label:"100k-1M",min:1e5,max:1e6},{label:"1M-10M",min:1e6,max:1e7},{label:">10M",min:1e7}];function EL({marketCap:e,onChange:t,onReset:n}){var u,d;const[r,s]=p.useState({min:((u=e.min)==null?void 0:u.toString())||"",max:((d=e.max)==null?void 0:d.toString())||""}),o=(f,m)=>{s(h=>({...h,[f]:m}))},i=()=>{const f=r.min?parseFloat(r.min):void 0,m=r.max?parseFloat(r.max):void 0;t("marketCap.min",f),t("marketCap.max",m)},a=f=>{f.key==="Enter"&&i()},c=f=>{var m,h;s({min:((m=f.min)==null?void 0:m.toString())||"",max:((h=f.max)==null?void 0:h.toString())||""}),t("marketCap.min",f.min),t("marketCap.max",f.max)};return l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h3",{className:"matrix-section-label",children:"Market Cap (USD)"}),l.jsx(xe,{variant:"ghost",size:"sm",onClick:n,className:"text-xs text-muted-foreground hover:text-foreground",children:"Reset"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Min"}),l.jsx(Nt,{type:"number",placeholder:"0",value:r.min,onChange:f=>o("min",f.target.value),onKeyPress:a,className:"matrix-input"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Max"}),l.jsx(Nt,{type:"number",placeholder:"∞",value:r.max,onChange:f=>o("max",f.target.value),onKeyPress:a,className:"matrix-input"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(st,{className:"matrix-section-label",children:"Presets"}),l.jsx("div",{className:"flex flex-wrap gap-2",children:NL.map(f=>l.jsx("button",{onClick:()=>c(f),className:"matrix-preset-chip rounded",children:f.label},f.label))})]}),l.jsx("div",{className:"flex justify-end pt-2",children:l.jsx(xe,{size:"sm",onClick:i,className:"text-xs font-mono",children:"Apply"})})]})}function PL({filters:e,onFiltersChange:t}){const[n,r]=p.useState(null),s=wi(),o=p.useMemo(()=>({scope:e.scope!=="creatorAndReceiver"?1:0,directPerson:Object.keys(e.directPerson).length,verification:e.verification.blueVerified!==void 0&&e.verification.blueVerified!==null?1:0,stats:Object.keys(e.stats).length,accountAge:e.dates.joinedSince?1:0,marketCap:Object.keys(e.marketCap).length}),[e]),i=p.useCallback((u,d)=>{const f={...e},m=u.split(".");let h=f;for(let v=0;v<m.length-1;v++)h[m[v]]||(h[m[v]]={}),h=h[m[v]];const b=m[m.length-1];d==null||d===""?delete h[b]:h[b]=d,t(f)},[e,t]),a=p.useCallback(u=>{const d={...e};switch(u){case"scope":d.scope="creatorAndReceiver";break;case"directPerson":d.directPerson={};break;case"verification":d.verification={};break;case"stats":d.stats={};break;case"accountAge":d.dates={};break;case"marketCap":d.marketCap={};break}t(d)},[e,t]),c=({category:u,label:d,count:f})=>l.jsxs(j1,{open:n===u,onOpenChange:m=>r(m?u:null),children:[l.jsx(N1,{asChild:!0,children:l.jsxs(xe,{variant:"ghost",size:"sm",className:s?"inline-flex items-center justify-center h-8 rounded-md border border-[#1a261a] px-3 text-[11px] tracking-wider font-mono uppercase leading-tight":"matrix-filter-trigger relative px-3 py-1.5 h-auto rounded-md","data-state":n===u?"open":"closed",children:[d,f>0&&l.jsx("span",{className:s?"ml-1 bg-accent/20 text-accent px-1 rounded text-[10px]":"matrix-filter-badge ml-2",children:f})]})}),l.jsxs(mm,{className:"matrix-popover w-80 p-0 rounded-lg animate-in fade-in-0 zoom-in-95 duration-200",align:"start",sideOffset:4,children:[u==="scope"&&l.jsx(DD,{value:e.scope,onCh
286ange:m=>i("scope",m),onReset:()=>a("scope")}),u==="directPerson"&&l.jsx($D,{filters:e.directPerson,onChange:i,onReset:()=>a("directPerson")}),u==="verification"&&l.jsx(LD,{blueVerified:e.verification.blueVerified,onChange:i,onReset:()=>a("verification")}),u==="stats"&&l.jsx(FD,{stats:e.stats,onChange:i,onReset:()=>a("stats")}),u==="accountAge"&&l.jsx(jL,{joinedSince:e.dates.joinedSince,onChange:i,onReset:()=>a("accountAge")}),u==="marketCap"&&l.jsx(EL,{marketCap:e.marketCap,onChange:i,onReset:()=>a("marketCap")})]})]});return l.jsx("div",{className:"matrix-filter-bar px-4 py-3 rounded-lg mb-4",children:s?l.jsxs("div",{className:"grid grid-cols-2 gap-x-3 gap-y-4 overflow-visible",children:[l.jsx(c,{category:"scope",label:"FILTER SCOPE",count:o.scope}),l.jsx(c,{category:"directPerson",label:"DIRECT PERSON",count:o.directPerson}),l.jsx(c,{category:"verification",label:"VERIFICATION",count:o.verification}),l.jsx(c,{category:"stats",label:"STATS",count:o.stats}),l.jsx(c,{category:"accountAge",label:"ACCOUNT AGE",count:o.accountAge}),l.jsx(c,{category:"marketCap",label:"MARKET CAP",count:o.marketCap})]}):l.jsxs("div",{className:"flex items-center gap-3 overflow-x-auto scrollbar-hide",children:[l.jsx(c,{category:"scope",label:"FILTER SCOPE",count:o.scope}),l.jsx("div",{className:"h-4 w-px bg-border/50"}),l.jsx(c,{category:"directPerson",label:"DIRECT PERSON",count:o.directPerson}),l.jsx("div",{className:"h-4 w-px bg-border/50"}),l.jsx(c,{category:"verification",label:"VERIFICATION",count:o.verification}),l.jsx("div",{className:"h-4 w-px bg-border/50"}),l.jsx(c,{category:"stats",label:"STATS",count:o.stats}),l.jsx("div",{className:"h-4 w-px bg-border/50"}),l.jsx(c,{category:"accountAge",label:"ACCOUNT AGE",count:o.accountAge}),l.jsx("div",{className:"h-4 w-px bg-border/50"}),l.jsx(c,{category:"marketCap",label:"MARKET CAP",count:o.marketCap})]})})}const Rm="3wka7mLJyAWfQYzcpT54VGpPkJAKNgT4cyjbqGpXBAGS";function TL({address:e=Rm,className:t}){const{toast:n}=ui(),r=async()=>{try{await navigator.clipboard.writeText(e),n({title:"Contract copied",description:"Address saved to clipboard"})}catch{n({title:"Copy failed",description:"Please try again",variant:"destructive"})}};return l.jsxs("button",{onClick:r,className:G("group mt-1 flex flex-wrap items-center gap-2 font-mono text-xs md:text-sm text-foreground hover:text-primary transition-colors max-w-full w-full md:w-auto text-left",t),"aria-label":"Copy contract address",children:[l.jsx("span",{className:"break-all max-w-full",children:e}),l.jsx(_a,{className:"w-4 h-4 opacity-70 group-hover:opacity-100"})]})}const RL=`https://axiom.trade/t/${Rm}/@fomomofo`;function sk(){return l.jsx("footer",{className:"border-t border-border bg-background/80 overflow-x-hidden",children:l.jsx("div",{className:"container mx-auto px-4 py-8",children:l.jsx(nt,{className:"p-5 bg-card",children:l.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Community token"}),l.jsx(TL,{}),l.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"royalties go towards api costs, dev costs + more to come"})]}),l.jsx("div",{className:"flex items-center gap-3",children:l.jsx(xe,{asChild:!0,className:"bg-gradient-to-r from-primary to-primary-glow hover:from-primary-glow hover:to-primary",children:l.jsxs("a",{href:RL,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:["Buy now",l.jsx(nE,{className:"w-4 h-4"})]})})})]})})})})}function Oy(e,[t,n]){return Math.min(n,Math.max(t,e))}var OL=p.createContext(void 0);function Om(e){const t=p.useContext(OL);return e||t||"ltr"}var AL=[" ","Enter","ArrowUp","ArrowDown"],ML=[" ","Enter"],zs="Select",[ju,Nu,IL]=Tp(zs),[bi,j3]=pn(zs,[IL,mi]),Eu=mi(),[DL,Zr]=bi(zs),[$L,LL]=bi(zs),ok=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:o,value:i,defaultValue:a,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:m,required:h,form:b}=e,v=Eu(t),[y,x]=p.useState(null),[g,w]=p.useState(null),[_,k]=p.useState(!1),S=Om(u),[j,P]=Jn({prop:r,defaultProp:s??!1,onChange:o,caller:zs}),[R,O]=Jn({prop:i,defaultProp:a,onChange:c,caller:zs}),T=p.useRef(null),E=y?b||!!y.closest("form"):!0,[L,A]=p.useState(new Set),H=Array.from(L).map(F=>F.props.value).join(";");return l.jsx(Vp,{...v,children:l.jsxs(DL,{required:h,scope:t,trigger:y,onTriggerChange:x,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:_,onValueNodeHasChildrenChange:k,contentId:En(),value:R,onValueChange:O,open:j,onOpenChange:P,dir:S,triggerPointerDownPosRef:T,disabled:m,children:[l.jsx(ju.Provider,{scope:t,children:l.jsx($L,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(F=>{A(I=>new Set(I).add(F))},[]),onNativeOptionRemove:p.useCallback(F=>{A(I=>{const N=new Set(I);return N.delete(F),N})},[]),children:n})}),E?l.jsxs(Pk,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:R,onChange:F=>O(F.target.value),disabled:m,form:b,children:[R===void 0?l.jsx("option",{value:""}):null,Array.from(L)]},H):null]})})};ok.displayName=zs;var ik="SelectTrigger",ak=p.forwardRef((e,t)=>
vendor: 16,785 bytes, line 286
286{const{__scopeSelect:n,disabled:r=!1,...s}=e,o=Eu(n),i=Zr(ik,n),a=i.disabled||r,c=pe(t,i.onTriggerChange),u=Nu(n),d=p.useRef("touch"),[f,m,h]=Rk(v=>{const y=u().filter(w=>!w.disabled),x=y.find(w=>w.value===i.value),g=Ok(y,v,x);g!==void 0&&i.onValueChange(g.value)}),b=v=>{a||(i.onOpenChange(!0),h()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return l.jsx(au,{asChild:!0,...o,children:l.jsx(Y.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Tk(i.value)?"":void 0,...s,ref:c,onClick:V(s.onClick,v=>{v.currentTarget.focus(),d.current!=="mouse"&&b(v)}),onPointerDown:V(s.onPointerDown,v=>{d.current=v.pointerType;const y=v.target;y.hasPointerCapture(v.pointerId)&&y.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(b(v),v.preventDefault())}),onKeyDown:V(s.onKeyDown,v=>{const y=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(y&&v.key===" ")&&AL.includes(v.key)&&(b(),v.preventDefault())})})})});ak.displayName=ik;var lk="SelectValue",ck=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:o,placeholder:i="",...a}=e,c=Zr(lk,n),{onValueNodeHasChildrenChange:u}=c,d=o!==void 0,f=pe(t,c.onValueNodeChange);return ze(()=>{u(d)},[u,d]),l.jsx(Y.span,{...a,ref:f,style:{pointerEvents:"none"},children:Tk(c.value)?l.jsx(l.Fragment,{children:i}):o})});ck.displayName=lk;var FL="SelectIcon",uk=p.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return l.jsx(Y.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});uk.displayName=FL;var zL="SelectPortal",dk=e=>l.jsx(Ba,{asChild:!0,...e});dk.displayName=zL;var Bs="SelectContent",fk=p.forwardRef((e,t)=>{const n=Zr(Bs,e.__scopeSelect),[r,s]=p.useState();if(ze(()=>{s(new DocumentFragment)},[]),!n.open){const o=r;return o?Hs.createPortal(l.jsx(hk,{scope:e.__scopeSelect,children:l.jsx(ju.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),o):null}return l.jsx(pk,{...e,ref:t})});fk.displayName=Bs;var Zt=10,[hk,es]=bi(Bs),BL="SelectContentImpl",WL=Os("SelectContent.RemoveScroll"),pk=p.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:i,side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:b,hideWhenDetached:v,avoidCollisions:y,...x}=e,g=Zr(Bs,n),[w,_]=p.useState(null),[k,S]=p.useState(null),j=pe(t,B=>_(B)),[P,R]=p.useState(null),[O,T]=p.useState(null),E=Nu(n),[L,A]=p.useState(!1),H=p.useRef(!1);p.useEffect(()=>{if(w)return cm(w)},[w]),lm();const F=p.useCallback(B=>{const[me,...Me]=E().map(de=>de.ref.current),[fe]=Me.slice(-1),le=document.activeElement;for(const de of B)if(de===le||(de==null||de.scrollIntoView({block:"nearest"}),de===me&&k&&(k.scrollTop=0),de===fe&&k&&(k.scrollTop=k.scrollHeight),de==null||de.focus(),document.activeElement!==le))return},[E,k]),I=p.useCallback(()=>F([P,w]),[F,P,w]);p.useEffect(()=>{L&&I()},[L,I]);const{onOpenChange:N,triggerPointerDownPosRef:M}=g;p.useEffect(()=>{if(w){let B={x:0,y:0};const me=fe=>{var le,de;B={x:Math.abs(Math.round(fe.pageX)-(((le=M.current)==null?void 0:le.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((de=M.current)==null?void 0:de.y)??0))}},Me=fe=>{B.x<=10&&B.y<=10?fe.preventDefault():w.contains(fe.target)||N(!1),document.removeEventListener("pointermove",me),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",Me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",Me,{capture:!0})}}},[w,N,M]),p.useEffect(()=>{const B=()=>N(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[N]);const[z,K]=Rk(B=>{const me=E().filter(le=>!le.disabled),Me=me.find(le=>le.ref.current===document.activeElement),fe=Ok(me,B,Me);fe&&setTimeout(()=>fe.ref.current.focus())}),q=p.useCallback((B,me,Me)=>{const fe=!H.current&&!Me;(g.value!==void 0&&g.value===me||fe)&&(R(B),fe&&(H.current=!0))},[g.value]),te=p.useCallback(()=>w==null?void 0:w.focus(),[w]),X=p.useCallback((B,me,Me)=>{const fe=!H.current&&!Me;(g.value!==void 0&&g.value===me||fe)&&T(B)},[g.value]),ke=r==="popper"?Ph:mk,Ae=ke===Ph?{side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:b,hideWhenDetached:v,avoidCollisions:y}:{};return l.jsx(hk,{scope:n,content:w,viewport:k,onViewportChange:S,itemRefCallback:q,selectedItem:P,onItemLeave:te,itemTextRefCallback:X,focusSelectedItem:I,selectedItemText:O,position:r,isPositioned:L,searchRef:z,children:l.jsx(bu,{as:WL,allowPinchZoom:!0,children:l.jsx(xu,{asChild:!0,trapped:g.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:V(s,B=>{var me;(me=g.trigger)==null||me.focus({preventScroll:!0}),B.preventDefault()}),children:l.jsx(di,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:l.jsx(ke,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:B=>B.preventDefault(),...x,...Ae,onPlaced:()=>A(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:V(x.onKeyDown,B=>{const me=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!me&&B.key.length===1&&K(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let fe=E().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(B.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const le=B.target,de=fe.indexOf(le);fe=fe.slice(de+1)}setTimeout(()=>F(fe)),B.preventDefault()}})})})})})})});pk.displayName=BL;var UL="SelectItemAlignedPosition",mk=p.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,o=Zr(Bs,n),i=es(Bs,n),[a,c]=p.useState(null),[u,d]=p.useState(null),f=pe(t,j=>d(j)),m=Nu(n),h=p.useRef(!1),b=p.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:x,focusSelectedItem:g}=i,w=p.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&u&&v&&y&&x){const j=o.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),R=o.valueNode.getBoundingClientRect(),O=x.getBoundingClientRect();if(o.dir!=="rtl"){const le=O.left-P.left,de=R.left-le,Xe=j.left-de,Dt=j.width+Xe,ts=Math.max(Dt,P.width),tr=window.innerWidth-Zt,ns=Oy(de,[Zt,Math.max(Zt,tr-ts)]);a.style.minWidth=Dt+"px",a.style.left=ns+"px"}else{const le=P.right-O.right,de=window.innerWidth-R.right-le,Xe=window.innerWidth-j.right-de,Dt=j.width+Xe,ts=Math.max(Dt,P.width),tr=window.innerWidth-Zt,ns=Oy(de,[Zt,Math.max(Zt,tr-ts)]);a.style.minWidth=Dt+"px",a.style.right=ns+"px"}const T=m(),E=window.innerHeight-Zt*2,L=v.scrollHeight,A=window.getComputedStyle(u),H=parseInt(A.borderTopWidth,10),F=parseInt(A.paddingTop,10),I=parseInt(A.borderBottomWidth,10),N=parseInt(A.paddingBottom,10),M=H+F+L+N+I,z=Math.min(y.offsetHeight*5,M),K=window.getComputedStyle(v),q=parseInt(K.paddingTop,10),te=parseInt(K.paddingBottom,10),X=j.top+j.height/2-Zt,ke=E-X,Ae=y.offsetHeight/2,B=y.offsetTop+Ae,me=H+F+B,Me=M-me;if(me<=X){const le=T.length>0&&y===T[T.length-1].ref.current;a.style.bottom="0px";const de=u.clientHeight-v.offsetTop-v.offsetHeight,Xe=Math.max(ke,Ae+(le?te:0)+de+I),Dt=me+Xe;a.style.height=Dt+"px"}else{const le=T.length>0&&y===T[0].ref.current;a.style.top="0px";const Xe=Math.max(X,H+v.offsetTop+(le?q:0)+Ae)+Me;a.style.height=Xe+"px",v.scrollTop=me-X+v.offsetTop}a.style.margin=`${Zt}px 0`,a.style.minHeight=z+"px",a.style.maxHeight=E+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[m,o.trigger,o.valueNode,a,u,v,y,x,o.dir,r]);ze(()=>w(),[w]);const[_,k]=p.useState();ze(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const S=p.useCallback(j=>{j&&b.current===!0&&(w(),g==null||g(),b.current=!1)},[w,g]);return l.jsx(VL,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:l.jsx(Y.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});mk.displayName=UL;var HL="SelectPopperPosition",Ph=p.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=Zt,...o}=e,i=Eu(n);return l.jsx(qp,{...i,...o,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ph.displayName=HL;var[VL,Am]=bi(Bs,{}),Th="SelectViewport",gk=p.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,o=es(Th,n),i=Am(Th,n),a=pe(t,o.onViewportChange),c=p.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(ju.Slot,{scope:n,children:l.jsx(Y.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:V(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&f){const h=Math.abs(c.current-d.scrollTop);if(h>0){const b=window.innerHeight-Zt*2,v=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),x=Math.max(v,y);if(x<b){const g=x+h,w=Math.min(b,g),_=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=_>0?_:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});gk.displayName=Th;var vk="SelectGroup",[qL,KL]=bi(vk),GL=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=En();return l.jsx(qL,{scope:n,id:s,children:l.jsx(Y.div,{role:"group","aria-labelledby":s,...r,ref:t})})});GL.displayName=vk;var yk="SelectLabel",xk=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=KL(yk,n);return l.jsx(Y.div,{id:s.id,...r,ref:t})});xk.displayName=yk;var Lc="SelectItem",[YL,wk]=bi(Lc),bk=p.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:o,...i}=e,a=Zr(Lc,n),c=es(Lc,n),u=a.value===r,[d,f]=p.useState(o??""),[m,h]=p.useState(!1),b=pe(t,g=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,g,r,s)}),v=En(),y=p.useRef("touch"),x=()=>{s||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(YL,{scope:n,value:r,disabled:s,textId:v,isSelected:u,onItemTextChange:p.useCallback(g=>{f(w=>w||((g==null?void 0:g.textContent)??"").trim())},[]),children:l.jsx(ju.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:l.jsx(Y.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...i,ref:b,onFocus:V(i.onFocus,()=>h(!0)),onBlur:V(i.onBlur,()=>h(!1)),onClick:V(i.onClick,()=>{y.current!=="mouse"&&x()}),onPointerUp:V(i.onPointerUp,()=>{y.current==="mouse"&&x()}),onPointerDown:V(i.onPointerDown,g=>{y.current=g.pointerType}),onPointerMove:V(i.onPointerMove,g=>{var w;y.current=g.pointerType,s?(w=c.onItemLeave)==null||w.call(c):y.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(i.onPointerLeave,g=>{var w;g.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:V(i.onKeyDown,g=>{var _;((_=c.searchRef)==null?void 0:_.current)!==""&&g.key===" "||(ML.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})})})})});bk.displayName=Lc;var Vi="SelectItemText",_k=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...o}=e,i=Zr(Vi,n),a=es(Vi,n),c=wk(Vi,n),u=LL(Vi,n),[d,f]=p.useState(null),m=pe(t,x=>f(x),c.onItemTextChange,x=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,x,c.value,c.disabled)}),h=d==null?void 0:d.textContent,b=p.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=u;return ze(()=>(v(b),()=>y(b)),[v,y,b]),l.jsxs(l.Fragment,{children:[l.jsx(Y.span,{id:c.textId,...o,ref:m}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Hs.createPortal(o.children,i.valueNode):null]})});_k.displayName=Vi;var kk="SelectItemIndicator",Sk=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return wk(kk,n).isSelected?l.jsx(Y.span,{"aria-hidden":!0,...r,ref:t}):null});Sk.displayName=kk;var Rh="SelectScrollUpButton",Ck=p.forwardRef((e,t)=>{const n=es(Rh,e.__scopeSelect),r=Am(Rh,e.__scopeSelect),[s,o]=p.useState(!1),i=pe(t,r.onScrollButtonChange);return ze(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollTop>0;o(u)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?l.jsx(Nk,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});Ck.displayName=Rh;var Oh="SelectScrollDownButton",jk=p.forwardRef((e,t)=>{const n=es(Oh,e.__scopeSelect),r=Am(Oh,e.__scopeSelect),[s,o]=p.useState(!1),i=pe(t,r.onScrollButtonChange);return ze(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;o(d)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?l.jsx(Nk,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});jk.displayName=Oh;var Nk=p.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,o=es("SelectScrollButton",n),i=p.useRef(null),a=Nu(n),c=p.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),ze(()=>{var d;const u=a().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),l.jsx(Y.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:V(s.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:V(s.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:V(s.onPointerLeave,()=>{c()})})}),QL="SelectSeparator",Ek=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(Y.div,{"aria-hidden":!0,...r,ref:t})});Ek.displayName=QL;var Ah="SelectArrow",JL=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Eu(n),o=Zr(Ah,n),i=es(Ah,n);return o.open&&i.position==="popper"?l.jsx(Kp,{...s,...r,ref:t}):null});JL.displayName=Ah;var XL="SelectBubbleInput",Pk=p.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=p.useRef(null),o=pe(r,s),i=E1(t);return p.useEffect(()=>{const a=s.current;if(!a)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&d){const f=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[i,t]),l.jsx(Y.select,{...n,style:{...fw,...n.style},ref:o,defaultValue:t})});Pk.displayName=XL;function Tk(e){return e===""||e===void 0}function Rk(e){const t=Ot(e),n=p.useRef(""),r=p.useRef(0),s=p.useCallback(i=>{const a=n.current+i;t(a),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),o=p.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,o]}function Ok(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=ZL(e,Math.max(o,0));s.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function ZL(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var eF=ok,Ak=ak,tF=ck,nF=uk,rF=dk,Mk=fk,sF=gk,Ik=xk,Dk=bk,oF=_k,iF=Sk,$k=Ck,Lk=jk,Fk=Ek;const aF=eF,lF=tF,zk=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Ak,{ref:r,className:G("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
286ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsx(nF,{asChild:!0,children:l.jsx(Iw,{className:"h-4 w-4 opacity-50"})})]}));zk.displayName=Ak.displayName;const Bk=p.forwardRef(({className:e,...t},n)=>l.jsx($k,{ref:n,className:G("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(JN,{className:"h-4 w-4"})}));Bk.displayName=$k.displayName;const Wk=p.forwardRef(({className:e,...t},n)=>l.jsx(Lk,{ref:n,className:G("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(Iw,{className:"h-4 w-4"})}));Wk.displayName=Lk.displayName;const Uk=p.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>l.jsx(rF,{children:l.jsxs(Mk,{ref:s,className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[l.jsx(Bk,{}),l.jsx(sF,{className:G("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(Wk,{})]})}));Uk.displayName=Mk.displayName;const cF=p.forwardRef(({className:e,...t},n)=>l.jsx(Ik,{ref:n,className:G("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));cF.displayName=Ik.displayName;const Hk=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Dk,{ref:r,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(iF,{children:l.jsx(Mp,{className:"h-4 w-4"})})}),l.jsx(oF,{children:t})]}));Hk.displayName=Dk.displayName;const uF=p.forwardRef(({className:e,...t},n)=>l.jsx(Fk,{ref:n,className:G("-mx-1 my-1 h-px bg-muted",e),...t}));uF.displayName=Fk.displayName;const Vk=30,dF=[10,20,30,50,100];function qk({pageSize:e,onPageSizeChange:t,totalShown:n}){const r=s=>{const o=parseInt(s);t(o)};return l.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4 mt-6",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx("span",{children:"Show:"}),l.jsxs(aF,{value:e.toString(),onValueChange:r,children:[l.jsx(zk,{className:"w-20",children:l.jsx(lF,{})}),l.jsx(Uk,{children:dF.map(s=>l.jsx(Hk,{value:s.toString(),children:s},s))})]}),l.jsx("span",{children:"per page"})]}),l.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing 1-",n," results"]})]})}var Bd="rovingFocusGroup.onEntryFocus",fF={bubbles:!1,cancelable:!0},el="RovingFocusGroup",[Mh,Kk,hF]=Tp(el),[pF,Gk]=pn(el,[hF]),[mF,gF]=pF(el),Yk=p.forwardRef((e,t)=>l.jsx(Mh.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Mh.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(vF,{...e,ref:t})})}));Yk.displayName=el;var vF=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,m=p.useRef(null),h=pe(t,m),b=Om(o),[v,y]=Jn({prop:i,defaultProp:a??null,onChange:c,caller:el}),[x,g]=p.useState(!1),w=Ot(u),_=Kk(n),k=p.useRef(!1),[S,j]=p.useState(0);return p.useEffect(()=>{const P=m.current;if(P)return P.addEventListener(Bd,w),()=>P.removeEventListener(Bd,w)},[w]),l.jsx(mF,{scope:n,orientation:r,dir:b,loop:s,currentTabStopId:v,onItemFocus:p.useCallback(P=>y(P),[y]),onItemShiftTab:p.useCallback(()=>g(!0),[]),onFocusableItemAdd:p.useCallback(()=>j(P=>P+1),[]),onFocusableItemRemove:p.useCallback(()=>j(P=>P-1),[]),children:l.jsx(Y.div,{tabIndex:x||S===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{k.current=!0}),onFocus:V(e.onFocus,P=>{const R=!k.current;if(P.target===P.currentTarget&&R&&!x){const O=new CustomEvent(Bd,fF);if(P.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=_().filter(F=>F.focusable),E=T.find(F=>F.active),L=T.find(F=>
vendor: 6,181 bytes, line 286
286F.id===v),H=[E,L,...T].filter(Boolean).map(F=>F.ref.current);Xk(H,d)}}k.current=!1}),onBlur:V(e.onBlur,()=>g(!1))})})}),Qk="RovingFocusGroupItem",Jk=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:o,children:i,...a}=e,c=En(),u=o||c,d=gF(Qk,n),f=d.currentTabStopId===u,m=Kk(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:v}=d;return p.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),l.jsx(Mh.ItemSlot,{scope:n,id:u,focusable:r,active:s,children:l.jsx(Y.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:V(e.onMouseDown,y=>{r?d.onItemFocus(u):y.preventDefault()}),onFocus:V(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:V(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){d.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const x=wF(y,d.orientation,d.dir);if(x!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=m().filter(_=>_.focusable).map(_=>_.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const _=w.indexOf(y.currentTarget);w=d.loop?bF(w,_+1):w.slice(_+1)}setTimeout(()=>Xk(w))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:v!=null}):i})})});Jk.displayName=Qk;var yF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wF(e,t,n){const r=xF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return yF[r]}function Xk(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function bF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _F=Yk,kF=Jk,Pu="Tabs",[SF,N3]=pn(Pu,[Gk]),Zk=Gk(),[CF,Mm]=SF(Pu),eS=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:o,orientation:i="horizontal",dir:a,activationMode:c="automatic",...u}=e,d=Om(a),[f,m]=Jn({prop:r,onChange:s,defaultProp:o??"",caller:Pu});return l.jsx(CF,{scope:n,baseId:En(),value:f,onValueChange:m,orientation:i,dir:d,activationMode:c,children:l.jsx(Y.div,{dir:d,"data-orientation":i,...u,ref:t})})});eS.displayName=Pu;var tS="TabsList",nS=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...s}=e,o=Mm(tS,n),i=Zk(n);return l.jsx(_F,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:r,children:l.jsx(Y.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:t})})});nS.displayName=tS;var rS="TabsTrigger",sS=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...o}=e,i=Mm(rS,n),a=Zk(n),c=aS(i.baseId,r),u=lS(i.baseId,r),d=r===i.value;return l.jsx(kF,{asChild:!0,...a,focusable:!s,active:d,children:l.jsx(Y.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...o,ref:t,onMouseDown:V(e.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:V(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:V(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!s&&f&&i.onValueChange(r)})})})});sS.displayName=rS;var oS="TabsContent",iS=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:s,children:o,...i}=e,a=Mm(oS,n),c=aS(a.baseId,r),u=lS(a.baseId,r),d=r===a.value,f=p.useRef(d);return p.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),l.jsx(On,{present:s||d,children:({present:m})=>l.jsx(Y.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&o})})});iS.displayName=oS;function aS(e,t){return`${e}-trigger-${t}`}function lS(e,t){return`${e}-content-${t}`}var jF=eS,cS=nS,uS=sS,dS=iS;const NF=jF,fS=p.forwardRef(({className:e,...t},n)=>{const r=wi();return l.jsx(cS,{ref:n,className:G(r?"flex items-center gap-4 px-2 h-9 bg-muted border border-border rounded-md text-muted-foreground":"inline-flex h-9 items-center justify-center rounded-md bg-muted border border-border p-1 text-muted-foreground",e),...t})});fS.displayName=cS.displayName;const Xl=p.forwardRef(({className:e,children:t,...n},r)=>{const s=wi();return l.jsx(uS,{ref:r,className:G(s?"relative inline-flex items-center h-8 px-3 text-[12px] leading-[1.2] whitespace-nowrap font-mono uppercase font-medium letter-spacing-wide transition-all duration-75 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50":"inline-flex items-center justify-center whitespace-nowrap rounded px-3 py-1.5 text-xs font-mono uppercase font-medium letter-spacing-wide transition-all duration-75 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-accent data-[state=active]:border-b-2 data-[state=active]:border-accent data-[state=active]:shadow-sm",e),...n,children:s?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"relative z-10 px-0 py-0 mx-[3px] my-0",children:t}),l.jsx("div",{className:"absolute left-2 right-2 bottom-1 h-[2px] bg-accent z-0 opacity-0 data-[state=active]:opacity-100 transition-opacity duration-75",style:{display:n["data-state"]==="active"?"block":"none"}})]}):t})});Xl.displayName=uS.displayName;const Zl=p.forwardRef(({className:e,...t},n)=>l.jsx(dS,{ref:n,className:G("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Zl.displayName=dS.displayName;const Im={scope:"creatorAndReceiver",directPerson:{},verification:{},stats:{},dates:{},marketCap:{}};function EF(e){const t=new URLSearchParams;return e.scope!==Im.scope&&t.set("scope",e.scope),e.directPerson.creatorEquals&&t.set("creator_eq",e.directPerson.creatorEquals),e.directPerson.receiver
286Equals&&t.set("receiver_eq",e.directPerson.receiverEquals),e.directPerson.creatorKeywords&&t.set("creator_kw",e.directPerson.creatorKeywords),e.directPerson.receiverKeywords&&t.set("receiver_kw",e.directPerson.receiverKeywords),e.verification.blueVerified!==void 0&&e.verification.blueVerified!==null&&t.set("verified",e.verification.blueVerified.toString()),e.stats.followers&&t.set("followers_min",e.stats.followers.toString()),e.stats.following&&t.set("following_min",e.stats.following.toString()),e.stats.posts&&t.set("posts_min",e.stats.posts.toString()),e.stats.media&&t.set("media_min",e.stats.media.toString()),e.stats.ratio&&t.set("ratio_min",e.stats.ratio.toString()),e.dates.joinedSince&&t.set("joined_since",e.dates.joinedSince.toISOString().split("T")[0]),e.marketCap.min&&t.set("mcap_min",e.marketCap.min.toString()),e.marketCap.max&&t.set("mcap_max",e.marketCap.max.toString()),t}function PF(e){return{scope:e.get("scope")||Im.scope,directPerson:{creatorEquals:e.get("creator_eq")||void 0,receiverEquals:e.get("receiver_eq")||void 0,creatorKeywords:e.get("creator_kw")||void 0,receiverKeywords:e.get("receiver_kw")||void 0},verification:{blueVerified:e.get("verified")?e.get("verified")==="true":void 0},stats:{followers:e.get("followers_min")?parseInt(e.get("followers_min")):void 0,following:e.get("following_min")?parseInt(e.get("following_min")):void 0,posts:e.get("posts_min")?parseInt(e.get("posts_min")):void 0,media:e.get("media_min")?parseInt(e.get("media_min")):void 0,ratio:e.get("ratio_min")?parseFloat(e.get("ratio_min")):void 0},dates:{joinedSince:e.get("joined_since")?new Date(e.get("joined_since")):void 0},marketCap:{min:e.get("mcap_min")?parseInt(e.get("mcap_min")):void 0,max:e.get("mcap_max")?parseInt(e.get("mcap_max")):void 0}}}function TF(e){const t=EF(e),n=t.toString()?`${window.location.pathname}?${t.toString()}`:window.location.pathname;window.history.replaceState({},"",n)}function RF({tokenFilters:e}){var a;const[t,n]=p.useState(Vk),r=lM(e,{pageSize:t}),s=((a=r.data)==null?void 0:a.items)||[],{hydratedItems:o}=__(s),i=()=>r.isPending?l.jsx("div",{className:"space-y-3",children:Array.from({length:t}).map((c,u)=>l.jsx(Ue,{className:"h-16 w-full"},u))}):r.error?l.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:["Error loading tokens: ",r.error.message]}):s.length?l.jsx("div",{className:"space-y-4",children:o.map(c=>l.jsx(ZI,{token:c},c.bags_address))}):l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No tokens found matching the current filters."});return l.jsxs("div",{className:"w-full",children:[l.jsx("div",{className:"space-y-3",children:i()}),r.data&&l.jsx(qk,{pageSize:r.data.pageSize,onPageSizeChange:n,totalShown:r.data.totalShown})]})}function OF(){var i;const[e,t]=p.useState(Vk),n=cM({pageSize:e}),r=((i=n.data)==null?void 0:i.items)||[],{hydratedItems:s}=__(r),o=()=>n.isPending?l.jsx("div",{className:"space-y-3",children:Array.from({length:e}).map((a,c)=>l.jsx(Ue,{className:"h-24 w-full"},c))}):n.error?l.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:["Error loading claims: ",n.error.message]}):r.length?l.jsx("div",{className:"space-y-4",children:s.map(a=>l.jsx(oD,{claim:a},a.id))}):l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No claims available."});return l.jsxs("div",{className:"w-full",children:[o(),n.data&&l.jsx(qk,{pageSize:n.data.pageSize,onPageSizeChange:t,totalShown:n.data.totalShown})]})}function AF(){const[e,t]=p.useState(()=>{if(typeof window<"u"){const r=new URLSearchParams(window.location.search);return PF(r)}return Im});p.useEffect(()=>{const r=document.querySelector('link[rel="canonical"]')||document.createElement("link");r.setAttribute("rel","canonical"),r.setAttribute("href",window.location.origin+window.location.pathname),document.querySelector('link[rel="canonical"]')||document.head.appendChild(r)},[]);const n=p.useCallback(r=>{t(r),TF(r)},[]);return l.jsxs(l.Fragment,{children:[l.jsx(gD,{}),l.jsxs("div",{className:"container mx-auto px-4 py-6",children:[l.jsx(PL,{filters:e,onFiltersChange:n}),l.jsxs(NF,{defaultValue:"tokens",className:"w-full",children:[l.jsx("div",{className:"mb-6",children:l.jsxs(fS,{className:"bg-background border mx-0 my-0 py-0 px-0",children:[l.jsx(Xl,{value:"tokens",className:"text-sm font-medium px-6",children:"LATEST TOKENS"}),l.jsx(Xl,{value:"claims",className:"text-sm font-medium mx-0 px-0",children:"LATEST CLAIMS"}),l.jsx(Xl,{value:"redacted",className:"hidden md:inline-flex text-sm font-medium px-6",disabled:!0,children:"REDACTED"})]})}),l.jsx(Zl,{value:"tokens",className:"mt-0",children:l.jsx(RF,{tokenFilters:e})}),l.jsx(Zl,{value:"claims",className:"mt-0",children:l.jsx(OF,{})}),l.jsx(Zl,{value:"redacted",className:"hidden md:block mt-0",children:l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Coming soon..."})})]})]}),l.jsx(sk,{})]})}function Al({label:e,value:t,subtitle:n,trend:r,trendValue:s}){return l.jsx(nt,{className:"p-4 bg-gradient-card border-border hover:shadow-glow transition-all duration-300",children:l.jsx("div",{className:"flex items-start justify-between",children:l.jsxs("div",{className:"space-y-1",children:[l.jsx("p",{className:"text-sm text-muted-foreground font-medium",children:e}),l.jsxs("div",{className:"flex items-baseline gap-2",children:[l.jsx("h3",{className:"text-2xl font-bold text-foreground",children:t}),r&&s&&l.jsxs("div",{className:`flex items-center gap-1 text-xs font-medium ${r==="up"?"text-profit":"text-loss"}`,children:[r==="up"?l.jsx(Fw,{className:"w-3 h-3"}):l.jsx(Lw,{className:"w-3 h-3"}),s]})]}),n&&l.jsx("p",{className:"text-xs text-muted-foreground",children:n})]})})})}function MF(){var a,c,u;const[e,t]=p.useState(!1),[n,r]=p.useState(null),[s,o]=p.useState(null),i=async()=>{t(!0),o(null),r(null);try{console.log("Triggering Dune sync...");const{data:d,error:f}=await oe.functions.invoke("dune-sync",{body:{}});if(f)throw f;r(d),console.log("Sync result:",d)}catch(d){o(d.message||"Sync failed"),console.error("Sync error:",d)}finally{t(!1)}};return l.jsxs(nt,{className:"p-6 bg-card border-border",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l.jsx(tE,{className:"w-5 h-5 text-primary"}),l.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Database Sync"})]}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"Manually trigger the Dune data sync to update the database with the latest market data."}),l.jsxs("div",{className:"space-y-4",children:[l.jsx(xe,{onClick:i,disabled:e,className:"w-full",children:e?l.jsxs(l.Fragment,{children:[l.jsx(Dw,{className:"w-4 h-4 mr-2 animate-spin"}),"Syncing Data..."]}):l.jsxs(l.Fragment,{children:[l.jsx($w,{className:"w-4 h-4 mr-2"}),"Sync Database"]})}),l.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg border text-xs",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[l.jsx(ZN,{className:"w-3 h-3 text-muted-foreground"}),l.jsx("span",{className:"text-muted-foreground",children:"Automation Status"})]}),l.jsx("p",{className:"text-foreground",children:"✅ Auto-sync scheduled every 30 minutes"}),l.jsx("p",{className:"text-muted-foreground mt-1",children:"The database will automatically update with fresh Dune data every 30 minutes."})]})]}),n&&l.jsxs("div",{className:"mt-4 space-y-2",children:[l.jsx("h4",{className:"text-sm font-medium text-success",children:"✅ Sync Successful"}),l.jsx("div",{className:"p-3 bg-success/10 rounded-lg border border-success/20",children:l.jsxs("div",{className:"grid grid-cols-3 gap-4 text-xs",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-muted-foreground",children:"Tokens Updated"}),l.jsx("p",{className:"font-semibold text-foreground",children:((a=n.counts)==null?void 0:a.tokens)||0})]}),l.jsxs("div",{children:[l.jsx("p",{className:"text-muted-foreground",children:"Graduations"}),l.jsx("p",{className:"font-semibold text-foreground",children:((c=n.counts)==null?void 0:c.graduations)||0})]}),l.jsxs("div",{children:[l.jsx("p",{className:"text-muted-foreground",children:"Aggregates"}),l.jsx("p",{className:"font-semibold text-foreground",children:((u=n.counts)==null?void 0:u.aggregates)||0})]})]})})]}),s&&l.jsxs("div",{className:"mt-4 p-4 bg-destructive/10 rounded-lg border border-destructive/20",children:[l.jsx("h4",{className:"text-sm font-medium text-destructive mb-2",children:"❌ Sync Failed"}),l.jsx("p",{className:"text-xs text-destructive",children:s})]})]})}function IF(){const[e,t]=p.useState(!1),[n,r]=p.useState(null),[s,o]=p.useState(null),i=async()=>{t(!0),o(null),r(null);try{console.log("Inspecting Dune data structure...");const{data:a,error:c}=await oe.functions.invoke("dune-inspect",{body:{}});if(c)throw c;r(a),console.log("Raw Dune data structure:",a)}catch(a){o(a.message||"Inspection failed"),console.error("Inspection error:",a)}finally{t(!1)}};return l.jsxs(nt,{className:"p-6 bg-card border-border",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l.jsx(aE,{className:"w-5 h-5 text-primary"}),l.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Dune Data Inspector"})]}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"This will show us the actual column names from your Dune queries so we can fix the mapping."}),l.jsx(xe,{onClick:i,disabled:e,className:"w-full mb-4",children:e?l.jsxs(l.Fragment,{children:[l.jsx(Dw,{className:"w-4 h-4 mr-2 animate-spin"}),"Inspecting Dune Data..."]}):l.jsxs(l.Fragment,{children:[l.jsx(eE,{className:"w-4 h-4 mr-2"}),"Inspect Raw Dune Data"]})}),n&&l.jsxs("div",{className:"mt-4 space-y-4",children:[l.jsx("h4",{className:"text-sm font-medium text-success",children:"✅ Raw Dune Query Results:"}),Object.entries(n).map(([a,c])=>l.jsxs("div",{className:"p-4 bg-background/50 rounded-lg border",children:[l.jsxs("h5",{className:"font-semibold text-foreground mb-2",children:[a,":"]}),l.jsx("div",{className:"text-xs font-mono bg-muted p-3 rounded overflow-auto max-h-60",children:l.jsx("pre",{className:"text-foreground",children:JSON.stringify(c,null,2)})})]},a)),l.jsx("div",{className:"p-4 bg-warning/10 rounded-lg border border-warning/20",children:l.jsx("p",{className:"text-xs text-warning",children:"📝 Look at the column names above - we'll use these to fix the mappers!"})})]}),s&&l.jsxs("div",{className:"mt-4 p-4 bg-destructive/10 rounded-lg border border-destructive/20",children:[l.jsx("h4",{className:"text-sm font-medium text-destructive mb-2",children:"❌ Inspection Failed"}),l.jsx("p",{className:"text-xs text-destructive",children:s})]})]})}function DF(){const[e,t]=p.useState(!1),{toast:n}=ui(),r=async()=>{var s,o;t(!0),console.log("Starting dune-sync...");try{console.log("Invoking dune-sync function...");const{data:i,error:a}=await oe.functions.invoke("dune-sync");if(console.log("Function response:",{data:i,error:a}),a)throw console.error("Function error:",a),a;console.log("Sync successful:",i),n({title:"Sync Complete!",description:`Updated ${((s=i.counts)==null?void 0:s.tokens)||0} tokens and ${((o=i.counts)==null?void 0:o.token_fees)||0} fee records`}),setTimeout(()=>{window.location.reload()},1500)}catch(i){console.error("Sync error:",i),n({title:"Sync Failed",description:i.message||"Failed to sync data",variant:"destructive"})}finally{console.log("Sync process completed"),t(!1)}};return l.jsxs(xe,{onClick:r,disabled:e,variant:"outline",size:"sm",className:"gap-2",children:[l.jsx($w,{className:`h-4 w-4 ${e?"animate-spin":""}`}),e?"Syncing...":"Refresh Data"]})}const $F="K7$mN9#zR2@qX8!pL5&wB3*vF6^jH4%",LF=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(!1),[s,o]=p.useState(!1),[i,a]=p.useState(""),c=u=>{u.preventDefault(),e===$F?(r(!0),a("")):a("Invalid password")};return n?l.jsx("div",{className:"min-h-screen bg-background",children:l.jsxs("div",{className:"container mx-auto px-4 py-8",children:[l.jsxs("div",{className:"flex items-center justify-between mb-8",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Admin Panel"}),l.jsx("p",{className:"text-muted-foreground",children:"Database management and monitoring tools"})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(DF,{}),l.jsx(xe,{variant:"outline",onClick:()=>r(!1),children:"Logout"})]})]}),l.jsxs("div",{className:"space-y-8",children:[l.jsxs("section",{className:"grid md:grid-cols-2 gap-6",children:[l.jsx(MF,{}),l.jsx(IF,{})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"System Status"}),l.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[l.jsx(Al,{label:"Auto Sync",value:"Active",subtitle:"Every 30 min"}),l.jsx(Al,{label:"Database",value:"Online",subtitle:"Connected"}),l.jsx(Al,{label:"Dune API",value:"Active",subtitle:"Responding"}),l.jsx(Al,{label:"Last Sync",value:"—",subtitle:"Check logs"})]})]})]})]})}):l.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:l.jsxs(nt,{className:"w-full max-w-md p-6",children:[l.jsxs("div",{className:"text-center mb-6",children:[l.jsx(iE,{className:"w-12 h-12 text-primary mx-auto mb-4"}),l.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Admin Access"}),l.jsx("p",{className:"text-muted-foreground",children:"Enter password to access admin tools"})]}),l.jsxs("form",{onSubmit:c,className:"space-y-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(Nt,{type:s?"text":"password",placeholder:"Admin password",value:e,onCh
286ange:u=>t(u.target.value),className:"pr-10"}),l.jsx(xe,{type:"button",variant:"ghost",size:"sm",className:"absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 p-0",onClick:()=>o(!s),children:s?l.jsx(rE,{className:"w-4 h-4"}):l.jsx(sE,{className:"w-4 h-4"})})]}),i&&l.jsx("p",{className:"text-sm text-destructive",children:i}),l.jsx(xe,{type:"submit",className:"w-full",children:"Access Admin Panel"})]})]})})},FF=()=>{const e=vi();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:l.jsxs("div",{className:"text-center",children:[l.jsx("h1",{className:"text-4xl font-bold mb-4 text-foreground",children:"404"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-4",children:"Oops! Page not found"}),l.jsx("a",{href:"/",className:"text-primary hover:text-primary/80 underline transition-colors",children:"Return to Bags Screener"})]})})};var zF="AspectRatio",hS=p.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...s}=e;return l.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:l.jsx(Y.div,{...s,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});hS.displayName=zF;var BF=hS;const WF=BF,UF=(e,t)=>{let n=document.querySelector(`meta[name="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t)},HF=e=>{let t=document.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.rel="canonical",document.head.appendChild(t)),t.href=e},VF=()=>new Promise(e=>{const t=window;if(t.twttr&&t.twttr.widgets){try{t.twttr.widgets.load()}catch{}e();return}const n=document.querySelector('script[src^="https://platform.twitter.com/widgets.js"]');if(n){n.addEventListener("load",()=>e());return}const r=document.createElement("script");r.async=!0,r.src="https://platform.twitter.com/widgets.js",r.charset="utf-8",r.onload=()=>e(),document.body.appendChild(r)});function qF(){p.useEffect(()=>{document.title="Your Content Just Became a Token — Now What?",UF("description","Claim royalties on tokens launched with your content. Connect X, claim your share, and get paid on every trade with bags.fm."),HF(`${window.location.origin}/creator`);try{const t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"I claimed my fees — now what?",acceptedAnswer:{"@type":"Answer",text:"Interact with the community! Community interaction is key to driving token price, volume, and ultimately your royalties."}},{"@type":"Question",name:"I see multiple tokens to claim fees. How do I know which one to claim/support?",acceptedAnswer:{"@type":"Answer",text:"You can claim them all! If you’re co-signing or pushing the coin, choose the address people keep sharing. When in doubt, tag @finnbags or @fomomofosol for help."}},{"@type":"Question",name:"I claimed my royalties — how do I transfer them to my bank?",acceptedAnswer:{"@type":"Answer",text:"Royalties are paid in SOL. Send to an exchange like Coinbase, Kraken, or Binance, sell for your local currency, then withdraw to your bank."}},{"@type":"Question",name:"Am I liable if the token goes to zero?",acceptedAnswer:{"@type":"Answer",text:"No. People understand crypto risk. Avoid explicitly telling people to buy or claiming you will drive the price up."}}]},n=document.createElement("script");n.type="application/ld+json",n.text=JSON.stringify(t),document.head.appendChild(n)}catch{}},[]);const e=({url:t,amount:n})=>{p.useEffect(()=>{VF().then(()=>{var s,o;try{(o=(s=window.twttr)==null?void 0:s.widgets)==null||o.load()}catch{}})},[t]);const r=t.replace(/^https?:\/\/x\.com/i,"https://twitter.com");return l.jsxs(nt,{className:"p-4 bg-card border-border",children:[l.jsx("div",{className:"mb-3",children:l.jsxs("p",{className:"text-lg md:text-xl font-semibold text-foreground",children:["💰 ",n]})}),l.jsx("blockquote",{className:"twitter-tweet","data-dnt":"true",children:l.jsx("a",{href:r})}),l.jsx("div",{className:"sr-only",children:l.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:"View on X"})})]})};return l.jsxs("div",{className:"min-h-screen bg-background pb-24 md:pb-0",children:[l.jsx("header",{className:"relative overflow-hidden",children:l.jsxs("div",{className:"container mx-auto px-4 pt-10 pb-8",children:[l.jsx("div",{className:"mb-4",children:l.jsx(xe,{asChild:!0,variant:"secondary",size:"sm",className:"inline-flex items-center gap-2",children:l.jsxs(tm,{to:"/","aria-label":"Go to homepage",children:[l.jsx(oE,{className:"w-4 h-4"}),l.jsx("span",{className:"hidden sm:inline",children:"Home"})]})})}),l.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-foreground tracking-tight",children:"Your Content Just Became a Token — Now What?"}),l.jsx("p",{className:"mt-4 max-w-2xl text-muted-foreground text-base md:text-lg",children:"In crypto, anyone can take a meme, photo, video, or piece of art and turn it into a coin. That might sound like a problem — but it could also be your next big payday."}),l.jsx("p",{className:"mt-3 max-w-2xl text-muted-foreground text-base md:text-lg",children:"If someone launched a token using your work, you can claim the royalties that come from trading volume — every time the token is bought or sold."}),l.jsx("div",{className:"mt-6",children:l.jsx(WF,{ratio:16/9,className:"rounded-md border border-border overflow-hidden",children:l.jsx("iframe",{src:"https://www.youtube-nocookie.com/embed/nesFftMxu-k?rel=0",title:"Creator royalties explainer video",loading:"lazy",referrerPolicy:"str
286ict-origin-when-cross-origin",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"w-full h-full"})})}),l.jsx("div",{className:"mt-6",children:l.jsx(xe,{asChild:!0,className:"bg-gradient-to-r from-primary to-primary-glow hover:from-primary-glow hover:to-primary",children:l.jsx("a",{href:"https://bags.fm/",target:"_blank",rel:"noopener noreferrer","aria-label":"Claim your royalties on bags.fm",children:"🎒 Claim Your Royalties Now →"})})})]})}),l.jsxs("main",{className:"container mx-auto px-4 py-10 space-y-12",children:[l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-foreground mb-4",children:"How It Works"}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[l.jsxs(nt,{className:"p-5 bg-card border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Royalties Are Already Set"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"You’re not adding royalties; the token was launched with them built in."})]}),l.jsxs(nt,{className:"p-5 bg-card border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Claim Your Share"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Use bags.fm to connect your X account and claim the royalties you’re owed."})]}),l.jsxs(nt,{className:"p-5 bg-card border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Get Paid on Every Trade"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"As long as the token is traded, you keep earning."})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-foreground mb-4",children:"Real Creator Wins"}),l.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"These aren’t just ideas — they’re real payouts creators have made through bags.fm:"}),(()=>{const t=[{url:"https://x.com/tennxeth/status/1954969646098157685",amount:"$300K — Nyan Cat 
286Creator",value:3e5},{url:"https://x.com/pepeonbags_/status/1955281170683289833?s=46",amount:"$100K — Pepe creator Matt Furie",value:1e5},{url:"https://x.com/kevanjatt/status/1955041879231435218",amount:"$50K — Clippy PFP viral trend movement creator",value:5e4},{url:"https://x.com/bagsclaimbot/status/1954693893301157991",amount:"$30K — MIM (Magic Internet Money Bitcoin Meme)",value:3e4},{url:"https://x.com/bagsclaimbot/status/1954521390033387861",amount:"$26K — Drake Bell",value:26e3},{url:"https://x.com/sero_sol/status/1954929519250534809",amount:"$24K — Joobi (art stolen multiple times)",value:24e3},{url:"https://x.com/tmtrdorg/status/1955034432869667015",amount:"$23K — The Man That Rescues Dogs (charity)",value:23e3}].sort((n,r)=>r.value-n.value);return l.jsx("div",{className:"space-y-4",children:t.map(n=>l.jsx(e,{url:n.url,amount:n.amount},n.url))})})()]}),l.jsxs("section",{"aria-labelledby":"how-to-claim",children:[l.jsx("h2",{id:"how-to-claim",className:"text-2xl md:text-3xl font-semibold text-foreground mb-4",children:"How to Claim Fees on bags.fm"}),l.jsxs("ol",{className:"list-decimal pl-5 space-y-4 text-muted-foreground",children:[l.jsxs("li",{children:["Send some Solana (SOL) to your bags.fm wallet. You can fund it from exchanges like ",l.jsx("a",{href:"https://www.coinbase.com/",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4",children:"Coinbase"}),", ",l.jsx("a",{href:"https://www.kraken.com/",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4",children:"Kraken"}),", or ",l.jsx("a",{href:"https://www.binance.com/",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4",children:"Binance"}),"."]}),l.jsx("li",{children:"Open the BAGS mobile app and log in with X to link your account."}),l.jsxs("li",{children:["Return to bags.fm, find your token card, and press ",l.jsx("span",{className:"font-medium text-foreground",children:"Claim"})," to receive fees."]})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:[l.jsxs("figure",{className:"rounded-md overflow-hidden bg-card border border-border",children:[l.jsx("img",{src:"/lovable-uploads/5005989c-a3e7-46ff-914a-afd1a7692b9b.png",alt:"bags.fm wallet before claiming, showing 0.10 SOL and a Claim button on token card",loading:"lazy",className:"w-full h-auto"}),l.jsx("figcaption",{className:"px-3 py-2 text-xs text-muted-foreground",children:"Before claiming: wallet funded"})]}),l.jsxs("figure",{className:"rounded-md overflow-hidden bg-card border border-border",children:[l.jsx("img",{src:"/lovable-uploads/d5735385-e13f-4b9a-b953-604911236982.png",alt:"bags.fm wallet after claiming, toast ‘Fees claimed successfully’ and balance 12.49 SOL",loading:"lazy",className:"w-full h-auto"}),l.jsx("figcaption",{className:"px-3 py-2 text-xs text-muted-foreground",children:"After claiming: fees received"})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-foreground mb-4",children:"Why This Matters for Creators"}),l.jsxs("ul",{className:"list-disc pl-5 space-y-2 text-muted-foreground",children:[l.jsx("li",{children:"Earn from coins launched with your content — even if you didn’t launch them yourself."}),l.jsx("li",{children:"Support causes, build communities, and engage with holders."}),l.jsx("li",{children:"Turn a surprise token launch into a consistent revenue stream."})]}),l.jsx("p",{className:"mt-3 text-muted-foreground",children:"Don’t let others profit from your creation without you."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-foreground my-6",children:"FAQ"}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs(nt,{className:"p-5 bg-card border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"I claimed my fees — now what?"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Interact with the community! Community interaction is key to driving token price, volume, and ultimately your royalties."})]}),l.jsxs(nt,{className:"p-5 bg-card border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"I see multiple tokens to claim fees. How do I know which one to claim/support?"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"You can claim them all! If you’re co-signing or pushing the coin for everyone to win, choose the address and link people keep sharing. When in doubt, tag @finnbags or @fomomofosol — we can help."})]}),l.jsxs(nt,{className:"p-5 bg-card border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"I claimed my royalties — how do I transfer them to my bank?"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Your royalties are paid in Solana (SOL). Send them to an exchange like Coinbase, Kraken, or Binance, sell for your local currency, and withdraw to your bank account."})]}),l.jsxs(nt,{className:"p-5 bg-card border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Am I liable if the token goes to zero?"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Short answer — no. Everyone knows the risks associated with crypto. Avoid explicitly saying “Hey, buy this token, I am driving the price up.”"})]})]})]})]}),l.jsx(sk,{}),l.jsx("div",{className:"fixed inset-x-0 bottom-0 z-30 md:hidden border-t border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:l.jsx("div",{className:"container mx-auto px-4 py-3",children:l.jsx(xe,{asChild:!0,className:"w-full bg-gradient-to-r from-primary to-primary-glow hover:from-primary-glow hover:to-primary",children:l.jsx("a",{href:"https://bags.fm/",target:"_blank",rel:"noopener noreferrer","aria-label":"Claim your royalties on bags.fm",children:"🎒 Claim Your Royalties Now →"})})})})]})}const $i="3wka7mLJyAWfQYzcpT54VGpPkJAKNgT4cyjbqGpXBAGS";function KF(){return Mn({queryKey:["ranking-data"],queryFn:async()=>{var v,y,x;const{data:e,error:t}=await oe.from("dash_leaderboard").select("token_address, symbol, name, price, market_cap, image_url, source, updated_at").order("market_cap",{ascending:!1,nullsFirst:!1}).limit(20);if(t)throw t;if(!e)return[];let n=[...e];if(!n.some(g=>g.token_address===$i)){const{data:g,error:w}=await oe.from("dash_leaderboard").select("token_address, symbol, name, price, market_cap, image_url, source, updated_at").eq("token_address",$i).single();!w&&g&&n.push(g)}n.sort((g,w)=>(w.market_cap||0)-(g.market_cap||0));const s=n.find(g=>g.token_address===$i),i=n.filter(g=>g.token_address!==$i).slice(0,20);let a=[];s&&a.push(s),a.push(...i);const c=a.map(g=>g.token_address),u=await oe.from("dash_token_meta").select(`
287          token_id, image_url, holders, tx_total, volume_total, market, quote_token, 
288          decimals, deployer, security_freeze_authority, security_mint_authority,
289          risk_score, risk_top10, risk_jupiter_verified
290        `).in("token_id",c),d=await oe.from("token_marketcap").select(`
291          token_id, market_cap_usd, last_quote_at, price_change_1m, price_change_5m,
292          price_change_15m, price_change_1h, price_change_4h, price_change_24h
293        `).in("token_id",c),f=await oe.from("dash_ath").select("token_id, market_cap, datetime_iso, time_to_ath_seconds").in("token_id",c),m=new Map(((v=u.data)==null?void 0:v.map(g=>[g.token_id,g]))||[]),h=new Map(((y=d.data)==null?void 0:y.map(g=>[g.token_id,g]))||[]),b=new Map(((x=f.data)==null?void 0:x.map(g=>[g.token_id,g]))||[]);return a.map((g,w)=>{const _=m.get(g.token_address),k=h.get(g.token_address),S=b.get(g.token_address);return{...g,price:(k==null?void 0:k.price_usd)||g.price,market_cap:(k==null?void 0:k.market_cap_usd)||g.market_cap,holders:_==null?void 0:_.holders,tx_total:_==null?void 0:_.tx_total,volume_total:_==null?void 0:_.volume_total,market:_==null?void 0:_.market,quote_token:_==null?void 0:_.quote_token,decimals:_==null?void 0:_.decimals,deployer:_==null?void 0:_.deployer,security_freeze_authority:_==null?void 0:_.security_freeze_authority,security_mint_authority:_==null?void 0:_.security_mint_authority,risk_score:_==null?void 0:_.risk_score,risk_top10:_==null?void 0:_.risk_top10,risk_jupiter_verified:_==null?void 0:_.risk_jupiter_verified,market_cap_usd:k==null?void 0:k.market_cap_usd,last_quote_at:k==null?void 0:k.last_quote_at,price_change_1m:k==null?void 0:k.price_change_1m,price_change_5m:k==null?void 0:k.price_change_5m,price_change_15m:k==null?void 0:k.price_change_15m,price_change_1h:k==null?void 0:k.price_change_1h,price_change_4h:k==null?void 0:k.price_change_4h,price_change_24h:k==null?void 0:k.price_change_24h,ath_mcap:S==null?void 0:S.market_cap,ath_datetime:S==null?void 0:S.datetime_iso,time_to_ath_seconds:S==null?void 0:S.time_to_ath_seconds,isPinned:g.token_address===$i,image_url:(_==null?void 0:_.image_url)||g.image_url}})},staleTime:3e4,refetchInterval:6e4})}function GF(){const{updateRankingToken:e,batchUpdateRankingTokens:t}=p1(),n=p.useRef({leaderboard:null,marketcap:null});p.useEffect(()=>{const r=oe.channel("enhanced-leaderboard-realtime").on("postgres_changes",{event:"*",schema:"public",table:"dash_leaderboard"},s=>{n.current.leaderboard&&clearTimeout(n.current.leaderboard),n.current.leaderboard=setTimeout(()=>{if(s.new&&typeof s.new=="object"){const o=s.new;
293console.log("🏆 Leaderboard real-time update received:",{token_address:o.token_address,symbol:o.symbol,price:o.price,market_cap:o.market_cap}),e(o.token_address,{symbol:o.symbol,name:o.name,price:o.price,market_cap:o.market_cap,image_url:o.image_url,updated_at:o.updated_at}),console.log("✅ Cache updated for token:",o.token_address)}},500)}).on("postgres_changes",{event:"*",schema:"public",table:"token_marketcap"},s=>{n.current.marketcap&&clearTimeout(n.current.marketcap),n.current.marketcap=setTimeout(()=>{if(s.new&&typeof s.new=="object"){const o=s.new;console.log("📈 Market cap real-time update received:",{token_id:o.token_id,price_usd:o.price_usd,market_cap_usd:o.market_cap_usd}),e(o.token_id,{price:o.price_usd,market_cap:o.market_cap_usd,market_cap_usd:o.market_cap_usd,price_change_1m:o.price_change_1m,price_change_5m:o.price_change_5m,price_change_15m:o.price_change_15m,price_change_1h:o.price_change_1h,price_change_4h:o.price_change_4h,price_change_24h:o.price_change_24h,last_quote_at:o.last_quote_at}),console.log("✅ Cache updated for token:",o.token_id)}},100)}).subscribe();return()=>{Object.values(n.current).forEach(s=>{s&&clearTimeout(s)}),oe.removeChannel(r)}},[e])}function Ay({value:e,label:t,className:n,size:r="sm"}){if(e==null)return l.jsxs("div",{className:G("inline-flex items-center justify-center rounded border border-border bg-muted/20 text-muted-foreground font-mono",r==="xs"?"px-1 py-0.5 text-xs":"px-2 py-1 text-sm",n),children:[l.jsx("span",{className:"text-xs text-muted-foreground mr-1",children:t}),"—"]});const s=e>0,o=e<0;return l.jsxs("div",{className:G("inline-flex items-center justify-center rounded border font-mono",r==="xs"?"px-1 py-0.5 text-xs":"px-2 py-1 text-sm",s&&"border-green-500/30 bg-green-500/10 text-green-400",o&&"border-red-500/30 bg-red-500/10 text-red-400",e===0&&"border-border bg-muted/20 text-muted-foreground",n),children:[l.jsx("span",{className:"text-xs text-muted-foreground mr-1",children:t}),l.jsx("span",{className:G(s&&"text-green-400",o&&"text-red-400"),children:hm(e)})]})}function YF({token:e,rank:t}){const n=[{label:"1m",value:e.price_change_1m},{label:"5m",value:e.price_change_5m},{label:"15m",value:e.price_change_15m},{label:"1h",value:e.price_change_1h},{label:"4h",value:e.price_change_4h},{label:"24h",value:e.price_change_24h}],r=e.isPinned,s=r?"0":t.toString(),i=r?{tier:0,symbolClass:"text-matrix-lime-tier-0",rankClass:"text-matrix-lime-tier-0",labelClass:"text-matrix-lime-tier-0",borderClass:"border-matrix-lime-tier-0/40",glowClass:"shadow-[var(--shadow-glow-tier-0)]",accentClass:"border-l-matrix-lime-tier-0"}:t>=1&&t<=3?{tier:1,symbolClass:"text-matrix-lime-tier-1",rankClass:"text-matrix-lime-tier-1",labelClass:"text-matrix-lime-tier-1",borderClass:"border-matrix-lime-tier-1/30",glowClass:"",accentClass:"border-l-matrix-lime-tier-1"}:t>=4&&t<=10?{tier:2,symbolClass:"text-matrix-lime-tier-2",rankClass:"text-matrix-lime-tier-2",labelClass:"text-matrix-lime-tier-2",borderClass:"border-matrix-lime-tier-2/20",glowClass:"",accentClass:"border-l-matrix-lime-tier-2"}:{tier:3,symbolClass:"text-matrix-lime-tier-3",rankClass:"text-matrix-lime-tier-3",labelClass:"text-matrix-lime-tier-3",borderClass:"border-matrix-lime-tier-3/15",glowClass:"",accentClass:"border-l-matrix-lime-tier-3"};return l.jsx(f1,{token:{bags_address:e.token_address,token_symbol
293:e.symbol,first_tweet_url:null},children:l.jsxs("div",{className:"group",children:[l.jsx("div",{className:"hidden lg:block",children:l.jsxs("div",{className:`flex flex-col gap-3 p-4 bg-card border ${i.borderClass} ${i.glowClass} rounded-lg hover:bg-card/80 transition-colors cursor-pointer border-l-4 ${i.accentClass}`,style:{minHeight:"68px"},children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"flex-shrink-0 w-8 text-right",children:l.jsx("span",{className:`font-mono text-sm font-semibold ${i.rankClass}`,children:s})}),l.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-shrink-0",children:[e.image_url?l.jsxs(Is,{className:"h-7 w-7",children:[l.jsx(Ds,{src:e.image_url,alt:e.symbol||e.name||""}),l.jsx($s,{children:l.jsx(Rr,{size:28})})]}):l.jsx(Rr,{size:28}),l.jsxs("div",{className:"min-w-0 break-words",children:[l.jsx("div",{className:`font-mono text-sm font-semibold ${i.symbolClass}`,children:e.symbol?`$${e.symbol}`:"—"}),l.jsx("div",{className:"text-xs text-muted-foreground",children:e.name||"—"})]})]}),l.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0 text-xs",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Price"}),l.jsx(Hi,{value:e.price,formatter:a=>kh(a),className:"text-foreground"})]}),l.jsx("span",{className:"text-muted-foreground",children:"|"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Mcap"}),l.jsx(Hi,{value:e.market_cap,formatter:bn,className:"text-foreground"})]}),l.jsx("span",{className:"text-muted-foreground",children:"|"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Holders"}),l.jsx("span",{className:"font-mono text-foreground",children:e.holders?bn(e.holders):"—"})]}),l.jsx("span",{className:"text-muted-foreground",children:"|"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Tx"}),l.jsx("span",{className:"font-mono text-foreground",children:e.tx_total?bn(e.tx_total):"—"})]}),l.jsx("span",{className:"text-muted-foreground",children:"|"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Vol"}),l.jsx("span",{className:"font-mono text-foreground",children:e.volume_total?bn(e.volume_total):"—"})]})]})]}),l.jsx("div",{className:"flex items-center gap-2 ml-12 mx-[47px] px-0 py-0 my-0",children:n.map(a=>l.jsx(Ay,{value:a.value,label:a.label,size:"xs",className:`border-${i.symbolClass.split("-")[2]}-${i.symbolClass.split("-")[3]}/20`},a.label))})]})}),l.jsx("div",{className:"lg:hidden",children:l.jsxs("div",{className:`flex flex-col gap-3 p-4 bg-card border ${i.borderClass} rounded-lg cursor-pointer border-l-4 ${i.accentClass}`,children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"flex flex-col items-center",children:l.jsx("span",{className:`font-mono text-sm font-semibold ${i.rankClass} w-6`,children:s})}),e.image_url?l.jsxs(Is,{className:"h-8 w-8",children:[l.jsx(Ds,{src:e.image_url,alt:e.symbol||e.name||""}),l.jsx($s,{children:l.jsx(Rr,{size:32})})]}):l.jsx(Rr,{size:32}),l.jsxs("div",{className:"flex-1 min-w-0 break-words",children:[l.jsx("div",{className:`font-mono text-sm font-semibold ${i.symbolClass}`,children:e.symbol?`$${e.symbol}`:"—"}),l.jsx("div",{className:"text-xs text-muted-foreground",children:e.name||"—"})]})]}),l.jsx("div",{className:"grid grid-cols-3 gap-2",children:n.map(a=>l.jsx(Ay,{value:a.value,label:a.label,size:"xs"},a.label))}),l.jsxs("div",{className:"flex items-center gap-4 text-xs flex-wrap",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Price"}),l.jsx(Hi,{value:e.price,formatter:a=>kh(a),className:"text-foreground"})]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Mcap"}),l.jsx(Hi,{value:e.market_cap,formatter:bn,className:"text-foreground"})]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:i.labelClass,children:"Holders"}),l.jsx("span",{className:"font-mono text-foreground",children:e.holders?bn(e.holders):"—"})]})]})]})})]})})}function QF(){const{data:e,isLoading:t,error:n}=KF();return GF(),t?l.jsxs("div",{className:"space-y-4",children:[l.jsx("div",{className:"hidden md:block",children:l.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:Array.from({length:10}).map((r,s)=>l.jsxs("div",{className:"flex items-center gap-4 p-4 border-b border-border last:border-b-0",children:[l.jsx(Ue,{className:"h-4 w-8"}),l.jsx(Ue,{className:"h-10 w-10 rounded-lg"}),l.jsxs("div",{className:"flex-1",children:[l.jsx(Ue,{className:"h-4 w-24 mb-1"}),l.jsx(Ue,{className:"h-3 w-32"})]}),l.jsxs("div",{className:"flex gap-4",children:[l.jsx(Ue,{className:"h-4 w-16"}),l.jsx(Ue,{className:"h-4 w-20"}),l.jsx(Ue,{className:"h-4 w-12"})]})]},s))})}),l.jsx("div",{className:"md:hidden grid gap-4",children:Array.from({length:6}).map((r,s)=>l.jsx(Ue,{className:"h-64 w-full rounded-lg"},s))})]}):n?l.jsx("div",{className:"flex items-center justify-center p-8 text-center",children:l.jsxs("div",{className:"space-y-2",children:[l.jsx(XN,{className:"h-12 w-12 text-muted-foreground mx-auto"}),l.jsx("h3",{className:"text-lg font-semibold",children:"Failed to load ranking"}),l.jsx("p",{className:"text-muted-foreground",children:n instanceof Error?n.message:"An unexpected error occurred"})]})}):!e||e.length===0?l.jsx("div",{className:"flex items-center justify-center p-8 text-center",children:l.jsxs("div",{className:"space-y-2",children:[l.jsx("div",{className:"text-6xl",children:"📊"}),l.jsx("h3",{className:"text-lg font-semibold",children:"No ranking data"}),l.jsx("p",{className:"text-muted-foreground",children:"Ranking data is not available at the moment."})]})}):l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"text-center",children:[l.jsx("h2",{className:"text-2xl font-mono font-bold text-foreground mb-2",children:"TOKEN LEADERBOARD"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Top tokens ranked by market cap • Updates every 30 seconds"})]}),l.jsx("div",{className:"space-y-3",children:e.map((r,s)=>l.jsx(YF,{token:r,rank:s},r.token_address))})]})}function JF(){return l.jsx("main",{className:"container mx-auto px-4 py-6",children:l.jsx(QF,{})})}function XF(){return vi().pathname.startsWith("/creator")?null:l.jsx("div",{className:"w-full bg-card border-b border-border",children:l.jsx("div",{className:"container mx-auto px-4 py-2 flex justify-center",children:l.jsxs("p",{className:"text-xs md:text-sm text-muted-foreground text-center truncate",children:["someone made a coin using your content?"," ",l.jsx(tm,{to:"/creator",className:"underline text-primary hover:opacity-90",children:"read this!"})]})})})}const ZF={holder:"Access requires $BSCREENER Holder. Feature coming soon.",whale:"Acce
293ss requires $BSCREENER Whale (≥ 10,000,000 tokens). Feature coming soon.",soon:"Coming soon."};function e3({label:e,to:t,type:n,onGateOpen:r,className:s}){const o=i=>{n!=="open"&&(i.preventDefault(),r(ZF[n]))};return l.jsx(tm,{to:t,onClick:o,className:s,children:e})}function t3({isOpen:e,onClose:t,message:n,title:r="Access Restricted",actionButton:s}){return p.useEffect(()=>{const o=i=>{i.key==="Escape"&&t()};return e&&(document.addEventListener("keydown",o),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",o),document.body.style.overflow="unset"}},[e,t]),e?l.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",onClick:t,children:[l.jsx("div",{className:"absolute inset-0 bg-card",style:{background:"radial-gradient(circle at 50% 50%, hsl(var(--matrix-lime) / 0.1) 0%, hsl(var(--matrix-surface)) 50%)"}}),l.jsx("div",{className:"relative bg-card border border-border rounded-lg p-8 max-w-md mx-4 shadow-glow",onClick:o=>o.stopPropagation(),style:{borderColor:"hsl(var(--matrix-border))",boxShadow:"0 0 24px hsl(var(--matrix-lime) / 0.08)"},children:l.jsxs("div",{className:"text-center space-y-4",children:[l.jsx("h2",{className:"text-lg font-mono uppercase text-matrix-lime",children:r}),l.jsx("p",{className:"text-foreground text-sm leading-relaxed",children:n}),l.jsxs("div",{className:"flex flex-col gap-2 mt-6",children:[s&&l.jsx(xe,{onClick:s.onClick,variant:"outline",className:"w-full",children:s.label}),l.jsx(xe,{onClick:t,variant:"outline",className:"w-full",children:"OK"})]})]})})]}):null}function My({label:e="$BSCREENER CA",value:t=Rm}){const{toast:n}=ui(),r=async()=>{try{await navigator.clipboard.writeText(t),n({title:"Address copied",description:"Contract address saved to clipboard"})}catch{n({title:"Copy failed",description:"Please try again",variant:"destructive"})}};return l.jsx(Nb,{children:l.jsxs(aR,{children:[l.jsx(lR,{asChild:!0,children:l.jsxs("button",{onClick:r,"aria-label":"Copy $BSCREENER contract address",className:"inline-flex items-center gap-2 h-8 px-3 rounded-md border border-[#1a261a] bg-transparent font-mono text-xs text-foreground hover:shadow-[0_0_20px_rgba(57,255,20,0.08)] hover:border-[#39ff14]/20 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#39ff14] transition-all duration-200",children:[l.jsx("span",{className:"text-[#39ff14] font-medium",children:e}),l.jsx("span",{className:"text-muted-foreground",children:h1(t,6,4)}),l.jsx(_a,{className:"w-3 h-3 opacity-70"})]})}),l.jsx(Eb,{children:l.jsx("p",{className:"font-mono text-xs",children:t})})]})})}function Iy({size:e="md",showText:t=!0,className:n=""}){const r={sm:"w-5 h-5",md:"w-8 h-8"};return l.jsxs("div",{className:`inline-flex items-center gap-2 flex-shrink-0 ${n}`,children:[l.jsx("div",{className:"flex-shrink-0 overflow-hidden",children:l.jsx("img",{src:"/brand/logo-original.jpg",alt:"BSCREENER logo",className:`${r[e]} rounded-full object-contain opacity-90 hover:opacity-100 ring-1 ring-primary/20 hover:ring-primary/40 transition-all duration-200`,width:e==="sm"?20:32,height:e==="sm"?20:32})}),t&&l.jsx("span",{className:"font-mono text-sm font-semibold text-foreground min-w-0 truncate",children:"BSCREENER"})]})}function n3(){const[e,t]=p.useState({isOpen:!1,message:""}),n=[{label:"Home",to:"/",type:"open"},{label:"Ranking",to:"/ranking",type:"open"},{label:"Mindshare",to:"#mindshare",type:"holder"},{label:"Whale",to:"#whale",type:"whale"},{label:"Automation",to:"#automation",type:"soon"}],r=o=>{t({isOpen:!0,message:o})},s=()=>{t({isOpen:!1,message:""})};return l.jsxs(l.Fragment,{children:[l.jsx("header",{className:"w-full bg-card/70 backdrop-blur border-b border-border",children:l.jsxs("div",{className:"container mx-auto px-4 py-3 max-w-full overflow-hidden",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 md:gap-4",children:[l.jsxs("div",{className:"flex items-center gap-2 md:gap-6 min-w-0",children:[l.jsx("div",{className:"hidden md:block flex-shrink-0",children:l.jsx(Iy,{size:"md"})}),l.jsx("div",{className:"md:hidden flex-shrink-0",children:l.jsx(Iy,{size:"sm",showText:!1})}),l.jsx("nav",{"aria-label":"Primary",className:"flex items-center gap-2 md:gap-6 overflow-x-auto scroll-smooth pr-4",children:n.map(o=>l.jsx(e3,{label:o.label,to:o.to,type:o.type,onGateOpen:r,className:"text-xs md:text-sm font-mono uppercase letter-spacing-wide text-foreground
293/90 hover:text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary focus-visible:ring-offset-1 rounded transition-all duration-75 whitespace-nowrap flex-shrink-0"},o.label))})]}),l.jsx("div",{className:"hidden md:block flex-shrink-0",children:l.jsx(My,{})})]}),l.jsx("div",{className:"md:hidden mt-2 flex justify-end",children:l.jsx(My,{})})]})}),l.jsx(t3,{isOpen:e.isOpen,onClose:s,message:e.message})]})}const r3="/assets/mindgains-logo-52NQ0ziL.jpg";function s3({logoSrc:e=r3,brand:t="MindGains",href:n="https://mindgains.xyz/"}){return l.jsx("footer",{className:"w-full bg-[#0f1411] border-t border-[#1a261a] py-3 px-4",children:l.jsxs("div",{className:"mx-auto flex items-center justify-center gap-2",children:[l.jsx("img",{src:e,alt:t,className:"h-8 w-8 rounded-sm border border-[#1a261a] object-cover"}),l.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${t}`,className:"text-[12px] font-mono text-[#39ff14] hover:underline underline-offset-4",children:["Powered by ",t]})]})})}const o3=new jR,i3=()=>l.jsx(TR,{client:o3,children:l.jsxs(Nb,{children:[l.jsx(UE,{}),l.jsx(bP,{}),l.jsxs(L2,{children:[l.jsx(XF,{}),l.jsx(n3,{}),l.jsxs(R2,{children:[l.jsx(co,{path:"/",element:l.jsx(AF,{})}),l.jsx(co,{path:"/ranking",element:l.jsx(JF,{})}),l.jsx(co,{path:"/creator",element:l.jsx(qF,{})}),l.jsx(co,{path:"/admin",element:l.jsx(LF,{})}),l.jsx(co,{path:"*",element:l.jsx(FF,{})})]}),l.jsx(s3,{})]})]})});ow(document.getElementById("root")).render(l.jsx(i3,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.