vendor: 6,020 bytes, lines 1-9
1var Xh=e=>{throw TypeError(e)};var oc=(e,t,r)=>t.has(e)||Xh("Cannot "+r);var C=(e,t,r)=>(oc(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?Xh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),q=(e,t,r,n)=>(oc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),De=(e,t,r)=>(oc(e,t,"access private method"),r);var Wi=(e,t,r,n)=>({set _(s){q(e,t,s,r)},get _(){return C(e,t,n)}});function ax(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(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 n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function Wm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vm={exports:{}},_l={},Hm={exports:{}},Y={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Ti=Symbol.for("react.element"),lx=Symbol.for("react.portal"),cx=Symbol.for("react.fragment"),ux=Symbol.for("react.strict_mode"),dx=Symbol.for("react.profiler"),hx=Symbol.for("react.provider"),fx=Symbol.for("react.context"),px=Symbol.for("react.forward_ref"),mx=Symbol.for("react.suspense"),gx=Symbol.for("react.memo"),vx=Symbol.for("react.lazy"),Zh=Symbol.iterator;function yx(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var qm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Km=Object.assign,Gm={};function oo(e,t,r){this.props=e,this.context=t,this.refs=Gm,this.updater=r||qm}oo.prototype.isReactComponent={};oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qm(){}Qm.prototype=oo.prototype;function _d(e,t,r){this.props=e,this.context=t,this.refs=Gm,this.updater=r||qm}var Sd=_d.prototype=new Qm;Sd.constructor=_d;Km(Sd,oo.prototype);Sd.isPureReactComponent=!0;var ef=Array.isArray,Jm=Object.prototype.hasOwnProperty,kd={current:null},Ym={key:!0,ref:!0,__self:!0,__source:!0};function Xm(e,t,r){var n,s={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Jm.call(t,n)&&!Ym.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:Ti,type:e,key:o,ref:i,props:s,_owner:kd.current}}function wx(e,t){return{$$typeof:Ti,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ed(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ti}function xx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var tf=/\/+/g;function ic(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xx(""+e.key):t.toString(36)}function ka(e,t,r,n,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ti:case lx:i=!0}}if(i)return i=e,s=s(i),e=n===""?"."+ic(i,0):n,ef(s)?(r="",e!=null&&(r=e.replace(tf,"$&/")+"/"),ka(s,t,r,"",function(c){return c})):s!=null&&(Ed(s)&&(s=wx(s,r+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(tf,"$&/")+"/")+e)),t.push(s)),1;if(i=0,n=n===""?".":n+":",ef(e))for(var a=0;a<e.length;a++){o=e[a];var l=n+ic(o,a);i+=ka(o,t,r,l,s)}else if(l=yx(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=n+ic(o,a++),i+=ka(o,t,r,l,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Vi(e,t,r){if(e==null)return e;var n=[],s=0;return ka(e,n,"","",function(o){return t.call(r,o,s++)}),n}function bx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},Ea={transition:null},_x={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Ea,ReactCurrentOwner:kd};function Zm(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:Vi,forEach:function(e,t,r){Vi(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Vi(e,function(){t++}),t},toArray:function(e){return Vi(e,function(t){return t})||[]},only:function(e){if(!Ed(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};
vendor: 4,159 bytes, lines 9-25
9Y.Component=oo;Y.Fragment=cx;Y.Profiler=dx;Y.PureComponent=_d;Y.StrictMode=ux;Y.Suspense=mx;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_x;Y.act=Zm;Y.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Km({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=kd.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Jm.call(t,l)&&!Ym.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:Ti,type:e.type,key:s,ref:o,props:n,_owner:i}};Y.createContext=function(e){return e={$$typeof:fx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hx,_context:e},e.Consumer=e};Y.createElement=Xm;Y.createFactory=function(e){var t=Xm.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:px,render:e}};Y.isValidElement=Ed;Y.lazy=function(e){return{$$typeof:vx,_payload:{_status:-1,_result:e},_init:bx}};Y.memo=function(e,t){return{$$typeof:gx,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=Ea.transition;Ea.transition={};try{e()}finally{Ea.transition=t}};Y.unstable_act=Zm;Y.useCallback=function(e,t){return Je.current.useCallback(e,t)};Y.useContext=function(e){return Je.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Je.current.useEffect(e,t)};Y.useId=function(){return Je.current.useId()};Y.useImperativeHandle=function(e,t,r){return Je.current.useImperativeHandle(e,t,r)};Y.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Je.current.useMemo(e,t)};Y.useReducer=function(e,t,r){return Je.current.useReducer(e,t,r)};Y.useRef=function(e){return Je.current.useRef(e)};Y.useState=function(e){return Je.current.useState(e)};Y.useSyncExternalStore=function(e,t,r){return Je.current.useSyncExternalStore(e,t,r)};Y.useTransition=function(){return Je.current.useTransition()};Y.version="18.3.1";Hm.exports=Y;var y=Hm.exports;const A=Wm(y),Cd=ax({__proto__:null,default:A},[y]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Sx=y,kx=Symbol.for("react.element"),Ex=Symbol.for("react.fragment"),Cx=Object.prototype.hasOwnProperty,Tx=Sx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jx={key:!0,ref:!0,__self:!0,__source:!0};function eg(e,t,r){var n,s={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)Cx.call(t,n)&&!jx.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:kx,type:e,key:o,ref:i,props:s,_owner:Tx.current}}_l.Fragment=Ex;_l.jsx=eg;_l.jsxs=eg;Vm.exports=_l;var u=Vm.exports,tg={exports:{}},ht={},rg={exports:{}},ng={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(T,P){var L=T.length;T.push(P);e:for(;0<L;){var G=L-1>>>1,F=T[G];if(0<s(F,P))T[G]=P,T[L]=F,L=G;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var P=T[0],L=T.pop();if(L!==P){T[0]=L;e:for(var G=0,F=T.length,J=F>>>1;G<J;){var Z=2*(G+1)-1,_e=T[Z],$e=Z+1,ne=T[$e];if(0>s(_e,L))$e<F&&0>s(ne,_e)?(T[G]=ne,T[$e]=L,G=$e):(T[G]=_e,T[Z]=L,G=Z);else if($e<F&&0>s(ne,L))T[G]=ne,T[$e]=L,G=$e;else break e}}return P}function s(T,P){var L=T.sortIndex-P.sortIndex;
vendor: 10,112 bytes, lines 25-34
25return L!==0?L:T.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],d=1,h=null,p=3,f=!1,x=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(T){for(var P=r(c);P!==null;){if(P.callback===null)n(c);else if(P.startTime<=T)n(c),P.sortIndex=P.expirationTime,t(l,P);else break;P=r(c)}}function _(T){if(m=!1,w(T),!x)if(r(l)!==null)x=!0,V(S);else{var P=r(c);P!==null&&K(_,P.startTime-T)}}function S(T,P){x=!1,m&&(m=!1,v(j),j=-1),f=!0;var L=p;try{for(w(P),h=r(l);h!==null&&(!(h.expirationTime>P)||T&&!B());){var G=h.callback;if(typeof G=="function"){h.callback=null,p=h.priorityLevel;var F=G(h.expirationTime<=P);P=e.unstable_now(),typeof F=="function"?h.callback=F:h===r(l)&&n(l),w(P)}else n(l);h=r(l)}if(h!==null)var J=!0;else{var Z=r(c);Z!==null&&K(_,Z.startTime-P),J=!1}return J}finally{h=null,p=L,f=!1}}var k=!1,E=null,j=-1,R=5,O=-1;function B(){return!(e.unstable_now()-O<R)}function M(){if(E!==null){var T=e.unstable_now();O=T;var P=!0;try{P=E(!0,T)}finally{P?U():(k=!1,E=null)}}else k=!1}var U;if(typeof g=="function")U=function(){g(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,X=I.port2;I.port1.onmessage=M,U=function(){X.postMessage(null)}}else U=function(){b(M,0)};function V(T){E=T,k||(k=!0,U())}function K(T,P){j=b(function(){T(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,V(S))},e.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"):R=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(T){switch(p){case 1:case 2:case 3:var P=3;break;default:P=p}var L=p;p=P;try{return T()}finally{p=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,P){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=p;p=T;try{return P()}finally{p=L}},e.unstable_scheduleCallback=function(T,P,L){var G=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?G+L:G):L=G,T){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=L+F,T={id:d++,callback:P,priorityLevel:T,startTime:L,expirationTime:F,sortIndex:-1},L>G?(T.sortIndex=L,t(c,T),r(l)===null&&T===r(c)&&(m?(v(j),j=-1):m=!0,K(_,L-G))):(T.sortIndex=F,t(l,T),x||f||(x=!0,V(S))),T},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(T){var P=p;return function(){var L=p;p=P;try{return T.apply(this,arguments)}finally{p=L}}}})(ng);rg.exports=ng;var Px=rg.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Nx=y,dt=Px;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sg=new Set,Go={};function Vn(e,t){Js(e,t),Js(e+"Capture",t)}function Js(e,t){for(Go[e]=t,e=0;e<t.length;e++)sg.add(t[e])}var fr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ru=Object.prototype.hasOwnProperty,Rx=/^[: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]*$/,rf={},nf={};function Ax(e){return ru.call(nf,e)?!0:ru.call(rf,e)?!1:Rx.test(e)?nf[e]=!0:(rf[e]=!0,!1)}function Ox(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ix(e,t,r,n){if(t===null||typeof t>"u"||Ox(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,r,n,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var Td=/[\-:]([a-z])/g;function jd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Td,jd);Le[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Td,jd);Le[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Td,jd);Le[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pd(e,t,r,n){var s=Le.hasOwnProperty(t)?Le[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ix(t,r,s,n)&&(r=null),n||s===null?Ax(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var xr=Nx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hi=Symbol.for("react.element"),ws=Symbol.for("react.portal"),xs=Symbol.for("react.fragment"),Nd=Symbol.for("react.strict_mode"),nu=Symbol.for("react.profiler"),og=Symbol.for("react.provider"),ig=Symbol.for("react.context"),Rd=Symbol.for("react.forward_ref"),su=Symbol.for("react.suspense"),ou=Symbol.for("react.suspense_list"),Ad=Symbol.for("react.memo"),Ir=Symbol.for("react.lazy"),ag=Symbol.for("react.offscreen"),sf=Symbol.iterator;function wo(e){return e===null||typeof e!="object"?null:(e=sf&&e[sf]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,ac;function Ro(e){if(ac===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ac=t&&t[1]||""}return` 34`+ac+e}var lc=!1;function cc(e,t){if(!e||lc)return"";lc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 16,621 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var s=c.stack.split(` 35`),o=n.stack.split(` 36`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=` 37`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{lc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ro(e):""}function Lx(e){switch(e.tag){case 5:return Ro(e.type);case 16:return Ro("Lazy");case 13:return Ro("Suspense");case 19:return Ro("SuspenseList");case 0:case 2:case 15:return e=cc(e.type,!1),e;case 11:return e=cc(e.type.render,!1),e;case 1:return e=cc(e.type,!0),e;default:return""}}function iu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xs:return"Fragment";case ws:return"Portal";case nu:return"Profiler";case Nd:return"StrictMode";case su:return"Suspense";case ou:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ig:return(e.displayName||"Context")+".Consumer";case og:return(e._context.displayName||"Context")+".Provider";case Rd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ad:return t=e.displayName||null,t!==null?t:iu(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return iu(e(t))}catch{}}return null}function Mx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return iu(t);case 8:return t===Nd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $x(e){var t=lg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qi(e){e._valueTracker||(e._valueTracker=$x(e))}function cg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=lg(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function au(e,t){var r=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function of(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=on(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ug(e,t){t=t.checked,t!=null&&Pd(e,"checked",t,!1)}function lu(e,t){ug(e,t);var r=on(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cu(e,t.type,r):t.hasOwnProperty("defaultValue")&&cu(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function af(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function cu(e,t,r){(t!=="number"||za(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ao=Array.isArray;function As(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+on(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function uu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lf(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(N(92));if(Ao(r)){if(1<r.length)throw Error(N(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:on(r)}}function dg(e,t){var r=on(t.value),n=on(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function cf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function du(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ki,fg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ki=Ki||document.createElement("div"),Ki.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Mo={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},Dx=["Webkit","ms","Moz","O"];Object.keys(Mo).forEach(function(e){Dx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mo[t]=Mo[e]})});function pg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Mo.hasOwnProperty(e)&&Mo[e]?(""+t).trim():t+"px"}function mg(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=pg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var Ux=ve({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 hu(e,t){if(t){if(Ux[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function fu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pu=null;function Od(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mu=null,Os=null,Is=null;function uf(e){if(e=Ni(e)){if(typeof mu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Tl(t),mu(e.stateNode,e.type,t))}}function gg(e){Os?Is?Is.push(e):Is=[e]:Os=e}function vg(){if(Os){var e=Os,t=Is;if(Is=Os=null,uf(e),t)for(e=0;e<t.length;e++)uf(t[e])}}function yg(e,t){return e(t)}function wg(){}var uc=!1;function xg(e,t,r){if(uc)return e(t,r);uc=!0;try{return yg(e,t,r)}finally{uc=!1,(Os!==null||Is!==null)&&(wg(),vg())}}function Jo(e,t){var r=e.stateNode;if(r===null)return null;var n=Tl(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(N(231,t,typeof r));return r}var gu=!1;if(fr)try{var xo={};Object.defineProperty(xo,"passive",{get:function(){gu=!0}}),window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{gu=!1}function Fx(e,t,r,n,s,o,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var $o=!1,Ba=null,Wa=!1,vu=null,zx={onError:function(e){$o=!0,Ba=e}};function Bx(e,t,r,n,s,o,i,a,l){$o=!1,Ba=null,Fx.apply(zx,arguments)}function Wx(e,t,r,n,s,o,i,a,l){if(Bx.apply(this,arguments),$o){if($o){var c=Ba;$o=!1,Ba=null}else throw Error(N(198));Wa||(Wa=!0,vu=c)}}function Hn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function bg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function df(e){if(Hn(e)!==e)throw Error(N(188))}function Vx(e){var t=e.alternate;if(!t){if(t=Hn(e),t===null)throw Error(N(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var o=s.alternate;if(o===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===r)return df(s),e;if(o===n)return df(s),t;o=o.sibling}throw Error(N(188))}if(r.return!==n.return)r=s,n=o;else{for(var i=!1,a=s.child;a;){if(a===r){i=!0,r=s,n=o;break}if(a===n){i=!0,n=s,r=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===r){i=!0,r=o,n=s;break}if(a===n){i=!0,n=o,r=s;break}a=a.sibling}if(!i)throw Error(N(189))}}if(r.alternate!==n)throw Error(N(190))}if(r.tag!==3)throw Error(N(188));return r.stateNode.current===r?e:t}function _g(e){return e=Vx(e),e!==null?Sg(e):null}function Sg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sg(e);if(t!==null)return t;e=e.sibling}return null}var kg=dt.unstable_scheduleCallback,hf=dt.unstable_cancelCallback,Hx=dt.unstable_shouldYield,qx=dt.unstable_requestPaint,be=dt.unstable_now,Kx=dt.unstable_getCurrentPriorityLevel,Id=dt.unstable_ImmediatePriority,Eg=dt.unstable_UserBlockingPriority,Va=dt.unstable_NormalPriority,Gx=dt.unstable_LowPriority,Cg=dt.unstable_IdlePriority,Sl=null,Yt=null;function Qx(e){if(Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(Sl,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:Xx,Jx=Math.log,Yx=Math.LN2;function Xx(e){return e>>>=0,e===0?32:31-(Jx(e)/Yx|0)|0}var Gi=64,Qi=4194304;function Oo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ha(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var a=i&~s;a!==0?n=Oo(a):(o&=i,o!==0&&(n=Oo(o)))}else i=r&~s,i!==0?n=Oo(i):o!==0&&(n=Oo(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-$t(t),s=1<<r,n|=e[r],t&=~s;return n}function Zx(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eb(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-$t(o),a=1<<i,l=s[i];l===-1?(!(a&r)||a&n)&&(s[i]=Zx(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function yu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tg(){var e=Gi;return Gi<<=1,!(Gi&4194240)&&(Gi=64),e}function dc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ji(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=r}function tb(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-$t(r),o=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~o}}function Ld(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-$t(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var se=0;function jg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Pg,Md,Ng,Rg,Ag,wu=!1,Ji=[],Qr=null,Jr=null,Yr=null,Yo=new Map,Xo=new Map,$r=[],rb="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 ff(e,t){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Jr=null;break;case"mouseover":case"mouseout":Yr=null;break;case"pointerover":case"pointerout":Yo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xo.delete(t.pointerId)}}function bo(e,t,r,n,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Ni(t),t!==null&&Md(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function nb(e,t,r,n,s){switch(t){case"focusin":return Qr=bo(Qr,e,t,r,n,s),!0;case"dragenter":return Jr=bo(Jr,e,t,r,n,s),!0;case"mouseover":return Yr=bo(Yr,e,t,r,n,s),!0;case"pointerover":var o=s.pointerId;return Yo.set(o,bo(Yo.get(o)||null,e,t,r,n,s)),!0;case"gotpointercapture":return o=s.pointerId,Xo.set(o,bo(Xo.get(o)||null,e,t,r,n,s)),!0}return!1}function Og(e){var t=En(e.target);if(t!==null){var r=Hn(t);if(r!==null){if(t=r.tag,t===13){if(t=bg(r),t!==null){e.blockedOn=t,Ag(e.priority,function(){Ng(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ca(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=xu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);pu=n,r.target.dispatchEvent(n),pu=null}else return t=Ni(r),t!==null&&Md(t),e.blockedOn=r,!1;t.shift()}return!0}function pf(e,t,r){Ca(e)&&r.delete(t)}
vendor: 11,957 bytes, line 37
37function sb(){wu=!1,Qr!==null&&Ca(Qr)&&(Qr=null),Jr!==null&&Ca(Jr)&&(Jr=null),Yr!==null&&Ca(Yr)&&(Yr=null),Yo.forEach(pf),Xo.forEach(pf)}function _o(e,t){e.blockedOn===t&&(e.blockedOn=null,wu||(wu=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,sb)))}function Zo(e){function t(s){return _o(s,e)}if(0<Ji.length){_o(Ji[0],e);for(var r=1;r<Ji.length;r++){var n=Ji[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Qr!==null&&_o(Qr,e),Jr!==null&&_o(Jr,e),Yr!==null&&_o(Yr,e),Yo.forEach(t),Xo.forEach(t),r=0;r<$r.length;r++)n=$r[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<$r.length&&(r=$r[0],r.blockedOn===null);)Og(r),r.blockedOn===null&&$r.shift()}var Ls=xr.ReactCurrentBatchConfig,qa=!0;function ob(e,t,r,n){var s=se,o=Ls.transition;Ls.transition=null;try{se=1,$d(e,t,r,n)}finally{se=s,Ls.transition=o}}function ib(e,t,r,n){var s=se,o=Ls.transition;Ls.transition=null;try{se=4,$d(e,t,r,n)}finally{se=s,Ls.transition=o}}function $d(e,t,r,n){if(qa){var s=xu(e,t,r,n);if(s===null)bc(e,t,n,Ka,r),ff(e,n);else if(nb(s,e,t,r,n))n.stopPropagation();else if(ff(e,n),t&4&&-1<rb.indexOf(e)){for(;s!==null;){var o=Ni(s);if(o!==null&&Pg(o),o=xu(e,t,r,n),o===null&&bc(e,t,n,Ka,r),o===s)break;s=o}s!==null&&n.stopPropagation()}else bc(e,t,n,null,r)}}var Ka=null;function xu(e,t,r,n){if(Ka=null,e=Od(n),e=En(e),e!==null)if(t=Hn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=bg(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ka=e,null}function Ig(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Kx()){case Id:return 1;case Eg:return 4;case Va:case Gx:return 16;case Cg:return 536870912;default:return 16}default:return 16}}var qr=null,Dd=null,Ta=null;function Lg(){if(Ta)return Ta;var e,t=Dd,r=t.length,n,s="value"in qr?qr.value:qr.textContent,o=s.length;for(e=0;e<r&&t[e]===s[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===s[o-n];n++);return Ta=s.slice(e,1<n?1-n:void 0)}function ja(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Yi(){return!0}function mf(){return!1}function ft(e){function t(r,n,s,o,i){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Yi:mf,this.isPropagationStopped=mf,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Yi)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Yi)},persist:function(){},isPersistent:Yi}),t}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ud=ft(io),Pi=ve({},io,{view:0,detail:0}),ab=ft(Pi),hc,fc,So,kl=ve({},Pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==So&&(So&&e.type==="mousemove"?(hc=e.screenX-So.screenX,fc=e.screenY-So.screenY):fc=hc=0,So=e),hc)},movementY:function(e){return"movementY"in e?e.movementY:fc}}),gf=ft(kl),lb=ve({},kl,{dataTransfer:0}),cb=ft(lb),ub=ve({},Pi,{relatedTarget:0}),pc=ft(ub),db=ve({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),hb=ft(db),fb=ve({},io,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pb=ft(fb),mb=ve({},io,{data:0}),vf=ft(mb),gb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vb={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"},yb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yb[e])?!!t[e]:!1}function Fd(){return wb}var xb=ve({},Pi,{key:function(e){if(e.key){var t=gb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ja(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fd,charCode:function(e){return e.type==="keypress"?ja(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ja(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bb=ft(xb),_b=ve({},kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yf=ft(_b),Sb=ve({},Pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fd}),kb=ft(Sb),Eb=ve({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cb=ft(Eb),Tb=ve({},kl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jb=ft(Tb),Pb=[9,13,27,32],zd=fr&&"CompositionEvent"in window,Do=null;fr&&"documentMode"in document&&(Do=document.documentMode);var Nb=fr&&"TextEvent"in window&&!Do,Mg=fr&&(!zd||Do&&8<Do&&11>=Do),wf=" ",xf=!1;function $g(e,t){switch(e){case"keyup":return Pb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bs=!1;function Rb(e,t){switch(e){case"compositionend":return Dg(t);case"keypress":return t.which!==32?null:(xf=!0,wf);case"textInput":return e=t.data,e===wf&&xf?null:e;default:return null}}function Ab(e,t){if(bs)return e==="compositionend"||!zd&&$g(e,t)?(e=Lg(),Ta=Dd=qr=null,bs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mg&&t.locale!=="ko"?null:t.data;default:return null}}var Ob={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 bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ob[e.type]:t==="textarea"}function Ug(e,t,r,n){gg(n),t=Ga(t,"onChange"),0<t.length&&(r=new Ud("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Uo=null,ei=null;function Ib(e){Jg(e,0)}function El(e){var t=ks(e);if(cg(t))return e}function Lb(e,t){if(e==="change")return t}var Fg=!1;if(fr){var mc;if(fr){var gc="oninput"in document;if(!gc){var _f=document.createElement("div");_f.setAttribute("oninput","return;"),gc=typeof _f.oninput=="function"}mc=gc}else mc=!1;Fg=mc&&(!document.documentMode||9<document.documentMode)}function Sf(){Uo&&(Uo.detachEvent("onpropertychange",zg),ei=Uo=null)}function zg(e){if(e.propertyName==="value"&&El(ei)){var t=[];Ug(t,ei,e,Od(e)),xg(Ib,t)}}function Mb(e,t,r){e==="focusin"?(Sf(),Uo=t,ei=r,Uo.attachEvent("onpropertychange",zg)):e==="focusout"&&Sf()}function $b(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return El(ei)}function Db(e,t){if(e==="click")return El(t)}function Ub(e,t){if(e==="input"||e==="change")return El(t)}function Fb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:Fb;function ti(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!ru.call(t,s)||!Ut(e[s],t[s]))return!1}return!0}function kf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ef(e,t){var r=kf(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=kf(r)}}function Bg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wg(){for(var e=window,t=za();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=za(e.document)}return t}function Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zb(e){var t=Wg(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Bg(r.ownerDocument.documentElement,r)){if(n!==null&&Bd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,o=Math.min(n.start,s);n=n.end===void 0?o:Math.min(n.end,s),!e.extend&&o>n&&(s=n,n=o,o=s),s=Ef(r,o);var i=Ef(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Bb=fr&&"documentMode"in document&&11>=document.documentMode,_s=null,bu=null,Fo=null,_u=!1;function Cf(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;_u||_s==null||_s!==za(n)||(n=_s,"selectionStart"in n&&Bd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Fo&&ti(Fo,n)||(Fo=n,n=Ga(bu,"onSelect"),0<n.length&&(t=new Ud("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=_s)))}function Xi(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ss={animationend:Xi("Animation","AnimationEnd"),animationiteration:Xi("Animation","AnimationIteration"),animationstart:Xi("Animation","AnimationStart"),transitionend:Xi("Transition","TransitionEnd")},vc={},Vg={};fr&&(Vg=document.createElement("div").style,"AnimationEvent"in window||(delete Ss.animationend.animation,delete Ss.animationiteration.animation,delete Ss.animationstart.animation),"TransitionEvent"in window||delete Ss.transitionend.transition);function Cl(e){if(vc[e])return vc[e];if(!Ss[e])return e;var t=Ss[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Vg)return vc[e]=t[r];return e}var Hg=Cl("animationend"),qg=Cl("animationiteration"),Kg=Cl("animationstart"),Gg=Cl("transitionend"),Qg=new Map,Tf="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 un(e,t){Qg.set(e,t),Vn(t,[e])}for(var yc=0;yc<Tf.length;yc++){var wc=Tf[yc],Wb=wc.toLowerCase(),Vb=wc[0].toUpperCase()+wc.slice(1);un(Wb,"on"+Vb)}un(Hg,"onAnimationEnd");un(qg,"onAnimationIteration");un(Kg,"onAnimationStart");un("dblclick","onDoubleClick");un("focusin","onFocus");un("focusout","onBlur");un(Gg,"onTransitionEnd");Js("onMouseEnter",["mouseout","mouseover"]);Js("onMouseLeave",["mouseout","mouseover"]);Js("onPointerEnter",["pointerout","pointerover"]);Js("onPointerLeave",["pointerout","pointerover"]);Vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="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(" "),Hb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function jf(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Wx(n,t,void 0,e),e.currentTarget=null}function Jg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var a=n[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;jf(s,a,c),o=l}else for(i=0;i<n.length;i++){if(a=n[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;jf(s,a,c),o=l}}}if(Wa)throw e=vu,Wa=!1,vu=null,e}function ue(e,t){var r=t[Tu];r===void 0&&(r=t[Tu]=new Set);var n=e+"__bubble";r.has(n)||(Yg(t,e,2,!1),r.add(n))}function xc(e,t,r){var n=0;t&&(n|=4),Yg(r,e,n,t)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function ri(e){if(!e[Zi]){e[Zi]=!0,sg.forEach(function(r){r!=="selectionchange"&&(Hb.has(r)||xc(r,!1,e),xc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zi]||(t[Zi]=!0,xc("selectionchange",!1,t))}}function Yg(e,t,r,n){switch(Ig(t)){case 1:var s=ob;break;case 4:s=ib;break;default:s=$d}r=s.bind(null,t,r,e),s=void 0,!gu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function bc(e,t,r,n,s){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var a=n.stateNode.containerInfo;
vendor: 21,713 bytes, lines 37-38
37if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=n.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=En(a),i===null)return;if(l=i.tag,l===5||l===6){n=o=i;continue e}a=a.parentNode}}n=n.return}xg(function(){var c=o,d=Od(r),h=[];e:{var p=Qg.get(e);if(p!==void 0){var f=Ud,x=e;switch(e){case"keypress":if(ja(r)===0)break e;case"keydown":case"keyup":f=bb;break;case"focusin":x="focus",f=pc;break;case"focusout":x="blur",f=pc;break;case"beforeblur":case"afterblur":f=pc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=cb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=kb;break;case Hg:case qg:case Kg:f=hb;break;case Gg:f=Cb;break;case"scroll":f=ab;break;case"wheel":f=jb;break;case"copy":case"cut":case"paste":f=pb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=yf}var m=(t&4)!==0,b=!m&&e==="scroll",v=m?p!==null?p+"Capture":null:p;m=[];for(var g=c,w;g!==null;){w=g;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,v!==null&&(_=Jo(g,v),_!=null&&m.push(ni(g,_,w)))),b)break;g=g.return}0<m.length&&(p=new f(p,x,null,r,d),h.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&r!==pu&&(x=r.relatedTarget||r.fromElement)&&(En(x)||x[pr]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(x=r.relatedTarget||r.toElement,f=c,x=x?En(x):null,x!==null&&(b=Hn(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=c),f!==x)){if(m=gf,_="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=yf,_="onPointerLeave",v="onPointerEnter",g="pointer"),b=f==null?p:ks(f),w=x==null?p:ks(x),p=new m(_,g+"leave",f,r,d),p.target=b,p.relatedTarget=w,_=null,En(d)===c&&(m=new m(v,g+"enter",x,r,d),m.target=w,m.relatedTarget=b,_=m),b=_,f&&x)t:{for(m=f,v=x,g=0,w=m;w;w=ss(w))g++;for(w=0,_=v;_;_=ss(_))w++;for(;0<g-w;)m=ss(m),g--;for(;0<w-g;)v=ss(v),w--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=ss(m),v=ss(v)}m=null}else m=null;f!==null&&Pf(h,p,f,m,!1),x!==null&&b!==null&&Pf(h,b,x,m,!0)}}e:{if(p=c?ks(c):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var S=Lb;else if(bf(p))if(Fg)S=Ub;else{S=$b;var k=Mb}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=Db);if(S&&(S=S(e,c))){Ug(h,S,r,d);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&cu(p,"number",p.value)}switch(k=c?ks(c):window,e){case"focusin":(bf(k)||k.contentEditable==="true")&&(_s=k,bu=c,Fo=null);break;case"focusout":Fo=bu=_s=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,Cf(h,r,d);break;case"selectionchange":if(Bb)break;case"keydown":case"keyup":Cf(h,r,d)}var E;if(zd)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else bs?$g(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(Mg&&r.locale!=="ko"&&(bs||j!=="onCompositionStart"?j==="onCompositionEnd"&&bs&&(E=Lg()):(qr=d,Dd="value"in qr?qr.value:qr.textContent,bs=!0)),k=Ga(c,j),0<k.length&&(j=new vf(j,e,null,r,d),h.push({event:j,listeners:k}),E?j.data=E:(E=Dg(r),E!==null&&(j.data=E)))),(E=Nb?Rb(e,r):Ab(e,r))&&(c=Ga(c,"onBeforeInput"),0<c.length&&(d=new vf("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:c}),d.data=E))}Jg(h,t)})}function ni(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ga(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Jo(e,r),o!=null&&n.unshift(ni(e,o,s)),o=Jo(e,t),o!=null&&n.push(ni(e,o,s))),e=e.return}return n}function ss(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pf(e,t,r,n,s){for(var o=t._reactName,i=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,s?(l=Jo(r,o),l!=null&&i.unshift(ni(r,l,a))):s||(l=Jo(r,o),l!=null&&i.push(ni(r,l,a)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var qb=/\r\n?/g,Kb=/\u0000|\uFFFD/g;function Nf(e){return(typeof e=="string"?e:""+e).replace(qb,` 38`).replace(Kb,"")}function ea(e,t,r){if(t=Nf(t),Nf(e)!==t&&r)throw Error(N(425))}function Qa(){}var Su=null,ku=null;function Eu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cu=typeof setTimeout=="function"?setTimeout:void 0,Gb=typeof clearTimeout=="function"?clearTimeout:void 0,Rf=typeof Promise=="function"?Promise:void 0,Qb=typeof queueMicrotask=="function"?queueMicrotask:typeof Rf<"u"?function(e){return Rf.resolve(null).then(e).catch(Jb)}:Cu;function Jb(e){setTimeout(function(){throw e})}function _c(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Zo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Zo(t)}function Xr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Af(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ao=Math.random().toString(36).slice(2),Gt="__reactFiber$"+ao,si="__reactProps$"+ao,pr="__reactContainer$"+ao,Tu="__reactEvents$"+ao,Yb="__reactListeners$"+ao,Xb="__reactHandles$"+ao;function En(e){var t=e[Gt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pr]||r[Gt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Af(e);e!==null;){if(r=e[Gt])return r;e=Af(e)}return t}e=r,r=e.parentNode}return null}function Ni(e){return e=e[Gt]||e[pr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ks(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Tl(e){return e[si]||null}var ju=[],Es=-1;function dn(e){return{current:e}}function de(e){0>Es||(e.current=ju[Es],ju[Es]=null,Es--)}function le(e,t){Es++,ju[Es]=e.current,e.current=t}var an={},Ve=dn(an),tt=dn(!1),$n=an;function Ys(e,t){var r=e.type.contextTypes;if(!r)return an;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in r)s[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function rt(e){return e=e.childContextTypes,e!=null}function Ja(){de(tt),de(Ve)}function Of(e,t,r){if(Ve.current!==an)throw Error(N(168));le(Ve,t),le(tt,r)}function Xg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(N(108,Mx(e)||"Unknown",s));return ve({},r,n)}function Ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,$n=Ve.current,le(Ve,e),le(tt,tt.current),!0}function If(e,t,r){var n=e.stateNode;if(!n)throw Error(N(169));r?(e=Xg(e,t,$n),n.__reactInternalMemoizedMergedChildContext=e,de(tt),de(Ve),le(Ve,e)):de(tt),le(tt,r)}var lr=null,jl=!1,Sc=!1;function Zg(e){lr===null?lr=[e]:lr.push(e)}function Zb(e){jl=!0,Zg(e)}function hn(){if(!Sc&&lr!==null){Sc=!0;var e=0,t=se;try{var r=lr;for(se=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}lr=null,jl=!1}catch(s){throw lr!==null&&(lr=lr.slice(e+1)),kg(Id,hn),s}finally{se=t,Sc=!1}}return null}var Cs=[],Ts=0,Xa=null,Za=0,vt=[],yt=0,Dn=null,ur=1,dr="";function wn(e,t){Cs[Ts++]=Za,Cs[Ts++]=Xa,Xa=e,Za=t}function ev(e,t,r){vt[yt++]=ur,vt[yt++]=dr,vt[yt++]=Dn,Dn=e;var n=ur;e=dr;var s=32-$t(n)-1;n&=~(1<<s),r+=1;var o=32-$t(t)+s;if(30<o){var i=s-s%5;o=(n&(1<<i)-1).toString(32),n>>=i,s-=i,ur=1<<32-$t(t)+s|r<<s|n,dr=o+e}else ur=1<<o|r<<s|n,dr=e}function Wd(e){e.return!==null&&(wn(e,1),ev(e,1,0))}function Vd(e){for(;e===Xa;)Xa=Cs[--Ts],Cs[Ts]=null,Za=Cs[--Ts],Cs[Ts]=null;for(;e===Dn;)Dn=vt[--yt],vt[yt]=null,dr=vt[--yt],vt[yt]=null,ur=vt[--yt],vt[yt]=null}var ct=null,lt=null,fe=!1,Mt=null;function tv(e,t){var r=wt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Lf(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,lt=Xr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Dn!==null?{id:ur,overflow:dr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=wt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ct=e,lt=null,!0):!1;default:return!1}}function Pu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nu(e){if(fe){var t=lt;if(t){var r=t;if(!Lf(e,t)){if(Pu(e))throw Error(N(418));t=Xr(r.nextSibling);var n=ct;t&&Lf(e,t)?tv(n,r):(e.flags=e.flags&-4097|2,fe=!1,ct=e)}}else{if(Pu(e))throw Error(N(418));e.flags=e.flags&-4097|2,fe=!1,ct=e}}}function Mf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function ta(e){if(e!==ct)return!1;if(!fe)return Mf(e),fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Eu(e.type,e.memoizedProps)),t&&(t=lt)){if(Pu(e))throw rv(),Error(N(418));for(;t;)tv(e,t),t=Xr(t.nextSibling)}if(Mf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){lt=Xr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ct?Xr(e.stateNode.nextSibling):null;return!0}function rv(){for(var e=lt;e;)e=Xr(e.nextSibling)}function Xs(){lt=ct=null,fe=!1}function Hd(e){Mt===null?Mt=[e]:Mt.push(e)}var e1=xr.ReactCurrentBatchConfig;function ko(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(N(309));var n=r.stateNode}if(!n)throw Error(N(147,e));var s=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(N(284));if(!r._owner)throw Error(N(290,e))}return e}function ra(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $f(e){var t=e._init;return t(e._payload)}function nv(e){function t(v,g){if(e){var w=v.deletions;w===null?(v.deletions=[g],v.flags|=16):w.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=rn(v,g),v.index=0,v.sibling=null,v}function o(v,g,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<g?(v.flags|=2,g):w):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,g,w,_){return g===null||g.tag!==6?(g=Nc(w,v.mode,_),g.return=v,g):(g=s(g,w),g.return=v,g)}function l(v,g,w,_){var S=w.type;return S===xs?d(v,g,w.props.children,_,w.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ir&&$f(S)===g.type)?(_=s(g,w.props),_.ref=ko(v,g,w),_.return=v,_):(_=La(w.type,w.key,w.props,null,v.mode,_),_.ref=ko(v,g,w),_.return=v,_)}function c(v,g,w,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Rc(w,v.mode,_),g.return=v,g):(g=s(g,w.children||[]),g.return=v,g)}function d(v,g,w,_,S){return g===null||g.tag!==7?(g=Mn(w,v.mode,_,S),g.return=v,g):(g=s(g,w),g.return=v,g)}function h(v,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Nc(""+g,v.mode,w),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Hi:return w=La(g.type,g.key,g.props,null,v.mode,w),w.ref=ko(v,null,g),w.return=v,w;case ws:return g=Rc(g,v.mode,w),g.return=v,g;case Ir:var _=g._init;return h(v,_(g._payload),w)}if(Ao(g)||wo(g))return g=Mn(g,v.mode,w,null),g.return=v,g;ra(v,g)}return null}function p(v,g,w,_){var S=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:a(v,g,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Hi:return w.key===S?l(v,g,w,_):null;case ws:return w.key===S?c(v,g,w,_):null;case Ir:return S=w._init,p(v,g,S(w._payload),_)}if(Ao(w)||wo(w))return S!==null?null:d(v,g,w,_,null);ra(v,w)}return null}function f(v,g,w,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(w)||null,a(g,v,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Hi:return v=v.get(_.key===null?w:_.key)||null,l(g,v,_,S);case ws:return v=v.get(_.key===null?w:_.key)||null,c(g,v,_,S);case Ir:var k=_._init;return f(v,g,w,k(_._payload),S)}if(Ao(_)||wo(_))return v=v.get(w)||null,d(g,v,_,S,null);ra(g,_)}return null}function x(v,g,w,_){for(var S=null,k=null,E=g,j=g=0,R=null;E!==null&&j<w.length;j++){E.index>j?(R=E,E=null):R=E.sibling;var O=p(v,E,w[j],_);if(O===null){E===null&&(E=R);break}e&&E&&O.alternate===null&&t(v,E),g=o(O,g,j),k===null?S=O:k.sibling=O,k=O,E=R}if(j===w.length)return r(v,E),fe&&wn(v,j),S;if(E===null){for(;j<w.length;j++)E=h(v,w[j],_),E!==null&&(g=o(E,g,j),k===null?S=E:k.sibling=E,k=E);return fe&&wn(v,j),S}for(E=n(v,E);j<w.length;j++)R=f(E,v,j,w[j],_),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?j:R.key),g=o(R,g,j),k===null?S=R:k.sibling=R,k=R);return e&&E.forEach(function(B){return t(v,B)}),fe&&wn(v,j),S}function m(v,g,w,_){var S=wo(w);if(typeof S!="function")throw Error(N(150));if(w=S.call(w),w==null)throw Error(N(151));for(var k=S=null,E=g,j=g=0,R=null,O=w.next();E!==null&&!O.done;j++,O=w.next()){E.index>j?(R=E,E=null):R=E.sibling;var B=p(v,E,O.value,_);if(B===null){E===null&&(E=R);break}e&&E&&B.alternate===null&&t(v,E),g=o(B,g,j),k===null?S=B:k.sibling=B,k=B,E=R}if(O.done)return r(v,E),fe&&wn(v,j),S;if(E===null){for(;!O.done;j++,O=w.next())O=h(v,O.value,_),O!==null&&(g=o(O,g,j),k===null?S=O:k.sibling=O,k=O);return fe&&wn(v,j),S}for(E=n(v,E);!O.done;j++,O=w.next())O=f(E,v,j,O.value,_),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?j:O.key),g=o(O,g,j),k===null?S=O:k.sibling=O,k=O);return e&&E.forEach(function(M){return t(v,M)}),fe&&wn(v,j),S}function b(v,g,w,_){if(typeof w=="object"&&w!==null&&w.type===xs&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Hi:e:{for(var S=w.key,k=g;k!==null;){if(k.key===S){if(S=w.type,S===xs){if(k.tag===7){r(v,k.sibling),g=s(k,w.props.children),g.return=v,v=g;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ir&&$f(S)===k.type){r(v,k.sibling),g=s(k,w.props),g.ref=ko(v,k,w),g.return=v,v=g;break e}r(v,k);break}else t(v,k);k=k.sibling}w.type===xs?(g=Mn(w.props.children,v.mode,_,w.key),g.return=v,v=g):(_=La(w.type,w.key,w.props,null,v.mode,_),_.ref=ko(v,g,w),_.return=v,v=_)}return i(v);case ws:e:{for(k=w.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){r(v,g.sibling),g=s(g,w.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=Rc(w,v.mode,_),g.return=v,v=g}return i(v);case Ir:return k=w._init,b(v,g,k(w._payload),_)}if(Ao(w))return x(v,g,w,_);if(wo(w))return m(v,g,w,_);ra(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,w),g.return=v,v=g):(r(v,g),g=Nc(w,v.mode,_),g.return=v,v=g),i(v)):r(v,g)}return b}var Zs=nv(!0),sv=nv(!1),el=dn(null),tl=null,js=null,qd=null;function Kd(){qd=js=tl=null}function Gd(e){var t=el.current;de(el),e._currentValue=t}function Ru(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ms(e,t){tl=e,qd=js=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function bt(e){var t=e._currentValue;if(qd!==e)if(e={context:e,memoizedValue:t,next:null},js===null){if(tl===null)throw Error(N(308));js=e,tl.dependencies={lanes:0,firstContext:e}}else js=js.next=e;return t}var Cn=null;function Qd(e){Cn===null?Cn=[e]:Cn.push(e)}function ov(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,Qd(t)):(r.next=s.next,s.next=r),t.interleaved=r,mr(e,n)}function mr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Lr=!1;function Jd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,te&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,mr(e,r)}return s=n.interleaved,s===null?(t.next=t,Qd(n)):(t.next=s.next,s.next=t),n.interleaved=t,mr(e,r)}function Pa(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ld(e,r)}}function Df(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?s=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?s=o=t:o=o.next=t}else s=o=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function rl(e,t,r,n){var s=e.updateQueue;Lr=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?o=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(o!==null){var h=s.baseState;i=0,d=c=l=null,a=o;do{var p=a.lane,f=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,m=a;switch(p=t,f=r,m.tag){case 1:if(x=m.payload,typeof x=="function"){h=x.call(f,h,p);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=m.payload,p=typeof x=="function"?x.call(f,h,p):x,p==null)break e;h=ve({},h,p);break e;case 2:Lr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=f,l=h):d=d.next=f,i|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Fn|=i,e.lanes=i,e.memoizedState=h}}function Uf(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(N(191,s));s.call(n)}}}var Ri={},Xt=dn(Ri),oi=dn(Ri),ii=dn(Ri);function Tn(e){if(e===Ri)throw Error(N(174));return e}function Yd(e,t){switch(le(ii,t),le(oi,e),le(Xt,Ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:du(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=du(t,e)}de(Xt),le(Xt,t)}function eo(){de(Xt),de(oi),de(ii)}function av(e){Tn(ii.current);var t=Tn(Xt.current),r=du(t,e.type);t!==r&&(le(oi,e),le(Xt,r))}function Xd(e){oi.current===e&&(de(Xt),de(oi))}var me=dn(0);function nl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kc=[];function Zd(){for(var e=0;e<kc.length;e++)kc[e]._workInProgressVersionPrimary=null;kc.length=0}var Na=xr.ReactCurrentDispatcher,Ec=xr.ReactCurrentBatchConfig,Un=0,ge=null,Te=null,Pe=null,sl=!1,zo=!1,ai=0,t1=0;function Ue(){throw Error(N(321))}function eh(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ut(e[r],t[r]))return!1;return!0}function th(e,t,r,n,s,o){if(Un=o,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Na.current=e===null||e.memoizedState===null?o1:i1,e=r(n,s),zo){o=0;
vendor: 5,553 bytes, line 38
38do{if(zo=!1,ai=0,25<=o)throw Error(N(301));o+=1,Pe=Te=null,t.updateQueue=null,Na.current=a1,e=r(n,s)}while(zo)}if(Na.current=ol,t=Te!==null&&Te.next!==null,Un=0,Pe=Te=ge=null,sl=!1,t)throw Error(N(300));return e}function rh(){var e=ai!==0;return ai=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?ge.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function _t(){if(Te===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Pe===null?ge.memoizedState:Pe.next;if(t!==null)Pe=t,Te=e;else{if(e===null)throw Error(N(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Pe===null?ge.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function li(e,t){return typeof t=="function"?t(e):t}function Cc(e){var t=_t(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=Te,s=n.baseQueue,o=r.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}n.baseQueue=s=o,r.pending=null}if(s!==null){o=s.next,n=n.baseState;var a=i=null,l=null,c=o;do{var d=c.lane;if((Un&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,i=n):l=l.next=h,ge.lanes|=d,Fn|=d}c=c.next}while(c!==null&&c!==o);l===null?i=n:l.next=a,Ut(n,t.memoizedState)||(et=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do o=s.lane,ge.lanes|=o,Fn|=o,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Tc(e){var t=_t(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,o=t.memoizedState;if(s!==null){r.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Ut(o,t.memoizedState)||(et=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function lv(){}function cv(e,t){var r=ge,n=_t(),s=t(),o=!Ut(n.memoizedState,s);if(o&&(n.memoizedState=s,et=!0),n=n.queue,nh(hv.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Pe!==null&&Pe.memoizedState.tag&1){if(r.flags|=2048,ci(9,dv.bind(null,r,n,s,t),void 0,null),Ne===null)throw Error(N(349));Un&30||uv(r,t,s)}return s}function uv(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function dv(e,t,r,n){t.value=r,t.getSnapshot=n,fv(t)&&pv(e)}function hv(e,t,r){return r(function(){fv(t)&&pv(e)})}function fv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ut(e,r)}catch{return!0}}function pv(e){var t=mr(e,1);t!==null&&Dt(t,e,1,-1)}function Ff(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:e},t.queue=e,e=e.dispatch=s1.bind(null,ge,e),[t.memoizedState,e]}function ci(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function mv(){return _t().memoizedState}function Ra(e,t,r,n){var s=Vt();ge.flags|=e,s.memoizedState=ci(1|t,r,void 0,n===void 0?null:n)}function Pl(e,t,r,n){var s=_t();n=n===void 0?null:n;var o=void 0;if(Te!==null){var i=Te.memoizedState;if(o=i.destroy,n!==null&&eh(n,i.deps)){s.memoizedState=ci(t,r,o,n);return}}ge.flags|=e,s.memoizedState=ci(1|t,r,o,n)}function zf(e,t){return Ra(8390656,8,e,t)}function nh(e,t){return Pl(2048,8,e,t)}function gv(e,t){return Pl(4,2,e,t)}function vv(e,t){return Pl(4,4,e,t)}function yv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wv(e,t,r){return r=r!=null?r.concat([e]):null,Pl(4,4,yv.bind(null,t,e),r)}function sh(){}function xv(e,t){var r=_t();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eh(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function bv(e,t){var r=_t();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eh(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function _v(e,t,r){return Un&21?(Ut(r,t)||(r=Tg(),ge.lanes|=r,Fn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=r)}function r1(e,t){var r=se;se=r!==0&&4>r?r:4,e(!0);var n=Ec.transition;Ec.transition={};try{e(!1),t()}finally{se=r,Ec.transition=n}}function Sv(){return _t().memoizedState}function n1(e,t,r){var n=tn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},kv(e))Ev(t,r);else if(r=ov(e,t,r,n),r!==null){var s=Qe();Dt(r,e,n,s),Cv(r,t,n)}}function s1(e,t,r){var n=tn(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(kv(e))Ev(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,r);if(s.hasEagerState=!0,s.eagerState=a,Ut(a,i)){var l=t.interleaved;l===null?(s.next=s,Qd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=ov(e,t,s,n),r!==null&&(s=Qe(),Dt(r,e,n,s),Cv(r,t,n))}}function kv(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Ev(e,t){zo=sl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Cv(e,t,r){if(r&4194240){var n=t.lanes;
vendor: 6,961 bytes, lines 38-40
38n&=e.pendingLanes,r|=n,t.lanes=r,Ld(e,r)}}var ol={readContext:bt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},o1={readContext:bt,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:zf,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ra(4194308,4,yv.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var r=Vt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Vt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=n1.bind(null,ge,e),[n.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:Ff,useDebugValue:sh,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=Ff(!1),t=e[0];return e=r1.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ge,s=Vt();if(fe){if(r===void 0)throw Error(N(407));r=r()}else{if(r=t(),Ne===null)throw Error(N(349));Un&30||uv(n,t,r)}s.memoizedState=r;var o={value:r,getSnapshot:t};return s.queue=o,zf(hv.bind(null,n,o,e),[e]),n.flags|=2048,ci(9,dv.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Vt(),t=Ne.identifierPrefix;if(fe){var r=dr,n=ur;r=(n&~(1<<32-$t(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ai++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=t1++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},i1={readContext:bt,useCallback:xv,useContext:bt,useEffect:nh,useImperativeHandle:wv,useInsertionEffect:gv,useLayoutEffect:vv,useMemo:bv,useReducer:Cc,useRef:mv,useState:function(){return Cc(li)},useDebugValue:sh,useDeferredValue:function(e){var t=_t();return _v(t,Te.memoizedState,e)},useTransition:function(){var e=Cc(li)[0],t=_t().memoizedState;return[e,t]},useMutableSource:lv,useSyncExternalStore:cv,useId:Sv,unstable_isNewReconciler:!1},a1={readContext:bt,useCallback:xv,useContext:bt,useEffect:nh,useImperativeHandle:wv,useInsertionEffect:gv,useLayoutEffect:vv,useMemo:bv,useReducer:Tc,useRef:mv,useState:function(){return Tc(li)},useDebugValue:sh,useDeferredValue:function(e){var t=_t();return Te===null?t.memoizedState=e:_v(t,Te.memoizedState,e)},useTransition:function(){var e=Tc(li)[0],t=_t().memoizedState;return[e,t]},useMutableSource:lv,useSyncExternalStore:cv,useId:Sv,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Au(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ve({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Nl={isMounted:function(e){return(e=e._reactInternals)?Hn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Qe(),s=tn(e),o=hr(n,s);o.payload=t,r!=null&&(o.callback=r),t=Zr(e,o,s),t!==null&&(Dt(t,e,s,n),Pa(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Qe(),s=tn(e),o=hr(n,s);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Zr(e,o,s),t!==null&&(Dt(t,e,s,n),Pa(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Qe(),n=tn(e),s=hr(r,n);s.tag=2,t!=null&&(s.callback=t),t=Zr(e,s,n),t!==null&&(Dt(t,e,n,r),Pa(t,e,n))}};function Bf(e,t,r,n,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!ti(r,n)||!ti(s,o):!0}function Tv(e,t,r){var n=!1,s=an,o=t.contextType;return typeof o=="object"&&o!==null?o=bt(o):(s=rt(t)?$n:Ve.current,n=t.contextTypes,o=(n=n!=null)?Ys(e,s):an),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Nl,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function Wf(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Nl.enqueueReplaceState(t,t.state,null)}function Ou(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},Jd(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=bt(o):(o=rt(t)?$n:Ve.current,s.context=Ys(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Au(e,t,o,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Nl.enqueueReplaceState(s,s.state,null),rl(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function to(e,t){try{var r="",n=t;do r+=Lx(n),n=n.return;while(n);var s=r}catch(o){s=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:s,digest:null}}function jc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Iu(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var l1=typeof WeakMap=="function"?WeakMap:Map;function jv(e,t,r){r=hr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){al||(al=!0,Vu=n),Iu(e,t)},r}function Pv(e,t,r){r=hr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){Iu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Iu(e,t),typeof n!="function"&&(en===null?en=new Set([this]):en.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Vf(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new l1;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=_1.bind(null,e,t,r),t.then(e,e))}function Hf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function qf(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=hr(-1,1),t.tag=2,Zr(r,t,1))),r.lanes|=1),e)}var c1=xr.ReactCurrentOwner,et=!1;function Ke(e,t,r,n){t.child=e===null?sv(t,null,r,n):Zs(t,e.child,r,n)}function Kf(e,t,r,n,s){r=r.render;var o=t.ref;
vendor: 6,220 bytes, line 40
40return Ms(t,s),n=th(e,t,r,n,o,s),r=rh(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,gr(e,t,s)):(fe&&r&&Wd(t),t.flags|=1,Ke(e,t,n,s),t.child)}function Gf(e,t,r,n,s){if(e===null){var o=r.type;return typeof o=="function"&&!hh(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,Nv(e,t,o,n,s)):(e=La(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:ti,r(i,n)&&e.ref===t.ref)return gr(e,t,s)}return t.flags|=1,e=rn(o,n),e.ref=t.ref,e.return=t,t.child=e}function Nv(e,t,r,n,s){if(e!==null){var o=e.memoizedProps;if(ti(o,n)&&e.ref===t.ref)if(et=!1,t.pendingProps=n=o,(e.lanes&s)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,gr(e,t,s)}return Lu(e,t,r,n,s)}function Rv(e,t,r){var n=t.pendingProps,s=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Ns,ot),ot|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(Ns,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,le(Ns,ot),ot|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,le(Ns,ot),ot|=n;return Ke(e,t,s,r),t.child}function Av(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Lu(e,t,r,n,s){var o=rt(r)?$n:Ve.current;return o=Ys(t,o),Ms(t,s),r=th(e,t,r,n,o,s),n=rh(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,gr(e,t,s)):(fe&&n&&Wd(t),t.flags|=1,Ke(e,t,r,s),t.child)}function Qf(e,t,r,n,s){if(rt(r)){var o=!0;Ya(t)}else o=!1;if(Ms(t,s),t.stateNode===null)Aa(e,t),Tv(t,r,n),Ou(t,r,n,s),n=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=r.contextType;typeof c=="object"&&c!==null?c=bt(c):(c=rt(r)?$n:Ve.current,c=Ys(t,c));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==n||l!==c)&&Wf(t,i,n,c),Lr=!1;var p=t.memoizedState;i.state=p,rl(t,n,i,s),l=t.memoizedState,a!==n||p!==l||tt.current||Lr?(typeof d=="function"&&(Au(t,r,d,n),l=t.memoizedState),(a=Lr||Bf(t,r,a,n,p,l,c))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,iv(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Pt(t.type,a),i.props=c,h=t.pendingProps,p=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=bt(l):(l=rt(r)?$n:Ve.current,l=Ys(t,l));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==h||p!==l)&&Wf(t,i,n,l),Lr=!1,p=t.memoizedState,i.state=p,rl(t,n,i,s);var x=t.memoizedState;a!==h||p!==x||tt.current||Lr?(typeof f=="function"&&(Au(t,r,f,n),x=t.memoizedState),(c=Lr||Bf(t,r,c,n,p,x,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,x,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,x,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=x),i.props=n,i.state=x,i.context=l,n=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return Mu(e,t,r,n,o,s)}function Mu(e,t,r,n,s,o){Av(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return s&&If(t,r,!1),gr(e,t,o);n=t.stateNode,c1.current=t;var a=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Zs(t,e.child,null,o),t.child=Zs(t,null,a,o)):Ke(e,t,a,o),t.memoizedState=n.state,s&&If(t,r,!0),t.child}function Ov(e){var t=e.stateNode;t.pendingContext?Of(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Of(e,t.context,!1),Yd(e,t.containerInfo)}function Jf(e,t,r,n,s){return Xs(),Hd(s),t.flags|=256,Ke(e,t,r,n),t.child}var $u={dehydrated:null,treeContext:null,retryLane:0};function Du(e){return{baseLanes:e,cachePool:null,transitions:null}}function Iv(e,t,r){var n=t.pendingProps,s=me.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),le(me,s&1),e===null)return Nu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Ol(i,n,0,null),e=Mn(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Du(r),t.memoizedState=$u,e):oh(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return u1(e,t,i,n,a,s,r);if(o){o=n.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=rn(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=rn(a,o):(o=Mn(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?Du(r):{base
vendor: 8,213 bytes, line 40
40Lanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=$u,n}return o=e.child,e=o.sibling,n=rn(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function oh(e,t){return t=Ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function na(e,t,r,n){return n!==null&&Hd(n),Zs(t,e.child,null,r),e=oh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function u1(e,t,r,n,s,o,i){if(r)return t.flags&256?(t.flags&=-257,n=jc(Error(N(422))),na(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,s=t.mode,n=Ol({mode:"visible",children:n.children},s,0,null),o=Mn(o,s,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Zs(t,e.child,null,i),t.child.memoizedState=Du(i),t.memoizedState=$u,o);if(!(t.mode&1))return na(e,t,i,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(N(419)),n=jc(o,n,void 0),na(e,t,i,n)}if(a=(i&e.childLanes)!==0,et||a){if(n=Ne,n!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,mr(e,s),Dt(n,e,s,-1))}return dh(),n=jc(Error(N(421))),na(e,t,i,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=S1.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,lt=Xr(s.nextSibling),ct=t,fe=!0,Mt=null,e!==null&&(vt[yt++]=ur,vt[yt++]=dr,vt[yt++]=Dn,ur=e.id,dr=e.overflow,Dn=t),t=oh(t,n.children),t.flags|=4096,t)}function Yf(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ru(e.return,t,r)}function Pc(e,t,r,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=s)}function Lv(e,t,r){var n=t.pendingProps,s=n.revealOrder,o=n.tail;if(Ke(e,t,n.children,r),n=me.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yf(e,r,t);else if(e.tag===19)Yf(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(le(me,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&nl(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Pc(t,!1,s,r,o);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&nl(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Pc(t,!0,r,null,o);break;case"together":Pc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Aa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,r=rn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=rn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function d1(e,t,r){switch(t.tag){case 3:Ov(t),Xs();break;case 5:av(t);break;case 1:rt(t.type)&&Ya(t);break;case 4:Yd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;le(el,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(le(me,me.current&1),t.flags|=128,null):r&t.child.childLanes?Iv(e,t,r):(le(me,me.current&1),e=gr(e,t,r),e!==null?e.sibling:null);le(me,me.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Lv(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),le(me,me.current),n)break;return null;case 22:case 23:return t.lanes=0,Rv(e,t,r)}return gr(e,t,r)}var Mv,Uu,$v,Dv;Mv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Uu=function(){};$v=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,Tn(Xt.current);var o=null;switch(r){case"input":s=au(e,s),n=au(e,n),o=[];break;case"select":s=ve({},s,{value:void 0}),n=ve({},n,{value:void 0}),o=[];break;case"textarea":s=uu(e,s),n=uu(e,n),o=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Qa)}hu(r,n);var i;r=null;for(c in s)if(!n.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Go.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var l=n[c];if(a=s!=null?s[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Go.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ue("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Dv=function(e,t,r,n){r!==n&&(t.flags|=4)};function Eo(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function h1(e,t,r){var n=t.pendingProps;switch(Vd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return rt(t.type)&&Ja(),Fe(t),null;case 3:return n=t.stateNode,eo(),de(tt),de(Ve),Zd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ta(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mt!==null&&(Ku(Mt),Mt=null))),Uu(e,t),Fe(t),null;case 5:Xd(t);var s=Tn(ii.current);if(r=t.type,e!==null&&t.stateNode!=null)$v(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(N(166));return Fe(t),null}if(e=Tn(Xt.current),ta(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Gt]=t,n[si]=o,e=(t.mode&1)!==0,r){case"dialog":ue("cancel",n),ue("close",n);break;case"iframe":case"object":case"embed":ue("load",n);break;case"video":case"audio":for(s=0;s<Io.length;s++)ue(Io[s],n);break;case"source":ue("error",n);break;case"img":case"image":case"link":ue("error",n),ue("load",n);break;case"details":ue("toggle",n);break;case"input":of(n,o),ue("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},ue("invalid",n);break;case"textarea":lf(n,o),ue("invalid",n)}hu(r,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];
vendor: 30,254 bytes, line 40
40i==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&ea(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&ea(n.textContent,a,e),s=["children",""+a]):Go.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ue("scroll",n)}switch(r){case"input":qi(n),af(n,o,!0);break;case"textarea":qi(n),cf(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Qa)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=hg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Gt]=t,e[si]=n,Mv(e,t,!1,!1),t.stateNode=e;e:{switch(i=fu(r,n),r){case"dialog":ue("cancel",e),ue("close",e),s=n;break;case"iframe":case"object":case"embed":ue("load",e),s=n;break;case"video":case"audio":for(s=0;s<Io.length;s++)ue(Io[s],e);s=n;break;case"source":ue("error",e),s=n;break;case"img":case"image":case"link":ue("error",e),ue("load",e),s=n;break;case"details":ue("toggle",e),s=n;break;case"input":of(e,n),s=au(e,n),ue("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=ve({},n,{value:void 0}),ue("invalid",e);break;case"textarea":lf(e,n),s=uu(e,n),ue("invalid",e);break;default:s=n}hu(r,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?mg(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&fg(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Qo(e,l):typeof l=="number"&&Qo(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Go.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ue("scroll",e):l!=null&&Pd(e,o,l,i))}switch(r){case"input":qi(e),af(e,n,!1);break;case"textarea":qi(e),cf(e);break;case"option":n.value!=null&&e.setAttribute("value",""+on(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?As(e,!!n.multiple,o,!1):n.defaultValue!=null&&As(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Qa)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)Dv(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(N(166));if(r=Tn(ii.current),Tn(Xt.current),ta(t)){if(n=t.stateNode,r=t.memoizedProps,n[Gt]=t,(o=n.nodeValue!==r)&&(e=ct,e!==null))switch(e.tag){case 3:ea(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ea(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Gt]=t,t.stateNode=n}return Fe(t),null;case 13:if(de(me),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&<!==null&&t.mode&1&&!(t.flags&128))rv(),Xs(),t.flags|=98560,o=!1;else if(o=ta(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(N(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(N(317));o[Gt]=t}else Xs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),o=!1}else Mt!==null&&(Ku(Mt),Mt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||me.current&1?je===0&&(je=3):dh())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return eo(),Uu(e,t),e===null&&ri(t.stateNode.containerInfo),Fe(t),null;case 10:return Gd(t.type._context),Fe(t),null;case 17:return rt(t.type)&&Ja(),Fe(t),null;case 19:if(de(me),o=t.memoizedState,o===null)return Fe(t),null;if(n=(t.flags&128)!==0,i=o.rendering,i===null)if(n)Eo(o,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=nl(e),i!==null){for(t.flags|=128,Eo(o,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return le(me,me.current&1|2),t.child}e=e.sibling}o.tail!==null&&be()>ro&&(t.flags|=128,n=!0,Eo(o,!1),t.lanes=4194304)}else{if(!n)if(e=nl(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Eo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!fe)return Fe(t),null}else 2*be()-o.renderingStartTime>ro&&r!==1073741824&&(t.flags|=128,n=!0,Eo(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=be(),t.sibling=null,r=me.current,le(me,n?r&1|2:r&1),t):(Fe(t),null);case 22:case 23:return uh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ot&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function f1(e,t){switch(Vd(t),t.tag){case 1:return rt(t.type)&&Ja(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return eo(),de(tt),de(Ve),Zd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xd(t),null;case 13:if(de(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Xs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(me),null;case 4:return eo(),null;case 10:return Gd(t.type._context),null;case 22:case 23:return uh(),null;case 24:return null;default:return null}}var sa=!1,Be=!1,p1=typeof WeakSet=="function"?WeakSet:Set,$=null;function Ps(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){xe(e,t,n)}else r.current=null}function Fu(e,t,r){try{r()}catch(n){xe(e,t,n)}}var Xf=!1;function m1(e,t){if(Su=qa,e=Wg(),Bd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,a=-1,l=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||s!==0&&h.nodeType!==3||(a=i+s),h!==o||n!==0&&h.nodeType!==3||(l=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++c===s&&(a=i),p===o&&++d===n&&(l=i),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ku={focusedElem:e,selectionRange:r},qa=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var m=x.memoizedProps,b=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Pt(t.type,m),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(_){xe(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return x=Xf,Xf=!1,x}function Bo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Fu(t,r,o)}s=s.next}while(s!==n)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zu(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Uv(e){var t=e.alternate;t!==null&&(e.alternate=null,Uv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gt],delete t[si],delete t[Tu],delete t[Yb],delete t[Xb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fv(e){return e.tag===5||e.tag===3||e.tag===4}function Zf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Qa));else if(n!==4&&(e=e.child,e!==null))for(Bu(e,t,r),e=e.sibling;e!==null;)Bu(e,t,r),e=e.sibling}function Wu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Wu(e,t,r),e=e.sibling;e!==null;)Wu(e,t,r),e=e.sibling}var Oe=null,It=!1;function Pr(e,t,r){for(r=r.child;r!==null;)zv(e,t,r),r=r.sibling}function zv(e,t,r){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(Sl,r)}catch{}switch(r.tag){case 5:Be||Ps(r,t);case 6:var n=Oe,s=It;Oe=null,Pr(e,t,r),Oe=n,It=s,Oe!==null&&(It?(e=Oe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Oe.removeChild(r.stateNode));break;case 18:Oe!==null&&(It?(e=Oe,r=r.stateNode,e.nodeType===8?_c(e.parentNode,r):e.nodeType===1&&_c(e,r),Zo(e)):_c(Oe,r.stateNode));break;case 4:n=Oe,s=It,Oe=r.stateNode.containerInfo,It=!0,Pr(e,t,r),Oe=n,It=s;break;case 0:case 11:case 14:case 15:if(!Be&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Fu(r,t,i),s=s.next}while(s!==n)}Pr(e,t,r);break;case 1:if(!Be&&(Ps(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){xe(r,t,a)}Pr(e,t,r);break;case 21:Pr(e,t,r);break;case 22:r.mode&1?(Be=(n=Be)||r.memoizedState!==null,Pr(e,t,r),Be=n):Pr(e,t,r);break;default:Pr(e,t,r)}}function ep(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new p1),t.forEach(function(n){var s=k1.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function Ct(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Oe=a.stateNode,It=!1;break e;case 3:Oe=a.stateNode.containerInfo,It=!0;break e;case 4:Oe=a.stateNode.containerInfo,It=!0;break e}a=a.return}if(Oe===null)throw Error(N(160));zv(o,i,s),Oe=null,It=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){xe(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bv(t,e),t=t.sibling}function Bv(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Wt(e),n&4){try{Bo(3,e,e.return),Rl(3,e)}catch(m){xe(e,e.return,m)}try{Bo(5,e,e.return)}catch(m){xe(e,e.return,m)}}break;case 1:Ct(t,e),Wt(e),n&512&&r!==null&&Ps(r,r.return);break;case 5:if(Ct(t,e),Wt(e),n&512&&r!==null&&Ps(r,r.return),e.flags&32){var s=e.stateNode;try{Qo(s,"")}catch(m){xe(e,e.return,m)}}if(n&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&ug(s,o),fu(a,i);var c=fu(a,o);for(i=0;i<l.length;i+=2){var d=l[i],h=l[i+1];d==="style"?mg(s,h):d==="dangerouslySetInnerHTML"?fg(s,h):d==="children"?Qo(s,h):Pd(s,d,h,c)}switch(a){case"input":lu(s,o);break;case"textarea":dg(s,o);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?As(s,!!o.multiple,f,!1):p!==!!o.multiple&&(o.defaultValue!=null?As(s,!!o.multiple,o.defaultValue,!0):As(s,!!o.multiple,o.multiple?[]:"",!1))}s[si]=o}catch(m){xe(e,e.return,m)}}break;case 6:if(Ct(t,e),Wt(e),n&4){if(e.stateNode===null)throw Error(N(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(m){xe(e,e.return,m)}}break;case 3:if(Ct(t,e),Wt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Zo(t.containerInfo)}catch(m){xe(e,e.return,m)}break;case 4:Ct(t,e),Wt(e);break;case 13:Ct(t,e),Wt(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(lh=be())),n&4&&ep(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Be=(c=Be)||d,Ct(t,e),Be=c):Ct(t,e),Wt(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for($=e,d=e.child;d!==null;){for(h=$=d;$!==null;){switch(p=$,f=p.child,p.tag){case 0:case 11:case 14:case 15:Bo(4,p,p.return);break;case 1:Ps(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(m){xe(n,r,m)}}break;case 5:Ps(p,p.return);break;case 22:if(p.memoizedState!==null){rp(h);continue}}f!==null?(f.return=p,$=f):rp(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=pg("display",i))}catch(m){xe(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){xe(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ct(t,e),Wt(e),n&4&&ep(e);break;case 21:break;default:Ct(t,e),Wt(e)}}function Wt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Fv(r)){var n=r;break e}r=r.return}throw Error(N(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Qo(s,""),n.flags&=-33);var o=Zf(e);Wu(e,o,s);break;case 3:case 4:var i=n.stateNode.containerInfo,a=Zf(e);Bu(e,a,i);break;default:throw Error(N(161))}}catch(l){xe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function g1(e,t,r){$=e,Wv(e)}function Wv(e,t,r){for(var n=(e.mode&1)!==0;$!==null;){var s=$,o=s.child;if(s.tag===22&&n){var i=s.memoizedState!==null||sa;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Be;a=sa;var c=Be;if(sa=i,(Be=l)&&!c)for($=s;$!==null;)i=$,l=i.child,i.tag===22&&i.memoizedState!==null?np(s):l!==null?(l.return=i,$=l):np(s);for(;o!==null;)$=o,Wv(o),o=o.sibling;$=s,sa=a,Be=c}tp(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,$=o):tp(e)}}function tp(e){for(;$!==null;){var t=$;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Rl(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Be)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:Pt(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Uf(t,o,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Uf(t,i,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Zo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Be||t.flags&512&&zu(t)}catch(p){xe(t,t.return,p)}}if(t===e){$=null;break}if(r=t.sibling,r!==null){r.return=t.return,$=r;break}$=t.return}}function rp(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var r=t.sibling;if(r!==null){r.return=t.return,$=r;break}$=t.return}}function np(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Rl(4,t)}catch(l){xe(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(l){xe(t,s,l)}}var o=t.return;try{zu(t)}catch(l){xe(t,o,l)}break;case 5:var i=t.return;try{zu(t)}catch(l){xe(t,i,l)}}}catch(l){xe(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var v1=Math.ceil,il=xr.ReactCurrentDispatcher,ih=xr.ReactCurrentOwner,xt=xr.ReactCurrentBatchConfig,te=0,Ne=null,ke=null,Ie=0,ot=0,Ns=dn(0),je=0,ui=null,Fn=0,Al=0,ah=0,Wo=null,Ze=null,lh=0,ro=1/0,ir=null,al=!1,Vu=null,en=null,oa=!1,Kr=null,ll=0,Vo=0,Hu=null,Oa=-1,Ia=0;function Qe(){return te&6?be():Oa!==-1?Oa:Oa=be()}function tn(e){return e.mode&1?te&2&&Ie!==0?Ie&-Ie:e1.transition!==null?(Ia===0&&(Ia=Tg()),Ia):(e=se,e!==0||(e=window.event,e=e===void 0?16:Ig(e.type)),e):1}function Dt(e,t,r,n){if(50<Vo)throw Vo=0,Hu=null,Error(N(185));ji(e,r,n),(!(te&2)||e!==Ne)&&(e===Ne&&(!(te&2)&&(Al|=r),je===4&&Dr(e,Ie)),nt(e,n),r===1&&te===0&&!(t.mode&1)&&(ro=be()+500,jl&&hn()))}function nt(e,t){var r=e.callbackNode;eb(e,t);var n=Ha(e,e===Ne?Ie:0);if(n===0)r!==null&&hf(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&hf(r),t===1)e.tag===0?Zb(sp.bind(null,e)):Zg(sp.bind(null,e)),Qb(function(){!(te&6)&&hn()}),r=null;else{switch(jg(n)){case 1:r=Id;break;case 4:r=Eg;break;case 16:r=Va;break;case 536870912:r=Cg;break;default:r=Va}r=Yv(r,Vv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Vv(e,t){if(Oa=-1,Ia=0,te&6)throw Error(N(327));var r=e.callbackNode;if($s()&&e.callbackNode!==r)return null;var n=Ha(e,e===Ne?Ie:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=cl(e,n);else{t=n;var s=te;te|=2;var o=qv();(Ne!==e||Ie!==t)&&(ir=null,ro=be()+500,Ln(e,t));do try{x1();break}catch(a){Hv(e,a)}while(!0);Kd(),il.current=o,te=s,ke!==null?t=0:(Ne=null,Ie=0,t=je)}if(t!==0){if(t===2&&(s=yu(e),s!==0&&(n=s,t=qu(e,s))),t===1)throw r=ui,Ln(e,0),Dr(e,n),nt(e,be()),r;if(t===6)Dr(e,n);else{if(s=e.current.alternate,!(n&30)&&!y1(s)&&(t=cl(e,n),t===2&&(o=yu(e),o!==0&&(n=o,t=qu(e,o))),t===1))throw r=ui,Ln(e,0),Dr(e,n),nt(e,be()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(N(345));case 2:xn(e,Ze,ir);break;case 3:if(Dr(e,n),(n&130023424)===n&&(t=lh+500-be(),10<t)){if(Ha(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Qe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Cu(xn.bind(null,e,Ze,ir),t);break}xn(e,Ze,ir);break;case 4:if(Dr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var i=31-$t(n);o=1<<i,i=t[i],i>s&&(s=i),n&=~o}if(n=s,n=be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*v1(n/1960))-n,10<n){e.timeoutHandle=Cu(xn.bind(null,e,Ze,ir),n);break}xn(e,Ze,ir);break;case 5:xn(e,Ze,ir);break;default:throw Error(N(329))}}}return nt(e,be()),e.callbackNode===r?Vv.bind(null,e):null}function qu(e,t){var r=Wo;return e.current.memoizedState.isDehydrated&&(Ln(e,t).flags|=256),e=cl(e,t),e!==2&&(t=Ze,Ze=r,t!==null&&Ku(t)),e}function Ku(e){Ze===null?Ze=e:Ze.push.apply(Ze,e)}function y1(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],o=s.getSnapshot;s=s.value;try{if(!Ut(o(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Dr(e,t){for(t&=~ah,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-$t(t),n=1<<r;e[r]=-1,t&=~n}}function sp(e){if(te&6)throw Error(N(327));$s();var t=Ha(e,0);if(!(t&1))return nt(e,be()),null;var r=cl(e,t);if(e.tag!==0&&r===2){var n=yu(e);n!==0&&(t=n,r=qu(e,n))}if(r===1)throw r=ui,Ln(e,0),Dr(e,t),nt(e,be()),r;if(r===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xn(e,Ze,ir),nt(e,be()),null}function ch(e,t){var r=te;te|=1;try{return e(t)}finally{te=r,te===0&&(ro=be()+500,jl&&hn())}}function zn(e){Kr!==null&&Kr.tag===0&&!(te&6)&&$s();var t=te;te|=1;var r=xt.transition,n=se;try{if(xt.transition=null,se=1,e)return e()}finally{se=n,xt.transition=r,te=t,!(te&6)&&hn()}}function uh(){ot=Ns.current,de(Ns)}function Ln(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Gb(r)),ke!==null)for(r=ke.return;r!==null;){var n=r;switch(Vd(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ja();break;case 3:eo(),de(tt),de(Ve),Zd();break;case 5:Xd(n);break;case 4:eo();break;case 13:de(me);break;case 19:de(me);break;case 10:Gd(n.type._context);break;case 22:case 23:uh()}r=r.return}if(Ne=e,ke=e=rn(e.current,null),Ie=ot=t,je=0,ui=null,ah=Al=Fn=0,Ze=Wo=null,Cn!==null){for(t=0;t<Cn.length;t++)if(r=Cn[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,o=r.pending;if(o!==null){var i=o.next;o.next=s,n.next=i}r.pending=n}Cn=null}return e}function Hv(e,t){do{var r=ke;try{if(Kd(),Na.current=ol,sl){for(var n=ge.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}sl=!1}if(Un=0,Pe=Te=ge=null,zo=!1,ai=0,ih.current=null,r===null||r.return===null){je=1,ui=t,ke=null;break}e:{var o=e,i=r.return,a=r,l=t;if(t=Ie,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Hf(i);if(f!==null){f.flags&=-257,qf(f,i,a,o,t),f.mode&1&&Vf(o,c,t),t=f,l=c;var x=t.updateQueue;if(x===null){var m=new Set;m.add(l),t.updateQueue=m}else x.add(l);break e}else{if(!(t&1)){Vf(o,c,t),dh();break e}l=Error(N(426))}}else if(fe&&a.mode&1){var b=Hf(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),qf(b,i,a,o,t),Hd(to(l,a));break e}}o=l=to(l,a),je!==4&&(je=2),Wo===null?Wo=[o]:Wo.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=jv(o,l,t);Df(o,v);break e;case 1:a=l;var g=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(en===null||!en.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Pv(o,a,t);Df(o,_);break e}}o=o.return}while(o!==null)}Gv(r)}catch(S){t=S,ke===r&&r!==null&&(ke=r=r.return);continue}break}while(!0)}function qv(){var e=il.current;return il.current=ol,e===null?ol:e}function dh(){(je===0||je===3||je===2)&&(je=4),Ne===null||!(Fn&268435455)&&!(Al&268435455)||Dr(Ne,Ie)}function cl(e,t){var r=te;te|=2;var n=qv();(Ne!==e||Ie!==t)&&(ir=null,Ln(e,t));do try{w1();break}catch(s){Hv(e,s)}while(!0);if(Kd(),te=r,il.current=n,ke!==null)throw Error(N(261));return Ne=null,Ie=0,je}function w1(){for(;ke!==null;)Kv(ke)}function x1(){for(;ke!==null&&!Hx();)Kv(ke)}function Kv(e){var t=Jv(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?Gv(e):ke=t,ih.current=null}function Gv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=f1(r,t),r!==null){r.flags&=32767,ke=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,ke=null;return}}else if(r=h1(r,t,ot),r!==null){ke=r;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);je===0&&(je=5)}function xn(e,t,r){var n=se,s=xt.transition;try{xt.transition=null,se=1,b1(e,t,r,n)}finally{xt.transition=s,se=n}return null}function b1(e,t,r,n){do $s();while(Kr!==null);if(te&6)throw Error(N(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(tb(e,o),e===Ne&&(ke=Ne=null,Ie=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||oa||(oa=!0,Yv(Va,function(){return $s(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=xt.transition,xt.transition=null;var i=se;se=1;var a=te;te|=4,ih.current=null,m1(e,r),Bv(r,e),zb(ku),qa=!!Su,ku=Su=null,e.current=r,g1(r),qx(),te=a,se=i,xt.transition=o}else e.current=r;if(oa&&(oa=!1,Kr=e,ll=s),o=e.pendingLanes,o===0&&(en=null),Qx(r.stateNode),nt(e,be()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(al)throw al=!1,e=Vu,Vu=null,e;return ll&1&&e.tag!==0&&$s(),o=e.pendingLanes,o&1?e===Hu?Vo++:(Vo=0,Hu=e):Vo=0,hn(),null}function $s(){if(Kr!==null){var e=jg(ll),t=xt.transition,r=se;try{if(xt.transition=null,se=16>e?16:e,Kr===null)var n=!1;else{if(e=Kr,Kr=null,ll=0,te&6)throw Error(N(331));var s=te;for(te|=4,$=e.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 c=a[l];for($=c;$!==null;){var d=$;switch(d.tag){case 0:case 11:case 15:Bo(8,d,o)}var h=d.child;if(h!==null)h.return=d,$=h;else for(;$!==null;){d=$;var p=d.sibling,f=d.return;if(Uv(d),d===c){$=null;break}if(p!==null){p.return=f,$=p;break}$=f}}}var x=o.alternate;if(x!==null){var m=x.child;if(m!==null){x.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==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:Bo(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,$=v;break e}$=o.return}}var g=e.current;for($=g;$!==null;){i=$;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,$=w;else e:for(i=g;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Rl(9,a)}}catch(S){xe(a,a.return,S)}if(a===i){$=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,$=_;break e}$=a.return}}if(te=s,hn(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(Sl,e)}catch{}n=!0}return n}finally{se=r,xt.transition=t}}return!1}function op(e,t,r){t=to(r,t),t=jv(e,t,1),e=Zr(e,t,1),t=Qe(),e!==null&&(ji(e,1,t),nt(e,t))}function xe(e,t,r){if(e.tag===3)op(e,e,r);else for(;t!==null;){if(t.tag===3){op(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(en===null||!en.has(n))){e=to(r,e),e=Pv(t,e,1),t=Zr(t,e,1),e=Qe(),t!==null&&(ji(t,1,e),nt(t,e));break}}t=t.return}}function _1(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Qe(),e.pingedLanes|=e.suspendedLanes&r,Ne===e&&(Ie&r)===r&&(je===4||je===3&&(Ie&130023424)===Ie&&500>be()-lh?Ln(e,0):ah|=r),nt(e,t)}function Qv(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var r=Qe();e=mr(e,t),e!==null&&(ji(e,t,r),nt(e,r))}function S1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Qv(e,r)}function k1(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(N(314))}n!==null&&n.delete(t),Qv(e,r)}var Jv;Jv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return et=!1,d1(e,t,r);et=!!(e.flags&131072)}else et=!1,fe&&t.flags&1048576&&ev(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Aa(e,t),e=t.pendingProps;var s=Ys(t,Ve.current);Ms(t,r),s=th(null,t,n,e,s,r);var o=rh();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(n)?(o=!0,Ya(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Jd(t),s.updater=Nl,t.stateNode=s,s._reactInternals=t,Ou(t,n,e,r),t=Mu(null,t,n,!0,o,r)):(t.tag=0,fe&&o&&Wd(t),Ke(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Aa(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=C1(n),e=Pt(n,e),s){case 0:t=Lu(null,t,n,e,r);break e;case 1:t=Qf(null,t,n,e,r);break e;case 11:t=Kf(null,t,n,e,r);break e;case 14:t=Gf(null,t,n,Pt(n.type,e),r);break e}throw Error(N(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Pt(n,s),Lu(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Pt(n,s),Qf(e,t,n,s,r);case 3:e:{if(Ov(t),e===null)throw Error(N(387));n=t.pendingProps,o=t.memoizedState,s=o.element,iv(e,t),rl(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=to(Error(N(423)),t),t=Jf(e,t,n,r,s);break e}else if(n!==s){s=to(Error(N(424)),t),t=Jf(e,t,n,r,s);break e}else for(lt=Xr(t.stateNode.containerInfo.firstChild),ct=t,fe=!0,Mt=null,r=sv(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Xs(),n===s){t=gr(e,t,r);break e}Ke(e,t,n,r)}t=t.child}return t;case 5:return av(t),e===null&&Nu(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Eu(n,s)?i=null:o!==null&&Eu(n,o)&&(t.flags|=32),Av(e,t),Ke(e,t,i,r),t.child;case 6:return e===null&&Nu(t),null;case 13:return Iv(e,t,r);case 4:return Yd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Zs(t,null,n,r):Ke(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Pt(n,s),Kf(e,t,n,s,r);case 7:return Ke(e,t,t.pendingProps,r),t.child;case 8:return Ke(e,t,t.pendingProps.children,r),t.child;case 12:return Ke(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,le(el,n._currentValue),n._currentValue=i,o!==null)if(Ut(
vendor: 4,416 bytes, line 40
40o.value,i)){if(o.children===s.children&&!tt.current){t=gr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=hr(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Ru(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(N(341));i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),Ru(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ke(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,Ms(t,r),s=bt(s),n=n(s),t.flags|=1,Ke(e,t,n,r),t.child;case 14:return n=t.type,s=Pt(n,t.pendingProps),s=Pt(n.type,s),Gf(e,t,n,s,r);case 15:return Nv(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Pt(n,s),Aa(e,t),t.tag=1,rt(n)?(e=!0,Ya(t)):e=!1,Ms(t,r),Tv(t,n,s),Ou(t,n,s,r),Mu(null,t,n,!0,e,r);case 19:return Lv(e,t,r);case 22:return Rv(e,t,r)}throw Error(N(156,t.tag))};function Yv(e,t){return kg(e,t)}function E1(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,r,n){return new E1(e,t,r,n)}function hh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C1(e){if(typeof e=="function")return hh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rd)return 11;if(e===Ad)return 14}return 2}function rn(e,t){var r=e.alternate;return r===null?(r=wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function La(e,t,r,n,s,o){var i=2;if(n=e,typeof e=="function")hh(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case xs:return Mn(r.children,s,o,t);case Nd:i=8,s|=8;break;case nu:return e=wt(12,r,t,s|2),e.elementType=nu,e.lanes=o,e;case su:return e=wt(13,r,t,s),e.elementType=su,e.lanes=o,e;case ou:return e=wt(19,r,t,s),e.elementType=ou,e.lanes=o,e;case ag:return Ol(r,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case og:i=10;break e;case ig:i=9;break e;case Rd:i=11;break e;case Ad:i=14;break e;case Ir:i=16,n=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=wt(i,r,t,s),t.elementType=e,t.type=n,t.lanes=o,t}function Mn(e,t,r,n){return e=wt(7,e,n,t),e.lanes=r,e}function Ol(e,t,r,n){return e=wt(22,e,n,t),e.elementType=ag,e.lanes=r,e.stateNode={isHidden:!1},e}function Nc(e,t,r){return e=wt(6,e,null,t),e.lanes=r,e}function Rc(e,t,r){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T1(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dc(0),this.expirationTimes=dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dc(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function fh(e,t,r,n,s,o,i,a,l){return e=new T1(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jd(o),e}function j1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 6,662 bytes, line 40
40return{$$typeof:ws,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Xv(e){if(!e)return an;e=e._reactInternals;e:{if(Hn(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var r=e.type;if(rt(r))return Xg(e,r,t)}return t}function Zv(e,t,r,n,s,o,i,a,l){return e=fh(r,n,!0,e,s,o,i,a,l),e.context=Xv(null),r=e.current,n=Qe(),s=tn(r),o=hr(n,s),o.callback=t??null,Zr(r,o,s),e.current.lanes=s,ji(e,s,n),nt(e,n),e}function Il(e,t,r,n){var s=t.current,o=Qe(),i=tn(s);return r=Xv(r),t.context===null?t.context=r:t.pendingContext=r,t=hr(o,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Zr(s,t,i),e!==null&&(Dt(e,s,i,o),Pa(e,s,i)),i}function ul(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ph(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function P1(){return null}var ey=typeof reportError=="function"?reportError:function(e){console.error(e)};function mh(e){this._internalRoot=e}Ll.prototype.render=mh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Il(e,t,null,null)};Ll.prototype.unmount=mh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){Il(null,e,null,null)}),t[pr]=null}};function Ll(e){this._internalRoot=e}Ll.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<$r.length&&t!==0&&t<$r[r].priority;r++);$r.splice(r,0,e),r===0&&Og(e)}};function gh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ap(){}function N1(e,t,r,n,s){if(s){if(typeof n=="function"){var o=n;n=function(){var c=ul(i);o.call(c)}}var i=Zv(t,n,e,0,null,!1,!1,"",ap);return e._reactRootContainer=i,e[pr]=i.current,ri(e.nodeType===8?e.parentNode:e),zn(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var c=ul(l);a.call(c)}}var l=fh(e,0,!1,null,null,!1,!1,"",ap);return e._reactRootContainer=l,e[pr]=l.current,ri(e.nodeType===8?e.parentNode:e),zn(function(){Il(t,l,r,n)}),l}function $l(e,t,r,n,s){var o=r._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=ul(i);a.call(l)}}Il(t,i,e,s)}else i=N1(r,t,e,s,n);return ul(i)}Pg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Oo(t.pendingLanes);r!==0&&(Ld(t,r|1),nt(t,be()),!(te&6)&&(ro=be()+500,hn()))}break;case 13:zn(function(){var n=mr(e,1);if(n!==null){var s=Qe();Dt(n,e,1,s)}}),ph(e,1)}};Md=function(e){if(e.tag===13){var t=mr(e,134217728);if(t!==null){var r=Qe();Dt(t,e,134217728,r)}ph(e,134217728)}};Ng=function(e){if(e.tag===13){var t=tn(e),r=mr(e,t);if(r!==null){var n=Qe();Dt(r,e,t,n)}ph(e,t)}};Rg=function(){return se};Ag=function(e,t){var r=se;try{return se=e,t()}finally{se=r}};mu=function(e,t,r){switch(t){case"input":if(lu(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=Tl(n);if(!s)throw Error(N(90));cg(n),lu(n,s)}}}break;case"textarea":dg(e,r);break;case"select":t=r.value,t!=null&&As(e,!!r.multiple,t,!1)}};yg=ch;wg=zn;var R1={usingClientEntryPoint:!1,Events:[Ni,ks,Tl,gg,vg,ch]},Co={findFiberByHostInstance:En,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},A1={bundleType:Co.bundleType,version:Co.version,rendererPackageName:Co.rendererPackageName,rendererConfig:Co.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_g(e),e===null?null:e.stateNode},findFiberByHostInstance:Co.findFiberByHostInstance||P1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ia=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ia.isDisabled&&ia.supportsFiber)try{Sl=ia.inject(A1),Yt=ia}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R1;ht.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gh(t))throw Error(N(200));return j1(e,t,null,r)};ht.createRoot=function(e,t){if(!gh(e))throw Error(N(299));var r=!1,n="",s=ey;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=fh(e,1,!1,null,null,r,!1,n,s),e[pr]=t.current,ri(e.nodeType===8?e.parentNode:e),new mh(t)};ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=_g(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return zn(e)};ht.hydrate=function(e,t,r){if(!Ml(t))throw Error(N(200));return $l(null,e,t,!0,r)};ht.hydrateRoot=function(e,t,r){if(!gh(e))throw Error(N(405));var n=r!=null&&r.hydratedSources||null,s=!1,o="",i=ey;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=Zv(t,null,e,1,r??null,s,!1,o,i),e[pr]=t.current,ri(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new Ll(t)};ht.render=function(e,t,r){if(!Ml(t))throw Error(N(200));return $l(null,e,t,!1,r)};ht.unmountComponentAtNode=function(e){if(!Ml(e))throw Error(N(40));return e._reactRootContainer?(zn(function(){$l(null,null,e,!1,function(){e._reactRootContainer=null,e[pr]=null})}),!0):!1};ht.unstable_batchedUpdates=ch;ht.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ml(r))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return $l(e,t,r,!1,n)};
40ht.version="18.3.1-next-f1338f8080-20240426";function ty(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ty)}catch(e){console.error(e)}}ty(),tg.exports=ht;var Ai=tg.exports;const ry=Wm(Ai);var ny,lp=Ai;ny=lp.createRoot,lp.hydrateRoot;const O1=1,I1=1e6;let Ac=0;function L1(){return Ac=(Ac+1)%Number.MAX_SAFE_INTEGER,Ac.toString()}const Oc=new Map,cp=e=>{if(Oc.has(e))return;const t=setTimeout(()=>{Oc.delete(e),Ho({type:"REMOVE_TOAST",toastId:e})},I1);Oc.set(e,t)},M1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,O1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?cp(r):e.toasts.forEach(n=>{cp(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Ma=[];let $a={toasts:[]};function Ho(e){$a=M1($a,e),Ma.forEach(t=>{t($a)})}function $1({...e}){const t=L1(),r=s=>Ho({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>Ho({type:"DISMISS_TOAST",toastId:t});return Ho({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function sy(){const[e,t]=y.useState($a);return y.useEffect(()=>(Ma.push(t),()=>{const r=Ma.indexOf(t);r>-1&&Ma.splice(r,1)}),[e]),{...e,toast:$1,dismiss:r=>Ho({type:"DISMISS_TOAST",toastId:r})}}function ae(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function up(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oy(...e){return t=>{let r=!1;const n=e.map(s=>{const o=up(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():up(e[s],null)}}}}function Me(...e){return y.useCallback(oy(...e),e)}function D1(e,t){const r=y.createContext(t),n=o=>{const{children:i,...a}=o,l=y.useMemo(()=>a,Object.values(a));return u.jsx(r.Provider,{value:l,children:i})};n.displayName=e+"Provider";function s(o){const i=y.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[n,s]}function lo(e,t=[]){let r=[];function n(o,i){const a=y.createContext(i),l=r.length;r=[...r,i];const c=h=>{var v;const{scope:p,children:f,...x}=h,m=((v=p==null?void 0:p[e])==null?void 0:v[l])||a,b=y.useMemo(()=>x,Object.values(x));return u.jsx(m.Provider,{value:b,children:f})};c.displayName=o+"Provider";function d(h,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,x=y.useContext(f);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=r.map(i=>y.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,U1(s,...t)]}function U1(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=n.reduce((a,{useScope:l,scopeName:c})=>{const h=l(o)[`__scope${c}`];return{...a,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function di(e){const t=z1(e),r=y.forwardRef((n,s)=>{const{children:o,...i}=n,a=y.Children.toArray(o),l=a.find(W1);if(l){const c=l.props.children,d=a.map(h=>h===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...i,ref:s,children:y.isValidElement(c)?y.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var F1=di("Slot");function z1(e){const t=y.forwardRef((r,n)=>{const{children:s,...o}=r;if(y.isValidElement(s)){const i=H1(s),a=V1(o,s.props);return s.type!==y.Fragment&&(a.ref=n?oy(n,i):i),y.cloneElement(s,a)}return y.Children.count(s)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iy=Symbol("radix.slottable");function B1(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=iy,t}function W1(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iy}function V1(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}
vendor: 9,308 bytes, line 40
40:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function H1(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function q1(e){const t=e+"CollectionProvider",[r,n]=lo(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,g=A.useRef(null),w=A.useRef(new Map).current;return u.jsx(s,{scope:b,itemMap:w,collectionRef:g,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=di(a),c=A.forwardRef((m,b)=>{const{scope:v,children:g}=m,w=o(a,v),_=Me(b,w.collectionRef);return u.jsx(l,{ref:_,children:g})});c.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",p=di(d),f=A.forwardRef((m,b)=>{const{scope:v,children:g,...w}=m,_=A.useRef(null),S=Me(b,_),k=o(d,v);return A.useEffect(()=>(k.itemMap.set(_,{ref:_,...w}),()=>void k.itemMap.delete(_))),u.jsx(p,{[h]:"",ref:S,children:g})});f.displayName=d;function x(m){const b=o(e+"CollectionConsumer",m);return A.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const w=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((k,E)=>w.indexOf(k.ref.current)-w.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:c,ItemSlot:f},x,n]}var K1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=K1.reduce((e,t)=>{const r=di(`Primitive.${t}`),n=y.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ay(e,t){e&&Ai.flushSync(()=>e.dispatchEvent(t))}function er(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function G1(e,t=globalThis==null?void 0:globalThis.document){const r=er(e);y.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Q1="DismissableLayer",Gu="dismissableLayer.update",J1="dismissableLayer.pointerDownOutside",Y1="dismissableLayer.focusOutside",dp,ly=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dl=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,c=y.useContext(ly),[d,h]=y.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),x=Me(t,E=>h(E)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(b),g=d?m.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=g>=v,S=Z1(E=>{const j=E.target,R=[...c.branches].some(O=>O.contains(j));!_||R||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},p),k=e_(E=>{const j=E.target;[...c.branches].some(O=>O.contains(j))||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},p);return G1(E=>{g===c.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},p),y.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(dp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),hp(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=dp)}},[d,p,r,c]),y.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),hp())},[d,c]),y.useEffect(()=>{const E=()=>f({});return document.addEventListener(Gu,E),()=>document.removeEventListener(Gu,E)},[]),u.jsx(pe.div,{...l,ref:x,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,S.onPointerDownCapture)})});Dl.displayName=Q1;var X1="DismissableLayerBranch",cy=y.forwardRef((e,t)=>{const r=y.useContext(ly),n=y.useRef(null),s=Me(t,n);return y.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),u.jsx(pe.div,{...e,ref:s})});cy.displayName=X1;function Z1(e,t=globalThis==null?void 0:globalThis.document){const r=er(e),n=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const o=a=>{if(a.target&&!n.current){let l=function(){uy(J1,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function e_(e,t=globalThis==null?void 0:globalThis.document){const r=er(e),n=y.useRef(!1);return y.useEffect(()=>{const s=o=>{o.target&&!n.current&&uy(Y1,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hp(){const e=new CustomEvent(Gu);document.dispatchEvent(e)}function uy(e,t,r,{discrete:n}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?ay(s,o):s.dispatchEvent(o)}var t_=Dl,r_=cy,vr=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},n_="Portal",vh=y.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[s,o]=y.useState(!1);vr(()=>o(!0),[]);const i=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?ry.createPortal(u.jsx(pe.div,{...n,ref:t}),i):null});vh.displayName=n_;function s_(e,t){return y.useReducer((r,n)=>t[r][n]??r,e)}var qn=e=>{const{present:t,children:r}=e,n=o_(t),s=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),o=Me(n.ref,i_(s));return typeof r=="function"||n.isPresent?y.cloneElement(s,{ref:o}):null};qn.displayName="Presence";function o_(e){const[t,r]=y.useState(),n=y.useRef(null),s=y.useRef(e),o=y.useRef("none"),i=e?"mounted":"unmounted",[a,l]=s_(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=aa(n.current);o.current=a==="mounted"?c:"none"},[a]),vr(()=>{const c=n.current,d=s.current;if(d!==e){const p=o.current,f=aa(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),vr(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=f=>{const m=aa(n.current).includes(f.animationName);if(f.target===t&&m&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=f=>{f.target===t&&(o.current=aa(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function aa(e){return(e==null?void 0:e.animationName)||"none"}function i_(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var a_=Cd[" useInsertionEffect ".trim().toString()]||vr;function yh({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,o,i]=l_({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:s;{const d=y.useRef(e!==void 0);y.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const c=y.useCallback(d=>{var h;if(a){const p=c_(d)?d(e):d;p!==e&&((h=i.current)==null||h.call(i,p))}else o(d)},[a,e,o,i]);return[l,c]}function l_({defaultProp:e,onChange:t}){const[r,n]=y.useState(e),s=y.useRef(r),o=y.useRef(t);return a_(()=>{o.current=t},[t]),y.useEffect(()=>{var i;s.current!==r&&((i=o.current)==null||i.call(o,r),s.current=r)},[r,s]),[r,n,o]}function c_(e){return typeof e=="function"}var u_=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"}),d_="VisuallyHidden",Ul=y.forwardRef((e,t)=>
40u.jsx(pe.span,{...e,ref:t,style:{...u_,...e.style}}));Ul.displayName=d_;var h_=Ul,wh="ToastProvider",[xh,f_,p_]=q1("Toast"),[dy,hR]=lo("Toast",[p_]),[m_,Fl]=dy(wh),hy=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=y.useState(null),[c,d]=y.useState(0),h=y.useRef(!1),p=y.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${wh}\`. Expected non-empty \`string\`.`),u.jsx(xh.Provider,{scope:t,children:u.jsx(m_,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>d(f=>f+1),[]),onToastRemove:y.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:i})})};hy.displayName=wh;var fy="ToastViewport",g_=["F8"],Qu="toast.viewportPause",Ju="toast.viewportResume",py=y.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=g_,label:s="Notifications ({hotkey})",...o}=e,i=Fl(fy,r),a=f_(r),l=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=y.useRef(null),p=Me(t,h,i.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;y.useEffect(()=>{const b=v=>{var w;n.length!==0&&n.every(_=>v[_]||v.code===_)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),y.useEffect(()=>{const b=l.current,v=h.current;if(x&&b&&v){const g=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(Qu);v.dispatchEvent(k),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(Ju);v.dispatchEvent(k),i.isClosePausedRef.current=!1}},_=k=>{!b.contains(k.relatedTarget)&&w()},S=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",g),b.addEventListener("focusout",_),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",_),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[x,i.isClosePausedRef]);const m=y.useCallback(({tabbingDirection:b})=>{const g=a().map(w=>{const _=w.ref.current,S=[_,...P_(_)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return y.useEffect(()=>{const b=h.current;if(b){const v=g=>{var S,k,E;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const j=document.activeElement,R=g.shiftKey;if(g.target===b&&R){(S=c.current)==null||S.focus();return}const M=m({tabbingDirection:R?"backwards":"forwards"}),U=M.findIndex(I=>I===j);Ic(M.slice(U+1))?g.preventDefault():R?(k=c.current)==null||k.focus():(E=d.current)==null||E.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,m]),u.jsxs(r_,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&u.jsx(Yu,{ref:c,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"forwards"});Ic(b)}}),u.jsx(xh.Slot,{scope:r,children:u.jsx(pe.ol,{tabIndex:-1,...o,ref:p})}),x&&u.jsx(Yu,{ref:d,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"backwards"});Ic(b)}})]})});py.displayName=fy;var my="ToastFocusProxy",Yu=y.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,o=Fl(my,r);return u.jsx(Ul,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=o.viewport)!=null&&c.contains(a))&&n()}})});Yu.displayName=my;var Oi="Toast",v_="toast.swipeStart",y_="toast.swipeMove",w_="toast.swipeCancel",x_="toast.swipeEnd",gy=y.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:o,...i}=e,[a,l]=yh({prop:n,defaultProp:s??!0,onChange:o,caller:Oi});return u.jsx(qn,{present:r||a,children:u.jsx(S_,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:er(e.onPause),onResume:er(e.onResume),onSwipeStart:ae(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ae(e.onSwipeMove,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ae(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ae(e.onSwipeEnd,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});gy.displayName=Oi;var[b_,__]=dy(Oi,{onClose(){}}),S_=y.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...x}=e,m=Fl(Oi,r),[b,v]=y.useState(null),g=Me(t,I=>v(I)),w=y.useRef(null),_=y.useRef(null),S=s||m.duration,k=y.useRef(0),E=y.useRef(S),j=y.useRef(0),{onToastAdd:R,onToastRemove:O}=m,B=er(()=>{var X;(b==null?void 0:b.contains(document.activeElement))&&((X=m.viewport)==null||X.focus()),i()}),M=y.useCallback(I=>{!I||I===1/0||(window.clearTimeout(j.current),k.current=new Date().getTime(),j.current=window.setTimeout(B,I))},[B]);y.useEffect(()=>{const I=m.viewport;if(I){const X=()=>{M(E.current),c==null||c()},V=()=>{const K=new Date().getTime()-k.current;E.current=E.current-K,window.clearTimeout(j.current),l==null||l()};return I.addEventListener(Qu,V),I.addEventListener(Ju,X),()=>{I.removeEventListener(Qu,V),I.removeEventListener(Ju,X)}}},[m.viewport,S,l,c,M]),y.useEffect(()=>{o&&!m.isClosePausedRef.current&&M(S)},[o,S,m.isClosePausedRef,M]),y.useEffect(()=>(R(),()=>O()),[R,O]);const U=y.useMemo(()=>b?Sy(b):null,[b]);return m.viewport?u.jsxs(u.Fragment,{children:[U&&u.jsx(k_,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),u.jsx(b_,{scope:r,onClose:B,children:Ai.createPortal(u.jsx(xh.ItemSlot,{scope:r,children:u.jsx(t_,{asChild:!0,onEscapeKeyDown:ae(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||B(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(pe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":m.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ae(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:ae(e.onPointerDown,I=>{I.button===0&&(w.current={x:I.clientX,y:I.clientY})}),onPointerMove:ae(e.onPointerMove,I=>{if(!w.current)return;const X=I.clientX-w.current.x,V=I.clientY-w.current.y,K=!!_.current,T=["left","right"].includes(m.swipeDirection),P=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,L=T?P(0,X):0,G=T?0:P(0,V),F=I.pointerType==="touch"?10:2,J={x:L,y:G},Z={originalEvent:I,delta:J};K?(_.current=J,la(y_,h,Z,{discrete:!1})):fp(J,m.swipeDirection,F)?(_.current=J,la(v_,d,Z,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(X)>F||Math.abs(V)>F)&&(w.current=null)}),onPointerUp:ae(e.onPointerUp,I=>{const X=_.current,V=I.target;if(V.hasPointerCapture(I.pointerId)&&V.releasePointerCapture(I.pointerId),_.current=null,w.current=null,X){const K=I.currentTarget,T={originalEvent:I,delta:X};fp(X,m.swipeDirection,m.swipeThreshold)?la(x_,f,T,{discrete:!0}):la(w_,p,T,{discrete:!0}),K.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),k_=e=>{const{__scopeToast:t,children:r,...n}=e,s=Fl(Oi,t),[o,i]=y.useState(!1),[a,l]=y.useState(!1);return T_(()=>i(!0)),y.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(vh,{asChild:!0,children:u.jsx(Ul,{...n,children:o&&u.jsxs(u.Fragment,{children:[s.label," ",r]})})})},E_="ToastTitle",vy=y.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(pe.div,{...n,ref:t})});vy.displayName=E_;var C_="ToastDescription",yy=y.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(pe.div,{...n,ref:t})});yy.displayName=C_;var wy="ToastAction",xy=y.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(_y,{altText:r,asChild:!0,children:u.jsx(bh,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${wy}\`. Expected non-empty \`string\`.`),null)});xy.displayName=wy;var by="ToastClose",bh=y.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=__(by,r);return u.jsx(_y,{asChild:!0,children:u.jsx(pe.button,{type:"button",...n,ref:t,onClick:ae(e.onClick,s.onClose)})})});bh.displayName=by;var _y=y.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return u.jsx(pe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function Sy(e){const t=[];
vendor: 4,777 bytes, lines 40-70
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),j_(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Sy(n))}}),t}function la(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?ay(s,o):s.dispatchEvent(o)}var fp=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),o=n>s;return t==="left"||t==="right"?o&&n>r:!o&&s>r};function T_(e=()=>{}){const t=er(e);vr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function j_(e){return e.nodeType===e.ELEMENT_NODE}function P_(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ic(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var N_=hy,ky=py,Ey=gy,Cy=vy,Ty=yy,jy=xy,Py=bh;function Ny(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ny(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ry(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ny(e))&&(n&&(n+=" "),n+=t);return n}const pp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mp=Ry,_h=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return mp(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const d=r==null?void 0:r[c],h=o==null?void 0:o[c];if(d===null)return null;const p=pp(d)||pp(h);return s[c][p]}),a=r&&Object.entries(r).reduce((c,d)=>{let[h,p]=d;return p===void 0||(c[h]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:h,className:p,...f}=d;return Object.entries(f).every(x=>{let[m,b]=x;return Array.isArray(b)?b.includes({...o,...a}[m]):{...o,...a}[m]===b})?[...c,h,p]:c},[]);return mp(e,i,l,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const R_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ay=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var A_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const O_=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:i,...a},l)=>y.createElement("svg",{ref:l,...A_,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Ay("lucide",s),...a},[...i.map(([c,d])=>y.createElement(c,d)),...Array.isArray(o)?o:[o]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const ee=(e,t)=>{const r=y.forwardRef(({className:n,...s},o)=>y.createElement(O_,{ref:o,iconNode:t,className:Ay(`lucide-${R_(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const I_=ee("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const L_=ee("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
70],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const M_=ee("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const $_=ee("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const D_=ee("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const Oy=ee("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const Sh=ee("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const gp=ee("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const kh=ee("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const U_=ee("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const Xu=ee("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const F_=ee("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const z_=ee("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const Zu=ee("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const Iy=ee("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const Ly=ee("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const Ii=ee("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const B_=ee("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const W_=ee("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const V_=ee("MicVocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const H_=ee("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const q_=ee("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const K_=ee("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
175y:"oel41y"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const G_=ee("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const My=ee("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Q_=ee("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const J_=ee("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const vp=ee("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const Y_=ee("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const yp=ee("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const $y=ee("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const X_=ee("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const Z_=ee("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const Li=ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 12,600 bytes, lines 230-235
230],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const Dy=ee("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Eh="-",eS=e=>{const t=rS(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(Eh);return a[0]===""&&a.length!==1&&a.shift(),Uy(a,t)||tS(i)},getConflictingClassGroupIds:(i,a)=>{const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},Uy=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?Uy(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Eh);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},wp=/^\[(.+)\]$/,tS=e=>{if(wp.test(e)){const t=wp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rS=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return sS(Object.entries(e.classGroups),r).forEach(([o,i])=>{ed(i,n,o,t)}),n},ed=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:xp(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(nS(s)){ed(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{ed(i,xp(t,o),r,n)})})},xp=(e,t)=>{let r=e;return t.split(Eh).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},nS=e=>e.isThemeGetter,sS=(e,t)=>t?e.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[r,s]}):e,oS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},Fy="!",iS=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let c=0,d=0,h;for(let b=0;b<a.length;b++){let v=a[b];if(c===0){if(v===s&&(n||a.slice(b,b+o)===t)){l.push(a.slice(d,b)),d=b+o;continue}if(v==="/"){h=b;continue}}v==="["?c++:v==="]"&&c--}const p=l.length===0?a:a.substring(d),f=p.startsWith(Fy),x=f?p.substring(1):p,m=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:i}):i},aS=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},lS=e=>({cache:oS(e.cacheSize),parseClassName:iS(e),...eS(e)}),cS=/\s+/,uS=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(cS);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=r(c);let x=!!f,m=n(x?p.substring(0,f):p);if(!m){if(!x){a=c+(a.length>0?" "+a:a);continue}if(m=n(p),!m){a=c+(a.length>0?" "+a:a);continue}x=!1}const b=aS(d).join(":"),v=h?b+Fy:b,g=v+m;if(o.includes(g))continue;o.push(g);const w=s(m,x);for(let _=0;_<w.length;++_){const S=w[_];o.push(v+S)}a=c+(a.length>0?" "+a:a)}return a};function dS(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=zy(t))&&(n&&(n+=" "),n+=r);return n}const zy=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=zy(e[n]))&&(r&&(r+=" "),r+=t);return r};function hS(e,...t){let r,n,s,o=i;function i(l){const c=t.reduce((d,h)=>h(d),e());return r=lS(c),n=r.cache.get,s=r.cache.set,o=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=uS(l,r);return s(l,d),d}return function(){return o(dS.apply(null,arguments))}}const ce=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},By=/^\[(?:([a-z-]+):)?(.+)\]$/i,fS=/^\d+\/\d+$/,pS=new Set(["px","full","screen"]),mS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gS=/\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$/,vS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nr=e=>Ds(e)||pS.has(e)||fS.test(e),Nr=e=>co(e,"length",TS),Ds=e=>!!e&&!Number.isNaN(Number(e)),Lc=e=>co(e,"number",Ds),To=e=>!!e&&Number.isInteger(Number(e)),xS=e=>e.endsWith("%")&&Ds(e.slice(0,-1)),Q=e=>By.test(e),Rr=e=>mS.test(e),bS=new Set(["length","size","percentage"]),_S=e=>co(e,bS,Wy),SS=e=>co(e,"position",Wy),kS=new Set(["image","url"]),ES=e=>co(e,kS,PS),CS=e=>co(e,"",jS),jo=()=>!0,co=(e,t,r)=>{const n=By.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},TS=e=>gS.test(e)&&!vS.test(e),Wy=()=>!1,jS=e=>yS.test(e),PS=e=>wS.test(e),NS=()=>{const e=ce("colors"),t=ce("spacing"),r=ce("blur"),n=ce("brightness"),s=ce("borderColor"),o=ce("borderRadius"),i=ce("borderSpacing"),a=ce("borderWidth"),l=ce("contrast"),c=ce("grayscale"),d=ce("hueRotate"),h=ce("invert"),p=ce("gap"),f=ce("gradientColorStops"),x=ce("gradientColorStopPositions"),m=ce("inset"),b=ce("margin"),v=ce("opacity"),g=ce("padding"),w=ce("saturate"),_=ce("scale"),S=ce("sepia"),k=ce("skew"),E=ce("space"),j=ce("translate"),R=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Q,t],M=()=>[Q,t],U=()=>["",nr,Nr],I=()=>["auto",Ds,Q],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],K=()=>["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",Q],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Ds,Q];return{cacheSize:500,separator:":",theme:{colors:[jo],spacing:[nr,Nr],blur:["none","",Rr,Q],brightness:G(),borderColor:[e],borderRadius:["none","","full",Rr,Q],borderSpacing:M(),borderWidth:U(),contrast:G(),grayscale:P(),hueRotate:G(),invert:P(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[xS,Nr],inset:B(),margin:B(),opacity:G(),padding:M(),saturate:G(),scale:G(),sepia:P(),skew:G(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[Rr]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:[...X(),Q]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",To,Q]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",To,Q]}],"grid-cols":[{"grid-cols":[jo]}],"col-start-end":[{col:["auto",{span:["full",To,Q]},Q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[jo]}],"row-start-end":[{row:["auto",{span:[To,Q]},Q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"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:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[Rr]},Rr]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rr,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lc]}],"font-family":[{font:[jo]}],"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",Q]}],"line-clamp":[{"line-clamp":["none",Ds,Lc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",nr,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",nr,Nr]}],"underline-offset":[{"underline-offset":["auto",nr,Q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],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",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),SS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_S]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ES]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
vendor: 5,172 bytes, line 235
235],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"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":[v]}],"border-style":[{border:[...V(),"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":[v]}],"divide-style":[{divide:V()}],"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:["",...V()]}],"outline-offset":[{"outline-offset":[nr,Q]}],"outline-w":[{outline:[nr,Nr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[nr,Nr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rr,CS]}],"shadow-color":[{shadow:[jo]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rr,Q]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"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",Q]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[To,Q]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 235
235],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",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[nr,Nr,Lc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},RS=hS(NS);function He(...e){return RS(Ry(e))}const AS=N_,Vy=y.forwardRef(({className:e,...t},r)=>u.jsx(ky,{ref:r,className:He("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Vy.displayName=ky.displayName;const OS=_h("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"}}),Hy=y.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(Ey,{ref:n,className:He(OS({variant:t}),e),...r}));Hy.displayName=Ey.displayName;const IS=y.forwardRef(({className:e,...t},r)=>u.jsx(jy,{ref:r,className:He("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",e),...t}));IS.displayName=jy.displayName;const qy=y.forwardRef(({className:e,...t},r)=>u.jsx(Py,{ref:r,className:He("absolute right-2 top-2 rounded-md p-1 text-foreground
235/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",e),"toast-close":"",...t,children:u.jsx(Li,{className:"h-4 w-4"})}));qy.displayName=Py.displayName;const Ky=y.forwardRef(({className:e,...t},r)=>u.jsx(Cy,{ref:r,className:He("text-sm font-semibold",e),...t}));Ky.displayName=Cy.displayName;const Gy=y.forwardRef(({className:e,...t},r)=>u.jsx(Ty,{ref:r,className:He("text-sm opacity-90",e),...t}));Gy.displayName=Ty.displayName;function LS(){const{toasts:e}=sy();return u.jsxs(AS,{children:[e.map(function({id:t,title:r,description:n,action:s,...o}){return u.jsxs(Hy,{...o,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(Ky,{children:r}),n&&u.jsx(Gy,{children:n})]}),s,u.jsx(qy,{})]},t)}),u.jsx(Vy,{})]})}var bp=["light","dark"],MS="(prefers-color-scheme: dark)",$S=y.createContext(void 0),DS={setTheme:e=>{},themes:[]},US=()=>{var e;return(e=y.useContext($S))!=null?e:DS};y.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let c=o==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?bp.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(x,m=!1,b=!0)=>{let v=i?i[x]:x,g=m?x+"|| ''":`'${v}'`,w="";return s&&b&&!m&&bp.includes(x)&&(w+=`d.style.colorScheme = '${x}';`),r==="class"?m||v?w+=`c.add(${g})`:w+="null":v&&(w+=`d[s](n,${g})`),w},f=e?`!function(){${d}${p(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${MS}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}${c?"":"else{"+p(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}else{${p(o,!1,!1)};}${h}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var FS=e=>{switch(e){case"success":return WS;case"info":return HS;case"warning":return VS;case"error":return qS;default:return null}},zS=Array(12).fill(0),BS=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},zS.map((r,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),WS=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"})),VS=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"})),HS=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"})),qS=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"})),KS=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"})),GS=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},td=1,QS=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,050 bytes, line 235
235{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:td++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:r}),{...a,...e,id:s,dismissible:i,title:r}):a):this.addToast({title:r,...n,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
235this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,o,i=n.then(async l=>{if(o=["resolve",l],A.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(YS(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:c,description:d})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:c,description:d})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:c,description:d})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>i.then(()=>o[0]==="reject"?c(o[1]):l(o[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||td++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Xe=new QS,JS=(e,t)=>{let r=(t==null?void 0:t.id)||td++;return Xe.addToast({title:e,...t,id:r}),r},YS=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",XS=JS,ZS=()=>Xe.toasts,ek=()=>Xe.getActiveToasts(),ps=Object.assign(XS,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:ZS,getToasts:ek});function tk(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}tk(`: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;
235left: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}
235: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%);
235--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%)} 236`);function ca(e){return e.label!==void 0}var rk=3,nk="32px",sk="16px",_p=4e3,ok=356,ik=14,ak=20,lk=200;function Tt(...e){return e.filter(Boolean).join(" ")}function ck(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var uk=e=>{var t,r,n,s,o,i,a,l,c,d,h;let{invert:p,toast:f,unstyled:x,interacting:m,setHeights:b,visibleToasts:v,heights:g,index:w,toasts:_,expanded:S,removeToast:k,defaultRichColors:E,closeButton:j,style:R,cancelButtonStyle:O,actionButtonStyle:B,className:M="",descriptionClassName:U="",duration:I,position:X,gap:V,loadingIcon:K,expandByDefault:T,classNames:P,icons:L,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:F}=e,[J,Z]=A.useState(null),[_e,$e]=A.useState(null),[ne,Xn]=A.useState(!1),[Sr,fn]=A.useState(!1),[kr,Zn]=A.useState(!1),[Er,Fi]=A.useState(!1),[tc,zi]=A.useState(!1),[rc,vo]=A.useState(0),[es,qh]=A.useState(0),yo=A.useRef(f.duration||I||_p),Kh=A.useRef(null),pn=A.useRef(null),Xw=w===0,Zw=w+1<=v,pt=f.type,ts=f.dismissible!==!1,ex=f.className||"",tx=f.descriptionClassName||"",Bi=A.useMemo(()=>g.findIndex(H=>H.toastId===f.id)||0,[g,f.id]),rx=A.useMemo(()=>{var H;return(H=f.closeButton)!=null?H:j},[f.closeButton,j]),Gh=A.useMemo(()=>f.duration||I||_p,[f.duration,I]),nc=A.useRef(0),rs=A.useRef(0),Qh=A.useRef(0),ns=A.useRef(null),[nx,sx]=X.split("-"),Jh=A.useMemo(()=>g.reduce((H,oe,he)=>he>=Bi?H:H+oe.height,0),[g,Bi]),Yh=GS(),ox=f.invert||p,sc=pt==="loading";rs.current=A.useMemo(()=>Bi*V+Jh,[Bi,Jh]),A.useEffect(()=>{yo.current=Gh},[Gh]),A.useEffect(()=>{Xn(!0)},[]),A.useEffect(()=>{let H=pn.current;if(H){let oe=H.getBoundingClientRect().height;return qh(oe),b(he=>[{toastId:f.id,height:oe,position:f.position},...he]),()=>b(he=>he.filter(St=>St.toastId!==f.id))}},[b,f.id]),A.useLayoutEffect(()=>{if(!ne)return;let H=pn.current,oe=H.style.height;H.style.height="auto";let he=H.getBoundingClientRect().height;H.style.height=oe,qh(he),b(St=>St.find(kt=>kt.toastId===f.id)?St.map(kt=>kt.toastId===f.id?{...kt,height:he}:kt):[{toastId:f.id,height:he,position:f.position},...St])},[ne,f.title,f.description,b,f.id]);let Cr=A.useCallback(()=>{fn(!0),vo(rs.current),b(H=>H.filter(oe=>oe.toastId!==f.id)),setTimeout(()=>{k(f)},lk)},[f,k,b,rs]);A.useEffect(()=>{if(f.promise&&pt==="loading"||f.duration===1/0||f.type==="loading")return;let H;return S||m||F&&Yh?(()=>{if(Qh.current<nc.current){let oe=new Date().getTime()-nc.current;yo.current=yo.current-oe}
236Qh.current=new Date().getTime()})():yo.current!==1/0&&(nc.current=new Date().getTime(),H=setTimeout(()=>{var oe;(oe=f.onAutoClose)==null||oe.call(f,f),Cr()},yo.current)),()=>clearTimeout(H)},[S,m,f,pt,F,Yh,Cr]),A.useEffect(()=>{f.delete&&Cr()},[Cr,f.delete]);function ix(){var H,oe,he;return L!=null&&L.loading?A.createElement("div",{className:Tt(P==null?void 0:P.loader,(H=f==null?void 0:f.classNames)==null?void 0:H.loader,"sonner-loader"),"data-visible":pt==="loading"},L.loading):K?A.createElement("div",{className:Tt(P==null?void 0:P.loader,(oe=f==null?void 0:f.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":pt==="loading"},K):A.createElement(BS,{className:Tt(P==null?void 0:P.loader,(he=f==null?void 0:f.classNames)==null?void 0:he.loader),visible:pt==="loading"})}return A.createElement("li",{tabIndex:0,ref:pn,className:Tt(M,ex,P==null?void 0:P.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[pt],(r=f==null?void 0:f.classNames)==null?void 0:r[pt]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:E,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":ne,"data-promise":!!f.promise,"data-swiped":tc,"data-removed":Sr,"data-visible":Zw,"data-y-position":nx,"data-x-position":sx,"data-index":w,"data-front":Xw,"data-swiping":kr,"data-dismissible":ts,"data-type":pt,"data-invert":ox,"data-swipe-out":Er,"data-swipe-direction":_e,"data-expanded":!!(S||T&&ne),style:{"--index":w,"--toasts-before":w,"--z-index":_.length-w,"--offset":`${Sr?rc:rs.current}px`,"--initial-height":T?"auto":`${es}px`,...R,...f.style},onDragEnd:()=>{Zn(!1),Z(null),ns.current=null},onPointerDown:H=>{sc||!ts||(Kh.current=new Date,vo(rs.current),H.target.setPointerCapture(H.pointerId),H.target.tagName!=="BUTTON"&&(Zn(!0),ns.current={x:H.clientX,y:H.clientY}))},onPointerUp:()=>{var H,oe,he,St;if(Er||!ts)return;ns.current=null;let kt=Number(((H=pn.current)==null?void 0:H.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tr=Number(((oe=pn.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),mn=new Date().getTime()-((he=Kh.current)==null?void 0:he.getTime()),Et=J==="x"?kt:Tr,jr=Math.abs(Et)/mn;if(Math.abs(Et)>=ak||jr>.11){vo(rs.current),(St=f.onDismiss)==null||St.call(f,f),$e(J==="x"?kt>0?"right":"left":Tr>0?"down":"up"),Cr(),Fi(!0),zi(!1);return}Zn(!1),Z(null)},onPointerMove:H=>{var oe,he,St,kt;if(!ns.current||!ts||((oe=window.getSelection())==null?void 0:oe.toString().length)>0)return;let Tr=H.clientY-ns.current.y,mn=H.clientX-ns.current.x,Et=(he=e.swipeDirections)!=null?he:ck(X);!J&&(Math.abs(mn)>1||Math.abs(Tr)>1)&&Z(Math.abs(mn)>Math.abs(Tr)?"x":"y");let jr={x:0,y:0};J==="y"?(Et.includes("top")||Et.includes("bottom"))&&(Et.includes("top")&&Tr<0||Et.includes("bottom")&&Tr>0)&&(jr.y=Tr):J==="x"&&(Et.includes("left")||Et.includes("right"))&&(Et.includes("left")&&mn<0||Et.includes("right")&&mn>0)&&(jr.x=mn),(Math.abs(jr.x)>0||Math.abs(jr.y)>0)&&zi(!0),(St=pn.current)==null||St.style.setProperty("--swipe-amount-x",`${jr.x}px`),(kt=pn.current)==null||kt.style.setProperty("--swipe-amount-y",`${jr.y}px`)}},rx&&!f.jsx?A.createElement("button",{"aria-label":G,"data-disabled":sc,"data-close-button":!0,onClick:sc||!ts?()=>{}:()=>{var H;Cr(),(H=f.onDismiss)==null||H.call(f,f)},className:Tt(P==null?void 0:P.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(o=L==null?void 0:L.close)!=null?o:KS):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:A.createElement(A.Fragment,null,pt||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:Tt(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||ix():null,f.type!=="loading"?f.icon||(L==null?void 0:L[pt])||FS(pt):null):null,A.createElement("div",{"data-content":"",className:Tt(P==null?void 0:P.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:Tt(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:Tt(U,tx,P==null?void 0:P.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&ca(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:H=>{var oe,he;ca(f.cancel)&&ts&&((he=(oe=f.cancel).onClick)==null||he.call(oe,H),Cr())},className:Tt(P==null?void 0:P.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&ca(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:H=>{var oe,he;ca(f.action)&&((he=(oe=f.action).onClick)==null||he.call(oe,H),!H.defaultPrevented&&Cr())},className:Tt(P==null?void 0:P.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function Sp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function dk(e,t){let r={};return[e,t].forEach((n,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?sk:nk;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${i}-${c}`]=a:r[`${i}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(a)}),r}var hk=y.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:h,duration:p,style:f,visibleToasts:x=rk,toastOptions:m,dir:b=Sp(),gap:v=ik,loadingIcon:g,icons:w,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=e,[k,E]=A.useState([]),j=A.useMemo(()=>Array.from(new Set([n].concat(k.filter(F=>F.position).map(F=>F.position)))),[k,n]),[R,O]=A.useState([]),[B,M]=A.useState(!1),[U,I]=A.useState(!1),[X,V]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
236k":"light"),K=A.useRef(null),T=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=A.useRef(null),L=A.useRef(!1),G=A.useCallback(F=>{E(J=>{var Z;return(Z=J.find(_e=>_e.id===F.id))!=null&&Z.delete||Xe.dismiss(F.id),J.filter(({id:_e})=>_e!==F.id)})},[]);return A.useEffect(()=>Xe.subscribe(F=>{if(F.dismiss){E(J=>J.map(Z=>Z.id===F.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{ry.flushSync(()=>{E(J=>{let Z=J.findIndex(_e=>_e.id===F.id);return Z!==-1?[...J.slice(0,Z),{...J[Z],...F},...J.slice(Z+1)]:[F,...J]})})})}),[]),A.useEffect(()=>{if(d!=="system"){V(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:J})=>{V(J?"dark":"light")})}catch{F.addListener(({matches:Z})=>{try{V(Z?"dark":"light")}catch(_e){console.error(_e)}})}},[d]),A.useEffect(()=>{k.length<=1&&M(!1)},[k]),A.useEffect(()=>{let F=J=>{var Z,_e;s.every($e=>J[$e]||J.code===$e)&&(M(!0),(Z=K.current)==null||Z.focus()),J.code==="Escape"&&(document.activeElement===K.current||(_e=K.current)!=null&&_e.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[s]),A.useEffect(()=>{if(K.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,L.current=!1)}},[K.current]),A.createElement("section",{ref:t,"aria-label":`${_} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((F,J)=>{var Z;let[_e,$e]=F.split("-");return k.length?A.createElement("ol",{key:F,dir:b==="auto"?Sp():b,tabIndex:-1,ref:K,className:a,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":_e,"data-lifted":B&&k.length>1&&!o,"data-x-position":$e,style:{"--front-toast-height":`${((Z=R[0])==null?void 0:Z.height)||0}px`,"--width":`${ok}px`,"--gap":`${v}px`,...f,...dk(l,c)},onBlur:ne=>{L.current&&!ne.currentTarget.contains(ne.relatedTarget)&&(L.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||L.current||(L.current=!0,P.current=ne.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{U||M(!1)},onDragEnd:()=>M(!1),onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(ne=>!ne.position&&J===0||ne.position===F).map((ne,Xn)=>{var Sr,fn;return A.createElement(uk,{key:ne.id,icons:w,index:Xn,toast:ne,defaultRichColors:h,duration:(Sr=m==null?void 0:m.duration)!=null?Sr:p,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:r,visibleToasts:x,closeButton:(fn=m==null?void 0:m.closeButton)!=null?fn:i,interacting:U,position:F,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:G,toasts:k.filter(kr=>kr.position==ne.position),heights:R.filter(kr=>kr.position==ne.position),setHeights:O,expandByDefault:o,gap:v,loadingIcon:g,expanded:B,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const fk=({...e})=>{const{theme:t="system"}=US();return u.jsx(hk,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var pk=Cd[" useId ".trim().toString()]||(()=>{}),mk=0;function Mc(e){const[t,r]=y.useState(pk());return vr(()=>{e||r(n=>n??String(mk++))},[e]),e||(t?`radix-${t}`:"")}const gk=["top","right","bottom","left"],ln=Math.min,it=Math.max,dl=Math.round,ua=Math.floor,Zt=e=>({x:e,y:e}
vendor: 19,317 bytes, line 236
236),vk={left:"right",right:"left",bottom:"top",top:"bottom"},yk={start:"end",end:"start"};function rd(e,t,r){return it(e,ln(t,r))}function yr(e,t){return typeof e=="function"?e(t):e}function wr(e){return e.split("-")[0]}function uo(e){return e.split("-")[1]}function Ch(e){return e==="x"?"y":"x"}function Th(e){return e==="y"?"height":"width"}const wk=new Set(["top","bottom"]);function Jt(e){return wk.has(wr(e))?"y":"x"}function jh(e){return Ch(Jt(e))}function xk(e,t,r){r===void 0&&(r=!1);const n=uo(e),s=jh(e),o=Th(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=hl(i)),[i,hl(i)]}function bk(e){const t=hl(e);return[nd(e),t,nd(t)]}function nd(e){return e.replace(/start|end/g,t=>yk[t])}const kp=["left","right"],Ep=["right","left"],_k=["top","bottom"],Sk=["bottom","top"];function kk(e,t,r){switch(e){case"top":case"bottom":return r?t?Ep:kp:t?kp:Ep;case"left":case"right":return t?_k:Sk;default:return[]}}function Ek(e,t,r,n){const s=uo(e);let o=kk(wr(e),r==="start",n);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(nd)))),o}function hl(e){return e.replace(/left|right|bottom|top/g,t=>vk[t])}function Ck(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qy(e){return typeof e!="number"?Ck(e):{top:e,right:e,bottom:e,left:e}}function fl(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Cp(e,t,r){let{reference:n,floating:s}=e;const o=Jt(t),i=jh(t),a=Th(i),l=wr(t),c=o==="y",d=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let f;switch(l){case"top":f={x:d,y:n.y-s.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-s.width,y:h};break;default:f={x:n.x,y:n.y}}switch(uo(t)){case"start":f[i]-=p*(r&&c?-1:1);break;case"end":f[i]+=p*(r&&c?-1:1);break}return f}const Tk=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:i}=r,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=Cp(c,n,l),p=n,f={},x=0;for(let m=0;m<a.length;m++){const{name:b,fn:v}=a[m],{x:g,y:w,data:_,reset:S}=await v({x:d,y:h,initialPlacement:n,placement:p,strategy:s,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});d=g??d,h=w??h,f={...f,[b]:{...f[b],..._}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:d,y:h}=Cp(c,p,l)),m=-1)}return{x:d,y:h,placement:p,strategy:s,middlewareData:f}};async function hi(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=yr(t,e),x=Qy(f),b=a[p?h==="floating"?"reference":"floating":h],v=fl(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),g=h==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},S=fl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:l}):g);return{top:(v.top-S.top+x.top)/_.y,bottom:(S.bottom-v.bottom+x.bottom)/_.y,left:(v.left-S.left+x.left)/_.x,right:(S.right-v.right+x.right)/_.x}}const jk=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=yr(e,t)||{};if(c==null)return{};const h=Qy(d),p={x:r,y:n},f=jh(s),x=Th(f),m=await i.getDimensions(c),b=f==="y",v=b?"top":"left",g=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=o.reference[x]+o.reference[f]-p[f]-o.floating[x],S=p[f]-o.reference[f],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=k?k[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(k)))&&(E=a.floating[w]||o.floating[x]);const j=_/2-S/2,R=E/2-m[x]/2-1,O=ln(h[v],R),B=ln(h[g],R),M=O,U=E-m[x]-B,I=E/2-m[x]/2+j,X=rd(M,I,U),V=!l.arrow&&uo(s)!=null&&I!==X&&o.reference[x]/2-(I<M?O:B)-m[x]/2<0,K=V?I<M?I-M:I-U:0;return{[f]:p[f]+K,data:{[f]:X,centerOffset:I-X-K,...V&&{alignmentOffset:K}},reset:V}}}),Pk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...b}=yr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const v=wr(s),g=Jt(a),w=wr(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(w||!m?[hl(a)]:bk(a)),k=x!=="none";!p&&k&&S.push(...Ek(a,m,x,_));const E=[a,...S],j=await hi(t,b),R=[];let O=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&R.push(j[v]),h){const I=xk(s,i,_);R.push(j[I[0]],j[I[1]])}if(O=[...O,{placement:s,overflows:R}],!R.every(I=>I<=0)){var B,M;const I=(((B=o.flip)==null?void 0:B.index)||0)+1,X=E[I];if(X&&(!(h==="alignment"?g!==Jt(X):!1)||O.every(T=>T.overflows[0]>0&&Jt(T.placement)===g)))return{data:{index:I,overflows:O},reset:{placement:X}};let V=(M=O.filter(K=>K.overflows[0]<=0).sort((K,T)=>K.overflows[1]-T.overflows[1])[0])==null?void 0:M.placement;if(!V)switch(f){case"bestFit":{var U;const K=(U=O.filter(T=>{if(k){const P=Jt(T.placement);return P===g||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:U[0];K&&(V=K);break}case"initialPlacement":V=a;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function Tp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jp(e){return gk.some(t=>e[t]>=0)}const Nk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=yr(e,t);switch(n){case"referenceHidden":{const o=await hi(t,{...s,elementContext:"reference"}),i=Tp(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:jp(i)}}}case"escaped":{const o=await hi(t,{...s,altBoundary:!0}),i=Tp(o,r.floating);return{data:{escapedOffsets:i,escaped:jp(i)}}}default:return{}}}}},Jy=new Set(["left","top"]);async function Rk(e,t){const{placement:r,platform:n,elements:s}=e,o=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=wr(r),a=uo(r),l=Jt(r)==="y",c=Jy.has(i)?-1:1,d=o&&l?-1:1,h=yr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const Ak=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await Rk(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},Ok=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...l}=yr(e,t),c={x:r,y:n},d=await hi(t,l),h=Jt(wr(s)),p=Ch(h);let f=c[p],x=c[h];if(o){const b=p==="y"?"top":"left",v=p==="y"?"bottom":"right",g=f+d[b],w=f-d[v];f=rd(g,f,w)}if(i){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=x+d[b],w=x-d[v];x=rd(g,x,w)}const m=a.fn({...t,[p]:f,[h]:x});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[p]:o,[h]:i}}}}}},Ik=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=yr(e,t),d={x:r,y:n},h=Jt(s),p=Ch(h);let f=d[p],x=d[h];const m=yr(a,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",_=o.reference[p]-o.floating[w]+b.mainAxis,S=o.reference[p]+o.reference[w]-b.mainAxis;f<_?f=_:f>S&&(f=S)}if(c){var v,g;const w=p==="y"?"width":"height",_=Jy.has(wr(s)),S=o.reference[h]-o.floating[w]+(_&&((v=i.offset)==null?void 0:v[h])||0)+(_?0:b.crossAxis),k=o.reference[h]+o.reference[w]+(_?0:((g=i.offset)==null?void 0:g[h])||0)-(_?b.crossAxis:0);x<S?x=S:x>k&&(x=k)}return{[p]:f,[h]:x}}}},Lk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...c}=yr(e,t),d=await hi(t,c),h=wr(s),p=uo(s),f=Jt(s)==="y",{width:x,height:m}=o.floating;let b,v;h==="top"||h==="bottom"?(b=h,v=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,b=p==="end"?"top":"bottom");const g=m-d.top-d.bottom,w=x-d.left-d.right,_=ln(m-d[b],g),S=ln(x-d[v],w),k=!t.middlewareData.shift;let E=_,j=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=g),k&&!p){const O=it(d.left,0),B=it(d.right,0),M=it(d.top,0),U=it(d.bottom,0);f?j=x-2*(O!==0||B!==0?O+B:it(d.left,d.right)):E=m-2*(M!==0||U!==0?M+U:it(d.top,d.bottom))}await l({...t,availableWidth:j,availableHeight:E});const R=await i.getDimensions(a.floating);return x!==R.width||m!==R.height?{reset:{rects:!0}}:{}}}};function zl(){return typeof window<"u"}function ho(e){return Yy(e)?(e.nodeName||"").toLowerCase():"#document"}function ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rr(e){var t;return(t=(Yy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yy(e){return zl()?e instanceof Node||e instanceof ut(e).Node:!1}function Ft(e){return zl()?e instanceof Element||e instanceof ut(e).Element:!1}function tr(e){return zl()?e instanceof HTMLElement||e instanceof ut(e).HTMLElement:!1}function Pp(e){return!zl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ut(e).ShadowRoot}const Mk=new Set(["inline","contents"]);function Mi(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Mk.has(s)}const $k=new Set(["table","td","th"]);function Dk(e){return $k.has(ho(e))}const Uk=[":popover-open",":modal"];function Bl(e){return Uk.some(t=>{try{return e.matches(t)}catch{return!1}})}const Fk=["transform","translate","scale","rotate","perspective"],zk=["transform","translate","scale","rotate","perspective","filter"],Bk=["paint","layout","strict","content"];function Ph(e){const t=Nh(),r=Ft(e)?zt(e):e;return Fk.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||zk.some(n=>(r.willChange||"").includes(n))||Bk.some(n=>(r.contain||"").includes(n))}function Wk(e){let t=cn(e);for(;tr(t)&&!no(t);){if(Ph(t))return t;if(Bl(t))return null;t=cn(t)}return null}function Nh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vk=new Set(["html","body","#document"]);function no(e){return Vk.has(ho(e))}function zt(e){return ut(e).getComputedStyle(e)}function Wl(e){return Ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cn(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pp(e)&&e.host||rr(e);return Pp(t)?t.host:t}function Xy(e){const t=cn(e);return no(t)?e.ownerDocument?e.ownerDocument.body:e.body:tr(t)&&Mi(t)?t:Xy(t)}function fi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Xy(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),i=ut(s);if(o){const a=sd(i);return t.concat(i,i.visualViewport||[],Mi(s)?s:[],a&&r?fi(a):[])}return t.concat(s,fi(s,[],r))}function sd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zy(e){const t=zt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=tr(e),o=s?e.offsetWidth:r,i=s?e.offsetHeight:n,a=dl(r)!==o||dl(n)!==i;return a&&(r=o,n=i),{width:r,height:n,$:a}}function Rh(e){return Ft(e)?e:e.contextElement}function Us(e){const t=Rh(e);if(!tr(t))return Zt(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:o}=Zy(t);let i=(o?dl(r.width):r.width)/n,a=(o?dl(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Hk=Zt(0);function e0(e){const t=ut(e);return!Nh()||!t.visualViewport?Hk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qk(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ut(e)?!1:t}function Bn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=Rh(e);let i=Zt(1);t&&(n?Ft(n)&&(i=Us(n)):i=Us(e));const a=qk(o,r,n)?e0(o):Zt(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,d=s.width/i.x,h=s.height/i.y;if(o){const p=ut(o),f=n&&Ft(n)?ut(n):n;let x=p,m=sd(x);for(;m&&n&&f!==x;){const b=Us(m),v=m.getBoundingClientRect(),g=zt(m),w=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*b.x,_=v.top+(m.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,h*=b.y,l+=w,c+=_,x=ut(m),m=sd(x)}}return fl({width:d,height:h,x:l,y:c})}function Ah(e,t){const r=Wl(e).scrollLeft;return t?t.left+r:Bn(rr(e)).left+r}function t0(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:Ah(e,n)),o=n.top+t.scrollTop;return{x:s,y:o}}function Kk(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const o=s==="fixed",i=rr(n),a=t?Bl(t.floating):!1;if(n===i||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Zt(1);const d=Zt(0),h=tr(n);if((h||!h&&!o)&&((ho(n)!=="body"||Mi(i))&&(l=Wl(n)),tr(n))){const f=Bn(n);c=Us(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const p=i&&!h&&!o?t0(i,l,!0):Zt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}}function Gk(e){return Array.from(e.getClientRects())}function Qk(e){const t=rr(e),r=Wl(e),n=e.ownerDocument.body,s=it(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=it(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Ah(e);const a=-r.scrollTop;return zt(n).direction==="rtl"&&(i+=it(t.clientWidth,n.clientWidth)-s),{width:s,height:o,x:i,y:a}}function Jk(e,t){const r=ut(e),n=rr(e),s=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const c=Nh();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const Yk=new Set(["absolute","fixed"]);function Xk(e,t){const r=Bn(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,o=tr(e)?Us(e):Zt(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,c=n*o.y;return{width:i,height:a,x:l,y:c}}function Np(e,t,r){let n;if(t==="viewport")n=Jk(e,r);else if(t==="document")n=Qk(rr(e));else if(Ft(t))n=Xk(t,r);else{const s=e0(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return fl(n)}function r0(e,t){const r=cn(e);return r===t||!Ft(r)||no(r)?!1:zt(r).position==="fixed"||r0(r,t)}function Zk(e,t){const r=t.get(e);if(r)return r;let n=fi(e,[],!1).filter(a=>Ft(a)&&ho(a)!=="body"),s=null;const o=zt(e).position==="fixed";let i=o?cn(e):e;for(;Ft(i)&&!no(i);){const a=zt(i),l=Ph(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&Yk.has(s.position)||Mi(i)&&!l&&r0(e,i))?n=n.filter(d=>d!==i):s=a,i=cn(i)}return t.set(e,n),n}function eE(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Bl(t)?[]:Zk(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((c,d)=>{const h=Np(t,d,s);return c.top=it(h.top,c.top),c.right=ln(h.right,c.right),c.bottom=ln(h.bottom,c.bottom),c.left=it(h.left,c.left),c},Np(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tE(e){const{width:t,height:r}=Zy(e);return{width:t,height:r}}function rE(e,t,r){const n=tr(t),s=rr(t),o=r==="fixed",i=Bn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Zt(0);function c(){l.x=Ah(s)}if(n||!n&&!o)if((ho(t)!=="body"||Mi(s))&&(a=Wl(t)),n){const f=Bn(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&c();o&&!n&&s&&c();const d=s&&!n&&!o?t0(s,a):Zt(0),h=i.left+a.scrollLeft-l.x-d.x,p=i.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:i.width,height:i.height}}function $c(e){return zt(e).position==="static"}function Rp(e,t){if(!tr(e)||zt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return rr(e)===r&&(r=r.ownerDocument.body),r}function n0(e,t){const r=ut(e);if(Bl(e))return r;if(!tr(e)){let s=cn(e);for(;s&&!no(s);){if(Ft(s)&&!$c(s))return s;s=cn(s)}return r}let n=Rp(e,t);for(;n&&Dk(n)&&$c(n);)n=Rp(n,t);return n&&no(n)&&$c(n)&&!Ph(n)?r:n||Wk(e)||r}const nE=async function(e){const t=this.getOffsetParent||n0,r=this.getDimensions,n=await r(e.floating);return{reference:rE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function sE(e){return zt(e).direction==="rtl"}const oE={convertOffsetParentRelativeRectToViewportRelativeRect:Kk,getDocumentElement:rr,getClippingRect:eE,getOffsetParent:n0,getElementRects:nE,getClientRects:Gk,getDimensions:tE,getScale:Us,isElement:Ft,isRTL:sE};function s0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iE(e,t){let r=null,n;const s=rr(e);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=c;if(a||t(),!p||!f)return;const x=ua(h),m=ua(s.clientWidth-(d+p)),b=ua(s.clientHeight-(h+f)),v=ua(d),w={rootMargin:-x+"px "+-m+"px "+-b+"px "+-v+"px",threshold:it(0,ln(1,l))||1};let _=!0;function S(k){const E=k[0].intersectionRatio;if(E!==l){if(!_)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!s0(c,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(S,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(S,w)}r.observe(e)}return i(!0),o}function aE(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Rh(e),d=s||o?[...c?fi(c):[],...fi(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),o&&v.addEventListener("resize",r)});const h=c&&a?iE(c,r):null;let p=-1,f=null;i&&(f=new ResizeObserver(v=>{let[g]=v;g&&g.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),r()}),c&&!l&&f.observe(c),f.observe(t));let x,m=l?Bn(e):null;l&&b();function b(){const v=Bn(e);m&&!s0(m,v)&&r(),m=v,x=requestAnimationFrame(b)}return r(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",r),o&&g.removeEventListener("resize",r)}),h==null||h(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(x)}}const lE=Ak,cE=Ok,uE=Pk,dE=Lk,hE=Nk,Ap=jk,fE=Ik,pE=(e,t,r)=>{const n=new Map,s={platform:oE,...r},o={...s.platform,_c:n};return Tk(e,t,{...s,platform:o})};var mE=typeof document<"u",gE=function(){},Da=mE?y.useLayoutEffect:gE;function pl(e,t){if(e===t)return!0;
vendor: 4,133 bytes, line 236
236if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!pl(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const o=s[n];if(!(o==="_owner"&&e.$$typeof)&&!pl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function o0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Op(e,t){const r=o0(e);return Math.round(t*r)/r}function Dc(e){const t=y.useRef(e);return Da(()=>{t.current=e}),t}function vE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,h]=y.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=y.useState(n);pl(p,n)||f(n);const[x,m]=y.useState(null),[b,v]=y.useState(null),g=y.useCallback(T=>{T!==k.current&&(k.current=T,m(T))},[]),w=y.useCallback(T=>{T!==E.current&&(E.current=T,v(T))},[]),_=o||x,S=i||b,k=y.useRef(null),E=y.useRef(null),j=y.useRef(d),R=l!=null,O=Dc(l),B=Dc(s),M=Dc(c),U=y.useCallback(()=>{if(!k.current||!E.current)return;const T={placement:t,strategy:r,middleware:p};B.current&&(T.platform=B.current),pE(k.current,E.current,T).then(P=>{const L={...P,isPositioned:M.current!==!1};I.current&&!pl(j.current,L)&&(j.current=L,Ai.flushSync(()=>{h(L)}))})},[p,t,r,B,M]);Da(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(T=>({...T,isPositioned:!1})))},[c]);const I=y.useRef(!1);Da(()=>(I.current=!0,()=>{I.current=!1}),[]),Da(()=>{if(_&&(k.current=_),S&&(E.current=S),_&&S){if(O.current)return O.current(_,S,U);U()}},[_,S,U,O,R]);const X=y.useMemo(()=>({reference:k,floating:E,setReference:g,setFloating:w}),[g,w]),V=y.useMemo(()=>({reference:_,floating:S}),[_,S]),K=y.useMemo(()=>{const T={position:r,left:0,top:0};if(!V.floating)return T;const P=Op(V.floating,d.x),L=Op(V.floating,d.y);return a?{...T,transform:"translate("+P+"px, "+L+"px)",...o0(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:P,top:L}},[r,a,V.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:U,refs:X,elements:V,floatingStyles:K}),[d,U,X,V,K])}const yE=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Ap({element:n.current,padding:s}).fn(r):{}:n?Ap({element:n,padding:s}).fn(r):{}}}},wE=(e,t)=>({...lE(e),options:[e,t]}),xE=(e,t)=>({...cE(e),options:[e,t]}),bE=(e,t)=>({...fE(e),options:[e,t]}),_E=(e,t)=>({...uE(e),options:[e,t]}),SE=(e,t)=>({...dE(e),options:[e,t]}),kE=(e,t)=>({...hE(e),options:[e,t]}),EE=(e,t)=>({...yE(e),options:[e,t]});var CE="Arrow",i0=y.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...o}=e;return u.jsx(pe.svg,{...o,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});i0.displayName=CE;var TE=i0;function a0(e){const[t,r]=y.useState(void 0);return vr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=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,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var l0="Popper",[c0,u0]=lo(l0),[fR,d0]=c0(l0),h0="PopperAnchor",f0=y.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,o=d0(h0,r),i=y.useRef(null),a=Me(t,i);return y.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:u.jsx(pe.div,{...s,ref:a})});f0.displayName=h0;var Oh="PopperContent",[jE,PE]=c0(Oh),p0=y.forwardRef((e,t)=>{var ne,Xn,Sr,fn,kr,Zn;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l
vendor: 4,302 bytes, line 236
236=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:x,...m}=e,b=d0(Oh,r),[v,g]=y.useState(null),w=Me(t,Er=>g(Er)),[_,S]=y.useState(null),k=a0(_),E=(k==null?void 0:k.width)??0,j=(k==null?void 0:k.height)??0,R=n+(o!=="center"?"-"+o:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(c)?c:[c],M=B.length>0,U={padding:O,boundary:B.filter(RE),altBoundary:M},{refs:I,floatingStyles:X,placement:V,isPositioned:K,middlewareData:T}=vE({strategy:"fixed",placement:R,whileElementsMounted:(...Er)=>aE(...Er,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[wE({mainAxis:s+j,alignmentAxis:i}),l&&xE({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?bE():void 0,...U}),l&&_E({...U}),SE({...U,apply:({elements:Er,rects:Fi,availableWidth:tc,availableHeight:zi})=>{const{width:rc,height:vo}=Fi.reference,es=Er.floating.style;es.setProperty("--radix-popper-available-width",`${tc}px`),es.setProperty("--radix-popper-available-height",`${zi}px`),es.setProperty("--radix-popper-anchor-width",`${rc}px`),es.setProperty("--radix-popper-anchor-height",`${vo}px`)}}),_&&EE({element:_,padding:a}),AE({arrowWidth:E,arrowHeight:j}),p&&kE({strategy:"referenceHidden",...U})]}),[P,L]=v0(V),G=er(x);vr(()=>{K&&(G==null||G())},[K,G]);const F=(ne=T.arrow)==null?void 0:ne.x,J=(Xn=T.arrow)==null?void 0:Xn.y,Z=((Sr=T.arrow)==null?void 0:Sr.centerOffset)!==0,[_e,$e]=y.useState();return vr(()=>{v&&$e(window.getComputedStyle(v).zIndex)},[v]),u.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:K?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(fn=T.transformOrigin)==null?void 0:fn.x,(kr=T.transformOrigin)==null?void 0:kr.y].join(" "),...((Zn=T.hide)==null?void 0:Zn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(jE,{scope:r,placedSide:P,onArrowChange:S,arrowX:F,arrowY:J,shouldHideArrow:Z,children:u.jsx(pe.div,{"data-side":P,"data-align":L,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});p0.displayName=Oh;var m0="PopperArrow",NE={top:"bottom",right:"left",bottom:"top",left:"right"},g0=y.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,o=PE(m0,n),i=NE[o.placedSide];return u.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:u.jsx(TE,{...s,ref:r,style:{...s.style,display:"block"}})})});g0.displayName=m0;function RE(e){return e!==null}var AE=e=>({name:"transformOrigin",options:e,fn(t){var b,v,g;const{placement:r,rects:n,middlewareData:s}=t,i=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=v0(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let x="",m="";return c==="bottom"?(x=i?h:`${p}px`,m=`${-l}px`):c==="top"?(x=i?h:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(x=`${-l}px`,m=i?h:`${f}px`):c==="left"&&(x=`${n.floating.width+l}px`,m=i?h:`${f}px`),{data:{x,y:m}}}});function v0(e){const[t,r="center"]=e.split("-");return[t,r]}var OE=f0,IE=p0,LE=g0,[Vl,pR]=lo("Tooltip",[u0]),Ih=u0(),y0="TooltipProvider",ME=700,Ip="tooltip.open",[$E,w0]=Vl(y0),x0=e=>{const{__scopeTooltip:t,delayDuration:r=ME,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,i=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx($E,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:o})};x0.displayName=y0;var b0="Tooltip",[mR,Hl]=Vl(b0),od="TooltipTrigger",DE=y.forwardRef((e,t)=>
vendor: 5,599 bytes, line 236
236{const{__scopeTooltip:r,...n}=e,s=Hl(od,r),o=w0(od,r),i=Ih(r),a=y.useRef(null),l=Me(t,a,s.onTriggerChange),c=y.useRef(!1),d=y.useRef(!1),h=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(OE,{asChild:!0,...i,children:u.jsx(pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:ae(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:ae(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ae(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ae(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:ae(e.onBlur,s.onClose),onClick:ae(e.onClick,s.onClose)})})});DE.displayName=od;var UE="TooltipPortal",[gR,FE]=Vl(UE,{forceMount:void 0}),so="TooltipContent",_0=y.forwardRef((e,t)=>{const r=FE(so,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,i=Hl(so,e.__scopeTooltip);return u.jsx(qn,{present:n||i.open,children:i.disableHoverableContent?u.jsx(S0,{side:s,...o,ref:t}):u.jsx(zE,{side:s,...o,ref:t})})}),zE=y.forwardRef((e,t)=>{const r=Hl(so,e.__scopeTooltip),n=w0(so,e.__scopeTooltip),s=y.useRef(null),o=Me(t,s),[i,a]=y.useState(null),{trigger:l,onClose:c}=r,d=s.current,{onPointerInTransitChange:h}=n,p=y.useCallback(()=>{a(null),h(!1)},[h]),f=y.useCallback((x,m)=>{const b=x.currentTarget,v={x:x.clientX,y:x.clientY},g=qE(v,b.getBoundingClientRect()),w=KE(v,g),_=GE(m.getBoundingClientRect()),S=JE([...w,..._]);a(S),h(!0)},[h]);return y.useEffect(()=>()=>p(),[p]),y.useEffect(()=>{if(l&&d){const x=b=>f(b,d),m=b=>f(b,l);return l.addEventListener("pointerleave",x),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",m)}}},[l,d,f,p]),y.useEffect(()=>{if(i){const x=m=>{const b=m.target,v={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),w=!QE(v,i);g?p():w&&(p(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,d,i,c,p]),u.jsx(S0,{...e,ref:o})}),[BE,WE]=Vl(b0,{isInside:!1}),VE=B1("TooltipContent"),S0=y.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Hl(so,r),c=Ih(r),{onClose:d}=l;return y.useEffect(()=>(document.addEventListener(Ip,d),()=>document.removeEventListener(Ip,d)),[d]),y.useEffect(()=>{if(l.trigger){const h=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(IE,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(VE,{children:n}),u.jsx(BE,{scope:r,isInside:!0,children:u.jsx(h_,{id:l.contentId,role:"tooltip",children:s||n})})]})})});_0.displayName=so;var k0="TooltipArrow",HE=y.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Ih(r);return WE(k0,r).isInside?null:u.jsx(LE,{...s,...n,ref:t})});HE.displayName=k0;function qE(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function KE(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function GE(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function QE(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],l=t[i],c=a.x,d=a.y,h=l.x,p=l.y;d>n!=p>n&&r<(h-c)*(n-d)/(p-d)+c&&(s=!s)}return s}function JE(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),YE(t)}function YE(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var XE=x0,E0=_0;const ZE=XE,eC=y.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(E0,{ref:n,sideOffset:t,className:He("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]:sli
236de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));eC.displayName=E0.displayName;var ql=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kl=typeof window>"u"||"Deno"in globalThis;function Nt(){}function tC(e,t){return typeof e=="function"?e(t):e}function rC(e){return typeof e=="number"&&e>=0&&e!==1/0}function nC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function id(e,t){return typeof e=="function"?e(t):e}function sC(e,t){return typeof e=="function"?e(t):e}function Lp(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(n){if(t.queryHash!==Lh(i,t.options))return!1}else if(!mi(t.queryKey,i))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function Mp(e,t){const{exact:r,status:n,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(pi(t.options.mutationKey)!==pi(o))return!1}else if(!mi(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Lh(e,t){return((t==null?void 0:t.queryKeyHashFn)||pi)(e)}function pi(e){return JSON.stringify(e,(t,r)=>ad(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function mi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>mi(e[r],t[r])):!1}function C0(e,t){if(e===t)return e;const r=$p(e)&&$p(t);if(r||ad(e)&&ad(t)){const n=r?e:Object.keys(e),s=n.length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{},l=new Set(n);let c=0;for(let d=0;d<i;d++){const h=r?d:o[d];(!r&&l.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,c++):(a[h]=C0(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&c++)}return s===i&&c===s?e:a}return t}function $p(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ad(e){if(!Dp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Dp(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Dp(e){return Object.prototype.toString.call(e)==="[object Object]"}function oC(e){return new Promise(t=>{setTimeout(t,e)})}function iC(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?C0(e,t):t}function aC(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function lC(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Mh=Symbol();function T0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Mh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pn,zr,Bs,Lm,cC=(Lm=class extends ql{constructor(){super();re(this,Pn);re(this,zr);re(this,Bs);q(this,Bs,t=>{if(!Kl&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){C(this,zr)||this.setEventListener(C(this,Bs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,zr))==null||t.call(this),q(this,zr,void 0))}setEventListener(t){var r;q(this,Bs,t),(r=C(this,zr))==null||r.call(this),q(this,zr,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){C(this,Pn)!==t&&(q(this,Pn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof C(this,Pn)=="boolean"?C(this,Pn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pn=new WeakMap,zr=new WeakMap,Bs=new WeakMap,Lm),j0=new cC,Ws,Br,Vs,Mm,uC=(Mm=class extends ql{constructor(){super();re(this,Ws,!0);re(this,Br);re(this,Vs);q(this,Vs,t=>{if(!Kl&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n
vendor: 4,342 bytes, line 236
236)}}})}onSubscribe(){C(this,Br)||this.setEventListener(C(this,Vs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Br))==null||t.call(this),q(this,Br,void 0))}setEventListener(t){var r;q(this,Vs,t),(r=C(this,Br))==null||r.call(this),q(this,Br,t(this.setOnline.bind(this)))}setOnline(t){C(this,Ws)!==t&&(q(this,Ws,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return C(this,Ws)}},Ws=new WeakMap,Br=new WeakMap,Vs=new WeakMap,Mm),ml=new uC;function dC(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function hC(e){return Math.min(1e3*2**e,3e4)}function P0(e){return(e??"online")==="online"?ml.isOnline():!0}var N0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Uc(e){return e instanceof N0}function R0(e){let t=!1,r=0,n=!1,s;const o=dC(),i=m=>{var b;n||(p(new N0(m)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>j0.isFocused()&&(e.networkMode==="always"||ml.isOnline())&&e.canRun(),d=()=>P0(e.networkMode)&&e.canRun(),h=m=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,m),s==null||s(),o.resolve(m))},p=m=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,m),s==null||s(),o.reject(m))},f=()=>new Promise(m=>{var b;s=v=>{(n||c())&&m(v)},(b=e.onPause)==null||b.call(e)}).then(()=>{var m;s=void 0,n||(m=e.onContinue)==null||m.call(e)}),x=()=>{if(n)return;let m;const b=r===0?e.initialPromise:void 0;try{m=b??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var k;if(n)return;const g=e.retry??(Kl?0:3),w=e.retryDelay??hC,_=typeof w=="function"?w(r,v):w,S=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,v);if(t||!S){p(v);return}r++,(k=e.onFail)==null||k.call(e,r,v),oC(_).then(()=>c()?void 0:f()).then(()=>{t?p(v):x()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?x():f().then(x),o)}}var fC=e=>setTimeout(e,0);function pC(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=fC;const o=a=>{t?e.push(a):s(()=>{r(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var Ge=pC(),Nn,$m,A0=($m=class{constructor(){re(this,Nn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rC(this.gcTime)&&q(this,Nn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Kl?1/0:5*60*1e3))}clearGcTimeout(){C(this,Nn)&&(clearTimeout(C(this,Nn)),q(this,Nn,void 0))}},Nn=new WeakMap,$m),Hs,Rn,mt,An,ze,Ei,On,At,sr,Dm,mC=(Dm=class extends A0{constructor(t){super();re(this,At);re(this,Hs);re(this,Rn);re(this,mt);re(this,An);re(this,ze);re(this,Ei);re(this,On);q(this,On,!1),q(this,Ei,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,An,t.client),q(this,mt,C(this,An).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,Hs,vC(this.options)),this.state=t.state??C(this,Hs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Ei),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,mt).remove(this)}setData(t,r){const n=iC(this.state.data,t,this.options);return De(this,At,sr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){De(this,At,sr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=C(this,ze))==null?void 0:n.promise;return(s=C(this,ze))==null||s.cancel(t),r?r.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Hs))}isActive(){return this.observers.some(t=>sC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mh||this.state.dataUpdateCount+this.state.errorUpdate
236Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>id(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!nC(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=C(this,ze))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=C(this,ze))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(C(this,ze)&&(C(this,On)?C(this,ze).cancel({revert:!0}):C(this,ze).cancelRetry()),this.scheduleGc()),C(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||De(this,At,sr).call(this,{type:"invalidate"})}fetch(t,r){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(C(this,ze))return C(this,ze).continueRetry(),C(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(q(this,On,!0),n.signal)})},o=()=>{const p=T0(this.options,r),x=(()=>{const m={client:C(this,An),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return q(this,On,!1),this.options.persister?this.options.persister(p,x,this):p(x)},a=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:C(this,An),state:this.state,fetchFn:o};return s(p),p})();(c=this.options.behavior)==null||c.onFetch(a,this),q(this,Rn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&De(this,At,sr).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var f,x,m,b;Uc(p)&&p.silent||De(this,At,sr).call(this,{type:"error",error:p}),Uc(p)||((x=(f=C(this,mt).config).onError)==null||x.call(f,p,this),(b=(m=C(this,mt).config).onSettled)==null||b.call(m,this.state.data,p,this)),this.scheduleGc()};return q(this,ze,R0({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var f,x,m,b;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(v){l(v);return}(x=(f=C(this,mt).config).onSuccess)==null||x.call(f,p,this),(b=(m=C(this,mt).config).onSettled)==null||b.call(m,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,f)=>{De(this,At,sr).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{De(this,At,sr).call(this,{type:"pause"})},onContinue:()=>{De(this,At,sr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,ze).start()}},Hs=new WeakMap,Rn=new WeakMap,mt=new WeakMap,An=new WeakMap,ze=new WeakMap,Ei=new WeakMap,On=new WeakMap,At=new WeakSet,sr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...gC(n.data,this.options),fetchMeta:t.meta??null};case"success":return q(this,Rn,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Uc(s)&&s.revert&&C(this,Rn)?{...C(this,Rn),fetchStatus:"idle"}
vendor: 4,844 bytes, line 236
236:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ge.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),C(this,mt).notify({query:this,type:"updated",action:t})})},Dm);function gC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ht,Um,yC=(Um=class extends ql{constructor(t={}){super();re(this,Ht);this.config=t,q(this,Ht,new Map)}build(t,r,n){const s=r.queryKey,o=r.queryHash??Lh(s,r);let i=this.get(o);return i||(i=new mC({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){C(this,Ht).has(t.queryHash)||(C(this,Ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=C(this,Ht).get(t.queryHash);r&&(t.destroy(),r===t&&C(this,Ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Ht).get(t)}getAll(){return[...C(this,Ht).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Lp(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Lp(t,n)):r}notify(t){Ge.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ht=new WeakMap,Um),qt,qe,In,Kt,Ar,Fm,wC=(Fm=class extends A0{constructor(t){super();re(this,Kt);re(this,qt);re(this,qe);re(this,In);this.mutationId=t.mutationId,q(this,qe,t.mutationCache),q(this,qt,[]),this.state=t.state||xC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,qt).includes(t)||(C(this,qt).push(t),this.clearGcTimeout(),C(this,qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,qt,C(this,qt).filter(r=>r!==t)),this.scheduleGc(),C(this,qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,qt).length||(this.state.status==="pending"?this.scheduleGc():C(this,qe).remove(this))}continue(){var t;return((t=C(this,In))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,c,d,h,p,f,x,m,b,v,g,w,_,S,k,E,j;const r=()=>{De(this,Kt,Ar).call(this,{type:"continue"})};q(this,In,R0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,O)=>{De(this,Kt,Ar).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{De(this,Kt,Ar).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,qe).canRun(this)}));const n=this.state.status==="pending",s=!C(this,In).canStart();try{if(n)r();else{De(this,Kt,Ar).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=C(this,qe).config).onMutate)==null?void 0:i.call(o,t,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));O!==this.state.context&&De(this,Kt,Ar).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const R=await C(this,In).start();return await((d=(c=C(this,qe).config).onSuccess)==null?void 0:d.call(c,R,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,R,t,this.state.context)),await((x=(f=C(this,qe).config).onSettled)==null?void 0:x.call(f,R,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,R,null,t,this.state.context)),De(this,Kt,Ar).call(this,{type:"success",data:R}),R}catch(R){try{throw await((g=(v=C(this,qe).config).onError)==null?void 0:g.call(v,R,t,this.state.context,this)),await((_=(w=this.options).onError)==null?void 0:_.call(w,R,t,this.state.context)),await((k=(S=C(this,qe).config).onSettled)==null?void 0:k.call(S,void 0,R,this.state.variables,this.state.context,this)),await((j=(E=this.options).onSettled)==null?void 0:j.call(E,void 0,R,t,this.state.context)),R}finally{De(this,Kt,Ar).call(this,{type:"error",error:R})}}finally{C(this,qe).runNext(this)}}}
236,qt=new WeakMap,qe=new WeakMap,In=new WeakMap,Kt=new WeakSet,Ar=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ge.batch(()=>{C(this,qt).forEach(n=>{n.onMutationUpdate(t)}),C(this,qe).notify({mutation:this,type:"updated",action:t})})},Fm);function xC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cr,Ot,Ci,zm,bC=(zm=class extends ql{constructor(t={}){super();re(this,cr);re(this,Ot);re(this,Ci);this.config=t,q(this,cr,new Set),q(this,Ot,new Map),q(this,Ci,0)}build(t,r,n){const s=new wC({mutationCache:this,mutationId:++Wi(this,Ci)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){C(this,cr).add(t);const r=da(t);if(typeof r=="string"){const n=C(this,Ot).get(r);n?n.push(t):C(this,Ot).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,cr).delete(t)){const r=da(t);if(typeof r=="string"){const n=C(this,Ot).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&C(this,Ot).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=da(t);if(typeof r=="string"){const n=C(this,Ot).get(r),s=n==null?void 0:n.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=da(t);if(typeof r=="string"){const s=(n=C(this,Ot).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ge.batch(()=>{C(this,cr).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,cr).clear(),C(this,Ot).clear()})}getAll(){return Array.from(C(this,cr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Mp(r,n))}findAll(t={}){return this.getAll().filter(r=>Mp(t,r))}notify(t){Ge.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 4,659 bytes, line 236
236r.state.isPaused);return Ge.batch(()=>Promise.all(t.map(r=>r.continue().catch(Nt))))}},cr=new WeakMap,Ot=new WeakMap,Ci=new WeakMap,zm);function da(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Up(e){return{onFetch:(t,r)=>{var d,h,p,f,x;const n=t.options,s=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=T0(t.options,t.fetchOptions),g=async(w,_,S)=>{if(m)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return b(B),B})(),j=await v(E),{maxPages:R}=t.options,O=S?lC:aC;return{pages:O(w.pages,j,R),pageParams:O(w.pageParams,_,R)}};if(s&&o.length){const w=s==="backward",_=w?_C:Fp,S={pages:o,pageParams:i},k=_(n,S);a=await g(S,k,w)}else{const w=e??o.length;do{const _=l===0?i[0]??n.initialPageParam:Fp(n,a);if(l>0&&_==null)break;a=await g(a,_),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,b;return(b=(m=t.options).persister)==null?void 0:b.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function Fp(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function _C(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ye,Wr,Vr,qs,Ks,Hr,Gs,Qs,Bm,SC=(Bm=class{constructor(e={}){re(this,ye);re(this,Wr);re(this,Vr);re(this,qs);re(this,Ks);re(this,Hr);re(this,Gs);re(this,Qs);q(this,ye,e.queryCache||new yC),q(this,Wr,e.mutationCache||new bC),q(this,Vr,e.defaultOptions||{}),q(this,qs,new Map),q(this,Ks,new Map),q(this,Hr,0)}mount(){Wi(this,Hr)._++,C(this,Hr)===1&&(q(this,Gs,j0.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ye).onFocus())})),q(this,Qs,ml.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ye).onOnline())})))}unmount(){var e,t;Wi(this,Hr)._--,C(this,Hr)===0&&((e=C(this,Gs))==null||e.call(this),q(this,Gs,void 0),(t=C(this,Qs))==null||t.call(this),q(this,Qs,void 0))}isFetching(e){return C(this,ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Wr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=C(this,ye).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=C(this,ye).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(id(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return C(this,ye).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=C(this,ye).get(n.queryHash),o=s==null?void 0:s.state.data,i=tC(t,o);if(i!==void 0)return C(this,ye).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Ge.batch(()=>C(this,ye).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=C(this,ye).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=C(this,ye);Ge.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=C(this,ye);return Ge.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ge.batch(()=>C(this,ye).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(Nt).catch(Nt)}invalidateQueries(e,t={}){return Ge.batch(()=>(C(this,ye).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ge.batch(()=>C(this,ye).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(Nt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=C(this,ye).build(this,t);return r.isStaleByTime(id(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}
236prefetchQuery(e){return this.fetchQuery(e).then(Nt).catch(Nt)}fetchInfiniteQuery(e){return e.behavior=Up(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nt).catch(Nt)}ensureInfiniteQueryData(e){return e.behavior=Up(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ml.isOnline()?C(this,Wr).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ye)}getMutationCache(){return C(this,Wr)}getDefaultOptions(){return C(this,Vr)}setDefaultOptions(e){q(this,Vr,e)}setQueryDefaults(e,t){C(this,qs).set(pi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,qs).values()],r={};return t.forEach(n=>{mi(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){C(this,Ks).set(pi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Ks).values()],r={};return t.forEach(n=>{mi(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Vr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Mh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Vr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ye).clear(),C(this,Wr).clear()}},ye=new WeakMap,Wr=new WeakMap,Vr=new WeakMap,qs=new WeakMap,Ks=new WeakMap,Hr=new WeakMap,Gs=new WeakMap,Qs=new WeakMap,Bm),kC=y.createContext(void 0),EC=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(kC.Provider,{value:e,children:t}));/** 237 * @remix-run/router v1.23.0 238 * 239 * Copyright (c) Remix Software Inc. 240 * 241 * This source code is licensed under the MIT license found in the 242 * LICENSE.md file in the root directory of this source tree. 243 * 244 * @license MIT 245 */function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gi.apply(this,arguments)}var Gr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Gr||(Gr={}));const zp="popstate";function CC(e){e===void 0&&(e={});function t(n,s){let{pathname:o,search:i,hash:a}=n.location;return ld("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:gl(s)}return jC(t,r,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function O0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function TC(){return Math.random().toString(36).substr(2,8)}function Bp(e,t){return{usr:e.state,key:e.key,idx:t}}function ld(e,t,r,n){return r===void 0&&(r=null),gi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fo(t):t,{state:r,key:t&&t.key||n||TC()})}function gl(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function fo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function jC(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:o=!1}=n,i=s.history,a=Gr.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(gi({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function h(){a=Gr.Pop;let b=d(),v=b==null?null:b-c;c=b,l&&l({action:a,location:m.location,delta:v})}function p(b,v){a=Gr.Push;let g=ld(m.location,b,v);c=d()+1;let w=Bp(g,c),_=m.createHref(g);try{i.pushState(w,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}o&&l&&l({action:a,location:m.location,delta:1})}function f(b,v){a=Gr.Replace;let g=ld(m.location,b,v);c=d();let w=Bp(g,c),_=m.createHref(g);i.replaceState(w,"",_),o&&l&&l({action:a,location:m.location,delta:0})}function x(b){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:gl(b);return g=g.replace(/ $/,"%20"),Ee(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return a},get location(){return e(s,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(zp,h),l=b,()=>{s.removeEventListener(zp,h),l=null}},createHref(b){return t(s,b)},createURL:x,encodeLocation(b){let v=x(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:f,go(b){return i.go(b)}};return m}var Wp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wp||(Wp={}));function PC(e,t,r){return r===void 0&&(r="/"),NC(e,t,r,!1)}function NC(e,t,r,n){let s=typeof t=="string"?fo(t):t,o=$h(s.pathname||"/",r);if(o==null)return null;let i=I0(e);RC(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=BC(o);a=FC(i[l],c,n)}return a}function I0(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");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("/")&&(Ee(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not val
245id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=nn([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(Ee(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),I0(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:DC(c,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of L0(o.path))s(o,i,l)}),t}function L0(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return s?[o,""]:[o];let i=L0(n.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function RC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:UC(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const AC=/^:[\w-]+$/,OC=3,IC=2,LC=1,MC=10,$C=-2,Vp=e=>e==="*";function DC(e,t){let r=e.split("/"),n=r.length;return r.some(Vp)&&(n+=$C),t&&(n+=IC),r.filter(s=>!Vp(s)).reduce((s,o)=>s+(AC.test(o)?OC:o===""?LC:MC),n)}function UC(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function FC(e,t,r){let{routesMeta:n}=e,s={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=Hp({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),p=l.route;if(!h&&c&&r&&!n[n.length-1].route.index&&(h=Hp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 13,474 bytes, lines 245-263
245Object.assign(s,h.params),i.push({params:s,pathname:nn([o,h.pathname]),pathnameBase:qC(nn([o,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(o=nn([o,h.pathnameBase]))}return i}function Hp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=zC(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((c,d,h)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let m=a[h]||"";i=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const x=a[h];return f&&!x?c[p]=void 0:c[p]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function zC(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),O0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function BC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return O0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $h(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function WC(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?fo(e):e;return{pathname:r?r.startsWith("/")?r:VC(r,t):t,search:KC(n),hash:GC(s)}}function VC(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Fc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function HC(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function M0(e,t){let r=HC(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function $0(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=fo(e):(s=gi({},e),Ee(!s.pathname||!s.pathname.includes("?"),Fc("?","pathname","search",s)),Ee(!s.pathname||!s.pathname.includes("#"),Fc("#","pathname","hash",s)),Ee(!s.search||!s.search.includes("#"),Fc("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),h-=1;s.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=WC(s,a),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),qC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),KC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,GC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function QC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const D0=["post","put","patch","delete"];new Set(D0);const JC=["get",...D0];new Set(JC);/** 246 * React Router v6.30.1 247 * 248 * Copyright (c) Remix Software Inc. 249 * 250 * This source code is licensed under the MIT license found in the 251 * LICENSE.md file in the root directory of this source tree. 252 * 253 * @license MIT 254 */function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vi.apply(this,arguments)}const Dh=y.createContext(null),YC=y.createContext(null),Kn=y.createContext(null),$i=y.createContext(null),Gn=y.createContext({outlet:null,matches:[],isDataRoute:!1}),U0=y.createContext(null);function XC(e,t){let{relative:r}=t===void 0?{}:t;Di()||Ee(!1);let{basename:n,navigator:s}=y.useContext(Kn),{hash:o,pathname:i,search:a}=z0(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:nn([n,i])),s.createHref({pathname:l,search:a,hash:o})}function Di(){return y.useContext($i)!=null}function Qn(){return Di()||Ee(!1),y.useContext($i).location}function ZC(){return y.useContext($i).navigationType}function F0(e){y.useContext(Kn).static||y.useLayoutEffect(e)}function po(){let{isDataRoute:e}=y.useContext(Gn);return e?h2():e2()}function e2(){Di()||Ee(!1);let e=y.useContext(Dh),{basename:t,future:r,navigator:n}=y.useContext(Kn),{matches:s}=y.useContext(Gn),{pathname:o}=Qn(),i=JSON.stringify(M0(s,r.v7_relativeSplatPath)),a=y.useRef(!1);return F0(()=>{a.current=!0}),y.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let h=$0(c,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:nn([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,i,o,e])}function z0(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=y.useContext(Kn),{matches:s}=y.useContext(Gn),{pathname:o}=Qn(),i=JSON.stringify(M0(s,n.v7_relativeSplatPath));return y.useMemo(()=>$0(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function t2(e,t){return r2(e,t)}function r2(e,t,r,n){Di()||Ee(!1);let{navigator:s}=y.useContext(Kn),{matches:o}=y.useContext(Gn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=Qn(),d;if(t){var h;let b=typeof t=="string"?fo(t):t;l==="/"||(h=b.pathname)!=null&&h.startsWith(l)||Ee(!1),d=b}else d=c;let p=d.pathname||"/",f=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=PC(e,{pathname:f}),m=a2(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:nn([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:nn([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,r,n);return t&&m?y.createElement($i.Provider,{value:{location:vi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Gr.Pop}},m):m}function n2(){let e=d2(),t=QC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.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"}},t),r?y.createElement("pre",{style:s},r):null,null)}const s2=y.createElement(n2,null);class o2 extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?y.createElement(Gn.Provider,{value:this.props.routeContext},y.createElement(U0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function i2(e){let{routeContext:t,match:r,children:n}=e,s=y.useContext(Dh);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),y.createElement(Gn.Provider,{value:t},n)}function a2(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=(s=r)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||Ee(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:p,errors:f}=r,x=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||x){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,h,p)=>{let f,x=!1,m=null,b=null;r&&(f=a&&h.route.id?a[h.route.id]:void 0,m=h.route.errorElement||s2,l&&(c<0&&p===0?(x=!0,b=null):c===p&&(x=!0,b=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,p+1)),g=()=>{let w;return f?w=m:x?w=b:h.route.Component?w=y.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=d,y.createElement(i2,{match:h,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:w})};return r&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?y.createElement(o2,{location:r.location,revalidation:r.revalidation,component:m,error:f,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var B0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(B0||{}),vl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vl||{});function l2(e){let t=y.useContext(Dh);return t||Ee(!1),t}function c2(e){let t=y.useContext(YC);return t||Ee(!1),t}function u2(e){let t=y.useContext(Gn);return t||Ee(!1),t}function W0(e){let t=u2(),r=t.matches[t.matches.length-1];return r.route.id||Ee(!1),r.route.id}function d2(){var e;let t=y.useContext(U0),r=c2(vl.UseRouteError),n=W0(vl.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function h2(){let{router:e}=l2(B0.UseNavigateStable),t=W0(vl.UseNavigateStable),r=y.useRef(!1);return F0(()=>{r.current=!0}),y.useCallback(function(s,o){o===void 0&&(o={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,vi({fromRouteId:t},o)))},[e,t])}function f2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function or(e){Ee(!1)}function p2(e){let{basename:t="/",children:r=null,location:n,navigationType:s=Gr.Pop,navigator:o,static:i=!1,future:a}=e;Di()&&Ee(!1);let l=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:o,static:i,future:vi({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof n=="string"&&(n=fo(n));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:x="default"}=n,m=y.useMemo(()=>{let b=$h(d,l);return b==null?null:{location:{pathname:b,search:h,hash:p,state:f,key:x},navigationType:s}},[l,d,h,p,f,x,s]);return m==null?null:y.createElement(Kn.Provider,{value:c},y.createElement($i.Provider,{children:r,value:m}))}function m2(e){let{children:t,location:r}=e;return t2(cd(t),r)}new Promise(()=>{});function cd(e,t){t===void 0&&(t=[]);let r=[];return y.Children.forEach(e,(n,s)=>{if(!y.isValidElement(n))return;let o=[...t,s];if(n.type===y.Fragment){r.push.apply(r,cd(n.props.children,o));return}n.type!==or&&Ee(!1),!n.props.index||!n.props.children||Ee(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=cd(n.props.children,o)),r.push(i)}),r}/** 255 * React Router DOM v6.30.1 256 * 257 * Copyright (c) Remix Software Inc. 258 * 259 * This source code is licensed under the MIT license found in the 260 * LICENSE.md file in the root directory of this source tree. 261 * 262 * @license MIT 263 */function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(this,arguments)}function g2(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function v2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function y2(e,t){return e.button===0&&(!t||t==="_self")&&!v2(e)}const w2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],x2="6";try{window.__reactRouterVersion=x2}catch{}const b2="startTransition",qp=Cd[b2];function _2(e){let{basename:t,children:r,future:n,window:s}=e,o=y.useRef();o.current==null&&(o.current=CC({window:s,v5Compat:!0}));let i=o.current,[a,l]=y.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},d=y.useCallback(h=>{c&&qp?qp(()=>l(h)):l(h)},[l,c]);return y.useLayoutEffect(()=>
263i.listen(d),[i,d]),y.useEffect(()=>f2(n),[n]),y.createElement(p2,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:i,future:n})}const S2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ur=y.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:d,viewTransition:h}=t,p=g2(t,w2),{basename:f}=y.useContext(Kn),x,m=!1;if(typeof c=="string"&&k2.test(c)&&(x=c,S2))try{let w=new URL(window.location.href),_=c.startsWith("//")?new URL(w.protocol+c):new URL(c),S=$h(_.pathname,f);_.origin===w.origin&&S!=null?c=S+_.search+_.hash:m=!0}catch{}let b=XC(c,{relative:s}),v=E2(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function g(w){n&&n(w),w.defaultPrevented||v(w)}return y.createElement("a",ud({},p,{href:x||b,onClick:m||o?n:g,ref:r,target:l}))});var Kp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kp||(Kp={}));var Gp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gp||(Gp={}));function E2(e,t){let{target:r,replace:n,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=po(),c=Qn(),d=z0(e,{relative:i});return y.useCallback(h=>{if(y2(h,r)){h.preventDefault();let p=n!==void 0?n:gl(c)===gl(d);l(e,{replace:p,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[c,l,d,n,s,r,e,o,i,a])}const C2=()=>{const{pathname:e}=Qn(),t=ZC();return y.useEffect(()=>{t!=="POP"&&window.scrollTo({top:0,left:0,behavior:"instant"})},[e,t]),null};var Qt=function(){return Qt=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Qt.apply(this,arguments)};function mo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function T2(e,t,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{c(n.next(d))}catch(h){i(h)}}function l(d){try{c(n.throw(d))}catch(h){i(h)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})}function j2(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,o;n<s;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}const P2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Uh extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class N2 extends Uh{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Qp extends Uh{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Jp extends Uh{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var dd;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(dd||(dd={}));class R2{constructor(t,{headers:r={},customFetch:n,region:s=dd.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=P2(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return T2(this,arguments,void 0,function*(r,n={}){var s;let o,i;try{const{headers:a,method:l,body:c,signal:d,timeout:h}=n;let p={},{region:f}=n;f||(f=this.region);const x=new URL(`${this.url}/${r}`);f&&f!=="any"&&(p["x-region"]=f,x.searchParams.set("forceFunctionRegion",f));let m;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(p["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(p["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let b=d;h&&(i=new AbortController,o=setTimeout(()=>i.abort(),h),d?(b=i.signal,d.addEventListener("abort",()=>i.abort())):b=i.signal);const v=yield this.fetch(x.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:m,signal:b}).catch(S=>{throw new N2(S)}),g=v.headers.get("x-relay-error");
263if(g&&g==="true")throw new Qp(v);if(!v.ok)throw new Jp(v);let w=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return w==="application/json"?_=yield v.json():w==="application/octet-stream"||w==="application/pdf"?_=yield v.blob():w==="text/event-stream"?_=v:w==="multipart/form-data"?_=yield v.formData():_=yield v.text(),{data:_,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof Jp||a instanceof Qp?a.context:void 0}}finally{o&&clearTimeout(o)}})}}var A2=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},O2=class{constructor(e){var t,r,n;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=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(n=e.urlLengthLimit)!==null&&n!==void 0?n:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;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 n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{let i=null,a=null,l=null,c=o.status,d=o.statusText;if(o.ok){var h,p;if(r.method!=="HEAD"){var f;const v=await o.text();v===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((f=r.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=v:a=JSON.parse(v))}const m=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),b=(p=o.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");m&&b&&b.length>1&&(l=parseInt(b[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(a)&&(a.length>1?(i={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var x;const m=await o.text();try{i=JSON.parse(m),Array.isArray(i)&&o.status===404&&(a=[],i=null,c=200,d="OK")}catch{o.status===404&&m===""?(c=204,d="No Content"):i={message:m}}if(i&&r.isMaybeSingle&&(!(i==null||(x=i.details)===null||x===void 0)&&x.includes("0 rows"))&&(i=null,c=200,d="OK"),i&&r.shouldThrowOnError)throw new A2(i)}return{error:i,data:a,count:l,status:c,statusText:d}});return this.shouldThrowOnError||(s=s.catch(o=>{var i;let a="",l="",c="";const d=o==null?void 0:o.cause;if(d){var h,p,f,x;const v=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",g=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";a=`${(f=o==null?void 0:o.name)!==null&&f!==void 0?f:"FetchError"}: ${o==null?void 0:o.message}`,a+=` 264 265Caused by: ${(x=d==null?void 0:d.name)!==null&&x!==void 0?x:"Error"}: ${v}`,g&&(a+=` (${g})`),d!=null&&d.stack&&(a+=` 266${d.stack}`)}else{var m;a=(m=o==null?void 0:o.stack)!==null&&m!==void 0?m:""}const b=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(c="",l="Request was aborted (timeout or manual cancellation)",b>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${b} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(c="",l="HTTP headers exceeded server limits (typically 16KB)",b>this.urlLengthLimit&&(l+=`. Your request URL is ${b} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:a,hint:l,code:c},data:null,count:null,status:0,statusText:""}}
266)),s.then(e,t)}returns(){return this}overrideTypes(){return this}},I2=class extends O2{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const o=s?`${s}.order`:"order",i=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,o=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(o,`${t-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}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:o="text"}={}){var i;const a=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(i=this.headers.get("Accept"))!==null&&i!==void 0?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`),o==="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}};const Yp=new RegExp("[,()]");var ms=class extends I2{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Yp.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Yp.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},L2=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=s}
266cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let o=!1;const i=(e??"*").split("").map(c=>/\s/.test(c)&&!o?"":(c==='"'&&(o=!o),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",i),n&&l.append("Prefer",`count=${n}`),new ms({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST",{url:o,headers:i}=this.cloneRequestState();if(t&&i.append("Prefer",`count=${t}`),r||i.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>0){const l=[...new Set(a)].map(c=>`"${c}"`);o.searchParams.set("columns",l.join(","))}}return new ms({method:s,url:o,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var o;const i="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),n&&l.append("Prefer",`count=${n}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(c.length>0){const d=[...new Set(c)].map(h=>`"${h}"`);a.searchParams.set("columns",d.join(","))}}return new ms({method:i,url:a,headers:l,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var r;const n="PATCH",{url:s,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new ms({method:n,url:s,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ms({method:r,url:n,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function M2(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $2(e){var t=M2(e,"string");return yi(t)=="symbol"?t:t+""}function D2(e,t,r){return(t=$2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ha(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xp(Object(r),!0).forEach(function(n){D2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var U2=class V0{constructor(t,{headers:r={},schema:n,fetch:s,timeout:o,urlLengthLimit:i=8e3}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=i;const a=s??globalThis.fetch;o!==void 0&&o>0?this.fetch=(l,c)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),o),p=c==null?void 0:c.signal;if(p){if(p.aborted)return clearTimeout(h),a(l,c);const f=()=>{clearTimeout(h),d.abort()};return p.addEventListener("abort",f,{once:!0}),a(l,ha(ha({},c),{},{signal:d.signal})).finally(()=>{clearTimeout(h),p.removeEventListener("abort",f)})}return a(l,ha(ha({},c),{},{signal:d.signal})).finally(()=>clearTimeout(h))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new L2(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new V0(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,r={},{head:n=!1,get:s=!1,count:o}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const d=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(d)),h=n&&Object.values(r).some(d);h?(a="POST",c=r):n||s?(a=n?"HEAD":"GET",Object.entries(r).filter(([f,x])=>x!==void 0).map(([f,x])=>[f,Array.isArray(x)?`{${x.join(",")}}`:`${x}
266`]).forEach(([f,x])=>{l.searchParams.append(f,x)})):(a="POST",c=r);const p=new Headers(this.headers);return h?p.set("Prefer",o?`count=${o},return=minimal`:"return=minimal"):o&&p.set("Prefer",`count=${o}`),new ms({method:a,url:l,headers:p,schema:this.schemaName,body:c,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}};class F2{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const s=n.node,o=parseInt(s.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 267import ws from "ws" 268new 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 t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 269 270Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const z2="2.97.0",B2=`realtime-js/${z2}`,W2="1.0.0",H0="2.0.0",Zp=H0,hd=1e4,V2=1e3,H2=100;var Mr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Mr||(Mr={}));var Ce;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ce||(Ce={}));var Lt;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Lt||(Lt={}));var fd;(function(e){e.websocket="websocket"})(fd||(fd={}));var Sn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Sn||(Sn={}));class q2{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},i=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(t,r,n){var s,o;const i=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(o=t.join_ref)!==null&&o!==void 0?o:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+i.length+c.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let x=new DataView(f),m=0;x.setUint8(m++,this.KINDS.userBroadcastPush),x.setUint8(m++,l.length),x.setUint8(m++,a.length),x.setUint8(m++,i.length),x.setUint8(m++,c.length),x.setUint8(m++,h.length),x.setUint8(m++,r),Array.from(l,v=>x.setUint8(m++,v.charCodeAt(0))),Array.from(a,v=>
270x.setUint8(m++,v.charCodeAt(0))),Array.from(i,v=>x.setUint8(m++,v.charCodeAt(0))),Array.from(c,v=>x.setUint8(m++,v.charCodeAt(0))),Array.from(h,v=>x.setUint8(m++,v.charCodeAt(0)));var b=new Uint8Array(f.byteLength+n.byteLength);return b.set(new Uint8Array(f),0),b.set(new Uint8Array(n),f.byteLength),b.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,o,i,a,l]=n;return r({join_ref:s,ref:o,topic:i,event:a,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),o=r.getUint8(2),i=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const c=n.decode(t.slice(l,l+s));l=l+s;const d=n.decode(t.slice(l,l+o));l=l+o;const h=n.decode(t.slice(l,l+i));l=l+i;const p=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(n.decode(p)):p,x={type:this.BROADCAST_EVENT,event:d,payload:f};return i>0&&(x.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:x}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class q0{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}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 ie;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ie||(ie={}));const em=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((o,i)=>(o[i]=K2(i,e,t,s),o),{}):{}},K2=(e,t,r,n)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=r[e];return o&&!n.includes(o)?K0(o,i):pd(i)},K0=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return Y2(t,r)}switch(e){case ie.bool:return G2(t);case ie.float4:case ie.float8:case ie.int2:case ie.int4:case ie.int8:case ie.numeric:case ie.oid:return Q2(t);case ie.json:case ie.jsonb:return J2(t);case ie.timestamp:return X2(t);case ie.abstime:case ie.date:case ie.daterange:case ie.int4range:case ie.int8range:case ie.money:case ie.reltime:case ie.text:case ie.time:case ie.timestamptz:case ie.timetz:case ie.tsrange:case ie.tstzrange:return pd(t);default:return pd(t)}},pd=e=>e,G2=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Q2=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},J2=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},Y2=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let o;const i=e.slice(1,r);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>K0(t,a))}return e},X2=e=>typeof e=="string"?e.replace(" ","T"):e,G0=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class zc{constructor(t,r,n={},s=hd){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,j
vendor: 4,598 bytes, line 270
270oin_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var tm;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(tm||(tm={}));class qo{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=qo.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=qo.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=qo.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const o=this.cloneDeep(t),i=this.transformState(r),a={},l={};return this.map(o,(c,d)=>{i[c]||(l[c]=d)}),this.map(i,(c,d)=>{const h=o[c];if(h){const p=d.map(b=>b.presence_ref),f=h.map(b=>b.presence_ref),x=d.filter(b=>f.indexOf(b.presence_ref)<0),m=h.filter(b=>p.indexOf(b.presence_ref)<0);x.length>0&&(a[c]=x),m.length>0&&(l[c]=m)}else a[c]=d}),this.syncDiff(o,{joins:a,leaves:l},n,s)}static syncDiff(t,r,n,s){const{joins:o,leaves:i}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var c;const d=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),d.length>0){const h=t[a].map(f=>f.presence_ref),p=d.filter(f=>h.indexOf(f.presence_ref)<0);t[a].unshift(...p)}n(a,d,l)}),this.map(i,(a,l)=>{let c=t[a];if(!c)return;const d=l.map(h=>h.presence_ref);c=c.filter(h=>d.indexOf(h.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var rm;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(rm||(rm={}));var Ko;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ko||(Ko={}));var ar;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(ar||(ar={}));class Rs{constructor(t,r={config:{}},n){var s,o;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Ce.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new zc(this,Lt.join,this.params,this.timeout),this.rejoinTimer=new q0(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ce.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
270i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ce.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Ce.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ce.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Ce.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Lt.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new qo(this),this.broadcastEndpointURL=G0(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==Ce.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,c=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Ko.PRESENCE]&&this.bindings[Ko.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,h={},p={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(ar.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(ar.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:f})=>{var x;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(ar.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,b=(x=m==null?void 0:m.length)!==null&&x!==void 0?x:0,v=[];for(let g=0;g<b;g++){const w=m[g],{filter:{event:_,schema:S,table:k,filter:E}}=w,j=f&&f[g];if(j&&j.event===_&&Rs.isFilterValueEqual(j.schema,S)&&Rs.isFilterValueEqual(j.table,k)&&Rs.isFilterValueEqual(j.filter,E))v.push(Object.assign(Object.assign({},w),{id:j.id}));else{this.unsubscribe(),this.state=Ce.errored,t==null||t(ar.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(ar.SUBSCRIBED);return}}).receive("error",f=>{this.state=Ce.errored,t==null||t(ar.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(ar.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===Ce.joined&&t===Ko.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const i={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
270in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:i}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const c=this._push(t.type,t,r.timeout||this.timeout);t.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"),c.receive("ok",()=>o("ok")),c.receive("error",()=>o("error")),c.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ce.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Lt.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new zc(this,Lt.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ce.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,o=setTimeout(()=>s.abort(),n),i=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(o),i}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new zc(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>H2){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=Lt;if(n&&[a,l,c,d].indexOf(i)>=0&&n!==this._joinRef())return;let p=this._onMessage(i,r,n);if(r&&!p)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 x,m,b;return((x=f.filter)===null||x===void 0?void 0:x.event)==="*"||((b=(m=f.filter)===null||m===void 0?void 0:m.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===i}).map(f=>f.callback(p,n)):(o=this.bindings[i])===null||o===void 0||o.filter(f=>{var x,m,b,v,g,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const _=f.id,S=(x=f.filter)===null||x===void 0?void 0:x.event;return _&&((m=r.ids)===null||m===void 0?void 0:m.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((b=r.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(g=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((w=r==null?void 0:r.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof p=="object"&&"ids"in p){const x=p.data,{schema:m,table:b,commit_timestamp:v,type:g,errors:w}=x;p=Object.assign(Object.assign({},{schema:m,table:b,commit_timestamp:v,eventType:g,new:{},old:{},errors:w}),this._getPayloadRecords(x))}f.callback(p,n)})}_isClosed(){return this.state===Ce.closed}_isJoined(){return this.state===Ce.joined}_isJoining(){return this.state===Ce.joining}_isLeaving(){return this.state===Ce.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),o={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===n&&Rs.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Lt.close,{},t)}_onError(t){this._on(Lt.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ce.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=em(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=em(t.columns,t.old_record)),r}}const Bc=()=>{},fa={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Z2=[1e3,2e3,5e3,1e4],eT=1e4,tT=` 271 addEventListener("message", (e) => { 272 if (e.data.event === "start") { 273 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 274 } 275 });`;class rT{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=hd,this.transport=null,this.heartbeatIntervalMs=fa.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Bc,this.ref=0,this.reconnectTimer=null,this.vsn=Zp,this.logger=Bc,this.conn=null,this.sendBuffer=[],this.serializer
275=new q2,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${fd.websocket}`,this.httpEndpoint=G0(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=F2.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 276 277To use Realtime in Node.js, you need to provide a WebSocket implementation: 278 279Option 1: Use Node.js 22+ which has native WebSocket support 280Option 2: Install and provide the "ws" package: 281 282 npm install ws 283 284 import ws from "ws" 285 const client = new RealtimeClient(url, { 286 ...options, 287 transport: ws 288 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Mr.connecting:return Sn.Connecting;case Mr.open:return Sn.Open;case Mr.closing:return Sn.Closing;default:return Sn.Closed}}isConnected(){return this.connectionState()===Sn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===n);if(s)return s;{const o=new Rs(`realtime:${t}`,r,this);return this.channels.push(o),o}}push(t){const{topic:r,event:n,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(V2,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 288
288heduleTimeout()},fa.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const c=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",c)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:s,payload:o,ref:i}=r,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),o),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(s,o,i)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Mr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Mr.open||this.conn.readyState===Mr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
288heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(r){this.log("error","error in heartbeat callback",r)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(Lt.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([tT],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const o={access_token:r,version:B2};r&&s.updateJoinPayload(o),s.joinedOnce&&s._isJoined()&&s._push(Lt.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new q0(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},fa.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,o,i,a,l,c,d,h,p,f;switch(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:hd,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:fa.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Bc,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Zp,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:x=>Z2[x-1]||eT,this.vsn){case W2:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(x,m)=>m(JSON.stringify(x)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(x,m)=>m(JSON.parse(x));break;case H0:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var wi=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function nT(e,t,r){const n=new URL(t,e);if(r)for(const[s,o]of Object.entries(r))o!==void 0&&n.searchParams.set(s,o);return n.toString()}async function sT(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function oT(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:o,headers:i}){const a=nT(e.baseUrl,n,s),l=await sT(e.auth),c=await t(a,{method:r,headers:{...o?{"Content-Type":"application/json"}:{},...l,...i},body:o?JSON.stringify(o):void 0}),d=await c.text(),h=(c.headers.get("content-type")||"").includes("application/json"),p=h&&d?JSON.parse(d):d;if(!c.ok){const f=h?p:void 0,x=f==null?void 0:f.error;throw new wi((x==null?void 0:x.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:f})}return{status:c.status,headers:c.headers,data:p}}}}function pa(e){return e.join("�")}var iT=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:pa(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${pa(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${pa(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${pa(e.namespace)}`}),!0}catch(t){if(t instanceof wi&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof wi&&r.status===409)return;throw r}}};function os(e){return e.join("�")}var aT=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${os(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${os(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof wi&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof wi&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},lT=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=oT({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new iT(this.client,t),this.tableOps=new aT(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
288async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Gl=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function Ql(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var ma=class extends Gl{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Q0=class extends Gl{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const cT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),uT=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},md=e=>{if(Array.isArray(e))return e.map(r=>md(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=md(n)}),t},dT=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function xi(e){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function hT(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fT(e){var t=hT(e,"string");return xi(t)=="symbol"?t:t+""}function pT(e,t,r){return(t=fT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(r),!0).forEach(function(n){pT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const sm=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},mT=async(e,t,r,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const s=e,o=s.status||500;if(typeof s.json=="function")s.json().then(i=>{const a=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||o+"";t(new ma(sm(i),o,a,n))}).catch(()=>{if(n==="vectors"){const i=o+"";t(new ma(s.statusText||`HTTP ${o} error`,o,i,n))}else{const i=o+"";t(new ma(s.statusText||`HTTP ${o} error`,o,i,n))}});else{const i=o+"";t(new ma(s.statusText||`HTTP ${o} error`,o,i,n))}}else t(new Q0(sm(e),e,n))},gT=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!n?z(z({},s),r):(uT(n)?(s.headers=z({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),z(z({},s),r))};async function Po(e,t,r,n,s,o,i){return new Promise((a,l)=>{e(r,gT(t,n,s,o)).then(c=>{if(!c.ok)throw c;if(n!=null&&n.noResolveJson)return c;if(i==="vectors"){const d=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!d||!d.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>mT(c,l,n,i))})}function J0(e="storage"){return{get:async(t,r,n,s)=>Po(t,"GET",r,n,s,void 0,e),post:async(t,r,n,s,o)=>Po(t,"POST",r,s,o,n,e),put:async(t,r,n,s,o)=>Po(t,"PUT",r,s,o,n,e),head:async(t,r,n,s)=>Po(t,"HEAD",r,z(z({},n),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,r,n,s,o)=>Po(t,"DELETE",r,s,o,n,e)}}const vT=J0("storage"),{get:bi,post:Rt,put:gd,head:yT,remove:Fh}=vT,at=J0("vectors");var go=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=cT(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=z(z({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Ql(r))return{data:null,error:r};throw r}}},wT=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ql(t))return{data:null,error:t};throw t}}};let Y0;Y0=Symbol.toStringTag;var xT=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Y0]="BlobDownloadBuilder",this.promise=null}asStream(){return new wT(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ql(t))return{data:null,error:t};throw t}}};const bT={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},om={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var _T=class extends go{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var s=this;return s.handleOperation(async()=>{let o;const i=z(z({},om),n);let a=z(z({},s.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",s.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.has("cacheControl")||o.append("cacheControl",i.cacheControl),l&&!o.has("metadata")&&o.append("metadata",s.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!i.duplex&&(i.duplex="half")),n!=null&&n.headers&&(a=z(z({},a),n.headers));const c=s._removeEmptyFolders(t),d=s._getFinalPath(c),h=await(e=="PUT"?gd:Rt)(s.fetch,`${s.url}/object/${d}`,o,z({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{path:c,id:h.Id,fullPath:h.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const o=s._removeEmptyFolders(e),i=s._getFinalPath(o),a=new URL(s.url+`/object/upload/sign/${i}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const c=z({upsert:om.upsert},n),d=z(z({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType),{path:o,fullPath:(await gd(s.fetch,a.toString(),l,{headers:d})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const s=z({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const o=await Rt(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),i=new URL(r.url+o.url),a=i.searchParams.get("token");if(!a)throw new Gl("No token returned by API");return{signedUrl:i.toString(),path:e,token:a}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await Rt(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
288stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await Rt(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(e),o=await Rt(n.fetch,`${n.url}/object/sign/${s}`,z({expiresIn:t},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{signedUrl:encodeURI(`${n.url}${o.signedURL}${i}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const s=await Rt(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s.map(i=>z(z({},i),{},{signedUrl:i.signedURL?encodeURI(`${n.url}${i.signedURL}${o}`):null}))})}download(e,t,r){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),o=s?`?${s}`:"",i=this._getFinalPath(e),a=()=>bi(this.fetch,`${this.url}/${n}/${i}${o}`,{headers:this.headers,noResolveJson:!0},r);return new xT(a,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>md(await bi(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await yT(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Ql(n)&&n instanceof Q0){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&n.push(s);const o=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});i!==""&&n.push(i);let a=n.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Fh(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const s=z(z(z({},bT),t),{},{prefix:e||""});return await Rt(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=z({},e);return await Rt(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}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 t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const ST="2.97.0",Ui={"X-Client-Info":`storage-js/${ST}`};var kT=class extends go{constructor(e,t={},r,n){const s=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const o=s.href.replace(/\/$/,""),i=z(z({},Ui),t);super(o,i,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await bi(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await bi(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await Rt(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await gd(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Rt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Fh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},ET=class extends go{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=z(z({},Ui),t);super(n,s,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Rt(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
288{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await bi(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Fh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!dT(e))throw new Gl("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new lT({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,o){const i=s[o];return typeof i!="function"?i:async(...a)=>{try{return{data:await i.apply(s,a),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}},CT=class extends go{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=z(z({},Ui),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await at.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await at.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},TT=class extends go{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=z(z({},Ui),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},jT=class extends go{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=z(z({},Ui),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await at.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},PT=class extends jT{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new NT(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}}
288,NT=class extends CT{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new RT(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},RT=class extends TT{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},AT=class extends kT{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new _T(this.url,this.headers,e,this.fetch)}get vectors(){return new PT(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new ET(this.url+"/iceberg",this.headers,this.fetch)}};const X0="2.97.0",gs=30*1e3,vd=3,Wc=vd*gs,OT="http://localhost:9999",IT="supabase.auth.token",LT={"X-Client-Info":`gotrue-js/${X0}`},yd="X-Supabase-Api-Version",Z0={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},MT=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,$T=10*60*1e3;class _i extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function D(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class DT extends _i{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function UT(e){return D(e)&&e.name==="AuthApiError"}class kn extends _i{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class br extends _i{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class st extends br{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Vc(e){return D(e)&&e.name==="AuthSessionMissingError"}class is extends br{constructor(){super("Auth session or user missing","AuthInvalidToken
288ResponseError",500,void 0)}}class ga extends br{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class va extends br{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function FT(e){return D(e)&&e.name==="AuthImplicitGrantRedirectError"}class im extends br{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class zT extends br{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class wd extends br{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Hc(e){return D(e)&&e.name==="AuthRetryableFetchError"}class am extends br{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class xd extends br{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const yl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),lm=` 289\r=`.split(""),BT=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<lm.length;t+=1)e[lm[t].charCodeAt(0)]=-2;for(let t=0;t<yl.length;t+=1)e[yl[t].charCodeAt(0)]=t;return e})();function cm(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(yl[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(yl[n]),t.queuedBits-=6}}function ew(e,t,r){const n=BT[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function um(e){const t=[],r=i=>{t.push(String.fromCodePoint(i))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{HT(i,n,r)};for(let i=0;i<e.length;i+=1)ew(e.charCodeAt(i),s,o);return t.join("")}function WT(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function VT(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}WT(n,t)}}function HT(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Fs(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)ew(e.charCodeAt(s),r,n);return new Uint8Array(t)}function qT(e){const t=[];return VT(e,r=>t.push(r)),new Uint8Array(t)}function jn(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>cm(s,r,n)),cm(null,r,n),t.join("")}function KT(e){return Math.round(Date.now()/1e3)+e}function GT(){return Symbol("auth-callback")}const Ae=()=>typeof window<"u"&&typeof document<"u",gn={tested:!1,writable:!1},tw=()=>{if(!Ae())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(gn.tested)return gn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),gn.tested=!0,gn.writable=!0}catch{gn.tested=!0,gn.writable=!1}return gn.writable};function QT(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
289h((s,o)=>{t[o]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const rw=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),JT=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",vs=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},vn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Re=async(e,t)=>{await e.removeItem(t)};class Jl{constructor(){this.promise=new Jl.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Jl.promiseConstructor=Promise;function ya(e){const t=e.split(".");if(t.length!==3)throw new xd("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!MT.test(t[n]))throw new xd("JWT not in base64url format");return{header:JSON.parse(um(t[0])),payload:JSON.parse(um(t[1])),signature:Fs(t[2]),raw:{header:t[0],payload:t[1]}}}async function YT(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function XT(e,t){return new Promise((n,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){n(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function ZT(e){return("0"+e.toString(16)).substr(-2)}function ej(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let o=0;o<56;o++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,ZT).join("")}async function tj(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function rj(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await tj(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function as(e,t,r=!1){const n=ej();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await vs(e,`${t}-code-verifier`,s);const o=await rj(n);return[o,n===o?"plain":"s256"]}const nj=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function sj(e){const t=e.headers.get(yd);if(!t||!t.match(nj))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function oj(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function ij(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const aj=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ls(e){if(!aj.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function qc(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="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 "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function lj(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const o=n.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="string"&&(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."),t.value=!0),Reflect.get(r,n,s)}})}function dm(e){return JSON.parse(JSON.stringify(e))}const bn=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),cj=[502,503,504];async function hm(e){var t;if(!JT(e))throw new wd(bn(e),0);if(cj.includes(e.status))throw new wd(bn(e),e.status);let r;try{r=await e.json()}catch(o){throw new kn(bn(o),o)}let n;const s=sj(e);if(s&&s.getTime()>=Z0["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new am(bn(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new st}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new am(bn(r),e.status,r.weak_password.reasons);throw new DT(bn(r),e.status||500,n)}const uj=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function W(e,t,r,n){var s;const o=Object.assign({},n==null?void 0:n.headers);o[yd]||(o[yd]=Z0["2024-01-01"].name),n!=null&&n.jwt&&(o.Authorization=`Bearer ${n.jwt}`);const i=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(i.redirect_to=n.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await dj(e,t,r+a,{headers:o,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}
289async function dj(e,t,r,n,s,o){const i=uj(t,n,s,o);let a;try{a=await e(r,Object.assign({},i))}catch(l){throw console.error(l),new wd(bn(l),0)}if(a.ok||await hm(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await hm(l)}}function jt(e){var t;let r=null;pj(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=KT(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function fm(e){const t=jt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Fr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function hj(e){return{data:e,error:null}}function fj(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o}=e,i=mo(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function pm(e){return e}function pj(e){return e.access_token&&e.refresh_token&&e.expires_in}const Kc=["global","local","others"];class mj{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=rw(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=Kc[0]){if(Kc.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Kc.join(", ")}`);try{return await W(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(D(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await W(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Fr})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=mo(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await W(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:fj,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(D(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await W(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Fr})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await W(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:pm});if(d.error)throw d.error;const h=await d.json(),p=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(x=>{const m=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(D(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){ls(t);try{return await W(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Fr})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){ls(t);try{return await W(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Fr})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){ls(t);
289try{return await W(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Fr})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){ls(t.userId);try{const{data:r,error:n}=await W(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(D(r))return{data:null,error:r};throw r}}async _deleteFactor(t){ls(t.userId),ls(t.id);try{return{data:await W(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(D(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await W(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:pm});if(d.error)throw d.error;const h=await d.json(),p=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(x=>{const m=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(D(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(D(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await W(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(D(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await W(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await W(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(D(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(D(r))return{data:null,error:r};throw r}}}function mm(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const cs={debug:!!(globalThis&&tw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
289class nw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class gm extends nw{}async function gj(e,t,r){cs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;t>0&&setTimeout(()=>{n.abort(),cs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){cs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{cs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw cs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new gm(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(cs.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 r()}})}catch(s){throw(s==null?void 0:s.name)==="AbortError"?new gm(`Acquiring an exclusive Navigator LockManager lock "${e}" timed out waiting ${t}ms`):s}}function vj(){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)}}function sw(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function yj(e){return parseInt(e,16)}function wj(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function xj(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:o=new Date,nonce:i,notBefore:a,requestId:l,resources:c,scheme:d,uri:h,version:p}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 290`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=sw(e.address),x=d?`${d}://${n}`:n,m=e.statement?`${e.statement} 291`:"",b=`${x} wants you to sign in with your Ethereum account: 292${f} 293 294${m}`;let v=`URI: ${h} 295Version: ${p} 296Chain ID: ${r}${i?` 297Nonce: ${i}`:""} 298Issued At: ${o.toISOString()}`;if(s&&(v+=` 299Expiration Time: ${s.toISOString()}`),a&&(v+=` 300Not Before: ${a.toISOString()}`),l&&(v+=` 301Request ID: ${l}`),c){let g=` 302Resources:`;for(const w of c){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);g+=` 303- ${w}`}v+=g}return`${b} 304${v}`}class Se extends Error{constructor({message:t,code:r,cause:n,name:s}){var o;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(o=s??(n instanceof Error?n.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=r}}class wl extends Se{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function bj({error:e,options:t}){var r,n,s;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Se({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=o.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Se({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=o.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Se({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Se({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Se({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Se({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Se({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Se({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const i=window.location.hostname;if(ow(i)){if(o.rp.id!==i)return new Se({message:`The RP ID "${o.rp.id}
304" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Se({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Se({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Se({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Se({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function _j({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Se({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Se({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(ow(n)){if(r.rpId!==n)return new Se({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Se({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Se({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Se({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class Sj{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const kj=new Sj;function Ej(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=mo(e,["challenge","user","excludeCredentials"]),o=Fs(t).buffer,i=Object.assign(Object.assign({},r),{id:Fs(r.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:o,user:i});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Fs(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function Cj(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=mo(e,["challenge","allowCredentials"]),s=Fs(t).buffer,o=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){o.allowCredentials=new Array(r.length);for(let i=0;i<r.length;i++){const a=r[i];o.allowCredentials[i]=Object.assign(Object.assign({},a),{id:Fs(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return o}function Tj(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:jn(new Uint8Array(e.response.attestationObject)),clientDataJSON:jn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function jj(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:jn(new Uint8Array(s.authenticatorData)),clientDataJSON:jn(new Uint8Array(s.clientDataJSON)),signature:jn(new Uint8Array(s.signature)),userHandle:s.userHandle?jn(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function ow(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function vm(){var e,t;return!!(Ae()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function Pj(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new wl("Browser returned unexpected credential type",t)}:{data:null,error:new wl("Empty credential response",t)}}
304catch(t){return{data:null,error:bj({error:t,options:e})}}}async function Nj(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new wl("Browser returned unexpected credential type",t)}:{data:null,error:new wl("Empty credential response",t)}}catch(t){return{data:null,error:_j({error:t,options:e})}}}const Rj={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},Aj={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function xl(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const o in s){const i=s[o];if(i!==void 0)if(Array.isArray(i))n[o]=i;else if(r(i))n[o]=i;else if(t(i)){const a=n[o];t(a)?n[o]=xl(a,i):n[o]=xl(i)}else n[o]=i}return n}function Oj(e,t){return xl(Rj,e,t||{})}function Ij(e,t){return xl(Aj,e,t||{})}class Lj{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},o){var i;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!a)return{data:null,error:l};const c=s??kj.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:d}=a.webauthn.credential_options.publicKey;if(!d.name){const h=n;if(h)d.name=`${d.id}:${h}`;else{const f=(await this.client.getUser()).data.user,x=((i=f==null?void 0:f.user_metadata)===null||i===void 0?void 0:i.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";d.name=`${d.id}:${x}`}}d.displayName||(d.displayName=d.name)}switch(a.webauthn.type){case"create":{const d=Oj(a.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:h,error:p}=await Pj({publicKey:d,signal:c});return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:p}}case"request":{const d=Ij(a.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:h,error:p}=await Nj(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:d,signal:c}));return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:p}}}}catch(a){return D(a)?{data:null,error:a}:{data:null,error:new kn("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new _i("rpId is required for WebAuthn authentication")};try{if(!vm())return{data:null,error:new kn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:o});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(i){return D(i)?{data:null,error:i}:{data:null,error:new kn("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},o){if(!r)return{data:null,error:new _i("rpId is required for WebAuthn registration")};try{if(!vm())return{data:null,error:new kn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(d=>{var h;
304return(h=d.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:o});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(i){return D(i)?{data:null,error:i}:{data:null,error:new kn("Unexpected error in register",i)}}}}vj();const Mj={url:OT,storageKey:IT,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:LT,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4,skipAutoInitialize:!1};async function ym(e,t,r){return await r()}const us={};class Si{get jwks(){var t,r;return(r=(t=us[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){us[this.storageKey]=Object.assign(Object.assign({},us[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=us[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){us[this.storageKey]=Object.assign(Object.assign({},us[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=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;const o=Object.assign(Object.assign({},Mj),t);if(this.storageKey=o.storageKey,this.instanceID=(r=Si.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Si.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Ae()){const i=`${this._logPrefix()} 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.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new mj({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=rw(o.fetch),this.lock=o.lock||ym,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&Ae()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=gj:this.lock=ym,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),webauthn:new Lj(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:tw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=mm(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=mm(this.memoryStorage)),Ae()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i);try{await this._notifyAllSubscribers(i.data.event,i.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}o.skipAutoInitialize||this.initialize().catch(i=>{this._debug("#initialize()","error",i)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${X0}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Ae()&&(r=QT(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Ae()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:o}=await this._getSessionFromURL(r,n);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),FT(o
304)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return{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(r){return D(r)?this._returnResult({error:r}):this._returnResult({error:new kn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const o=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:jt}),{data:i,error:a}=o;if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(o){if(D(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var r,n,s;try{let o;if("email"in t){const{email:d,password:h,options:p}=t;let f=null,x=null;this.flowType==="pkce"&&([f,x]=await as(this.storage,this.storageKey)),o=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:h,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:x},xform:jt})}else if("phone"in t){const{phone:d,password:h,options:p}=t;o=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:jt})}else throw new ga("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return await Re(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(o){if(await Re(this.storage,`${this.storageKey}-code-verifier`),D(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let r;if("email"in t){const{email:o,password:i,options:a}=t;r=await W(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:fm})}else if("phone"in t){const{phone:o,password:i,options:a}=t;r=await W(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:fm})}else throw new ga("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const o=new is;return this._returnResult({data:{user:null,session:null},error:o})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.o
304ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,o,i,a,l,c,d,h,p;let f,x;if("message"in t)f=t.message,x=t.signature;else{const{chain:m,wallet:b,statement:v,options:g}=t;let w;if(Ae())if(typeof b=="object")w=b;else{const R=window;if("ethereum"in R&&typeof R.ethereum=="object"&&"request"in R.ethereum&&typeof R.ethereum.request=="function")w=R.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) 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: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=b}const _=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),S=await w.request({method:"eth_requestAccounts"}).then(R=>R).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=sw(S[0]);let E=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!E){const R=await w.request({method:"eth_chainId"});E=yj(R)}const j={domain:_.host,address:k,statement:v,uri:_.href,version:"1",chainId:E,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(i=(o=g==null?void 0:g.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=xj(j),x=await w.request({method:"personal_sign",params:[wj(f),k]})}try{const{data:m,error:b}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:x},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:jt});if(b)throw b;if(!m||!m.session||!m.user){const v=new is;return this._returnResult({data:{user:null,session:null},error:v})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:b})}catch(m){if(D(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var r,n,s,o,i,a,l,c,d,h,p,f;let x,m;if("message"in t)x=t.message,m=t.signature;else{const{chain:b,wallet:v,statement:g,options:w}=t;let _;if(Ae())if(typeof v=="object")_=v;else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))_=k.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 v!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=v}const S=new URL((r=w==null?void 0:w.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const k=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),g?{statement:g}:null));let E;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")E=k[0];
304else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)E=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)x=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),m=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(n=w==null?void 0:w.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((h=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...w.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(` 305`);const k=await _.signMessage(new TextEncoder().encode(x),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=k}}try{const{data:b,error:v}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:jn(m)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:jt});if(v)throw v;if(!b||!b.session||!b.user){const g=new is;return this._returnResult({data:{user:null,session:null},error:g})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:v})}catch(b){if(D(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const r=await vn(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new zT;const{data:o,error:i}=await W(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:jt});if(await Re(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!o||!o.session||!o.user){const a=new is;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(await Re(this.storage,`${this.storageKey}-code-verifier`),D(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:o,nonce:i}=t,a=await W(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:jt}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new is;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,o,i;try{if("email"in t){const{email:a,options:l}=t;
305let c=null,d=null;this.flowType==="pkce"&&([c,d]=await as(this.storage,this.storageKey));const{error:h}=await W(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=await W(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 this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new ga("You must provide either an email or phone number.")}catch(a){if(await Re(this.storage,`${this.storageKey}-code-verifier`),D(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let s,o;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,o=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:i,error:a}=await W(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:jt});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,c=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(D(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,o,i;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await as(this.storage,this.storageKey));const c=await W(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:hj});return!((o=c.data)===null||o===void 0)&&o.url&&Ae()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Re(this.storage,`${this.storageKey}-code-verifier`),D(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new st;const{error:s}=await W(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(D(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:o}=t,{error:i}=await W(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:n,type:s,options:o}=t,{data:i,error:a}=await W(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a})}throw new ga("You must provide either an email or phone number and a type")}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await vn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
305id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Wc:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const i=await vn(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=qc()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=lj(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await W(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Fr}):await this._useSession(async r=>{var n,s,o;const{data:i,error:a}=r;if(a)throw a;return!(!((n=i.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new st}:await W(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:Fr})})}catch(r){if(D(r))return Vc(r)&&(await this._removeSession(),await Re(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:o}=n;if(o)throw o;if(!s.session)throw new st;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await as(this.storage,this.storageKey));const{data:c,error:d}=await W(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Fr});if(d)throw d;return i.user=c.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(n){if(await Re(this.storage,`${this.storageKey}-code-verifier`),D(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new st;const r=Date.now()/1e3;let n=r,s=!0,o=null;const{payload:i}=ya(t.access_token);if(i.exp&&(n=i.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({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(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(r){if(D(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:i,error:a}=r;if(a)throw a;t=(n=i.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new st;const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!Ae())throw new va("No browser detected.");
305if(t.error||t.error_description||t.error_code)throw new va(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new im("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new va("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new im("No code detected.");const{data:g,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:c}=t;if(!o||!a||!i||!c)throw new va("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let p=d+h;l&&(p=parseInt(l));const f=p-d;f*1e3<=gs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const x=p-h;d-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,p,d):d-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,p,d);const{data:m,error:b}=await this._getUser(o);if(b)throw b;const v={provider_token:n,provider_refresh_token:s,access_token:o,expires_in:h,expires_at:p,refresh_token:i,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(n){if(D(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await vn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o&&!Vc(o))return this._returnResult({error:o});const i=(n=s.session)===null||n===void 0?void 0:n.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(UT(a)&&(a.status===404||a.status===401||a.status===403)||Vc(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Re(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=GT(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:o},error:i}=r;if(i)throw i;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await as(this.storage,this.storageKey,!0));try{return await W(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(o){if(await Re(this.storage,`${this.storageKey}-code-verifier`),D(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async o=>{var i,a,l,c,d;const{data:h,error:p}=o;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await W(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=h.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Ae()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(D(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:o}}=r;if(s)throw s;const{options:i,provider:a,token:l,access_token:c,nonce:d}=t,h=await W(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=o==null?void 0:o.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:jt}),{data:p,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new is}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await Re(this.storage,`${this.storageKey}-code-verifier`),D(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)throw i;
305return await W(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await XT(async s=>(s>0&&await YT(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await W(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:jt})),(s,o)=>{const i=200*Math.pow(2,s);return o&&Hc(o)&&Date.now()+i-n<gs})}catch(n){if(this._debug(r,"error",n),D(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Ae()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await vn(this.storage,this.storageKey);if(s&&this.userStorage){let i=await vn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await vs(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:qc()}else if(s&&!s.user&&!s.user){const i=await vn(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await Re(this.storage,this.storageKey+"-user"),await vs(this.storage,this.storageKey,s)):s.user=qc()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const o=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Wc;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${Wc}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),Hc(i)||(this._debug(n,"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(n,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(n,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new st;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Jl;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new st;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={data:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),D(o)){const i={data:null,error:o};return Hc(o)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(i),i}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}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(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Re(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await vs(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const o=dm(s);await vs(this.storage,this.storageKey,o)}else{const s=dm(r);await vs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Re(this.storage,this.storageKey),await Re(this.storage,this.storageKey+"-code-verifier"),await Re(this.storage,this.storageKey+"-user"),this.userStorage&&await Re(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ae()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
305catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),gs);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/gs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${gs}ms, refresh threshold is ${vd} ticks`),s<=vd&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof nw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ae()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[o,i]=await as(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const o=new URLSearchParams(n.queryParams);s.push(o.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;return o?this._returnResult({data:null,error:o}):await W(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await W(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=o==null?void 0:o.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="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}`),this._returnResult({data:l,error:null}))})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Tj(t.webauthn.credential_response):jj(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await W(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=await W(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(i.error)return i;const{data:a}=i;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Ej(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Cj(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(o),o.status==="verified"&&s[o.factor_type].push(o);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,s,o;if(t)try{const{payload:f}=ya(t);let x=null;f.aal&&(x=f.aal);let m=x;const{data:{user:b},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((n=(r=b==null?void 0:b.factors)===null||r===void 0?void 0:r.filter(_=>_.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(m="aal2");const w=f.amr||[];return{data:{currentLevel:x,nextLevel:m,currentAuthenticationMethods:w},error:null}}catch(f){if(D(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:i},error:a}
305=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=ya(i.access_token);let c=null;l.aal&&(c=l.aal);let d=c;((o=(s=i.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&o!==void 0?o:[]).length>0&&(d="aal2");const p=l.amr||[];return{data:{currentLevel:c,nextLevel:d,currentAuthenticationMethods:p},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await W(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new st})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new st});const i=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Ae()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(D(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new st});const i=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Ae()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(D(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await W(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new st})})}catch(t){if(D(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await W(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new st})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+$T>s)return n;const{data:o,error:i}=await W(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,n=o.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:x}
305=await this.getSession();if(x||!f.session)return this._returnResult({data:null,error:x});n=f.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=ya(n);r!=null&&r.allowExpired||oj(o.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:o,header:s,signature:i},error:null}}const d=ij(s.alg),h=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,i,qT(`${a}.${l}`)))throw new xd("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(n){if(D(n))return this._returnResult({data:null,error:n});throw n}}}Si.nextInstanceID={};const $j=Si,Dj="2.97.0";let Lo="";typeof Deno<"u"?Lo="deno":typeof document<"u"?Lo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Lo="react-native":Lo="node";const Uj={"X-Client-Info":`supabase-js-${Lo}/${Dj}`},Fj={headers:Uj},zj={schema:"public"},Bj={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Wj={};function ki(e){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}function Vj(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hj(e){var t=Vj(e,"string");return ki(t)=="symbol"?t:t+""}function qj(e,t,r){return(t=Hj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wm(Object(r),!0).forEach(function(n){qj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const Kj=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Gj=()=>Headers,Qj=(e,t,r)=>{const n=Kj(r),s=Gj();return async(o,i)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(i==null?void 0:i.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(o,we(we({},i),{},{headers:c}))}};function Jj(e){return e.endsWith("/")?e:e+"/"}function Yj(e,t){var r,n;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:c,realtime:d,global:h}=t,p={db:we(we({},l),s),auth:we(we({},c),o),realtime:we(we({},d),i),storage:{},global:we(we(we({},h),a),{},{headers:we(we({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function Xj(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Jj(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Zj=class extends $j{constructor(e){super(e)}},eP=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const o=Xj(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const i=`sb-${o.hostname.split(".")[0]}-auth-token`,a={db:zj,realtime:Wj,auth:we(we({},Bj),{},{storageKey:i}),global:Fj},l=Yj(r??{},a);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.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`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=Qj(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(we({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new U2(new URL("rest/v1",o).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new AT(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new R2(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,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
305channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:o,flowType:i,lock:a,debug:l,throwOnError:c},d,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Zj({url:this.authUrl.href,headers:we(we({},p),d),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:i,lock:a,debug:l,throwOnError:c,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new rT(this.realtimeUrl.href,we(we({},e),{},{params:we(we({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const tP=(e,t,r)=>new eP(e,t,r);function rP(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}rP()&&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 nP="https://fxlrrgslvwqdplztcwyh.supabase.co",sP="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ4bHJyZ3NsdndxZHBsenRjd3loIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzE0Njk5NzksImV4cCI6MjA4NzA0NTk3OX0.RiasFPWzoVkUOEzIPTGCjbZ4LH-yZ0YQtU06bqKcuP4",gt=tP(nP,sP,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),iw=y.createContext(void 0);function oP({children:e}){const[t,r]=y.useState(null),[n,s]=y.useState(null),[o,i]=y.useState(!0);y.useEffect(()=>{const{data:{subscription:d}}=gt.auth.onAuthStateChange((h,p)=>
305{s(p),r((p==null?void 0:p.user)??null),i(!1),p!=null&&p.user&>.from("profiles").select("is_iitm").eq("id",p.user.id).single().then(({data:f})=>{(f==null?void 0:f.is_iitm)!==void 0&&(f==null?void 0:f.is_iitm)!==null&&localStorage.setItem("is_iitm",JSON.stringify(f.is_iitm))})});return gt.auth.getSession().then(({data:{session:h}})=>{s(h),r((h==null?void 0:h.user)??null),i(!1),h!=null&&h.user&>.from("profiles").select("is_iitm").eq("id",h.user.id).single().then(({data:p})=>{(p==null?void 0:p.is_iitm)!==void 0&&(p==null?void 0:p.is_iitm)!==null&&localStorage.setItem("is_iitm",JSON.stringify(p.is_iitm))})}),()=>d.unsubscribe()},[]);const a=async(d,h,p,f,x)=>{const{error:m}=await gt.auth.signUp({email:d,password:h,options:{data:{full_name:p,is_iitm:f,iitm_email:x||null},emailRedirectTo:window.location.origin}});return{error:m}},l=async(d,h)=>{const{error:p}=await gt.auth.signInWithPassword({email:d,password:h});return{error:p}},c=async()=>{localStorage.removeItem("is_iitm"),localStorage.removeItem("hasAllEventsPass"),await gt.auth.signOut()};return u.jsx(iw.Provider,{value:{user:t,session:n,loading:o,signUp:a,signIn:l,signOut:c},children:e})}function _r(){const e=y.useContext(iw);if(!e)throw new Error("useAuth must be used inside AuthProvider");return e}const aw="exebit-cart";function iP(){try{const e=localStorage.getItem(aw);return e?JSON.parse(e):[]}catch{return[]}}const lw=y.createContext(void 0);function aP({children:e}){const[t,r]=y.useState(iP);y.useEffect(()=>{localStorage.setItem(aw,JSON.stringify(t))},[t]);const n=a=>r(l=>[...l,a]),s=a=>r(l=>l.filter((c,d)=>d!==a)),o=()=>r([]),i=t.reduce((a,l)=>a+l.price,0);return u.jsx(lw.Provider,{value:{items:t,addItem:n,removeItem:s,clearCart:o,totalAmount:i},children:e})}function cw(){const e=y.useContext(lw);if(!e)throw new Error("useCart must be used within CartProvider");return e}const lP={march28:[{time:"10:00 AM",endTime:"10:30 AM",name:"Inauguration Talk",venue:"CS15",type:"talk",description:"Keynote address by industry leader / title sponsor KLA representative."},{time:"10:30 AM",endTime:"12:30 PM",name:"Poster Presentation",venue:"CS13",type:"research",description:"Showcase of cutting-edge research from IIT Madras labs. Open viewing & Q&A."},{time:"12:30 PM",endTime:"01:00 PM",name:"Professor Talk by Prof. Krishna Moorthy Sivalingam",venue:"CS15",type:"talk",description:"Networking for LLM Training: Architectures, Protocols and Mechanisms"},{time:"01:45 PM",endTime:"02:15 PM",name:"Professor Talk by Prof. Krishna Nadivada",venue:"CS15",type:"talk",description:"ML for Compilers and Compilers for ML"},{time:"02:30 PM",endTime:"04:00 PM",name:"Workshop Session",venue:"SSB134",type:"workshop",description:"Introduction to Theorem Proving using LEAN"},{time:"04:00 PM",endTime:"05:30 PM",name:"Reverse Coding",venue:"CS24/26",type:"contest",description:"Reverse Coding is a challenge where you're given the output and must figure out the code or logic behind it"},{time:"05:30 PM",endTime:"06:30 PM",name:"Capture the Flag (CTF)",venue:"CS24/26",type:"contest",description:"Cybersecurity competition â crypto, reverse engineering, web, forensics."}
305],march29:[{time:"09:00 AM",endTime:"10:00 AM",name:"Quantathon",venue:"CS24/26",type:"contest",description:"Quantitative challenges â Probability, Statistics, Optimization."},{time:"10:00 AM",endTime:"10:30 AM",name:"Professor Talk by Prof. KC Sivaramakrishnan",venue:"CS15",type:"talk",description:"Talk on Functional Programming and Ocaml."},{time:"10:30 AM",endTime:"12:30 PM",name:"Workshop",venue:"SSB134",type:"workshop",description:"Intro to Ocaml and functional programming. Open to all skill levels."},{time:"01:30 PM",endTime:"02:30 PM",name:"Workshop",venue:"SSB134",type:"workshop",description:"From ed to Wayland : The Evolution of the Linux Desktop Environment"},{time:"01:30 PM",endTime:"02:30 PM",name:"Workshop",venue:"CS15",type:"workshop",description:"Bridges, Burglars, Birthday Cakes and Ballots - Stories That Became Theorems"},{time:"02:30 PM",endTime:"03:30 PM",name:"Workshop",venue:"CS15",type:"workshop",description:"When LLMs Stop Thinking"},{time:"03:30 PM",endTime:"04:30 PM",name:"Professor Talk by Prof. Prashanth L A",venue:"CS15",type:"talk",description:"The distortion effect: or How I learned to stop regretting and love the risk"},{time:"04:30 PM",endTime:"06:30 PM",name:"Programming Contest",venue:"CS24/26",type:"contest",description:"Coding race with problem-solving rounds under strict time limits."}]};function cP(){const[e,t]=y.useState(null),[r,n]=y.useState(!1);return y.useEffect(()=>{const s=(a,l)=>{const c=l==="march28"?"2026-03-28":"2026-03-29",[d,h]=a.split(" ");let[p,f]=d.split(":");return p==="12"&&(p="00"),h==="PM"&&(p=(parseInt(p,10)+12).toString()),p=p.padStart(2,"0"),new Date(`${c}T${p}:${f}:00+05:30`).getTime()},o=()=>{const a=Date.now();let l=null;for(const[c,d]of Object.entries(lP)){for(const h of d){const f=s(h.time,c)-a;if(f>0&&f<=6e5){l=h;break}}if(l)break}t(c=>(l&&(c==null?void 0:c.name)!==l.name&&n(!1),l))};o();const i=setInterval(o,1e4);return()=>clearInterval(i)},[]),y.useEffect(()=>{if(e&&!r){const s=setTimeout(()=>{n(!0)},15e3);return()=>clearTimeout(s)}},[e,r]),!e||r?null:u.jsx("div",{className:"fixed bottom-6 right-6 z-50 animate-in slide-in-from-bottom-5 fade-in duration-300",children:u.jsxs("div",{className:"bg-background border border-primary/50 shadow-lg shadow-primary/20 rounded-xl p-4 pr-8 max-w-sm flex gap-4 items-start relative glass-card",children:[u.jsx("button",{onClick:()=>n(!0),className:"absolute top-2 right-2 text-muted-foreground hover:text-foreground transition-colors",children:u.jsx(Li,{size:16})}),u.jsx("div",{className:"mt-1 flex-shrink-0 text-primary bg-primary/10 p-2 rounded-full",children:u.jsx(I_,{size:18,className:"animate-pulse"})}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-bold text-sm text-primary mb-1",children:"Starts in 10 mins!"}),u.jsx("p",{className:"text-sm font-semibold",children:e.name}),u.jsxs("div",{className:"flex flex-wrap gap-2 mt-2",children:[u.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[u.jsx(kh,{size:10})," ",e.time]}),u.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[u.jsx(Ii,{size:10})," ",e.venue]})]})]})]})})}const uP=_h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"btn-exebit text-primary-foreground hover:brightness-105",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),We=y.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const i=n?F1:"button";return u.jsx(i,{className:He(uP({variant:t,size:r,className:e})),ref:o,...s})});We.displayName="Button";var Gc="focusScope.autoFocusOnMount",Qc="focusScope.autoFocusOnUnmount",xm={bubbles:!1,cancelable:!0},dP="FocusScope",uw=y.forwardRef((e,t)=>
vendor: 4,257 bytes, line 305
305{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,l]=y.useState(null),c=er(s),d=er(o),h=y.useRef(null),p=Me(t,m=>l(m)),f=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(n){let m=function(w){if(f.paused||!a)return;const _=w.target;a.contains(_)?h.current=_:Or(h.current,{select:!0})},b=function(w){if(f.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Or(h.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Or(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),g.disconnect()}}},[n,a,f.paused]),y.useEffect(()=>{if(a){_m.add(f);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(Gc,xm);a.addEventListener(Gc,c),a.dispatchEvent(v),v.defaultPrevented||(hP(vP(dw(a)),{select:!0}),document.activeElement===m&&Or(a))}return()=>{a.removeEventListener(Gc,c),setTimeout(()=>{const v=new CustomEvent(Qc,xm);a.addEventListener(Qc,d),a.dispatchEvent(v),v.defaultPrevented||Or(m??document.body,{select:!0}),a.removeEventListener(Qc,d),_m.remove(f)},0)}}},[a,c,d,f]);const x=y.useCallback(m=>{if(!r&&!n||f.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(b&&v){const g=m.currentTarget,[w,_]=fP(g);w&&_?!m.shiftKey&&v===_?(m.preventDefault(),r&&Or(w,{select:!0})):m.shiftKey&&v===w&&(m.preventDefault(),r&&Or(_,{select:!0})):v===g&&m.preventDefault()}},[r,n,f.paused]);return u.jsx(pe.div,{tabIndex:-1,...i,ref:p,onKeyDown:x})});uw.displayName=dP;function hP(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Or(n,{select:t}),document.activeElement!==r)return}function fP(e){const t=dw(e),r=bm(t,e),n=bm(t.reverse(),e);return[r,n]}function dw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function bm(e,t){for(const r of e)if(!pP(r,{upTo:t}))return r}function pP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mP(e){return e instanceof HTMLInputElement&&"select"in e}function Or(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&mP(e)&&t&&e.select()}}var _m=gP();function gP(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Sm(e,t),e.unshift(t)},remove(t){var r;e=Sm(e,t),(r=e[0])==null||r.resume()}}}function Sm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vP(e){return e.filter(t=>t.tagName!=="A")}var Jc=0;function yP(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??km()),document.body.insertAdjacentElement("beforeend",e[1]??km()),Jc++,()=>{Jc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jc--}},[])}function km(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ua="right-scroll-bar-position",Fa="width-before-scroll-bar",wP="with-scroll-bars-hidden",xP="--removed-body-scroll-bar-size";function Yc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bP(e,t){var r=y.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var _P=typeof window<"u"?y.useLayoutEffect:y.useEffect,Em=new WeakMap;function SP(e,t){var r=bP(null,function(n){return e.forEach(function(s){return Yc(s,n)})});return _P(function(){var n=Em.get(r);if(n){var s=new Set(n),o=new Set(e),i=r.current;
vendor: 4,196 bytes, lines 305-320
305s.forEach(function(a){o.has(a)||Yc(a,null)}),o.forEach(function(a){s.has(a)||Yc(a,i)})}Em.set(r,e)},[e]),r}function kP(e){return e}function EP(e,t){t===void 0&&(t=kP);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(o),i=r}var l=function(){var d=i;i=[],d.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),r}}}};return s}function CP(e){e===void 0&&(e={});var t=EP(null);return t.options=Qt({async:!0,ssr:!1},e),t}var hw=function(e){var t=e.sideCar,r=mo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return y.createElement(n,Qt({},r))};hw.isSideCarExport=!0;function TP(e,t){return e.useMedium(t),hw}var fw=CP(),Xc=function(){},Yl=y.forwardRef(function(e,t){var r=y.useRef(null),n=y.useState({onScrollCapture:Xc,onWheelCapture:Xc,onTouchMoveCapture:Xc}),s=n[0],o=n[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,f=e.noRelative,x=e.noIsolation,m=e.inert,b=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,w=e.gapMode,_=mo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,k=SP([r,t]),E=Qt(Qt({},_),s);return y.createElement(y.Fragment,null,d&&y.createElement(S,{sideCar:fw,removeScrollBar:c,shards:h,noRelative:f,noIsolation:x,inert:m,setCallbacks:o,allowPinchZoom:!!b,lockRef:r,gapMode:w}),i?y.cloneElement(y.Children.only(a),Qt(Qt({},E),{ref:k})):y.createElement(g,Qt({},E,{className:l,ref:k}),a))});Yl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yl.classNames={fullWidth:Fa,zeroRight:Ua};var jP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function PP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jP();return t&&e.setAttribute("nonce",t),e}function NP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function RP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var AP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=PP())&&(NP(t,r),RP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},OP=function(){var e=AP();return function(t,r){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},pw=function(){var e=OP(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},IP={left:0,top:0,right:0,gap:0},Zc=function(e){return parseInt(e||"",10)||0},LP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Zc(r),Zc(n),Zc(s)]},MP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return IP;var t=LP(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},$P=pw(),zs="data-scroll-locked",DP=function(e,t,r,n){var s=e.left,o=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),` 306 .`.concat(wP,` { 307 overflow: hidden `).concat(n,`; 308 padding-right: `).concat(a,"px ").concat(n,`; 309 } 310 body[`).concat(zs,`] { 311 overflow: hidden `).concat(n,`; 312 overscroll-behavior: contain; 313 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 314 padding-left: `.concat(s,`px; 315 padding-top: `).concat(o,`px; 316 padding-right: `).concat(i,`px; 317 margin-left:0; 318 margin-top:0; 319 margin-right: `).concat(a,"px ").concat(n,`; 320 `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";
320")].filter(Boolean).join(""),` 321 } 322 323 .`).concat(Ua,` { 324 right: `).concat(a,"px ").concat(n,`; 325 } 326 327 .`).concat(Fa,` { 328 margin-right: `).concat(a,"px ").concat(n,`; 329 } 330 331 .`).concat(Ua," .").concat(Ua,` { 332 right: 0 `).concat(n,`; 333 } 334 335 .`).concat(Fa," .").concat(Fa,` { 336 margin-right: 0 `).concat(n,`; 337 } 338 339 body[`).concat(zs,`] { 340 `).concat(xP,": ").concat(a,`px; 341 } 342`)},Cm=function(){var e=parseInt(document.body.getAttribute(zs)||"0",10);return isFinite(e)?e:0},UP=function(){y.useEffect(function(){return document.body.setAttribute(zs,(Cm()+1).toString()),function(){var e=Cm()-1;e<=0?document.body.removeAttribute(zs):document.body.setAttribute(zs,e.toString())}},[])},FP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;UP();var o=y.useMemo(function(){return MP(s)},[s]);return y.createElement($P,{styles:DP(o,!t,s,r?"":"!important")})},bd=!1;if(typeof window<"u")try{var wa=Object.defineProperty({},"passive",{get:function(){return bd=!0,!0}});window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{bd=!1}var ds=bd?{passive:!1}:!1,zP=function(e){return e.tagName==="TEXTAREA"},mw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zP(e)&&r[t]==="visible")},BP=function(e){return mw(e,"overflowY")},WP=function(e){return mw(e,"overflowX")},Tm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=gw(e,n);if(s){var o=vw(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},VP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},HP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},gw=function(e,t){return e==="v"?BP(t):WP(t)},vw=function(e,t){return e==="v"?VP(t):HP(t)},qP=function(e,t){return e==="h"&&t==="rtl"?-1:1},KP=function(e,t,r,n,s){var o=qP(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,l=t.contains(a),c=!1,d=i>0,h=0,p=0;do{if(!a)break;var f=vw(e,a),x=f[0],m=f[1],b=f[2],v=m-b-o*x;(x||v)&&gw(e,a)&&(h+=v,p+=x);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(p)<1||!s))&&(c=!0),c},xa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jm=function(e){return[e.deltaX,e.deltaY]},Pm=function(e){return e&&"current"in e?e.current:e},GP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QP=function(e){return` 343 .block-interactivity-`.concat(e,` {pointer-events: none;} 344 .allow-interactivity-`).concat(e,` {pointer-events: all;} 345`)},JP=0,hs=[];function YP(e){var t=y.useRef([]),r=y.useRef([0,0]),n=y.useRef(),s=y.useState(JP++)[0],o=y.useState(pw)[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=j2([e.lockRef.current],(e.shards||[]).map(Pm),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var v=xa(m),g=r.current,w="deltaX"in m?m.deltaX:g[0]-v[0],_="deltaY"in m?m.deltaY:g[1]-v[1],S,k=m.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in m&&E==="h"&&k.type==="range")return!1;var j=Tm(E,k);if(!j)return!0;if(j?S=E:(S=E==="v"?"h":"v",j=Tm(E,k)),!j)return!1;if(!n.current&&"changedTouches"in m&&(w||_)&&(n.current=S),!S)return!0;var R=n.current||S;return KP(R,b,m,R==="h"?w:_,!0)},[]),l=y.useCallback(function(m){var b=m;if(!(!hs.length||hs[hs.length-1]!==o)){var v="deltaY"in b?jm(b):xa(b),g=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&GP(S.delta,v)}
vendor: 4,137 bytes, line 345
345)[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(Pm).filter(Boolean).filter(function(S){return S.contains(b.target)}),_=w.length>0?a(b,w[0]):!i.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),c=y.useCallback(function(m,b,v,g){var w={name:m,delta:b,target:v,should:g,shadowParent:XP(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),d=y.useCallback(function(m){r.current=xa(m),n.current=void 0},[]),h=y.useCallback(function(m){c(m.type,jm(m),m.target,a(m,e.lockRef.current))},[]),p=y.useCallback(function(m){c(m.type,xa(m),m.target,a(m,e.lockRef.current))},[]);y.useEffect(function(){return hs.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ds),document.addEventListener("touchmove",l,ds),document.addEventListener("touchstart",d,ds),function(){hs=hs.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,ds),document.removeEventListener("touchmove",l,ds),document.removeEventListener("touchstart",d,ds)}},[]);var f=e.removeScrollBar,x=e.inert;return y.createElement(y.Fragment,null,x?y.createElement(o,{styles:QP(s)}):null,f?y.createElement(FP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ZP=TP(fw,YP);var yw=y.forwardRef(function(e,t){return y.createElement(Yl,Qt({},e,{ref:t,sideCar:ZP}))});yw.classNames=Yl.classNames;var eN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fs=new WeakMap,ba=new WeakMap,_a={},eu=0,ww=function(e){return e&&(e.host||ww(e.parentNode))},tN=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ww(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},rN=function(e,t,r,n){var s=tN(t,Array.isArray(e)?e:[e]);_a[r]||(_a[r]=new WeakMap);var o=_a[r],i=[],a=new Set,l=new Set(s),c=function(h){!h||a.has(h)||(a.add(h),c(h.parentNode))};s.forEach(c);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var f=p.getAttribute(n),x=f!==null&&f!=="false",m=(fs.get(p)||0)+1,b=(o.get(p)||0)+1;fs.set(p,m),o.set(p,b),i.push(p),m===1&&x&&ba.set(p,!0),b===1&&p.setAttribute(r,"true"),x||p.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(t),a.clear(),eu++,function(){i.forEach(function(h){var p=fs.get(h)-1,f=o.get(h)-1;fs.set(h,p),o.set(h,f),p||(ba.has(h)||h.removeAttribute(n),ba.delete(h)),f||h.removeAttribute(r)}),eu--,eu||(fs=new WeakMap,fs=new WeakMap,ba=new WeakMap,_a={})}},nN=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=eN(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),rN(n,s,r,"aria-hidden")):function(){return null}},Xl="Dialog",[xw,vR]=lo(Xl),[sN,Bt]=xw(Xl),bw=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=y.useRef(null),l=y.useRef(null),[c,d]=yh({prop:n,defaultProp:s??!1,onChange:o,caller:Xl});return u.jsx(sN,{scope:t,triggerRef:a,contentRef:l,contentId:Mc(),titleId:Mc(),descriptionId:Mc(),open:c,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(h=>!h),[d]),modal:i,children:r})};bw.displayName=Xl;var _w="DialogTrigger",oN=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Bt(_w,r),o=Me(t,s.triggerRef);return u.jsx(pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Wh(s.open),...n,ref:o,onClick:ae(e.onClick,s.onOpenToggle)})});oN.displayName=_w;var zh="DialogPortal",[iN,Sw]=xw(zh,{forceMount:void 0}),kw=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,o=Bt(zh,t);return u.jsx(iN,{scope:t,forceMount:r,children:y.Children.map(n,i=>u.jsx(qn,{present:r||o.open,children:u.jsx(vh,{asChild:!0,container:s,children:i})}))})};kw.displayName=zh;var bl="DialogOverlay",Ew=y.forwardRef((e,t)=>
vendor: 4,885 bytes, lines 345-349
345{const r=Sw(bl,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Bt(bl,e.__scopeDialog);return o.modal?u.jsx(qn,{present:n||o.open,children:u.jsx(lN,{...s,ref:t})}):null});Ew.displayName=bl;var aN=di("DialogOverlay.RemoveScroll"),lN=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Bt(bl,r);return u.jsx(yw,{as:aN,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(pe.div,{"data-state":Wh(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Wn="DialogContent",Cw=y.forwardRef((e,t)=>{const r=Sw(Wn,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Bt(Wn,e.__scopeDialog);return u.jsx(qn,{present:n||o.open,children:o.modal?u.jsx(cN,{...s,ref:t}):u.jsx(uN,{...s,ref:t})})});Cw.displayName=Wn;var cN=y.forwardRef((e,t)=>{const r=Bt(Wn,e.__scopeDialog),n=y.useRef(null),s=Me(t,r.contentRef,n);return y.useEffect(()=>{const o=n.current;if(o)return nN(o)},[]),u.jsx(Tw,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:ae(e.onFocusOutside,o=>o.preventDefault())})}),uN=y.forwardRef((e,t)=>{const r=Bt(Wn,e.__scopeDialog),n=y.useRef(!1),s=y.useRef(!1);return u.jsx(Tw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((c=r.triggerRef.current)==null?void 0:c.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Tw=y.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=Bt(Wn,r),l=y.useRef(null),c=Me(t,l);return yP(),u.jsxs(u.Fragment,{children:[u.jsx(uw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:u.jsx(Dl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Wh(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(dN,{titleId:a.titleId}),u.jsx(fN,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Bh="DialogTitle",jw=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Bt(Bh,r);return u.jsx(pe.h2,{id:s.titleId,...n,ref:t})});jw.displayName=Bh;var Pw="DialogDescription",Nw=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Bt(Pw,r);return u.jsx(pe.p,{id:s.descriptionId,...n,ref:t})});Nw.displayName=Pw;var Rw="DialogClose",Aw=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Bt(Rw,r);return u.jsx(pe.button,{type:"button",...n,ref:t,onClick:ae(e.onClick,()=>s.onOpenChange(!1))})});Aw.displayName=Rw;function Wh(e){return e?"open":"closed"}var Ow="DialogTitleWarning",[yR,Iw]=D1(Ow,{contentName:Wn,titleName:Bh,docsSlug:"dialog"}),dN=({titleId:e})=>{const t=Iw(Ow),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 346 347If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 348 349For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},hN="DialogDescriptionWarning",fN=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Iw(hN).contentName}}.`;return y.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},pN=bw,mN=kw,Lw=Ew,Mw=Cw,$w=jw,Dw=Nw,gN=Aw;const vN=pN,yN=mN,Uw=y.forwardRef(({className:e,...t},r)=>u.jsx(Lw,{ref:r,className:He("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Uw.displayName=Lw.displayName;const Fw=y.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(yN,{children:[u.jsx(Uw,{}),u.jsxs(Mw,{ref:n,className:He("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
349nded-lg",e),...r,children:[t,u.jsxs(gN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[u.jsx(Li,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fw.displayName=Mw.displayName;const zw=y.forwardRef(({className:e,...t},r)=>u.jsx($w,{ref:r,className:He("text-lg font-semibold leading-none tracking-tight",e),...t}));zw.displayName=$w.displayName;const wN=y.forwardRef(({className:e,...t},r)=>u.jsx(Dw,{ref:r,className:He("text-sm text-muted-foreground",e),...t}));wN.displayName=Dw.displayName;const ys=y.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:He("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));ys.displayName="Input";var xN="Label",Bw=y.forwardRef((e,t)=>u.jsx(pe.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Bw.displayName=xN;var Ww=Bw;const bN=_h("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),_n=y.forwardRef(({className:e,...t},r)=>u.jsx(Ww,{ref:r,className:He(bN(),e),...t}));_n.displayName=Ww.displayName;const Nm=/^[a-zA-Z0-9._%+-]+@([a-zA-Z0-9-]+\.)*iitm\.ac\.in$/;function Zl({open:e,onClose:t,defaultTab:r="login"}){const[n,s]=y.useState(r),[o,i]=y.useState(""),[a,l]=y.useState(""),[c,d]=y.useState(""),[h,p]=y.useState(!1),[f,x]=y.useState(""),[m,b]=y.useState(null),[v,g]=y.useState(""),[w,_]=y.useState(!1),[S,k]=y.useState(""),[E,j]=y.useState(""),{signIn:R,signUp:O}=_r(),B=()=>{i(""),l(""),d(""),x(""),b(null),g(""),k(""),j(""),p(!1)},M=async U=>{if(U.preventDefault(),_(!0),k(""),j(""),n==="signup"){if(a!==c){k("Passwords do not match."),_(!1);return}if(m===null){k("Please select IITM or Non-IITM."),_(!1);return}if(m&&!Nm.test(v)){k("Enter a valid IITM email (e.g. [email protected])."),_(!1);return}}if(n==="login"){const{error:I}=await R(o,a);I?k(I.message):(B(),t())}else{const{error:I}=await O(o,a,f,m,m?v:void 0);I?k(I.message):j("Account created! Check your email to confirm, then log in.")}_(!1)};return u.jsx(vN,{open:e,onOpenChange:U=>{U||(B(),t())},children:u.jsxs(Fw,{className:"glass-card border-border/40 max-w-sm p-0 overflow-hidden max-h-[90vh] overflow-y-auto",children:[u.jsx(zw,{className:"sr-only",children:n==="login"?"Log In":"Sign Up"}),u.jsx("div",{className:"flex",children:["login","signup"].map(U=>u.jsx("button",{onClick:()=>{s(U),B()},className:`flex-1 py-4 text-sm font-semibold transition-all ${n===U?"text-primary border-b-2 border-primary bg-primary/5":"text-muted-foreground hover:text-foreground"}`,children:U==="login"?"Log In":"Sign Up"},U))}),u.jsxs("form",{onSubmit:M,className:"p-6 space-y-4",children:[n==="signup"&&u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(_n,{children:"Full Name"}),u.jsx(ys,{value:f,onChange:U=>x(U.target.value),placeholder:"Your full name",required:!0})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(_n,{children:"Email"}),u.jsx(ys,{type:"email",value:o,onChange:U=>i(U.target.value),placeholder:"[email protected]",required:!0})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(_n,{children:"Password"}),u.jsx(ys,{type:"password",value:a,onChange:U=>l(U.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0,minLength:6})]}),n==="signup"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(_n,{children:"Confirm Password"}),u.jsxs("div",{className:"relative",children:[u.jsx(ys,{type:h?"text":"password",value:c,onChange:U=>d(U.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0,minLength:6}),u.jsx("button",{type:"button",onClick:()=>p(!h),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:h?u.jsx(F_,{size:16}):u.jsx(z_,{size:16})})]})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(_n,{children:"Are you from IIT Madras?"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{type:"button",onClick:()=>{b(!0),g("")},className:`flex-1 py-2 rounded-lg text-sm font-medium border transition-all ${m===!0?"border-primary bg-primary/10 text-primary":"border-border/40 text-muted-foreground hover:text-foreground"}`,children:"IITM"}),u.jsx("button",{type:"button",onClick:()=>{b(!1),g("")},className:`flex-1 py-2 rounded-lg text-sm font-medium border transition-all ${m===!1?"border-primary bg-primary/10 text-primary":"border-border/40 text-muted-foreground hover:text-foreground"}`,children:"Non-IITM"})]})]}),m===!0&&u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(_n,{children:"IITM College Email"}
349),u.jsx(ys,{type:"email",value:v,onChange:U=>g(U.target.value),placeholder:"[email protected]",required:!0}),v&&!Nm.test(v)&&u.jsx("p",{className:"text-destructive text-xs",children:"Enter a valid IITM email (e.g. [email protected])"})]})]}),S&&u.jsx("p",{className:"text-destructive text-xs",children:S}),E&&u.jsx("p",{className:"text-emerald-400 text-xs",children:E}),u.jsxs(We,{type:"submit",className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 glow-cyan",disabled:w,children:[w&&u.jsx(Iy,{size:14,className:"animate-spin mr-2"}),n==="login"?"Log In":"Create Account"]})]})]})})}const Rm="/brochure.pdf",Am=[{label:"Home",href:"/",external:!1},{label:"Brochure",href:null,external:!0},{label:"Events",href:"/events",external:!1},{label:"Schedule",href:"/schedule",external:!1},{label:"Merch",href:"/merch",external:!1},{label:"Accommodation",href:"/accommodation",external:!1}];function Jn(){const[e,t]=y.useState(!1),[r,n]=y.useState(!1),s=Qn(),{user:o,signOut:i}=_r(),[a,l]=y.useState(!1);return po(),y.useEffect(()=>{const c=()=>t(window.scrollY>20);return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),u.jsxs(u.Fragment,{children:[u.jsxs("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${e?"bg-background/90 backdrop-blur-xl border-b border-border/50 shadow-lg shadow-background/50":"bg-transparent"}`,children:[u.jsxs("div",{className:"container mx-auto px-4 h-16 flex items-center justify-between",children:[u.jsx(Ur,{to:"/",className:"flex items-center gap-3 group",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("img",{src:"/exebit-logo.png",alt:"EXEBIT",className:"h-10 w-auto object-contain",onError:c=>{c.target.style.display="none"}}),u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{className:"text-xs text-muted-foreground leading-none font-medium",children:"CS EXEBIT"}),u.jsx("span",{className:"gradient-text-cyan font-black text-lg leading-none tracking-wider",children:"2026"})]})]})}),u.jsx("div",{className:"hidden md:flex items-center gap-1",children:Am.map(c=>{if(c.external)return u.jsx("a",{href:Rm,target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-primary transition-all duration-200 rounded-md hover:bg-secondary/70 hover:-translate-y-0.5",children:c.label},c.label);const d=s.pathname===c.href;return u.jsx(Ur,{to:c.href,className:`px-4 py-2 text-sm font-medium transition-all duration-200 rounded-md hover:bg-secondary/70 hover:-translate-y-0.5 ${d?"text-primary bg-secondary/60 ring-1 ring-primary/20":"text-muted-foreground hover:text-foreground"}`,children:c.label},c.label)})}),u.jsx("div",{className:"hidden md:flex items-center gap-3",children:o?u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ur,{to:"/dashboard",children:u.jsx(We,{size:"sm",variant:"outline",className:"border-primary/40 text-primary hover:bg-primary/10",children:"Dashboard"})}),u.jsx(We,{size:"sm",variant:"ghost",className:"text-muted-foreground",onClick:()=>i(),children:"Logout"})]}):u.jsx(We,{size:"sm",className:"bg-primary text-primary-foreground hover:bg-primary/90 glow-cyan",onClick:()=>l(!0),children:"Login / Sign Up"})}),u.jsx("button",{className:"md:hidden text-foreground p-2",onClick:()=>n(!r),children:r?u.jsx(Li,{size:22}):u.jsx(B_,{size:22})})]}),r&&u.jsx("div",{className:"md:hidden bg-background/95 backdrop-blur-xl border-b border-border/50",children:u.jsxs("div",{className:"container mx-auto px-4 py-4 flex flex-col gap-2",children:[Am.map(c=>c.external?u.jsx("a",{href:Rm,target:"_blank",rel:"noopener noreferrer",onClick:()=>n(!1),className:"px-4 py-3 text-sm font-medium text-muted-foreground hover:text-primary rounded-lg hover:bg-secondary transition-all",children:c.label},c.label):u.jsx(Ur,{to:c.href,onClick:()=>n(!1),className:`px-4 py-3 text-sm font-medium rounded-lg transition-all ${s.pathname===c.href?"text-primary bg-secondary":"text-muted-foreground hover:text-primary hover:bg-secondary"}`,children:c.label},c.label)),u.jsx("div",{className:"pt-2 border-t border-border flex flex-col gap-2",children:o?u.jsxs(u.Fragment,{children:[u.jsx(Ur,{to:"/dashboard",onClick:()=>n(!1),children:u.jsx(We,{className:"w-full border-primary/40 text-primary hover:bg-primary/10",variant:"outline",children:"Dashboard"})}),u.jsx(We,{className:"w-full text-muted-foreground",variant:"ghost",onClick:()=>{i(),n(!1)},children:"Logout"})]}):u.jsx(We,{className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 glow-cyan",onClick:()=>{l(!0),n(!1)},children:"Login / Sign Up"})})]})}),u.jsx(Zl,{open:a,onClose:()=>l(!1)})]}),u.jsx(cP,{})]})}function _N({className:e=""}){return u.jsx("div",{className:`relative overflow-hidden ${e}`,style:{height:"120px"},children:u.jsxs("svg",{viewBox:"0 0 1440 120",preserveAspectRatio:"none",className:"wave-animate absolute bottom-0",style:{width:"200%",height:"100%"},xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M0,60 C180,100 360,20 540,60 C720,100 900,20 1080,60 C1260,100 1440,20 1440,60 L1440,120 L0,120 Z",fill:"hsl(191 100% 50% / 0.06)"}),u.jsx("path",{d:"M0,80 C180,40 360,100 540,80 C720,60 900,100 1080,80 C1260,60 1440,100 1440,80 L1440,120 L0,120 Z",fill:"hsl(291 90% 61% / 0.04)"}),u.jsx("path",{d:"M0,90 C240,70 480,110 720,90 C960,70 1200,110 1440,90 L1440,120 L0,120 Z",fill:"hsl(191 100% 50% / 0.04)"})]})})}function yn({x:e,y:t,size:r=4,delay:n=0}){return u.jsx("div",{className:"absolute rounded-full bg-primary",style:{left:e,top:t,width:r,height:r,opacity:.6,boxSh
349adow:`0 0 ${r*3}px hsl(191 100% 50% / 0.8)`,animation:"pulse-glow 2s ease-in-out infinite",animationDelay:`${n}s`}})}function SN(){return u.jsxs("section",{className:"relative min-h-screen flex flex-col items-center justify-center overflow-hidden circuit-bg",style:{fontFamily:"'Nunito', sans-serif"},children:[u.jsx("div",{className:"scan-line absolute inset-x-0 h-32 pointer-events-none"}),u.jsx(yn,{x:"10%",y:"20%",size:5,delay:0}),u.jsx(yn,{x:"15%",y:"60%",size:3,delay:.5}),u.jsx(yn,{x:"85%",y:"25%",size:4,delay:1}),u.jsx(yn,{x:"90%",y:"70%",size:6,delay:1.5}),u.jsx(yn,{x:"50%",y:"10%",size:3,delay:.7}),u.jsx(yn,{x:"30%",y:"80%",size:4,delay:1.2}),u.jsx(yn,{x:"70%",y:"85%",size:3,delay:.3}),u.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(191 100% 50% / 0.08) 0%, transparent 70%)"}}),u.jsx("div",{className:"absolute bottom-1/3 right-1/4 w-80 h-80 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(291 90% 61% / 0.06) 0%, transparent 70%)"}}),u.jsxs("div",{className:"relative z-10 text-center px-3 md:px-4 max-w-5xl mx-auto animate-fade-in",children:[u.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-2 md:gap-6 mb-4 md:mb-8",children:[u.jsx("img",{src:"/cse-logo.png",alt:"CSA IIT Madras",className:"h-12 md:h-24 lg:h-32 w-auto object-contain float-anim flex-shrink-0",style:{filter:"drop-shadow(0 0 16px hsl(191 100% 50% / 0.5))"},onError:e=>{e.target.style.display="none"}}),u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsx("div",{className:"text-sm md:text-2xl lg:text-3xl text-muted-foreground font-semibold tracking-[0.2em] md:tracking-[0.4em] uppercase",children:"Computer Science Association"}),u.jsx("div",{className:"text-xs md:text-base text-muted-foreground/70 font-regular tracking-[0.05em] md:tracking-[0.1em] mt-1 md:mt-2",children:"Department of Computer Science, IIT Madras"})]}),u.jsx("img",{src:"/csa-logo.png",alt:"IIT Madras",className:"h-12 md:h-32 lg:h-40 w-auto object-contain float-anim flex-shrink-0",style:{filter:"drop-shadow(0 0 16px hsl(191 100% 50% / 0.5))"},onError:e=>{e.target.style.display="none"}})]}),u.jsxs("h1",{className:"font-black leading-none mb-2 md:mb-4",style:{fontFamily:"'Nunito', sans-serif"},children:[u.jsxs("div",{className:"text-4xl sm:text-5xl md:text-8xl lg:text-9xl tracking-tight flex flex-wrap items-baseline justify-center gap-2 md:gap-6",children:[u.jsx("span",{className:"gradient-text-cyan",style:{fontWeight:900,letterSpacing:"0.08em",display:"inline",animation:"float 4s ease-in-out infinite"},children:"CS"}),u.jsx("span",{className:"gradient-text-cyan",style:{fontWeight:900,letterSpacing:"0.08em",display:"inline",animation:"float 4s ease-in-out infinite 0.2s"},children:"EXEBIT"})]}),u.jsx("div",{className:"text-3xl sm:text-4xl md:text-7xl lg:text-8xl gradient-text-gold",style:{fontWeight:900,animation:"float 4s ease-in-out infinite 0.4s"},children:"2026"})]}),u.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap justify-center gap-2 md:gap-4 mt-4 md:mt-8 mb-6 md:mb-10",children:[u.jsxs("div",{className:"flex items-center gap-2 px-3 md:px-4 py-1.5 md:py-2 rounded-full bg-secondary/80 border border-border/50 text-xs md:text-sm",children:[u.jsx(M_,{size:14,className:"text-primary shrink-0"}),u.jsx("span",{children:"March 28th â 29th, 2026"})]}),u.jsxs("div",{className:"flex items-center gap-2 px-3 md:px-4 py-1.5 md:py-2 rounded-full bg-secondary/80 border border-border/50 text-xs md:text-sm",children:[u.jsx(Ii,{size:14,className:"text-accent shrink-0"}),u.jsx("span",{children:"IIT Madras"})]})]}),u.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap justify-center gap-3 md:gap-4",children:[u.jsx(Ur,{to:"/events",className:"w-full sm:w-auto",children:u.jsx(We,{className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 font-bold px-6 md:px-8 py-3 md:py-6 text-sm md:text-base glow-cyan transition-all duration-300 hover:scale-105",children:"Explore Events"})}),u.jsx(Ur,{to:"/schedule",className:"w-full sm:w-auto",children:u.jsx(We,{variant:"outline",className:"w-full border-accent/50 text-accent hover:bg-accent hover:text-accent-foreground font-bold px-6 md:px-8 py-3 md:py-6 text-sm md:text-base transition-all duration-300 hover:scale-105",children:"View Schedule"})})]})]}),u.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:u.jsx(_N,{})}),u.jsxs("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 text-muted-foreground text-xs",children:[u.jsx("span",{children:"Scroll to explore"}),u.jsx("div",{className:"w-0.5 h-8 bg-gradient-to-b from-primary to-transparent roun
349ded-full animate-pulse"})]})]})}function kN(){return u.jsxs("section",{className:"py-12 md:py-24 px-4 relative overflow-hidden",children:[u.jsx("div",{className:"hidden md:block absolute left-0 top-1/2 -translate-y-1/2 w-1 h-48 rounded-r-full",style:{background:"linear-gradient(to bottom, hsl(var(--cyan)), hsl(var(--gold)))"}}),u.jsx("div",{className:"container mx-auto max-w-5xl relative",children:u.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-16 items-center",children:[u.jsx("div",{className:"relative hidden md:block",children:u.jsxs("div",{className:"glass-card rounded-2xl p-8 border border-primary/20",children:[u.jsx("div",{className:"text-5xl font-black gradient-text-cyan mb-2",children:"CS EXEBIT"}),u.jsx("div",{className:"text-muted-foreground text-sm mb-6",children:"Flagship Technology & Research Festival"}),u.jsx("div",{className:"space-y-4",children:[{label:"Department",value:"Computer Science & Engineering"},{label:"Institution",value:"IIT Madras"},{label:"Edition",value:"2026"},{label:"Dates",value:"March 28th â 29th, 2026"}].map(e=>u.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-border/30 last:border-0",children:[u.jsx("span",{className:"text-muted-foreground text-sm",children:e.label}),u.jsx("span",{className:"text-foreground text-sm font-medium",children:e.value})]},e.label))})]})}),u.jsxs("div",{children:[u.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-primary/30 bg-primary/5 text-primary text-xs font-medium mb-4 tracking-widest uppercase",children:"Key Highlights"}),u.jsxs("h2",{className:"text-2xl md:text-4xl lg:text-5xl font-black mb-4 md:mb-6",children:[u.jsx("span",{className:"gradient-text-cyan",children:"About"})," ",u.jsx("span",{className:"text-foreground",children:"EXEBIT"})]}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-sm md:text-base mb-4",children:"CS ExeBit stands as one of India's most anticipated technology festivals, bringing together brilliant minds from across the nation. It's a celebration of innovation, knowledge, and the boundless possibilities of computer science."}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-sm md:text-base",children:"With diverse events, engaging competitions, and inspiring talks from industry leaders, ExeBit creates a platform for students to showcase their skills, learn cutting-edge technologies, and connect with fellow enthusiasts and mentors."}),u.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[u.jsx("div",{className:"h-px flex-1 bg-border/50"}),u.jsx("span",{className:"text-muted-foreground text-sm italic",children:"CS EXEBIT 2026"}),u.jsx("div",{className:"h-px flex-1 bg-border/50"})]})]})]})})]})}function EN(){return u.jsxs("section",{className:"py-12 md:py-24 px-4 relative overflow-hidden",children:[u.jsx("div",{className:"hidden md:block absolute left-0 top-1/2 -translate-y-1/2 w-1 h-48 rounded-r-full",style:{background:"linear-gradient(to bottom, hsl(var(--cyan)), hsl(var(--pink)))"}}),u.jsx("div",{className:"container mx-auto max-w-5xl relative",children:u.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-16 items-center",children:[u.jsxs("div",{children:[u.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-accent/30 bg-accent/5 text-accent text-xs font-medium mb-4 tracking-widest uppercase",children:"About Us"}),u.jsxs("h2",{className:"text-2xl md:text-4xl lg:text-5xl font-black mb-4 md:mb-6",children:[u.jsx("span",{className:"text-foreground",children:"Computer Science"}),u.jsx("br",{}),u.jsx("span",{className:"gradient-text-pink",children:"Association"})]}),u.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4 md:mb-6 text-sm md:text-base",children:"The Computer Science Association (CSA) at IIT Madras is a thriving community of passionate students, visionary thinkers, and distinguished faculty, united by a shared drive for innovation in computer science."}),u.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4 text-sm md:text-base",children:"Beyond our flagship festival, CSA organizes engaging get-together events throughout the year. From celebrating cultural diversity through Ethnic Day to showcasing competitive spirit at CS Trophy, we foster a vibrant community where students connect, collaborate, and celebrate their shared passion for technology."}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-sm md:text-base",children:"As a catalyst for cutting-edge research, learning, and collaboration, CSA nurtures a culture of exploration and excellence. More than just an association, it serves as a hub where ideas flourish and the future of technology is shaped."})]}),u.jsx("div",{className:"relative",children:u.jsx("div",{className:"space-y-4",children:[{title:"Ethnic Day",description:"Celebrate cultural diversity",icon:"ð"},{title:"CS Trophy",description:"Competitive spirit unleashed",icon:"ð"},{title:"Student Talks",description:"Learning and growth",icon:"ð¡"}].map((e,t)=>u.jsx("div",{className:"glass-card rounded-xl p-6 border border-primary/20 group hover:border-primary/40 transition-all duration-300 hover:scale-105 hover:-translate-y-1",children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"text-3xl",children:e.icon}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-foreground mb-1",children:e.title}),u.jsx("p",{className:"text-muted-foreground text-sm",children:e.description})]})]})},t))})})]})})]})}const CN=[{name:"Nithin Hanumanthu",email:"[email protected]"},{name:"Yashaswi",email:"[email protected]"}],TN=[{label:"Home",href:"/"},{label:"Events",href:"/events"},{label:"Schedule",href:"/schedule"},{label:"Merch",href:"/merch"},{label:"Accommodation",href:"/accommodation"}];function Yn(){return u.jsxs("footer",{className:"border-t border-border/30 relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 left-1/4 right-1/4 h-px",style:{background:"linear-gradient(to right, transparent, hsl(var(--cyan)), hsl(var(--pink)), transparent)"}}),u.jsxs("div",{className:"container mx-auto px-3 md:px-4 py-8 md:py-16 max-w-6xl",children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 md:gap-12",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-3 mb-3 md:mb-4",children:[u.jsx("img",{src:"/exebit-logo.png",alt:"EXEBIT",className:"h-8 md:h-10 w-auto",onError:e=>{e.target.style.display="none"}}),u.jsxs("div",{children:[u.jsx("div",{className:"gradient-text-cyan font-black text-lg md:text-xl",children:"CS EXEBIT"}),u.jsx("div",{className:"text-muted-foreground text-xs",children:"2026 · IIT Madras"})]})]}),u.jsx("p",{className:"text-muted-foreground text-xs md:text-sm leading-relaxed mb-4 md:mb-6",children:"The flagship technology & research festival of the Department of Computer Science and Engineering, IIT Madras."}),u.jsxs("a",{href:"https://maps.app.goo.gl/SSeVmmDwrQWai1iWA",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors text-sm",children:[u.jsx(Ii,{size:14,className:"text-primary shrink-0"}),u.jsx("span",{children:"Department of CSE, IIT Madras, Chennai â 600036"})]})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-foreground mb-4 text-sm tracking-widest uppercase",children:"Qu
349ick Links"}),u.jsxs("div",{className:"space-y-2",children:[TN.map(e=>u.jsx(Ur,{to:e.href,className:"block text-muted-foreground hover:text-primary text-sm transition-colors duration-200 py-1",children:e.label},e.label)),u.jsx("a",{href:"/CS_EXEBIT_2026_-_Events_Brochure.pdf",target:"_blank",rel:"noopener noreferrer",className:"block text-muted-foreground hover:text-primary text-sm transition-colors duration-200 py-1",children:"Brochure (PDF)"})]})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-foreground mb-4 text-sm tracking-widest uppercase",children:"Contact Us"}),u.jsx("div",{className:"space-y-4",children:CN.map((e,t)=>u.jsxs("div",{className:"text-sm",children:[u.jsx("div",{className:"text-foreground font-medium mb-0.5",children:e.name}),u.jsxs("a",{href:`mailto:${e.email}`,className:"flex items-center gap-1.5 text-muted-foreground hover:text-primary transition-colors truncate",children:[u.jsx(Ly,{size:12,className:"shrink-0"}),e.email]})]},t))}),u.jsx("div",{className:"pt-3 border-t border-border/20",children:u.jsxs("a",{href:"https://chat.whatsapp.com/JfrjeO17YF8K0LCDSoRUND",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-green-400 hover:text-green-300 transition-colors font-medium",children:[u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4 shrink-0",children:u.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"Join WhatsApp Community"]})})]})]}),u.jsxs("div",{className:"mt-12 pt-6 border-t border-border/30 flex flex-col md:flex-row items-center justify-between gap-4",children:[u.jsx("p",{className:"text-muted-foreground text-xs",children:"© 2026 Computer Science Association, IIT Madras. All rights reserved."}),u.jsx("p",{className:"text-muted-foreground text-xs",children:"March 28th â 29th, 2026 · Department of CSE, IIT Madras"})]})]})]})}const tu={title:[{name:"KLA",logo:"/sponsors/kla.png"}],gold:[{name:"FP Launchpad, IIT Madras",logo:"/sponsors/fplaunchpad.png"}],silver:[{name:"Centre for Cybersecurity, Trust and Reliability, IIT Madras",logo:"/sponsors/cystar-small.png",size:"w-full h-full p-2"}]},jN=()=>{const e=(t,r,n)=>{const s={cyan:"gradient-text-cyan border-cyan/30",gold:"gradient-text-gold border-gold/30",pink:"gradient-text-pink border-pink/30"};return u.jsx("div",{className:"mb-10",children:u.jsxs("div",{className:"glass-card rounded-2xl p-8 border border-border/50",children:[u.jsx("h3",{className:`text-2xl md:text-3xl font-bold mb-6 text-center ${s[n]}`,children:t}),u.jsx("div",{className:"flex flex-nowrap justify-center gap-6 md:gap-8 overflow-x-auto pb-4",children:r.map((o,i)=>u.jsxs("div",{className:"flex flex-col items-center group flex-shrink-0",children:[u.jsx("div",{className:"relative w-28 h-28 md:w-32 md:h-32 rounded-xl bg-white border border-border/50 hover:border-primary/40 transition-all duration-300 flex items-center justify-center overflow-hidden",children:u.jsx("img",{src:o.logo,alt:o.name,className:o.size?`${o.size} object-contain`:"w-20 h-20 md:w-24 md:h-24 object-contain",onError:a=>{const l=a.target;l.style.display="none";const c=l.parentElement;c&&(c.innerHTML=` 350 <div class="flex items-center justify-center w-full h-full"> 351 <svg class="w-10 h-10 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 352 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4 0h1m-1-4h1"></path> 353 </svg> 354 </div> 355 `)}})}),u.jsx("p",{className:"text-xs text-muted-foreground font-medium text-center mt-3 whitespace-nowrap",children:o.name})]},i))})]})})};return u.jsxs("section",{className:"py-12 px-4 relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse 80% 50% at 50% 0%, hsl(191 100% 50% / 0.04) 0%, transparent 60%)"}}),u.jsxs("div",{className:"container mx-auto max-w-7xl relative px-2 md:px-4",children:[u.jsxs("div",{className:"text-center mb-10",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-primary/30 bg-primary/5 text-primary text-xs font-medium mb-4 tracking-widest uppercase",children:[u.jsx(L_,{size:14}),"Our Sponsors"]}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-black mb-4",children:[u.jsx("span",{className:"text-foreground",children:"Powered by"}),u.jsx("br",{}),u.jsx("span",{className:"gradient-text-cyan",children:"Industry Leaders"})]}),u.jsx("p",{className:"text-muted-foreground text-sm md:text-base max-w-2xl mx-auto mb-6 leading-relaxed",children:"Our sponsors make CS ExeBit possible â connecting students, researchers, and industry professionals from across the country. Partners gain direct access to top talent from IIT Madras and meaningful engagement beyond just the event weekend."})]}),u.jsxs("div",{className:"flex flex-col md:flex-row gap-4 md:gap-6 justify-center items-center md:items-start max-w-5xl mx-auto",children:[u.jsx("div",{className:"w-full md:flex-1",children:e("Title Sponsor",tu.title,"gold")}),u.jsx("div",{className:"w-full md:flex-1",children:e("Gold Sponsor",tu.gold,"cyan")}),u.jsx("div",{className:"w-full md:flex-1",children:e("Silver Sponsor",tu.silver,"pink")})]})]})]})},PN=[{name:"Madhu Mutyam",title:"Professor & Head of the Department",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"John Augustine",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Rupesh Nasre",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Krishna Nandivada V",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Anurag Mittal",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Chandra Sekhar C",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Chester Rebeiro",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Janakiram D",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Jayalal Sarma M N",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Kamakoti V",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Krishna M Sivalingam",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Narayanaswamy N S",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Sreenivasa Kumar P",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Shweta Agrawal",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Sukhendu Das",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Sutanu Chakraborti",title:"Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Manikandan Narayanan",title:"Associate Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Meghana Nasre",title:"Associate Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Prashanth L A",title:"Associate Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Raghavendra Rao B V",title:"Associate Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Aishwarya Thiruvengadam",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Akanksha Agrawal",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Anantha Padmanabha",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Ashrujit Ghoshal",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Ayon Chakraborty",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Gopalakrishnan Srinivasan",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Kartik Nagar",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Mukulika Maity",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Nishad Kothari",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Pulkit Verma",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Shreyas Kiran Pai",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"},{name:"Sivaramakrishnan K C",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-3.png"},{name:"Srinivas Narayana",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-1.png"},{name:"Yadu Vasudev",title:"Assistant Professor",department:"Computer Science & Engineering",photo:"/professors/prof-2.png"}],NN=()=>{const e=y.useRef(null),t=r=>{e.current&&e.current.scrollBy({left:r==="left"?-300:300,behavior:"smooth"})};return u.jsxs("section",{className:"py-24 px-4 relative overflow-hidden",children:[u.jsx("div",{className:"absolute right-0 top-1/4 -translate-y-1/2 w-1 h-48 rounded-l-full",style:{background:"linear-gradient(to bottom, hsl(var(--primary)), hsl(var(--accent)))"}}),u.jsxs("div",{className:"container mx-auto max-w-5xl relative",children:[u.jsxs("div",{className:"text-center mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-accent/30 bg-accent/5 text-accent text-xs font-medium mb-4 tracking-widest uppercase",children:[u.jsx($y,{size:14}),"Faculty Members"]}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-black mb-4",children:[u.jsx("span",{className:"text-foreground",children:"Meet Our"}),u.jsx("br",{}),u.jsx("span",{className:"gradient-text-pink",children:"Esteemed Professors"})]}),u.jsx("p",{className:"text-muted-foreground text-base max-w-2xl mx-auto",children:"Visionary faculty members guiding the future of computer science and engineering"})]}),u.jsxs("div",{className:"relative group",children:[u.jsx("button",{onClick:()=>t("left"),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-primary/80 hover:bg-primary text-white p-2 rounded-full transition-all duration-300 opacity-0 group-hover:opacity-100 -translate-x-4 hover:scale-110",children:u.jsx(Oy,{size:24})}),u.jsx("div",{className:"overflow-x-auto pb-4 scrollbar-hide",ref:e,children:u.jsx("div",{className:"flex gap-6 min-w-min",children:PN.map((r,n)=>u.jsx("div",{className:"group relative flex-shrink-0 w-64",style:{animation:"fade-in-up 0.6s ease-out forwards",animationDelay:`${n*.1}s`,opacity:0}
355,children:u.jsxs("div",{className:"glass-card rounded-2xl p-6 border border-border/50 hover:border-primary/40 transition-all duration-300 text-center h-full",children:[u.jsxs("div",{className:"relative mb-6",children:[u.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-br from-primary to-accent opacity-0 group-hover:opacity-10 transition-opacity duration-300 blur-xl"}),u.jsx("img",{src:r.photo,alt:r.name,className:"w-20 h-20 rounded-full object-cover mx-auto border-2 border-border/50 group-hover:border-primary/50 transition-all duration-300",onError:s=>{const o=s.target;o.src=`https://ui-avatars.com/api/?name=${encodeURIComponent(r.name)}&background=0a0f1e&color=00d4ff&size=80`}})]}),u.jsx("h3",{className:"font-bold text-foreground mb-1",children:r.name}),u.jsx("p",{className:"text-sm text-primary font-medium mb-2",children:r.title}),u.jsx("p",{className:"text-xs text-muted-foreground",children:r.department})]})},n))})}),u.jsx("button",{onClick:()=>t("right"),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-primary/80 hover:bg-primary text-white p-2 rounded-full transition-all duration-300 opacity-0 group-hover:opacity-100 translate-x-4 hover:scale-110",children:u.jsx(Sh,{size:24})})]})]})]})},RN=[{members:[{name:"Yashaswi",role:"Organizing Team Head",photo:"/team/yashaswi.jpg",color:"cyan",groupSize:2},{name:"Nithin",role:"Organizing Team Head",photo:"/team/nithin.jpeg",color:"pink",groupSize:2},{name:"Mohit",role:"Sponsorship Lead",photo:"/team/mohit.jpeg",color:"gold",groupSize:2},{name:"Yoogi Kovendhan",role:"Ambience Lead",photo:"/team/yoogi.jpeg",color:"cyan",groupSize:2},{name:"Sameer",role:"Ambience Lead",photo:"/team/sameer.jpeg",color:"cyan",groupSize:2},{name:"Niswanth",role:"Ambience Lead",photo:"/team/nishwant.jpeg",color:"pink",groupSize:2}]},{members:[{name:"Bharath",role:"Finance Lead",photo:"/team/bharath.jpeg",color:"gold",groupSize:2},{name:"Prem",role:"Finance Lead",photo:"/team/prem.jpeg",color:"cyan",groupSize:2},{name:"Sharmil",role:"Webops Lead",photo:"/team/sharmil.jpeg",color:"pink",groupSize:1},{name:"Ketan",role:"Publicity Lead",photo:"/team/ketan.jpeg",color:"gold",groupSize:2}]}],AN={cyan:{gradient:"from-primary to-cyan-400",text:"gradient-text-cyan",glow:"glow-cyan"},pink:{gradient:"from-accent to-pink-400",text:"gradient-text-pink",glow:"glow-pink"},gold:{gradient:"from-gold to-yellow-400",text:"gradient-text-gold",glow:"glow-gold"}},Om=({member:e,delay:t})=>{const r=AN[e.color];return u.jsxs("div",{className:"flex flex-col items-center group",style:{animation:"fade-in-up 0.6s ease-out forwards",animationDelay:`${t}s`,opacity:0},children:[u.jsxs("div",{className:"relative mb-4",children:[u.jsx("div",{className:`absolute inset-0 rounded-full blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300 ${r.glow}`,style:{transform:"scale(1.15)"}}),u.jsx("div",{className:`absolute inset-0 rounded-full bg-gradient-to-br ${r.gradient} opacity-20 group-hover:opacity-40 transition-opacity duration-300`}),u.jsx("img",{src:e.photo,alt:e.name,className:"w-28 h-28 md:w-32 md:h-32 rounded-full object-cover border-3 border-border/50 group-hover:border-border transition-all duration-300 relative z-10",onError:n=>{const s=n.target;s.src=`https://ui-avatars.com/api/?name=${encodeURIComponent(e.name)}&background=0a0f1e&color=00d4ff&size=128`}})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("h4",{className:`font-bold text-base ${r.text}`,children:e.name}),u.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:e.role})]}),u.jsx("div",{className:`h-1 w-10 rounded-full mt-2 opacity-0 group-hover:opacity-100 transition-all duration-300 bg-gradient-to-r ${r.gradient}`})]})},ON=()=>u.jsxs("section",{className:"py-24 px-4 relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(191 100% 50% / 0.08) 0%, transparent 70%)"}}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-80 h-80 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(291 90% 61% / 0.06) 0%, transparent 70%)"}}),u.jsxs("div",{className:"container mx-auto max-w-6xl relative",children:[u.jsxs("div",{className:"text-center mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-gold/30 bg-gold/5 text-gold text-xs font-medium mb-4 tracking-widest uppercase",children:[u.jsx(Dy,{size:14}),"Meet The Team"]}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-black mb-4",children:[u.jsx("span",{className:"text-foreground",children:"The Driving Force"}),u.jsx("br",{}),u.jsx("span",{className:"gradient-text-cyan",children:"Behind CS EXEBIT"})]}),u.jsx("p",{className:"text-muted-foreground text-base max-w-2xl mx-auto",children:"A dedicated team of passionate students making CS ExeBit an unforgettable experience"})]}),u.jsx("div",{className:"space-y-12",children:RN.map((e,t)=>{let r=0;const n=[];for(;r<e.members.length;){const s=e.members[r];s.groupSize===2&&r+1<e.members.length?(n.push([s,e.members[r+1]]),r+=2):(n.push([s]),r+=1)}return u.jsx("div",{className:"flex flex-wrap justify-center gap-8 md:gap-10",children:n.map((s,o)=>s.length===2?u.jsx("div",{className:"flex gap-4 md:gap-6",children:s.map((i,a)=>u.jsx(Om,{member:i,delay:(t*5+o*2+a)*.08},`${t}-${o}-${a}`))},`${t}-pair-${o}`):u.jsx(Om,{member:s[0],delay:(t*5+o*2)*.08},`${t}-single-${o}`))},t)})})]})]}),IN=()=>u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Jn,{}),u.jsx(SN,{}),u.jsx(jN,{}),u.jsx(kN,{}),u.jsx(EN,{}),u.jsx(NN,{}),u.jsx(ON,{}),u.jsx(Yn,{})]}),LN={"Reverse Coding":"https://unstop.com/p/reverse-coding-cs-exebit-2026-duplicate-iit-madras-1656
355733","Programming Contest":"https://unstop.com/p/programming-contest-cs-exebit-2026-cs-exebit-2026-iit-madras-1657182","Capture the Flag":"https://unstop.com/p/capture-the-flag-ctf-cs-exebit-2026-cs-exebit-2026-iit-madras-1657186",Quantathon:"https://unstop.com/p/quantathon-cs-exebit-2026-cs-exebit-2026-iit-madras-1657184"},No={"Introduction to Theorem Proving using LEAN":"https://unstop.com/p/introduction-to-theorem-proving-using-lean-cs-exebit-2026-iit-madras-1657136","When LLMs Stop Thinking":"https://unstop.com/p/when-llms-stop-thinking-a-peek-inside-transformer-models-iit-madras-1658328","Intro to OCaml":"https://unstop.com/p/intro-to-ocaml-iit-madras-1658324","From ed to Wayland":"https://unstop.com/p/from-ed-to-wayland-the-evolution-of-the-linux-desktop-environment-cs-exebit-2026-iit-madras-1657162","Stories That Became Theorems":"https://unstop.com/o/Ja6Yi21?lb=yGgNZnoq&utm_medium=Share&utm_source=csass4711&utm_campaign=Workshops"},Sa={"ML for Compilers and Compilers for ML":"https://unstop.com/p/ml-for-compilers-and-compilers-for-ml-cs-exebit-2026-iit-madras-1656137","Networking for LLM Training":"https://unstop.com/p/networking-for-llm-training-architectures-protocols-and-mechanisms-iit-madras-1656680","The Distortion Effect":"https://unstop.com/p/the-distortion-effect-or-how-i-learned-to-stop-regretting-and-love-the-risk-cs-exebit-2026-iit-madras-1657168","Evolution of OCaml":"https://unstop.com/p/evolution-of-ocaml-cs-exebit-2026-iit-madras-1657195"},MN=[{id:1,name:"Reverse Coding",icon:U_,category:"Contest",tagColor:"cyan",date:"March 28, 2026",time:"4:00 PM - 5:30 PM",venue:"CS24/26",fee:"Paid",teamSize:"Individual",shortDesc:"Given the output â deduce the code.",description:"Reverse Coding is a challenge where you're given the output and must figure out the code or logic behind it. Unlike traditional coding problems, it tests your analytical thinking, pattern recognition, and requires a deep understanding of algorithms.",skills:["Analytical Thinking","Algorithms","Pattern Recognition"]},{id:2,name:"Programming Contest",icon:J_,category:"Contest",tagColor:"cyan",date:"March 29, 2026",time:"4:30 PM - 6:30 PM",venue:"CS24/26",fee:"Paid",teamSize:"Individual",shortDesc:"Logical & programming-based challenges.",description:"Participants will be expected to code a program that gives a correct output for the question consisting of logical and programming-based questions involving some basic concepts on logical reasoning, number systems, and basic programming knowledge.",skills:["Logical Reasoning","Number Systems","Programming"]},{id:3,name:"Capture the Flag",icon:K_,category:"Cybersecurity",tagColor:"pink",date:"March 28, 2026",time:"5:30 PM - 6:30 PM",venue:"CS24/26",fee:"Paid",teamSize:"Individual",shortDesc:"Hunt flags across crypto, web & forensics.",description:"Capture the Flag (CTF) is a cybersecurity competition where participants solve challenges in areas like cryptography, reverse engineering, web security, and forensics. Each challenge hides a 'flag' â a unique code that proves it's been solved.",skills:["Cryptography","Web Security","Forensics","Reverse Engineering"]},{id:4,name:"Quantathon",icon:$_,category:"Quantitative",tagColor:"gold",date:"March 29, 2026",time:"9:00 AM - 10:00 AM",venue:"CS24/26",fee:"Paid",teamSize:"Individual",shortDesc:"Stats, modeling & algorithmic trading.",description:"Quantathon is a quantitative competition where participants tackle challenges in areas like statistical analysis, mathematical modeling, algorithmic trading, and data optimization.",skills:["Statistics","Mathematical Modeling","Algorithmic Trading"]},{id:5,name:"Hackathon (Exclusive to IITM Students)",icon:Dy,category:"Hackathon",tagColor:"pink",date:"March 14â18, 2026",venue:"CS15",fee:"Free",teamSize:"Team of 3",shortDesc:"24-hour sprint to build impactful solutions.",description:"A hackathon is a high-energy, collaborative challenge where people with technical skills team up to invent, design, and prototype solutions to a given problem statement within a limited time frame.",skills:["System Design","Rapid Prototyping","Teamwork","Innovation"]},{id:6,name:"Workshops",icon:Z_,category:"Workshop",tagColor:"cyan",date:"March 28â29, 2026",time:"Various",venue:"CS15/SSB134",fee:"Paid",teamSize:"Open",shortDe
355sc:"1-hour hands-on learning sessions.",description:"A series of 1-hour workshops aimed at sharing knowledge, sparking curiosity, and encouraging hands-on learning. Conducted by faculty, lab groups, enthusiastic students, and industry experts.",skills:["Hands-on Learning","Industry Exposure","Networking"],subItems:[{name:"Introduction to Theorem Proving using LEAN",link:No["Introduction to Theorem Proving using LEAN"]},{name:"When LLMs Stop Thinking",link:No["When LLMs Stop Thinking"]},{name:"Intro to OCaml",link:No["Intro to OCaml"]},{name:"From ed to Wayland",link:No["From ed to Wayland"]},{name:"Stories That Became Theorems",link:No["Stories That Became Theorems"]}]},{id:7,name:"Professor Talks",icon:V_,category:"Talk",tagColor:"gold",date:"March 28â29, 2026",time:"Various",venue:"Auditorium",fee:"Free",teamSize:"Open",shortDesc:"Expert talks on emerging technologies.",description:"Exebit will feature a series of 1-hour talks delivered by esteemed professors, industry professionals, and experts from sponsoring companies.",skills:["Research Insights","Industry Trends","AI & ML","Systems"],subItems:[{name:"ML for Compilers and Compilers for ML",link:Sa["ML for Compilers and Compilers for ML"]},{name:"Networking for LLM Training",link:Sa["Networking for LLM Training"]},{name:"The Distortion Effect",link:Sa["The Distortion Effect"]},{name:"Evolution of OCaml",link:Sa["Evolution of OCaml"]}]},{id:8,name:"Poster Presentation",icon:q_,category:"Research",tagColor:"pink",date:"March 28, 2026",time:"10:30 AM - 12:30 PM",venue:"CS13",fee:"Free",shortDesc:"Showcase cutting-edge research from IIT Madras labs.",description:"A dedicated 2-hour poster presentation by research labs offering a window into the cutting-edge work happening within the department.",skills:["Research Communication","Academic Showcase","Networking"]}],$N={cyan:{tag:"bg-primary/15 text-primary border-primary/30",icon:"text-primary",iconBg:"bg-primary/10",btn:"bg-primary text-primary-foreground hover:bg-primary/90",glowHover:"hover:shadow-[0_0_30px_hsl(var(--cyan)/0.35),0_0_60px_hsl(var(--cyan)/0.12)] hover:border-primary/60"},pink:{tag:"bg-accent/15 text-accent border-accent/30",icon:"text-accent",iconBg:"bg-accent/10",btn:"bg-accent text-accent-foreground hover:bg-accent/90",glowHover:"hover:shadow-[0_0_30px_hsl(var(--pink)/0.35),0_0_60px_hsl(var(--pink)/0.12)] hover:border-accent/60"},gold:{tag:"bg-gold/15 text-gold border-gold/30",icon:"text-gold",iconBg:"bg-gold/10",btn:"bg-gold text-primary-foreground hover:bg-gold/90",glowHover:"hover:shadow-[0_0_30px_hsl(var(--gold)/0.35),0_0_60px_hsl(var(--gold)/0.12)] hover:border-gold/60"}};function DN({event:e,onLoginRequired:t,isIitm:r,hasPass:n,onPassWarning:s}){const{user:o}=_r(),i=$N[e.tagColor],a=e.icon,l=LN[e.name],c=e.name.includes("Hackathon"),d=e.name==="Poster Presentation",h=e.subItems,p=(f,x)=>{if(!o){f.preventDefault(),t();return}if(r===!1&&!n){f.preventDefault(),s();return}};return u.jsxs("div",{className:`glass-card rounded-2xl p-6 flex flex-col border border-border/40 transition-all duration-300 ${i.glowHover} hover:scale-[1.02] hover:-translate-y-1 cursor-default`,children:[u.jsxs("div",{className:"flex items-start justify-between mb-4",children:[u.jsx("div",{className:`p-3 rounded-xl ${i.iconBg}`,children:u.jsx(a,{size:28,className:i.icon})}),u.jsx("div",{className:"flex flex-col items-end gap-1.5",children:u.jsx("span",{className:`text-xs font-semibold px-2 py-1 rounded-full border ${i.tag}`,children:e.category})})]}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:e.name}),u.jsx("p",{className:"text-muted-foreground text-sm flex-1 leading-relaxed",children:e.shortDesc}),u.jsxs("div",{className:"mt-4 space-y-1.5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx(kh,{size:12,className:"shrink-0"}),e.date," ",e.time&&`· ${e.time}`]}),u.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx(Ii,{size:12,className:"shrink-0"}),e.venue]}),u.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx($y,{size:12,className:"shrink-0"}),e.teamSize]})]}),u.jsxs("div",{className:"flex flex-wrap gap-1 mt-3",children:[e.skills.slice(0,2).map(f=>u.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full border ${i.tag}`,children:f},f)),e.skills.length>2&&u.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full border border-border/40 text-muted-foreground",children:["+",e.skills.length-2]})]}),h&&u.jsx("div",{className:"mt-3 space-y-1.5",children:e.subItems.map(f=>u.jsxs("a",{href:f.link,target:"_blank",rel:"noopener noreferrer",onClick:x=>p(x,f.link),className:"flex items-center justify-between gap-2 text-xs px-3 py-2 rounded-lg border border-border/30 bg-secondary/30 hover:bg-secondary/60 transition-colors group",children:[u.jsx("span",{className:"text-foreground font-medium",children:f.name}),u.jsx(Xu,{size:12,className:"text-muted-foreground group-hover:text-primary shrink-0"})]},f.name))}),d?u.jsx("div",{className:"mt-4 w-full py-2.5 rounded-xl text-sm font-medium text-center text-muted-foreground bg-secondary/50 border border-border/30",children:"No Registration Needed"}):c?u.jsx("div",{className:"mt-4 w-full py-2.5 rounded-xl text-sm font-medium text-center text-muted-foreground bg-secondary/50 border border-border/30",children:"Registration Closed"}):l?u.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",onClick:f=>p(f),className:`mt-4 w-full py-2.5 rounded-xl text-sm font-semibold flex items-center justify-center gap-2 transition-all duration-200 ${i.btn}`,children:["Register on Unstop ",u.jsx(Xu,{size:14})]}):h?null:u.jsx("div",{className:"mt-4 w-full py-2.5 rounded-xl text-sm font-medium text-center text-muted-foreground bg-secondary/50 border border-border/30",children:"Coming Soon"})]})}function UN(){const[e,t]=y.useState(!1),{user:r,loading:n}=_r(),[s,o]=y.useState(()=>{const m=localStorage.getItem("is_iitm");return m!==null?JSON.parse(m):null}),[i,a]=y.useState(!0),[l,c]=y.useState(!1),[d,h]=y.useState(null);y.useEffect(()=>{localStorage.getItem("hasAllEventsPass")==="true"&&c(!0)},[]),y.useEffect(()=>
355{if(!n){if(!r){o(null),a(!1);return}gt.from("profiles").select("is_iitm").eq("id",r.id).single().then(({data:m})=>{const b=(m==null?void 0:m.is_iitm)??null;o(b),b!==null&&localStorage.setItem("is_iitm",JSON.stringify(b)),a(!1)})}},[r,n]);const p=m=>{r||(m.preventDefault(),t(!0))},f=()=>{const m=!l;c(m),localStorage.setItem("hasAllEventsPass",String(m))},x=()=>{h({message:"Please buy the pass and toggle 'I have bought the All Events Pass' to register.",visible:!0}),setTimeout(()=>{h(m=>m?{...m,visible:!1}:null)},4e3)};return u.jsxs("div",{className:"min-h-screen bg-background relative overflow-hidden",children:[u.jsx(Jn,{}),u.jsx("div",{className:`fixed bottom-6 left-1/2 -translate-x-1/2 z-50 transition-all duration-300 ease-out ${d!=null&&d.visible?"translate-y-0 opacity-100":"translate-y-8 opacity-0 pointer-events-none"}`,children:u.jsxs("div",{className:"glass-card flex items-center gap-3 px-4 py-3 rounded-xl border border-destructive/30 bg-background/80 backdrop-blur-md shadow-lg shadow-destructive/10",children:[u.jsx("div",{className:"p-1.5 bg-destructive/10 rounded-full",children:u.jsx(yp,{size:16,className:"text-destructive"})}),u.jsx("p",{className:"text-sm font-medium text-foreground",children:d==null?void 0:d.message}),u.jsx("button",{onClick:()=>h(m=>m?{...m,visible:!1}:null),className:"p-1 ml-2 text-muted-foreground hover:text-foreground transition-colors rounded-full hover:bg-secondary/50",children:u.jsx(Li,{size:14})})]})}),u.jsx("section",{className:"pt-24 md:pt-32 pb-8 md:pb-16 px-4 circuit-bg relative",children:u.jsxs("div",{className:"container mx-auto max-w-6xl text-center",children:[u.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-accent/30 bg-accent/5 text-accent text-xs font-medium mb-4 tracking-widest uppercase",children:"CS EXEBIT 2026"}),u.jsx("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-black mb-4",children:u.jsx("span",{className:"gradient-text-pink",children:"Events"})})]})}),!i&&s!==!0&&u.jsx("section",{className:"px-4 pb-6",children:u.jsx("div",{className:"container mx-auto max-w-6xl",children:u.jsxs("div",{className:"glass-card rounded-2xl p-6 md:p-8 border border-primary/30 bg-primary/5 flex flex-col md:flex-row items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx("div",{className:"p-3 rounded-xl bg-primary/10",children:u.jsx(vp,{size:32,className:"text-primary"})}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:"All Events Pass"}),u.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Get access to all contests & workshops."})]})]}),u.jsxs("a",{href:"https://unstop.com/events/cs-exebit-2026-cs-exebit-2026-iit-madras-1658441",target:"_blank",rel:"noopener noreferrer",onClick:p,className:"shrink-0 px-6 py-3 rounded-xl bg-primary text-primary-foreground font-semibold text-sm flex items-center gap-2 hover:bg-primary/90 transition-all glow-cyan",children:["Buy Pass on Unstop ",u.jsx(Xu,{size:14})]})]})})}),r&&s===!1&&u.jsxs(u.Fragment,{children:[u.jsx("section",{className:"px-4 pb-4",children:u.jsx("div",{className:"container mx-auto max-w-6xl",children:u.jsxs("div",{className:"glass-card rounded-2xl p-4 md:p-5 border border-primary/30 bg-secondary/10 flex items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(vp,{size:20,className:"text-primary shrink-0"}),u.jsx("span",{className:"text-sm font-medium text-foreground",children:"I have bought the All Events Pass"})]}),u.jsx("button",{onClick:f,className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 ${l?"bg-primary":"bg-muted-foreground/30"}`,role:"switch","aria-checked":l,children:u.jsx("span",{"aria-hidden":"true",className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${l?"translate-x-5":"translate-x-0"}`})})]})})}),u.jsx("section",{className:"px-4 pb-6",children:u.jsx("div",{className:"container mx-auto max-w-6xl",children:u.jsxs("div",{className:"rounded-2xl p-4 md:p-5 border border-destructive/50 bg-destructive/10 flex items-center gap-3",children:[u.jsx(yp,{size:20,className:"text-destructive shrink-0"}),u.jsx("p",{className:"text-sm text-destructive font-medium",children:"All Events Pass is mandatory for non-IITM students to register for any event. Ensure you've toggled the switch above to register."})]})})})]}),u.jsx("section",{className:"py-8 md:py-16 px-4",children:u.jsx("div",{className:"container mx-auto max-w-6xl",children:u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6",children:MN.map(m=>u.jsx(DN,{event:m,onLoginRequired:()=>t(!0),isIitm:s,hasPass:l,onPassWarning:x},m.id))})})}),u.jsx(Yn,{}),u.jsx(Zl,{open:e,onClose:()=>t(!1)})]})}const Vw={contest:{label:"Contest",color:"text-primary bg-primary/10 border-primary/30",dot:"bg-primary",border:"border-primary/40"},workshop:{label:"Workshop",color:"text-accent bg-accent/10 border-accent/30",dot:"bg-
355accent",border:"border-accent/40"},talk:{label:"Talk",color:"text-gold bg-gold/10 border-gold/30",dot:"bg-gold",border:"border-gold/40"},presentation:{label:"Presentation",color:"text-violet bg-violet/10 border-violet/30",dot:"bg-violet",border:"border-violet/40"}},FN={march28:[{time:"10:00 AM",endTime:"10:30 AM",name:"Inauguration Talk",venue:"CS15",type:"talk",description:"Keynote address by industry leader / title sponsor KLA representative."},{time:"10:30 AM",endTime:"12:30 PM",name:"Hackathon Presentation",venue:"CS15",type:"presentation",description:"Finalists of the Hackathon present their projects to a panel of judges. Open to all attendees."},{time:"12:30 PM",endTime:"01:00 PM",name:"Professor Talk by Prof. Krishna Moorthy Sivalingam",venue:"CS15",type:"talk",description:"Networking for LLM Training: Architectures, Protocols and Mechanisms"},{time:"01:45 PM",endTime:"02:15 PM",name:"Professor Talk by Prof. Krishna Nandivada",venue:"CS15",type:"talk",description:"ML for Compilers and Compilers for ML"},{time:"02:30 PM",endTime:"04:00 PM",name:"Workshop Session",venue:"SSB134",type:"workshop",description:"Introduction to Theorem Proving using LEAN"},{time:"04:00 PM",endTime:"05:30 PM",name:"Reverse Coding",venue:"CS24/26",type:"contest",description:"Reverse Coding is a challenge where you're given the output and must figure out the code or logic behind it"},{time:"05:30 PM",endTime:"06:30 PM",name:"Capture the Flag (CTF)",venue:"CS24/26",type:"contest",description:"Cybersecurity competition â crypto, reverse engineering, web, forensics."}
355],march29:[{time:"09:00 AM",endTime:"10:00 AM",name:"Quantathon",venue:"CS24/26",type:"contest",description:"Quantitative challenges â Probability, Statistics, Optimization."},{time:"10:00 AM",endTime:"10:30 AM",name:"Professor Talk by Prof. KC Sivaramakrishnan",venue:"CS15",type:"talk",description:"Talk on Functional Programming and OCaml."},{time:"10:30 AM",endTime:"12:30 PM",name:"Workshop",venue:"SSB134",type:"workshop",description:"Intro to OCaml and functional programming. Open to all skill levels."},{time:"01:30 PM",endTime:"02:30 PM",name:"Workshop",venue:"SSB134",type:"workshop",description:"From ed to Wayland : The Evolution of the Linux Desktop Environment"},{time:"01:30 PM",endTime:"02:30 PM",name:"Workshop",venue:"CS15",type:"workshop",description:"Bridges, Burglars, Birthday Cakes and Ballots - Stories That Became Theorems"},{time:"02:30 PM",endTime:"03:30 PM",name:"Workshop",venue:"CS15",type:"workshop",description:"When LLMs Stop Thinking"},{time:"03:30 PM",endTime:"04:30 PM",name:"Professor Talk by Prof. Prashanth L A",venue:"CS15",type:"talk",description:"The distortion effect: or How I learned to stop regretting and love the risk"},{time:"04:30 PM",endTime:"06:30 PM",name:"Programming Contest",venue:"CS24/26",type:"contest",description:"Coding race with problem-solving rounds under strict time limits."}]};function zN({event:e,isLast:t}){const r=Vw[e.type];return u.jsxs("div",{className:"flex gap-4 group",children:[u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsx("div",{className:`w-3 h-3 rounded-full shrink-0 mt-1 ring-2 ring-background ${r.dot} group-hover:ring-4 transition-all duration-300`}),!t&&u.jsx("div",{className:"w-0.5 flex-1 mt-1 timeline-line opacity-30"})]}),u.jsxs("div",{className:`glass-card rounded-xl p-4 mb-4 flex-1 border border-border/30 ${r.border} hover:scale-[1.01] hover:-translate-y-0.5 transition-all duration-300 group-hover:border-opacity-70`,children:[u.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-2 mb-2",children:[u.jsx("h3",{className:"font-bold text-base",children:e.name}),u.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border ${r.color} shrink-0`,children:r.label})]}),u.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:e.description}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[u.jsx(kh,{size:12}),e.time," â ",e.endTime]}),u.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[u.jsx(Ii,{size:12}),e.venue]})]})]})]})}function BN(){const[e,t]=y.useState("march28"),r=FN[e];return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Jn,{}),u.jsx("section",{className:"pt-24 md:pt-32 pb-8 md:pb-12 px-4 circuit-bg",children:u.jsxs("div",{className:"container mx-auto max-w-4xl text-center",children:[u.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-gold/30 bg-gold/5 text-gold text-xs font-medium mb-4 tracking-widest uppercase",children:"CS EXEBIT 2026"}),u.jsx("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-black mb-3 md:mb-4",children:u.jsx("span",{className:"gradient-text-gold",children:"Schedule"})}),u.jsx("p",{className:"text-muted-foreground text-sm md:text-lg max-w-xl mx-auto",children:"Two days of packed events â contests, workshops, talks, and the 24-hour CS Odyssey hackathon."})]})}),u.jsx("section",{className:"py-6 md:py-8 px-4",children:u.jsxs("div",{className:"container mx-auto max-w-4xl",children:[u.jsx("div",{className:"flex flex-wrap justify-center gap-2 mb-6 md:mb-8",children:Object.entries(Vw).map(([n,s])=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("div",{className:`w-2.5 h-2.5 rounded-full ${s.dot}`}),u.jsx("span",{className:"text-xs text-muted-foreground",children:s.label})]},n))}),u.jsx("div",{className:"flex gap-2 md:gap-3 justify-center mb-8 md:mb-12",children:["march28","march29"].map(n=>u.jsx("button",{onClick:()=>t(n),className:`px-4 md:px-6 py-2 md:py-3 rounded-lg md:rounded-xl font-bold text-xs md:text-sm transition-all duration-300 border ${e===n?"bg-primary text-primary-foreground border-primary glow-cyan scale-105":"glass-card border-border/40 text-muted-foreground hover:text-foreground hover:border-primary/30"}`,children:n==="march28"?"ð
March 28, 2026":"ð
March 29, 2026"},n))}),u.jsxs("div",{className:"max-w-2xl mx-auto px-2",children:[u.jsxs("div",{className:"mb-4 md:mb-6 flex items-center gap-2 md:gap-3",children:[u.jsx(Sh,{size:16,className:"text-primary shrink-0"}),u.jsx("h2",{className:"font-black text-base md:text-xl",children:e==="march28"?"Day 1 â March 28, 2026":"Day 2 â March 29, 2026"}),u.jsx("div",{className:"h-px flex-1 bg-border/40"}),u.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[r.length," events"]})]}),u.jsx("div",{className:"space-y-0",children:r.map((n,s)=>u.jsx(zN,{event:n,isLast:s===r.length-1},s))})]}),u.jsx("div",{className:"mt-12 text-center text-muted-foreground text-sm",children:u.jsx("p",{children:"* Sc
355hedule is subject to change. Final timings will be confirmed closer to the event."})})]})}),u.jsx(Yn,{})]})}function WN(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ec="Checkbox",[VN,wR]=lo(ec),[HN,Vh]=VN(ec);function qN(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:s,disabled:o,form:i,name:a,onCheckedChange:l,required:c,value:d="on",internal_do_not_use_render:h}=e,[p,f]=yh({prop:r,defaultProp:s??!1,onChange:l,caller:ec}),[x,m]=y.useState(null),[b,v]=y.useState(null),g=y.useRef(!1),w=x?!!i||!!x.closest("form"):!0,_={checked:p,disabled:o,setChecked:f,control:x,setControl:m,name:a,form:i,value:d,hasConsumerStoppedPropagationRef:g,required:c,defaultChecked:sn(s)?!1:s,isFormControl:w,bubbleInput:b,setBubbleInput:v};return u.jsx(HN,{scope:t,..._,children:KN(h)?h(_):n})}var Hw="CheckboxTrigger",qw=y.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},s)=>{const{control:o,value:i,disabled:a,checked:l,required:c,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:x}=Vh(Hw,e),m=Me(s,d),b=y.useRef(l);return y.useEffect(()=>{const v=o==null?void 0:o.form;if(v){const g=()=>h(b.current);return v.addEventListener("reset",g),()=>v.removeEventListener("reset",g)}},[o,h]),u.jsx(pe.button,{type:"button",role:"checkbox","aria-checked":sn(l)?"mixed":l,"aria-required":c,"data-state":Yw(l),"data-disabled":a?"":void 0,disabled:a,value:i,...n,ref:m,onKeyDown:ae(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ae(r,v=>{h(g=>sn(g)?!0:!g),x&&f&&(p.current=v.isPropagationStopped(),p.current||v.stopPropagation())})})});qw.displayName=Hw;var Hh=y.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:o,required:i,disabled:a,value:l,onCheckedChange:c,form:d,...h}=e;return u.jsx(qN,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:a,required:i,onCheckedChange:c,name:n,form:d,value:l,internal_do_not_use_render:({isFormControl:p})=>u.jsxs(u.Fragment,{children:[u.jsx(qw,{...h,ref:t,__scopeCheckbox:r}),p&&u.jsx(Jw,{__scopeCheckbox:r})]})})});Hh.displayName=ec;var Kw="CheckboxIndicator",Gw=y.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,o=Vh(Kw,r);return u.jsx(qn,{present:n||sn(o.checked)||o.checked===!0,children:u.jsx(pe.span,{"data-state":Yw(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});Gw.displayName=Kw;var Qw="CheckboxBubbleInput",Jw=y.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:i,required:a,disabled:l,name:c,value:d,form:h,bubbleInput:p,setBubbleInput:f}=Vh(Qw,e),x=Me(r,f),m=WN(o),b=a0(n);y.useEffect(()=>{const g=p;if(!g)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,k=!s.current;if(m!==o&&S){const E=new Event("click",{bubbles:k});g.indeterminate=sn(o),S.call(g,sn(o)?!1:o),g.dispatchEvent(E)}},[p,m,o,s]);const v=y.useRef(sn(o)?!1:o);return u.jsx(pe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:a,disabled:l,name:c,value:d,form:h,...t,tabIndex:-1,ref:x,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Jw.displayName=Qw;function KN(e){return typeof e=="function"}function sn(e){return e==="indeterminate"}function Yw(e){return sn(e)?"indeterminate":e?"checked":"unchecked"}const GN=y.forwardRef(({className:e,...t},r)=>u.jsx(Hh,{ref:r,className:He("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:u.jsx(Gw,{className:He("flex items-center justify-center text-current"),children:u.jsx(D_,{className:"h-4 w-4"})})}));GN.displayName=Hh.displayName;const QN=[{name:"Niswanth",email:"[email protected]"},{name:"Yoogi",email:"[email protected]"}],JN=250;function YN(){_r();const e=po();sy();const[t,r]=y.useState(!1);y.useState(""),y.useState(""),y.useState(""),y.useState(""),y.useState("");const[n,s]=y.useState(0),[o,i]=y.useState(0),[a,l]=y.useState([]),[c,d]=y.useState([]);y.useState(!1),y.useState(!1),y.useState(""),a.length;const h=n+o;return c.length*JN*h,u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Jn,{}),u.jsxs("section",{className:"min-h-screen flex items-center justify-center px-3 md:px-4 circuit-bg relative",children:[u.jsx("div",{className:"absolute top-1/3 left-1/3 w-64 md:w-80 h-64 md:h-80 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(191 100% 50% / 0.06) 0%, transparent 70%)"}}),u.jsx("div",{className:"absolute bottom-1/3 right-1/3 w-48 md:w-64 h-48 md:h-64 roun
355ded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(291 90% 61% / 0.05) 0%, transparent 70%)"}}),u.jsxs("div",{className:"relative z-10 w-full max-w-2xl mx-auto pt-24 pb-12",children:[u.jsxs("div",{className:"text-center mb-6",children:[u.jsx("div",{className:"text-5xl md:text-7xl mb-4 float-anim",children:"ð "}),u.jsx("h1",{className:"text-3xl md:text-5xl font-black mb-2",children:u.jsx("span",{className:"gradient-text-cyan",children:"Accommodation"})}),u.jsx("p",{className:"text-muted-foreground text-sm md:text-base",children:"Book your stay and food coupons for CS EXEBIT 2026."})]}),u.jsxs("div",{className:"glass-card rounded-2xl p-8 md:p-10 border border-primary/20 text-center mb-8",children:[u.jsx(Zu,{size:40,className:"text-muted-foreground mx-auto mb-3"}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Accommodation Registrations Closed"}),u.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Accommodation bookings for CS EXEBIT 2026 are now closed. Thank you for your interest!"}),u.jsx("p",{className:"text-muted-foreground text-xs",children:"For any queries, please contact the team below."})]}),!1,u.jsxs("div",{className:"glass-card rounded-2xl p-4 md:p-6 border border-gold/20 mt-8",children:[u.jsx("p",{className:"text-gold font-semibold text-xs md:text-sm mb-3 tracking-widest uppercase",children:"For Accommodation Inquiries"}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:QN.map((p,f)=>u.jsxs("div",{className:"text-left",children:[u.jsx("div",{className:"text-foreground font-medium text-xs md:text-sm mb-1",children:p.name}),u.jsxs("a",{href:`mailto:${p.email}`,className:"flex items-center gap-1 text-muted-foreground hover:text-primary text-xs transition-colors truncate",children:[u.jsx(Ly,{size:14,className:"shrink-0"}),u.jsx("span",{className:"truncate",children:p.email})]})]},f))})]}),u.jsx("div",{className:"text-center mt-6",children:u.jsx(We,{variant:"outline",className:"border-primary/50 text-primary hover:bg-primary hover:text-primary-foreground",onClick:()=>e("/"),children:"â Back to Home"})})]})]}),u.jsx(Yn,{}),u.jsx(Zl,{open:t,onClose:()=>r(!1)})]})}function XN(){const{user:e,loading:t}=_r(),r=po(),[n,s]=y.useState([]),[o,i]=y.useState([]),[a,l]=y.useState(!0);return y.useEffect(()=>{!t&&!e&&r("/")},[e,t]),y.useEffect(()=>{e&&Promise.all([gt.from("merch_orders").select("*").eq("user_id",e.id).eq("payment_status","paid").order("created_at",{ascending:!1}),gt.from("accommodation_bookings").select("*").eq("user_id",e.id).eq("payment_status","paid").order("created_at",{ascending:!1})]).then(([c,d])=>{s(c.data||[]),i(d.data||[]),l(!1)})},[e]),t||a?u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:u.jsx(Iy,{className:"animate-spin text-primary",size:32})}):u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Jn,{}),u.jsxs("div",{className:"pt-28 pb-16 px-4 container mx-auto max-w-4xl",children:[u.jsxs("h1",{className:"text-4xl font-black mb-2",children:["My ",u.jsx("span",{className:"gradient-text-cyan",children:"Dashboard"})]}),u.jsx("p",{className:"text-muted-foreground mb-8",children:e==null?void 0:e.email}),u.jsxs("div",{className:"mb-12",children:[u.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[u.jsx(Zu,{size:22,className:"text-primary"}),"Accommodation Bookings"]}),o.length===0?u.jsxs("div",{className:"glass-card rounded-2xl p-10 text-center border border-border/40",children:[u.jsx(Zu,{size:40,className:"text-muted-foreground mx-auto mb-3"}),u.jsx("h3",{className:"text-lg font-bold mb-1",children:"No accommodation bookings"}),u.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Book accommodation for CS Exebit 2026."}),u.jsx(We,{onClick:()=>r("/accommodation"),className:"bg-primary text-primary-foreground hover:bg-primary/90",children:"Book Accommodation"})]}):u.jsx("div",{className:"grid gap-4",children:o.map(c=>{var d,h;return u.jsx("div",{className:"glass-card rounded-2xl p-5 border border-border/40",children:u.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[u.jsxs("div",{className:"flex-1",children:[u.jsx("h3",{className:"text-lg font-bold mb-1",children:c.full_name}),u.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:c.college_name}),u.jsxs("div",{className:"flex flex-col gap-2 mb-2",children:[u.jsxs("div",{className:"text-xs text-muted-foreground",children:[u.jsx("span",{className:"font-semibold text-foreground mr-1",children:"ð
Stay:"}),((d=c.accom_days)==null?void 0:d.length)>0?c.accom_days.join(" | "):`${c.arrival_date} â ${c.departure_date}`]}),u.jsxs("div",{className:"flex flex-wrap gap-3 text-xs text-muted-foreground",children:[c.num_males>0&&u.jsxs("span",{children:["ð¨ ",c.num_males," male",c.num_males>1?"s":""]}),c.num_females>0&&u.jsxs("span",{children:["ð© ",c.num_females," female",c.num_females>1?"s":""]})]})]}),((h=c.food_coupon_days)==null?void 0:h.length)>0&&u.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground mt-1",children:[u.jsx(X_,{size:12,className:"shrink-0"}
355)," Food: ",c.food_coupon_days.join(", ")]}),u.jsxs("div",{className:"flex flex-wrap gap-3 text-xs text-muted-foreground mt-2 pt-2 border-t border-border/30",children:[c.accom_amount>0&&u.jsxs("span",{children:["Accommodation: â¹",c.accom_amount]}),c.food_amount>0&&u.jsxs("span",{children:["Food: â¹",c.food_amount]}),u.jsxs("span",{className:"text-foreground font-semibold",children:["Total: â¹",c.total_amount]})]})]}),u.jsx("span",{className:"inline-block text-xs px-3 py-1 rounded-full font-semibold whitespace-nowrap bg-emerald-500/10 text-emerald-400",children:"PAID"})]})},c.id)})})]}),u.jsxs("div",{children:[u.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[u.jsx(My,{size:22,className:"text-primary"}),"My Orders"]}),n.length===0?u.jsxs("div",{className:"glass-card rounded-2xl p-10 text-center border border-border/40",children:[u.jsx(H_,{size:40,className:"text-muted-foreground mx-auto mb-3"}),u.jsx("h3",{className:"text-lg font-bold mb-1",children:"No orders yet"}),u.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Browse our merch store to grab official CS Exebit 2026 merchandise."}),u.jsx(We,{onClick:()=>r("/merch"),className:"bg-primary text-primary-foreground hover:bg-primary/90",children:"Browse Merch"})]}):u.jsx("div",{className:"grid gap-4",children:n.map(c=>u.jsxs("div",{className:"glass-card rounded-2xl p-5 border border-border/40 flex flex-col sm:flex-row sm:items-center gap-3",children:[u.jsxs("div",{className:"flex-1",children:[u.jsx("h3",{className:"text-lg font-bold mb-1",children:c.item_name}),u.jsxs("div",{className:"flex flex-wrap gap-3 text-xs text-muted-foreground",children:[u.jsxs("span",{children:["Size: ",u.jsx("strong",{className:"text-foreground",children:c.size})]}),u.jsxs("span",{children:["Amount: ",u.jsxs("strong",{className:"text-foreground",children:["â¹",c.amount]})]}),u.jsx("span",{children:new Date(c.created_at).toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"})})]})]}),u.jsx("span",{className:"inline-block text-xs px-3 py-1 rounded-full font-semibold whitespace-nowrap bg-emerald-500/10 text-emerald-400",children:"PAID"})]},c.id))})]})]}),u.jsx(Yn,{})]})}const ZN=()=>{const e=Qn();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},eR="modulepreload",tR=function(e){return"/"+e},Im={},rR=function(t,r,n){let s=Promise.resolve();if(r&&r.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(r.map(l=>{if(l=tR(l),l in Im)return;Im[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":eR,c||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((p,f)=>{h.addEventListener("load",p),h.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 t().catch(o)})},nR=[{id:1,name:"CS Exebit 2026 â No Connection!",description:"Official CS Exebit 2026 T-shirt in Olive. Features the iconic Chrome dino 'No Connection!' design.",color:"Olive",price:350,images:["/merch/noconn_front.png","/merch/noconn_back.png","/merch/noconn_lsleeve.png","/merch/noconn_rsleeve.png"],imageLabels:["Front","Back","Left Sleeve","Right Sleeve"],sizes:["S","M","L","XL","XXL"],inventoryKeys:["olive"]},{id:2,name:"CS Exebit 2026",description:"Official CS Exebit 2026 T-shirt in Sport Grey. Terminal-style 'run exebit.exe' design.",color:"Sport Grey",price:350,images:["/merch/sec_front.png","/merch/sec_back.png","/merch/sec_left.png","/merch/sec_right.png"],imageLabels:["Front","Back","
355Left Sleeve","Right Sleeve"],sizes:["S","M","L","XL","XXL"],inventoryKeys:["grey"]},{id:3,name:"CS Exebit 2026 â Combo Pack",description:"Get both official CS Exebit 2026 T-shirts at a discounted price! Includes the Olive 'No Connection!' tee and the Sport Grey 'run exebit.exe' tee.",color:"Olive + Sport Grey",price:650,images:["/merch/combo.png","/merch/noconn_front.png","/merch/sec_front.png"],imageLabels:["Combo","No Connection!","Run Exebit"],sizes:["S","M","L","XL","XXL"],isCombo:!0,inventoryKeys:["olive","grey"]}];function sR({images:e,imageLabels:t,alt:r}){const[n,s]=y.useState(0);return u.jsxs("div",{className:"relative aspect-square bg-secondary/30 overflow-hidden",children:[u.jsx("img",{src:e[n],alt:`${r} - ${t[n]}`,className:"w-full h-full object-cover transition-opacity duration-300"}),u.jsx("span",{className:"absolute top-3 left-3 px-2 py-0.5 rounded-full bg-background/70 backdrop-blur text-xs font-medium text-foreground",children:t[n]}),u.jsx("button",{onClick:()=>s(o=>(o-1+e.length)%e.length),className:"absolute left-2 top-1/2 -translate-y-1/2 p-1.5 rounded-full bg-background/60 backdrop-blur hover:bg-background/80 text-foreground","aria-label":"Previous image",children:u.jsx(Oy,{size:18})}),u.jsx("button",{onClick:()=>s(o=>(o+1)%e.length),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 rounded-full bg-background/60 backdrop-blur hover:bg-background/80 text-foreground","aria-label":"Next image",children:u.jsx(Sh,{size:18})}),u.jsx("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-1.5",children:e.map((o,i)=>u.jsx("button",{onClick:()=>s(i),className:`w-2 h-2 rounded-full transition-colors ${i===n?"bg-primary":"bg-foreground
355/30"}`,"aria-label":t[i]},i))})]})}function oR(){po(),y.useState({}),y.useState(null);const[e,t]=y.useState(!1),[r,n]=y.useState({}),[s,o]=y.useState(!0);return _r(),cw(),y.useEffect(()=>{(async()=>{const{data:a}=await gt.from("merch_inventory").select("item_key, size, stock");if(a){const l={};for(const c of a)l[c.item_key]||(l[c.item_key]={}),l[c.item_key][c.size]=c.stock;n(l)}o(!1)})()},[]),u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Jn,{}),u.jsxs("section",{className:"min-h-screen px-3 md:px-4 circuit-bg relative pt-24 pb-16",children:[u.jsx("div",{className:"absolute top-1/4 left-1/4 w-64 md:w-96 h-64 md:h-96 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(191 100% 50% / 0.06) 0%, transparent 70%)"}}),u.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-48 md:w-72 h-48 md:h-72 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, hsl(291 90% 61% / 0.05) 0%, transparent 70%)"}}),u.jsxs("div",{className:"container mx-auto max-w-4xl relative z-10",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-primary/30 bg-primary/5 text-primary text-xs font-medium mb-4 tracking-widest uppercase",children:[u.jsx(G_,{size:14}),"Official Merchandise"]}),u.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-black mb-4",children:u.jsx("span",{className:"gradient-text-cyan",children:"Merch Store"})}),u.jsx("p",{className:"text-muted-foreground text-sm md:text-base max-w-xl mx-auto",children:"Official CS Exebit 2026 merchandise."}),u.jsxs("div",{className:"mt-6 inline-flex items-center gap-2 px-4 py-2 rounded-full border border-destructive/40 bg-destructive/10 text-destructive text-sm font-semibold",children:[u.jsx(gp,{size:16}),"Registrations Closed"]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8",children:nR.map(i=>u.jsxs("div",{className:`glass-card rounded-2xl border border-border/50 transition-all duration-300 overflow-hidden group ${i.isCombo?"md:col-span-2":""}`,children:[u.jsx(sR,{images:i.images,imageLabels:i.imageLabels,alt:i.name}),u.jsxs("div",{className:"p-4 md:p-6",children:[u.jsx("h3",{className:"text-lg font-bold text-foreground mb-1",children:i.name}),u.jsx("p",{className:"text-muted-foreground text-xs md:text-sm mb-2 leading-relaxed",children:i.description}),u.jsx("span",{className:"inline-block text-xs font-medium px-2 py-0.5 rounded-full bg-secondary text-muted-foreground mb-3",children:i.color}),u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsxs("span",{className:"text-2xl font-black gradient-text-cyan",children:["â¹",i.price]}),u.jsx("span",{className:"text-xs font-semibold px-2 py-1 rounded-full bg-destructive/10 text-destructive",children:"Registrations Closed"})]}),u.jsxs(We,{className:"w-full",disabled:!0,children:[u.jsx(gp,{size:16,className:"mr-2 shrink-0"}),u.jsx("span",{className:"truncate",children:"Registrations Closed"})]})]})]},i.id))})]})]}),u.jsx(Yn,{}),u.jsx(Zl,{open:e,onClose:()=>t(!1)})]})}function iR(){const{items:e,removeItem:t,clearCart:r,totalAmount:n}=cw(),{user:s}=_r(),o=po(),i=async()=>{if(!s){ps.error("Please log in first");return}if(e.length===0){ps.error("Cart is empty");return}const a=e.map(p=>({user_id:s.id,item_name:p.name,size:p.size,amount:p.price})),{data:l,error:c}=await gt.from("merch_orders").insert(a).select();if(c||!l){ps.error("Failed to create orders");return}const d=l.map(p=>p.id),{initiateRazorpayPayment:h}=await rR(async()=>{const{initiateRazorpayPayment:p}=await import("./razorpay-C4mWAAxh.js");return{initiateRazorpayPayment:p}},[]);h({amount:n,receipt:`cart-${d[0]}`.substring(0,40),notes:{items:e.map(p=>`${p.name} (${p.size})`).join(", ").substring(0,255)},type:"merch",order_db_ids:d,prefill:{email:s.email},onSuccess:()=>{r(),ps.success("Order placed successfully!"),o("/dashboard")},onError:p=>ps.error(p)})};return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Jn,{}),u.jsx("section",{className:"min-h-screen px-3 md:px-4 circuit-bg relative pt-24 pb-16",children:u.jsxs("div",{className:"container mx-auto max-w-2xl relative z-10",children:[u.jsxs("div",{className:"text-center mb-10",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-black mb-2",children:u.jsx("span",{className:"gradient-text-cyan",children:"Your Cart"})}),u.jsxs("p",{className:"text-muted-foreground text-sm",children:[e.length," item",e.length!==1?"s":""," in cart"]})]}),e.length===0?u.jsxs("div",{className:"glass-card rounded-2xl p-10 text-center border border-border/40",children:[u.jsx(Q_,{size:40,className:"text-muted-foreground mx-auto mb-3"}),u.jsx("h3",{className:"text-lg font-bold mb-1",children:"Cart is empty"}),u.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Add some merch to get started."}),u.jsx(We,{onClick:()=>o("/merch"),children:"Browse Merch"})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"grid gap-3 mb-6",children:e.map((a,l)=>u.jsxs("div",{className:"glass-card rounded-xl p-4 border border-border/40 flex items-center gap-4",children:[u.jsx("img",{src:a.image,alt:a.name,className:"w-16 h-16 rounded-lg object-cover bg-secondary/30"}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"font-bold text-sm truncate",children:a.name}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Size: ",a.size]})]}),u.jsxs("span",{className:"font-bold text-sm gradient-text-cyan whitespace-nowrap",children:["â¹",a.price]}),u.jsx("button",{onClick:()=>t(l),className:"text-muted-foreground hover:text-red-400 transition-colors p-1",children:u.jsx(Y_,{size:16})})]},l))}),u.jsxs("div",{className:"glass-card rounded-2xl p-6 border border-border/40",children:[u.jsxs("div",{className:"flex justify-between items-center mb-4",children:[u.jsx("span",{className:"text-muted-foreground font-medium",children:"Total"}),u.jsxs("span",{className:"text-2xl font-black gradient-text-cyan",children:["â¹",n]})]}),u.jsxs(We,{className:"w-full",onClick:i,children:[u.jsx(My,{size:16,className:"mr-2"}),"Pay â¹",n]})]})]})]})}),u.jsx(Yn,{})]})}const aR="https://chat.whatsapp.com/JfrjeO17YF8K0LCDSoRUND";function lR(){const{user:e}=_r(),t=y.useRef(e);return y.useEffect(()=>{!t.current&&e&&ps("Join our WhatsApp community for updates & queries!",{icon:u.jsx(W_,{size:18,className:"text-green-500"}),duration:6e3,action:{label:"Join Now",onClick:()=>window.open(aR,"_blank")}}),t.current=e},[e]),null}const cR=new SC,uR=()=>u.jsx(EC,{client:cR,children:u.jsxs(ZE,{children:[u.jsx(LS,{}),u.jsx(fk,{}),u.jsx(_2,{children:u.jsx(oP,{children:u.jsxs(aP,{children:[u.jsx(C2,{}),u.jsx(lR,{}),u.jsxs(m2,{children:[u.jsx(or,{path:"/",element:u.jsx(IN,{})}),u.jsx(or,{path:"/events",element:u.jsx(UN,{})}),u.jsx(or,{path:"/schedule",element:u.jsx(BN,{})}),u.jsx(or,{path:"/accommodation",element:u.jsx(YN,{})}),u.jsx(or,{path:"/merch",element:u.jsx(oR,{})}),u.jsx(or,{path:"/cart",element:u.jsx(iR,{})}),u.jsx(or,{path:"/dashboard",element:u.jsx(XN,{})}),u.jsx(or,{path:"*",element:u.jsx(ZN,{})})]})]})})})]})});ny(document.getElementById("root")).render(u.jsx(uR,{}));export{gt as s};
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.