PageSourceSearch

https://fitnessprofi.lovable.app/assets/index-DfbPMtFZ.js

js fitnessprofi.lovable.app collected 2026-10-03 03:31:25 UTC 446,361 bytes, 123 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-DYhCdHTs.js","assets/Footer-DkkU8vMF.js","assets/Combination-DdoM_vzj.js","assets/shield-gTmsYmaS.js","assets/card-DN9U93Ar.js","assets/useListings-BA8PmhrO.js","assets/imageOptimization-CudCDZ50.js","assets/circle-check-BnPqnqSY.js","assets/map-pin-BpPyR111.js","assets/skeleton-BgfUIsCU.js","assets/SEOHead-CT9CEd2t.js","assets/seoData-Zu0mqGag.js","assets/Auth-C8uMrl2h.js","assets/label-BPIIdxfs.js","assets/tabs-O9pKp1Yw.js","assets/dialog-CUfzLZNo.js","assets/lock-CeMlDgpQ.js","assets/phone-B9YihfBx.js","assets/Dashboard-Ca6_AksN.js","assets/select-BpTHHfDC.js","assets/index-BdQq_4o_.js","assets/index-DL1OQS8_.js","assets/chevron-down-B7uBTmvX.js","assets/package-DyDheKgr.js","assets/eye-CWNprXLp.js","assets/clock-DLEf27VZ.js","assets/square-pen-DF2sHq46.js","assets/trash-2-CCxrRo8I.js","assets/CreateListing-Bup3zWrz.js","assets/ImageUpload-DDRE_7dj.js","assets/image-BB9h9Mr0.js","assets/types-CZRSIYhW.js","assets/textarea-B6myJTMQ.js","assets/sanitize-DeERsSn4.js","assets/arrow-left-CSjVKsEU.js","assets/EditListing-DwB_4APE.js","assets/ListingDetail-g1HyFZ6f.js","assets/LikeButton-hgR9MF0H.js","assets/useSocial-8SE6rbm7.js","assets/UserProfileCard-CEg7RsTs.js","assets/avatar-BJUSXNbd.js","assets/user-minus-BXoCHMTn.js","assets/useSecurity-BIHYjOoC.js","assets/tag-_WCX-uBx.js","assets/calendar-AeHpRayc.js","assets/SearchListings-D8gCri9U.js","assets/ProductCard-DMbfcClq.js","assets/star-DebO7FFT.js","assets/FavoriteButton-BuMmWnPt.js","assets/CustomerListingDetail-D9Xlfqyb.js","assets/flag-lqiTSeng.js","assets/formatDistanceToNow-D1nxES6E.js","assets/de-BSRZDHuq.js","assets/checkbox-D0DkDVL1.js","assets/Impressum-BHbsGfkP.js","assets/AGB-Dz6b-oOo.js","assets/Datenschutz-CYn5fX9l.js","assets/SafetyTips-Brefnaz4.js","assets/triangle-alert-6cNnRHUf.js","assets/Favorites-DqR4hSq7.js","assets/AdminDashboard-CfQTF7Y-.js","assets/table-ChU2A1Ri.js","assets/circle-x-3O67_aVB.js","assets/circle-check-big-Dpzop9Rf.js","assets/FAQ-BdW_gEjy.js","assets/Breadcrumbs-Xif6Qk4m.js","assets/Messages-BLehGePo.js","assets/separator-CS87HMXq.js","assets/file-text-DmFZbXAT.js","assets/format-37ENh9yW.js","assets/Analytics-HH7KwCSQ.js","assets/Social-q_BhhsJ2.js","assets/SecurityPrivacy-CD80tB8V.js","assets/QuickAdd-Bt6_ZCDy.js","assets/Orders-DlEJKjgg.js","assets/useOrders-tTGRlaG9.js","assets/OrderDetail-Tt_kxJEI.js"])))=>i.map(i=>d[i]);
2var Gd=t=>{throw TypeError(t)};var fl=(t,e,n)=>e.has(t)||Gd("Cannot "+n);var C=(t,e,n)=>(fl(t,e,"read from private field"),n?n.call(t):e.get(t)),ee=(t,e,n)=>e.has(t)?Gd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),B=(t,e,n,r)=>(fl(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Le=(t,e,n)=>(fl(t,e,"access private method"),n);var li=(t,e,n,r)=>({set _(s){B(t,e,s,n)},get _(){return C(t,e,r)}});function zy(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}
vendor: 4,532 bytes, lines 2-10
2function By(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var mp={exports:{}},Oa={},gp={exports:{}},J={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var Go=Symbol.for("react.element"),Wy=Symbol.for("react.portal"),Vy=Symbol.for("react.fragment"),Hy=Symbol.for("react.strict_mode"),Ky=Symbol.for("react.profiler"),qy=Symbol.for("react.provider"),Qy=Symbol.for("react.context"),Gy=Symbol.for("react.forward_ref"),Jy=Symbol.for("react.suspense"),Yy=Symbol.for("react.memo"),Xy=Symbol.for("react.lazy"),Jd=Symbol.iterator;function Zy(t){return t===null||typeof t!="object"?null:(t=Jd&&t[Jd]||t["@@iterator"],typeof t=="function"?t:null)}var vp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yp=Object.assign,wp={};function Ls(t,e,n){this.props=t,this.context=e,this.refs=wp,this.updater=n||vp}Ls.prototype.isReactComponent={};Ls.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Ls.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function _p(){}_p.prototype=Ls.prototype;function xc(t,e,n){this.props=t,this.context=e,this.refs=wp,this.updater=n||vp}var bc=xc.prototype=new _p;bc.constructor=xc;yp(bc,Ls.prototype);bc.isPureReactComponent=!0;var Yd=Array.isArray,xp=Object.prototype.hasOwnProperty,Sc={current:null},bp={key:!0,ref:!0,__self:!0,__source:!0};function Sp(t,e,n){var r,s={},o=null,i=null;if(e!=null)for(r in e.ref!==void 0&&(i=e.ref),e.key!==void 0&&(o=""+e.key),e)xp.call(e,r)&&!bp.hasOwnProperty(r)&&(s[r]=e[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Go,type:t,key:o,ref:i,props:s,_owner:Sc.current}}function e0(t,e){return{$$typeof:Go,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Ec(t){return typeof t=="object"&&t!==null&&t.$$typeof===Go}function t0(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Xd=/\/+/g;function hl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?t0(""+t.key):e.toString(36)}function Ii(t,e,n,r,s){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case Go:case Wy:i=!0}}if(i)return i=t,s=s(i),t=r===""?"."+hl(i,0):r,Yd(s)?(n="",t!=null&&(n=t.replace(Xd,"$&/")+"/"),Ii(s,e,n,"",function(u){return u})):s!=null&&(Ec(s)&&(s=e0(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Xd,"$&/")+"/")+t)),e.push(s)),1;if(i=0,r=r===""?".":r+":",Yd(t))for(var a=0;a<t.length;a++){o=t[a];var l=r+hl(o,a);i+=Ii(o,e,n,l,s)}else if(l=Zy(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=r+hl(o,a++),i+=Ii(o,e,n,l,s);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return i}function ui(t,e,n){if(t==null)return t;var r=[],s=0;return Ii(t,r,"","",function(o){return e.call(n,o,s++)}),r}function n0(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var He={current:null},$i={transition:null},r0={ReactCurrentDispatcher:He,ReactCurrentBatchConfig:$i,ReactCurrentOwner:Sc};function Ep(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,488 bytes, lines 10-26
10J.Children={map:ui,forEach:function(t,e,n){ui(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return ui(t,function(){e++}),e},toArray:function(t){return ui(t,function(e){return e})||[]},only:function(t){if(!Ec(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};J.Component=Ls;J.Fragment=Vy;J.Profiler=Ky;J.PureComponent=xc;J.StrictMode=Hy;J.Suspense=Jy;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r0;J.act=Ep;J.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=yp({},t.props),s=t.key,o=t.ref,i=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,i=Sc.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)xp.call(e,l)&&!bp.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Go,type:t.type,key:s,ref:o,props:r,_owner:i}};J.createContext=function(t){return t={$$typeof:Qy,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:qy,_context:t},t.Consumer=t};J.createElement=Sp;J.createFactory=function(t){var e=Sp.bind(null,t);return e.type=t,e};J.createRef=function(){return{current:null}};J.forwardRef=function(t){return{$$typeof:Gy,render:t}};J.isValidElement=Ec;J.lazy=function(t){return{$$typeof:Xy,_payload:{_status:-1,_result:t},_init:n0}};J.memo=function(t,e){return{$$typeof:Yy,type:t,compare:e===void 0?null:e}};J.startTransition=function(t){var e=$i.transition;$i.transition={};try{t()}finally{$i.transition=e}};J.unstable_act=Ep;J.useCallback=function(t,e){return He.current.useCallback(t,e)};J.useContext=function(t){return He.current.useContext(t)};J.useDebugValue=function(){};J.useDeferredValue=function(t){return He.current.useDeferredValue(t)};J.useEffect=function(t,e){return He.current.useEffect(t,e)};J.useId=function(){return He.current.useId()};J.useImperativeHandle=function(t,e,n){return He.current.useImperativeHandle(t,e,n)};J.useInsertionEffect=function(t,e){return He.current.useInsertionEffect(t,e)};J.useLayoutEffect=function(t,e){return He.current.useLayoutEffect(t,e)};J.useMemo=function(t,e){return He.current.useMemo(t,e)};J.useReducer=function(t,e,n){return He.current.useReducer(t,e,n)};J.useRef=function(t){return He.current.useRef(t)};J.useState=function(t){return He.current.useState(t)};J.useSyncExternalStore=function(t,e,n){return He.current.useSyncExternalStore(t,e,n)};J.useTransition=function(){return He.current.useTransition()};J.version="18.3.1";gp.exports=J;var y=gp.exports;const A=pp(y),kp=zy({__proto__:null,default:A},[y]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var s0=y,o0=Symbol.for("react.element"),i0=Symbol.for("react.fragment"),a0=Object.prototype.hasOwnProperty,l0=s0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u0={key:!0,ref:!0,__self:!0,__source:!0};function Cp(t,e,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(i=e.ref);for(r in e)a0.call(e,r)&&!u0.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:o0,type:t,key:o,ref:i,props:s,_owner:l0.current}}Oa.Fragment=i0;Oa.jsx=Cp;Oa.jsxs=Cp;mp.exports=Oa;var b=mp.exports,Tp={exports:{}},at={},Pp={exports:{}},Rp={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(t){function e(T,P){var I=T.length;T.push(P);e:for(;0<I;){var V=I-1>>>1,M=T[V];if(0<s(M,P))T[V]=P,T[I]=M,I=V;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var P=T[0],I=T.pop();if(I!==P){T[0]=I;e:for(var V=0,M=T.length,Q=M>>>1;V<Q;){var X=2*(V+1)-1,xe=T[X],Ne=X+1,te=T[Ne];if(0>s(xe,I))Ne<M&&0>s(te,xe)?(T[V]=te,T[Ne]=I,V=Ne):(T[V]=xe,T[X]=I,V=X);else if(Ne<M&&0>s(te,I))T[V]=te,T[Ne]=I,V=Ne;else break e}}return P}function s(T,P){var I=T.sortIndex-P.sortIndex;
vendor: 10,112 bytes, lines 26-35
26return I!==0?I:T.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();t.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,_=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(T){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=T)r(u),P.sortIndex=P.expirationTime,e(l,P);else break;P=n(u)}}function x(T){if(v=!1,m(T),!_)if(n(l)!==null)_=!0,F(S);else{var P=n(u);P!==null&&W(x,P.startTime-T)}}function S(T,P){_=!1,v&&(v=!1,g(R),R=-1),f=!0;var I=h;try{for(m(P),d=n(l);d!==null&&(!(d.expirationTime>P)||T&&!U());){var V=d.callback;if(typeof V=="function"){d.callback=null,h=d.priorityLevel;var M=V(d.expirationTime<=P);P=t.unstable_now(),typeof M=="function"?d.callback=M:d===n(l)&&r(l),m(P)}else r(l);d=n(l)}if(d!==null)var Q=!0;else{var X=n(u);X!==null&&W(x,X.startTime-P),Q=!1}return Q}finally{d=null,h=I,f=!1}}var E=!1,k=null,R=-1,N=5,j=-1;function U(){return!(t.unstable_now()-j<N)}function D(){if(k!==null){var T=t.unstable_now();j=T;var P=!0;try{P=k(!0,T)}finally{P?q():(E=!1,k=null)}}else E=!1}var q;if(typeof p=="function")q=function(){p(D)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,Y=L.port2;L.port1.onmessage=D,q=function(){Y.postMessage(null)}}else q=function(){w(D,0)};function F(T){k=T,E||(E=!0,q())}function W(T,P){R=w(function(){T(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(T){T.callback=null},t.unstable_continueExecution=function(){_||f||(_=!0,F(S))},t.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(T){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var I=h;h=P;try{return T()}finally{h=I}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(T,P){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var I=h;h=T;try{return P()}finally{h=I}},t.unstable_scheduleCallback=function(T,P,I){var V=t.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?V+I:V):I=V,T){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=I+M,T={id:c++,callback:P,priorityLevel:T,startTime:I,expirationTime:M,sortIndex:-1},I>V?(T.sortIndex=I,e(u,T),n(l)===null&&T===n(u)&&(v?(g(R),R=-1):v=!0,W(x,I-V))):(T.sortIndex=M,e(l,T),_||f||(_=!0,F(S))),T},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(T){var P=h;return function(){var I=h;h=P;try{return T.apply(this,arguments)}finally{h=I}}}})(Rp);Pp.exports=Rp;var c0=Pp.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var d0=y,it=c0;function O(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Op=new Set,So={};function jr(t,e){Es(t,e),Es(t+"Capture",e)}function Es(t,e){for(So[t]=e,t=0;t<e.length;t++)Op.add(e[t])}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=Object.prototype.hasOwnProperty,f0=/^[: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]*$/,Zd={},ef={};function h0(t){return nu.call(ef,t)?!0:nu.call(Zd,t)?!1:f0.test(t)?ef[t]=!0:(Zd[t]=!0,!1)}function p0(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function m0(t,e,n,r){if(e===null||typeof e>"u"||p0(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ke(t,e,n,r,s,o,i){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=i}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){je[t]=new Ke(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];je[e]=new Ke(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){je[t]=new Ke(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){je[t]=new Ke(t,2,!1,t,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(t){je[t]=new Ke(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){je[t]=new Ke(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){je[t]=new Ke(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){je[t]=new Ke(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){je[t]=new Ke(t,5,!1,t.toLowerCase(),null,!1,!1)});var kc=/[\-:]([a-z])/g;function Cc(t){return t[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(t){var e=t.replace(kc,Cc);je[e]=new Ke(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(kc,Cc);je[e]=new Ke(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(kc,Cc);je[e]=new Ke(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){je[t]=new Ke(t,1,!1,t.toLowerCase(),null,!1,!1)});je.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){je[t]=new Ke(t,1,!1,t.toLowerCase(),null,!0,!0)});function Tc(t,e,n,r){var s=je.hasOwnProperty(e)?je[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(m0(e,n,s,r)&&(n=null),r||s===null?h0(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var hn=d0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ci=Symbol.for("react.element"),Jr=Symbol.for("react.portal"),Yr=Symbol.for("react.fragment"),Pc=Symbol.for("react.strict_mode"),ru=Symbol.for("react.profiler"),Ap=Symbol.for("react.provider"),jp=Symbol.for("react.context"),Rc=Symbol.for("react.forward_ref"),su=Symbol.for("react.suspense"),ou=Symbol.for("react.suspense_list"),Oc=Symbol.for("react.memo"),Tn=Symbol.for("react.lazy"),Np=Symbol.for("react.offscreen"),tf=Symbol.iterator;function qs(t){return t===null||typeof t!="object"?null:(t=tf&&t[tf]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Object.assign,pl;function so(t){if(pl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);pl=e&&e[1]||""}return`
35`+pl+t}var ml=!1;function gl(t,e){if(!t||ml)return"";ml=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}
vendor: 16,008 bytes, lines 35-38
35catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
36`),o=r.stack.split(`
37`),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 l=`
38`+s[i].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=i&&0<=a);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?so(t):""}function g0(t){switch(t.tag){case 5:return so(t.type);case 16:return so("Lazy");case 13:return so("Suspense");case 19:return so("SuspenseList");case 0:case 2:case 15:return t=gl(t.type,!1),t;case 11:return t=gl(t.type.render,!1),t;case 1:return t=gl(t.type,!0),t;default:return""}}function iu(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Yr:return"Fragment";case Jr:return"Portal";case ru:return"Profiler";case Pc:return"StrictMode";case su:return"Suspense";case ou:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case jp:return(t.displayName||"Context")+".Consumer";case Ap:return(t._context.displayName||"Context")+".Provider";case Rc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Oc:return e=t.displayName||null,e!==null?e:iu(t.type)||"Memo";case Tn:e=t._payload,t=t._init;try{return iu(t(e))}catch{}}return null}function v0(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return iu(e);case 8:return e===Pc?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Gn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Lp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function y0(t){var e=Lp(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function di(t){t._valueTracker||(t._valueTracker=y0(t))}function Ip(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Lp(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Ji(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function au(t,e){var n=e.checked;return ge({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function nf(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Gn(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function $p(t,e){e=e.checked,e!=null&&Tc(t,"checked",e,!1)}function lu(t,e){$p(t,e);var n=Gn(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?uu(t,e.type,n):e.hasOwnProperty("defaultValue")&&uu(t,e.type,Gn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function rf(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function uu(t,e,n){(e!=="number"||Ji(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var oo=Array.isArray;function ls(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Gn(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function cu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(O(91));return ge({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function sf(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(O(92));if(oo(n)){if(1<n.length)throw Error(O(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Gn(n)}}function Dp(t,e){var n=Gn(e.value),r=Gn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function of(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Mp(t){switch(t){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 du(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Mp(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var fi,Up=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(fi=fi||document.createElement("div"),fi.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=fi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Eo(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var uo={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},w0=["Webkit","ms","Moz","O"];Object.keys(uo).forEach(function(t){w0.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),uo[e]=uo[t]})});function Fp(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||uo.hasOwnProperty(t)&&uo[t]?(""+e).trim():e+"px"}function zp(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Fp(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var _0=ge({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 fu(t,e){if(e){if(_0[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(O(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(O(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(O(61))}if(e.style!=null&&typeof e.style!="object")throw Error(O(62))}}function hu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pu=null;function Ac(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var mu=null,us=null,cs=null;function af(t){if(t=Xo(t)){if(typeof mu!="function")throw Error(O(280));var e=t.stateNode;e&&(e=Ia(e),mu(t.stateNode,t.type,e))}}function Bp(t){us?cs?cs.push(t):cs=[t]:us=t}function Wp(){if(us){var t=us,e=cs;if(cs=us=null,af(t),e)for(t=0;t<e.length;t++)af(e[t])}}function Vp(t,e){return t(e)}function Hp(){}var vl=!1;function Kp(t,e,n){if(vl)return t(e,n);vl=!0;try{return Vp(t,e,n)}finally{vl=!1,(us!==null||cs!==null)&&(Hp(),Wp())}}function ko(t,e){var n=t.stateNode;if(n===null)return null;var r=Ia(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(O(231,e,typeof n));return n}var gu=!1;if(an)try{var Qs={};Object.defineProperty(Qs,"passive",{get:function(){gu=!0}}),window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{gu=!1}function x0(t,e,n,r,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var co=!1,Yi=null,Xi=!1,vu=null,b0={onError:function(t){co=!0,Yi=t}};function S0(t,e,n,r,s,o,i,a,l){co=!1,Yi=null,x0.apply(b0,arguments)}function E0(t,e,n,r,s,o,i,a,l){if(S0.apply(this,arguments),co){if(co){var u=Yi;co=!1,Yi=null}else throw Error(O(198));Xi||(Xi=!0,vu=u)}}function Nr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function qp(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function lf(t){if(Nr(t)!==t)throw Error(O(188))}function k0(t){var e=t.alternate;if(!e){if(e=Nr(t),e===null)throw Error(O(188));return e!==t?null:t}for(var n=t,r=e;;){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 lf(s),t;if(o===r)return lf(s),e;o=o.sibling}throw Error(O(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(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?t:e}function Qp(t){return t=k0(t),t!==null?Gp(t):null}function Gp(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Gp(t);if(e!==null)return e;t=t.sibling}return null}var Jp=it.unstable_scheduleCallback,uf=it.unstable_cancelCallback,C0=it.unstable_shouldYield,T0=it.unstable_requestPaint,we=it.unstable_now,P0=it.unstable_getCurrentPriorityLevel,jc=it.unstable_ImmediatePriority,Yp=it.unstable_UserBlockingPriority,Zi=it.unstable_NormalPriority,R0=it.unstable_LowPriority,Xp=it.unstable_IdlePriority,Aa=null,Ht=null;function O0(t){if(Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Aa,t,void 0,(t.current.flags&128)===128)}catch{}}var At=Math.clz32?Math.clz32:N0,A0=Math.log,j0=Math.LN2;function N0(t){return t>>>=0,t===0?32:31-(A0(t)/j0|0)|0}var hi=64,pi=4194304;function io(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ea(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,o=t.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=io(a):(o&=i,o!==0&&(r=io(o)))}else i=n&~s,i!==0?r=io(i):o!==0&&(r=io(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,o=e&-e,s>=o||s===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-At(e),s=1<<n,r|=t[n],e&=~s;return r}function L0(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 I0(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes;0<o;){var i=31-At(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=L0(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function yu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Zp(){var t=hi;return hi<<=1,!(hi&4194240)&&(hi=64),t}function yl(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Jo(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-At(e),t[e]=n}function $0(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-At(n),o=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~o}}function Nc(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-At(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var ne=0;function em(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var tm,Lc,nm,rm,sm,wu=!1,mi=[],Fn=null,zn=null,Bn=null,Co=new Map,To=new Map,Rn=[],D0="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 cf(t,e){switch(t){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":Bn=null;break;case"pointerover":case"pointerout":Co.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":To.delete(e.pointerId)}}function Gs(t,e,n,r,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Xo(e),e!==null&&Lc(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function M0(t,e,n,r,s){switch(e){case"focusin":return Fn=Gs(Fn,t,e,n,r,s),!0;case"dragenter":return zn=Gs(zn,t,e,n,r,s),!0;case"mouseover":return Bn=Gs(Bn,t,e,n,r,s),!0;case"pointerover":var o=s.pointerId;return Co.set(o,Gs(Co.get(o)||null,t,e,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,To.set(o,Gs(To.get(o)||null,t,e,n,r,s)),!0}return!1}function om(t){var e=mr(t.target);if(e!==null){var n=Nr(e);
vendor: 11,144 bytes, line 38
38if(n!==null){if(e=n.tag,e===13){if(e=qp(n),e!==null){t.blockedOn=e,sm(t.priority,function(){nm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Di(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=_u(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);pu=r,n.target.dispatchEvent(r),pu=null}else return e=Xo(n),e!==null&&Lc(e),t.blockedOn=n,!1;e.shift()}return!0}function df(t,e,n){Di(t)&&n.delete(e)}function U0(){wu=!1,Fn!==null&&Di(Fn)&&(Fn=null),zn!==null&&Di(zn)&&(zn=null),Bn!==null&&Di(Bn)&&(Bn=null),Co.forEach(df),To.forEach(df)}function Js(t,e){t.blockedOn===e&&(t.blockedOn=null,wu||(wu=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,U0)))}function Po(t){function e(s){return Js(s,t)}if(0<mi.length){Js(mi[0],t);for(var n=1;n<mi.length;n++){var r=mi[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Fn!==null&&Js(Fn,t),zn!==null&&Js(zn,t),Bn!==null&&Js(Bn,t),Co.forEach(e),To.forEach(e),n=0;n<Rn.length;n++)r=Rn[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Rn.length&&(n=Rn[0],n.blockedOn===null);)om(n),n.blockedOn===null&&Rn.shift()}var ds=hn.ReactCurrentBatchConfig,ta=!0;function F0(t,e,n,r){var s=ne,o=ds.transition;ds.transition=null;try{ne=1,Ic(t,e,n,r)}finally{ne=s,ds.transition=o}}function z0(t,e,n,r){var s=ne,o=ds.transition;ds.transition=null;try{ne=4,Ic(t,e,n,r)}finally{ne=s,ds.transition=o}}function Ic(t,e,n,r){if(ta){var s=_u(t,e,n,r);if(s===null)Pl(t,e,r,na,n),cf(t,r);else if(M0(s,t,e,n,r))r.stopPropagation();else if(cf(t,r),e&4&&-1<D0.indexOf(t)){for(;s!==null;){var o=Xo(s);if(o!==null&&tm(o),o=_u(t,e,n,r),o===null&&Pl(t,e,r,na,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Pl(t,e,r,null,n)}}var na=null;function _u(t,e,n,r){if(na=null,t=Ac(r),t=mr(t),t!==null)if(e=Nr(t),e===null)t=null;else if(n=e.tag,n===13){if(t=qp(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return na=t,null}function im(t){switch(t){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(P0()){case jc:return 1;case Yp:return 4;case Zi:case R0:return 16;case Xp:return 536870912;default:return 16}default:return 16}}var Dn=null,$c=null,Mi=null;function am(){if(Mi)return Mi;var t,e=$c,n=e.length,r,s="value"in Dn?Dn.value:Dn.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var i=n-t;for(r=1;r<=i&&e[n-r]===s[o-r];r++);return Mi=s.slice(t,1<r?1-r:void 0)}function Ui(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function gi(){return!0}function ff(){return!1}function lt(t){function e(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 t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?gi:ff,this.isPropagationStopped=ff,this}return ge(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gi)},persist:function(){},isPersistent:gi}),e}var Is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dc=lt(Is),Yo=ge({},Is,{view:0,detail:0}),B0=lt(Yo),wl,_l,Ys,ja=ge({},Yo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ys&&(Ys&&t.type==="mousemove"?(wl=t.screenX-Ys.screenX,_l=t.screenY-Ys.screenY):_l=wl=0,Ys=t),wl)},movementY:function(t){return"movementY"in t?t.movementY:_l}}),hf=lt(ja),W0=ge({},ja,{dataTransfer:0}),V0=lt(W0),H0=ge({},Yo,{relatedTarget:0}),xl=lt(H0),K0=ge({},Is,{animationName:0,elapsedTime:0,pseudoElement:0}),q0=lt(K0),Q0=ge({},Is,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),G0=lt(Q0),J0=ge({},Is,{data:0}),pf=lt(J0),Y0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X0={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"},Z0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ew(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Z0[t])?!!e[t]:!1}function Mc(){return ew}var tw=ge({},Yo,{key:function(t){if(t.key){var e=Y0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ui(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?X0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mc,charCode:function(t){return t.type==="keypress"?Ui(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ui(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),nw=lt(tw),rw=ge({},ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mf=lt(rw),sw=ge({},Yo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mc}),ow=lt(sw),iw=ge({},Is,{propertyName:0,elapsedTime:0,pseudoElement:0}),aw=lt(iw),lw=ge({},ja,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),uw=lt(lw),cw=[9,13,27,32],Uc=an&&"CompositionEvent"in window,fo=null;an&&"documentMode"in document&&(fo=document.documentMode);var dw=an&&"TextEvent"in window&&!fo,lm=an&&(!Uc||fo&&8<fo&&11>=fo),gf=" ",vf=!1;function um(t,e){switch(t){case"keyup":return cw.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xr=!1;function fw(t,e){switch(t){case"compositionend":return cm(e);case"keypress":return e.which!==32?null:(vf=!0,gf);case"textInput":return t=e.data,t===gf&&vf?null:t;default:return null}}function hw(t,e){if(Xr)return t==="compositionend"||!Uc&&um(t,e)?(t=am(),Mi=$c=Dn=null,Xr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return lm&&e.locale!=="ko"?null:e.data;default:return null}}var pw={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 yf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!pw[t.type]:e==="textarea"}function dm(t,e,n,r){Bp(r),e=ra(e,"onChange"),0<e.length&&(n=new Dc("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var ho=null,Ro=null;function mw(t){bm(t,0)}function Na(t){var e=ts(t);if(Ip(e))return t}function gw(t,e){if(t==="change")return e}var fm=!1;if(an){var bl;if(an){var Sl="oninput"in document;if(!Sl){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),Sl=typeof wf.oninput=="function"}bl=Sl}else bl=!1;fm=bl&&(!document.documentMode||9<document.documentMode)}function _f(){ho&&(ho.detachEvent("onpropertychange",hm),Ro=ho=null)}function hm(t){if(t.propertyName==="value"&&Na(Ro)){var e=[];dm(e,Ro,t,Ac(t)),Kp(mw,e)}}function vw(t,e,n){t==="focusin"?(_f(),ho=e,Ro=n,ho.attachEvent("onpropertychange",hm)):t==="focusout"&&_f()}function yw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Na(Ro)}function ww(t,e){if(t==="click")return Na(e)}function _w(t,e){if(t==="input"||t==="change")return Na(e)}function xw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Nt=typeof Object.is=="function"?Object.is:xw;function Oo(t,e){if(Nt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!nu.call(e,s)||!Nt(t[s],e[s]))return!1}return!0}function xf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function bf(t,e){var n=xf(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xf(n)}}function pm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?pm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mm(){for(var t=window,e=Ji();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ji(t.document)}return e}function Fc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}
vendor: 5,927 bytes, line 38
38function bw(t){var e=mm(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&pm(n.ownerDocument.documentElement,n)){if(r!==null&&Fc(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!t.extend&&o>r&&(s=r,r=o,o=s),s=bf(n,o);var i=bf(n,r);s&&i&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Sw=an&&"documentMode"in document&&11>=document.documentMode,Zr=null,xu=null,po=null,bu=!1;function Sf(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bu||Zr==null||Zr!==Ji(r)||(r=Zr,"selectionStart"in r&&Fc(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}),po&&Oo(po,r)||(po=r,r=ra(xu,"onSelect"),0<r.length&&(e=new Dc("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Zr)))}function vi(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var es={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionend:vi("Transition","TransitionEnd")},El={},gm={};an&&(gm=document.createElement("div").style,"AnimationEvent"in window||(delete es.animationend.animation,delete es.animationiteration.animation,delete es.animationstart.animation),"TransitionEvent"in window||delete es.transitionend.transition);function La(t){if(El[t])return El[t];if(!es[t])return t;var e=es[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in gm)return El[t]=e[n];return t}var vm=La("animationend"),ym=La("animationiteration"),wm=La("animationstart"),_m=La("transitionend"),xm=new Map,Ef="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 tr(t,e){xm.set(t,e),jr(e,[t])}for(var kl=0;kl<Ef.length;kl++){var Cl=Ef[kl],Ew=Cl.toLowerCase(),kw=Cl[0].toUpperCase()+Cl.slice(1);tr(Ew,"on"+kw)}tr(vm,"onAnimationEnd");tr(ym,"onAnimationIteration");tr(wm,"onAnimationStart");tr("dblclick","onDoubleClick");tr("focusin","onFocus");tr("focusout","onBlur");tr(_m,"onTransitionEnd");Es("onMouseEnter",["mouseout","mouseover"]);Es("onMouseLeave",["mouseout","mouseover"]);Es("onPointerEnter",["pointerout","pointerover"]);Es("onPointerLeave",["pointerout","pointerover"]);jr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));jr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));jr("onBeforeInput",["compositionend","keypress","textInput","paste"]);jr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));jr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));jr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ao="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(" "),Cw=new Set("cancel close invalid load scroll toggle".split(" ").concat(ao));function kf(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,E0(r,e,void 0,t),t.currentTarget=null}function bm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;kf(s,a,u),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;kf(s,a,u),o=l}}}if(Xi)throw t=vu,Xi=!1,vu=null,t}function le(t,e){var n=e[Tu];n===void 0&&(n=e[Tu]=new Set);var r=t+"__bubble";n.has(r)||(Sm(e,t,2,!1),n.add(r))}function Tl(t,e,n){var r=0;e&&(r|=4),Sm(n,t,r,e)}var yi="_reactListening"+Math.random().toString(36).slice(2);function Ao(t){if(!t[yi]){t[yi]=!0,Op.forEach(function(n){n!=="selectionchange"&&(Cw.has(n)||Tl(n,!1,t),Tl(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[yi]||(e[yi]=!0,Tl("selectionchange",!1,e))}}function Sm(t,e,n,r){switch(im(e)){case 1:var s=F0;break;case 4:s=z0;break;default:s=Ic}n=s.bind(null,e,n,t),s=void 0,!gu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Pl(t,e,n,r,s){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 5,316 bytes, lines 38-39
38if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=mr(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}Kp(function(){var u=o,c=Ac(n),d=[];e:{var h=xm.get(t);if(h!==void 0){var f=Dc,_=t;switch(t){case"keypress":if(Ui(n)===0)break e;case"keydown":case"keyup":f=nw;break;case"focusin":_="focus",f=xl;break;case"focusout":_="blur",f=xl;break;case"beforeblur":case"afterblur":f=xl;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":f=hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=V0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=ow;break;case vm:case ym:case wm:f=q0;break;case _m:f=aw;break;case"scroll":f=B0;break;case"wheel":f=uw;break;case"copy":case"cut":case"paste":f=G0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=mf}var v=(e&4)!==0,w=!v&&t==="scroll",g=v?h!==null?h+"Capture":null:h;v=[];for(var p=u,m;p!==null;){m=p;var x=m.stateNode;if(m.tag===5&&x!==null&&(m=x,g!==null&&(x=ko(p,g),x!=null&&v.push(jo(p,x,m)))),w)break;p=p.return}0<v.length&&(h=new f(h,_,null,n,c),d.push({event:h,listeners:v}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",h&&n!==pu&&(_=n.relatedTarget||n.fromElement)&&(mr(_)||_[ln]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(_=n.relatedTarget||n.toElement,f=u,_=_?mr(_):null,_!==null&&(w=Nr(_),_!==w||_.tag!==5&&_.tag!==6)&&(_=null)):(f=null,_=u),f!==_)){if(v=hf,x="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(v=mf,x="onPointerLeave",g="onPointerEnter",p="pointer"),w=f==null?h:ts(f),m=_==null?h:ts(_),h=new v(x,p+"leave",f,n,c),h.target=w,h.relatedTarget=m,x=null,mr(c)===u&&(v=new v(g,p+"enter",_,n,c),v.target=m,v.relatedTarget=w,x=v),w=x,f&&_)t:{for(v=f,g=_,p=0,m=v;m;m=Br(m))p++;for(m=0,x=g;x;x=Br(x))m++;for(;0<p-m;)v=Br(v),p--;for(;0<m-p;)g=Br(g),m--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=Br(v),g=Br(g)}v=null}else v=null;f!==null&&Cf(d,h,f,v,!1),_!==null&&w!==null&&Cf(d,w,_,v,!0)}}e:{if(h=u?ts(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var S=gw;else if(yf(h))if(fm)S=_w;else{S=yw;var E=vw}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=ww);if(S&&(S=S(t,u))){dm(d,S,n,c);break e}E&&E(t,h,u),t==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&uu(h,"number",h.value)}switch(E=u?ts(u):window,t){case"focusin":(yf(E)||E.contentEditable==="true")&&(Zr=E,xu=u,po=null);break;case"focusout":po=xu=Zr=null;break;case"mousedown":bu=!0;break;case"contextmenu":case"mouseup":case"dragend":bu=!1,Sf(d,n,c);break;case"selectionchange":if(Sw)break;case"keydown":case"keyup":Sf(d,n,c)}var k;if(Uc)e:{switch(t){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Xr?um(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(lm&&n.locale!=="ko"&&(Xr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Xr&&(k=am()):(Dn=c,$c="value"in Dn?Dn.value:Dn.textContent,Xr=!0)),E=ra(u,R),0<E.length&&(R=new pf(R,t,null,n,c),d.push({event:R,listeners:E}),k?R.data=k:(k=cm(n),k!==null&&(R.data=k)))),(k=dw?fw(t,n):hw(t,n))&&(u=ra(u,"onBeforeInput"),0<u.length&&(c=new pf("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}bm(d,e)})}function jo(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ra(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=ko(t,n),o!=null&&r.unshift(jo(t,o,s)),o=ko(t,e),o!=null&&r.push(jo(t,o,s))),t=t.return}return r}function Br(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Cf(t,e,n,r,s){for(var o=e._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=ko(n,o),l!=null&&i.unshift(jo(n,l,a))):s||(l=ko(n,o),l!=null&&i.push(jo(n,l,a)))),n=n.return}i.length!==0&&t.push({event:e,listeners:i})}var Tw=/\r\n?/g,Pw=/\u0000|\uFFFD/g;function Tf(t){return(typeof t=="string"?t:""+t).replace(Tw,`
39`).replace(Pw,"")}function wi(t,e,n){if(e=Tf(e),Tf(t)!==e&&n)throw Error(O(425))}function sa(){}var Su=null,Eu=null;function ku(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Cu=typeof setTimeout=="function"?setTimeout:void 0,Rw=typeof clearTimeout=="function"?clearTimeout:void 0,Pf=typeof Promise=="function"?Promise:void 0,Ow=typeof queueMicrotask=="function"?queueMicrotask:typeof Pf<"u"?function(t){return Pf.resolve(null).then(t).cat
vendor: 4,824 bytes, line 39
39ch(Aw)}:Cu;function Aw(t){setTimeout(function(){throw t})}function Rl(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),Po(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Po(e)}function Wn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Rf(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var $s=Math.random().toString(36).slice(2),Wt="__reactFiber$"+$s,No="__reactProps$"+$s,ln="__reactContainer$"+$s,Tu="__reactEvents$"+$s,jw="__reactListeners$"+$s,Nw="__reactHandles$"+$s;function mr(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ln]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Rf(t);t!==null;){if(n=t[Wt])return n;t=Rf(t)}return e}t=n,n=t.parentNode}return null}function Xo(t){return t=t[Wt]||t[ln],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ts(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(O(33))}function Ia(t){return t[No]||null}var Pu=[],ns=-1;function nr(t){return{current:t}}function ue(t){0>ns||(t.current=Pu[ns],Pu[ns]=null,ns--)}function ie(t,e){ns++,Pu[ns]=t.current,t.current=e}var Jn={},Ue=nr(Jn),Ye=nr(!1),Cr=Jn;function ks(t,e){var n=t.type.contextTypes;if(!n)return Jn;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function Xe(t){return t=t.childContextTypes,t!=null}function oa(){ue(Ye),ue(Ue)}function Of(t,e,n){if(Ue.current!==Jn)throw Error(O(168));ie(Ue,e),ie(Ye,n)}function Em(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(O(108,v0(t)||"Unknown",s));return ge({},n,r)}function ia(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Jn,Cr=Ue.current,ie(Ue,t),ie(Ye,Ye.current),!0}function Af(t,e,n){var r=t.stateNode;if(!r)throw Error(O(169));n?(t=Em(t,e,Cr),r.__reactInternalMemoizedMergedChildContext=t,ue(Ye),ue(Ue),ie(Ue,t)):ue(Ye),ie(Ye,n)}var tn=null,$a=!1,Ol=!1;function km(t){tn===null?tn=[t]:tn.push(t)}function Lw(t){$a=!0,km(t)}function rr(){if(!Ol&&tn!==null){Ol=!0;var t=0,e=ne;try{var n=tn;for(ne=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}tn=null,$a=!1}catch(s){throw tn!==null&&(tn=tn.slice(t+1)),Jp(jc,rr),s}finally{ne=e,Ol=!1}}return null}var rs=[],ss=0,aa=null,la=0,dt=[],ft=0,Tr=null,rn=1,sn="";function dr(t,e){rs[ss++]=la,rs[ss++]=aa,aa=t,la=e}function Cm(t,e,n){dt[ft++]=rn,dt[ft++]=sn,dt[ft++]=Tr,Tr=t;var r=rn;t=sn;var s=32-At(r)-1;r&=~(1<<s),n+=1;var o=32-At(e)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,rn=1<<32-At(e)+s|n<<s|r,sn=o+t}else rn=1<<o|n<<s|r,sn=t}function zc(t){t.return!==null&&(dr(t,1),Cm(t,1,0))}function Bc(t){for(;t===aa;)aa=rs[--ss],rs[ss]=null,la=rs[--ss],rs[ss]=null;for(;t===Tr;)Tr=dt[--ft],dt[ft]=null,sn=dt[--ft],dt[ft]=null,rn=dt[--ft],dt[ft]=null}var st=null,rt=null,fe=!1,Ot=null;function Tm(t,e){var n=ht(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function jf(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,st=t,rt=Wn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,st=t,rt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Tr!==null?{id:rn,overflow:sn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,st=t,rt=null,!0):!1;default:return!1}}function Ru(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ou(t){if(fe){var e=rt;if(e){var n=e;if(!jf(t,e)){if(Ru(t))throw Error(O(418));e=Wn(n.nextSibling);var r=st;e&&jf(t,e)?Tm(r,n):(t.flags=t.flags&-4097|2,fe=!1,st=t)}}else{if(Ru(t))throw Error(O(418));t.flags=t.flags&-4097|2,fe=!1,st=t}}}function Nf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;st=t}function _i(t){if(t!==st)return!1;if(!fe)return Nf(t),fe=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!ku(t.type,t.memoizedProps)),e&&(e=rt)){if(Ru(t))throw Pm(),Error(O(418));for(;e;)Tm(t,e),e=Wn(e.nextSibling)}if(Nf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(O(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 25,595 bytes, lines 39-41
39){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){rt=Wn(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}rt=null}}else rt=st?Wn(t.stateNode.nextSibling):null;return!0}function Pm(){for(var t=rt;t;)t=Wn(t.nextSibling)}function Cs(){rt=st=null,fe=!1}function Wc(t){Ot===null?Ot=[t]:Ot.push(t)}var Iw=hn.ReactCurrentBatchConfig;function Xs(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,t));var s=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},e._stringRef=o,e)}if(typeof t!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,t))}return t}function xi(t,e){throw t=Object.prototype.toString.call(e),Error(O(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Lf(t){var e=t._init;return e(t._payload)}function Rm(t){function e(g,p){if(t){var m=g.deletions;m===null?(g.deletions=[p],g.flags|=16):m.push(p)}}function n(g,p){if(!t)return null;for(;p!==null;)e(g,p),p=p.sibling;return null}function r(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function s(g,p){return g=qn(g,p),g.index=0,g.sibling=null,g}function o(g,p,m){return g.index=m,t?(m=g.alternate,m!==null?(m=m.index,m<p?(g.flags|=2,p):m):(g.flags|=2,p)):(g.flags|=1048576,p)}function i(g){return t&&g.alternate===null&&(g.flags|=2),g}function a(g,p,m,x){return p===null||p.tag!==6?(p=Dl(m,g.mode,x),p.return=g,p):(p=s(p,m),p.return=g,p)}function l(g,p,m,x){var S=m.type;return S===Yr?c(g,p,m.props.children,x,m.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Tn&&Lf(S)===p.type)?(x=s(p,m.props),x.ref=Xs(g,p,m),x.return=g,x):(x=Ki(m.type,m.key,m.props,null,g.mode,x),x.ref=Xs(g,p,m),x.return=g,x)}function u(g,p,m,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=Ml(m,g.mode,x),p.return=g,p):(p=s(p,m.children||[]),p.return=g,p)}function c(g,p,m,x,S){return p===null||p.tag!==7?(p=kr(m,g.mode,x,S),p.return=g,p):(p=s(p,m),p.return=g,p)}function d(g,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Dl(""+p,g.mode,m),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ci:return m=Ki(p.type,p.key,p.props,null,g.mode,m),m.ref=Xs(g,null,p),m.return=g,m;case Jr:return p=Ml(p,g.mode,m),p.return=g,p;case Tn:var x=p._init;return d(g,x(p._payload),m)}if(oo(p)||qs(p))return p=kr(p,g.mode,m,null),p.return=g,p;xi(g,p)}return null}function h(g,p,m,x){var S=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:a(g,p,""+m,x);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ci:return m.key===S?l(g,p,m,x):null;case Jr:return m.key===S?u(g,p,m,x):null;case Tn:return S=m._init,h(g,p,S(m._payload),x)}if(oo(m)||qs(m))return S!==null?null:c(g,p,m,x,null);xi(g,m)}return null}function f(g,p,m,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(m)||null,a(p,g,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ci:return g=g.get(x.key===null?m:x.key)||null,l(p,g,x,S);case Jr:return g=g.get(x.key===null?m:x.key)||null,u(p,g,x,S);case Tn:var E=x._init;return f(g,p,m,E(x._payload),S)}if(oo(x)||qs(x))return g=g.get(m)||null,c(p,g,x,S,null);xi(p,x)}return null}function _(g,p,m,x){for(var S=null,E=null,k=p,R=p=0,N=null;k!==null&&R<m.length;R++){k.index>R?(N=k,k=null):N=k.sibling;var j=h(g,k,m[R],x);if(j===null){k===null&&(k=N);break}t&&k&&j.alternate===null&&e(g,k),p=o(j,p,R),E===null?S=j:E.sibling=j,E=j,k=N}if(R===m.length)return n(g,k),fe&&dr(g,R),S;if(k===null){for(;R<m.length;R++)k=d(g,m[R],x),k!==null&&(p=o(k,p,R),E===null?S=k:E.sibling=k,E=k);return fe&&dr(g,R),S}for(k=r(g,k);R<m.length;R++)N=f(k,g,R,m[R],x),N!==null&&(t&&N.alternate!==null&&k.delete(N.key===null?R:N.key),p=o(N,p,R),E===null?S=N:E.sibling=N,E=N);return t&&k.forEach(function(U){return e(g,U)}),fe&&dr(g,R),S}function v(g,p,m,x){var S=qs(m);if(typeof S!="function")throw Error(O(150));if(m=S.call(m),m==null)throw Error(O(151));for(var E=S=null,k=p,R=p=0,N=null,j=m.next();k!==null&&!j.done;R++,j=m.next()){k.index>R?(N=k,k=null):N=k.sibling;var U=h(g,k,j.value,x);if(U===null){k===null&&(k=N);break}t&&k&&U.alternate===null&&e(g,k),p=o(U,p,R),E===null?S=U:E.sibling=U,E=U,k=N}if(j.done)return n(g,k),fe&&dr(g,R),S;if(k===null){for(;!j.done;R++,j=m.next())j=d(g,j.value,x),j!==null&&(p=o(j,p,R),E===null?S=j:E.sibling=j,E=j);return fe&&dr(g,R),S}for(k=r(g,k);!j.done;R++,j=m.next())j=f(k,g,R,j.value,x),j!==null&&(t&&j.alternate!==null&&k.delete(j.key===null?R:j.key),p=o(j,p,R),E===null?S=j:E.sibling=j,E=j);return t&&k.forEach(function(D){return e(g,D)}),fe&&dr(g,R),S}function w(g,p,m,x){if(typeof m=="object"&&m!==null&&m.type===Yr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ci:e:{for(var S=m.key,E=p;E!==null;){if(E.key===S){if(S=m.type,S===Yr){if(E.tag===7){n(g,E.sibling),p=s(E,m.props.children),p.return=g,g=p;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Tn&&Lf(S)===E.type){n(g,E.sibling),p=s(E,m.props),p.ref=Xs(g,E,m),p.return=g,g=p;break e}n(g,E);break}else e(g,E);E=E.sibling}m.type===Yr?(p=kr(m.props.children,g.mode,x,m.key),p.return=g,g=p):(x=Ki(m.type,m.key,m.props,null,g.mode,x),x.ref=Xs(g,p,m),x.return=g,g=x)}return i(g);case Jr:e:{for(E=m.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=s(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else e(g,p);p=p.sibling}p=Ml(m,g.mode,x),p.return=g,g=p}return i(g);case Tn:return E=m._init,w(g,p,E(m._payload),x)}if(oo(m))return _(g,p,m,x);if(qs(m))return v(g,p,m,x);xi(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=s(p,m),p.return=g,g=p):(n(g,p),p=Dl(m,g.mode,x),p.return=g,g=p),i(g)):n(g,p)}return w}var Ts=Rm(!0),Om=Rm(!1),ua=nr(null),ca=null,os=null,Vc=null;function Hc(){Vc=os=ca=null}function Kc(t){var e=ua.current;ue(ua),t._currentValue=e}function Au(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function fs(t,e){ca=t,Vc=os=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Je=!0),t.firstContext=null)}function gt(t){var e=t._currentValue;if(Vc!==t)if(t={context:t,memoizedValue:e,next:null},os===null){if(ca===null)throw Error(O(308));os=t,ca.dependencies={lanes:0,firstContext:t}}else os=os.next=t;return e}var gr=null;function qc(t){gr===null?gr=[t]:gr.push(t)}function Am(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,qc(e)):(n.next=s.next,s.next=n),e.interleaved=n,un(t,r)}function un(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Pn=!1;function Qc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jm(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function on(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,un(t,n)}return s=r.interleaved,s===null?(e.next=e,qc(r)):(e.next=s.next,s.next=e),r.interleaved=e,un(t,n)}function Fi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Nc(t,n)}}function If(t,e){var n=t.updateQueue,r=t.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=e:o=o.next=e}else s=o=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function da(t,e,n,r){var s=t.updateQueue;Pn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=s.baseState;i=0,c=u=l=null,a=o;do{var h=a.lane,f=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=t,v=a;switch(h=e,f=n,v.tag){case 1:if(_=v.payload,typeof _=="function"){d=_.call(f,d,h);break e}d=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=v.payload,h=typeof _=="function"?_.call(f,d,h):_,h==null)break e;d=ge({},d,h);break e;case 2:Pn=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,i|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,e=s.shared.interleaved,e!==null){s=e;do i|=s.lane,s=s.next;while(s!==e)}else o===null&&(s.shared.lanes=0);Rr|=i,t.lanes=i,t.memoizedState=d}}function $f(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(O(191,s));s.call(r)}}}var Zo={},Kt=nr(Zo),Lo=nr(Zo),Io=nr(Zo);function vr(t){if(t===Zo)throw Error(O(174));return t}function Gc(t,e){switch(ie(Io,e),ie(Lo,t),ie(Kt,Zo),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:du(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=du(e,t)}ue(Kt),ie(Kt,e)}function Ps(){ue(Kt),ue(Lo),ue(Io)}function Nm(t){vr(Io.current);var e=vr(Kt.current),n=du(e,t.type);e!==n&&(ie(Lo,t),ie(Kt,n))}function Jc(t){Lo.current===t&&(ue(Kt),ue(Lo))}var pe=nr(0);function fa(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Al=[];function Yc(){for(var t=0;t<Al.length;t++)Al[t]._workInProgressVersionPrimary=null;Al.length=0}var zi=hn.ReactCurrentDispatcher,jl=hn.ReactCurrentBatchConfig,Pr=0,me=null,ke=null,Pe=null,ha=!1,mo=!1,$o=0,$w=0;function Ie(){throw Error(O(321))}function Xc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Nt(t[n],e[n]))return!1;return!0}function Zc(t,e,n,r,s,o){if(Pr=o,me=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,zi.current=t===null||t.memoizedState===null?Fw:zw,t=n(r,s),mo){o=0;do{if(mo=!1,$o=0,25<=o)throw Error(O(301));o+=1,Pe=ke=null,e.updateQueue=null,zi.current=Bw,t=n(r,s)}while(mo)}if(zi.current=pa,e=ke!==null&&ke.next!==null,Pr=0,Pe=ke=me=null,ha=!1,e)throw Error(O(300));return t}function ed(){var t=$o!==0;return $o=0,t}function Mt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?me.memoizedState=Pe=t:Pe=Pe.next=t,Pe}function vt(){if(ke===null){var t=me.alternate;t=t!==null?t.memoizedState:null}else t=ke.next;var e=Pe===null?me.memoizedState:Pe.next;if(e!==null)Pe=e,ke=t;else{if(t===null)throw Error(O(310));ke=t,t={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Pe===null?me.memoizedState=Pe=t:Pe=Pe.next=t}return Pe}function Do(t,e){return typeof e=="function"?e(t):e}function Nl(t){var e=vt(),n=e.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=t;var r=ke,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,l=null,u=o;do{var c=u.lane;if((Pr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,i=r):l=l.next=d,me.lanes|=c,Rr|=c}u=u.next}while(u!==null&&u!==o);l===null?i=r:l.next=a,Nt(r,e.memoizedState)||(Je=!0),e.memoizedState=r,e.baseState=i,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do o=s.lane,me.lanes|=o,Rr|=o,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Ll(t){var e=vt(),n=e.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=t(o,i.action),i=i.next;while(i!==s);Nt(o,e.memoizedState)||(Je=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function Lm(){}function Im(t,e){var n=me,r=vt(),s=e(),o=!Nt(r.memoizedState,s);if(o&&(r.memoizedState=s,Je=!0),r=r.queue,td(Mm.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Mo(9,Dm.bind(null,n,r,s,e),void 0,null),Re===null)throw Error(O(349));Pr&30||$m(n,e,s)}return s}function $m(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=me.updateQueue,e===null?(e={lastEffect:null,stores:null},me.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Dm(t,e,n,r){e.value=n,e.getSnapshot=r,Um(e)&&Fm(t)}function Mm(t,e,n){return n(function(){Um(e)&&Fm(t)})}function Um(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Nt(t,n)}catch{return!0}}function Fm(t){var e=un(t,1);e!==null&&jt(e,t,1,-1)}function Df(t){var e=Mt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:t},e.queue=t,t=t.dispatch=Uw.bind(null,me,t),[e.memoizedState,t]}function Mo(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=me.updateQueue,e===null?(e={lastEffect:null,stores:null},me.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function zm(){return vt().memoizedState}function Bi(t,e,n,r){var s=Mt();me.flags|=t,s.memoizedState=Mo(1|e,n,void 0,r===void 0?null:r)}function Da(t,e,n,r){var s=vt();r=r===void 0?null:r;var o=void 0;if(ke!==null){var i=ke.memoizedState;if(o=i.destroy,r!==null&&Xc(r,i.deps)){s.memoizedState=Mo(e,n,o,r);return}}me.flags|=t,s.memoizedState=Mo(1|e,n,o,r)}function Mf(t,e){return Bi(8390656,8,t,e)}function td(t,e){return Da(2048,8,t,e)}function Bm(t,e){return Da(4,2,t,e)}function Wm(t,e){return Da(4,4,t,e)}function Vm(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Hm(t,e,n){return n=n!=null?n.concat([t]):null,Da(4,4,Vm.bind(null,e,t),n)}function nd(){}function Km(t,e){var n=vt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Xc(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function qm(t,e){var n=vt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Xc(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Qm(t,e,n){return Pr&21?(Nt(n,e)||(n=Zp(),me.lanes|=n,Rr|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Je=!0),t.memoizedState=n)}function Dw(t,e){var n=ne;ne=n!==0&&4>n?n:4,t(!0);var r=jl.transition;jl.transition={};try{t(!1),e()}finally{ne=n,jl.transition=r}}function Gm(){return vt().memoizedState}function Mw(t,e,n){var r=Kn(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jm(t))Ym(e,n);else if(n=Am(t,e,n,r),n!==null){var s=Ve();jt(n,t,r,s),Xm(n,e,r)}}function Uw(t,e,n){var r=Kn(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jm(t))Ym(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var i=e.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,Nt(a,i)){var l=e.interleaved;l===null?(s.next=s,qc(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}n=Am(t,e,s,r),n!==null&&(s=Ve(),jt(n,t,r,s),Xm(n,e,r))}}function Jm(t){var e=t.alternate;return t===me||e!==null&&e===me}function Ym(t,e){mo=ha=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Xm(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Nc(t,n)}}var pa={readContext:gt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},Fw={readContext:gt,useCallback:function(t,e){return Mt().memoizedState=[t,e===void 0?null:e],t},useContext:gt,useEffect:Mf,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Bi(4194308,4,Vm.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Bi(4194308,4,t,e)},useInsertionEffect:function(t,e){return Bi(4,2,t,e)},useMemo:function(t,e){var n=Mt();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Mt();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Mw.bind(null,me,t),[r.memoizedState,t]},useRef:function(t){var e=Mt();return t={current:t},e.memoizedState=t},useState:Df,useDebugValue:nd,useDeferredValue:function(t){return Mt().memoizedState=t},useTransition:function(){var t=Df(!1),e=t[0];return t=Dw.bind(null,t[1]),Mt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=me,s=Mt();if(fe){if(n===void 0)throw Error(O(407));n=n()}else{if(n=e(),Re===null)throw Error(O(349));Pr&30||$m(r,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,Mf(Mm.bind(null,r,o,t),[t]),r.flags|=2048,Mo(9,Dm.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=Mt(),e=Re.identifierPrefix;if(fe){var n=sn,r=rn;n=(r&~(1<<32-At(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=$o++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=$w++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},zw={readContext:gt,useCallback:Km,useContext:gt,useEffect:td,useImperativeHandle:Hm,useInsertionEffect:Bm,useLayoutEffect:Wm,useMemo:qm,useReducer:Nl,useRef:zm,useState:function(){return Nl(Do)},useDebugValue:nd,useDeferredValue:function(t){var e=vt();return Qm(e,ke.memoizedState,t)},useTransition:function(){var t=Nl(Do)[0],e=vt().memoizedState;return[t,e]},useMutableSource:Lm,useSyncExternalStore:Im,useId:Gm,unstable_isNewReconciler:!1},Bw={readContext:gt,useCallback:Km,useContext:gt,useEffect:td,useImperativeHandle:Hm,useInsertionEffect:Bm,useLayoutEffect:Wm,useMemo:qm,useReducer:Ll,useRef:zm,useState:function(){return Ll(Do)},useDebugValue:nd,useDeferredValue:function(t){var e=vt();return ke===null?e.memoizedState=t:Qm(e,ke.memoizedState,t)},useTransition:function(){var t=Ll(Do)[0],e=vt().memoizedState;return[t,e]},useMutableSource:Lm,useSyncExternalStore:Im,useId:Gm,unstable_isNewReconciler:!1};function Et(t,e){if(t&&t.defaultProps){e=ge({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function ju(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:ge({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ma={isMounted:function(t){return(t=t._reactInternals)?Nr(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ve(),s=Kn(t),o=on(r,s);o.payload=e,n!=null&&(o.callback=n),e=Vn(t,o,s),e!==null&&(jt(e,t,s,r),Fi(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ve(),s=Kn(t),o=on(r,s);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Vn(t,o,s),e!==null&&(jt(e,t,s,r),Fi(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ve(),r=Kn(t),s=on(n,r);s.tag=2,e!=null&&(s.callback=e),e=Vn(t,s,r),e!==null&&(jt(e,t,r,n),Fi(e,t,r))}};function Uf(t,e,n,r,s,o,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,i):e.prototype&&e.prototype.isPureReactComponent?!Oo(n,r)||!Oo(s,o):!0}function Zm(t,e,n){var r=!1,s=Jn,o=e.contextType;return typeof o=="object"&&o!==null?o=gt(o):(s=Xe(e)?Cr:Ue.current,r=e.contextTypes,o=(r=r!=null)?ks(t,s):Jn),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ma,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=o),e}function Ff(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Ma.enqueueReplaceState(e,e.state,null)}function Nu(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},Qc(t);var o=e.contextType;typeof o=="object"&&o!==null?s.context=gt(o):(o=Xe(e)?Cr:Ue.current,s.context=ks(t,o)),s.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(ju(t,e,o,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&Ma.enqueueReplaceState(s,s.state,null),da(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function Rs(t,e){try{var n="",r=e;do n+=g0(r),r=r.return;while(r);var s=n}catch(o){s=`
40Error generating stack: `+o.message+`
41`+o.stack}return{value:t,source:e,stack:s,digest:null}}function Il(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Lu(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Ww=typeof WeakMap=="function"?WeakMap:Map;function eg(t,e,n){n=on(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){ga||(ga=!0,Vu=r),Lu(t,e)},n}function tg(t,e,n){n=on(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){Lu(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Lu(t,e),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var i=e.stack;this.componentDidCatch(e.value,{componentStack:i!==null?i:""})}),n}function zf(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new Ww;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=r_.bind(null,t,e,n),e.then(t,t))}function Bf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Wf(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=on(-1,1),e.tag=2,Vn(n,e,1))),n.lanes|=1),t)}var Vw=hn.ReactCurrentOwner,Je=!1;function Be(t,e,n,r){e.child=t===null?Om(e,null,n,r):Ts(e,t.child,n,r)}function Vf(t,e,n,r,s){n=n.render;var o=e.ref;return fs(e,s),r=Zc(t,e,n,r,o,s),n=ed(),t!==null&&!Je?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,cn(t,e,s)):(fe&&n&&zc(e),e.flags|=1,Be(t,e,r,s),e.child)}function Hf(t,e,n,r,s){if(t===null){var o=n.type;return typeof o=="function"&&!cd(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,ng(t,e,o,r,s)):(t=Ki(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Oo,n(i,r)&&t.ref===e.ref)return cn(t,e,s)}return e.flags|=1,t=qn(o,r),t.ref=e.ref,t.return=e,e.child=t}function ng(t,e,n,r,s){if(t!==null){var o=t.memoizedProps;if(Oo(o,r)&&t.ref===e.ref)if(Je=!1,e.pendingProps=r=o,(t.lanes&s)!==0)t.flags&131072&&(Je=!0);else return e.lanes=t.lanes,cn(t,e,s)}return Iu(t,e,n,r,s)}function rg(t,e,n){var r=e.pendingProps,s=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ie(as,tt),tt|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ie(as,tt),tt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ie(as,tt),tt|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,ie(as,tt),tt|=r;return Be(t,e,s,n),e.child}function sg(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 6,245 bytes, line 41
41function Iu(t,e,n,r,s){var o=Xe(n)?Cr:Ue.current;return o=ks(e,o),fs(e,s),n=Zc(t,e,n,r,o,s),r=ed(),t!==null&&!Je?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,cn(t,e,s)):(fe&&r&&zc(e),e.flags|=1,Be(t,e,n,s),e.child)}function Kf(t,e,n,r,s){if(Xe(n)){var o=!0;ia(e)}else o=!1;if(fs(e,s),e.stateNode===null)Wi(t,e),Zm(e,n,r),Nu(e,n,r,s),r=!0;else if(t===null){var i=e.stateNode,a=e.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=gt(u):(u=Xe(n)?Cr:Ue.current,u=ks(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ff(e,i,r,u),Pn=!1;var h=e.memoizedState;i.state=h,da(e,r,i,s),l=e.memoizedState,a!==r||h!==l||Ye.current||Pn?(typeof c=="function"&&(ju(e,n,c,r),l=e.memoizedState),(a=Pn||Uf(e,n,a,r,h,l,u))?(d||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"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{i=e.stateNode,jm(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Et(e.type,a),i.props=u,d=e.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=gt(l):(l=Xe(n)?Cr:Ue.current,l=ks(e,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Ff(e,i,r,l),Pn=!1,h=e.memoizedState,i.state=h,da(e,r,i,s);var _=e.memoizedState;a!==d||h!==_||Ye.current||Pn?(typeof f=="function"&&(ju(e,n,f,r),_=e.memoizedState),(u=Pn||Uf(e,n,u,r,h,_,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,_,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,_,l)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=_),i.props=r,i.state=_,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return $u(t,e,n,r,o,s)}function $u(t,e,n,r,s,o){sg(t,e);var i=(e.flags&128)!==0;if(!r&&!i)return s&&Af(e,n,!1),cn(t,e,o);r=e.stateNode,Vw.current=e;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&i?(e.child=Ts(e,t.child,null,o),e.child=Ts(e,null,a,o)):Be(t,e,a,o),e.memoizedState=r.state,s&&Af(e,n,!0),e.child}function og(t){var e=t.stateNode;e.pendingContext?Of(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Of(t,e.context,!1),Gc(t,e.containerInfo)}function qf(t,e,n,r,s){return Cs(),Wc(s),e.flags|=256,Be(t,e,n,r),e.child}var Du={dehydrated:null,treeContext:null,retryLane:0};function Mu(t){return{baseLanes:t,cachePool:null,transitions:null}}function ig(t,e,n){var r=e.pendingProps,s=pe.current,o=!1,i=(e.flags&128)!==0,a;if((a=i)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),ie(pe,s&1),t===null)return Ou(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(i=r.children,t=r.fallback,o?(r=e.mode,o=e.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=za(i,r,0,null),t=kr(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=Mu(n),e.memoizedState=Du,t):rd(e,i));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Hw(t,e,i,r,a,s,n);if(o){o=r.fallback,i=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=qn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=qn(a,o):(o=kr(o,i,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,i=t.child.memoizedState,i=i===null?Mu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=t.childLanes&~n,e.memoizedState=Du,r}return o=t.child,t=o.sibling,r=qn(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function rd(t,e){return e=za({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function bi(t,e,n,r){return r!==null&&Wc(r),Ts(e,t.child,null,n),t=rd(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Hw(t,e,n,r,s,o,i){if(n)return e.flags&256?(e.flags&=-257,r=Il(Error(O(422))),bi(t,e,i,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,s=e.mode,r=za({mode:"visible",children:r.children},s,0,null),o=kr(o,s,i,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&Ts(e,t.child,null,i),e.child.memoizedState=Mu(i),e.memoizedState=Du,o);if(!(e.mode&1))return bi(t,e,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(O(419)),r=Il(o,r,void 0),bi(t,e,i,r)}if(a=(i&t.childLanes)!==0,Je||a){if(r=Re,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}
vendor: 6,679 bytes, line 41
41s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,un(t,s),jt(r,t,s,-1))}return ud(),r=Il(Error(O(421))),bi(t,e,i,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=s_.bind(null,t),s._reactRetry=e,null):(t=o.treeContext,rt=Wn(s.nextSibling),st=e,fe=!0,Ot=null,t!==null&&(dt[ft++]=rn,dt[ft++]=sn,dt[ft++]=Tr,rn=t.id,sn=t.overflow,Tr=e),e=rd(e,r.children),e.flags|=4096,e)}function Qf(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Au(t.return,e,n)}function $l(t,e,n,r,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function ag(t,e,n){var r=e.pendingProps,s=r.revealOrder,o=r.tail;if(Be(t,e,r.children,n),r=pe.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qf(t,n,e);else if(t.tag===19)Qf(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ie(pe,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&fa(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),$l(e,!1,s,n,o);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&fa(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}$l(e,!0,n,null,o);break;case"together":$l(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Wi(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function cn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Rr|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(O(153));if(e.child!==null){for(t=e.child,n=qn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=qn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Kw(t,e,n){switch(e.tag){case 3:og(e),Cs();break;case 5:Nm(e);break;case 1:Xe(e.type)&&ia(e);break;case 4:Gc(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;ie(ua,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(ie(pe,pe.current&1),e.flags|=128,null):n&e.child.childLanes?ig(t,e,n):(ie(pe,pe.current&1),t=cn(t,e,n),t!==null?t.sibling:null);ie(pe,pe.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return ag(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ie(pe,pe.current),r)break;return null;case 22:case 23:return e.lanes=0,rg(t,e,n)}return cn(t,e,n)}var lg,Uu,ug,cg;lg=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Uu=function(){};ug=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,vr(Kt.current);var o=null;switch(n){case"input":s=au(t,s),r=au(t,r),o=[];break;case"select":s=ge({},s,{value:void 0}),r=ge({},r,{value:void 0}),o=[];break;case"textarea":s=cu(t,s),r=cu(t,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=sa)}fu(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"&&(So.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(So.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&le("scroll",t),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(e.updateQueue=u)&&(e.flags|=4)}};cg=function(t,e,n,r){n!==r&&(e.flags|=4)};function Zs(t,e){if(!fe)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function $e(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function qw(t,e,n){var r=e.pendingProps;switch(Bc(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(e),null;case 1:return Xe(e.type)&&oa(),$e(e),null;case 3:return r=e.stateNode,Ps(),ue(Ye),ue(Ue),Yc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(_i(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ot!==null&&(qu(Ot),Ot=null))),Uu(t,e),$e(e),null;case 5:Jc(e);var s=vr(Io.current);if(n=e.type,t!==null&&e.stateNode!=null)ug(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(O(166));return $e(e),null}if(t=vr(Kt.current),_i(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[Wt]=e,r[No]=o,t=(e.mode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(s=0;s<ao.length;s++)le(ao[s],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":nf(r,o),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},le("invalid",r);break;case"textarea":sf(r,o),le("invalid",r)}fu(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 30,089 bytes, line 41
41i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&wi(r.textContent,a,t),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&wi(r.textContent,a,t),s=["children",""+a]):So.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&le("scroll",r)}switch(n){case"input":di(r),rf(r,o,!0);break;case"textarea":di(r),of(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=sa)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Mp(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=i.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=i.createElement(n,{is:r.is}):(t=i.createElement(n),n==="select"&&(i=t,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):t=i.createElementNS(t,n),t[Wt]=e,t[No]=r,lg(t,e,!1,!1),e.stateNode=t;e:{switch(i=hu(n,r),n){case"dialog":le("cancel",t),le("close",t),s=r;break;case"iframe":case"object":case"embed":le("load",t),s=r;break;case"video":case"audio":for(s=0;s<ao.length;s++)le(ao[s],t);s=r;break;case"source":le("error",t),s=r;break;case"img":case"image":case"link":le("error",t),le("load",t),s=r;break;case"details":le("toggle",t),s=r;break;case"input":nf(t,r),s=au(t,r),le("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=ge({},r,{value:void 0}),le("invalid",t);break;case"textarea":sf(t,r),s=cu(t,r),le("invalid",t);break;default:s=r}fu(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?zp(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Up(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Eo(t,l):typeof l=="number"&&Eo(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(So.hasOwnProperty(o)?l!=null&&o==="onScroll"&&le("scroll",t):l!=null&&Tc(t,o,l,i))}switch(n){case"input":di(t),rf(t,r,!1);break;case"textarea":di(t),of(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Gn(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?ls(t,!!r.multiple,o,!1):r.defaultValue!=null&&ls(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=sa)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return $e(e),null;case 6:if(t&&e.stateNode!=null)cg(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(O(166));if(n=vr(Io.current),vr(Kt.current),_i(e)){if(r=e.stateNode,n=e.memoizedProps,r[Wt]=e,(o=r.nodeValue!==n)&&(t=st,t!==null))switch(t.tag){case 3:wi(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&wi(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Wt]=e,e.stateNode=r}return $e(e),null;case 13:if(ue(pe),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(fe&&rt!==null&&e.mode&1&&!(e.flags&128))Pm(),Cs(),e.flags|=98560,o=!1;else if(o=_i(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(O(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(O(317));o[Wt]=e}else Cs(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;$e(e),o=!1}else Ot!==null&&(qu(Ot),Ot=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||pe.current&1?Te===0&&(Te=3):ud())),e.updateQueue!==null&&(e.flags|=4),$e(e),null);case 4:return Ps(),Uu(t,e),t===null&&Ao(e.stateNode.containerInfo),$e(e),null;case 10:return Kc(e.type._context),$e(e),null;case 17:return Xe(e.type)&&oa(),$e(e),null;case 19:if(ue(pe),o=e.memoizedState,o===null)return $e(e),null;if(r=(e.flags&128)!==0,i=o.rendering,i===null)if(r)Zs(o,!1);else{if(Te!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(i=fa(t),i!==null){for(e.flags|=128,Zs(o,!1),r=i.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=t,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,t=i.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ie(pe,pe.current&1|2),e.child}t=t.sibling}o.tail!==null&&we()>Os&&(e.flags|=128,r=!0,Zs(o,!1),e.lanes=4194304)}else{if(!r)if(t=fa(i),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Zs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!fe)return $e(e),null}else 2*we()-o.renderingStartTime>Os&&n!==1073741824&&(e.flags|=128,r=!0,Zs(o,!1),e.lanes=4194304);o.isBackwards?(i.sibling=e.child,e.child=i):(n=o.last,n!==null?n.sibling=i:e.child=i,o.last=i)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=we(),e.sibling=null,n=pe.current,ie(pe,r?n&1|2:n&1),e):($e(e),null);case 22:case 23:return ld(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?tt&1073741824&&($e(e),e.subtreeFlags&6&&(e.flags|=8192)):$e(e),null;case 24:return null;case 25:return null}throw Error(O(156,e.tag))}function Qw(t,e){switch(Bc(e),e.tag){case 1:return Xe(e.type)&&oa(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ps(),ue(Ye),ue(Ue),Yc(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Jc(e),null;case 13:if(ue(pe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(O(340));Cs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ue(pe),null;case 4:return Ps(),null;case 10:return Kc(e.type._context),null;case 22:case 23:return ld(),null;case 24:return null;default:return null}}var Si=!1,Me=!1,Gw=typeof WeakSet=="function"?WeakSet:Set,$=null;function is(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(t,e,r)}else n.current=null}function Fu(t,e,n){try{n()}catch(r){ye(t,e,r)}}var Gf=!1;function Jw(t,e){if(Su=ta,t=mm(),Fc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.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,l=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=i+s),d!==o||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===n&&++u===s&&(a=i),h===o&&++c===r&&(l=i),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eu={focusedElem:t,selectionRange:n},ta=!1,$=e;$!==null;)if(e=$,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$=t;else for(;$!==null;){e=$;try{var _=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var v=_.memoizedProps,w=_.memoizedState,g=e.stateNode,p=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:Et(e.type,v),w);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(x){ye(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,$=t;break}$=e.return}return _=Gf,Gf=!1,_}function go(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var o=s.destroy;s.destroy=void 0,o!==void 0&&Fu(e,n,o)}s=s.next}while(s!==r)}}function Ua(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function zu(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function dg(t){var e=t.alternate;e!==null&&(t.alternate=null,dg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Wt],delete e[No],delete e[Tu],delete e[jw],delete e[Nw])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function fg(t){return t.tag===5||t.tag===3||t.tag===4}function Jf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||fg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Bu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=sa));else if(r!==4&&(t=t.child,t!==null))for(Bu(t,e,n),t=t.sibling;t!==null;)Bu(t,e,n),t=t.sibling}function Wu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Wu(t,e,n),t=t.sibling;t!==null;)Wu(t,e,n),t=t.sibling}var Oe=null,Pt=!1;function xn(t,e,n){for(n=n.child;n!==null;)hg(t,e,n),n=n.sibling}function hg(t,e,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Aa,n)}catch{}switch(n.tag){case 5:Me||is(n,e);case 6:var r=Oe,s=Pt;Oe=null,xn(t,e,n),Oe=r,Pt=s,Oe!==null&&(Pt?(t=Oe,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Pt?(t=Oe,n=n.stateNode,t.nodeType===8?Rl(t.parentNode,n):t.nodeType===1&&Rl(t,n),Po(t)):Rl(Oe,n.stateNode));break;case 4:r=Oe,s=Pt,Oe=n.stateNode.containerInfo,Pt=!0,xn(t,e,n),Oe=r,Pt=s;break;case 0:case 11:case 14:case 15:if(!Me&&(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)&&Fu(n,e,i),s=s.next}while(s!==r)}xn(t,e,n);break;case 1:if(!Me&&(is(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,e,a)}xn(t,e,n);break;case 21:xn(t,e,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,xn(t,e,n),Me=r):xn(t,e,n);break;default:xn(t,e,n)}}function Yf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Gw),e.forEach(function(r){var s=o_.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function xt(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=t,i=e,a=i;e:for(;a!==null;){switch(a.tag){case 5:Oe=a.stateNode,Pt=!1;break e;case 3:Oe=a.stateNode.containerInfo,Pt=!0;break e;case 4:Oe=a.stateNode.containerInfo,Pt=!0;break e}a=a.return}if(Oe===null)throw Error(O(160));hg(o,i,s),Oe=null,Pt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){ye(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)pg(e,t),e=e.sibling}function pg(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(xt(e,t),Dt(t),r&4){try{go(3,t,t.return),Ua(3,t)}catch(v){ye(t,t.return,v)}try{go(5,t,t.return)}catch(v){ye(t,t.return,v)}}break;case 1:xt(e,t),Dt(t),r&512&&n!==null&&is(n,n.return);break;case 5:if(xt(e,t),Dt(t),r&512&&n!==null&&is(n,n.return),t.flags&32){var s=t.stateNode;try{Eo(s,"")}catch(v){ye(t,t.return,v)}}if(r&4&&(s=t.stateNode,s!=null)){var o=t.memoizedProps,i=n!==null?n.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&$p(s,o),hu(a,i);var u=hu(a,o);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];c==="style"?zp(s,d):c==="dangerouslySetInnerHTML"?Up(s,d):c==="children"?Eo(s,d):Tc(s,c,d,u)}switch(a){case"input":lu(s,o);break;case"textarea":Dp(s,o);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?ls(s,!!o.multiple,f,!1):h!==!!o.multiple&&(o.defaultValue!=null?ls(s,!!o.multiple,o.defaultValue,!0):ls(s,!!o.multiple,o.multiple?[]:"",!1))}s[No]=o}catch(v){ye(t,t.return,v)}}break;case 6:if(xt(e,t),Dt(t),r&4){if(t.stateNode===null)throw Error(O(162));s=t.stateNode,o=t.memoizedProps;try{s.nodeValue=o}catch(v){ye(t,t.return,v)}}break;case 3:if(xt(e,t),Dt(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Po(e.containerInfo)}catch(v){ye(t,t.return,v)}break;case 4:xt(e,t),Dt(t);break;case 13:xt(e,t),Dt(t),s=t.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(id=we())),r&4&&Yf(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(Me=(u=Me)||c,xt(e,t),Me=u):xt(e,t),Dt(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for($=t,c=t.child;c!==null;){for(d=$=c;$!==null;){switch(h=$,f=h.child,h.tag){case 0:case 11:case 14:case 15:go(4,h,h.return);break;case 1:is(h,h.return);var _=h.stateNode;if(typeof _.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,_.props=e.memoizedProps,_.state=e.memoizedState,_.componentWillUnmount()}catch(v){ye(r,n,v)}}break;case 5:is(h,h.return);break;case 22:if(h.memoizedState!==null){Zf(d);continue}}f!==null?(f.return=h,$=f):Zf(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Fp("display",i))}catch(v){ye(t,t.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){ye(t,t.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:xt(e,t),Dt(t),r&4&&Yf(t);break;case 21:break;default:xt(e,t),Dt(t)}}function Dt(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(fg(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Eo(s,""),r.flags&=-33);var o=Jf(t);Wu(t,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Jf(t);Bu(t,a,i);break;default:throw Error(O(161))}}catch(l){ye(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Yw(t,e,n){$=t,mg(t)}function mg(t,e,n){for(var r=(t.mode&1)!==0;$!==null;){var s=$,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Si;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Me;a=Si;var u=Me;if(Si=i,(Me=l)&&!u)for($=s;$!==null;)i=$,l=i.child,i.tag===22&&i.memoizedState!==null?eh(s):l!==null?(l.return=i,$=l):eh(s);for(;o!==null;)$=o,mg(o),o=o.sibling;$=s,Si=a,Me=u}Xf(t)}else s.subtreeFlags&8772&&o!==null?(o.return=s,$=o):Xf(t)}}function Xf(t){for(;$!==null;){var e=$;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Me||Ua(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Me)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:Et(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&$f(e,o,r);break;case 3:var i=e.updateQueue;if(i!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}$f(e,i,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Po(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Me||e.flags&512&&zu(e)}catch(h){ye(e,e.return,h)}}if(e===t){$=null;break}if(n=e.sibling,n!==null){n.return=e.return,$=n;break}$=e.return}}function Zf(t){for(;$!==null;){var e=$;if(e===t){$=null;break}var n=e.sibling;if(n!==null){n.return=e.return,$=n;break}$=e.return}}function eh(t){for(;$!==null;){var e=$;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Ua(4,e)}catch(l){ye(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(l){ye(e,s,l)}}var o=e.return;try{zu(e)}catch(l){ye(e,o,l)}break;case 5:var i=e.return;try{zu(e)}catch(l){ye(e,i,l)}}}catch(l){ye(e,e.return,l)}if(e===t){$=null;break}var a=e.sibling;if(a!==null){a.return=e.return,$=a;break}$=e.return}}var Xw=Math.ceil,ma=hn.ReactCurrentDispatcher,sd=hn.ReactCurrentOwner,pt=hn.ReactCurrentBatchConfig,Z=0,Re=null,be=null,Ae=0,tt=0,as=nr(0),Te=0,Uo=null,Rr=0,Fa=0,od=0,vo=null,Qe=null,id=0,Os=1/0,Zt=null,ga=!1,Vu=null,Hn=null,Ei=!1,Mn=null,va=0,yo=0,Hu=null,Vi=-1,Hi=0;function Ve(){return Z&6?we():Vi!==-1?Vi:Vi=we()}function Kn(t){return t.mode&1?Z&2&&Ae!==0?Ae&-Ae:Iw.transition!==null?(Hi===0&&(Hi=Zp()),Hi):(t=ne,t!==0||(t=window.event,t=t===void 0?16:im(t.type)),t):1}function jt(t,e,n,r){if(50<yo)throw yo=0,Hu=null,Error(O(185));Jo(t,n,r),(!(Z&2)||t!==Re)&&(t===Re&&(!(Z&2)&&(Fa|=n),Te===4&&On(t,Ae)),Ze(t,r),n===1&&Z===0&&!(e.mode&1)&&(Os=we()+500,$a&&rr()))}function Ze(t,e){var n=t.callbackNode;I0(t,e);var r=ea(t,t===Re?Ae:0);if(r===0)n!==null&&uf(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&uf(n),e===1)t.tag===0?Lw(th.bind(null,t)):km(th.bind(null,t)),Ow(function(){!(Z&6)&&rr()}),n=null;else{switch(em(r)){case 1:n=jc;break;case 4:n=Yp;break;case 16:n=Zi;break;case 536870912:n=Xp;break;default:n=Zi}n=Sg(n,gg.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function gg(t,e){if(Vi=-1,Hi=0,Z&6)throw Error(O(327));var n=t.callbackNode;if(hs()&&t.callbackNode!==n)return null;var r=ea(t,t===Re?Ae:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=ya(t,r);else{e=r;var s=Z;Z|=2;var o=yg();(Re!==t||Ae!==e)&&(Zt=null,Os=we()+500,Er(t,e));do try{t_();break}catch(a){vg(t,a)}while(!0);Hc(),ma.current=o,Z=s,be!==null?e=0:(Re=null,Ae=0,e=Te)}if(e!==0){if(e===2&&(s=yu(t),s!==0&&(r=s,e=Ku(t,s))),e===1)throw n=Uo,Er(t,0),On(t,r),Ze(t,we()),n;if(e===6)On(t,r);else{if(s=t.current.alternate,!(r&30)&&!Zw(s)&&(e=ya(t,r),e===2&&(o=yu(t),o!==0&&(r=o,e=Ku(t,o))),e===1))throw n=Uo,Er(t,0),On(t,r),Ze(t,we()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(O(345));case 2:fr(t,Qe,Zt);break;case 3:if(On(t,r),(r&130023424)===r&&(e=id+500-we(),10<e)){if(ea(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){Ve(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Cu(fr.bind(null,t,Qe,Zt),e);break}fr(t,Qe,Zt);break;case 4:if(On(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var i=31-At(r);o=1<<i,i=e[i],i>s&&(s=i),r&=~o}if(r=s,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xw(r/1960))-r,10<r){t.timeoutHandle=Cu(fr.bind(null,t,Qe,Zt),r);break}fr(t,Qe,Zt);break;case 5:fr(t,Qe,Zt);break;default:throw Error(O(329))}}}return Ze(t,we()),t.callbackNode===n?gg.bind(null,t):null}function Ku(t,e){var n=vo;return t.current.memoizedState.isDehydrated&&(Er(t,e).flags|=256),t=ya(t,e),t!==2&&(e=Qe,Qe=n,e!==null&&qu(e)),t}function qu(t){Qe===null?Qe=t:Qe.push.apply(Qe,t)}function Zw(t){for(var e=t;;){if(e.flags&16384){var n=e.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(!Nt(o(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function On(t,e){for(e&=~od,e&=~Fa,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-At(e),r=1<<n;t[n]=-1,e&=~r}}function th(t){if(Z&6)throw Error(O(327));hs();var e=ea(t,0);if(!(e&1))return Ze(t,we()),null;var n=ya(t,e);if(t.tag!==0&&n===2){var r=yu(t);r!==0&&(e=r,n=Ku(t,r))}if(n===1)throw n=Uo,Er(t,0),On(t,e),Ze(t,we()),n;if(n===6)throw Error(O(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,fr(t,Qe,Zt),Ze(t,we()),null}function ad(t,e){var n=Z;Z|=1;try{return t(e)}finally{Z=n,Z===0&&(Os=we()+500,$a&&rr())}}function Or(t){Mn!==null&&Mn.tag===0&&!(Z&6)&&hs();var e=Z;Z|=1;var n=pt.transition,r=ne;try{if(pt.transition=null,ne=1,t)return t()}finally{ne=r,pt.transition=n,Z=e,!(Z&6)&&rr()}}function ld(){tt=as.current,ue(as)}function Er(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Rw(n)),be!==null)for(n=be.return;n!==null;){var r=n;switch(Bc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&oa();break;case 3:Ps(),ue(Ye),ue(Ue),Yc();break;case 5:Jc(r);break;case 4:Ps();break;case 13:ue(pe);break;case 19:ue(pe);break;case 10:Kc(r.type._context);break;case 22:case 23:ld()}n=n.return}if(Re=t,be=t=qn(t.current,null),Ae=tt=e,Te=0,Uo=null,od=Fa=Rr=0,Qe=vo=null,gr!==null){for(e=0;e<gr.length;e++)if(n=gr[e],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}gr=null}return t}function vg(t,e){do{var n=be;try{if(Hc(),zi.current=pa,ha){for(var r=me.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ha=!1}if(Pr=0,Pe=ke=me=null,mo=!1,$o=0,sd.current=null,n===null||n.return===null){Te=1,Uo=e,be=null;break}e:{var o=t,i=n.return,a=n,l=e;if(e=Ae,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=Bf(i);if(f!==null){f.flags&=-257,Wf(f,i,a,o,e),f.mode&1&&zf(o,u,e),e=f,l=u;var _=e.updateQueue;if(_===null){var v=new Set;v.add(l),e.updateQueue=v}else _.add(l);break e}else{if(!(e&1)){zf(o,u,e),ud();break e}l=Error(O(426))}}else if(fe&&a.mode&1){var w=Bf(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Wf(w,i,a,o,e),Wc(Rs(l,a));break e}}o=l=Rs(l,a),Te!==4&&(Te=2),vo===null?vo=[o]:vo.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var g=eg(o,l,e);If(o,g);break e;case 1:a=l;var p=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Hn===null||!Hn.has(m)))){o.flags|=65536,e&=-e,o.lanes|=e;var x=tg(o,a,e);If(o,x);break e}}o=o.return}while(o!==null)}_g(n)}catch(S){e=S,be===n&&n!==null&&(be=n=n.return);continue}break}while(!0)}function yg(){var t=ma.current;return ma.current=pa,t===null?pa:t}function ud(){(Te===0||Te===3||Te===2)&&(Te=4),Re===null||!(Rr&268435455)&&!(Fa&268435455)||On(Re,Ae)}function ya(t,e){var n=Z;Z|=2;var r=yg();(Re!==t||Ae!==e)&&(Zt=null,Er(t,e));do try{e_();break}catch(s){vg(t,s)}while(!0);if(Hc(),Z=n,ma.current=r,be!==null)throw Error(O(261));return Re=null,Ae=0,Te}function e_(){for(;be!==null;)wg(be)}function t_(){for(;be!==null&&!C0();)wg(be)}function wg(t){var e=bg(t.alternate,t,tt);t.memoizedProps=t.pendingProps,e===null?_g(t):be=e,sd.current=null}function _g(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=Qw(n,e),n!==null){n.flags&=32767,be=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Te=6,be=null;return}}else if(n=qw(n,e,tt),n!==null){be=n;return}if(e=e.sibling,e!==null){be=e;return}be=e=t}while(e!==null);Te===0&&(Te=5)}function fr(t,e,n){var r=ne,s=pt.transition;try{pt.transition=null,ne=1,n_(t,e,n,r)}finally{pt.transition=s,ne=r}return null}function n_(t,e,n,r){do hs();while(Mn!==null);if(Z&6)throw Error(O(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(O(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if($0(t,o),t===Re&&(be=Re=null,Ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ei||(Ei=!0,Sg(Zi,function(){return hs(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=pt.transition,pt.transition=null;var i=ne;ne=1;var a=Z;Z|=4,sd.current=null,Jw(t,n),pg(n,t),bw(Eu),ta=!!Su,Eu=Su=null,t.current=n,Yw(n),T0(),Z=a,ne=i,pt.transition=o}else t.current=n;if(Ei&&(Ei=!1,Mn=t,va=s),o=t.pendingLanes,o===0&&(Hn=null),O0(n.stateNode),Ze(t,we()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ga)throw ga=!1,t=Vu,Vu=null,t;return va&1&&t.tag!==0&&hs(),o=t.pendingLanes,o&1?t===Hu?yo++:(yo=0,Hu=t):yo=0,rr(),null}function hs(){if(Mn!==null){var t=em(va),e=pt.transition,n=ne;try{if(pt.transition=null,ne=16>t?16:t,Mn===null)var r=!1;else{if(t=Mn,Mn=null,va=0,Z&6)throw Error(O(331));var s=Z;for(Z|=4,$=t.current;$!==null;){var o=$,i=o.child;if($.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for($=u;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:go(8,c,o)}var d=c.child;if(d!==null)d.return=c,$=d;else for(;$!==null;){c=$;var h=c.sibling,f=c.return;if(dg(c),c===u){$=null;break}if(h!==null){h.return=f,$=h;break}$=f}}}var _=o.alternate;if(_!==null){var v=_.child;if(v!==null){_.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}$=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,$=i;else e:for(;$!==null;){if(o=$,o.flags&2048)switch(o.tag){case 0:case 11:case 15:go(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,$=g;break e}$=o.return}}var p=t.current;for($=p;$!==null;){i=$;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,$=m;else e:for(i=p;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ua(9,a)}}catch(S){ye(a,a.return,S)}if(a===i){$=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,$=x;break e}$=a.return}}if(Z=s,rr(),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Aa,t)}catch{}r=!0}return r}finally{ne=n,pt.transition=e}}return!1}function nh(t,e,n){e=Rs(n,e),e=eg(t,e,1),t=Vn(t,e,1),e=Ve(),t!==null&&(Jo(t,1,e),Ze(t,e))}function ye(t,e,n){if(t.tag===3)nh(t,t,n);else for(;e!==null;){if(e.tag===3){nh(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Hn===null||!Hn.has(r))){t=Rs(n,t),t=tg(e,t,1),e=Vn(e,t,1),t=Ve(),e!==null&&(Jo(e,1,t),Ze(e,t));break}}e=e.return}}function r_(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ve(),t.pingedLanes|=t.suspendedLanes&n,Re===t&&(Ae&n)===n&&(Te===4||Te===3&&(Ae&130023424)===Ae&&500>we()-id?Er(t,0):od|=n),Ze(t,e)}function xg(t,e){e===0&&(t.mode&1?(e=pi,pi<<=1,!(pi&130023424)&&(pi=4194304)):e=1);var n=Ve();t=un(t,e),t!==null&&(Jo(t,e,n),Ze(t,n))}function s_(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),xg(t,n)}function o_(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(e),xg(t,n)}var bg;bg=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ye.current)Je=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Je=!1,Kw(t,e,n);Je=!!(t.flags&131072)}else Je=!1,fe&&e.flags&1048576&&Cm(e,la,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Wi(t,e),t=e.pendingProps;var s=ks(e,Ue.current);fs(e,n),s=Zc(null,e,r,t,s,n);var o=ed();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Xe(r)?(o=!0,ia(e)):o=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Qc(e),s.updater=Ma,e.stateNode=s,s._reactInternals=e,Nu(e,r,t,n),e=$u(null,e,r,!0,o,n)):(e.tag=0,fe&&o&&zc(e),Be(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Wi(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=a_(r),t=Et(r,t),s){case 0:e=Iu(null,e,r,t,n);break e;case 1:e=Kf(null,e,r,t,n);break e;case 11:e=Vf(null,e,r,t,n);break e;case 14:e=Hf(null,e,r,Et(r.type,t),n);break e}throw Error(O(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Et(r,s),Iu(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Et(r,s),Kf(t,e,r,s,n);case 3:e:{if(og(e),t===null)throw Error(O(387));r=e.pendingProps,o=e.memoizedState,s=o.element,jm(t,e),da(e,r,null,n);var i=e.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){s=Rs(Error(O(423)),e),e=qf(t,e,r,n,s);break e}else if(r!==s){s=Rs(Error(O(424)),e),e=qf(t,e,r,n,s);break e}else for(rt=Wn(e.stateNode.containerInfo.firstChild),st=e,fe=!0,Ot=null,n=Om(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cs(),r===s){e=cn(t,e,n);break e}Be(t,e,r,n)}e=e.child}return e;case 5:return Nm(e),t===null&&Ou(e),r=e.type,s=e.pendingProps,o=t!==null?t.memoizedProps:null,i=s.children,ku(r,s)?i=null:o!==null&&ku(r,o)&&(e.flags|=32),sg(t,e),Be(t,e,i,n),e.child;case 6:return t===null&&Ou(e),null;case 13:return ig(t,e,n);case 4:return Gc(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Ts(e,null,r,n):Be(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Et(r,s),Vf(t,e,r,s,n);case 7:return Be(t,e,e.pendingProps,n),e.child;case 8:return Be(t,e,e.pendingProps.children,n),e.child;case 12:return Be(t,e,e.pendingProps.children,n),e.child;
vendor: 2,882 bytes, line 41
41case 10:e:{if(r=e.type._context,s=e.pendingProps,o=e.memoizedProps,i=s.value,ie(ua,r._currentValue),r._currentValue=i,o!==null)if(Nt(o.value,i)){if(o.children===s.children&&!Ye.current){e=cn(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=on(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Au(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===e.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(O(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Au(i,n,e),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===e){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Be(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,fs(e,n),s=gt(s),r=r(s),e.flags|=1,Be(t,e,r,n),e.child;case 14:return r=e.type,s=Et(r,e.pendingProps),s=Et(r.type,s),Hf(t,e,r,s,n);case 15:return ng(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Et(r,s),Wi(t,e),e.tag=1,Xe(r)?(t=!0,ia(e)):t=!1,fs(e,n),Zm(e,r,s),Nu(e,r,s,n),$u(null,e,r,!0,t,n);case 19:return ag(t,e,n);case 22:return rg(t,e,n)}throw Error(O(156,e.tag))};function Sg(t,e){return Jp(t,e)}function i_(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 ht(t,e,n,r){return new i_(t,e,n,r)}function cd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function a_(t){if(typeof t=="function")return cd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Rc)return 11;if(t===Oc)return 14}return 2}function qn(t,e){var n=t.alternate;return n===null?(n=ht(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ki(t,e,n,r,s,o){var i=2;if(r=t,typeof t=="function")cd(t)&&(i=1);else if(typeof t=="string")i=5;else e:switch(t){case Yr:return kr(n.children,s,o,e);case Pc:i=8,s|=8;break;case ru:return t=ht(12,n,e,s|2),t.elementType=ru,t.lanes=o,t;
vendor: 6,257 bytes, line 41
41case su:return t=ht(13,n,e,s),t.elementType=su,t.lanes=o,t;case ou:return t=ht(19,n,e,s),t.elementType=ou,t.lanes=o,t;case Np:return za(n,s,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Ap:i=10;break e;case jp:i=9;break e;case Rc:i=11;break e;case Oc:i=14;break e;case Tn:i=16,r=null;break e}throw Error(O(130,t==null?t:typeof t,""))}return e=ht(i,n,e,s),e.elementType=t,e.type=r,e.lanes=o,e}function kr(t,e,n,r){return t=ht(7,t,r,e),t.lanes=n,t}function za(t,e,n,r){return t=ht(22,t,r,e),t.elementType=Np,t.lanes=n,t.stateNode={isHidden:!1},t}function Dl(t,e,n){return t=ht(6,t,null,e),t.lanes=n,t}function Ml(t,e,n){return e=ht(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function l_(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function dd(t,e,n,r,s,o,i,a,l){return t=new l_(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=ht(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qc(o),t}function u_(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jr,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function Eg(t){if(!t)return Jn;t=t._reactInternals;e:{if(Nr(t)!==t||t.tag!==1)throw Error(O(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Xe(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(O(171))}if(t.tag===1){var n=t.type;if(Xe(n))return Em(t,n,e)}return e}function kg(t,e,n,r,s,o,i,a,l){return t=dd(n,r,!0,t,s,o,i,a,l),t.context=Eg(null),n=t.current,r=Ve(),s=Kn(n),o=on(r,s),o.callback=e??null,Vn(n,o,s),t.current.lanes=s,Jo(t,s,r),Ze(t,r),t}function Ba(t,e,n,r){var s=e.current,o=Ve(),i=Kn(s);return n=Eg(n),e.context===null?e.context=n:e.pendingContext=n,e=on(o,i),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Vn(s,e,i),t!==null&&(jt(t,s,i,o),Fi(t,s,i)),i}function wa(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function rh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function fd(t,e){rh(t,e),(t=t.alternate)&&rh(t,e)}function c_(){return null}var Cg=typeof reportError=="function"?reportError:function(t){console.error(t)};function hd(t){this._internalRoot=t}Wa.prototype.render=hd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(O(409));Ba(t,e,null,null)};Wa.prototype.unmount=hd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Or(function(){Ba(null,t,null,null)}),e[ln]=null}};function Wa(t){this._internalRoot=t}Wa.prototype.unstable_scheduleHydration=function(t){if(t){var e=rm();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Rn.length&&e!==0&&e<Rn[n].priority;n++);Rn.splice(n,0,t),n===0&&om(t)}};function pd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Va(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function sh(){}function d_(t,e,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=wa(i);o.call(u)}}var i=kg(e,r,t,0,null,!1,!1,"",sh);return t._reactRootContainer=i,t[ln]=i.current,Ao(t.nodeType===8?t.parentNode:t),Or(),i}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=wa(l);a.call(u)}}var l=dd(t,0,!1,null,null,!1,!1,"",sh);return t._reactRootContainer=l,t[ln]=l.current,Ao(t.nodeType===8?t.parentNode:t),Or(function(){Ba(e,l,n,r)}),l}function Ha(t,e,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=wa(i);a.call(l)}}Ba(e,i,t,s)}else i=d_(n,e,t,s,r);return wa(i)}tm=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=io(e.pendingLanes);n!==0&&(Nc(e,n|1),Ze(e,we()),!(Z&6)&&(Os=we()+500,rr()))}break;case 13:Or(function(){var r=un(t,1);if(r!==null){var s=Ve();jt(r,t,1,s)}}),fd(t,1)}};Lc=function(t){if(t.tag===13){var e=un(t,134217728);if(e!==null){var n=Ve();jt(e,t,134217728,n)}fd(t,134217728)}};nm=function(t){if(t.tag===13){var e=Kn(t),n=un(t,e);if(n!==null){var r=Ve();jt(n,t,e,r)}fd(t,e)}};rm=function(){return ne};sm=function(t,e){var n=ne;try{return ne=t,e()}finally{ne=n}};mu=function(t,e,n){switch(e){case"input":if(lu(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=Ia(r);if(!s)throw Error(O(90));Ip(r),lu(r,s)}}}break;case"textarea":Dp(t,n);break;case"select":e=n.value,e!=null&&ls(t,!!n.multiple,e,!1)}};Vp=ad;Hp=Or;var f_={usingClientEntryPoint:!1,Events:[Xo,ts,Ia,Bp,Wp,ad]},eo={findFiberByHostInstance:mr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},h_={bundleType:eo.bundleType,version:eo.version,rendererPackageName:eo.rendererPackageName,rendererConfig:eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:hn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Qp(t),t===null?null:t.stateNode},findFiberByHostInstance:eo.findFiberByHostInstance||c_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ki.isDisabled&&ki.supportsFiber)try{Aa=ki.inject(h_),Ht=ki}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f_;at.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pd(e))throw Error(O(200));return u_(t,e,null,n)};at.createRoot=function(t,e){if(!pd(t))throw Error(O(299));var n=!1,r="",s=Cg;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=dd(t,1,!1,null,null,n,!1,r,s),t[ln]=e.current,Ao(t.nodeType===8?t.parentNode:t),new hd(e)};at.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(O(188)):(t=Object.keys(t).join(","),Error(O(268,t)));return t=Qp(e),t=t===null?null:t.stateNode,t};at.flushSync=function(t){return Or(t)};at.hydrate=function(t,e,n){if(!Va(e))throw Error(O(200));return Ha(null,t,e,!0,n)};at.hydrateRoot=function(t,e,n){if(!pd(t))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=Cg;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),e=kg(e,null,t,1,n??null,s,!1,o,i),t[ln]=e.current,Ao(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new Wa(e)};at.render=function(t,e,n){if(!Va(e))throw Error(O(200));return Ha(null,t,e,!1,n)};at.unmountComponentAtNode=function(t){if(!Va(t))throw Error(O(40));return t._reactRootContainer?(Or(function(){Ha(null,null,t,!1,function(){t._reactRootContainer=null,t[ln]=null})}),!0):!1};at.unstable_batchedUpdates=ad;at.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Va(n))throw Error(O(200));if(t==null||t._reactInternals===void 0)throw Error(O(38));return Ha(t,e,n,!1,r)};at.version="18.3.1-next-f1338f8080-20240426";function Tg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tg)}catch(t){console.error(t)}}Tg(),Tp.exports=at;var ei=Tp.exports;const Pg=pp(ei);var Rg,oh=ei;Rg=oh.createRoot,oh.hydrateRoot;const p_="modulepreload",m_=function(t){return"/"+t},ih={},se=function(e,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(l=>{if(l=m_(l),l in ih)return;ih[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":p_,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}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 e().catch(o)})},g_=1,v_=1e6;let Ul=0;function y_(){return Ul=(Ul+1)%Number.MAX_SAFE_INTEGER,Ul.toString()}const Fl=new Map,ah=t=>{if(Fl.has(t))return;const e=setTimeout(()=>{Fl.delete(t),wo({type:"REMOVE_TOAST",toastId:t})},v_);Fl.set(t,e)},w_=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,g_)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;return n?ah(n):t.toasts.forEach(r=>{ah(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},qi=[];let Qi={toasts:[]};
41function wo(t){Qi=w_(Qi,t),qi.forEach(e=>{e(Qi)})}function __({...t}){const e=y_(),n=s=>wo({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>wo({type:"DISMISS_TOAST",toastId:e});return wo({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function x_(){const[t,e]=y.useState(Qi);return y.useEffect(()=>(qi.push(e),()=>{const n=qi.indexOf(e);n>-1&&qi.splice(n,1)}),[t]),{...t,toast:__,dismiss:n=>wo({type:"DISMISS_TOAST",toastId:n})}}function Ce(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function lh(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Og(...t){return e=>{let n=!1;const r=t.map(s=>{const o=lh(s,e);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():lh(t[s],null)}}}}function Lt(...t){return y.useCallback(Og(...t),t)}function LT(t,e){const n=y.createContext(e),r=o=>{const{children:i,...a}=o,l=y.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:l,children:i})};r.displayName=t+"Provider";function s(o){const i=y.useContext(n);if(i)return i;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,s]}function Ka(t,e=[]){let n=[];function r(o,i){const a=y.createContext(i),l=n.length;n=[...n,i];const u=d=>{var g;const{scope:h,children:f,..._}=d,v=((g=h==null?void 0:h[t])==null?void 0:g[l])||a,w=y.useMemo(()=>_,Object.values(_));return b.jsx(v.Provider,{value:w,children:f})};u.displayName=o+"Provider";function c(d,h){var v;const f=((v=h==null?void 0:h[t])==null?void 0:v[l])||a,_=y.useContext(f);if(_)return _;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[u,c]}const s=()=>{const o=n.map(i=>y.createContext(i));return function(a){const l=(a==null?void 0:a[t])||o;return y.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[r,b_(s,...e)]}function b_(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(o)[`__scope${u}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return n.scopeName=e.scopeName,n}function _a(t){const e=S_(t),n=y.forwardRef((r,s)=>{const{children:o,...i}=r,a=y.Children.toArray(o),l=a.find(k_);if(l){const u=l.props.children,c=a.map(d=>d===l?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return b.jsx(e,{...i,ref:s,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return b.jsx(e,{...i,ref:s,children:o})});return n.displayName=`${t}.Slot`,n}var IT=_a("Slot");function S_(t){const e=y.forwardRef((n,r)=>{const{children:s,...o}=n;if(y.isValidElement(s)){const i=T_(s),a=C_(o,s.props);return s.type!==y.Fragment&&(a.ref=r?Og(r,i):i),y.cloneElement(s,a)}return y.Children.count(s)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Ag=Symbol("radix.slottable");function E_(t){const e=({children:n})=>b.jsx(b.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=Ag,e}function k_(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ag}function C_(t,e){const n={...e};for(const r in e){const s=t[r],o=e[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...t,...n}}function T_(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function P_(t){const e=t+"CollectionProvider",[n,r]=Ka(e),[s,o]=n(e,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:w,children:g}=v,p=A.useRef(null),m=A.useRef(new Map).current;return b.jsx(s,{scope:w,itemMap:m,collectionRef:p,children:g})};i.displayName=e;const a=t+"CollectionSlot",l=_a(a),u=A.forwardRef((v,w)=>{const{scope:g,children:p}=v,m=o(a,g),x=Lt(w,m.collectionRef);return b.jsx(l,{ref:x,children:p})});u.displayName=a;const c=t+"CollectionItemSlot",d="data-radix-collection-item",h=_a(c),f=A.forwardRef((v,w)=>{const{scope:g,children:p,...m}=v,x=A.useRef(null),S=Lt(w,x),E=o(c,g);return A.useEffect(()=>(E.itemMap.set(x,{ref:x,...m}),()=>
vendor: 5,923 bytes, line 41
41void E.itemMap.delete(x))),b.jsx(h,{[d]:"",ref:S,children:p})});f.displayName=c;function _(v){const w=o(t+"CollectionConsumer",v);return A.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((E,k)=>m.indexOf(E.ref.current)-m.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},_,r]}var R_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],et=R_.reduce((t,e)=>{const n=_a(`Primitive.${e}`),r=y.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function jg(t,e){t&&ei.flushSync(()=>t.dispatchEvent(e))}function Yn(t){const e=y.useRef(t);return y.useEffect(()=>{e.current=t}),y.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function O_(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var A_="DismissableLayer",Qu="dismissableLayer.update",j_="dismissableLayer.pointerDownOutside",N_="dismissableLayer.focusOutside",uh,Ng=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),md=y.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=t,u=y.useContext(Ng),[c,d]=y.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),_=Lt(e,k=>d(k)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(w),p=c?v.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,x=p>=g,S=I_(k=>{const R=k.target,N=[...u.branches].some(j=>j.contains(R));!x||N||(s==null||s(k),i==null||i(k),k.defaultPrevented||a==null||a())},h),E=$_(k=>{const R=k.target;[...u.branches].some(j=>j.contains(R))||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},h);return O_(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(uh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),ch(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=uh)}},[c,h,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),ch())},[c,u]),y.useEffect(()=>{const k=()=>f({});return document.addEventListener(Qu,k),()=>document.removeEventListener(Qu,k)},[]),b.jsx(et.div,{...l,ref:_,style:{pointerEvents:m?x?"auto":"none":void 0,...t.style},onFocusCapture:Ce(t.onFocusCapture,E.onFocusCapture),onBlurCapture:Ce(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ce(t.onPointerDownCapture,S.onPointerDownCapture)})});md.displayName=A_;var L_="DismissableLayerBranch",Lg=y.forwardRef((t,e)=>{const n=y.useContext(Ng),r=y.useRef(null),s=Lt(e,r);return y.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),b.jsx(et.div,{...t,ref:s})});Lg.displayName=L_;function I_(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Ig(j_,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function $_(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=y.useRef(!1);return y.useEffect(()=>{const s=o=>{o.target&&!r.current&&Ig(N_,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ch(){const t=new CustomEvent(Qu);document.dispatchEvent(t)}function Ig(t,e,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?jg(s,o):s.dispatchEvent(o)}var D_=md,M_=Lg,Xn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},U_="Portal",$g=y.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[s,o]=y.useState(!1);Xn(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Pg.createPortal(b.jsx(et.div,{...r,ref:e}),i):null});$g.displayName=U_;function F_(t,e){return y.useReducer((n,r)=>e[n][r]??n,t)}var gd=t=>{const{present:e,children:n}=t,r=z_(e),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=Lt(r.ref,B_(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:o}):null};gd.displayName="Presence";function z_(t){const[e,n]=y.useState(),r=y.useRef(null),s=y.useRef(t),o=y.useRef("none"),i=t?"mounted":"unmounted",[a,l]=F_(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Ci(r.current);o.current=a==="mounted"?u:"none"},[a]),Xn(()=>{const u=r.current,c=s.current;if(c!==t){const h=o.current,f=Ci(u);t?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),Xn(()=>
41{if(e){let u;const c=e.ownerDocument.defaultView??window,d=f=>{const v=Ci(r.current).includes(f.animationName);if(f.target===e&&v&&(l("ANIMATION_END"),!s.current)){const w=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=w)})}},h=f=>{f.target===e&&(o.current=Ci(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ci(t){return(t==null?void 0:t.animationName)||"none"}function B_(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var W_=kp[" useInsertionEffect ".trim().toString()]||Xn;function V_({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,o,i]=H_({defaultProp:e,onChange:n}),a=t!==void 0,l=a?t:s;{const c=y.useRef(t!==void 0);y.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"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.`),c.current=a},[a,r])}const u=y.useCallback(c=>{var d;if(a){const h=K_(c)?c(t):c;h!==t&&((d=i.current)==null||d.call(i,h))}else o(c)},[a,t,o,i]);return[l,u]}function H_({defaultProp:t,onChange:e}){const[n,r]=y.useState(t),s=y.useRef(n),o=y.useRef(e);return W_(()=>{o.current=e},[e]),y.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}function K_(t){return typeof t=="function"}var q_=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"}),Q_="VisuallyHidden",qa=y.forwardRef((t,e)=>b.jsx(et.span,{...t,ref:e,style:{...q_,...t.style}}));qa.displayName=Q_;var G_=qa,vd="ToastProvider",[yd,J_,Y_]=P_("Toast"),[Dg,$T]=Ka("Toast",[Y_]),[X_,Qa]=Dg(vd),Mg=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=t,[a,l]=y.useState(null),[u,c]=y.useState(0),d=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${vd}\`. Expected non-empty \`string\`.`),b.jsx(yd.Provider,{scope:e,children:b.jsx(X_,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>c(f=>f+1),[]),onToastRemove:y.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:i})})};Mg.displayName=vd;var Ug="ToastViewport",Z_=["F8"],Gu="toast.viewportPause",Ju="toast.viewportResume",Fg=y.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=Z_,label:s="Notifications ({hotkey})",...o}=t,i=Qa(Ug,n),a=J_(n),l=y.useRef(null),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=Lt(e,d,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=i.toastCount>0;y.useEffect(()=>{const w=g=>{var m;r.length!==0&&r.every(x=>g[x]||g.code===x)&&((m=d.current)==null||m.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=l.current,g=d.current;if(_&&w&&g){const p=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(Gu);g.dispatchEvent(E),i.isClosePausedRef.current=!0}},m=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(Ju);g.dispatchEvent(E),i.isClosePausedRef.current=!1}},x=E=>{!w.contains(E.relatedTarget)&&m()},S=()=>{w.contains(document.activeElement)||m()};return w.addEventListener("focusin",p),w.addEventListener("focusout",x),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",x),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[_,i.isClosePausedRef]);const v=y.useCallback(({tabbingDirection:w})=>{const p=a().map(m=>{const x=m.ref.current,S=[x,...f1(x)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?p.reverse():p).flat()},[a]);return y.useEffect(()=>{const w=d.current;if(w){const g=p=>
41{var S,E,k;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const R=document.activeElement,N=p.shiftKey;if(p.target===w&&N){(S=u.current)==null||S.focus();return}const D=v({tabbingDirection:N?"backwards":"forwards"}),q=D.findIndex(L=>L===R);zl(D.slice(q+1))?p.preventDefault():N?(E=u.current)==null||E.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[a,v]),b.jsxs(M_,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&b.jsx(Yu,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});zl(w)}}),b.jsx(yd.Slot,{scope:n,children:b.jsx(et.ol,{tabIndex:-1,...o,ref:h})}),_&&b.jsx(Yu,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});zl(w)}})]})});Fg.displayName=Ug;var zg="ToastFocusProxy",Yu=y.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,o=Qa(zg,n);return b.jsx(qa,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});Yu.displayName=zg;var ti="Toast",e1="toast.swipeStart",t1="toast.swipeMove",n1="toast.swipeCancel",r1="toast.swipeEnd",Bg=y.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=t,[a,l]=V_({prop:r,defaultProp:s??!0,onChange:o,caller:ti});return b.jsx(gd,{present:n||a,children:b.jsx(i1,{open:a,...i,ref:e,onClose:()=>l(!1),onPause:Yn(t.onPause),onResume:Yn(t.onResume),onSwipeStart:Ce(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(t.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ce(t.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:Ce(t.onSwipeEnd,u=>{const{x:c,y:d}=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",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Bg.displayName=ti;var[s1,o1]=Dg(ti,{onClose(){}}),i1=y.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,..._}=t,v=Qa(ti,n),[w,g]=y.useState(null),p=Lt(e,L=>g(L)),m=y.useRef(null),x=y.useRef(null),S=s||v.duration,E=y.useRef(0),k=y.useRef(S),R=y.useRef(0),{onToastAdd:N,onToastRemove:j}=v,U=Yn(()=>{var Y;(w==null?void 0:w.contains(document.activeElement))&&((Y=v.viewport)==null||Y.focus()),i()}),D=y.useCallback(L=>{!L||L===1/0||(window.clearTimeout(R.current),E.current=new Date().getTime(),R.current=window.setTimeout(U,L))},[U]);y.useEffect(()=>{const L=v.viewport;if(L){const Y=()=>{D(k.current),u==null||u()},F=()=>{const W=new Date().getTime()-E.current;k.current=k.current-W,window.clearTimeout(R.current),l==null||l()};return L.addEventListener(Gu,F),L.addEventListener(Ju,Y),()=>{L.removeEventListener(Gu,F),L.removeEventListener(Ju,Y)}}},[v.viewport,S,l,u,D]),y.useEffect(()=>{o&&!v.isClosePausedRef.current&&D(S)},[o,S,v.isClosePausedRef,D]),y.useEffect(()=>(N(),()=>j()),[N,j]);const q=y.useMemo(()=>w?Gg(w):null,[w]);return v.viewport?b.jsxs(b.Fragment,{children:[q&&b.jsx(a1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:q}),b.jsx(s1,{scope:n,onClose:U,children:ei.createPortal(b.jsx(yd.ItemSlot,{scope:n,children:b.jsx(D_,{asChild:!0,onEscapeKeyDown:Ce(a,()=>
41{v.isFocusedToastEscapeKeyDownRef.current||U(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(et.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ce(t.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Ce(t.onPointerDown,L=>{L.button===0&&(m.current={x:L.clientX,y:L.clientY})}),onPointerMove:Ce(t.onPointerMove,L=>{if(!m.current)return;const Y=L.clientX-m.current.x,F=L.clientY-m.current.y,W=!!x.current,T=["left","right"].includes(v.swipeDirection),P=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,I=T?P(0,Y):0,V=T?0:P(0,F),M=L.pointerType==="touch"?10:2,Q={x:I,y:V},X={originalEvent:L,delta:Q};W?(x.current=Q,Ti(t1,d,X,{discrete:!1})):dh(Q,v.swipeDirection,M)?(x.current=Q,Ti(e1,c,X,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(Y)>M||Math.abs(F)>M)&&(m.current=null)}),onPointerUp:Ce(t.onPointerUp,L=>{const Y=x.current,F=L.target;if(F.hasPointerCapture(L.pointerId)&&F.releasePointerCapture(L.pointerId),x.current=null,m.current=null,Y){const W=L.currentTarget,T={originalEvent:L,delta:Y};dh(Y,v.swipeDirection,v.swipeThreshold)?Ti(r1,f,T,{discrete:!0}):Ti(n1,h,T,{discrete:!0}),W.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),a1=t=>{const{__scopeToast:e,children:n,...r}=t,s=Qa(ti,e),[o,i]=y.useState(!1),[a,l]=y.useState(!1);return c1(()=>i(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:b.jsx($g,{asChild:!0,children:b.jsx(qa,{...r,children:o&&b.jsxs(b.Fragment,{children:[s.label," ",n]})})})},l1="ToastTitle",Wg=y.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return b.jsx(et.div,{...r,ref:e})});Wg.displayName=l1;var u1="ToastDescription",Vg=y.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return b.jsx(et.div,{...r,ref:e})});Vg.displayName=u1;var Hg="ToastAction",Kg=y.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?b.jsx(Qg,{altText:n,asChild:!0,children:b.jsx(wd,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Hg}\`. Expected non-empty \`string\`.`),null)});Kg.displayName=Hg;var qg="ToastClose",wd=y.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=o1(qg,n);return b.jsx(Qg,{asChild:!0,children:b.jsx(et.button,{type:"button",...r,ref:e,onClick:Ce(t.onClick,s.onClose)})})});wd.displayName=qg;var Qg=y.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return b.jsx(et.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function Gg(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),d1(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&&e.push(i)}else e.push(...Gg(r))}}),e}function Ti(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?jg(s,o):s.dispatchEvent(o)}var dh=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),o=r>s;return e==="left"||e==="right"?o&&r>n:!o&&s>n};function c1(t=()=>{}){const e=Yn(t);Xn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function d1(t){return t.nodeType===t.ELEMENT_NODE}function f1(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function zl(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var h1=Mg,Jg=Fg,Yg=Bg,Xg=Wg,Zg=Vg,ev=Kg,tv=wd;function nv(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=nv(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function rv(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=nv(t))&&(r&&(r+=" "),r+=e);return r}const fh=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,hh=rv,p1=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return hh(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=e,i=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],d=o==null?void 0:o[u];if(c===null)return null;const h=fh(c)||fh(d);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(_=>{let[v,w]=_;return Array.isArray(w)?w.includes({...o,...a}[v]):{...o,...a}[v]===w})?[...u,d,h]:u},[]);return hh(t,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.462.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const m1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sv=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/**
47 * @license lucide-react v0.462.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var g1={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"};/**
52 * @license lucide-react v0.462.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const v1=y.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>y.createElement("svg",{ref:l,...g1,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:sv("lucide",s),...a},[...i.map(([u,c])=>y.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
57 * @license lucide-react v0.462.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const ov=(t,e)=>{const n=y.forwardRef(({className:r,...s},o)=>y.createElement(v1,{ref:o,iconNode:e,className:sv(`lucide-${m1(t)}`,r),...s}));return n.displayName=`${t}`,n};/**
62 * @license lucide-react v0.462.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const y1=ov("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
67 * @license lucide-react v0.462.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const w1=ov("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,906 bytes, line 71
71],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_d="-",_1=t=>{const e=b1(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{const a=i.split(_d);return a[0]===""&&a.length!==1&&a.shift(),iv(a,e)||x1(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},iv=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?iv(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const o=t.join(_d);return(i=e.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},ph=/^\[(.+)\]$/,x1=t=>{if(ph.test(t)){const e=ph.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},b1=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return E1(Object.entries(t.classGroups),n).forEach(([o,i])=>{Xu(i,r,o,e)}),r},Xu=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const o=s===""?e:mh(e,s);o.classGroupId=n;return}if(typeof s=="function"){if(S1(s)){Xu(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{Xu(i,mh(e,o),n,r)})})},mh=(t,e)=>{let n=t;return e.split(_d).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},S1=t=>t.isThemeGetter,E1=(t,e)=>e?t.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[e+i,a])):o);return[n,s]}):t,k1=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),e++,e>t&&(e=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)}}},av="!",C1=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],o=e.length,i=a=>{const l=[];let u=0,c=0,d;for(let w=0;w<a.length;w++){let g=a[w];if(u===0){if(g===s&&(r||a.slice(w,w+o)===e)){l.push(a.slice(c,w)),c=w+o;continue}if(g==="/"){d=w;continue}}g==="["?u++:g==="]"&&u--}const h=l.length===0?a:a.substring(c),f=h.startsWith(av),_=f?h.substring(1):h,v=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:_,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},T1=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},P1=t=>({cache:k1(t.cacheSize),parseClassName:C1(t),..._1(t)}),R1=/\s+/,O1=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,o=[],i=t.trim().split(R1);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let _=!!f,v=r(_?h.substring(0,f):h);if(!v){if(!_){a=u+(a.length>0?" "+a:a);continue}if(v=r(h),!v){a=u+(a.length>0?" "+a:a);continue}_=!1}const w=T1(c).join(":"),g=d?w+av:w,p=g+v;if(o.includes(p))continue;o.push(p);const m=s(v,_);for(let x=0;x<m.length;++x){const S=m[x];o.push(g+S)}a=u+(a.length>0?" "+a:a)}return a};function A1(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=lv(e))&&(r&&(r+=" "),r+=n);return r}const lv=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=lv(t[r]))&&(n&&(n+=" "),n+=e);return n};function j1(t,...e){let n,r,s,o=i;function i(l){const u=e.reduce((c,d)=>d(c),t());return n=P1(u),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=O1(l,n);return s(l,c),c}return function(){return o(A1.apply(null,arguments))}}const ae=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},uv=/^\[(?:([a-z-]+):)?(.+)\]$/i,N1=/^\d+\/\d+$/,L1=new Set(["px","full","screen"]),I1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$1=/\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$/,D1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,M1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=t=>ps(t)||L1.has(t)||N1.test(t),bn=t=>Ds(t,"length",q1),ps=t=>!!t&&!Number.isNaN(Number(t)),Bl=t=>Ds(t,"number",ps),to=t=>!!t&&Number.isInteger(Number(t)),F1=t=>t.endsWith("%")&&ps(t.slice(0,-1)),K=t=>uv.test(t),Sn=t=>I1.test(t),z1=new Set(["length","size","percentage"]),B1=t=>Ds(t,z1,cv),W1=t=>Ds(t,"position",cv),V1=new Set(["image","url"]),H1=t=>Ds(t,V1,G1),K1=t=>Ds(t,"",Q1),no=()=>!0,Ds=(t,e,n)=>{const r=uv.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},q1=t=>$1.test(t)&&!D1.test(t),cv=()=>!1,Q1=t=>M1.test(t),G1=t=>U1.test(t),J1=()=>{const t=ae("colors"),e=ae("spacing"),n=ae("blur"),r=ae("brightness"),s=ae("borderColor"),o=ae("borderRadius"),i=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),u=ae("grayscale"),c=ae("hueRotate"),d=ae("invert"),h=ae("gap"),f=ae("gradientColorStops"),_=ae("gradientColorStopPositions"),v=ae("inset"),w=ae("margin"),g=ae("opacity"),p=ae("padding"),m=ae("saturate"),x=ae("scale"),S=ae("sepia"),E=ae("skew"),k=ae("space"),R=ae("translate"),N=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",K,e],D=()=>[K,e],q=()=>["",Jt,bn],L=()=>["auto",ps,K],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",K],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ps,K];return{cacheSize:500,separator:":",theme:{colors:[no],spacing:[Jt,bn],blur:["none","",Sn,K],brightness:V(),borderColor:[t],borderRadius:["n
71one","","full",Sn,K],borderSpacing:D(),borderWidth:q(),contrast:V(),grayscale:P(),hueRotate:V(),invert:P(),gap:D(),gradientColorStops:[t],gradientColorStopPositions:[F1,bn],inset:U(),margin:U(),opacity:V(),padding:D(),saturate:V(),scale:V(),sepia:P(),skew:V(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[Sn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:[...Y(),K]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],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]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",to,K]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",to,K]}],"grid-cols":[{"grid-cols":[no]}],"col-start-end":[{col:["auto",{span:["full",to,K]},K]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[no]}],"row-start-end":[{row:["auto",{span:[to,K]},K]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,e]}],"min-w":[{"min-w":[K,e,"min","max","fit"]}],"max-w":[{"max-w":[K,e,"none","full","min","max","fit","prose",{screen:[Sn]},Sn]}],h:[{h:[K,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Sn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bl]}],"font-family":[{font:[no]}],"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",K]}],"line-clamp":[{"line-clamp":["none",ps,Bl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jt,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Jt,bn]}],"underline-offset":[{"underline-offset":["auto",Jt,K]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],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",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),W1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",B1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},H1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[_]}
vendor: 4,231 bytes, line 71
71],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],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":[g]}],"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":[g]}],"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":[Jt,K]}],"outline-w":[{outline:[Jt,bn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Jt,bn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Sn,K1]}],"shadow-color":[{shadow:[no]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Sn,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[m]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",K]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[to,K]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",t]}],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",
vendor: 4,739 bytes, line 71
71K]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Jt,bn,Bl]}],stroke:[{stroke:[t,"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"]}}},Y1=j1(J1);function Lr(...t){return Y1(rv(t))}const X1=h1,dv=y.forwardRef(({className:t,...e},n)=>b.jsx(Jg,{ref:n,className:Lr("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]",t),...e}));dv.displayName=Jg.displayName;const Z1=p1("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"}}),fv=y.forwardRef(({className:t,variant:e,...n},r)=>
71b.jsx(Yg,{ref:r,className:Lr(Z1({variant:e}),t),...n}));fv.displayName=Yg.displayName;const ex=y.forwardRef(({className:t,...e},n)=>b.jsx(ev,{ref:n,className:Lr("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));ex.displayName=ev.displayName;const hv=y.forwardRef(({className:t,...e},n)=>b.jsx(tv,{ref:n,className:Lr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:b.jsx(w1,{className:"h-4 w-4"})}));hv.displayName=tv.displayName;const pv=y.forwardRef(({className:t,...e},n)=>b.jsx(Xg,{ref:n,className:Lr("text-sm font-semibold",t),...e}));pv.displayName=Xg.displayName;const mv=y.forwardRef(({className:t,...e},n)=>b.jsx(Zg,{ref:n,className:Lr("text-sm opacity-90",t),...e}));mv.displayName=Zg.displayName;function tx(){const{toasts:t}=x_();return b.jsxs(X1,{children:[t.map(function({id:e,title:n,description:r,action:s,...o}){return b.jsxs(fv,{...o,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(pv,{children:n}),r&&b.jsx(mv,{children:r})]}),s,b.jsx(hv,{})]},e)}),b.jsx(dv,{})]})}var gh=["light","dark"],nx="(prefers-color-scheme: dark)",rx=y.createContext(void 0),sx={setTheme:t=>{},themes:[]},ox=()=>{var t;return(t=y.useContext(rx))!=null?t:sx};y.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let u=o==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(_=>`'${_}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?gh.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(_,v=!1,w=!0)=>{let g=i?i[_]:_,p=v?_+"|| ''":`'${g}'`,m="";return s&&w&&!v&&gh.includes(_)&&(m+=`d.style.colorScheme = '${_}';`),n==="class"?v||g?m+=`c.add(${p})`:m+="null":g&&(m+=`d[s](n,${p})`),m},f=t?`!function(){${c}${h(t)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${nx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${e}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${d}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var ix=t=>{switch(t){case"success":return ux;case"info":return dx;case"warning":return cx;case"error":return fx;default:return null}},ax=Array(12).fill(0),lx=({visible:t,className:e})=>A.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},A.createElement("div",{className:"sonner-spinner"},ax.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ux=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),cx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.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"})),dx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),fx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),hx=A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),px=()=>{let[t,e]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{e(document.hidden)};
71return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Zu=1,mx=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Zu++,o=this.toasts.find(a=>a.id===s),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:n}),{...a,...t,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),s=n!==void 0,o,i=r.then(async l=>{if(o=["resolve",l],A.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(vx(l)&&!l.ok){s=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:n,type:"error",message:u,description:c})}else if(e.success!==void 0){s=!1;let u=typeof e.success=="function"?await e.success(l):e.success,c=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(o=["reject",l],e.error!==void 0){s=!1;let u=typeof e.error=="function"?await e.error(l):e.error,c=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,u)=>i.then(()=>o[0]==="reject"?u(o[1]):l(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Zu++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},qe=new mx,gx=(t,e)=>{let n=(e==null?void 0:e.id)||Zu++;return qe.addToast({title:t,...e,id:n}),n},vx=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",yx=gx,wx=()=>qe.toasts,_x=()=>qe.getActiveToasts(),DT=Object.assign(yx,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:wx,getToasts:_x});function xx(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}xx(`: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;
71left: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}
71: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%);
71--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%)}
72`);function Pi(t){return t.label!==void 0}var bx=3,Sx="32px",Ex="16px",vh=4e3,kx=356,Cx=14,Tx=20,Px=200;function bt(...t){return t.filter(Boolean).join(" ")}function Rx(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var Ox=t=>{var e,n,r,s,o,i,a,l,u,c,d;let{invert:h,toast:f,unstyled:_,interacting:v,setHeights:w,visibleToasts:g,heights:p,index:m,toasts:x,expanded:S,removeToast:E,defaultRichColors:k,closeButton:R,style:N,cancelButtonStyle:j,actionButtonStyle:U,className:D="",descriptionClassName:q="",duration:L,position:Y,gap:F,loadingIcon:W,expandByDefault:T,classNames:P,icons:I,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:M}=t,[Q,X]=A.useState(null),[xe,Ne]=A.useState(null),[te,$r]=A.useState(!1),[mn,ir]=A.useState(!1),[gn,Dr]=A.useState(!1),[vn,oi]=A.useState(!1),[ll,ii]=A.useState(!1),[ul,Hs]=A.useState(0),[Mr,Wd]=A.useState(0),Ks=A.useRef(f.duration||L||vh),Vd=A.useRef(null),ar=A.useRef(null),jy=m===0,Ny=m+1<=g,ut=f.type,Ur=f.dismissible!==!1,Ly=f.className||"",Iy=f.descriptionClassName||"",ai=A.useMemo(()=>p.findIndex(z=>z.toastId===f.id)||0,[p,f.id]),$y=A.useMemo(()=>{var z;return(z=f.closeButton)!=null?z:R},[f.closeButton,R]),Hd=A.useMemo(()=>f.duration||L||vh,[f.duration,L]),cl=A.useRef(0),Fr=A.useRef(0),Kd=A.useRef(0),zr=A.useRef(null),[Dy,My]=Y.split("-"),qd=A.useMemo(()=>p.reduce((z,re,ce)=>ce>=ai?z:z+re.height,0),[p,ai]),Qd=px(),Uy=f.invert||h,dl=ut==="loading";Fr.current=A.useMemo(()=>ai*F+qd,[ai,qd]),A.useEffect(()=>{Ks.current=Hd},[Hd]),A.useEffect(()=>{$r(!0)},[]),A.useEffect(()=>{let z=ar.current;if(z){let re=z.getBoundingClientRect().height;return Wd(re),w(ce=>[{toastId:f.id,height:re,position:f.position},...ce]),()=>w(ce=>ce.filter(yt=>yt.toastId!==f.id))}},[w,f.id]),A.useLayoutEffect(()=>{if(!te)return;let z=ar.current,re=z.style.height;z.style.height="auto";let ce=z.getBoundingClientRect().height;z.style.height=re,Wd(ce),w(yt=>yt.find(wt=>wt.toastId===f.id)?yt.map(wt=>wt.toastId===f.id?{...wt,height:ce}:wt):[{toastId:f.id,height:ce,position:f.position},...yt])},[te,f.title,f.description,w,f.id]);let yn=A.useCallback(()=>{ir(!0),Hs(Fr.current),w(z=>z.filter(re=>re.toastId!==f.id)),setTimeout(()=>{E(f)},Px)},[f,E,w,Fr]);A.useEffect(()=>{if(f.promise&&ut==="loading"||f.duration===1/0||f.type==="loading")return;let z;return S||v||M&&Qd?(()=>{if(Kd.current<cl.current){let re=new Date().getTime()-cl.current;Ks.current=Ks.current-re}
72Kd.current=new Date().getTime()})():Ks.current!==1/0&&(cl.current=new Date().getTime(),z=setTimeout(()=>{var re;(re=f.onAutoClose)==null||re.call(f,f),yn()},Ks.current)),()=>clearTimeout(z)},[S,v,f,ut,M,Qd,yn]),A.useEffect(()=>{f.delete&&yn()},[yn,f.delete]);function Fy(){var z,re,ce;return I!=null&&I.loading?A.createElement("div",{className:bt(P==null?void 0:P.loader,(z=f==null?void 0:f.classNames)==null?void 0:z.loader,"sonner-loader"),"data-visible":ut==="loading"},I.loading):W?A.createElement("div",{className:bt(P==null?void 0:P.loader,(re=f==null?void 0:f.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":ut==="loading"},W):A.createElement(lx,{className:bt(P==null?void 0:P.loader,(ce=f==null?void 0:f.classNames)==null?void 0:ce.loader),visible:ut==="loading"})}return A.createElement("li",{tabIndex:0,ref:ar,className:bt(D,Ly,P==null?void 0:P.toast,(e=f==null?void 0:f.classNames)==null?void 0:e.toast,P==null?void 0:P.default,P==null?void 0:P[ut],(n=f==null?void 0:f.classNames)==null?void 0:n[ut]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||_),"data-mounted":te,"data-promise":!!f.promise,"data-swiped":ll,"data-removed":mn,"data-visible":Ny,"data-y-position":Dy,"data-x-position":My,"data-index":m,"data-front":jy,"data-swiping":gn,"data-dismissible":Ur,"data-type":ut,"data-invert":Uy,"data-swipe-out":vn,"data-swipe-direction":xe,"data-expanded":!!(S||T&&te),style:{"--index":m,"--toasts-before":m,"--z-index":x.length-m,"--offset":`${mn?ul:Fr.current}px`,"--initial-height":T?"auto":`${Mr}px`,...N,...f.style},onDragEnd:()=>{Dr(!1),X(null),zr.current=null},onPointerDown:z=>{dl||!Ur||(Vd.current=new Date,Hs(Fr.current),z.target.setPointerCapture(z.pointerId),z.target.tagName!=="BUTTON"&&(Dr(!0),zr.current={x:z.clientX,y:z.clientY}))},onPointerUp:()=>{var z,re,ce,yt;if(vn||!Ur)return;zr.current=null;let wt=Number(((z=ar.current)==null?void 0:z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wn=Number(((re=ar.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),lr=new Date().getTime()-((ce=Vd.current)==null?void 0:ce.getTime()),_t=Q==="x"?wt:wn,_n=Math.abs(_t)/lr;if(Math.abs(_t)>=Tx||_n>.11){Hs(Fr.current),(yt=f.onDismiss)==null||yt.call(f,f),Ne(Q==="x"?wt>0?"right":"left":wn>0?"down":"up"),yn(),oi(!0),ii(!1);return}Dr(!1),X(null)},onPointerMove:z=>{var re,ce,yt,wt;if(!zr.current||!Ur||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let wn=z.clientY-zr.current.y,lr=z.clientX-zr.current.x,_t=(ce=t.swipeDirections)!=null?ce:Rx(Y);!Q&&(Math.abs(lr)>1||Math.abs(wn)>1)&&X(Math.abs(lr)>Math.abs(wn)?"x":"y");let _n={x:0,y:0};Q==="y"?(_t.includes("top")||_t.includes("bottom"))&&(_t.includes("top")&&wn<0||_t.includes("bottom")&&wn>0)&&(_n.y=wn):Q==="x"&&(_t.includes("left")||_t.includes("right"))&&(_t.includes("left")&&lr<0||_t.includes("right")&&lr>0)&&(_n.x=lr),(Math.abs(_n.x)>0||Math.abs(_n.y)>0)&&ii(!0),(yt=ar.current)==null||yt.style.setProperty("--swipe-amount-x",`${_n.x}px`),(wt=ar.current)==null||wt.style.setProperty("--swipe-amount-y",`${_n.y}px`)}},$y&&!f.jsx?A.createElement("button",{"aria-label":V,"data-disabled":dl,"data-close-button":!0,onClick:dl||!Ur?()=>{}:()=>{var z;yn(),(z=f.onDismiss)==null||z.call(f,f)},className:bt(P==null?void 0:P.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(o=I==null?void 0:I.close)!=null?o:hx):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:A.createElement(A.Fragment,null,ut||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:bt(P==null?void 0:P.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Fy():null,f.type!=="loading"?f.icon||(I==null?void 0:I[ut])||ix(ut):null):null,A.createElement("div",{"data-content":"",className:bt(P==null?void 0:P.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:bt(P==null?void 0:P.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?A.createElement("div",{"data-description":"",className:bt(q,Iy,P==null?void 0:P.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&Pi(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||j,onClick:z=>{var re,ce;Pi(f.cancel)&&Ur&&((ce=(re=f.cancel).onClick)==null||ce.call(re,z),yn())},className:bt(P==null?void 0:P.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&Pi(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||U,onClick:z=>{var re,ce;Pi(f.action)&&((ce=(re=f.action).onClick)==null||ce.call(re,z),!z.defaultPrevented&&yn())},className:bt(P==null?void 0:P.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function yh(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function Ax(t,e){let n={};return[t,e].forEach((r,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?Ex:Sx;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(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]}):l(a)}),n}var jx=y.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:h,style:f,visibleToasts:_=bx,toastOptions:v,dir:w=yh(),gap:g=Cx,loadingIcon:p,icons:m,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:S}=t,[E,k]=A.useState([]),R=A.useMemo(()=>Array.from(new Set([r].concat(E.filter(M=>M.position).map(M=>M.position)))),[E,r]),[N,j]=A.useState([]),[U,D]=A.useState(!1),[q,L]=A.useState(!1),[Y,F]=A.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
72k":"light"),W=A.useRef(null),T=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=A.useRef(null),I=A.useRef(!1),V=A.useCallback(M=>{k(Q=>{var X;return(X=Q.find(xe=>xe.id===M.id))!=null&&X.delete||qe.dismiss(M.id),Q.filter(({id:xe})=>xe!==M.id)})},[]);return A.useEffect(()=>qe.subscribe(M=>{if(M.dismiss){k(Q=>Q.map(X=>X.id===M.id?{...X,delete:!0}:X));return}setTimeout(()=>{Pg.flushSync(()=>{k(Q=>{let X=Q.findIndex(xe=>xe.id===M.id);return X!==-1?[...Q.slice(0,X),{...Q[X],...M},...Q.slice(X+1)]:[M,...Q]})})})}),[]),A.useEffect(()=>{if(c!=="system"){F(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:Q})=>{F(Q?"dark":"light")})}catch{M.addListener(({matches:X})=>{try{F(X?"dark":"light")}catch(xe){console.error(xe)}})}},[c]),A.useEffect(()=>{E.length<=1&&D(!1)},[E]),A.useEffect(()=>{let M=Q=>{var X,xe;s.every(Ne=>Q[Ne]||Q.code===Ne)&&(D(!0),(X=W.current)==null||X.focus()),Q.code==="Escape"&&(document.activeElement===W.current||(xe=W.current)!=null&&xe.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[s]),A.useEffect(()=>{if(W.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,I.current=!1)}},[W.current]),A.createElement("section",{ref:e,"aria-label":`${x} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((M,Q)=>{var X;let[xe,Ne]=M.split("-");return E.length?A.createElement("ol",{key:M,dir:w==="auto"?yh():w,tabIndex:-1,ref:W,className:a,"data-sonner-toaster":!0,"data-theme":Y,"data-y-position":xe,"data-lifted":U&&E.length>1&&!o,"data-x-position":Ne,style:{"--front-toast-height":`${((X=N[0])==null?void 0:X.height)||0}px`,"--width":`${kx}px`,"--gap":`${g}px`,...f,...Ax(l,u)},onBlur:te=>{I.current&&!te.currentTarget.contains(te.relatedTarget)&&(I.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||I.current||(I.current=!0,P.current=te.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{q||D(!1)},onDragEnd:()=>D(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},E.filter(te=>!te.position&&Q===0||te.position===M).map((te,$r)=>{var mn,ir;return A.createElement(Ox,{key:te.id,icons:m,index:$r,toast:te,defaultRichColors:d,duration:(mn=v==null?void 0:v.duration)!=null?mn:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:_,closeButton:(ir=v==null?void 0:v.closeButton)!=null?ir:i,interacting:q,position:M,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:V,toasts:E.filter(gn=>gn.position==te.position),heights:N.filter(gn=>gn.position==te.position),setHeights:j,expandByDefault:o,gap:g,loadingIcon:p,expanded:U,pauseWhenPageIsHidden:S,swipeDirections:t.swipeDirections})})):null}))});const Nx=({...t})=>{const{theme:e="system"}=ox();return b.jsx(jx,{theme:e,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"}},...t})},Lx=["top","right","bottom","left"],Zn=Math.min,nt=Math.max,xa=Math.round,Ri=Math.floor,qt=t=>({x:t,y:t}),Ix={left:"right",right:"left",bottom:"top",top:"bottom"},$x={start:"end",end:"start"};function ec(t,e,n){return nt(t,Zn(e,n))}function dn(t,e){return typeof t=="function"?t(e):t}function fn(t){return t.split("-")[0]}function Ms(t){return t.split("-")[1]}function xd(t){return t==="x"?"y":"x"}function bd(t){return t==="y"?"height":"width"}const Dx=new Set(["top","bottom"]);function Vt(t){return Dx.has(fn(t))?"y":"x"}function Sd(t){return xd(Vt(t))}function Mx(t,e,n){n===void 0&&(n=!1);const r=Ms(t),s=Sd(t),o=bd(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=ba(i)),[i,ba(i)]}function Ux(t){const e=ba(t);return[tc(t),e,tc(e)]}function tc(t){return t.replace(/start|end/g,e=>$x[e])}const wh=["left","right"],_h=["right","left"],Fx=["top","bottom"],zx=["bottom","top"];function Bx(t,e,n){switch(t){case"top":case"bottom":return n?e?_h:wh:e?wh:_h;case"left":case"right":return e?Fx:zx;default:return[]}}function Wx(t,e,n,r){const s=Ms(t);let o=Bx(fn(t),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),e&&(o=o.concat(o.map(tc)))),o}function ba(t){return t.replace(/left|right|bottom|top/g,e=>Ix[e])}function Vx(t){return{top:0,right:0,bottom:0,left:0,...t}}
vendor: 10,690 bytes, line 72
72function gv(t){return typeof t!="number"?Vx(t):{top:t,right:t,bottom:t,left:t}}function Sa(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function xh(t,e,n){let{reference:r,floating:s}=t;const o=Vt(e),i=Sd(e),a=bd(i),l=fn(e),u=o==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:c,y:r.y-s.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Ms(e)){case"start":f[i]-=h*(n&&u?-1:1);break;case"end":f[i]+=h*(n&&u?-1:1);break}return f}const Hx=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:d}=xh(u,r,l),h=r,f={},_=0;for(let v=0;v<a.length;v++){const{name:w,fn:g}=a[v],{x:p,y:m,data:x,reset:S}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:f,rects:u,platform:i,elements:{reference:t,floating:e}});c=p??c,d=m??d,f={...f,[w]:{...f[w],...x}},S&&_<=50&&(_++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:c,y:d}=xh(u,h,l)),v=-1)}return{x:c,y:d,placement:h,strategy:s,middlewareData:f}};async function Fo(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=dn(e,t),_=gv(f),w=a[h?d==="floating"?"reference":"floating":d],g=Sa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=d==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),x=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},S=Sa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:m,strategy:l}):p);return{top:(g.top-S.top+_.top)/x.y,bottom:(S.bottom-g.bottom+_.bottom)/x.y,left:(g.left-S.left+_.left)/x.x,right:(S.right-g.right+_.right)/x.x}}const Kx=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=e,{element:u,padding:c=0}=dn(t,e)||{};if(u==null)return{};const d=gv(c),h={x:n,y:r},f=Sd(s),_=bd(f),v=await i.getDimensions(u),w=f==="y",g=w?"top":"left",p=w?"bottom":"right",m=w?"clientHeight":"clientWidth",x=o.reference[_]+o.reference[f]-h[f]-o.floating[_],S=h[f]-o.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=E?E[m]:0;(!k||!await(i.isElement==null?void 0:i.isElement(E)))&&(k=a.floating[m]||o.floating[_]);const R=x/2-S/2,N=k/2-v[_]/2-1,j=Zn(d[g],N),U=Zn(d[p],N),D=j,q=k-v[_]-U,L=k/2-v[_]/2+R,Y=ec(D,L,q),F=!l.arrow&&Ms(s)!=null&&L!==Y&&o.reference[_]/2-(L<D?j:U)-v[_]/2<0,W=F?L<D?L-D:L-q:0;return{[f]:h[f]+W,data:{[f]:Y,centerOffset:L-Y-W,...F&&{alignmentOffset:W}},reset:F}}}),qx=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:v=!0,...w}=dn(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=fn(s),p=Vt(a),m=fn(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(m||!v?[ba(a)]:Ux(a)),E=_!=="none";!h&&E&&S.push(...Wx(a,v,_,x));const k=[a,...S],R=await Fo(e,w),N=[];let j=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&N.push(R[g]),d){const L=Mx(s,i,x);N.push(R[L[0]],R[L[1]])}if(j=[...j,{placement:s,overflows:N}],!N.every(L=>L<=0)){var U,D;const L=(((U=o.flip)==null?void 0:U.index)||0)+1,Y=k[L];if(Y&&(!(d==="alignment"?p!==Vt(Y):!1)||j.every(T=>T.overflows[0]>0&&Vt(T.placement)===p)))return{data:{index:L,overflows:j},reset:{placement:Y}};let F=(D=j.filter(W=>W.overflows[0]<=0).sort((W,T)=>W.overflows[1]-T.overflows[1])[0])==null?void 0:D.placement;if(!F)switch(f){case"bestFit":{var q;const W=(q=j.filter(T=>{if(E){const P=Vt(T.placement);return P===p||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,I)=>P+I,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:q[0];W&&(F=W);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function bh(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Sh(t){return Lx.some(e=>t[e]>=0)}const Qx=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=dn(t,e);switch(r){case"referenceHidden":{const o=await Fo(e,{...s,elementContext:"reference"}),i=bh(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Sh(i)}}}case"escaped":{const o=await Fo(e,{...s,altBoundary:!0}),i=bh(o,n.floating);return{data:{escapedOffsets:i,escaped:Sh(i)}}}default:return{}}}}},vv=new Set(["left","top"]);async function Gx(t,e){const{placement:n,platform:r,elements:s}=t,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=fn(n),a=Ms(n),l=Vt(n)==="y",u=vv.has(i)?-1:1,c=o&&l?-1:1,d=dn(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:_}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof _=="number"&&(f=a==="end"?_*-1:_),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const Jx=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=e,l=await Gx(e,t);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},Yx=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:g,y:p}=w;return{x:g,y:p}}},...l}=dn(t,e),u={x:n,y:r},c=await Fo(e,l),d=Vt(fn(s)),h=xd(d);let f=u[h],_=u[d];if(o){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",p=f+c[w],m=f-c[g];f=ec(p,f,m)}if(i){const w=d==="y"?"top":"left",g=d==="y"?"bottom":"right",p=_+c[w],m=_-c[g];_=ec(p,_,m)}const v=a.fn({...e,[h]:f,[d]:_});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:o,[d]:i}}}}}},Xx=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=dn(t,e),c={x:n,y:r},d=Vt(s),h=xd(d);let f=c[h],_=c[d];const v=dn(a,e),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const m=h==="y"?"height":"width",x=o.reference[h]-o.floating[m]+w.mainAxis,S=o.reference[h]+o.reference[m]-w.mainAxis;f<x?f=x:f>S&&(f=S)}if(u){var g,p;const m=h==="y"?"width":"height",x=vv.has(fn(s)),S=o.reference[d]-o.floating[m]+(x&&((g=i.offset)==null?void 0:g[d])||0)+(x?0:w.crossAxis),E=o.reference[d]+o.reference[m]+(x?0:((p=i.offset)==null?void 0:p[d])||0)-(x?w.crossAxis:0);_<S?_=S:_>E&&(_=E)}return{[h]:f,[d]:_}}}},Zx=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:o,platform:i,elements:a}=e,{apply:l=()=>{},...u}=dn(t,e),c=await Fo(e,u),d=fn(s),h=Ms(s),f=Vt(s)==="y",{width:_,height:v}=o.floating;let w,g;d==="top"||d==="bottom"?(w=d,g=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,w=h==="end"?"top":"bottom");const p=v-c.top-c.bottom,m=_-c.left-c.right,x=Zn(v-c[w],p),S=Zn(_-c[g],m),E=!e.middlewareData.shift;let k=x,R=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(R=m),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(k=p),E&&!h){const j=nt(c.left,0),U=nt(c.right,0),D=nt(c.top,0),q=nt(c.bottom,0);f?R=_-2*(j!==0||U!==0?j+U:nt(c.left,c.right)):k=v-2*(D!==0||q!==0?D+q:nt(c.top,c.bottom))}await l({...e,availableWidth:R,availableHeight:k});const N=await i.getDimensions(a.floating);return _!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Ga(){return typeof window<"u"}function Us(t){return yv(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Gt(t){var e;return(e=(yv(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function yv(t){return Ga()?t instanceof Node||t instanceof ot(t).Node:!1}function It(t){return Ga()?t instanceof Element||t instanceof ot(t).Element:!1}function Qt(t){return Ga()?t instanceof HTMLElement||t instanceof ot(t).HTMLElement:!1}function Eh(t){return!Ga()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}const eb=new Set(["inline","contents"]);function ni(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=$t(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!eb.has(s)}const tb=new Set(["table","td","th"]);function nb(t){return tb.has(Us(t))}const rb=[":popover-open",":modal"];function Ja(t){return rb.some(e=>{try{return t.matches(e)}catch{return!1}})}const sb=["transform","translate","scale","rotate","perspective"],ob=["transform","translate","scale","rotate","perspective","filter"],ib=["paint","layout","strict","content"];function Ed(t){const e=kd(),n=It(t)?$t(t):t;return sb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ob.some(r=>(n.willChange||"").includes(r))||ib.some(r=>(n.contain||"").includes(r))}function ab(t){let e=er(t);for(;Qt(e)&&!As(e);){if(Ed(e))return e;if(Ja(e))return null;e=er(e)}return null}function kd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lb=new Set(["html","body","#document"]);function As(t){return lb.has(Us(t))}function $t(t){return ot(t).getComputedStyle(t)}function Ya(t){return It(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function er(t){if(Us(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Eh(t)&&t.host||Gt(t);return Eh(e)?e.host:e}function wv(t){const e=er(t);return As(e)?t.ownerDocument?t.ownerDocument.body:t.body:Qt(e)&&ni(e)?e:wv(e)}function zo(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=wv(t),o=s===((r=t.ownerDocument)==null?void 0:r.body),i=ot(s);if(o){const a=nc(i);
vendor: 4,127 bytes, line 72
72return e.concat(i,i.visualViewport||[],ni(s)?s:[],a&&n?zo(a):[])}return e.concat(s,zo(s,[],n))}function nc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _v(t){const e=$t(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=Qt(t),o=s?t.offsetWidth:n,i=s?t.offsetHeight:r,a=xa(n)!==o||xa(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Cd(t){return It(t)?t:t.contextElement}function ms(t){const e=Cd(t);if(!Qt(e))return qt(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:o}=_v(e);let i=(o?xa(n.width):n.width)/r,a=(o?xa(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ub=qt(0);function xv(t){const e=ot(t);return!kd()||!e.visualViewport?ub:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cb(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==ot(t)?!1:e}function Ar(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),o=Cd(t);let i=qt(1);e&&(r?It(r)&&(i=ms(r)):i=ms(t));const a=cb(o,n,r)?xv(o):qt(0);let l=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,c=s.width/i.x,d=s.height/i.y;if(o){const h=ot(o),f=r&&It(r)?ot(r):r;let _=h,v=nc(_);for(;v&&r&&f!==_;){const w=ms(v),g=v.getBoundingClientRect(),p=$t(v),m=g.left+(v.clientLeft+parseFloat(p.paddingLeft))*w.x,x=g.top+(v.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=m,u+=x,_=ot(v),v=nc(_)}}return Sa({width:c,height:d,x:l,y:u})}function Td(t,e){const n=Ya(t).scrollLeft;return e?e.left+n:Ar(Gt(t)).left+n}function bv(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:Td(t,r)),o=r.top+e.scrollTop;return{x:s,y:o}}function db(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const o=s==="fixed",i=Gt(r),a=e?Ja(e.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=qt(1);const c=qt(0),d=Qt(r);if((d||!d&&!o)&&((Us(r)!=="body"||ni(i))&&(l=Ya(r)),Qt(r))){const f=Ar(r);u=ms(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=i&&!d&&!o?bv(i,l,!0):qt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function fb(t){return Array.from(t.getClientRects())}function hb(t){const e=Gt(t),n=Ya(t),r=t.ownerDocument.body,s=nt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=nt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Td(t);const a=-n.scrollTop;return $t(r).direction==="rtl"&&(i+=nt(e.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function pb(t,e){const n=ot(t),r=Gt(t),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=kd();(!u||u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const mb=new Set(["absolute","fixed"]);function gb(t,e){const n=Ar(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,o=Qt(t)?ms(t):qt(1),i=t.clientWidth*o.x,a=t.clientHeight*o.y,l=s*o.x,u=r*o.y;return{width:i,height:a,x:l,y:u}}function kh(t,e,n){let r;if(e==="viewport")r=pb(t,n);else if(e==="document")r=hb(Gt(t));else if(It(e))r=gb(e,n);else{const s=xv(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Sa(r)}function Sv(t,e){const n=er(t);return n===e||!It(n)||As(n)?!1:$t(n).position==="fixed"||Sv(n,e)}function vb(t,e){const n=e.get(t);if(n)return n;let r=zo(t,[],!1).filter(a=>It(a)&&Us(a)!=="body"),s=null;const o=$t(t).position==="fixed";let i=o?er(t):t;for(;It(i)&&!As(i);){const a=$t(i),l=Ed(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&mb.has(s.position)||ni(i)&&!l&&Sv(t,i))?r=r.filter(c=>c!==i):s=a,i=er(i)}return e.set(t,r),r}function yb(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const i=[...n==="clippingAncestors"?Ja(e)?[]:vb(e,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const d=kh(e,c,s);return u.top=nt(d.top,u.top),u.right=Zn(d.right,u.right),u.bottom=Zn(d.bottom,u.bottom),u.left=nt(d.left,u.left),u},kh(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function wb(t){const{width:e,height:n}=_v(t);return{width:e,height:n}}
vendor: 9,697 bytes, line 72
72function _b(t,e,n){const r=Qt(e),s=Gt(e),o=n==="fixed",i=Ar(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=qt(0);function u(){l.x=Td(s)}if(r||!r&&!o)if((Us(e)!=="body"||ni(s))&&(a=Ya(e)),r){const f=Ar(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else s&&u();o&&!r&&s&&u();const c=s&&!r&&!o?bv(s,a):qt(0),d=i.left+a.scrollLeft-l.x-c.x,h=i.top+a.scrollTop-l.y-c.y;return{x:d,y:h,width:i.width,height:i.height}}function Wl(t){return $t(t).position==="static"}function Ch(t,e){if(!Qt(t)||$t(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Gt(t)===n&&(n=n.ownerDocument.body),n}function Ev(t,e){const n=ot(t);if(Ja(t))return n;if(!Qt(t)){let s=er(t);for(;s&&!As(s);){if(It(s)&&!Wl(s))return s;s=er(s)}return n}let r=Ch(t,e);for(;r&&nb(r)&&Wl(r);)r=Ch(r,e);return r&&As(r)&&Wl(r)&&!Ed(r)?n:r||ab(t)||n}const xb=async function(t){const e=this.getOffsetParent||Ev,n=this.getDimensions,r=await n(t.floating);return{reference:_b(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bb(t){return $t(t).direction==="rtl"}const Sb={convertOffsetParentRelativeRectToViewportRelativeRect:db,getDocumentElement:Gt,getClippingRect:yb,getOffsetParent:Ev,getElementRects:xb,getClientRects:fb,getDimensions:wb,getScale:ms,isElement:It,isRTL:bb};function kv(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Eb(t,e){let n=null,r;const s=Gt(t);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=t.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(a||e(),!h||!f)return;const _=Ri(d),v=Ri(s.clientWidth-(c+h)),w=Ri(s.clientHeight-(d+f)),g=Ri(c),m={rootMargin:-_+"px "+-v+"px "+-w+"px "+-g+"px",threshold:nt(0,Zn(1,l))||1};let x=!0;function S(E){const k=E[0].intersectionRatio;if(k!==l){if(!x)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!kv(u,t.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(S,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,m)}n.observe(t)}return i(!0),o}function kb(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Cd(t),c=s||o?[...u?zo(u):[],...zo(e)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const d=u&&a?Eb(u,n):null;let h=-1,f=null;i&&(f=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var m;(m=f)==null||m.observe(e)})),n()}),u&&!l&&f.observe(u),f.observe(e));let _,v=l?Ar(t):null;l&&w();function w(){const g=Ar(t);v&&!kv(v,g)&&n(),v=g,_=requestAnimationFrame(w)}return n(),()=>{var g;c.forEach(p=>{s&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),d==null||d(),(g=f)==null||g.disconnect(),f=null,l&&cancelAnimationFrame(_)}}const Cb=Jx,Tb=Yx,Pb=qx,Rb=Zx,Ob=Qx,Th=Kx,Ab=Xx,jb=(t,e,n)=>{const r=new Map,s={platform:Sb,...n},o={...s.platform,_c:r};return Hx(t,e,{...s,platform:o})};var Nb=typeof document<"u",Lb=function(){},Gi=Nb?y.useLayoutEffect:Lb;function Ea(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ea(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&t.$$typeof)&&!Ea(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function Cv(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ph(t,e){const n=Cv(t);return Math.round(e*n)/n}function Vl(t){const e=y.useRef(t);return Gi(()=>{e.current=t}),e}function Ib(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=t,[c,d]=y.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,f]=y.useState(r);Ea(h,r)||f(r);const[_,v]=y.useState(null),[w,g]=y.useState(null),p=y.useCallback(T=>{T!==E.current&&(E.current=T,v(T))},[]),m=y.useCallback(T=>{T!==k.current&&(k.current=T,g(T))},[]),x=o||_,S=i||w,E=y.useRef(null),k=y.useRef(null),R=y.useRef(c),N=l!=null,j=Vl(l),U=Vl(s),D=Vl(u),q=y.useCallback(()=>{if(!E.current||!k.current)return;const T={placement:e,strategy:n,middleware:h};U.current&&(T.platform=U.current),jb(E.current,k.current,T).then(P=>{const I={...P,isPositioned:D.current!==!1};L.current&&!Ea(R.current,I)&&(R.current=I,ei.flushSync(()=>{d(I)}))})},[h,e,n,U,D]);Gi(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[u]);const L=y.useRef(!1);Gi(()=>(L.current=!0,()=>{L.current=!1}),[]),Gi(()=>{if(x&&(E.current=x),S&&(k.current=S),x&&S){if(j.current)return j.current(x,S,q);q()}},[x,S,q,j,N]);const Y=y.useMemo(()=>({reference:E,floating:k,setReference:p,setFloating:m}),[p,m]),F=y.useMemo(()=>({reference:x,floating:S}),[x,S]),W=y.useMemo(()=>{const T={position:n,left:0,top:0};if(!F.floating)return T;const P=Ph(F.floating,c.x),I=Ph(F.floating,c.y);return a?{...T,transform:"translate("+P+"px, "+I+"px)",...Cv(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:I}},[n,a,F.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:q,refs:Y,elements:F,floatingStyles:W}),[c,q,Y,F,W])}const $b=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Th({element:r.current,padding:s}).fn(n):{}:r?Th({element:r,padding:s}).fn(n):{}}}},Db=(t,e)=>({...Cb(t),options:[t,e]}),Mb=(t,e)=>({...Tb(t),options:[t,e]}),Ub=(t,e)=>({...Ab(t),options:[t,e]}),Fb=(t,e)=>({...Pb(t),options:[t,e]}),zb=(t,e)=>({...Rb(t),options:[t,e]}),Bb=(t,e)=>({...Ob(t),options:[t,e]}),Wb=(t,e)=>({...$b(t),options:[t,e]});var Vb="Arrow",Tv=y.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...o}=t;return b.jsx(et.svg,{...o,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tv.displayName=Vb;var Hb=Tv;function Kb(t){const[e,n]=y.useState(void 0);return Xn(()=>{if(t){n({width:t.offsetWidth,height:t.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 l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=t.offsetWidth,a=t.offsetHeight;n({width:i,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Pd="Popper",[Pv,Rv]=Ka(Pd),[qb,Ov]=Pv(Pd),Av=t=>{const{__scopePopper:e,children:n}=t,[r,s]=y.useState(null);return b.jsx(qb,{scope:e,anchor:r,onAnchorChange:s,children:n})};Av.displayName=Pd;var jv="PopperAnchor",Nv=y.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,o=Ov(jv,n),i=y.useRef(null),a=Lt(e,i);return y.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:b.jsx(et.div,{...s,ref:a})});Nv.displayName=jv;var Rd="PopperContent",[Qb,Gb]=Pv(Rd),Lv=y.forwardRef((t,e)=>{var te,$r,mn,ir,gn,Dr;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:_,...v}=t,w=Ov(Rd,n),[g,p]=y.useState(null),m=Lt(e,vn=>p(vn)),[x,S]=y.useState(null),E=Kb(x),k=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,N=r+(o!=="center"?"-"+o:""),j=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},U=Array.isArray(u)?u:[u],D=U.length>0,q={padding:j,boundary:U.filter(Yb),altBoundary:D},{refs:L,floatingStyles:Y,placement:F,isPositioned:W,middlewareData:T}=Ib({strategy:"fixed",placement:N,whileElementsMounted:(...vn)=>kb(...vn,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[Db({mainAxis:s+R,alignmentAxis:i}),l&&Mb({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ub():void 0,...q}),l&&Fb({...q}),zb({...q,apply:({elements:vn,rects:oi,availableWidth:ll,availableHeight:ii})=>{const{width:ul,height:Hs}=oi.reference,Mr=vn.floating.style;Mr.setProperty("--radix-popper-available-width",`${ll}px`),Mr.setProperty("--radix-popper-available-height",`${ii}px`),Mr.setProperty("--radix-popper-anchor-width",`${ul}px`),Mr.setProperty("--radix-popper-anchor-height",`${Hs}px`)}}),x&&Wb({element:x,padding:a}),Xb({arrowWidth:k,arrowHeight:R}),h&&Bb({strategy:"referenceHidden",...q})]}),[P,I]=Dv(F),V=Yn(_);Xn(()=>{W&&(V==null||V())},[W,V]);const M=(te=T.arrow)==null?void 0:te.x,Q=($r=T.arrow)==null?void 0:$r.y,X=((mn=T.arrow)==null?void 0:mn.centerOffset)!==0,[xe,Ne]=y.useState();return Xn(()=>{g&&Ne(window.getComputedStyle(g).zIndex)},[g]),b.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:W?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(ir=T.transformOrigin)==null?void 0:ir.x,(gn=T.transformOrigin)==null?void 0:gn.y].join(" "),...((Dr=T.hide)==null?void 0:Dr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:b.jsx(Qb,{scope:n,placedSide:P,onArrowChange:S,arrowX:M,arrowY:Q,shouldHideArrow:X,children:b.jsx(et.div,{"data-side":P,"data-align":I,...v,ref:m,style:{...v.style,animation:W?void 0:"none"}})})})});
vendor: 4,351 bytes, line 72
72Lv.displayName=Rd;var Iv="PopperArrow",Jb={top:"bottom",right:"left",bottom:"top",left:"right"},$v=y.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,o=Gb(Iv,r),i=Jb[o.placedSide];return b.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:b.jsx(Hb,{...s,ref:n,style:{...s.style,display:"block"}})})});$v.displayName=Iv;function Yb(t){return t!==null}var Xb=t=>({name:"transformOrigin",options:t,fn(e){var w,g,p;const{placement:n,rects:r,middlewareData:s}=e,i=((w=s.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[u,c]=Dv(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,f=(((p=s.arrow)==null?void 0:p.y)??0)+l/2;let _="",v="";return u==="bottom"?(_=i?d:`${h}px`,v=`${-l}px`):u==="top"?(_=i?d:`${h}px`,v=`${r.floating.height+l}px`):u==="right"?(_=`${-l}px`,v=i?d:`${f}px`):u==="left"&&(_=`${r.floating.width+l}px`,v=i?d:`${f}px`),{data:{x:_,y:v}}}});function Dv(t){const[e,n="center"]=t.split("-");return[e,n]}var MT=Av,Zb=Nv,eS=Lv,tS=$v,[Xa,UT]=Ka("Tooltip",[Rv]),Od=Rv(),Mv="TooltipProvider",nS=700,Rh="tooltip.open",[rS,Uv]=Xa(Mv),Fv=t=>{const{__scopeTooltip:e,delayDuration:n=nS,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=t,i=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),b.jsx(rS,{scope:e,isOpenDelayedRef:i,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:o})};Fv.displayName=Mv;var zv="Tooltip",[FT,Za]=Xa(zv),rc="TooltipTrigger",sS=y.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Za(rc,n),o=Uv(rc,n),i=Od(n),a=y.useRef(null),l=Lt(e,a,s.onTriggerChange),u=y.useRef(!1),c=y.useRef(!1),d=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(Zb,{asChild:!0,...i,children:b.jsx(et.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Ce(t.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ce(t.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:Ce(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ce(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:Ce(t.onBlur,s.onClose),onClick:Ce(t.onClick,s.onClose)})})});sS.displayName=rc;var oS="TooltipPortal",[zT,iS]=Xa(oS,{forceMount:void 0}),js="TooltipContent",Bv=y.forwardRef((t,e)=>{const n=iS(js,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=t,i=Za(js,t.__scopeTooltip);return b.jsx(gd,{present:r||i.open,children:i.disableHoverableContent?b.jsx(Wv,{side:s,...o,ref:e}):b.jsx(aS,{side:s,...o,ref:e})})}),aS=y.forwardRef((t,e)=>{const n=Za(js,t.__scopeTooltip),r=Uv(js,t.__scopeTooltip),s=y.useRef(null),o=Lt(e,s),[i,a]=y.useState(null),{trigger:l,onClose:u}=n,c=s.current,{onPointerInTransitChange:d}=r,h=y.useCallback(()=>{a(null),d(!1)},[d]),f=y.useCallback((_,v)=>{const w=_.currentTarget,g={x:_.clientX,y:_.clientY},p=fS(g,w.getBoundingClientRect()),m=hS(g,p),x=pS(v.getBoundingClientRect()),S=gS([...m,...x]);a(S),d(!0)},[d]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(l&&c){const _=w=>f(w,c),v=w=>f(w,l);return l.addEventListener("pointerleave",_),c.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",_),c.removeEventListener("pointerleave",v)}}},[l,c,f,h]),y.useEffect(()=>{if(i){const _=v=>{const w=v.target,g={x:v.clientX,y:v.clientY},p=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),m=!mS(g,i);p?h():m&&(h(),u())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}
72},[l,c,i,u,h]),b.jsx(Wv,{...t,ref:o})}),[lS,uS]=Xa(zv,{isInside:!1}),cS=E_("TooltipContent"),Wv=y.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=t,l=Za(js,n),u=Od(n),{onClose:c}=l;return y.useEffect(()=>(document.addEventListener(Rh,c),()=>document.removeEventListener(Rh,c)),[c]),y.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),b.jsx(md,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:b.jsxs(eS,{"data-state":l.stateAttribute,...u,...a,ref:e,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:[b.jsx(cS,{children:r}),b.jsx(lS,{scope:n,isInside:!0,children:b.jsx(G_,{id:l.contentId,role:"tooltip",children:s||r})})]})})});Bv.displayName=js;var Vv="TooltipArrow",dS=y.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Od(n);return uS(Vv,n).isInside?null:b.jsx(tS,{...s,...r,ref:e})});dS.displayName=Vv;function fS(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),o=Math.abs(e.left-t.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 hS(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function pS(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function mS(t,e){const{x:n,y:r}=t;let s=!1;for(let o=0,i=e.length-1;o<e.length;i=o++){const a=e[o],l=e[i],u=a.x,c=a.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(s=!s)}return s}function gS(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),vS(e)}function vS(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const o=e[e.length-1],i=e[e.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[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(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var yS=Fv,Hv=Bv;const wS=yS,_S=y.forwardRef(({className:t,sideOffset:e=4,...n},r)=>b.jsx(Hv,{ref:r,sideOffset:e,className:Lr("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",t),...n}));_S.displayName=Hv.displayName;var el=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tl=typeof window>"u"||"Deno"in globalThis;function kt(){}function xS(t,e){return typeof t=="function"?t(e):t}function bS(t){return typeof t=="number"&&t>=0&&t!==1/0}function SS(t,e){return Math.max(t+(e||0)-Date.now(),0)}function sc(t,e){return typeof t=="function"?t(e):t}function ES(t,e){return typeof t=="function"?t(e):t}function Oh(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=t;if(i){if(r){if(e.queryHash!==Ad(i,e.options))return!1}else if(!Wo(e.queryKey,i))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||o&&!o(e))}function Ah(t,e){const{exact:n,status:r,predicate:s,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(Bo(e.options.mutationKey)!==Bo(o))return!1}else if(!Wo(e.options.mutationKey,o))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function Ad(t,e){return((e==null?void 0:e.queryKeyHashFn)||Bo)(t)}function Bo(t){return JSON.stringify(t,(e,n)=>oc(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Wo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Wo(t[n],e[n])):!1}function Kv(t,e){if(t===e)return t;const n=jh(t)&&jh(e);if(n||oc(t)&&oc(e)){const r=n?t:Object.keys(t),s=r.length,o=n?e:Object.keys(e),i=o.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<i;c++){const d=n?c:o[c];(!n&&l.has(d)||n)&&t[d]===void 0&&e[d]===void 0?(a[d]=void 0,u++):(a[d]=Kv(t[d],e[d]),a[d]===t[d]&&t[d]!==void 0&&u++)}return s===i&&u===s?t:a}return e}function jh(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function oc(t){if(!Nh(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Nh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Nh(t){return Object.prototype.toString.call(t)==="[object Object]"}function kS(t){return new Promise(e=>{setTimeout(e,t)})}function CS(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Kv(t,e):e}function TS(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function PS(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var jd=Symbol();function qv(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===jd?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var yr,jn,gs,ip,RS=(ip=class extends el{constructor(){super();ee(this,yr);ee(this,jn);ee(this,gs);B(this,gs,e=>{if(!tl&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,jn)||this.setEventListener(C(this,gs))}onUnsubscribe(){var e;this.hasListeners()||((e=C(this,jn))==null||e.call(this),B(this,jn,void 0))}setEventListener(e){var n;B(this,gs,e),(n=C(this,jn))==null||n.call(this),B(this,jn,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){C(this,yr)!==e&&(B(this,yr,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,912 bytes, line 72
72this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof C(this,yr)=="boolean"?C(this,yr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},yr=new WeakMap,jn=new WeakMap,gs=new WeakMap,ip),Qv=new RS,vs,Nn,ys,ap,OS=(ap=class extends el{constructor(){super();ee(this,vs,!0);ee(this,Nn);ee(this,ys);B(this,ys,e=>{if(!tl&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Nn)||this.setEventListener(C(this,ys))}onUnsubscribe(){var e;this.hasListeners()||((e=C(this,Nn))==null||e.call(this),B(this,Nn,void 0))}setEventListener(e){var n;B(this,ys,e),(n=C(this,Nn))==null||n.call(this),B(this,Nn,e(this.setOnline.bind(this)))}setOnline(e){C(this,vs)!==e&&(B(this,vs,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return C(this,vs)}},vs=new WeakMap,Nn=new WeakMap,ys=new WeakMap,ap),ka=new OS;function AS(){let t,e;const n=new Promise((s,o)=>{t=s,e=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}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function jS(t){return Math.min(1e3*2**t,3e4)}function Gv(t){return(t??"online")==="online"?ka.isOnline():!0}var Jv=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Hl(t){return t instanceof Jv}function Yv(t){let e=!1,n=0,r=!1,s;const o=AS(),i=v=>{var w;r||(h(new Jv(v)),(w=t.abort)==null||w.call(t))},a=()=>{e=!0},l=()=>{e=!1},u=()=>Qv.isFocused()&&(t.networkMode==="always"||ka.isOnline())&&t.canRun(),c=()=>Gv(t.networkMode)&&t.canRun(),d=v=>{var w;r||(r=!0,(w=t.onSuccess)==null||w.call(t,v),s==null||s(),o.resolve(v))},h=v=>{var w;r||(r=!0,(w=t.onError)==null||w.call(t,v),s==null||s(),o.reject(v))},f=()=>new Promise(v=>{var w;s=g=>{(r||u())&&v(g)},(w=t.onPause)==null||w.call(t)}).then(()=>{var v;s=void 0,r||(v=t.onContinue)==null||v.call(t)}),_=()=>{if(r)return;let v;const w=n===0?t.initialPromise:void 0;try{v=w??t.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(d).catch(g=>{var E;if(r)return;const p=t.retry??(tl?0:3),m=t.retryDelay??jS,x=typeof m=="function"?m(n,g):m,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,g);if(e||!S){h(g);return}n++,(E=t.onFail)==null||E.call(t,n,g),kS(x).then(()=>u()?void 0:f()).then(()=>{e?h(g):_()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?_():f().then(_),o)}}var NS=t=>setTimeout(t,0);function LS(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=NS;const o=a=>{e?t.push(a):s(()=>{n(a)})},i=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var We=LS(),wr,lp,Xv=(lp=class{constructor(){ee(this,wr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bS(this.gcTime)&&B(this,wr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(tl?1/0:5*60*1e3))}clearGcTimeout(){C(this,wr)&&(clearTimeout(C(this,wr)),B(this,wr,void 0))}},wr=new WeakMap,lp),ws,_r,ct,xr,De,qo,br,Ct,Yt,up,IS=(up=class extends Xv{constructor(e){super();ee(this,Ct);ee(this,ws);ee(this,_r);ee(this,ct);ee(this,xr);ee(this,De);ee(this,qo);ee(this,br);B(this,br,!1),B(this,qo,e.defaultOptions),this.setOptions(e.options),this.observers=[],B(this,xr,e.client),B(this,ct,C(this,xr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,B(this,ws,DS(this.options)),this.state=e.state??C(this,ws),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=C(this,De))==null?void 0:e.promise}setOptions(e){this.options={...C(this,qo),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,ct).remove(this)}setData(e,n){const r=CS(this.state.data,e,this.options);return Le(this,Ct,Yt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Le(this,Ct,Yt).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=C(this,De))==null?void 0:r.promise;return(s=C(this,De))==null||s.cancel(e),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,ws))}isActive(){return this.observers.some(e=>ES(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jd||this.state.dataUpdateCount+this.state.errorUpdate
72Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>sc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!SS(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=C(this,De))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=C(this,De))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),C(this,ct).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(C(this,De)&&(C(this,br)?C(this,De).cancel({revert:!0}):C(this,De).cancelRetry()),this.scheduleGc()),C(this,ct).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Ct,Yt).call(this,{type:"invalidate"})}fetch(e,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,De))return C(this,De).continueRetry(),C(this,De).promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(B(this,br,!0),r.signal)})},o=()=>{const h=qv(this.options,n),_=(()=>{const v={client:C(this,xr),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return B(this,br,!1),this.options.persister?this.options.persister(h,_,this):h(_)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,xr),state:this.state,fetchFn:o};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),B(this,_r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Le(this,Ct,Yt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,_,v,w;Hl(h)&&h.silent||Le(this,Ct,Yt).call(this,{type:"error",error:h}),Hl(h)||((_=(f=C(this,ct).config).onError)==null||_.call(f,h,this),(w=(v=C(this,ct).config).onSettled)==null||w.call(v,this.state.data,h,this)),this.scheduleGc()};return B(this,De,Yv({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,_,v,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){l(g);return}(_=(f=C(this,ct).config).onSuccess)==null||_.call(f,h,this),(w=(v=C(this,ct).config).onSettled)==null||w.call(v,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{Le(this,Ct,Yt).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Le(this,Ct,Yt).call(this,{type:"pause"})},onContinue:()=>{Le(this,Ct,Yt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,De).start()}},ws=new WeakMap,_r=new WeakMap,ct=new WeakMap,xr=new WeakMap,De=new WeakMap,qo=new WeakMap,br=new WeakMap,Ct=new WeakSet,Yt=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...$S(r.data,this.options),fetchMeta:e.meta??null};case"success":return B(this,_r,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return Hl(s)&&s.revert&&C(this,_r)?{...C(this,_r),fetchStatus:"idle"}
vendor: 4,595 bytes, line 72
72:{...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,...e.state}}};this.state=n(this.state),We.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,ct).notify({query:this,type:"updated",action:e})})},up);function $S(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gv(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function DS(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 Ft,cp,MS=(cp=class extends el{constructor(e={}){super();ee(this,Ft);this.config=e,B(this,Ft,new Map)}build(e,n,r){const s=n.queryKey,o=n.queryHash??Ad(s,n);let i=this.get(o);return i||(i=new IS({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(i)),i}add(e){C(this,Ft).has(e.queryHash)||(C(this,Ft).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=C(this,Ft).get(e.queryHash);n&&(e.destroy(),n===e&&C(this,Ft).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){We.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return C(this,Ft).get(e)}getAll(){return[...C(this,Ft).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Oh(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Oh(e,r)):n}notify(e){We.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){We.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ft=new WeakMap,cp),zt,ze,Sr,Bt,kn,dp,US=(dp=class extends Xv{constructor(e){super();ee(this,Bt);ee(this,zt);ee(this,ze);ee(this,Sr);this.mutationId=e.mutationId,B(this,ze,e.mutationCache),B(this,zt,[]),this.state=e.state||FS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){C(this,zt).includes(e)||(C(this,zt).push(e),this.clearGcTimeout(),C(this,ze).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){B(this,zt,C(this,zt).filter(n=>n!==e)),this.scheduleGc(),C(this,ze).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){C(this,zt).length||(this.state.status==="pending"?this.scheduleGc():C(this,ze).remove(this))}continue(){var e;return((e=C(this,Sr))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,i,a,l,u,c,d,h,f,_,v,w,g,p,m,x,S,E,k,R;const n=()=>{Le(this,Bt,kn).call(this,{type:"continue"})};B(this,Sr,Yv({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(N,j)=>{Le(this,Bt,kn).call(this,{type:"failed",failureCount:N,error:j})},onPause:()=>{Le(this,Bt,kn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,ze).canRun(this)}));const r=this.state.status==="pending",s=!C(this,Sr).canStart();try{if(r)n();else{Le(this,Bt,kn).call(this,{type:"pending",variables:e,isPaused:s}),await((i=(o=C(this,ze).config).onMutate)==null?void 0:i.call(o,e,this));const j=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));j!==this.state.context&&Le(this,Bt,kn).call(this,{type:"pending",context:j,variables:e,isPaused:s})}const N=await C(this,Sr).start();return await((c=(u=C(this,ze).config).onSuccess)==null?void 0:c.call(u,N,e,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,N,e,this.state.context)),await((_=(f=C(this,ze).config).onSettled)==null?void 0:_.call(f,N,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,N,null,e,this.state.context)),Le(this,Bt,kn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((p=(g=C(this,ze).config).onError)==null?void 0:p.call(g,N,e,this.state.context,this)),await((x=(m=this.options).onError)==null?void 0:x.call(m,N,e,this.state.context)),await((E=(S=C(this,ze).config).onSettled)==null?void 0:E.
72call(S,void 0,N,this.state.variables,this.state.context,this)),await((R=(k=this.options).onSettled)==null?void 0:R.call(k,void 0,N,e,this.state.context)),N}finally{Le(this,Bt,kn).call(this,{type:"error",error:N})}}finally{C(this,ze).runNext(this)}}},zt=new WeakMap,ze=new WeakMap,Sr=new WeakMap,Bt=new WeakSet,kn=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),We.batch(()=>{C(this,zt).forEach(r=>{r.onMutationUpdate(e)}),C(this,ze).notify({mutation:this,type:"updated",action:e})})},dp);function FS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nn,Tt,Qo,fp,zS=(fp=class extends el{constructor(e={}){super();ee(this,nn);ee(this,Tt);ee(this,Qo);this.config=e,B(this,nn,new Set),B(this,Tt,new Map),B(this,Qo,0)}build(e,n,r){const s=new US({mutationCache:this,mutationId:++li(this,Qo)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){C(this,nn).add(e);const n=Oi(e);if(typeof n=="string"){const r=C(this,Tt).get(n);r?r.push(e):C(this,Tt).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(C(this,nn).delete(e)){const n=Oi(e);if(typeof n=="string"){const r=C(this,Tt).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&C(this,Tt).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Oi(e);if(typeof n=="string"){const r=C(this,Tt).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=Oi(e);if(typeof n=="string"){const s=(r=C(this,Tt).get(n))==null?void 0:r.find(o=>o!==e&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){We.batch(()=>{C(this,nn).forEach(e=>{this.notify({type:"removed",mutation:e})}),C(this,nn).clear(),C(this,Tt).clear()})}getAll(){return Array.from(C(this,nn))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Ah(n,r))}findAll(e={}){return this.getAll().filter(n=>Ah(e,n))}notify(e){We.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return We.batch(()=>Promise.all(e.map(n=>n.continue().catch(kt))))}},nn=new WeakMap,Tt=new WeakMap,Qo=new WeakMap,fp);function Oi(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Lh(t){return{onFetch:(e,n)=>{var c,d,h,f,_;const r=e.options,s=(h=(d=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((f=e.state.data)==null?void 0:f.pages)||[],i=((_=e.state.data)==null?void 0:_.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const w=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(e.signal.aborted?v=!0:e.signal.addEventListener("abort",()=>{v=!0}),e.signal)})},g=qv(e.options,e.fetchOptions),p=async(m,x,S)=>{if(v)return Promise.reject();if(x==null&&m.pages.length)return Promise.resolve(m);const k=(()=>{const U={client:e.client,queryKey:e.queryKey,pageParam:x,direction:S?"backward":"forward",meta:e.options.meta};return w(U),U})(),R=await g(k),{maxPages:N}=e.options,j=S?PS:TS;return{pages:j(m.pages,R,N),pageParams:j(m.pageParams,x,N)}};if(s&&o.length){const m=s==="backward",x=m?BS:Ih,S={pages:o,pageParams:i},E=x(r,S);a=await p(S,E,m)}else{const m=t??o.length;do{const x=l===0?i[0]??r.initialPageParam:Ih(r,a);if(l>0&&x==null)break;a=await p(a,x),l++}while(l<m)}return a};e.options.persister?e.fetchFn=()=>{var v,w;return(w=(v=e.options).persister)==null?void 0:w.call(v,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function Ih(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function BS(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var ve,Ln,In,_s,xs,$n,bs,Ss,hp,WS=(hp=class{constructor(t={}){ee(this,ve);ee(this,Ln);ee(this,In);ee(this,_s);ee(this,xs);ee(this,$n);ee(this,bs);ee(this,Ss);B(this,ve,t.queryCache||new MS),B(this,Ln,t.mutationCache||new zS),B(this,In,t.defaultOptions||{}),B(this,_s,new Map),B(this,xs,new Map),B(this,$n,0)}mount(){li(this,$n)._++,C(this,$n)===1&&(B(this,bs,Qv.subscribe(async t=>{t&&(await this.resumePausedMutations(),C(this,ve).onFocus())})),B(this,Ss,ka.subscribe(async t=>{t&&(await this.resumePausedMutations(),C(this,ve).onOnline())})))}unmount(){var t,e;li(this,$n)._--,C(this,$n)===0&&((t=C(this,bs))==null||t.call(this),B(this,bs,void 0),(e=C(this,Ss))==null||e.call(this),B(this,Ss,void 0))}isFetching(t){return C(this,ve).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return C(this,Ln).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=C(this,ve).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=C(this,ve).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(sc(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return C(this,ve).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=C(this,ve).get(r.queryHash),o=s==null?void 0:s.state.data,i=xS(e,o);if(i!==void 0)return C(this,ve).build(this,r).setData(i,{...n,manual:!0})}
72setQueriesData(t,e,n){return We.batch(()=>C(this,ve).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=C(this,ve).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=C(this,ve);We.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=C(this,ve);return We.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=We.batch(()=>C(this,ve).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(t,e={}){return We.batch(()=>(C(this,ve).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=We.batch(()=>C(this,ve).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(kt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(kt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=C(this,ve).build(this,e);return n.isStaleByTime(sc(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(kt).catch(kt)}fetchInfiniteQuery(t){return t.behavior=Lh(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(kt).catch(kt)}ensureInfiniteQueryData(t){return t.behavior=Lh(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ka.isOnline()?C(this,Ln).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ve)}getMutationCache(){return C(this,Ln)}getDefaultOptions(){return C(this,In)}setDefaultOptions(t){B(this,In,t)}setQueryDefaults(t,e){C(this,_s).set(Bo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...C(this,_s).values()],n={};return e.forEach(r=>{Wo(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){C(this,xs).set(Bo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...C(this,xs).values()],n={};return e.forEach(r=>{Wo(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...C(this,In).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Ad(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===jd&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...C(this,In).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){C(this,ve).clear(),C(this,Ln).clear()}},ve=new WeakMap,Ln=new WeakMap,In=new WeakMap,_s=new WeakMap,xs=new WeakMap,$n=new WeakMap,bs=new WeakMap,Ss=new WeakMap,hp),VS=y.createContext(void 0),HS=({client:t,children:e})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),b.jsx(VS.Provider,{value:t,children:e}));/**
73 * @remix-run/router v1.23.0
74 *
75 * Copyright (c) Remix Software Inc.
76 *
77 * This source code is licensed under the MIT license found in the
78 * LICENSE.md file in the root directory of this source tree.
79 *
80 * @license MIT
81 */function Vo(){return Vo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Vo.apply(this,arguments)}var Un;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Un||(Un={}));const $h="popstate";function KS(t){t===void 0&&(t={});function e(r,s){let{pathname:o,search:i,hash:a}=r.location;return ic("",{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:Ca(s)}return QS(e,n,null,t)}function _e(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Zv(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function qS(){return Math.random().toString(36).substr(2,8)}function Dh(t,e){return{usr:t.state,key:t.key,idx:e}}function ic(t,e,n,r){return n===void 0&&(n=null),Vo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Fs(e):e,{state:n,key:e&&e.key||r||qS()})}function Ca(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Fs(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function QS(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Un.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Vo({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=Un.Pop;let w=c(),g=w==null?null:w-u;u=w,l&&l({action:a,location:v.location,delta:g})}function h(w,g){a=Un.Push;let p=ic(v.location,w,g);u=c()+1;let m=Dh(p,u),x=v.createHref(p);try{i.pushState(m,"",x)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(x)}o&&l&&l({action:a,location:v.location,delta:1})}function f(w,g){a=Un.Replace;let p=ic(v.location,w,g);u=c();let m=Dh(p,u),x=v.createHref(p);i.replaceState(m,"",x),o&&l&&l({action:a,location:v.location,delta:0})}function _(w){let g=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof w=="string"?w:Ca(w);
vendor: 2,909 bytes, line 81
81return p=p.replace(/ $/,"%20"),_e(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let v={get action(){return a},get location(){return t(s,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener($h,d),l=w,()=>{s.removeEventListener($h,d),l=null}},createHref(w){return e(s,w)},createURL:_,encodeLocation(w){let g=_(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:f,go(w){return i.go(w)}};return v}var Mh;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mh||(Mh={}));function GS(t,e,n){return n===void 0&&(n="/"),JS(t,e,n,!1)}function JS(t,e,n,r){let s=typeof e=="string"?Fs(e):e,o=Nd(s.pathname||"/",n);if(o==null)return null;let i=ey(t);YS(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=lE(o);a=iE(i[l],u,r)}return a}function ey(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(_e(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Qn([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(_e(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ey(o.children,e,c,u)),!(o.path==null&&!o.index)&&e.push({path:u,score:sE(u,o.index),routesMeta:c})};return t.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of ty(o.path))s(o,i,l)}),e}function ty(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=ty(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function YS(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:oE(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const XS=/^:[\w-]+$/,ZS=3,eE=2,tE=1,nE=10,rE=-2,Uh=t=>t==="*";function sE(t,e){let n=t.split("/"),r=n.length;return n.some(Uh)&&(r+=rE),e&&(r+=eE),n.filter(s=>!Uh(s)).reduce((s,o)=>s+(XS.test(o)?ZS:o===""?tE:nE),r)}function oE(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function iE(t,e,n){let{routesMeta:r}=t,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?e:e.slice(o.length)||"/",d=Fh({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Fh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
vendor: 9,263 bytes, lines 81-90
81Object.assign(s,d.params),i.push({params:s,pathname:Qn([o,d.pathname]),pathnameBase:fE(Qn([o,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(o=Qn([o,d.pathnameBase]))}return i}function Fh(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=aE(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:h,isOptional:f}=c;if(h==="*"){let v=a[d]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const _=a[d];return f&&!_?u[h]=void 0:u[h]=(_||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:t}}function aE(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Zv(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function lE(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Zv(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Nd(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function uE(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?Fs(t):t;return{pathname:n?n.startsWith("/")?n:cE(n,e):e,search:hE(r),hash:pE(s)}}function cE(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Kl(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 dE(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Ld(t,e){let n=dE(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Id(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=Fs(t):(s=Vo({},t),_e(!s.pathname||!s.pathname.includes("?"),Kl("?","pathname","search",s)),_e(!s.pathname||!s.pathname.includes("#"),Kl("#","pathname","hash",s)),_e(!s.search||!s.search.includes("#"),Kl("#","search","hash",s)));let o=t===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let d=e.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=uE(s,a),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Qn=t=>t.join("/").replace(/\/\/+/g,"/"),fE=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),hE=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,pE=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function mE(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const ny=["post","put","patch","delete"];new Set(ny);const gE=["get",...ny];new Set(gE);/**
82 * React Router v6.30.1
83 *
84 * Copyright (c) Remix Software Inc.
85 *
86 * This source code is licensed under the MIT license found in the
87 * LICENSE.md file in the root directory of this source tree.
88 *
89 * @license MIT
90 */function Ho(){return Ho=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ho.apply(this,arguments)}const $d=y.createContext(null),vE=y.createContext(null),sr=y.createContext(null),nl=y.createContext(null),pn=y.createContext({outlet:null,matches:[],isDataRoute:!1}),ry=y.createContext(null);function yE(t,e){let{relative:n}=e===void 0?{}:e;zs()||_e(!1);let{basename:r,navigator:s}=y.useContext(sr),{hash:o,pathname:i,search:a}=oy(t,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Qn([r,i])),s.createHref({pathname:l,search:a,hash:o})}function zs(){return y.useContext(nl)!=null}function Bs(){return zs()||_e(!1),y.useContext(nl).location}function sy(t){y.useContext(sr).static||y.useLayoutEffect(t)}function Dd(){let{isDataRoute:t}=y.useContext(pn);return t?AE():wE()}function wE(){zs()||_e(!1);let t=y.useContext($d),{basename:e,future:n,navigator:r}=y.useContext(sr),{matches:s}=y.useContext(pn),{pathname:o}=Bs(),i=JSON.stringify(Ld(s,n.v7_relativeSplatPath)),a=y.useRef(!1);return sy(()=>{a.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Id(u,JSON.parse(i),o,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Qn([e,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[e,r,i,o,t])}function BT(){let{matches:t}=y.useContext(pn),e=t[t.length-1];return e?e.params:{}}function oy(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=y.useContext(sr),{matches:s}=y.useContext(pn),{pathname:o}=Bs(),i=JSON.stringify(Ld(s,r.v7_relativeSplatPath));return y.useMemo(()=>Id(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}function _E(t,e){return xE(t,e)}function xE(t,e,n,r){zs()||_e(!1);let{navigator:s}=y.useContext(sr),{matches:o}=y.useContext(pn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Bs(),c;if(e){var d;let w=typeof e=="string"?Fs(e):e;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||_e(!1),c=w}else c=u;let h=c.pathname||"/",f=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let _=GS(t,{pathname:f}),v=CE(_&&_.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Qn([l,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Qn([l,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return e&&v?y.createElement(nl.Provider,{value:{location:Ho({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Un.Pop}},v):v}function bE(){let t=OE(),e=mE(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},e),n?y.createElement("pre",{style:s},n):null,null)}const SE=y.createElement(bE,null);class EE extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?y.createElement(pn.Provider,{value:this.props.routeContext},y.createElement(ry.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kE(t){let{routeContext:e,match:n,children:r}=t,s=y.useContext($d);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(pn.Provider,{value:e},r)}function CE(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,a=(s=n)==null?void 0:s.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||_e(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:h,errors:f}=n,_=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||_){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,h)=>{let f,_=!1,v=null,w=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||SE,l&&(u<0&&h===0?(_=!0,w=null):u===h&&(_=!0,w=d.route.hydrateFallbackElement||null)));let g=e.concat(i.slice(0,h+1)),p=()=>{let m;return f?m=v:_?m=w:d.route.Component?m=y.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=c,y.createElement(kE,{match:d,routeC
90ontext:{outlet:c,matches:g,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?y.createElement(EE,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var iy=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(iy||{}),Ta=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ta||{});function TE(t){let e=y.useContext($d);return e||_e(!1),e}function PE(t){let e=y.useContext(vE);return e||_e(!1),e}function RE(t){let e=y.useContext(pn);return e||_e(!1),e}function ay(t){let e=RE(),n=e.matches[e.matches.length-1];return n.route.id||_e(!1),n.route.id}function OE(){var t;let e=y.useContext(ry),n=PE(Ta.UseRouteError),r=ay(Ta.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function AE(){let{router:t}=TE(iy.UseNavigateStable),e=ay(Ta.UseNavigateStable),n=y.useRef(!1);return sy(()=>{n.current=!0}),y.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,Ho({fromRouteId:e},o)))},[t,e])}function jE(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function WT(t){let{to:e,replace:n,state:r,relative:s}=t;zs()||_e(!1);let{future:o,static:i}=y.useContext(sr),{matches:a}=y.useContext(pn),{pathname:l}=Bs(),u=Dd(),c=Id(e,Ld(a,o.v7_relativeSplatPath),l,s==="path"),d=JSON.stringify(c);return y.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:s}),[u,d,s,n,r]),null}function de(t){_e(!1)}function NE(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Un.Pop,navigator:o,static:i=!1,future:a}=t;zs()&&_e(!1);let l=e.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:o,static:i,future:Ho({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=Fs(r));let{pathname:c="/",search:d="",hash:h="",state:f=null,key:_="default"}=r,v=y.useMemo(()=>{let w=Nd(c,l);return w==null?null:{location:{pathname:w,search:d,hash:h,state:f,key:_},navigationType:s}},[l,c,d,h,f,_,s]);return v==null?null:y.createElement(sr.Provider,{value:u},y.createElement(nl.Provider,{children:n,value:v}))}function LE(t){let{children:e,location:n}=t;return _E(ac(e),n)}new Promise(()=>{});function ac(t,e){e===void 0&&(e=[]);let n=[];return y.Children.forEach(t,(r,s)=>{if(!y.isValidElement(r))return;let o=[...e,s];if(r.type===y.Fragment){n.push.apply(n,ac(r.props.children,o));return}r.type!==de&&_e(!1),!r.props.index||!r.props.children||_e(!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=ac(r.props.children,o)),n.push(i)}),n}/**
91 * React Router DOM v6.30.1
92 *
93 * Copyright (c) Remix Software Inc.
94 *
95 * This source code is licensed under the MIT license found in the
96 * LICENSE.md file in the root directory of this source tree.
97 *
98 * @license MIT
99 */function lc(){return lc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lc.apply(this,arguments)}function IE(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function $E(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function DE(t,e){return t.button===0&&(!e||e==="_self")&&!$E(t)}function uc(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function ME(t,e){let n=uc(t);return e&&e.forEach((r,s)=>
99{n.has(s)||e.getAll(s).forEach(o=>{n.append(s,o)})}),n}const UE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FE="6";try{window.__reactRouterVersion=FE}catch{}const zE="startTransition",zh=kp[zE];function BE(t){let{basename:e,children:n,future:r,window:s}=t,o=y.useRef();o.current==null&&(o.current=KS({window:s,v5Compat:!0}));let i=o.current,[a,l]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&zh?zh(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>i.listen(c),[i,c]),y.useEffect(()=>jE(r),[r]),y.createElement(NE,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const WE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,VT=y.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=e,h=IE(e,UE),{basename:f}=y.useContext(sr),_,v=!1;if(typeof u=="string"&&VE.test(u)&&(_=u,WE))try{let m=new URL(window.location.href),x=u.startsWith("//")?new URL(m.protocol+u):new URL(u),S=Nd(x.pathname,f);x.origin===m.origin&&S!=null?u=S+x.search+x.hash:v=!0}catch{}let w=yE(u,{relative:s}),g=HE(u,{replace:i,state:a,target:l,preventScrollReset:c,relative:s,viewTransition:d});function p(m){r&&r(m),m.defaultPrevented||g(m)}return y.createElement("a",lc({},h,{href:_||w,onClick:v||o?r:p,ref:n,target:l}))});var Bh;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Bh||(Bh={}));var Wh;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Wh||(Wh={}));function HE(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=e===void 0?{}:e,l=Dd(),u=Bs(),c=oy(t,{relative:i});return y.useCallback(d=>{if(DE(d,n)){d.preventDefault();let h=r!==void 0?r:Ca(u)===Ca(c);l(t,{replace:h,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[u,l,c,r,s,n,t,o,i,a])}function HT(t){let e=y.useRef(uc(t)),n=y.useRef(!1),r=Bs(),s=y.useMemo(()=>ME(r.search,n.current?null:e.current),[r.search]),o=Dd(),i=y.useCallback((a,l)=>{const u=uc(typeof a=="function"?a(s):a);n.current=!0,o("?"+u,l)},[o,s]);return[s,i]}const KE=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>se(async()=>{const{default:r}=await Promise.resolve().then(()=>Ws);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)};class Md extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class qE extends Md{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Vh extends Md{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Hh extends Md{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var cc;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(cc||(cc={}));var QE=function(t,e,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(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class GE{constructor(e,{headers:n={},customFetch:r,region:s=cc.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=KE(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,n={}){var r;return QE(this,void 0,void 0,function*(){try{const{headers:s,method:o,body:i}=n;let a={},{region:l}=n;l||(l=this.region);const u=new URL(`${this.url}/${e}`);l&&l!=="any"&&(a["x-region"]=l,u.searchParams.set("forceFunctionRegion",l));let c;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",c=i):typeof i=="string"?(a["Content-Type"]="text/plain",c=i):typeof FormData<"u"&&i instanceof FormData?c=i:(a["Content-Type"]="application/json",c=JSON.stringify(i)));const d=yield this.fetch(u.toString(),{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:c}
99).catch(v=>{throw new qE(v)}),h=d.headers.get("x-relay-error");if(h&&h==="true")throw new Vh(d);if(!d.ok)throw new Hh(d);let f=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),_;return f==="application/json"?_=yield d.json():f==="application/octet-stream"?_=yield d.blob():f==="text/event-stream"?_=d:f==="multipart/form-data"?_=yield d.formData():_=yield d.text(),{data:_,error:null,response:d}}catch(s){return{data:null,error:s,response:s instanceof Hh||s instanceof Vh?s.context:void 0}}})}}var Ge={},Ud={},rl={},ri={},sl={},ol={},JE=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")},Ns=JE();const YE=Ns.fetch,ly=Ns.fetch.bind(Ns),uy=Ns.Headers,XE=Ns.Request,ZE=Ns.Response,Ws=Object.freeze(Object.defineProperty({__proto__:null,Headers:uy,Request:XE,Response:ZE,default:ly,fetch:YE},Symbol.toStringTag,{value:"Module"})),ek=By(Ws);var il={};Object.defineProperty(il,"__esModule",{value:!0});let tk=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
99de=e.code}};il.default=tk;var cy=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ol,"__esModule",{value:!0});const nk=cy(ek),rk=cy(il);let sk=class{constructor(e){var n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(n=e.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=nk.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=new Headers(this.headers),this.headers.set(e,n),this}then(e,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("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,l,u;let c=null,d=null,h=null,f=o.status,_=o.statusText;if(o.ok){if(this.method!=="HEAD"){const p=await o.text();p===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((i=this.headers.get("Accept"))===null||i===void 0)&&i.includes("application/vnd.pgrst.plan+text"))?d=p:d=JSON.parse(p))}const w=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),g=(l=o.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");w&&g&&g.length>1&&(h=parseInt(g[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={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,h=null,f=406,_="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const w=await o.text();try{c=JSON.parse(w),Array.isArray(c)&&o.status===404&&(d=[],c=null,f=200,_="OK")}catch{o.status===404&&w===""?(f=204,_="No Content"):c={message:w}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,f=200,_="OK"),c&&this.shouldThrowOnError)throw new rk.default(c)}return{error:c,data:d,count:h,status:f,statusText:_}});return this.shouldThrowOnError||(s=s.catch(o=>{var i,a,l;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:`${(l=o==null?void 0:o.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(e,n)}returns(){return this}overrideTypes(){return this}};ol.default=sk;var ok=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sl,"__esModule",{value:!0});const ik=ok(ol);let ak=class extends ik.default{select(e){let n=!1;const r=(e??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{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},`:""}${e}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,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,`${e}`),this.url.searchParams.set(i,`${n-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
99explain({analyze:e=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:o=!1,format:i="text"}={}){var a;const l=[e?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${u}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};sl.default=ak;var lk=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ri,"__esModule",{value:!0});const uk=lk(sl);let ck=class extends uk.default{eq(e,n){return this.url.searchParams.append(e,`eq.${n}`),this}neq(e,n){return this.url.searchParams.append(e,`neq.${n}`),this}gt(e,n){return this.url.searchParams.append(e,`gt.${n}`),this}gte(e,n){return this.url.searchParams.append(e,`gte.${n}`),this}lt(e,n){return this.url.searchParams.append(e,`lt.${n}`),this}lte(e,n){return this.url.searchParams.append(e,`lte.${n}`),this}like(e,n){return this.url.searchParams.append(e,`like.${n}`),this}likeAllOf(e,n){return this.url.searchParams.append(e,`like(all).{${n.join(",")}}`),this}likeAnyOf(e,n){return this.url.searchParams.append(e,`like(any).{${n.join(",")}}`),this}ilike(e,n){return this.url.searchParams.append(e,`ilike.${n}`),this}ilikeAllOf(e,n){return this.url.searchParams.append(e,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(e,n){return this.url.searchParams.append(e,`ilike(any).{${n.join(",")}}`),this}is(e,n){return this.url.searchParams.append(e,`is.${n}`),this}in(e,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(e,`in.(${r})`),this}contains(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cs.{${n.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(n)}`),this}containedBy(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cd.{${n.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(n)}`),this}rangeGt(e,n){return this.url.searchParams.append(e,`sr.${n}`),this}rangeGte(e,n){return this.url.searchParams.append(e,`nxl.${n}`),this}rangeLt(e,n){return this.url.searchParams.append(e,`sl.${n}`),this}rangeLte(e,n){return this.url.searchParams.append(e,`nxr.${n}`),this}rangeAdjacent(e,n){return this.url.searchParams.append(e,`adj.${n}`),this}overlaps(e,n){return typeof n=="string"?this.url.searchParams.append(e,`ov.${n}`):this.url.searchParams.append(e,`ov.{${n.join(",")}}`),this}textSearch(e,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(e,`${o}fts${i}.${n}`),this}match(e){return Object.entries(e).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(e,n,r){return this.url.searchParams.append(e,`not.${n}.${r}`),this}or(e,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,n,r){return this.url.searchParams.append(e,`${n}.${r}`),this}};ri.default=ck;var dk=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rl,"__esModule",{value:!0});const ro=dk(ri);let fk=class{constructor(e,{headers:n={},schema:r,fetch:s}){this.url=e,this.headers=new Headers(n),this.schema=r,this.fetch=s}select(e,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let o=!1;const i=(e??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),r&&this.headers.append("Prefer",`count=${r}`),new ro.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:n,defaultToNull:r=!0}={}){var s;const o="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const i=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
990){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new ro.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(e,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:o=!0}={}){var i;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),s&&this.headers.append("Prefer",`count=${s}`),o||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new ro.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:n}={}){var r;const s="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new ro.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var n;const r="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new ro.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};rl.default=fk;var dy=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ud,"__esModule",{value:!0});const hk=dy(rl),pk=dy(ri);let mk=class fy{constructor(e,{headers:n={},schema:r,fetch:s}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(e){const n=new URL(`${this.url}/${e}`);return new hk.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new fy(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,n={},{head:r=!1,get:s=!1,count:o}={}){var i;let a;const l=new URL(`${this.url}/rpc/${e}`);let u;r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{l.searchParams.append(d,h)})):(a="POST",u=n);const c=new Headers(this.headers);return o&&c.set("Prefer",`count=${o}`),new pk.default({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};Ud.default=mk;var Vs=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.PostgrestError=Ge.PostgrestBuilder=Ge.PostgrestTransformBuilder=Ge.PostgrestFilterBuilder=Ge.PostgrestQueryBuilder=Ge.PostgrestClient=void 0;const hy=Vs(Ud);Ge.PostgrestClient=hy.default;const py=Vs(rl);Ge.PostgrestQueryBuilder=py.default;const my=Vs(ri);Ge.PostgrestFilterBuilder=my.default;const gy=Vs(sl);Ge.PostgrestTransformBuilder=gy.default;const vy=Vs(ol);Ge.PostgrestBuilder=vy.default;const yy=Vs(il);Ge.PostgrestError=yy.default;var gk=Ge.default={PostgrestClient:hy.default,PostgrestQueryBuilder:py.default,PostgrestFilterBuilder:my.default,PostgrestTransformBuilder:gy.default,PostgrestBuilder:vy.default,PostgrestError:yy.default};const{PostgrestClient:vk,PostgrestQueryBuilder:YT,PostgrestFilterBuilder:XT,PostgrestTransformBuilder:ZT,PostgrestBuilder:eP,PostgrestError:tP}=gk;class yk{static detectEnvironment(){var e;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"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.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"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
100import ws from "ws"
101new RealtimeClient(url, { transport: 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 e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
102
103Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const wk="2.15.5",_k=`realtime-js/${wk}`,xk="1.0.0",dc=1e4,bk=1e3,Sk=100;var _o;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(_o||(_o={}));var Se;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Se||(Se={}));var Rt;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(Rt||(Rt={}));var fc;(function(t){t.websocket="websocket"})(fc||(fc={}));var pr;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(pr||(pr={}));class Ek{constructor(){this.HEADER_LENGTH=1}decode(e,n){return e.constructor===ArrayBuffer?n(this._binaryDecode(e)):n(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const n=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,n,r)}_decodeBroadcast(e,n,r){const s=n.getUint8(1),o=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(e.slice(i,i+s));i=i+s;const l=r.decode(e.slice(i,i+o));i=i+o;const u=JSON.parse(r.decode(e.slice(i,e.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class wy{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,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 oe;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
103srange="tsrange",t.tstzrange="tstzrange"})(oe||(oe={}));const Kh=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(e).reduce((o,i)=>(o[i]=kk(i,t,e,s),o),{})},kk=(t,e,n,r)=>{const s=e.find(a=>a.name===t),o=s==null?void 0:s.type,i=n[t];return o&&!r.includes(o)?_y(o,i):hc(i)},_y=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return Rk(e,n)}switch(t){case oe.bool:return Ck(e);case oe.float4:case oe.float8:case oe.int2:case oe.int4:case oe.int8:case oe.numeric:case oe.oid:return Tk(e);case oe.json:case oe.jsonb:return Pk(e);case oe.timestamp:return Ok(e);case oe.abstime:case oe.date:case oe.daterange:case oe.int4range:case oe.int8range:case oe.money:case oe.reltime:case oe.text:case oe.time:case oe.timestamptz:case oe.timetz:case oe.tsrange:case oe.tstzrange:return hc(e);default:return hc(e)}},hc=t=>t,Ck=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},Tk=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},Pk=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},Rk=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let o;const i=t.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>_y(e,a))}return t},Ok=t=>typeof t=="string"?t.replace(" ","T"):t,xy=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class ql{constructor(e,n,r={},s=dc){this.channel=e,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(e){this.timeout=e,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(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,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:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var qh;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(qh||(qh={}));class xo{constructor(e,n){this.channel=e,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=xo.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=xo.syncDiff(this.state,l,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=xo.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}
103)}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,s){const o=this.cloneDeep(e),i=this.transformState(n),a={},l={};return this.map(o,(u,c)=>{i[u]||(l[u]=c)}),this.map(i,(u,c)=>{const d=o[u];if(d){const h=c.map(w=>w.presence_ref),f=d.map(w=>w.presence_ref),_=c.filter(w=>f.indexOf(w.presence_ref)<0),v=d.filter(w=>h.indexOf(w.presence_ref)<0);_.length>0&&(a[u]=_),v.length>0&&(l[u]=v)}else a[u]=c}),this.syncDiff(o,{joins:a,leaves:l},r,s)}static syncDiff(e,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,l)=>{var u;const c=(u=e[a])!==null&&u!==void 0?u:[];if(e[a]=this.cloneDeep(l),c.length>0){const d=e[a].map(f=>f.presence_ref),h=c.filter(f=>d.indexOf(f.presence_ref)<0);e[a].unshift(...h)}r(a,c,l)}),this.map(i,(a,l)=>{let u=e[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),e[a]=u,s(a,u,l),u.length===0&&delete e[a]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[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(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Qh;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Qh||(Qh={}));var bo;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(bo||(bo={}));var en;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(en||(en={}));class Fd{constructor(e,n={config:{}},r){this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=Se.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.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 ql(this,Rt.join,this.params,this.timeout),this.rejoinTimer=new wy(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Se.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=Se.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Se.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Se.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Se.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Rt.reply,{},(s,o)=>{this._trigger(this._replyEventName(o),s)}),this.presence=new xo(this),this.broadcastEndpointURL=xy(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,n=this.timeout){var r,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==Se.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[bo.PRESENCE]&&this.bindings[bo.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,d={},h={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>e==null?void 0:e(en.CHANNEL_ERROR,f)),this._onClose(()=>e==null?void 0:e(en.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var _;if(this.socket.setAuth(),f===void 0){e==null||e(en.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,w=(_=v==null?void 0:v.length)!==null&&_!==void 0?_:0,g=[];for(let p=0;p<w;p++){const m=v[p],{filter:{event:x,schema:S,table:E,filter:k}}=m,R=f&&f[p];if(R&&R.event===x&&R.schema===S&&R.table===E&&R.filter===k)g.push(Object.assign(Object.assign({},m),{id:R.id}));else{this.unsubscribe(),this.state=Se.errored,e==null||e(en.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,e&&e(en.SUBSCRIBED);return}}).receive("error",f=>{this.state=Se.errored,e==null||e(en.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(en.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}
103on(e,n,r){return this.state===Se.joined&&e===bo.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(e,n,r)}async send(e,n={}){var r,s;if(!this._canPush()&&e.type==="broadcast"){const{event:o,payload:i}=e,l={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,l,(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,l;const u=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Se.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Rt.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new ql(this,Rt.leave,{},e),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(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Se.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new ql(this,e,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>Sk){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var s,o;const i=e.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=Rt;if(r&&[a,l,u,c].indexOf(i)>=0&&r!==this._joinRef())return;let h=this._onMessage(i,n,r);if(n&&!h)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(f=>{var _,v,w;return((_=f.filter)===null||_===void 0?void 0:_.event)==="*"||((w=(v=f.filter)===null||v===void 0?void 0:v.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===i}).map(f=>f.callback(h,r)):(o=this.bindings[i])===null||o===void 0||o.filter(f=>{var _,v,w,g,p,m;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const x=f.id,S=(_=f.filter)===null||_===void 0?void 0:_.event;return x&&((v=n.ids)===null||v===void 0?void 0:v.includes(x))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const x=(p=(g=f==null?void 0:f.filter)===null||g===void 0?void 0:g.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return x==="*"||x===((m=n==null?void 0:n.event)===null||m===void 0?void 0:m.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof h=="object"&&"ids"in h){const _=h.data,{schema:v,table:w,commit_timestamp:g,type:p,errors:m}=_;h=Object.assign(Object.assign({},{schema:v,table:w,commit_timestamp:g,eventType:p,new:{},old:{},errors:m}),this._getPayloadRecords(_))}f.callback(h,r)})}_isClosed(){return this.state===Se.closed}
103_isJoined(){return this.state===Se.joined}_isJoining(){return this.state===Se.joining}_isLeaving(){return this.state===Se.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const s=e.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(e,n){const r=e.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&&Fd.isEqual(s.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(Rt.close,{},e)}_onError(e){this._on(Rt.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Se.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=Kh(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=Kh(e.columns,e.old_record)),n}}const Ql=()=>{},Ai={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Ak=[1e3,2e3,5e3,1e4],jk=1e4,Nk=`
104  addEventListener("message", (e) => {
105    if (e.data.event === "start") {
106      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
107    }
108  });`;class Lk{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=dc,this.transport=null,this.heartbeatIntervalMs=Ai.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ql,this.ref=0,this.reconnectTimer=null,this.logger=Ql,this.conn=null,this.sendBuffer=[],this.serializer=new Ek,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)=>se(async()=>{const{default:a}=await Promise.resolve().then(()=>Ws);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=`${e}/${fc.websocket}`,this.httpEndpoint=xy(e),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=yk.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n}
109
110To use Realtime in Node.js, you need to provide a WebSocket implementation:
111
112Option 1: Use Node.js 22+ which has native WebSocket support
113Option 2: Install and provide the "ws" package:
114
115  npm install ws
116
117  import ws from "ws"
118  const client = new RealtimeClient(url, {
119    ...options,
120    transport: ws
121  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:xk}))}disconnect(e,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")},e?this.conn.close(e,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case _o.connecting:return pr.Connecting;case _o.open:return pr.Open;case _o.closing:return pr.Closing;default:return pr.Closed}}isConnected(){return this.connectionState()===pr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}
121channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new Fd(`realtime:${e}`,n,this);return this.channels.push(o),o}}push(e){const{topic:n,event:r,payload:s,ref:o}=e,i=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(bk,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Ai.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:o,ref:i}=n,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),o),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,o,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="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=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_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(e=>e.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 e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),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(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}
121_triggerChanError(){this.channels.forEach(e=>e._trigger(Rt.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${e}${r}${s}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([Nk],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n;e?n=e: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:_k};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(Rt.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new wy(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Ai.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,s,o,i,a,l,u,c;if(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:dc,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Ai.HEARTBEAT_INTERVAL,this.worker=(o=e==null?void 0:e.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=e==null?void 0:e.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=e==null?void 0:e.heartbeatCallback)!==null&&a!==void 0?a:Ql,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(l=e==null?void 0:e.reconnectAfterMs)!==null&&l!==void 0?l:d=>Ak[d-1]||jk,this.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:(d,h)=>h(JSON.stringify(d)),this.decode=(c=e==null?void 0:e.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}class zd extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Ee(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class Ik extends zd{constructor(e,n,r){super(e),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class pc extends zd{constructor(e,n){super(e),this.name="StorageUnknownError",this.originalError=n}}var $k=function(t,e,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(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const by=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>se(async()=>{const{default:r}=await Promise.resolve().then(()=>Ws);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},Dk=()=>$k(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield se(()=>Promise.resolve().then(()=>Ws),void 0)).Response:Response}),mc=t=>{if(Array.isArray(t))return t.map(n=>mc(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));e[s]=mc(r)}),e},Mk=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var Ir=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
121return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const Gl=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),Uk=(t,e,n)=>Ir(void 0,void 0,void 0,function*(){const r=yield Dk();t instanceof r&&!(n!=null&&n.noResolveJson)?t.json().then(s=>{const o=t.status||500,i=(s==null?void 0:s.statusCode)||o+"";e(new Ik(Gl(s),o,i))}).catch(s=>{e(new pc(Gl(s),s))}):e(new pc(Gl(t),t))}),Fk=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?s:(Mk(r)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),n))};function si(t,e,n,r,s,o){return Ir(this,void 0,void 0,function*(){return new Promise((i,a)=>{t(n,Fk(e,r,s,o)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>Uk(l,a,r))})})}function Pa(t,e,n,r){return Ir(this,void 0,void 0,function*(){return si(t,"GET",e,n,r)})}function Ut(t,e,n,r,s){return Ir(this,void 0,void 0,function*(){return si(t,"POST",e,r,s,n)})}function gc(t,e,n,r,s){return Ir(this,void 0,void 0,function*(){return si(t,"PUT",e,r,s,n)})}function zk(t,e,n,r){return Ir(this,void 0,void 0,function*(){return si(t,"HEAD",e,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Sy(t,e,n,r,s){return Ir(this,void 0,void 0,function*(){return si(t,"DELETE",e,r,s,n)})}var Fe=function(t,e,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(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const Bk={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Gh={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Wk{constructor(e,n={},r,s){this.shouldThrowOnError=!1,this.url=e,this.headers=n,this.bucketId=r,this.fetch=by(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,n,r,s){return Fe(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},Gh),s);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),d=yield(e=="PUT"?gc:Ut)(this.fetch,`${this.url}/object/${c}`,o,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Ee(o))return{data:null,error:o};throw o}})}upload(e,n,r){return Fe(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,n,r)})}uploadToSignedUrl(e,n,r,s){return Fe(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(e),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Gh.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield gc(this.fetch,a.toString(),l,{headers:c});return{data:{path:o,fullPath:d.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Ee(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,n){return Fe(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield Ut(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 zd("No token returned by API");return{data:{signedUrl:i.toString(),path:e,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}update(e,n,r){return Fe(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,n,r)})}move(e,n,r){return Fe(this,void 0,void 0,function*(){try{return{data:yield Ut(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}copy(e,n,r){return Fe(this,void 0,void 0,function*(){try{return{data:{path:(yield Ut(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}createSignedUrl(e,n,r){return Fe(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),o=yield Ut(this.fetch,`${this.url}/object/sign/${s}
121`,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(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}createSignedUrls(e,n,r){return Fe(this,void 0,void 0,function*(){try{const s=yield Ut(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:e},{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(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}download(e,n){return Fe(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(e);return{data:yield(yield Pa(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ee(a))return{data:null,error:a};throw a}})}info(e){return Fe(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{const r=yield Pa(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:mc(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}exists(e){return Fe(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{return yield zk(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r)&&r instanceof pc){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(e,n){const r=this._getFinalPath(e),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",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(e){return Fe(this,void 0,void 0,function*(){try{return{data:yield Sy(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}list(e,n,r){return Fe(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},Bk),n),{prefix:e||""});return{data:yield Ut(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}listV2(e,n){return Fe(this,void 0,void 0,function*(){try{const r=Object.assign({},e);return{data:yield Ut(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}}const Vk="2.12.1",Hk={"X-Client-Info":`storage-js/${Vk}`};var Wr=function(t,e,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(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class Kk{constructor(e,n={},r,s){this.shouldThrowOnError=!1;const o=new URL(e);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({},Hk),n),this.fetch=by(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return Wr(this,void 0,void 0,function*(){try{return{data:yield Pa(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Ee(e))return{data:null,error:e};throw e}})}getBucket(e){return Wr(this,void 0,void 0,function*(){try{return{data:yield Pa(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}createBucket(e,n={public:!1}){return Wr(this,void 0,void 0,function*(){try{return{data:yield Ut(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}updateBucket(e,n){return Wr(this,void 0,void 0,function*(){try{return{data:yield gc(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}emptyBucket(e){return Wr(this,void 0,void 0,function*(){try{return{data:yield Ut(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}deleteBucket(e){return Wr(this,void 0,void 0,function*(){try{return{data:yield Sy(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}}class qk extends Kk{constructor(e,n={},r,s){super(e,n,r,s)}from(e){return new Wk(this.url,this.headers,e,this.fetch)}}const Qk="2.57.4";let lo="";typeof Deno<"u"?lo="deno":typeof document<"u"?lo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?lo="react-native":lo="node";const Gk={"X-Client-Info":`supabase-js-${lo}/${Qk}`},Jk={headers:Gk},Yk={schema:"public"},Xk={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Zk={};var eC=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
121return new(n||(n=Promise))(function(o,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const tC=t=>{let e;return t?e=t:typeof fetch>"u"?e=ly:e=fetch,(...n)=>e(...n)},nC=()=>typeof Headers>"u"?uy:Headers,rC=(t,e,n)=>{const r=tC(n),s=nC();return(o,i)=>eC(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;let u=new s(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(o,Object.assign(Object.assign({},i),{headers:u}))})};var sC=function(t,e,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(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};function oC(t){return t.endsWith("/")?t:t+"/"}function iC(t,e){var n,r;const{db:s,auth:o,realtime:i,global:a}=t,{db:l,auth:u,realtime:c,global:d}=e,h={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),o),realtime:Object.assign(Object.assign({},c),i),storage:{},global:Object.assign(Object.assign(Object.assign({},d),a),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>sC(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}function aC(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(oC(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const Ey="2.71.1",Qr=30*1e3,vc=3,Jl=vc*Qr,lC="http://localhost:9999",uC="supabase.auth.token",cC={"X-Client-Info":`gotrue-js/${Ey}`},yc="X-Supabase-Api-Version",ky={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},dC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,fC=10*60*1e3;class Bd extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function H(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class hC extends Bd{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function pC(t){return H(t)&&t.name==="AuthApiError"}class Cy extends Bd{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class or extends Bd{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class Cn extends or{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function mC(t){return H(t)&&t.name==="AuthSessionMissingError"}class ji extends or{constructor(){super("Auth session or user missing","AuthInvalidToken
121ResponseError",500,void 0)}}class Ni extends or{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Li extends or{constructor(e,n=null){super(e,"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 gC(t){return H(t)&&t.name==="AuthImplicitGrantRedirectError"}class Jh extends or{constructor(e,n=null){super(e,"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 wc extends or{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Yl(t){return H(t)&&t.name==="AuthRetryableFetchError"}class Yh extends or{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class _c extends or{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Xh=` 	
122\r=`.split(""),vC=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Xh.length;e+=1)t[Xh[e].charCodeAt(0)]=-2;for(let e=0;e<Ra.length;e+=1)t[Ra[e].charCodeAt(0)]=e;return t})();function Zh(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Ra[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Ra[r]),e.queuedBits-=6}}function Ty(t,e,n){const r=vC[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function ep(t){const e=[],n=i=>{e.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{_C(i,r,n)};for(let i=0;i<t.length;i+=1)Ty(t.charCodeAt(i),s,o);return e.join("")}function yC(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function wC(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}yC(r,e)}}function _C(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function xC(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)Ty(t.charCodeAt(s),n,r);return new Uint8Array(e)}function bC(t){const e=[];return wC(t,n=>e.push(n)),new Uint8Array(e)}function SC(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>Zh(s,n,r)),Zh(null,n,r),e.join("")}function EC(t){return Math.round(Date.now()/1e3)+t}function kC(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const St=()=>typeof window<"u"&&typeof document<"u",ur={tested:!1,writable:!1},Py=()=>{if(!St())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ur.tested)return ur.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),ur.tested=!0,ur.writable=!0}catch{ur.tested=!0,ur.writable=!1}return ur.writable};function CC(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,o)=>{e[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const Ry=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>se(async()=>{const{default:r}=await Promise.resolve().then(()=>Ws);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},TC=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Gr=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},cr=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},En=async(t,e)=>{await t.removeItem(e)};class al{constructor(){this.promise=new al.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}al.promiseConstructor=Promise;function Xl(t){const e=t.split(".");if(e.length!==3)throw new _c("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!dC.test(e[r]))throw new _c("JWT not in base64url format");return{header:JSON.parse(ep(e[0])),payload:JSON.parse(ep(e[1])),signature:xC(e[2]),raw:{header:e[0],payload:e[1]}}}async function PC(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function RC(t,e){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await t(o);if(!e(o,null,i)){r(i);return}}catch(i){if(!e(o,i)){s(i);return}}})()})}function OC(t){return("0"+t.toString(16)).substr(-2)}function AC(){const e=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(e),Array.from(e,OC).join("")}async function jC(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",
122n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function NC(t){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."),t;const n=await jC(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Vr(t,e,n=!1){const r=AC();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Gr(t,`${e}-code-verifier`,s);const o=await NC(r);return[o,r===o?"plain":"s256"]}const LC=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function IC(t){const e=t.headers.get(yc);if(!e||!e.match(LC))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function $C(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function DC(t){switch(t){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 MC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Hr(t){if(!MC.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Zl(){const t={};return new Proxy(t,{get:(e,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:(e,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:(e,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 tp(t){return JSON.parse(JSON.stringify(t))}var UC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};const hr=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),FC=[502,503,504];async function np(t){var e;if(!TC(t))throw new wc(hr(t),0);if(FC.includes(t.status))throw new wc(hr(t),t.status);let n;try{n=await t.json()}catch(o){throw new Cy(hr(o),o)}let r;const s=IC(t);if(s&&s.getTime()>=ky["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 Yh(hr(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new Cn}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 Yh(hr(n),t.status,n.weak_password.reasons);throw new hC(hr(n),t.status||500,r)}const zC=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function G(t,e,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[yc]||(o[yc]=ky["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():"",l=await BC(t,e,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(l):{data:Object.assign({},l),error:null}}async function BC(t,e,n,r,s,o){const i=zC(e,r,s,o);let a;try{a=await t(n,Object.assign({},i))}catch(l){throw console.error(l),new wc(hr(l),0)}if(a.ok||await np(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await np(l)}}function Xt(t){var e;let n=null;KC(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=EC(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function rp(t){const e=Xt(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function An(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function WC(t){return{data:t,error:null}}function VC(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=t,i=UC(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function HC(t){return t}function KC(t){return t.access_token&&t.refresh_token&&t.expires_in}const eu=["global","local","others"];var qC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};class QC{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=Ry(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,n=eu[0]){if(eu.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${eu.join(", ")}`);try{return await G(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(H(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await G(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:An})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=qC(e,["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 G(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:VC,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(H(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await G(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:An})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,o,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await G(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:HC});if(c.error)throw c.error;const d=await c.json(),h=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(_=>{const v=parseInt(_.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(_.split(";")[1].split("=")[1]);u[`${w}Page`]=v}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(H(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){Hr(e);try{return await G(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:An})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Hr(e);try{return await G(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:An})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){Hr(e);
122try{return await G(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:An})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){Hr(e.userId);try{const{data:n,error:r}=await G(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Hr(e.userId),Hr(e.id);try{return{data:await G(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}}function sp(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}function GC(){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 Kr={debug:!!(globalThis&&Py()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Oy extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class JC extends Oy{}async function YC(t,e,n){Kr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),Kr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Kr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await n()}finally{Kr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw Kr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new JC(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Kr.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()}}))}GC();const XC={url:lC,storageKey:uC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:cC,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function op(t,e,n){return await n()}const qr={};class Ko{constructor(e){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=Ko.nextInstanceID,Ko.nextInstanceID+=1,this.instanceID>0&&St()&&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({},XC),e);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 QC({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=Ry(s.fetch),this.lock=s.lock||op,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:St()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=YC:this.lock=op,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:Py()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=sp(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=sp(this.memoryStorage)),St()&&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 e,n;return(n=(e=qr[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){qr[this.storageKey]=Object.assign(Object.assign({},qr[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=qr[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){qr[this.storageKey]=Object.assign(Object.assign({},qr[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ey}) ${new Date().toISOString()}`,...e),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 e;try{const n=CC(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),St()&&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),gC(o)){const l=(e=o.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="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 H(n)?{error:n}:{error:new Cy("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const o=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Xt}),{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(H(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(e){var n,r,s;try{let o;if("email"in e){const{email:c,password:d,options:h}=e;let f=null,_=null;this.flowType==="pkce"&&([f,_]=await Vr(this.storage,this.storageKey)),o=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:_},xform:Xt})}else if("phone"in e){const{phone:c,password:d,options:h}=e;o=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Xt})}else throw new Ni("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 l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(H(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(e){try{let n;if("email"in e){const{email:o,password:i,options:a}=e;n=await G(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:rp})}else if("phone"in e){const{phone:o,password:i,options:a}=e;n=await G(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:rp})}else throw new Ni("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 ji}:(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(H(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(e){var n,r,s,o;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=e.options)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;if(n==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(e){var n,r,s,o,i,a,l,u,c,d,h,f;let _,v;if("message"in e)_=e.message,v=e.signature;else{const{chain:w,wallet:g,statement:p,options:m}=e;let x;if(St())if(typeof g=="object")x=g;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))x=E.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 g!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=g}const S=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in x&&x.signIn){const E=await x.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},m==null?void 0:m.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),p?{statement:p}:null));let k;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")k=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)k=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)_=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),v=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in x)||typeof x.signMessage!="function"||!("publicKey"in x)||typeof x!="object"||!x.publicKey||!("toBase58"in x.publicKey)||typeof x.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");_=[`${S.host} wants you to sign in with your Solana account:`,x.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=m==null?void 0:m.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=m==null?void 0:m.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${m.signInWithSolana.notBefore}`]:[],...!((i=m==null?void 0:m.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${m.signInWithSolana.expirationTime}`]:[],...!((a=m==null?void 0:m.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${m.signInWithSolana.chainId}`]:[],...!((l=m==null?void 0:m.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${m.signInWithSolana.nonce}`]:[],...!((u=m==null?void 0:m.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${m.signInWithSolana.requestId}`]:[],...!((d=(c=m==null?void 0:m.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...m.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
123`);const E=await x.signMessage(new TextEncoder().encode(_),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=E}}try{const{data:w,error:g}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:_,signature:SC(v)}
123,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Xt});if(g)throw g;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new ji}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:g})}catch(w){if(H(w))return{data:{user:null,session:null},error:w};throw w}}async _exchangeCodeForSession(e){const n=await cr(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:i}=await G(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Xt});if(await En(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new ji}:(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(H(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=e,a=await G(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:Xt}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new ji}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(H(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(e){var n,r,s,o,i;try{if("email"in e){const{email:a,options:l}=e;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Vr(this.storage,this.storageKey));const{error:d}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in e){const{phone:a,options:l}=e,{data:u,error:c}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new Ni("You must provide either an email or phone number.")}catch(a){if(H(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var n,r;try{let s,o;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,o=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await G(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Xt});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(H(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(e){var n,r,s;try{let o=null,i=null;return this.flowType==="pkce"&&([o,i]=await Vr(this.storage,this.storageKey)),await G(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}
123:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:WC})}catch(o){if(H(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 e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new Cn;const{error:s}=await G(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(e){if(H(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:o}=e,{error:i}=await G(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 e){const{phone:r,type:s,options:o}=e,{data:i,error:a}=await G(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 Ni("You must provide either an email or phone number and a type")}catch(n){if(H(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(e,n){this._debug("#_acquireLock","begin",e);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}`,e,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(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(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 e=null;const n=await cr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<Jl:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const i=await cr(this.userStorage,this.storageKey+"-user");i!=null&&i.user?e.user=i.user:e.user=Zl()}if(this.storage.isServer&&e.user){let i=this.suppressGetSessionWarning;e=new Proxy(e,{get:(l,u,c)=>(!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(l,u,c))})}return{data:{session:e},error:null}}const{session:s,error:o}=await this._callRefreshToken(e.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:An}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;
123if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Cn}:await G(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:An})})}catch(n){if(H(n))return mC(n)&&(await this._removeSession(),await En(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new Cn;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Vr(this.storage,this.storageKey));const{data:u,error:c}=await G(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:An});if(c)throw c;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Cn;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:i}=Xl(e.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;o={access_token:e.access_token,refresh_token:e.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(H(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:i,error:a}=n;if(a)throw a;e=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new Cn;const{session:s,error:o}=await this._callRefreshToken(e.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(H(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(e,n){try{if(!St())throw new Li("No browser detected.");if(e.error||e.error_description||e.error_code)throw new Li(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Jh("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Li("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Jh("No code detected.");const{data:p,error:m}=await this._exchangeCodeForSession(e.code);if(m)throw m;const x=new URL(window.location.href);return x.searchParams.delete("code"),window.history.replaceState(window.history.state,"",x.toString()),{data:{session:p.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=e;if(!o||!a||!i||!u)throw new Li("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let h=c+d;l&&(h=parseInt(l));const f=h-c;f*1e3<=Qr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const _=h-d;c-_>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",_,h,c):c-_<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",_,h,c);const{data:v,error:w}=await this._getUser(o);if(w)throw w;const g={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:d,expires_at:h,refresh_token:i,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:e.type},error:null}}catch(r){if(H(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await cr(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
123if(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,e);if(a&&!(pC(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await En(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const n=kC(),r={id:n,callback:e,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(e){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(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",e,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",o),console.error(o)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Vr(this.storage,this.storageKey,!0));try{return await G(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(H(o))return{data:null,error:o};throw o}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async linkIdentity(e){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,l,u,c;const{data:d,error:h}=o;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await G(this.fetch,"GET",f,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return St()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:e.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(H(r))return{data:{provider:e.provider,url:null},error:r};throw r}}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;return await G(this.fetch,"DELETE",`${this.url}/user/identities/${e.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(H(n))return{data:null,error:n};throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await RC(async s=>(s>
1230&&await PC(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await G(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Xt})),(s,o)=>{const i=200*Math.pow(2,s);return o&&Yl(o)&&Date.now()+i-r<Qr})}catch(r){if(this._debug(n,"error",r),H(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),St()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await cr(this.storage,this.storageKey);if(s&&this.userStorage){let i=await cr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await Gr(this.userStorage,this.storageKey+"-user",i)),s.user=(e=i==null?void 0:i.user)!==null&&e!==void 0?e:Zl()}else if(s&&!s.user&&!s.user){const i=await cr(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await En(this.storage,this.storageKey+"-user"),await Gr(this.storage,this.storageKey,s)):s.user=Zl()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const o=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Jl;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${Jl}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),Yl(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(e){var n,r;if(!e)throw new Cn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new al;const{data:o,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!o.session)throw new Cn;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),H(o)){const i={session:null,error:o};return Yl(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(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,n)}catch(l){o.push(l)}});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(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Gr(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const o=tp(s);await Gr(this.storage,this.storageKey,o)}else{const s=tp(n);await Gr(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await En(this.storage,this.storageKey),await En(this.storage,this.storageKey+"-code-verifier"),await En(this.storage,this.storageKey+"-user"),this.userStorage&&await En(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&St()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
123catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Qr);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}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 e=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-e)/Qr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Qr}ms, refresh threshold is ${vc} ticks`),s<=vc&&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(e){if(e.isAcquireTimeout||e instanceof Oy)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!St()||!(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(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{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(e,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 Vr(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}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await G(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _enroll(e){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:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:u}=await G(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}:(e.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
123if(o)return{data:null,error:o};const{data:i,error:a}=await G(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.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(H(n))return{data:null,error:n};throw n}})}async _challenge(e){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 G(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(H(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){const{data:{user:e},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(e==null?void 0:e.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 e=>{var n,r;const{data:{session:s},error:o}=e;if(o)return{data:null,error:o};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Xl(s.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(a=>a.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===e),r&&this.jwks_cached_at+fC>s)return r;const{data:o,error:i}=await G(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===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:f,error:_}
123=await this.getSession();if(_||!f.session)return{data:null,error:_};r=f.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=Xl(r);n!=null&&n.allowExpired||$C(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:f}=await this.getUser(r);if(f)throw f;return{data:{claims:o,header:s,signature:i},error:null}}const c=DC(s.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,i,bC(`${a}.${l}`)))throw new _c("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(r){if(H(r))return{data:null,error:r};throw r}}}Ko.nextInstanceID=0;const ZC=Ko;class eT extends ZC{constructor(e){super(e)}}var tT=function(t,e,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(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class nT{constructor(e,n,r){var s,o,i;this.supabaseUrl=e,this.supabaseKey=n;const a=aC(e);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,u={db:Yk,realtime:Zk,auth:Object.assign(Object.assign({},Xk),{storageKey:l}),global:Jk},c=iC(r??{},u);this.storageKey=(s=c.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=c.global.headers)!==null&&o!==void 0?o:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,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=c.auth)!==null&&i!==void 0?i:{},this.headers,c.global.fetch),this.fetch=rC(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new vk(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new qk(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new GE(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,n={},r={}){return this.rest.rpc(e,n,r)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,n;return tT(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(e=r.session)===null||e===void 0?void 0:e.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:o,storageKey:i,flowType:a,lock:l,debug:u},c,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new eT({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),c),storageKey:i,autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:o,flowType:a,lock:l,debug:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new Lk(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(e,n,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const rT=(t,e,n)=>new nT(t,e,n);
123function sT(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}sT()&&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 Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const oT="https://eyhvueqepqiydelzefkp.supabase.co",iT="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImV5aHZ1ZXFlcHFpeWRlbHplZmtwIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTgzMDIzMzUsImV4cCI6MjA3Mzg3ODMzNX0.5jYK1QccoPP_Lo6QsMyTp0SQLv3sQbto4EBsmszhmHQ",tu=rT(oT,iT,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Ay=y.createContext(void 0);function aT({children:t}){const[e,n]=y.useState(null),[r,s]=y.useState(null),[o,i]=y.useState(!0);y.useEffect(()=>{const{data:{subscription:u}}=tu.auth.onAuthStateChange((c,d)=>{s(d),n((d==null?void 0:d.user)??null),i(!1)});return tu.auth.getSession().then(({data:{session:c}})=>{s(c),n((c==null?void 0:c.user)??null),i(!1)}),()=>u.unsubscribe()},[]);const l={user:e,session:r,loading:o,signOut:async()=>{const{error:u}=await tu.auth.signOut();if(u)throw console.error("Error signing out:",u),u}};return b.jsx(Ay.Provider,{value:l,children:t})}function nP(){const t=y.useContext(Ay);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}const he=()=>b.jsx("div",{className:"flex items-center justify-center min-h-screen",children:b.jsx(y1,{className:"h-8 w-8 animate-spin text-primary"})}),lT=y.lazy(()=>se(()=>import("./Index-DYhCdHTs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),uT=y.lazy(()=>se(()=>import("./Auth-C8uMrl2h.js"),__vite__mapDeps([12,2,4,13,14,1,3,15,16,17]))),cT=y.lazy(()=>se(()=>import("./Dashboard-Ca6_AksN.js"),__vite__mapDeps([18,1,2,3,4,19,20,21,22,5,23,24,25,7,26,27]))),dT=y.lazy(()=>se(()=>import("./CreateListing-Bup3zWrz.js"),__vite__mapDeps([28,1,2,3,29,4,30,13,19,20,21,22,27,31,32,5,33,10,11,34]))),fT=y.lazy(()=>se(()=>import("./EditListing-DwB_4APE.js"),__vite__mapDeps([35,1,2,3,29,4,30,31,13,32,19,20,21,22,5,34]))),hT=y.lazy(()=>se(()=>import("./ListingDetail-g1HyFZ6f.js"),__vite__mapDeps([36,1,2,3,4,10,37,38,39,40,41,15,32,13,19,20,21,22,42,11,34,43,8,44]))),pT=y.lazy(()=>se(()=>import("./SearchListings-D8gCri9U.js"),__vite__mapDeps([45,2,19,20,21,22,1,3,4,13,15,46,40,37,38,6,8,47,44,24,48,10,11]))),mT=y.lazy(()=>se(()=>import("./CustomerListingDetail-D9Xlfqyb.js"),__vite__mapDeps([49,1,2,3,4,15,31,13,32,21,50,48,40,47,51,52,53,34,43,8,44]))),gT=y.lazy(()=>se(()=>import("./Impressum-BHbsGfkP.js"),__vite__mapDeps([54,1,2,3,4]))),vT=y.lazy(()=>se(()=>import("./AGB-Dz6b-oOo.js"),__vite__mapDeps([55,1,2,3,4]))),yT=y.lazy(()=>se(()=>import("./Datenschutz-CYn5fX9l.js"),__vite__mapDeps([56,1,2,3,4]))),wT=y.lazy(()=>se(()=>import("./SafetyTips-Brefnaz4.js"),__vite__mapDeps([57,3,58,24]))),_T=y.lazy(()=>se(()=>import("./Favorites-DqR4hSq7.js"),__vite__mapDeps([59,1,2,3,46,4,40,37,38,6,8,47,44,24,34]))),xT=y.lazy(()=>se(()=>import("./AdminDashboard-CfQTF7Y-.js"),__vite__mapDeps([60,1,2,3,4,14,61,15,32,13,19,20,21,22,10,24,26,47,62,63,50]))),bT=y.lazy(()=>se(()=>import("./FAQ-BdW_gEjy.js"),__vite__mapDeps([64,1,2,3,10,65,11,22]))),ST=y.lazy(()=>se(()=>import("./NotFound-QYsib3A2.js"),[])),ET=y.lazy(()=>se(()=>import("./Messages-BLehGePo.js"),__vite__mapDeps([66,42,4,2,40,1,3,67,20,33,15,32,68,26,27,17,69,52,34,30,10,65]))),kT=y.lazy(()=>se(()=>import("./Analytics-HH7KwCSQ.js"),__vite__mapDeps([70,9,4,61,1,2,3,10,65,24,44]))),CT=y.lazy(()=>se(()=>import("./Social-q_BhhsJ2.js"),__vite__mapDeps([71,4,40,1,2,3,38,51,52,39,41,15,32,13,19,20,21,22,42,10,65]))),TT=y.lazy(()=>se(()=>import("./SecurityPrivacy-CD80tB8V.js"),__vite__mapDeps([72,1,2,3,4,21,19,20,22,13,67,9,42,24,8,40,41,44,51,52,58,14,15,53,68,32,27,50,25,63,10,16]))),PT=y.lazy(()=>se(()=>import("./QuickAdd-Bt6_ZCDy.js"),__vite__mapDeps([73,2,32,13,19,20,21,22,33]))),RT=y.lazy(()=>se(()=>import("./Orders-DlEJKjgg.js"),__vite__mapDeps([74,75,1,2,3,4,14,67,10,23,25,63,62,69,52]))),OT=y.lazy(()=>se(()=>import("./OrderDetail-Tt_kxJEI.js"),__vite__mapDeps([76,75,1,2,3,4,67,13,32,19,20,21,22,15,10,34,8,25,63,23,62,69,52]))),AT=new WS({defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:10*60*1e3}}}),jT=()=>b.jsx(HS,{client:AT,children:b.jsx(aT,{children:b.jsxs(wS,{children:[b.jsx(tx,{}),b.jsx(Nx,{}),b.jsx(BE,{children:b.jsxs(LE,{children:[b.jsx(de,{path:"/",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(lT,{})})}),b.jsx(de,{path:"/auth",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(uT,{})})}),b.jsx(de,{path:"/dashboard",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(cT,{})})}),b.jsx(de,{path:"/create-listing",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(dT,{})})}),b.jsx(de,{path:"/edit-listing/:id",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(fT,{})})}),b.jsx(de,{path:"/listing/:id",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(hT,{})})}),b.jsx(de,{path:"/search",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(pT,{})})}),b.jsx(de,{path:"/buy/:id",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(mT,{})})}),b.jsx(de,{path:"/impressum",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(gT,{})})}),b.jsx(de,{path:"/agb",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(vT,{})})}),b.jsx(de,{path:"/datenschutz",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(yT,{})})}),b.jsx(de,{path:"/sicherheitstipps",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(wT,{})})}),b.jsx(de,{path:"/faq",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(bT,{})})}),b.jsx(de,{path:"/favorites",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(_T,{})})}),b.jsx(de,{path:"/admin",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(xT,{})})}),b.jsx(de,{path:"/messages",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(ET,{})})}),b.jsx(de,{path:"/analytics",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(kT,{})})}),b.jsx(de,{path:"/social",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(CT,{})})}),b.jsx(de,{path:"/sicherheit-privatsphaere",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(TT,{})})}),b.jsx(de,{path:"/quick-add",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(PT,{})})}),b.jsx(de,{path:"/orders",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(RT,{})})}),b.jsx(de,{path:"/orders/:id",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(OT,{})})}),b.jsx(de,{path:"*",element:b.jsx(y.Suspense,{fallback:b.jsx(he,{}),children:b.jsx(ST,{})})})]})})]})})});Rg(document.getElementById("root")).render(b.jsx(jT,{}));export{p1 as A,DT as B,Rv as C,Zb as D,ei as E,md as F,eS as G,tS as H,MT as I,$g as J,_a as K,y1 as L,Og as M,WT as N,jg as O,et as P,LT as Q,A as R,IT as S,kp as T,q_ as V,w1 as X,se as _,x_ as a,Bs as b,ov as c,nP as d,Ka as e,Lt as f,Ce as g,E_ as h,Lr as i,b as j,BT as k,P_ as l,V_ as m,Kb as n,HT as o,gd as p,Xn as q,y as r,tu as s,VT as t,Dd as u,Yn as v,mt as w,pp as x,rv as y,he as z};

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.