PageSourceSearch

https://flock-reit.lovable.app/assets/index-DH9O_LbZ.js

js flock-reit.lovable.app collected 2026-10-03 03:31:27 UTC 485,546 bytes, 187 lines download raw bytes

vendor: 6,675 bytes, lines 1-9
1var Mf=e=>{throw TypeError(e)};var Fl=(e,t,n)=>t.has(e)||Mf("Cannot "+n);var P=(e,t,n)=>(Fl(e,t,"read from private field"),n?n.call(e):t.get(e)),oe=(e,t,n)=>t.has(e)?Mf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(Fl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ze=(e,t,n)=>(Fl(e,t,"access private method"),n);var _i=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return P(e,t,r)}});function Bw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ww(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var mm={exports:{}},Xa={},gm={exports:{}},Z={};/**
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 di=Symbol.for("react.element"),Vw=Symbol.for("react.portal"),Hw=Symbol.for("react.fragment"),Kw=Symbol.for("react.strict_mode"),qw=Symbol.for("react.profiler"),Gw=Symbol.for("react.provider"),Qw=Symbol.for("react.context"),Yw=Symbol.for("react.forward_ref"),Jw=Symbol.for("react.suspense"),Xw=Symbol.for("react.memo"),Zw=Symbol.for("react.lazy"),Df=Symbol.iterator;function ex(e){return e===null||typeof e!="object"?null:(e=Df&&e[Df]||e["@@iterator"],typeof e=="function"?e:null)}var vm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ym=Object.assign,wm={};function Qo(e,t,n){this.props=e,this.context=t,this.refs=wm,this.updater=n||vm}Qo.prototype.isReactComponent={};Qo.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")};Qo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xm(){}xm.prototype=Qo.prototype;function ad(e,t,n){this.props=e,this.context=t,this.refs=wm,this.updater=n||vm}var ld=ad.prototype=new xm;ld.constructor=ad;ym(ld,Qo.prototype);ld.isPureReactComponent=!0;var Ff=Array.isArray,bm=Object.prototype.hasOwnProperty,ud={current:null},Sm={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)bm.call(t,r)&&!Sm.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:di,type:e,key:s,ref:i,props:o,_owner:ud.current}}function tx(e,t){return{$$typeof:di,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function cd(e){return typeof e=="object"&&e!==null&&e.$$typeof===di}function nx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Uf=/\/+/g;function Ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nx(""+e.key):t.toString(36)}function ea(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case di:case Vw:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Ul(i,0):r,Ff(o)?(n="",e!=null&&(n=e.replace(Uf,"$&/")+"/"),ea(o,t,n,"",function(u){return u})):o!=null&&(cd(o)&&(o=tx(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Uf,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Ff(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Ul(s,a);i+=ea(s,t,n,l,o)}else if(l=ex(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Ul(s,a++),i+=ea(s,t,n,l,o);else if(s==="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 Ei(e,t,n){if(e==null)return e;var r=[],o=0;return ea(e,r,"","",function(s){return t.call(n,s,o++)}),r}function rx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},ta={transition:null},ox={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:ta,ReactCurrentOwner:ud};function Em(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Ei,forEach:function(e,t,n){Ei(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ei(e,function(){t++}),t},toArray:function(e){return Ei(e,function(t){return t})||[]},only:function(e){if(!cd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Qo;Z.Fragment=Hw;Z.Profiler=qw;Z.PureComponent=ad;Z.StrictMode=Kw;Z.Suspense=Jw;
vendor: 5,022 bytes, lines 9-25
9Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ox;Z.act=Em;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ym({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=ud.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)bm.call(t,l)&&!Sm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:di,type:e.type,key:o,ref:s,props:r,_owner:i}};Z.createContext=function(e){return e={$$typeof:Qw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gw,_context:e},e.Consumer=e};Z.createElement=_m;Z.createFactory=function(e){var t=_m.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:Yw,render:e}};Z.isValidElement=cd;Z.lazy=function(e){return{$$typeof:Zw,_payload:{_status:-1,_result:e},_init:rx}};Z.memo=function(e,t){return{$$typeof:Xw,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=ta.transition;ta.transition={};try{e()}finally{ta.transition=t}};Z.unstable_act=Em;Z.useCallback=function(e,t){return Xe.current.useCallback(e,t)};Z.useContext=function(e){return Xe.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Xe.current.useEffect(e,t)};Z.useId=function(){return Xe.current.useId()};Z.useImperativeHandle=function(e,t,n){return Xe.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Xe.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Xe.current.useReducer(e,t,n)};Z.useRef=function(e){return Xe.current.useRef(e)};Z.useState=function(e){return Xe.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Xe.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Xe.current.useTransition()};Z.version="18.3.1";gm.exports=Z;var y=gm.exports;const j=pm(y),dd=Bw({__proto__:null,default:j},[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,ix=Symbol.for("react.element"),ax=Symbol.for("react.fragment"),lx=Object.prototype.hasOwnProperty,ux=sx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cx={key:!0,ref:!0,__self:!0,__source:!0};function km(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)lx.call(t,r)&&!cx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:ix,type:e,key:s,ref:i,props:o,_owner:ux.current}}Xa.Fragment=ax;Xa.jsx=km;Xa.jsxs=km;mm.exports=Xa;var S=mm.exports,Cm={exports:{}},ht={},Tm={exports:{}},Pm={};/**
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(C,R){var $=C.length;C.push(R);e:for(;0<$;){var V=$-1>>>1,z=C[V];if(0<o(z,R))C[V]=R,C[$]=z,$=V;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var R=C[0],$=C.pop();if($!==R){C[0]=$;e:for(var V=0,z=C.length,Y=z>>>1;V<Y;){var K=2*(V+1)-1,fe=C[K],be=K+1,M=C[be];if(0>o(fe,$))be<z&&0>o(M,fe)?(C[V]=M,C[be]=$,V=be):(C[V]=fe,C[K]=$,V=K);else if(be<z&&0>o(M,$))C[V]=M,C[be]=$,V=be;else break e}}return R}function o(C,R){var $=C.sortIndex-R.sortIndex;return $!==0?$:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,x=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=C)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function b(C){if(p=!1,g(C),!x)if(n(l)!==null)x=!0,F(_);else{var R=n(u);R!==null&&B(b,R.startTime-C)}}function _(C,R){x=!1,p&&(p=!1,v(T),T=-1),f=!0;var $=h;try{for(g(R),d=n(l);d!==null&&(!(d.expirationTime>R)||C&&!U());){var V=d.callback;
vendor: 1,959 bytes, line 25
25if(typeof V=="function"){d.callback=null,h=d.priorityLevel;var z=V(d.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(l)&&r(l),g(R)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var K=n(u);K!==null&&B(b,K.startTime-R),Y=!1}return Y}finally{d=null,h=$,f=!1}}var E=!1,k=null,T=-1,N=5,A=-1;function U(){return!(e.unstable_now()-A<N)}function L(){if(k!==null){var C=e.unstable_now();A=C;var R=!0;try{R=k(!0,C)}finally{R?W():(E=!1,k=null)}}else E=!1}var W;if(typeof m=="function")W=function(){m(L)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,H=I.port2;I.port1.onmessage=L,W=function(){H.postMessage(null)}}else W=function(){w(L,0)};function F(C){k=C,E||(E=!0,W())}function B(C,R){T=w(function(){C(e.unstable_now())},R)}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(C){C.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,F(_))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var $=h;h=R;try{return C()}finally{h=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var $=h;h=C;try{return R()}finally{h=$}},e.unstable_scheduleCallback=function(C,R,$){var V=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?V+$:V):$=V,C){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}
vendor: 4,614 bytes, lines 25-33
25return z=$+z,C={id:c++,callback:R,priorityLevel:C,startTime:$,expirationTime:z,sortIndex:-1},$>V?(C.sortIndex=$,t(u,C),n(l)===null&&C===n(u)&&(p?(v(T),T=-1):p=!0,B(b,$-V))):(C.sortIndex=z,t(l,C),x||f||(x=!0,F(_))),C},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(C){var R=h;return function(){var $=h;h=R;try{return C.apply(this,arguments)}finally{h=$}}}})(Pm);Tm.exports=Pm;var dx=Tm.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 fx=y,ft=dx;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rm=new Set,Ds={};function Br(e,t){Fo(e,t),Fo(e+"Capture",t)}function Fo(e,t){for(Ds[e]=t,e=0;e<t.length;e++)Rm.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lu=Object.prototype.hasOwnProperty,hx=/^[: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]*$/,zf={},Bf={};function px(e){return Lu.call(Bf,e)?!0:Lu.call(zf,e)?!1:hx.test(e)?Bf[e]=!0:(zf[e]=!0,!1)}function mx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gx(e,t,n,r){if(t===null||typeof t>"u"||mx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ze(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ze(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){De[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var fd=/[\-:]([a-z])/g;function hd(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
33-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(fd,hd);De[t]=new Ze(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(fd,hd);De[t]=new Ze(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(fd,hd);De[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function pd(e,t,n,r){var o=De.hasOwnProperty(t)?De[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gx(t,n,o,r)&&(n=null),r||o===null?px(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Sn=fx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ki=Symbol.for("react.element"),uo=Symbol.for("react.portal"),co=Symbol.for("react.fragment"),md=Symbol.for("react.strict_mode"),$u=Symbol.for("react.profiler"),Om=Symbol.for("react.provider"),Nm=Symbol.for("react.context"),gd=Symbol.for("react.forward_ref"),Mu=Symbol.for("react.suspense"),Du=Symbol.for("react.suspense_list"),vd=Symbol.for("react.memo"),In=Symbol.for("react.lazy"),Am=Symbol.for("react.offscreen"),Wf=Symbol.iterator;function ls(e){return e===null||typeof e!="object"?null:(e=Wf&&e[Wf]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,zl;function ws(e){if(zl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zl=t&&t[1]||""}return`
34`+zl+e}var Bl=!1;function Wl(e,t){if(!e||Bl)return"";Bl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35`),s=r.stack.split(`
36`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
37`+o[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{Bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function vx(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=Wl(e.type,!1),e;case 11:return e=Wl(e.type.render,!1),e;case 1:return e=Wl(e.type,!0),e;default:return""}}function Fu(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 co:return"Fragment";case uo:return"Portal";case $u:return"Profiler";case md:return"StrictMode";case Mu:return"Suspense";case Du:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nm:return(e.displayName||"Context")+".Consumer";case Om:return(e._context.displayName||"Context")+".Provider";case gd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vd:return t=e.displayName||null,t!==null?t:Fu(e.type)||"Memo";case In:t=e._payload,e=e._init;try{return Fu(e(t))}catch{}}return null}function yx(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 Fu(t);case 8:return t===md?"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 tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wx(e){var t=jm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){e._valueTracker||(e._valueTracker=wx(e))}function Im(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wa(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 Uu(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lm(e,t){t=t.checked,t!=null&&pd(e,"checked",t,!1)}function zu(e,t){Lm(e,t);var n=tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bu(e,t.type,tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bu(e,t,n){(t!=="number"||wa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function So(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+tr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Wu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(xs(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tr(n)}}function $m(e,t){var n=tr(t.value),r=tr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function qf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Mm(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 Vu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Mm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}
vendor: 10,508 bytes, line 37
37var Ti,Dm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ti=Ti||document.createElement("div"),Ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={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},xx=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){xx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Fm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function Um(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Fm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bx=xe({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(bx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Ku(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 qu=null;function yd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gu=null,_o=null,Eo=null;function Gf(e){if(e=pi(e)){if(typeof Gu!="function")throw Error(O(280));var t=e.stateNode;t&&(t=rl(t),Gu(e.stateNode,e.type,t))}}function zm(e){_o?Eo?Eo.push(e):Eo=[e]:_o=e}function Bm(){if(_o){var e=_o,t=Eo;if(Eo=_o=null,Gf(e),t)for(e=0;e<t.length;e++)Gf(t[e])}}function Wm(e,t){return e(t)}function Vm(){}var Vl=!1;function Hm(e,t,n){if(Vl)return e(t,n);Vl=!0;try{return Wm(e,t,n)}finally{Vl=!1,(_o!==null||Eo!==null)&&(Vm(),Bm())}}function Us(e,t){var n=e.stateNode;if(n===null)return null;var r=rl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var Qu=!1;if(gn)try{var us={};Object.defineProperty(us,"passive",{get:function(){Qu=!0}}),window.addEventListener("test",us,us),window.removeEventListener("test",us,us)}catch{Qu=!1}function Sx(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Cs=!1,xa=null,ba=!1,Yu=null,_x={onError:function(e){Cs=!0,xa=e}};function Ex(e,t,n,r,o,s,i,a,l){Cs=!1,xa=null,Sx.apply(_x,arguments)}function kx(e,t,n,r,o,s,i,a,l){if(Ex.apply(this,arguments),Cs){if(Cs){var u=xa;Cs=!1,xa=null}else throw Error(O(198));ba||(ba=!0,Yu=u)}}function Wr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Km(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 Qf(e){if(Wr(e)!==e)throw Error(O(188))}function Cx(e){var t=e.alternate;if(!t){if(t=Wr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Qf(o),e;if(s===r)return Qf(o),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function qm(e){return e=Cx(e),e!==null?Gm(e):null}function Gm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Gm(e);if(t!==null)return t;e=e.sibling}return null}var Qm=ft.unstable_scheduleCallback,Yf=ft.unstable_cancelCallback,Tx=ft.unstable_shouldYield,Px=ft.unstable_requestPaint,Ce=ft.unstable_now,Rx=ft.unstable_getCurrentPriorityLevel,wd=ft.unstable_ImmediatePriority,Ym=ft.unstable_UserBlockingPriority,Sa=ft.unstable_NormalPriority,Ox=ft.unstable_LowPriority,Jm=ft.unstable_IdlePriority,Za=null,en=null;function Nx(e){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Za,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Ix,Ax=Math.log,jx=Math.LN2;function Ix(e){return e>>>=0,e===0?32:31-(Ax(e)/jx|0)|0}var Pi=64,Ri=4194304;function bs(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 _a(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=bs(a):(s&=i,s!==0&&(r=bs(s)))}else i=n&~o,i!==0?r=bs(i):s!==0&&(r=bs(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),o=1<<n,r|=e[n],t&=~o;return r}function Lx(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 $x(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Ft(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=Lx(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Ju(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Xm(){var e=Pi;return Pi<<=1,!(Pi&4194240)&&(Pi=64),e}function Hl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Mx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ft(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function xd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function Zm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var eg,bd,tg,ng,rg,Xu=!1,Oi=[],qn=null,Gn=null,Qn=null,zs=new Map,Bs=new Map,$n=[],Dx="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 Jf(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bs.delete(t.pointerId)}}function cs(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=pi(t),t!==null&&bd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Fx(e,t,n,r,o){switch(t){case"focusin":return qn=cs(qn,e,t,n,r,o),!0;case"dragenter":return Gn=cs(Gn,e,t,n,r,o),!0;case"mouseover":return Qn=cs(Qn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return zs.set(s,cs(zs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Bs.set(s,cs(Bs.get(s)||null,e,t,n,r,o)),!0}return!1}function og(e){var t=Sr(e.target);if(t!==null){var n=Wr(t);if(n!==null){if(t=n.tag,t===13){if(t=Km(n),t!==null){e.blockedOn=t,rg(e.priority,function(){tg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function na(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qu=r,n.target.dispatchEvent(r),qu=null}else return t=pi(n),t!==null&&bd(t),e.blockedOn=n,!1;t.shift()}return!0}function Xf(e,t,n){na(e)&&n.delete(t)}function Ux(){Xu=!1,qn!==null&&na(qn)&&(qn=null),Gn!==null&&na(Gn)&&(Gn=null),Qn!==null&&na(Qn)&&(Qn=null),zs.forEac
vendor: 11,521 bytes, line 37
37h(Xf),Bs.forEach(Xf)}function ds(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,Ux)))}function Ws(e){function t(o){return ds(o,e)}if(0<Oi.length){ds(Oi[0],e);for(var n=1;n<Oi.length;n++){var r=Oi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qn!==null&&ds(qn,e),Gn!==null&&ds(Gn,e),Qn!==null&&ds(Qn,e),zs.forEach(t),Bs.forEach(t),n=0;n<$n.length;n++)r=$n[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)og(n),n.blockedOn===null&&$n.shift()}var ko=Sn.ReactCurrentBatchConfig,Ea=!0;function zx(e,t,n,r){var o=ae,s=ko.transition;ko.transition=null;try{ae=1,Sd(e,t,n,r)}finally{ae=o,ko.transition=s}}function Bx(e,t,n,r){var o=ae,s=ko.transition;ko.transition=null;try{ae=4,Sd(e,t,n,r)}finally{ae=o,ko.transition=s}}function Sd(e,t,n,r){if(Ea){var o=Zu(e,t,n,r);if(o===null)tu(e,t,r,ka,n),Jf(e,r);else if(Fx(o,e,t,n,r))r.stopPropagation();else if(Jf(e,r),t&4&&-1<Dx.indexOf(e)){for(;o!==null;){var s=pi(o);if(s!==null&&eg(s),s=Zu(e,t,n,r),s===null&&tu(e,t,r,ka,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else tu(e,t,r,null,n)}}var ka=null;function Zu(e,t,n,r){if(ka=null,e=yd(r),e=Sr(e),e!==null)if(t=Wr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Km(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ka=e,null}function sg(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(Rx()){case wd:return 1;case Ym:return 4;case Sa:case Ox:return 16;case Jm:return 536870912;default:return 16}default:return 16}}var Vn=null,_d=null,ra=null;function ig(){if(ra)return ra;var e,t=_d,n=t.length,r,o="value"in Vn?Vn.value:Vn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return ra=o.slice(e,1<r?1-r:void 0)}function oa(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 Ni(){return!0}function Zf(){return!1}function pt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ni:Zf,this.isPropagationStopped=Zf,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var Yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ed=pt(Yo),hi=xe({},Yo,{view:0,detail:0}),Wx=pt(hi),Kl,ql,fs,el=xe({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kd,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!==fs&&(fs&&e.type==="mousemove"?(Kl=e.screenX-fs.screenX,ql=e.screenY-fs.screenY):ql=Kl=0,fs=e),Kl)},movementY:function(e){return"movementY"in e?e.movementY:ql}}),eh=pt(el),Vx=xe({},el,{dataTransfer:0}),Hx=pt(Vx),Kx=xe({},hi,{relatedTarget:0}),Gl=pt(Kx),qx=xe({},Yo,{animationName:0,elapsedTime:0,pseudoElement:0}),Gx=pt(qx),Qx=xe({},Yo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yx=pt(Qx),Jx=xe({},Yo,{data:0}),th=pt(Jx),Xx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zx={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"},eb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eb[e])?!!t[e]:!1}function kd(){return tb}var nb=xe({},hi,{key:function(e){if(e.key){var t=Xx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kd,charCode:function(e){return e.type==="keypress"?oa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rb=pt(nb),ob=xe({},el,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nh=pt(ob),sb=xe({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kd}),ib=pt(sb),ab=xe({},Yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),lb=pt(ab),ub=xe({},el,{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}),cb=pt(ub),db=[9,13,27,32],Cd=gn&&"CompositionEvent"in window,Ts=null;gn&&"documentMode"in document&&(Ts=document.documentMode);var fb=gn&&"TextEvent"in window&&!Ts,ag=gn&&(!Cd||Ts&&8<Ts&&11>=Ts),rh=" ",oh=!1;function lg(e,t){switch(e){case"keyup":return db.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ug(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fo=!1;function hb(e,t){switch(e){case"compositionend":return ug(t);case"keypress":return t.which!==32?null:(oh=!0,rh);case"textInput":return e=t.data,e===rh&&oh?null:e;default:return null}}function pb(e,t){if(fo)return e==="compositionend"||!Cd&&lg(e,t)?(e=ig(),ra=_d=Vn=null,fo=!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 ag&&t.locale!=="ko"?null:t.data;default:return null}}var mb={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 sh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mb[e.type]:t==="textarea"}function cg(e,t,n,r){zm(r),t=Ca(t,"onChange"),0<t.length&&(n=new Ed("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ps=null,Vs=null;function gb(e){bg(e,0)}function tl(e){var t=mo(e);if(Im(t))return e}function vb(e,t){if(e==="change")return t}var dg=!1;if(gn){var Ql;if(gn){var Yl="oninput"in document;if(!Yl){var ih=document.createElement("div");ih.setAttribute("oninput","return;"),Yl=typeof ih.oninput=="function"}Ql=Yl}else Ql=!1;dg=Ql&&(!document.documentMode||9<document.documentMode)}function ah(){Ps&&(Ps.detachEvent("onpropertychange",fg),Vs=Ps=null)}function fg(e){if(e.propertyName==="value"&&tl(Vs)){var t=[];cg(t,Vs,e,yd(e)),Hm(gb,t)}}function yb(e,t,n){e==="focusin"?(ah(),Ps=t,Vs=n,Ps.attachEvent("onpropertychange",fg)):e==="focusout"&&ah()}function wb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tl(Vs)}function xb(e,t){if(e==="click")return tl(t)}function bb(e,t){if(e==="input"||e==="change")return tl(t)}function Sb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:Sb;function Hs(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Lu.call(t,o)||!zt(e[o],t[o]))return!1}return!0}function lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uh(e,t){var n=lh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lh(n)}}function hg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pg(){for(var e=window,t=wa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wa(e.document)}return t}function Td(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 _b(e){var t=pg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hg(n.ownerDocument.documentElement,n)){if(r!==null&&Td(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=uh(n,s);var i=uh(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Eb=gn&&"documentMode"in document&&11>=document.documentMode,ho=null,ec=null,Rs=null,tc=!1;
vendor: 4,821 bytes, line 37
37function ch(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tc||ho==null||ho!==wa(r)||(r=ho,"selectionStart"in r&&Td(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rs&&Hs(Rs,r)||(Rs=r,r=Ca(ec,"onSelect"),0<r.length&&(t=new Ed("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ho)))}function Ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var po={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionend:Ai("Transition","TransitionEnd")},Jl={},mg={};gn&&(mg=document.createElement("div").style,"AnimationEvent"in window||(delete po.animationend.animation,delete po.animationiteration.animation,delete po.animationstart.animation),"TransitionEvent"in window||delete po.transitionend.transition);function nl(e){if(Jl[e])return Jl[e];if(!po[e])return e;var t=po[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mg)return Jl[e]=t[n];return e}var gg=nl("animationend"),vg=nl("animationiteration"),yg=nl("animationstart"),wg=nl("transitionend"),xg=new Map,dh="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 sr(e,t){xg.set(e,t),Br(t,[e])}for(var Xl=0;Xl<dh.length;Xl++){var Zl=dh[Xl],kb=Zl.toLowerCase(),Cb=Zl[0].toUpperCase()+Zl.slice(1);sr(kb,"on"+Cb)}sr(gg,"onAnimationEnd");sr(vg,"onAnimationIteration");sr(yg,"onAnimationStart");sr("dblclick","onDoubleClick");sr("focusin","onFocus");sr("focusout","onBlur");sr(wg,"onTransitionEnd");Fo("onMouseEnter",["mouseout","mouseover"]);Fo("onMouseLeave",["mouseout","mouseover"]);Fo("onPointerEnter",["pointerout","pointerover"]);Fo("onPointerLeave",["pointerout","pointerover"]);Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Br("onBeforeInput",["compositionend","keypress","textInput","paste"]);Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="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(" "),Tb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ss));function fh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kx(r,t,void 0,e),e.currentTarget=null}function bg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;fh(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;fh(o,a,u),s=l}}}if(ba)throw e=Yu,ba=!1,Yu=null,e}function pe(e,t){var n=t[ic];n===void 0&&(n=t[ic]=new Set);var r=e+"__bubble";n.has(r)||(Sg(t,e,2,!1),n.add(r))}function eu(e,t,n){var r=0;t&&(r|=4),Sg(n,e,r,t)}var ji="_reactListening"+Math.random().toString(36).slice(2);function Ks(e){if(!e[ji]){e[ji]=!0,Rm.forEach(function(n){n!=="selectionchange"&&(Tb.has(n)||eu(n,!1,e),eu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ji]||(t[ji]=!0,eu("selectionchange",!1,t))}}function Sg(e,t,n,r){switch(sg(t)){case 1:var o=zx;break;case 4:o=Bx;break;default:o=Sd}n=o.bind(null,t,n,e),o=void 0,!Qu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function tu(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 34,590 bytes, lines 37-40
37if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=Sr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Hm(function(){var u=s,c=yd(n),d=[];e:{var h=xg.get(e);if(h!==void 0){var f=Ed,x=e;switch(e){case"keypress":if(oa(n)===0)break e;case"keydown":case"keyup":f=rb;break;case"focusin":x="focus",f=Gl;break;case"focusout":x="blur",f=Gl;break;case"beforeblur":case"afterblur":f=Gl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Hx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=ib;break;case gg:case vg:case yg:f=Gx;break;case wg:f=lb;break;case"scroll":f=Wx;break;case"wheel":f=cb;break;case"copy":case"cut":case"paste":f=Yx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=nh}var p=(t&4)!==0,w=!p&&e==="scroll",v=p?h!==null?h+"Capture":null:h;p=[];for(var m=u,g;m!==null;){g=m;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,v!==null&&(b=Us(m,v),b!=null&&p.push(qs(m,b,g)))),w)break;m=m.return}0<p.length&&(h=new f(h,x,null,n,c),d.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==qu&&(x=n.relatedTarget||n.fromElement)&&(Sr(x)||x[vn]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=u,x=x?Sr(x):null,x!==null&&(w=Wr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=u),f!==x)){if(p=eh,b="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=nh,b="onPointerLeave",v="onPointerEnter",m="pointer"),w=f==null?h:mo(f),g=x==null?h:mo(x),h=new p(b,m+"leave",f,n,c),h.target=w,h.relatedTarget=g,b=null,Sr(c)===u&&(p=new p(v,m+"enter",x,n,c),p.target=g,p.relatedTarget=w,b=p),w=b,f&&x)t:{for(p=f,v=x,m=0,g=p;g;g=Jr(g))m++;for(g=0,b=v;b;b=Jr(b))g++;for(;0<m-g;)p=Jr(p),m--;for(;0<g-m;)v=Jr(v),g--;for(;m--;){if(p===v||v!==null&&p===v.alternate)break t;p=Jr(p),v=Jr(v)}p=null}else p=null;f!==null&&hh(d,h,f,p,!1),x!==null&&w!==null&&hh(d,w,x,p,!0)}}e:{if(h=u?mo(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var _=vb;else if(sh(h))if(dg)_=bb;else{_=wb;var E=yb}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=xb);if(_&&(_=_(e,u))){cg(d,_,n,c);break e}E&&E(e,h,u),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&Bu(h,"number",h.value)}switch(E=u?mo(u):window,e){case"focusin":(sh(E)||E.contentEditable==="true")&&(ho=E,ec=u,Rs=null);break;case"focusout":Rs=ec=ho=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,ch(d,n,c);break;case"selectionchange":if(Eb)break;case"keydown":case"keyup":ch(d,n,c)}var k;if(Cd)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else fo?lg(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(ag&&n.locale!=="ko"&&(fo||T!=="onCompositionStart"?T==="onCompositionEnd"&&fo&&(k=ig()):(Vn=c,_d="value"in Vn?Vn.value:Vn.textContent,fo=!0)),E=Ca(u,T),0<E.length&&(T=new th(T,e,null,n,c),d.push({event:T,listeners:E}),k?T.data=k:(k=ug(n),k!==null&&(T.data=k)))),(k=fb?hb(e,n):pb(e,n))&&(u=Ca(u,"onBeforeInput"),0<u.length&&(c=new th("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}bg(d,t)})}function qs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ca(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Us(e,n),s!=null&&r.unshift(qs(e,s,o)),s=Us(e,t),s!=null&&r.push(qs(e,s,o))),e=e.return}return r}function Jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hh(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Us(n,s),l!=null&&i.unshift(qs(n,l,a))):o||(l=Us(n,s),l!=null&&i.push(qs(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Pb=/\r\n?/g,Rb=/\u0000|\uFFFD/g;function ph(e){return(typeof e=="string"?e:""+e).replace(Pb,`
38`).replace(Rb,"")}function Ii(e,t,n){if(t=ph(t),ph(e)!==t&&n)throw Error(O(425))}function Ta(){}var nc=null,rc=null;function oc(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 sc=typeof setTimeout=="function"?setTimeout:void 0,Ob=typeof clearTimeout=="function"?clearTimeout:void 0,mh=typeof Promise=="function"?Promise:void 0,Nb=typeof queueMicrotask=="function"?queueMicrotask:typeof mh<"u"?function(e){return mh.resolve(null).then(e).catch(Ab)}:sc;function Ab(e){setTimeout(function(){throw e})}function nu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ws(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ws(t)}function Yn(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 gh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Jo=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Jo,Gs="__reactProps$"+Jo,vn="__reactContainer$"+Jo,ic="__reactEvents$"+Jo,jb="__reactListeners$"+Jo,Ib="__reactHandles$"+Jo;function Sr(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vn]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gh(e);e!==null;){if(n=e[Jt])return n;e=gh(e)}return t}e=n,n=e.parentNode}return null}function pi(e){return e=e[Jt]||e[vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function rl(e){return e[Gs]||null}var ac=[],go=-1;function ir(e){return{current:e}}function me(e){0>go||(e.current=ac[go],ac[go]=null,go--)}function de(e,t){go++,ac[go]=e.current,e.current=t}var nr={},Ke=ir(nr),ot=ir(!1),Ir=nr;function Uo(e,t){var n=e.type.contextTypes;if(!n)return nr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function st(e){return e=e.childContextTypes,e!=null}function Pa(){me(ot),me(Ke)}function vh(e,t,n){if(Ke.current!==nr)throw Error(O(168));de(Ke,t),de(ot,n)}function _g(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,yx(e)||"Unknown",o));return xe({},n,r)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Ir=Ke.current,de(Ke,e),de(ot,ot.current),!0}function yh(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=_g(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,me(ot),me(Ke),de(Ke,e)):me(ot),de(ot,n)}var dn=null,ol=!1,ru=!1;function Eg(e){dn===null?dn=[e]:dn.push(e)}function Lb(e){ol=!0,Eg(e)}function ar(){if(!ru&&dn!==null){ru=!0;var e=0,t=ae;try{var n=dn;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dn=null,ol=!1}catch(o){throw dn!==null&&(dn=dn.slice(e+1)),Qm(wd,ar),o}finally{ae=t,ru=!1}}return null}var vo=[],yo=0,Oa=null,Na=0,yt=[],wt=0,Lr=null,hn=1,pn="";function vr(e,t){vo[yo++]=Na,vo[yo++]=Oa,Oa=e,Na=t}function kg(e,t,n){yt[wt++]=hn,yt[wt++]=pn,yt[wt++]=Lr,Lr=e;var r=hn;e=pn;var o=32-Ft(r)-1;r&=~(1<<o),n+=1;var s=32-Ft(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,hn=1<<32-Ft(t)+o|n<<o|r,pn=s+e}else hn=1<<s|n<<o|r,pn=e}function Pd(e){e.return!==null&&(vr(e,1),kg(e,1,0))}function Rd(e){for(;e===Oa;)Oa=vo[--yo],vo[yo]=null,Na=vo[--yo],vo[yo]=null;for(;e===Lr;)Lr=yt[--wt],yt[wt]=null,pn=yt[--wt],yt[wt]=null,hn=yt[--wt],yt[wt]=null}var ct=null,ut=null,ve=!1,Dt=null;function Cg(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function wh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,ut=Yn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Lr!==null?{id:hn,overflow:pn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ct=e,ut=null,!0):!1;default:return!1}}function lc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uc(e){if(ve){var t=ut;if(t){var n=t;if(!wh(e,t)){if(lc(e))throw Error(O(418));t=Yn(n.nextSibling);var r=ct;t&&wh(e,t)?Cg(r,n):(e.flags=e.flags&-4097|2,ve=!1,ct=e)}}else{if(lc(e))throw Error(O(418));e.flags=e.flags&-4097|2,ve=!1,ct=e}}}function xh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function Li(e){if(e!==ct)return!1;if(!ve)return xh(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!oc(e.type,e.memoizedProps)),t&&(t=ut)){if(lc(e))throw Tg(),Error(O(418));for(;t;)Cg(e,t),t=Yn(t.nextSibling)}if(xh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=Yn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ct?Yn(e.stateNode.nextSibling):null;return!0}function Tg(){for(var e=ut;e;)e=Yn(e.nextSibling)}function zo(){ut=ct=null,ve=!1}function Od(e){Dt===null?Dt=[e]:Dt.push(e)}var $b=Sn.ReactCurrentBatchConfig;function hs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function $i(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bh(e){var t=e._init;return t(e._payload)}function Pg(e){function t(v,m){if(e){var g=v.deletions;g===null?(v.deletions=[m],v.flags|=16):g.push(m)}}function n(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function r(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function o(v,m){return v=er(v,m),v.index=0,v.sibling=null,v}function s(v,m,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<m?(v.flags|=2,m):g):(v.flags|=2,m)):(v.flags|=1048576,m)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,m,g,b){return m===null||m.tag!==6?(m=cu(g,v.mode,b),m.return=v,m):(m=o(m,g),m.return=v,m)}function l(v,m,g,b){var _=g.type;return _===co?c(v,m,g.props.children,b,g.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===In&&bh(_)===m.type)?(b=o(m,g.props),b.ref=hs(v,m,g),b.return=v,b):(b=da(g.type,g.key,g.props,null,v.mode,b),b.ref=hs(v,m,g),b.return=v,b)}function u(v,m,g,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=du(g,v.mode,b),m.return=v,m):(m=o(m,g.children||[]),m.return=v,m)}function c(v,m,g,b,_){return m===null||m.tag!==7?(m=Ar(g,v.mode,b,_),m.return=v,m):(m=o(m,g),m.return=v,m)}function d(v,m,g){if(typeof m=="string"&&m!==""||typeof m=="number")return m=cu(""+m,v.mode,g),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ki:return g=da(m.type,m.key,m.props,null,v.mode,g),g.ref=hs(v,null,m),g.return=v,g;case uo:return m=du(m,v.mode,g),m.return=v,m;case In:var b=m._init;return d(v,b(m._payload),g)}if(xs(m)||ls(m))return m=Ar(m,v.mode,g,null),m.return=v,m;$i(v,m)}return null}function h(v,m,g,b){var _=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return _!==null?null:a(v,m,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ki:return g.key===_?l(v,m,g,b):null;case uo:return g.key===_?u(v,m,g,b):null;case In:return _=g._init,h(v,m,_(g._payload),b)}if(xs(g)||ls(g))return _!==null?null:c(v,m,g,b,null);$i(v,g)}return null}function f(v,m,g,b,_){if(typeof b=="string"&&b!==""||typeof b=="number")return v=v.get(g)||null,a(m,v,""+b,_);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ki:return v=v.get(b.key===null?g:b.key)||null,l(m,v,b,_);case uo:return v=v.get(b.key===null?g:b.key)||null,u(m,v,b,_);case In:var E=b._init;return f(v,m,g,E(b._payload),_)}if(xs(b)||ls(b))return v=v.get(g)||null,c(m,v,b,_,null);$i(m,b)}return null}function x(v,m,g,b){for(var _=null,E=null,k=m,T=m=0,N=null;k!==null&&T<g.length;T++){k.index>T?(N=k,k=null):N=k.sibling;var A=h(v,k,g[T],b);if(A===null){k===null&&(k=N);break}e&&k&&A.alternate===null&&t(v,k),m=s(A,m,T),E===null?_=A:E.sibling=A,E=A,k=N}if(T===g.length)return n(v,k),ve&&vr(v,T),_;if(k===null){for(;T<g.length;T++)k=d(v,g[T],b),k!==null&&(m=s(k,m,T),E===null?_=k:E.sibling=k,E=k);return ve&&vr(v,T),_}for(k=r(v,k);T<g.length;T++)N=f(k,v,T,g[T],b),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?T:N.key),m=s(N,m,T),E===null?_=N:E.sibling=N,E=N);return e&&k.forEach(function(U){return t(v,U)}),ve&&vr(v,T),_}function p(v,m,g,b){var _=ls(g);if(typeof _!="function")throw Error(O(150));if(g=_.call(g),g==null)throw Error(O(151));for(var E=_=null,k=m,T=m=0,N=null,A=g.next();k!==null&&!A.done;T++,A=g.next()){k.index>T?(N=k,k=null):N=k.sibling;var U=h(v,k,A.value,b);if(U===null){k===null&&(k=N);break}e&&k&&U.alternate===null&&t(v,k),m=s(U,m,T),E===null?_=U:E.sibling=U,E=U,k=N}if(A.done)return n(v,k),ve&&vr(v,T),_;if(k===null){for(;!A.done;T++,A=g.next())A=d(v,A.value,b),A!==null&&(m=s(A,m,T),E===null?_=A:E.sibling=A,E=A);return ve&&vr(v,T),_}for(k=r(v,k);!A.done;T++,A=g.next())A=f(k,v,T,A.value,b),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?T:A.key),m=s(A,m,T),E===null?_=A:E.sibling=A,E=A);return e&&k.forEach(function(L){return t(v,L)}),ve&&vr(v,T),_}function w(v,m,g,b){if(typeof g=="object"&&g!==null&&g.type===co&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ki:e:{for(var _=g.key,E=m;E!==null;){if(E.key===_){if(_=g.type,_===co){if(E.tag===7){n(v,E.sibling),m=o(E,g.props.children),m.return=v,v=m;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===In&&bh(_)===E.type){n(v,E.sibling),m=o(E,g.props),m.ref=hs(v,E,g),m.return=v,v=m;break e}n(v,E);break}else t(v,E);E=E.sibling}g.type===co?(m=Ar(g.props.children,v.mode,b,g.key),m.return=v,v=m):(b=da(g.type,g.key,g.props,null,v.mode,b),b.ref=hs(v,m,g),b.return=v,v=b)}return i(v);case uo:e:{for(E=g.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(v,m.sibling),m=o(m,g.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=du(g,v.mode,b),m.return=v,v=m}return i(v);case In:return E=g._init,w(v,m,E(g._payload),b)}if(xs(g))return x(v,m,g,b);if(ls(g))return p(v,m,g,b);$i(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,g),m.return=v,v=m):(n(v,m),m=cu(g,v.mode,b),m.return=v,v=m),i(v)):n(v,m)}return w}var Bo=Pg(!0),Rg=Pg(!1),Aa=ir(null),ja=null,wo=null,Nd=null;function Ad(){Nd=wo=ja=null}function jd(e){var t=Aa.current;me(Aa),e._currentValue=t}function cc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){ja=e,Nd=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rt=!0),e.firstContext=null)}function _t(e){var t=e._currentValue;if(Nd!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(ja===null)throw Error(O(308));wo=e,ja.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var _r=null;function Id(e){_r===null?_r=[e]:_r.push(e)}function Og(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Id(t)):(n.next=o.next,o.next=n),t.interleaved=n,yn(e,r)}function yn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ln=!1;function Ld(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ng(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,yn(e,n)}return o=r.interleaved,o===null?(t.next=t,Id(r)):(t.next=o.next,o.next=t),r.interleaved=t,yn(e,n)}function sa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xd(e,n)}}function Sh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ia(e,t,n,r){var o=e.updateQueue;Ln=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,c=u=l=null,a=s;do{var h=a.lane,f=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,p=a;switch(h=t,f=n,p.tag){case 1:if(x=p.payload,typeof x=="function"){d=x.call(f,d,h);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=p.payload,h=typeof x=="function"?x.call(f,d,h):x,h==null)break e;d=xe({},d,h);break e;case 2:Ln=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,i|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Mr|=i,e.lanes=i,e.memoizedState=d}}function _h(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(O(191,o));o.call(r)}}}var mi={},tn=ir(mi),Qs=ir(mi),Ys=ir(mi);function Er(e){if(e===mi)throw Error(O(174));return e}function $d(e,t){switch(de(Ys,t),de(Qs,e),de(tn,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vu(t,e)}me(tn),de(tn,t)}function Wo(){me(tn),me(Qs),me(Ys)}function Ag(e){Er(Ys.current);var t=Er(tn.current),n=Vu(t,e.type);t!==n&&(de(Qs,e),de(tn,n))}function Md(e){Qs.current===e&&(me(tn),me(Qs))}var ye=ir(0);function La(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ou=[];function Dd(){for(var e=0;e<ou.length;e++)ou[e]._workInProgressVersionPrimary=null;ou.length=0}var ia=Sn.ReactCurrentDispatcher,su=Sn.ReactCurrentBatchConfig,$r=0,we=null,Oe=null,je=null,$a=!1,Os=!1,Js=0,Mb=0;function Be(){throw Error(O(321))}function Fd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Ud(e,t,n,r,o,s){if($r=s,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=e===null||e.memoizedState===null?zb:Bb,e=n(r,o),Os){s=0;do{if(Os=!1,Js=0,25<=s)throw Error(O(301));s+=1,je=Oe=null,t.updateQueue=null,ia.current=Wb,e=n(r,o)}while(Os)}if(ia.current=Ma,t=Oe!==null&&Oe.next!==null,$r=0,je=Oe=we=null,$a=!1,t)throw Error(O(300));return e}function zd(){var e=Js!==0;return Js=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?we.memoizedState=je=e:je=je.next=e,je}function Et(){if(Oe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=je===null?we.memoizedState:je.next;if(t!==null)je=t,Oe=e;else{if(e===null)throw Error(O(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},je===null?we.memoizedState=je=e:je=je.next=e}return je}function Xs(e,t){return typeof t=="function"?t(e):t}function iu(e){var t=Et(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Oe,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var c=u.lane;if(($r&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,i=r):l=l.next=d,we.lanes|=c,Mr|=c}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,zt(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,we.lanes|=s,Mr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function au(e){var t=Et(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);zt(s,t.memoizedState)||(rt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function jg(){}function Ig(e,t){var n=we,r=Et(),o=t(),s=!zt(r.memoizedState,o);if(s&&(r.memoizedState=o,rt=!0),r=r.queue,Bd(Mg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,Zs(9,$g.bind(null,n,r,o,t),void 0,null),Ie===null)throw Error(O(349));$r&30||Lg(n,t,o)}return o}function Lg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $g(e,t,n,r){t.value=n,t.getSnapshot=r,Dg(t)&&Fg(e)}function Mg(e,t,n){return n(function(){Dg(t)&&Fg(e)})}function Dg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function Fg(e){var t=yn(e,1);t!==null&&Ut(t,e,1,-1)}function Eh(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xs,lastRenderedState:e},t.queue=e,e=e.dispatch=Ub.bind(null,we,e),[t.memoizedState,e]}function Zs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ug(){return Et().memoizedState}function aa(e,t,n,r){var o=Kt();we.flags|=e,o.memoizedState=Zs(1|t,n,void 0,r===void 0?null:r)}function sl(e,t,n,r){var o=Et();r=r===void 0?null:r;var s=void 0;if(Oe!==null){var i=Oe.memoizedState;if(s=i.destroy,r!==null&&Fd(r,i.deps)){o.memoizedState=Zs(t,n,s,r);return}}we.flags|=e,o.memoizedState=Zs(1|t,n,s,r)}function kh(e,t){return aa(8390656,8,e,t)}function Bd(e,t){return sl(2048,8,e,t)}function zg(e,t){return sl(4,2,e,t)}function Bg(e,t){return sl(4,4,e,t)}function Wg(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 Vg(e,t,n){return n=n!=null?n.concat([e]):null,sl(4,4,Wg.bind(null,t,e),n)}function Wd(){}function Hg(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Kg(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qg(e,t,n){return $r&21?(zt(n,t)||(n=Xm(),we.lanes|=n,Mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=n)}function Db(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=su.transition;su.transition={};try{e(!1),t()}finally{ae=n,su.transition=r}}function Gg(){return Et().memoizedState}function Fb(e,t,n){var r=Zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qg(e))Yg(t,n);else if(n=Og(e,t,n,r),n!==null){var o=Je();Ut(n,e,r,o),Jg(n,t,r)}}function Ub(e,t,n){var r=Zn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qg(e))Yg(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,zt(a,i)){var l=t.interleaved;l===null?(o.next=o,Id(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Og(e,t,o,r),n!==null&&(o=Je(),Ut(n,e,r,o),Jg(n,t,r))}}function Qg(e){var t=e.alternate;return e===we||t!==null&&t===we}function Yg(e,t){Os=$a=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xd(e,n)}}var Ma={readContext:_t,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},zb={readContext:_t,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:kh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,aa(4194308,4,Wg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return aa(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fb.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Eh,useDebugValue:Wd,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Eh(!1),t=e[0];return e=Db.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,o=Kt();if(ve){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ie===null)throw Error(O(349));$r&30||Lg(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,kh(Mg.bind(null,r,s,e),[e]),r.flags|=2048,Zs(9,$g.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ie.identifierPrefix;if(ve){var n=pn,r=hn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Js++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Mb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Bb={readContext:_t,useCallback:Hg,useContext:_t,useEffect:Bd,useImperativeHandle:Vg,useInsertionEffect:zg,useLayoutEffect:Bg,useMemo:Kg,useReducer:iu,useRef:Ug,useState:function(){return iu(Xs)},useDebugValue:Wd,useDeferredValue:function(e){var t=Et();return qg(t,Oe.memoizedState,e)},useTransition:function(){var e=iu(Xs)[0],t=Et().memoizedState;return[e,t]},useMutableSource:jg,useSyncExternalStore:Ig,useId:Gg,unstable_isNewReconciler:!1},Wb={readContext:_t,useCallback:Hg,useContext:_t,useEffect:Bd,useImperativeHandle:Vg,useInsertionEffect:zg,useLayoutEffect:Bg,useMemo:Kg,useReducer:au,useRef:Ug,useState:function(){return au(Xs)},useDebugValue:Wd,useDeferredValue:function(e){var t=Et();return Oe===null?t.memoizedState=e:qg(t,Oe.memoizedState,e)},useTransition:function(){var e=au(Xs)[0],t=Et().memoizedState;return[e,t]},useMutableSource:jg,useSyncExternalStore:Ig,useId:Gg,unstable_isNewReconciler:!1};function At(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function dc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return(e=e._reactInternals)?Wr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),o=Zn(e),s=mn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Jn(e,s,o),t!==null&&(Ut(t,e,o,r),sa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),o=Zn(e),s=mn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Jn(e,s,o),t!==null&&(Ut(t,e,o,r),sa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=Zn(e),o=mn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Jn(e,o,r),t!==null&&(Ut(t,e,r,n),sa(t,e,r))}};function Ch(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Hs(n,r)||!Hs(o,s):!0}function Xg(e,t,n){var r=!1,o=nr,s=t.contextType;return typeof s=="object"&&s!==null?s=_t(s):(o=st(t)?Ir:Ke.current,r=t.contextTypes,s=(r=r!=null)?Uo(e,o):nr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Th(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function fc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ld(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=_t(s):(s=st(t)?Ir:Ke.current,o.context=Uo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(dc(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&il.enqueueReplaceState(o,o.state,null),Ia(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Vo(e,t){try{var n="",r=t;do n+=vx(r),r=r.return;while(r);var o=n}catch(s){o=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:o,digest:null}}function lu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Vb=typeof WeakMap=="function"?WeakMap:Map;function Zg(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fa||(Fa=!0,_c=r),hc(e,t)},n}function ev(e,t,n){n=mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){hc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){hc(e,t),typeof r!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ph(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vb;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=o1.bind(null,e,t,n),t.then(e,e))}function Rh(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 Oh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mn(-1,1),t.tag=2,Jn(n,t,1))),n.lanes|=1),e)}var Hb=Sn.ReactCurrentOwner,rt=!1;function Qe(e,t,n,r){t.child=e===null?Rg(t,null,n,r):Bo(t,e.child,n,r)}function Nh(e,t,n,r,o){n=n.render;var s=t.ref;return Co(t,o),r=Ud(e,t,n,r,s,o),n=zd(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wn(e,t,o)):(ve&&n&&Pd(t),t.flags|=1,Qe(e,t,r,o),t.child)}function Ah(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Jd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,tv(e,t,s,r,o)):(e=da(n.t
vendor: 7,784 bytes, line 40
40ype,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Hs,n(i,r)&&e.ref===t.ref)return wn(e,t,o)}return t.flags|=1,e=er(s,r),e.ref=t.ref,e.return=t,t.child=e}function tv(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Hs(s,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(rt=!0);else return t.lanes=e.lanes,wn(e,t,o)}return pc(e,t,n,r,o)}function nv(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(bo,at),at|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(bo,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,de(bo,at),at|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,de(bo,at),at|=r;return Qe(e,t,o,n),t.child}function rv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function pc(e,t,n,r,o){var s=st(n)?Ir:Ke.current;return s=Uo(t,s),Co(t,o),n=Ud(e,t,n,r,s,o),r=zd(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wn(e,t,o)):(ve&&r&&Pd(t),t.flags|=1,Qe(e,t,n,o),t.child)}function jh(e,t,n,r,o){if(st(n)){var s=!0;Ra(t)}else s=!1;if(Co(t,o),t.stateNode===null)la(e,t),Xg(t,n,r),fc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=_t(u):(u=st(n)?Ir:Ke.current,u=Uo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Th(t,i,r,u),Ln=!1;var h=t.memoizedState;i.state=h,Ia(t,r,i,o),l=t.memoizedState,a!==r||h!==l||ot.current||Ln?(typeof c=="function"&&(dc(t,n,c,r),l=t.memoizedState),(a=Ln||Ch(t,n,a,r,h,l,u))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ng(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:At(t.type,a),i.props=u,d=t.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=_t(l):(l=st(n)?Ir:Ke.current,l=Uo(t,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Th(t,i,r,l),Ln=!1,h=t.memoizedState,i.state=h,Ia(t,r,i,o);var x=t.memoizedState;a!==d||h!==x||ot.current||Ln?(typeof f=="function"&&(dc(t,n,f,r),x=t.memoizedState),(u=Ln||Ch(t,n,u,r,h,x,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,x,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,x,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),i.props=r,i.state=x,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return mc(e,t,n,r,s,o)}function mc(e,t,n,r,o,s){rv(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&yh(t,n,!1),wn(e,t,s);r=t.stateNode,Hb.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Bo(t,e.child,null,s),t.child=Bo(t,null,a,s)):Qe(e,t,a,s),t.memoizedState=r.state,o&&yh(t,n,!0),t.child}function ov(e){var t=e.stateNode;t.pendingContext?vh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vh(e,t.context,!1),$d(e,t.containerInfo)}function Ih(e,t,n,r,o){return zo(),Od(o),t.flags|=256,Qe(e,t,n,r),t.child}var gc={dehydrated:null,treeContext:null,retryLane:0};function vc(e){return{baseLanes:e,cachePool:null,transitions:null}}function sv(e,t,n){var r=t.pendingProps,o=ye.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(ye,o&1),e===null)return uc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=ul(i,r,0,null),e=Ar(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=vc(n),t.memoizedState=gc,e):Vd(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Kb(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=er(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=er(a,s):(s=Ar(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?vc(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=gc,r}return s=e.child,e=s.sibling,r=er(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Vd(e,t){return t=ul({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mi(e,t,n,r){return r!==null&&Od(r),Bo(t,e.child,null,n),e=Vd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kb(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=lu(Error(O(422))),Mi(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=ul({mode:"visible",children:r.children},o,0,null),s=Ar(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Bo(t,e.child,null,i),t.child.memoizedState=vc(i),t.memoizedState=gc,s);if(!(t.mode&1))return Mi(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(O(419)),r=lu(s,r,void 0),Mi(e,t,i,r)}if(a=(i&e.childLanes)!==0,rt||a){if(r=Ie,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,yn(e,o),Ut(r,e,o,-1))}return Yd(),r=lu(Error(O(421))),Mi(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=s1.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ut=Yn(o.nextSibling),ct=t,ve=!0,Dt=null,e!==null&&(yt[wt++]=hn,yt[wt++]=pn,yt[wt++]=Lr,hn=e.id,pn=e.overflow,Lr=t),t=Vd(t,r.children),t.flags|=4096,t)}
vendor: 5,714 bytes, line 40
40function Lh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cc(e.return,t,n)}function uu(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function iv(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Qe(e,t,r.children,n),r=ye.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lh(e,n,t);else if(e.tag===19)Lh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ye,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&La(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),uu(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&La(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}uu(t,!0,n,null,s);break;case"together":uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function la(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qb(e,t,n){switch(t.tag){case 3:ov(t),zo();break;case 5:Ag(t);break;case 1:st(t.type)&&Ra(t);break;case 4:$d(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(Aa,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?sv(e,t,n):(de(ye,ye.current&1),e=wn(e,t,n),e!==null?e.sibling:null);de(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return iv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,nv(e,t,n)}return wn(e,t,n)}var av,yc,lv,uv;av=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};yc=function(){};lv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Er(tn.current);var s=null;switch(n){case"input":o=Uu(e,o),r=Uu(e,r),s=[];break;case"select":o=xe({},o,{value:void 0}),r=xe({},r,{value:void 0}),s=[];break;case"textarea":o=Wu(e,o),r=Wu(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ta)}Hu(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ds.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ds.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&pe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};uv=function(e,t,n,r){n!==r&&(t.flags|=4)};function ps(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gb(e,t,n){var r=t.pendingProps;switch(Rd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return st(t.type)&&Pa(),We(t),null;case 3:return r=t.stateNode,Wo(),me(ot),me(Ke),Dd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(Cc(Dt),Dt=null))),yc(e,t),We(t),null;case 5:Md(t);var o=Er(Ys.current);if(n=t.type,e!==null&&t.stateNode!=null)lv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return We(t),null}if(e=Er(tn.current),Li(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;
vendor: 29,468 bytes, line 40
40switch(r[Jt]=t,r[Gs]=s,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(o=0;o<Ss.length;o++)pe(Ss[o],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Vf(r,s),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},pe("invalid",r);break;case"textarea":Kf(r,s),pe("invalid",r)}Hu(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ii(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ii(r.textContent,a,e),o=["children",""+a]):Ds.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&pe("scroll",r)}switch(n){case"input":Ci(r),Hf(r,s,!0);break;case"textarea":Ci(r),qf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ta)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Mm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Jt]=t,e[Gs]=r,av(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ku(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ss.length;o++)pe(Ss[o],e);o=r;break;case"source":pe("error",e),o=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),o=r;break;case"details":pe("toggle",e),o=r;break;case"input":Vf(e,r),o=Uu(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Kf(e,r),o=Wu(e,r),pe("invalid",e);break;default:o=r}Hu(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Um(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Dm(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fs(e,l):typeof l=="number"&&Fs(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ds.hasOwnProperty(s)?l!=null&&s==="onScroll"&&pe("scroll",e):l!=null&&pd(e,s,l,i))}switch(n){case"input":Ci(e),Hf(e,r,!1);break;case"textarea":Ci(e),qf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?So(e,!!r.multiple,s,!1):r.defaultValue!=null&&So(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ta)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return We(t),null;case 6:if(e&&t.stateNode!=null)uv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Er(Ys.current),Er(tn.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[Jt]=t,(s=r.nodeValue!==n)&&(e=ct,e!==null))switch(e.tag){case 3:Ii(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ii(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jt]=t,t.stateNode=r}return We(t),null;case 13:if(me(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&ut!==null&&t.mode&1&&!(t.flags&128))Tg(),zo(),t.flags|=98560,s=!1;else if(s=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[Jt]=t}else zo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),s=!1}else Dt!==null&&(Cc(Dt),Dt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ye.current&1?Ne===0&&(Ne=3):Yd())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Wo(),yc(e,t),e===null&&Ks(t.stateNode.containerInfo),We(t),null;case 10:return jd(t.type._context),We(t),null;case 17:return st(t.type)&&Pa(),We(t),null;case 19:if(me(ye),s=t.memoizedState,s===null)return We(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)ps(s,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=La(e),i!==null){for(t.flags|=128,ps(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ye,ye.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ce()>Ho&&(t.flags|=128,r=!0,ps(s,!1),t.lanes=4194304)}else{if(!r)if(e=La(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ps(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ve)return We(t),null}else 2*Ce()-s.renderingStartTime>Ho&&n!==1073741824&&(t.flags|=128,r=!0,ps(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ce(),t.sibling=null,n=ye.current,de(ye,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Qd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?at&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Qb(e,t){switch(Rd(t),t.tag){case 1:return st(t.type)&&Pa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wo(),me(ot),me(Ke),Dd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Md(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));zo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return Wo(),null;case 10:return jd(t.type._context),null;case 22:case 23:return Qd(),null;case 24:return null;default:return null}}var Di=!1,He=!1,Yb=typeof WeakSet=="function"?WeakSet:Set,D=null;function xo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function wc(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var $h=!1;function Jb(e,t){if(nc=Ea,e=pg(),Td(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var f;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++u===o&&(a=i),h===s&&++c===r&&(l=i),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(rc={focusedElem:e,selectionRange:n},Ea=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;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 p=x.memoizedProps,w=x.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:At(t.type,p),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(b){Ee(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=$h,$h=!1,x}function Ns(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&wc(t,n,s)}o=o.next}while(o!==r)}}function al(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function cv(e){var t=e.alternate;t!==null&&(e.alternate=null,cv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Gs],delete t[ic],delete t[jb],delete t[Ib])),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 dv(e){return e.tag===5||e.tag===3||e.tag===4}function Mh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dv(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 bc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ta));else if(r!==4&&(e=e.child,e!==null))for(bc(e,t,n),e=e.sibling;e!==null;)bc(e,t,n),e=e.sibling}function Sc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Sc(e,t,n),e=e.sibling;e!==null;)Sc(e,t,n),e=e.sibling}var $e=null,$t=!1;function Tn(e,t,n){for(n=n.child;n!==null;)fv(e,t,n),n=n.sibling}function fv(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Za,n)}catch{}switch(n.tag){case 5:He||xo(n,t);case 6:var r=$e,o=$t;$e=null,Tn(e,t,n),$e=r,$t=o,$e!==null&&($t?(e=$e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$e.removeChild(n.stateNode));break;case 18:$e!==null&&($t?(e=$e,n=n.stateNode,e.nodeType===8?nu(e.parentNode,n):e.nodeType===1&&nu(e,n),Ws(e)):nu($e,n.stateNode));break;case 4:r=$e,o=$t,$e=n.stateNode.containerInfo,$t=!0,Tn(e,t,n),$e=r,$t=o;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&wc(n,t,i),o=o.next}while(o!==r)}Tn(e,t,n);break;case 1:if(!He&&(xo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}Tn(e,t,n);break;case 21:Tn(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Tn(e,t,n),He=r):Tn(e,t,n);break;default:Tn(e,t,n)}}function Dh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yb),t.forEach(function(r){var o=i1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:$e=a.stateNode,$t=!1;break e;case 3:$e=a.stateNode.containerInfo,$t=!0;break e;case 4:$e=a.stateNode.containerInfo,$t=!0;break e}a=a.return}if($e===null)throw Error(O(160));fv(s,i,o),$e=null,$t=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ee(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)hv(t,e),t=t.sibling}function hv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Ht(e),r&4){try{Ns(3,e,e.return),al(3,e)}catch(p){Ee(e,e.return,p)}try{Ns(5,e,e.return)}catch(p){Ee(e,e.return,p)}}break;case 1:Pt(t,e),Ht(e),r&512&&n!==null&&xo(n,n.return);break;case 5:if(Pt(t,e),Ht(e),r&512&&n!==null&&xo(n,n.return),e.flags&32){var o=e.stateNode;try{Fs(o,"")}catch(p){Ee(e,e.return,p)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Lm(o,s),Ku(a,i);var u=Ku(a,s);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];c==="style"?Um(o,d):c==="dangerouslySetInnerHTML"?Dm(o,d):c==="children"?Fs(o,d):pd(o,c,d,u)}switch(a){case"input":zu(o,s);break;case"textarea":$m(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?So(o,!!s.multiple,f,!1):h!==!!s.multiple&&(s.defaultValue!=null?So(o,!!s.multiple,s.defaultValue,!0):So(o,!!s.multiple,s.multiple?[]:"",!1))}o[Gs]=s}catch(p){Ee(e,e.return,p)}}break;case 6:if(Pt(t,e),Ht(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(p){Ee(e,e.return,p)}}break;case 3:if(Pt(t,e),Ht(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ws(t.containerInfo)}catch(p){Ee(e,e.return,p)}break;case 4:Pt(t,e),Ht(e);break;case 13:Pt(t,e),Ht(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(qd=Ce())),r&4&&Dh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(He=(u=He)||c,Pt(t,e),He=u):Pt(t,e),Ht(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(d=D=c;D!==null;){switch(h=D,f=h.child,h.tag){case 0:case 11:case 14:case 15:Ns(4,h,h.return);break;case 1:xo(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(p){Ee(r,n,p)}}break;case 5:xo(h,h.return);break;case 22:if(h.memoizedState!==null){Uh(d);continue}}f!==null?(f.return=h,D=f):Uh(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Fm("display",i))}catch(p){Ee(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){Ee(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pt(t,e),Ht(e),r&4&&Dh(e);break;case 21:break;default:Pt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dv(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Fs(o,""),r.flags&=-33);var s=Mh(e);Sc(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Mh(e);bc(e,a,i);break;default:throw Error(O(161))}}catch(l){Ee(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xb(e,t,n){D=e,pv(e)}function pv(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Di;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||He;a=Di;var u=He;if(Di=i,(He=l)&&!u)for(D=o;D!==null;)i=D,l=i.child,i.tag===22&&i.memoizedState!==null?zh(o):l!==null?(l.return=i,D=l):zh(o);for(;s!==null;)D=s,pv(s),s=s.sibling;D=o,Di=a,He=u}Fh(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,D=s):Fh(e)}}function Fh(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:He||al(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!He)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:At(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&_h(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_h(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Ws(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}He||t.flags&512&&xc(t)}catch(h){Ee(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Uh(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function zh(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){Ee(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ee(t,o,l)}}var s=t.return;try{xc(t)}catch(l){Ee(t,s,l)}break;case 5:var i=t.return;try{xc(t)}catch(l){Ee(t,i,l)}}}catch(l){Ee(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var Zb=Math.ceil,Da=Sn.ReactCurrentDispatcher,Hd=Sn.ReactCurrentOwner,bt=Sn.ReactCurrentBatchConfig,ne=0,Ie=null,Te=null,Me=0,at=0,bo=ir(0),Ne=0,ei=null,Mr=0,ll=0,Kd=0,As=null,tt=null,qd=0,Ho=1/0,un=null,Fa=!1,_c=null,Xn=null,Fi=!1,Hn=null,Ua=0,js=0,Ec=null,ua=-1,ca=0;function Je(){return ne&6?Ce():ua!==-1?ua:ua=Ce()}function Zn(e){return e.mode&1?ne&2&&Me!==0?Me&-Me:$b.transition!==null?(ca===0&&(ca=Xm()),ca):(e=ae,e!==0||(e=window.event,e=e===void 0?16:sg(e.type)),e):1}function Ut(e,t,n,r){if(50<js)throw js=0,Ec=null,Error(O(185));fi(e,n,r),(!(ne&2)||e!==Ie)&&(e===Ie&&(!(ne&2)&&(ll|=n),Ne===4&&Mn(e,Me)),it(e,r),n===1&&ne===0&&!(t.mode&1)&&(Ho=Ce()+500,ol&&ar()))}function it(e,t){var n=e.callbackNode;$x(e,t);var r=_a(e,e===Ie?Me:0);if(r===0)n!==null&&Yf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yf(n),t===1)e.tag===0?Lb(Bh.bind(null,e)):Eg(Bh.bind(null,e)),Nb(function(){!(ne&6)&&ar()}),n=null;else{switch(Zm(r)){case 1:n=wd;break;case 4:n=Ym;break;case 16:n=Sa;break;case 536870912:n=Jm;break;default:n=Sa}n=Sv(n,mv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function mv(e,t){if(ua=-1,ca=0,ne&6)throw Error(O(327));var n=e.callbackNode;if(To()&&e.callbackNode!==n)return null;var r=_a(e,e===Ie?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=za(e,r);else{t=r;var o=ne;ne|=2;var s=vv();(Ie!==e||Me!==t)&&(un=null,Ho=Ce()+500,Nr(e,t));do try{n1();break}catch(a){gv(e,a)}while(!0);Ad(),Da.current=s,ne=o,Te!==null?t=0:(Ie=null,Me=0,t=Ne)}if(t!==0){if(t===2&&(o=Ju(e),o!==0&&(r=o,t=kc(e,o))),t===1)throw n=ei,Nr(e,0),Mn(e,r),it(e,Ce()),n;if(t===6)Mn(e,r);else{if(o=e.current.alternate,!(r&30)&&!e1(o)&&(t=za(e,r),t===2&&(s=Ju(e),s!==0&&(r=s,t=kc(e,s))),t===1))throw n=ei,Nr(e,0),Mn(e,r),it(e,Ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:yr(e,tt,un);break;case 3:if(Mn(e,r),(r&130023424)===r&&(t=qd+500-Ce(),10<t)){if(_a(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=sc(yr.bind(null,e,tt,un),t);break}yr(e,tt,un);break;case 4:if(Mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Ft(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zb(r/1960))-r,10<r){e.timeoutHandle=sc(yr.bind(null,e,tt,un),r);break}yr(e,tt,un);break;case 5:yr(e,tt,un);break;default:throw Error(O(329))}}}return it(e,Ce()),e.callbackNode===n?mv.bind(null,e):null}function kc(e,t){var n=As;return e.current.memoizedState.isDehydrated&&(Nr(e,t).flags|=256),e=za(e,t),e!==2&&(t=tt,tt=n,t!==null&&Cc(t)),e}function Cc(e){tt===null?tt=e:tt.push.apply(tt,e)}function e1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!zt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mn(e,t){for(t&=~Kd,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function Bh(e){if(ne&6)throw Error(O(327));To();var t=_a(e,0);if(!(t&1))return it(e,Ce()),null;var n=za(e,t);if(e.tag!==0&&n===2){var r=Ju(e);r!==0&&(t=r,n=kc(e,r))}if(n===1)throw n=ei,Nr(e,0),Mn(e,t),it(e,Ce()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yr(e,tt,un),it(e,Ce()),null}function Gd(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(Ho=Ce()+500,ol&&ar())}}function Dr(e){Hn!==null&&Hn.tag===0&&!(ne&6)&&To();var t=ne;ne|=1;var n=bt.transition,r=ae;try{if(bt.transition=null,ae=1,e)return e()}finally{ae=r,bt.transition=n,ne=t,!(ne&6)&&ar()}}function Qd(){at=bo.current,me(bo)}function Nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ob(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(Rd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pa();break;case 3:Wo(),me(ot),me(Ke),Dd();break;case 5:Md(r);break;case 4:Wo();break;case 13:me(ye);break;case 19:me(ye);break;case 10:jd(r.type._context);break;case 22:case 23:Qd()}n=n.return}if(Ie=e,Te=e=er(e.current,null),Me=at=t,Ne=0,ei=null,Kd=ll=Mr=0,tt=As=null,_r!==null){for(t=0;t<_r.length;t++)if(n=_r[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}_r=null}return e}function gv(e,t){do{var n=Te;try{if(Ad(),ia.current=Ma,$a){for(var r=we.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}$a=!1}if($r=0,je=Oe=we=null,Os=!1,Js=0,Hd.current=null,n===null||n.return===null){Ne=1,ei=t,Te=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Me,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=Rh(i);if(f!==null){f.flags&=-257,Oh(f,i,a,s,t),f.mode&1&&Ph(s,u,t),t=f,l=u;var x=t.updateQueue;if(x===null){var p=new Set;p.add(l),t.updateQueue=p}else x.add(l);break e}else{if(!(t&1)){Ph(s,u,t),Yd();break e}l=Error(O(426))}}else if(ve&&a.mode&1){var w=Rh(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Oh(w,i,a,s,t),Od(Vo(l,a));break e}}s=l=Vo(l,a),Ne!==4&&(Ne=2),As===null?As=[s]:As.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=Zg(s,l,t);Sh(s,v);break e;case 1:a=l;var m=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Xn===null||!Xn.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var b=ev(s,a,t);Sh(s,b);break e}}s=s.return}while(s!==null)}wv(n)}catch(_){t=_,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(!0)}function vv(){var e=Da.current;return Da.current=Ma,e===null?Ma:e}function Yd(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Ie===null||!(Mr&268435455)&&!(ll&268435455)||Mn(Ie,Me)}function za(e,t){var n=ne;ne|=2;var r=vv();(Ie!==e||Me!==t)&&(un=null,Nr(e,t));do try{t1();break}catch(o){gv(e,o)}while(!0);if(Ad(),ne=n,Da.current=r,Te!==null)throw Error(O(261));return Ie=null,Me=0,Ne}function t1(){for(;Te!==null;)yv(Te)}function n1(){for(;Te!==null&&!Tx();)yv(Te)}function yv(e){var t=bv(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?wv(e):Te=t,Hd.current=null}function wv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Qb(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Te=null;return}}else if(n=Gb(n,t,at),n!==null){Te=n;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Ne===0&&(Ne=5)}function yr(e,t,n){var r=ae,o=bt.transition;try{bt.transition=null,ae=1,r1(e,t,n,r)}finally{bt.transition=o,ae=r}return null}function r1(e,t,n,r){do To();while(Hn!==null);if(ne&6)throw Error(O(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Mx(e,s),e===Ie&&(Te=Ie=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Fi||(Fi=!0,Sv(Sa,function(){return To(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=bt.transition,bt.transition=null;var i=ae;ae=1;var a=ne;ne|=4,Hd.current=null,Jb(e,n),hv(n,e),_b(rc),Ea=!!nc,rc=nc=null,e.current=n,Xb(n),Px(),ne=a,ae=i,bt.transition=s}else e.current=n;if(Fi&&(Fi=!1,Hn=e,Ua=o),s=e.pendingLanes,s===0&&(Xn=null),Nx(n.stateNode),it(e,Ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Fa)throw Fa=!1,e=_c,_c=null,e;return Ua&1&&e.tag!==0&&To(),s=e.pendingLanes,s&1?e===Ec?js++:(js=0,Ec=e):js=0,ar(),null}function To(){if(Hn!==null){var e=Zm(Ua),t=bt.transition,n=ae;try{if(bt.transition=null,ae=16>e?16:e,Hn===null)var r=!1;else{if(e=Hn,Hn=null,Ua=0,ne&6)throw Error(O(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var s=D,i=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Ns(8,c,s)}var d=c.child;if(d!==null)d.return=c,D=d;else for(;D!==null;){c=D;var h=c.sibling,f=c.return;if(cv(c),c===u){D=null;break}if(h!==null){h.return=f,D=h;break}D=f}}}var x=s.alternate;if(x!==null){var p=x.child;if(p!==null){x.child=null;do{var w=p.sibling;p.sibling=null,p=w}while(p!==null)}}D=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,D=i;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ns(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,D=v;break e}D=s.return}}var m=e.current;for(D=m;D!==null;){i=D;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,D=g;else e:for(i=m;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:al(9,a)}}catch(_){Ee(a,a.return,_)}if(a===i){D=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,D=b;break e}D=a.return}}if(ne=o,ar(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Za,e)}catch{}r=!0}return r}finally{ae=n,bt.transition=t}}return!1}function Wh(e,t,n){t=Vo(n,t),t=Zg(e,t,1),e=Jn(e,t,1),t=Je(),e!==null&&(fi(e,1,t),it(e,t))}function Ee(e,t,n){if(e.tag===3)Wh(e,e,n);else for(;t!==null;){if(t.tag===3){Wh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xn===null||!Xn.has(r))){e=Vo(n,e),e=ev(t,e,1),t=Jn(t,e,1),e=Je(),t!==null&&(fi(t,1,e),it(t,e));break}}t=t.return}}function o1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&(Me&n)===n&&(Ne===4||Ne===3&&(Me&130023424)===Me&&500>Ce()-qd?Nr(e,0):Kd|=n),it(e,t)}function xv(e,t){t===0&&(e.mode&1?(t=Ri,Ri<<=1,!(Ri&130023424)&&(Ri=4194304)):t=1);var n=Je();e=yn(e,t),e!==null&&(fi(e,t,n),it(e,n))}function s1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xv(e,n)}function i1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),xv(e,n)}var bv;bv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,qb(e,t,n);rt=!!(e.flags&131072)}else rt=!1,ve&&t.flags&1048576&&kg(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;la(e,t),e=t.pendingProps;var o=Uo(t,Ke.current);Co(t,n),o=Ud(null,t,r,e,o,n);var s=zd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(r)?(s=!0,Ra(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ld(t),o.updater=il,t.stateNode=o,o._reactInternals=t,fc(t,r,e,n),t=mc(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&Pd(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(la(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=l1(r),e=At(r,e),o){case 0:t=pc(null,t,r,e,n);break e;case 1:t=jh(null,t,r,e,n);break e;case 11:t=Nh(null,t,r,e,n);break e;case 14:t=Ah(null,t,r,At(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),pc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),jh(e,t,r,o,n);case 3:e:{if(ov(t),e===null)throw Error(O(387));
vendor: 12,436 bytes, line 40
40r=t.pendingProps,s=t.memoizedState,o=s.element,Ng(e,t),Ia(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Vo(Error(O(423)),t),t=Ih(e,t,r,n,o);break e}else if(r!==o){o=Vo(Error(O(424)),t),t=Ih(e,t,r,n,o);break e}else for(ut=Yn(t.stateNode.containerInfo.firstChild),ct=t,ve=!0,Dt=null,n=Rg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zo(),r===o){t=wn(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return Ag(t),e===null&&uc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,oc(r,o)?i=null:s!==null&&oc(r,s)&&(t.flags|=32),rv(e,t),Qe(e,t,i,n),t.child;case 6:return e===null&&uc(t),null;case 13:return sv(e,t,n);case 4:return $d(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bo(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),Nh(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,de(Aa,r._currentValue),r._currentValue=i,s!==null)if(zt(s.value,i)){if(s.children===o.children&&!ot.current){t=wn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=mn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),cc(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(O(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),cc(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Co(t,n),o=_t(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=At(r,t.pendingProps),o=At(r.type,o),Ah(e,t,r,o,n);case 15:return tv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),la(e,t),t.tag=1,st(r)?(e=!0,Ra(t)):e=!1,Co(t,n),Xg(t,r,o),fc(t,r,o,n),mc(null,t,r,!0,e,n);case 19:return iv(e,t,n);case 22:return nv(e,t,n)}throw Error(O(156,t.tag))};function Sv(e,t){return Qm(e,t)}function a1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,r){return new a1(e,t,n,r)}function Jd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function l1(e){if(typeof e=="function")return Jd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gd)return 11;if(e===vd)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function da(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Jd(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case co:return Ar(n.children,o,s,t);case md:i=8,o|=8;break;case $u:return e=xt(12,n,t,o|2),e.elementType=$u,e.lanes=s,e;case Mu:return e=xt(13,n,t,o),e.elementType=Mu,e.lanes=s,e;case Du:return e=xt(19,n,t,o),e.elementType=Du,e.lanes=s,e;case Am:return ul(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Om:i=10;break e;case Nm:i=9;break e;case gd:i=11;break e;case vd:i=14;break e;case In:i=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=xt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Ar(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function ul(e,t,n,r){return e=xt(22,e,r,t),e.elementType=Am,e.lanes=n,e.stateNode={isHidden:!1},e}function cu(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function du(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function u1(e,t,n,r,o){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=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xd(e,t,n,r,o,s,i,a,l){return e=new u1(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=xt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ld(s),e}function c1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:uo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _v(e){if(!e)return nr;e=e._reactInternals;e:{if(Wr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(st(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(st(n))return _g(e,n,t)}return t}function Ev(e,t,n,r,o,s,i,a,l){return e=Xd(n,r,!0,e,o,s,i,a,l),e.context=_v(null),n=e.current,r=Je(),o=Zn(n),s=mn(r,o),s.callback=t??null,Jn(n,s,o),e.current.lanes=o,fi(e,o,r),it(e,r),e}function cl(e,t,n,r){var o=t.current,s=Je(),i=Zn(o);return n=_v(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jn(o,t,i),e!==null&&(Ut(e,o,i,s),sa(e,o,i)),i}function Ba(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 Vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zd(e,t){Vh(e,t),(e=e.alternate)&&Vh(e,t)}function d1(){return null}var kv=typeof reportError=="function"?reportError:function(e){console.error(e)};function ef(e){this._internalRoot=e}dl.prototype.render=ef.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));cl(e,t,null,null)};dl.prototype.unmount=ef.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dr(function(){cl(null,e,null,null)}),t[vn]=null}};function dl(e){this._internalRoot=e}dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=ng();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&og(e)}};function tf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hh(){}function f1(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Ba(i);s.call(u)}}var i=Ev(t,r,e,0,null,!1,!1,"",Hh);return e._reactRootContainer=i,e[vn]=i.current,Ks(e.nodeType===8?e.parentNode:e),Dr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Ba(l);a.call(u)}}var l=Xd(e,0,!1,null,null,!1,!1,"",Hh);return e._reactRootContainer=l,e[vn]=l.current,Ks(e.nodeType===8?e.parentNode:e),Dr(function(){cl(t,l,n,r)}),l}function hl(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=Ba(i);a.call(l)}}cl(t,i,e,o)}else i=f1(n,t,e,o,r);return Ba(i)}eg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bs(t.pendingLanes);n!==0&&(xd(t,n|1),it(t,Ce()),!(ne&6)&&(Ho=Ce()+500,ar()))}break;case 13:Dr(function(){var r=yn(e,1);if(r!==null){var o=Je();Ut(r,e,1,o)}}),Zd(e,1)}};bd=function(e){if(e.tag===13){var t=yn(e,134217728);if(t!==null){var n=Je();Ut(t,e,134217728,n)}Zd(e,134217728)}};tg=function(e){if(e.tag===13){var t=Zn(e),n=yn(e,t);if(n!==null){var r=Je();Ut(n,e,t,r)}Zd(e,t)}};ng=function(){return ae};rg=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Gu=function(e,t,n){switch(t){case"input":if(zu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=rl(r);if(!o)throw Error(O(90));Im(r),zu(r,o)}}}break;case"textarea":$m(e,n);break;case"select":t=n.value,t!=null&&So(e,!!n.multiple,t,!1)}};Wm=Gd;Vm=Dr;var h1={usingClientEntryPoint:!1,Events:[pi,mo,rl,zm,Bm,Gd]},ms={findFiberByHostInstance:Sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},p1={bundleType:ms.bundleType,version:ms.version,rendererPackageName:ms.rendererPackageName,rendererConfig:ms.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qm(e),e===null?null:e.stateNode},findFiberByHostInstance:ms.findFiberByHostInstance||d1,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 Ui=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ui.isDisabled&&Ui.supportsFiber)try{Za=Ui.inject(p1),en=Ui}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h1;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!tf(t))throw Error(O(200));return c1(e,t,null,n)};ht.createRoot=function(e,t){if(!tf(e))throw Error(O(299));var n=!1,r="",o=kv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Xd(e,1,!1,null,null,n,!1,r,o),e[vn]=t.current,Ks(e.nodeType===8?e.parentNode:e),new ef(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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=qm(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return Dr(e)};ht.hydrate=function(e,t,n){if(!fl(t))throw Error(O(200));return hl(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!tf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=kv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Ev(t,null,e,1,n??null,o,!1,s,i),e[vn]=t.current,Ks(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new dl(t)};ht.render=function(e,t,n){if(!fl(t))throw Error(O(200));return hl(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!fl(e))throw Error(O(40));return e._reactRootContainer?(Dr(function(){hl(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1};ht.unstable_batchedUpdates=Gd;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fl(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return hl(e,t,n,!1,r)};
40ht.version="18.3.1-next-f1338f8080-20240426";function Cv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cv)}catch(e){console.error(e)}}Cv(),Cm.exports=ht;var Vr=Cm.exports;const Tv=pm(Vr);var Pv,Kh=Vr;Pv=Kh.createRoot,Kh.hydrateRoot;const m1=1,g1=1e6;let fu=0;function v1(){return fu=(fu+1)%Number.MAX_SAFE_INTEGER,fu.toString()}const hu=new Map,qh=e=>{if(hu.has(e))return;const t=setTimeout(()=>{hu.delete(e),Is({type:"REMOVE_TOAST",toastId:e})},g1);hu.set(e,t)},y1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,m1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?qh(n):e.toasts.forEach(r=>{qh(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},fa=[];let ha={toasts:[]};function Is(e){ha=y1(ha,e),fa.forEach(t=>{t(ha)})}function w1({...e}){const t=v1(),n=o=>Is({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Is({type:"DISMISS_TOAST",toastId:t});return Is({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Rv(){const[e,t]=y.useState(ha);return y.useEffect(()=>(fa.push(t),()=>{const n=fa.indexOf(t);n>-1&&fa.splice(n,1)}),[e]),{...e,toast:w1,dismiss:n=>Is({type:"DISMISS_TOAST",toastId:n})}}function ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Gh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ov(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Gh(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Gh(e[o],null)}}}}function ke(...e){return y.useCallback(Ov(...e),e)}function gi(e,t=[]){let n=[];function r(s,i){const a=y.createContext(i),l=n.length;n=[...n,i];const u=d=>{var v;const{scope:h,children:f,...x}=d,p=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,w=y.useMemo(()=>x,Object.values(x));return S.jsx(p.Provider,{value:w,children:f})};u.displayName=s+"Provider";function c(d,h){var p;const f=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,x=y.useContext(f);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const o=()=>{const s=n.map(i=>y.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,x1(o,...t)]}function x1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ti(e){const t=S1(e),n=y.forwardRef((r,o)=>{const{children:s,...i}=r,a=y.Children.toArray(s),l=a.find(E1);if(l){const u=l.props.children,c=a.map(d=>d===l?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return S.jsx(t,{...i,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return S.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var b1=ti("Slot");function S1(e){const t=y.forwardRef((n,r)=>{const{children:o,...s}=n;if(y.isValidElement(o)){const i=C1(o),a=k1(s,o.props);return o.type!==y.Fragment&&(a.ref=r?Ov(r,i):i),y.cloneElement(o,a)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nv=Symbol("radix.slottable");function _1(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Nv,t}function E1(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nv}function k1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}
vendor: 8,801 bytes, line 40
40:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function C1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Av(e){const t=e+"CollectionProvider",[n,r]=gi(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:w,children:v}=p,m=j.useRef(null),g=j.useRef(new Map).current;return S.jsx(o,{scope:w,itemMap:g,collectionRef:m,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ti(a),u=j.forwardRef((p,w)=>{const{scope:v,children:m}=p,g=s(a,v),b=ke(w,g.collectionRef);return S.jsx(l,{ref:b,children:m})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=ti(c),f=j.forwardRef((p,w)=>{const{scope:v,children:m,...g}=p,b=j.useRef(null),_=ke(w,b),E=s(c,v);return j.useEffect(()=>(E.itemMap.set(b,{ref:b,...g}),()=>void E.itemMap.delete(b))),S.jsx(h,{[d]:"",ref:_,children:m})});f.displayName=c;function x(p){const w=s(e+"CollectionConsumer",p);return j.useCallback(()=>{const m=w.collectionRef.current;if(!m)return[];const g=Array.from(m.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((E,k)=>g.indexOf(E.ref.current)-g.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},x,r]}var T1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=T1.reduce((e,t)=>{const n=ti(`Primitive.${t}`),r=y.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jv(e,t){e&&Vr.flushSync(()=>e.dispatchEvent(t))}function Bt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function P1(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var R1="DismissableLayer",Tc="dismissableLayer.update",O1="dismissableLayer.pointerDownOutside",N1="dismissableLayer.focusOutside",Qh,Iv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pl=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=y.useContext(Iv),[c,d]=y.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),x=ke(t,k=>d(k)),p=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(w),m=c?p.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,b=m>=v,_=j1(k=>{const T=k.target,N=[...u.branches].some(A=>A.contains(T));!b||N||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},h),E=I1(k=>{const T=k.target;[...u.branches].some(A=>A.contains(T))||(s==null||s(k),i==null||i(k),k.defaultPrevented||a==null||a())},h);return P1(k=>{m===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Yh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Qh)}},[c,h,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Yh())},[c,u]),y.useEffect(()=>{const k=()=>f({});return document.addEventListener(Tc,k),()=>document.removeEventListener(Tc,k)},[]),S.jsx(le.div,{...l,ref:x,style:{pointerEvents:g?b?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,_.onPointerDownCapture)})});pl.displayName=R1;var A1="DismissableLayerBranch",Lv=y.forwardRef((e,t)=>{const n=y.useContext(Iv),r=y.useRef(null),o=ke(t,r);return y.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),S.jsx(le.div,{...e,ref:o})});Lv.displayName=A1;function j1(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){$v(O1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function I1(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=y.useRef(!1);return y.useEffect(()=>{const o=s=>{s.target&&!r.current&&$v(N1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yh(){const e=new CustomEvent(Tc);document.dispatchEvent(e)}function $v(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?jv(o,s):o.dispatchEvent(s)}var L1=pl,$1=Lv,Fe=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},M1="Portal",nf=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=y.useState(!1);Fe(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Tv.createPortal(S.jsx(le.div,{...r,ref:t}),i):null});nf.displayName=M1;function D1(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var rf=e=>{const{present:t,children:n}=e,r=F1(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),s=ke(r.ref,U1(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:s}):null};rf.displayName="Presence";function F1(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),s=y.useRef("none"),i=e?"mounted":"unmounted",[a,l]=D1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=zi(r.current);s.current=a==="mounted"?u:"none"},[a]),Fe(()=>{const u=r.current,c=o.current;if(c!==e){const h=s.current,f=zi(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Fe(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const p=zi(r.current).includes(f.animationName);if(f.target===t&&p&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=f=>{f.target===t&&(s.current=zi(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function zi(e){return(e==null?void 0:e.animationName)||"none"}function U1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z1=dd[" useInsertionEffect ".trim().toString()]||Fe;function Pc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=B1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=y.useRef(e!==void 0);y.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=y.useCallback(c=>{var d;if(a){const h=W1(c)?c(e):c;h!==e&&((d=i.current)==null||d.call(i,h))}else s(c)}
40,[a,e,s,i]);return[l,u]}function B1({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),s=y.useRef(t);return z1(()=>{s.current=t},[t]),y.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function W1(e){return typeof e=="function"}var Mv=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"}),V1="VisuallyHidden",ml=y.forwardRef((e,t)=>S.jsx(le.span,{...e,ref:t,style:{...Mv,...e.style}}));ml.displayName=V1;var H1=ml,of="ToastProvider",[sf,K1,q1]=Av("Toast"),[Dv,FO]=gi("Toast",[q1]),[G1,gl]=Dv(of),Fv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=y.useState(null),[u,c]=y.useState(0),d=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${of}\`. Expected non-empty \`string\`.`),S.jsx(sf.Provider,{scope:t,children:S.jsx(G1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>c(f=>f+1),[]),onToastRemove:y.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:i})})};Fv.displayName=of;var Uv="ToastViewport",Q1=["F8"],Rc="toast.viewportPause",Oc="toast.viewportResume",zv=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Q1,label:o="Notifications ({hotkey})",...s}=e,i=gl(Uv,n),a=K1(n),l=y.useRef(null),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=ke(t,d,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;y.useEffect(()=>{const w=v=>{var g;r.length!==0&&r.every(b=>v[b]||v.code===b)&&((g=d.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=l.current,v=d.current;if(x&&w&&v){const m=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(Rc);v.dispatchEvent(E),i.isClosePausedRef.current=!0}},g=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(Oc);v.dispatchEvent(E),i.isClosePausedRef.current=!1}},b=E=>{!w.contains(E.relatedTarget)&&g()},_=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",m),w.addEventListener("focusout",b),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",_),window.addEventListener("blur",m),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",b),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",_),window.removeEventListener("blur",m),window.removeEventListener("focus",g)}}},[x,i.isClosePausedRef]);const p=y.useCallback(({tabbingDirection:w})=>{const m=a().map(g=>{const b=g.ref.current,_=[b,...lS(b)];return w==="forwards"?_:_.reverse()});return(w==="forwards"?m.reverse():m).flat()},[a]);return y.useEffect(()=>{const w=d.current;if(w){const v=m=>{var _,E,k;const g=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!g){const T=document.activeElement,N=m.shiftKey;if(m.target===w&&N){(_=u.current)==null||_.focus();return}const L=p({tabbingDirection:N?"backwards":"forwards"}),W=L.findIndex(I=>I===T);pu(L.slice(W+1))?m.preventDefault():N?(E=u.current)==null||E.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[a,p]),S.jsxs($1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&S.jsx(Nc,{ref:u,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});pu(w)}}),S.jsx(sf.Slot,{scope:n,children:S.jsx(le.ol,{tabIndex:-1,...s,ref:h})}),x&&S.jsx(Nc,{ref:c,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});pu(w)}})]})});zv.displayName=Uv;var Bv="ToastFocusProxy",Nc=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=gl(Bv,n);return S.jsx(ml,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Nc.displayName=Bv;var vi="Toast",Y1="toast.swipeStart",J1="toast.swipeMove",X1="toast.swipeCancel",Z1="toast.swipeEnd",Wv=y.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=Pc({prop:r,defaultProp:o??!0,onChange:s,caller:vi});return S.jsx(rf,{present:n||a,children:S.jsx(nS,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Bt(e.onPause),onResume:Bt(e.onResume),onSwipeStart:ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ee(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ee(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ee(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Wv.displayName=vi;var[eS,tS]=Dv(vi,{onClose(){}}),nS=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...x}=e,p=gl(vi,n),[w,v]=y.useState(null),m=ke(t,I=>v(I)),g=y.useRef(null),b=y.useRef(null),_=o||p.duration,E=y.useRef(0),k=y.useRef(_),T=y.useRef(0),{onToastAdd:N,onToastRemove:A}=p,U=Bt(()=>{var H;(w==null?void 0:w.contains(document.activeElement))&&((H=p.viewport)==null||H.focus()),i()}),L=y.useCallback(I=>{!I||I===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(U,I))},[U]);y.useEffect(()=>{const I=p.viewport;if(I){const H=()=>{L(k.current),u==null||u()},F=()=>{const B=new Date().getTime()-E.current;k.current=k.current-B,window.clearTimeout(T.current),l==null||l()};return I.addEventListener(Rc,F),I.addEventListener(Oc,H),()=>{I.removeEventListener(Rc,F),I.removeEventListener(Oc,H)}}},[p.viewport,_,l,u,L]),y.useEffect(()=>{s&&!p.isClosePausedRef.current&&L(_)},[s,_,p.isClosePausedRef,L]),y.useEffect(()=>(N(),()=>A()),[N,A]);const W=y.useMemo(()=>w?Yv(w):null,[w]);return p.viewport?S.jsxs(S.Fragment,{children:[W&&S.jsx(rS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),S.jsx(eS,{scope:n,onClose:U,children:Vr.createPortal(S.jsx(sf.ItemSlot,{scope:n,children:S.jsx(L1,{asChild:!0,onEscapeKeyDown:ee(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||U(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(le.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...x,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ee(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:ee(e.onPointerDown,I=>{I.button===0&&(g.current={x:I.clientX,y:I.clientY})}),onPointerMove:ee(e.onPointerMove,I=>{if(!g.current)return;const H=I.clientX-g.current.x,F=I.clientY-g.current.y,B=!!b.current,C=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,$=C?R(0,H):0,V=C?0:R(0,F),z=I.pointerType==="touch"?10:2,Y={x:$,y:V},K={originalEvent:I,delta:Y};B?(b.current=Y,Bi(J1,d,K,{discrete:!1})):Jh(Y,p.swipeDirection,z)?(b.current=Y,Bi(Y1,c,K,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(H)>z||Math.abs(F)>z)&&(g.current=null)}),onPointerUp:ee(e.onPointerUp,I=>{const H=b.current,F=I.target;if(F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),b.current=null,g.current=null,H){const B=I.currentTarget,C={originalEvent:I,delta:H};Jh(H,p.swipeDirection,p.swipeThreshold)?Bi(Z1,f,C,{discrete:!0}):Bi(X1,h,C,{discrete:!0}),B.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),rS=e=>{const{__scopeToast:t,children:n,...r}=e,o=gl(vi,t),[s,i]=y.useState(!1),[a,l]=y.useState(!1);return iS(()=>i(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:S.jsx(nf,{asChild:!0,children:S.jsx(ml,{...r,children:s&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},oS="ToastTitle",Vv=y.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 40-60
40{const{__scopeToast:n,...r}=e;return S.jsx(le.div,{...r,ref:t})});Vv.displayName=oS;var sS="ToastDescription",Hv=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(le.div,{...r,ref:t})});Hv.displayName=sS;var Kv="ToastAction",qv=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(Qv,{altText:n,asChild:!0,children:S.jsx(af,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Kv}\`. Expected non-empty \`string\`.`),null)});qv.displayName=Kv;var Gv="ToastClose",af=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=tS(Gv,n);return S.jsx(Qv,{asChild:!0,children:S.jsx(le.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,o.onClose)})})});af.displayName=Gv;var Qv=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Yv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),aS(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Yv(r))}}),t}function Bi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?jv(o,s):o.dispatchEvent(s)}var Jh=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function iS(e=()=>{}){const t=Bt(e);Fe(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function aS(e){return e.nodeType===e.ELEMENT_NODE}function lS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var uS=Fv,Jv=zv,Xv=Wv,Zv=Vv,ey=Hv,ty=qv,ny=af;function ry(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ry(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function oy(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ry(e))&&(r&&(r+=" "),r+=t);return r}const Xh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zh=oy,lf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Zh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const h=Xh(c)||Xh(d);return o[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(x=>{let[p,w]=x;return Array.isArray(w)?w.includes({...s,...a}[p]):{...s,...a}[p]===w})?[...u,d,h]:u},[]);return Zh(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const cS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var dS={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 fS=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>y.createElement("svg",{ref:l,...dS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:sy("lucide",o),...a},[...i.map(([u,c])=>y.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
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 Hr=(e,t)=>
vendor: 9,952 bytes, lines 60-95
60{const n=y.forwardRef(({className:r,...o},s)=>y.createElement(fS,{ref:s,iconNode:t,className:sy(`lucide-${cS(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const hS=Hr("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
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 pS=Hr("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const iy=Hr("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const mS=Hr("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 gS=Hr("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"}]]);/**
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 vS=Hr("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
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 yS=Hr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),uf="-",wS=e=>{const t=bS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(uf);return a[0]===""&&a.length!==1&&a.shift(),ay(a,t)||xS(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},ay=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ay(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(uf);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},ep=/^\[(.+)\]$/,xS=e=>{if(ep.test(e)){const t=ep.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _S(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ac(i,r,s,t)}),r},Ac=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:tp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(SS(o)){Ac(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ac(i,tp(t,s),n,r)})})},tp=(e,t)=>{let n=e;return t.split(uf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},SS=e=>e.isThemeGetter,_S=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,ES=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},ly="!",kS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,c=0,d;for(let w=0;w<a.length;w++){let v=a[w];if(u===0){if(v===o&&(r||a.slice(w,w+s)===t)){l.push(a.slice(c,w)),c=w+s;continue}if(v==="/"){d=w;continue}}v==="["?u++:v==="]"&&u--}const h=l.length===0?a:a.substring(c),f=h.startsWith(ly),x=f?h.substring(1):h,p=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:i}):i},CS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},TS=e=>({cache:ES(e.cacheSize),parseClassName:kS(e),...wS(e)}),PS=/\s+/,RS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(PS);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let x=!!f,p=r(x?h.substring(0,f):h);if(!p){if(!x){a=u+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=u+(a.length>0?" "+a:a);continue}x=!1}const w=CS(c).join(":"),v=d?w+ly:w,m=v+p;if(s.includes(m))continue;s.push(m);const g=o(p,x);for(let b=0;b<g.length;++b){const _=g[b];s.push(v+_)}a=u+(a.length>0?" "+a:a)}return a};function OS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=uy(t))&&(r&&(r+=" "),r+=n);return r}const uy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=uy(e[r]))&&(n&&(n+=" "),n+=t);return n};function NS(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((c,d)=>d(c),e());return n=TS(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=RS(l,n);return o(l,c),c}return function(){return s(OS.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},cy=/^\[(?:([a-z-]+):)?(.+)\]$/i,AS=/^\d+\/\d+$/,jS=new Set(["px","full","screen"]),IS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LS=/\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$/,$S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,MS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sn=e=>Po(e)||jS.has(e)||AS.test(e),Pn=e=>Xo(e,"length",KS),Po=e=>!!e&&!Number.isNaN(Number(e)),mu=e=>Xo(e,"number",Po),gs=e=>!!e&&Number.isInteger(Number(e)),FS=e=>e.endsWith("%")&&Po(e.slice(0,-1)),J=e=>cy.test(e),Rn=e=>IS.test(e),US=new Set(["length","size","percentage"]),zS=e=>Xo(e,US,dy),BS=e=>Xo(e,"position",dy),WS=new Set(["image","url"]),VS=e=>Xo(e,WS,GS),HS=e=>Xo(e,"",qS),vs=()=>!0,Xo=(e,t,n)=>{const r=cy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},KS=e=>LS.test(e)&&!$S.test(e),dy=()=>!1,qS=e=>MS.test(e),GS=e=>DS.test(e),QS=()=>{const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),s=he("borderRadius"),i=he("borderSpacing"),a=he("borderWidth"),l=he("contrast"),u=he("grayscale"),c=he("hueRotate"),d=he("invert"),h=he("gap"),f=he("gradientColorStops"),x=he("gradientColorStopPositions"),p=he("inset"),w=he("margin"),v=he("opacity"),m=he("padding"),g=he("saturate"),b=he("scale"),_=he("sepia"),E=he("skew"),k=he("space"),T=he("translate"),N=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",J,t],L=()=>[J,t],W=()=>["",sn,Pn],I=()=>["auto",Po,J],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",J],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Po,J];return{cacheSize:500,separator:":",theme:{colors:[vs],spacing:[sn,Pn],blur:["none","",Rn,J],brightness:V(),borderColor:[e],borderRadius:["none","","full",Rn,J],borderSpacing:L(),borderWidth:W(),contrast:V(),grayscale:R(),hueRotate:V(),invert:R(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[FS,Pn],inset:U(),margin:U(),opacity:V(),padding:L(),saturate:V(),scale:V(),sepia:R(),skew:V(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),J]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}
vendor: 9,916 bytes, line 95
95],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gs,J]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",gs,J]}],"grid-cols":[{"grid-cols":[vs]}],"col-start-end":[{col:["auto",{span:["full",gs,J]},J]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[vs]}],"row-start-end":[{row:["auto",{span:[gs,J]},J]}],"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",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,Pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mu]}],"font-family":[{font:[vs]}],"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",J]}],"line-clamp":[{"line-clamp":["none",Po,mu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",sn,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"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:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",sn,Pn]}],"underline-offset":[{"underline-offset":["auto",sn,J]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],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",J]}],"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:[...H(),BS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},VS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[sn,J]}],"outline-w":[{outline:[sn,Pn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[sn,Pn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,HS]}],"shadow-color":[{shadow:[vs]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rn,J]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"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",J]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[gs,J]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],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",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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 95
95],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",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[sn,Pn,mu]}],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"]}}},YS=NS(QS);function Le(...e){return YS(oy(e))}const JS=uS,fy=y.forwardRef(({className:e,...t},n)=>S.jsx(Jv,{ref:n,className:Le("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}));fy.displayName=Jv.displayName;const XS=lf("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,...n},r)=>S.jsx(Xv,{ref:r,className:Le(XS({variant:t}),e),...n}));hy.displayName=Xv.displayName;const ZS=y.forwardRef(({className:e,...t},n)=>S.jsx(ty,{ref:n,className:Le("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}));ZS.displayName=ty.displayName;const py=y.forwardRef(({className:e,...t},n)=>S.jsx(ny,{ref:n,className:Le("absolute right-2 top-2 rounded-md p-1 text-foreground
95/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:S.jsx(yS,{className:"h-4 w-4"})}));py.displayName=ny.displayName;const my=y.forwardRef(({className:e,...t},n)=>S.jsx(Zv,{ref:n,className:Le("text-sm font-semibold",e),...t}));my.displayName=Zv.displayName;const gy=y.forwardRef(({className:e,...t},n)=>S.jsx(ey,{ref:n,className:Le("text-sm opacity-90",e),...t}));gy.displayName=ey.displayName;function e_(){const{toasts:e}=Rv();return S.jsxs(JS,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return S.jsxs(hy,{...s,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(my,{children:n}),r&&S.jsx(gy,{children:r})]}),o,S.jsx(py,{})]},t)}),S.jsx(fy,{})]})}var np=["light","dark"],t_="(prefers-color-scheme: dark)",n_=y.createContext(void 0),r_={setTheme:e=>{},themes:[]},o_=()=>{var e;return(e=y.useContext(n_))!=null?e:r_};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?np.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(x,p=!1,w=!0)=>{let v=i?i[x]:x,m=p?x+"|| ''":`'${v}'`,g="";return o&&w&&!p&&np.includes(x)&&(g+=`d.style.colorScheme = '${x}';`),n==="class"?p||v?g+=`c.add(${m})`:g+="null":v&&(g+=`d[s](n,${m})`),g},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${t_}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${d}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var s_=e=>{switch(e){case"success":return l_;case"info":return c_;case"warning":return u_;case"error":return d_;default:return null}},i_=Array(12).fill(0),a_=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},i_.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),l_=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),u_=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.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"})),c_=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),d_=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),f_=j.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"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h_=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};
95return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},jc=1,p_=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:jc++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
95this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],j.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(g_(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||jc++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},et=new p_,m_=(e,t)=>{let n=(t==null?void 0:t.id)||jc++;return et.addToast({title:e,...t,id:n}),n},g_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",v_=m_,y_=()=>et.toasts,w_=()=>et.getActiveToasts();Object.assign(v_,{success:et.success,info:et.info,warning:et.warning,error:et.error,custom:et.custom,message:et.message,promise:et.promise,dismiss:et.dismiss,loading:et.loading},{getHistory:y_,getToasts:w_});function x_(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}x_(`: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;
95left: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}
95: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%);
95--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%)}
96`);function Wi(e){return e.label!==void 0}var b_=3,S_="32px",__="16px",rp=4e3,E_=356,k_=14,C_=20,T_=200;function Rt(...e){return e.filter(Boolean).join(" ")}function P_(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var R_=e=>{var t,n,r,o,s,i,a,l,u,c,d;let{invert:h,toast:f,unstyled:x,interacting:p,setHeights:w,visibleToasts:v,heights:m,index:g,toasts:b,expanded:_,removeToast:E,defaultRichColors:k,closeButton:T,style:N,cancelButtonStyle:A,actionButtonStyle:U,className:L="",descriptionClassName:W="",duration:I,position:H,gap:F,loadingIcon:B,expandByDefault:C,classNames:R,icons:$,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:z}=e,[Y,K]=j.useState(null),[fe,be]=j.useState(null),[M,ie]=j.useState(!1),[Se,se]=j.useState(!1),[te,re]=j.useState(!1),[Ue,mt]=j.useState(!1),[dr,_n]=j.useState(!1),[fr,is]=j.useState(0),[qr,Nf]=j.useState(0),as=j.useRef(f.duration||I||rp),Af=j.useRef(null),hr=j.useRef(null),jw=g===0,Iw=g
96+1<=v,gt=f.type,Gr=f.dismissible!==!1,Lw=f.className||"",$w=f.descriptionClassName||"",Si=j.useMemo(()=>m.findIndex(q=>q.toastId===f.id)||0,[m,f.id]),Mw=j.useMemo(()=>{var q;return(q=f.closeButton)!=null?q:T},[f.closeButton,T]),jf=j.useMemo(()=>f.duration||I||rp,[f.duration,I]),Ml=j.useRef(0),Qr=j.useRef(0),If=j.useRef(0),Yr=j.useRef(null),[Dw,Fw]=H.split("-"),Lf=j.useMemo(()=>m.reduce((q,ue,ge)=>ge>=Si?q:q+ue.height,0),[m,Si]),$f=h_(),Uw=f.invert||h,Dl=gt==="loading";Qr.current=j.useMemo(()=>Si*F+Lf,[Si,Lf]),j.useEffect(()=>{as.current=jf},[jf]),j.useEffect(()=>{ie(!0)},[]),j.useEffect(()=>{let q=hr.current;if(q){let ue=q.getBoundingClientRect().height;return Nf(ue),w(ge=>[{toastId:f.id,height:ue,position:f.position},...ge]),()=>w(ge=>ge.filter(kt=>kt.toastId!==f.id))}},[w,f.id]),j.useLayoutEffect(()=>{if(!M)return;let q=hr.current,ue=q.style.height;q.style.height="auto";let ge=q.getBoundingClientRect().height;q.style.height=ue,Nf(ge),w(kt=>kt.find(Ct=>Ct.toastId===f.id)?kt.map(Ct=>Ct.toastId===f.id?{...Ct,height:ge}:Ct):[{toastId:f.id,height:ge,position:f.position},...kt])},[M,f.title,f.description,w,f.id]);let En=j.useCallback(()=>{se(!0),is(Qr.current),w(q=>q.filter(ue=>ue.toastId!==f.id)),setTimeout(()=>{E(f)},T_)},[f,E,w,Qr]);j.useEffect(()=>{if(f.promise&&gt==="loading"||f.duration===1/0||f.type==="loading")return;let q;return _||p||z&&$f?(()=>{if(If.current<Ml.current){let ue=new Date().getTime()-Ml.current;as.current=as.current-ue}If.current=new Date().getTime()})():as.current!==1/0&&(Ml.current=new Date().getTime(),q=setTimeout(()=>{var ue;(ue=f.onAutoClose)==null||ue.call(f,f),En()},as.current)),()=>clearTimeout(q)},[_,p,f,gt,z,$f,En]),j.useEffect(()=>{f.delete&&En()},[En,f.delete]);function zw(){var q,ue,ge;return $!=null&&$.loading?j.createElement("div",{className:Rt(R==null?void 0:R.loader,(q=f==null?void 0:f.classNames)==null?void 0:q.loader,"sonner-loader"),"data-visible":gt==="loading"},$.loading):B?j.createElement("div",{className:Rt(R==null?void 0:R.loader,(ue=f==null?void 0:f.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":gt==="loading"},B):j.createElement(a_,{className:Rt(R==null?void 0:R.loader,(ge=f==null?void 0:f.classNames)==null?void 0:ge.loader),visible:gt==="loading"})}return j.createElement("li",{tabIndex:0,ref:hr,className:Rt(L,Lw,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[gt],(n=f==null?void 0:f.classNames)==null?void 0:n[gt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":M,"data-promise":!!f.promise,"data-swiped":dr,"data-removed":Se,"data-visible":Iw,"data-y-position":Dw,"data-x-position":Fw,"data-index":g,"data-front":jw,"data-swiping":te,"data-dismissible":Gr,"data-type":gt,"data-invert":Uw,"data-swipe-out":Ue,"data-swipe-direction":fe,"data-expanded":!!(_||C&&M),style:{"--index":g,"--toasts-before":g,"--z-index":b.length-g,"--offset":`${Se?fr:Qr.current}px`,"--initial-height":C?"auto":`${qr}px`,...N,...f.style},onDragEnd:()=>{re(!1),K(null),Yr.current=null},onPointerDown:q=>{Dl||!Gr||(Af.current=new Date,is(Qr.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(re(!0),Yr.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,ue,ge,kt;if(Ue||!Gr)return;Yr.current=null;let Ct=Number(((q=hr.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),kn=Number(((ue=hr.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pr=new Date().getTime()-((ge=Af.current)==null?void 0:ge.getTime()),Tt=Y==="x"?Ct:kn,Cn=Math.abs(Tt)/pr;if(Math.abs(Tt)>=C_||Cn>.11){is(Qr.current),(kt=f.onDismiss)==null||kt.call(f,f),be(Y==="x"?Ct>0?"right":"left":kn>0?"down":"up"),En(),mt(!0),_n(!1);return}re(!1),K(null)},onPointerMove:q=>{var ue,ge,kt,Ct;if(!Yr.current||!Gr||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;let kn=q.clientY-Yr.current.y,pr=q.clientX-Yr.current.x,Tt=(ge=e.swipeDirections)!=null?ge:P_(H);!Y&&(Math.abs(pr)>1||Math.abs(kn)>1)&&K(Math.abs(pr)>Math.abs(kn)?"x":"y");let Cn={x:0,y:0};Y==="y"?(Tt.includes("top")||Tt.includes("bottom"))&&(Tt.includes("top")&&kn<0||Tt.includes("bottom")&&kn>0)&&(Cn.y=kn):Y==="x"&&(Tt.includes("left")||Tt.includes("right"))&&(Tt.includes("left")&&pr<0||Tt.includes("right")&&pr>0)&&(Cn.x=pr),(Math.abs(Cn.x)>0||Math.abs(Cn.y)>0)&&_n(!0),(kt=hr.current)==null||kt.style.setProperty("--swipe-amount-x",`${Cn.x}px`),(Ct=hr.current)==null||Ct.style.setProperty("--swipe-amount-y",`${Cn.y}px`)}},Mw&&!f.jsx?j.createElement("button",{"aria-label":V,"data-disabled":Dl,"data-close-button":!0,onClick:Dl||!Gr?()=>{}:()=>{var q;En(),(q=f.onDismiss)==null||q.call(f,f)},className:Rt(R==null?void 0:R.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=$==null?void 0:$.close)!=null?s:f_):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:j.createElement(j.Fragment,null,gt||f.icon||f.promise?j.createElement("div",{"data-icon":"",className:Rt(R==null?void 0:R.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||zw():null,f.type!=="loading"?f.icon||($==null?void 0:$[gt])||s_(gt):null):null,j.createElement("div",{"data-content":"",className:Rt(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},j.createElement("div",{"data-title":"",className:Rt(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?j.createElement("div",{"data-description":"",className:Rt(W,$w,R==null?void 0:R.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&Wi(f.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:q=>{var ue,ge;Wi(f.cancel)&&Gr&&((ge=(ue=f.cancel).onClick)==null||ge.call(ue,q),En())},className:Rt(R==null?void 0:R.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&Wi(f.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||U,onClick:q=>{var ue,ge;Wi(f.action)&&((ge=(ue=f.action).onClick)==null||ge.call(ue,q),!q.defaultPrevented&&En())},className:Rt(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};
vendor: 5,114 bytes, line 96
96function op(){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 O_(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?__:S_;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var N_=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:h,style:f,visibleToasts:x=b_,toastOptions:p,dir:w=op(),gap:v=k_,loadingIcon:m,icons:g,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:_}=e,[E,k]=j.useState([]),T=j.useMemo(()=>Array.from(new Set([r].concat(E.filter(z=>z.position).map(z=>z.position)))),[E,r]),[N,A]=j.useState([]),[U,L]=j.useState(!1),[W,I]=j.useState(!1),[H,F]=j.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=j.useRef(null),C=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=j.useRef(null),$=j.useRef(!1),V=j.useCallback(z=>{k(Y=>{var K;return(K=Y.find(fe=>fe.id===z.id))!=null&&K.delete||et.dismiss(z.id),Y.filter(({id:fe})=>fe!==z.id)})},[]);return j.useEffect(()=>et.subscribe(z=>{if(z.dismiss){k(Y=>Y.map(K=>K.id===z.id?{...K,delete:!0}:K));return}setTimeout(()=>{Tv.flushSync(()=>{k(Y=>{let K=Y.findIndex(fe=>fe.id===z.id);return K!==-1?[...Y.slice(0,K),{...Y[K],...z},...Y.slice(K+1)]:[z,...Y]})})})}),[]),j.useEffect(()=>{if(c!=="system"){F(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Y})=>{F(Y?"dark":"light")})}catch{z.addListener(({matches:K})=>{try{F(K?"dark":"light")}catch(fe){console.error(fe)}})}},[c]),j.useEffect(()=>{E.length<=1&&L(!1)},[E]),j.useEffect(()=>{let z=Y=>{var K,fe;o.every(be=>Y[be]||Y.code===be)&&(L(!0),(K=B.current)==null||K.focus()),Y.code==="Escape"&&(document.activeElement===B.current||(fe=B.current)!=null&&fe.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),j.useEffect(()=>{if(B.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,$.current=!1)}},[B.current]),j.createElement("section",{ref:t,"aria-label":`${b} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((z,Y)=>{var K;let[fe,be]=z.split("-");return E.length?j.createElement("ol",{key:z,dir:w==="auto"?op():w,tabIndex:-1,ref:B,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":fe,"data-lifted":U&&E.length>1&&!s,"data-x-position":be,style:{"--front-toast-height":`${((K=N[0])==null?void 0:K.height)||0}px`,"--width":`${E_}px`,"--gap":`${v}px`,...f,...O_(l,u)},onBlur:M=>{$.current&&!M.currentTarget.contains(M.relatedTarget)&&($.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||$.current||($.current=!0,R.current=M.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{W||L(!1)},onDragEnd:()=>L(!1),onPointerDown:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},E.filter(M=>!M.position&&Y===0||M.position===z).map((M,ie)=>{var Se,se;return j.createElement(R_,{key:M.id,icons:g,index:ie,toast:M,defaultRichColors:d,duration:(Se=p==null?void 0:p.duration)!=null?Se:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:x,closeButton:(se=p==null?void 0:p.closeButton)!=null?se:i,interacting:W,position:z,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:V,toasts:E.filter(te=>te.position==M.position),heights:N.filter(te=>te.position==M.position),setHeights:A,expandByDefault:s,gap:v,loadingIcon:m,expanded:U,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const A_=({...e})=>{const{theme:t="system"}=o_();return S.jsx(N_,{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})};
vendor: 12,188 bytes, line 96
96var j_=dd[" useId ".trim().toString()]||(()=>{}),I_=0;function cf(e){const[t,n]=y.useState(j_());return Fe(()=>{n(r=>r??String(I_++))},[e]),t?`radix-${t}`:""}const L_=["top","right","bottom","left"],rr=Math.min,lt=Math.max,Wa=Math.round,Vi=Math.floor,nn=e=>({x:e,y:e}),$_={left:"right",right:"left",bottom:"top",top:"bottom"},M_={start:"end",end:"start"};function Ic(e,t,n){return lt(e,rr(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function bn(e){return e.split("-")[0]}function Zo(e){return e.split("-")[1]}function df(e){return e==="x"?"y":"x"}function ff(e){return e==="y"?"height":"width"}const D_=new Set(["top","bottom"]);function Zt(e){return D_.has(bn(e))?"y":"x"}function hf(e){return df(Zt(e))}function F_(e,t,n){n===void 0&&(n=!1);const r=Zo(e),o=hf(e),s=ff(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Va(i)),[i,Va(i)]}function U_(e){const t=Va(e);return[Lc(e),t,Lc(t)]}function Lc(e){return e.replace(/start|end/g,t=>M_[t])}const sp=["left","right"],ip=["right","left"],z_=["top","bottom"],B_=["bottom","top"];function W_(e,t,n){switch(e){case"top":case"bottom":return n?t?ip:sp:t?sp:ip;case"left":case"right":return t?z_:B_;default:return[]}}function V_(e,t,n,r){const o=Zo(e);let s=W_(bn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Lc)))),s}function Va(e){return e.replace(/left|right|bottom|top/g,t=>$_[t])}function H_(e){return{top:0,right:0,bottom:0,left:0,...e}}function vy(e){return typeof e!="number"?H_(e):{top:e,right:e,bottom:e,left:e}}function Ha(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ap(e,t,n){let{reference:r,floating:o}=e;const s=Zt(t),i=hf(t),a=ff(i),l=bn(t),u=s==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Zo(t)){case"start":f[i]-=h*(n&&u?-1:1);break;case"end":f[i]+=h*(n&&u?-1:1);break}return f}const K_=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ap(u,r,l),h=r,f={},x=0;for(let p=0;p<a.length;p++){const{name:w,fn:v}=a[p],{x:m,y:g,data:b,reset:_}=await v({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});c=m??c,d=g??d,f={...f,[w]:{...f[w],...b}},_&&x<=50&&(x++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:c,y:d}=ap(u,h,l)),p=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:f}};async function ni(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=xn(t,e),x=vy(f),w=a[h?d==="floating"?"reference":"floating":d],v=Ha(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),m=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},_=Ha(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:g,strategy:l}):m);return{top:(v.top-_.top+x.top)/b.y,bottom:(_.bottom-v.bottom+x.bottom)/b.y,left:(v.left-_.left+x.left)/b.x,right:(_.right-v.right+x.right)/b.x}}const q_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=xn(e,t)||{};if(u==null)return{};const d=vy(c),h={x:n,y:r},f=hf(o),x=ff(f),p=await i.getDimensions(u),w=f==="y",v=w?"top":"left",m=w?"bottom":"right",g=w?"clientHeight":"clientWidth",b=s.reference[x]+s.reference[f]-h[f]-s.floating[x],_=h[f]-s.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=E?E[g]:0;(!k||!await(i.isElement==null?void 0:i.isElement(E)))&&(k=a.floating[g]||s.floating[x]);const T=b/2-_/2,N=k/2-p[x]/2-1,A=rr(d[v],N),U=rr(d[m],N),L=A,W=k-p[x]-U,I=k/2-p[x]/2+T,H=Ic(L,I,W),F=!l.arrow&&Zo(o)!=null&&I!==H&&s.reference[x]/2-(I<L?A:U)-p[x]/2<0,B=F?I<L?I-L:I-W:0;return{[f]:h[f]+B,data:{[f]:H,centerOffset:I-H-B,...F&&{alignmentOffset:B}},reset:F}}}),G_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...w}=xn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=bn(o),m=Zt(a),g=bn(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(g||!p?[Va(a)]:U_(a)),E=x!=="none";!h&&E&&_.push(...V_(a,p,x,b));const k=[a,..._],T=await ni(t,w),N=[];let A=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&N.push(T[v]),d){const I=F_(o,i,b);N.push(T[I[0]],T[I[1]])}if(A=[...A,{placement:o,overflows:N}],!N.every(I=>I<=0)){var U,L;const I=(((U=s.flip)==null?void 0:U.index)||0)+1,H=k[I];if(H&&(!(d==="alignment"?m!==Zt(H):!1)||A.every(C=>C.overflows[0]>0&&Zt(C.placement)===m)))return{data:{index:I,overflows:A},reset:{placement:H}};let F=(L=A.filter(B=>B.overflows[0]<=0).sort((B,C)=>B.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(f){case"bestFit":{var W;const B=(W=A.filter(C=>{if(E){const R=Zt(C.placement);return R===m||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,$)=>R+$,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:W[0];B&&(F=B);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function lp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function up(e){return L_.some(t=>e[t]>=0)}const Q_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xn(e,t);switch(r){case"referenceHidden":{const s=await ni(t,{...o,elementContext:"reference"}),i=lp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:up(i)}}}case"escaped":{const s=await ni(t,{...o,altBoundary:!0}),i=lp(s,n.floating);return{data:{escapedOffsets:i,escaped:up(i)}}}default:return{}}}}},yy=new Set(["left","top"]);async function Y_(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=bn(n),a=Zo(n),l=Zt(n)==="y",u=yy.has(i)?-1:1,c=s&&l?-1:1,d=xn(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const J_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Y_(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},X_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:v,y:m}=w;return{x:v,y:m}}},...l}=xn(e,t),u={x:n,y:r},c=await ni(t,l),d=Zt(bn(o)),h=df(d);let f=u[h],x=u[d];if(s){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",m=f+c[w],g=f-c[v];f=Ic(m,f,g)}if(i){const w=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=x+c[w],g=x-c[v];x=Ic(m,x,g)}const p=a.fn({...t,[h]:f,[d]:x});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:s,[d]:i}}}}}},Z_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=xn(e,t),c={x:n,y:r},d=Zt(o),h=df(d);let f=c[h],x=c[d];const p=xn(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const g=h==="y"?"height":"width",b=s.reference[h]-s.floating[g]+w.mainAxis,_=s.reference[h]+s.reference[g]-w.mainAxis;f<b?f=b:f>_&&(f=_)}if(u){var v,m;const g=h==="y"?"width":"height",b=yy.has(bn(o)),_=s.reference[d]-s.floating[g]+(b&&((v=i.offset)==null?void 0:v[d])||0)+(b?0:w.crossAxis),E=s.reference[d]+s.reference[g]+(b?0:((m=i.offset)==null?void 0:m[d])||0)-(b?w.crossAxis:0);x<_?x=_:x>E&&(x=E)}return{[h]:f,[d]:x}}}},eE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=xn(e,t),c=await ni(t,u),d=bn(o),h=Zo(o),f=Zt(o)==="y",{width:x,height:p}=s.floating;let w,v;d==="top"||d==="bottom"?(w=d,v=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,w=h==="end"?"top":"bottom");const m=p-c.top-c.bottom,g=x-c.left-c.right,b=rr(p-c[w],m),_=rr(x-c[v],g),E=!t.middlewareData.shift;let k=b,T=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=m),E&&!h){const A=lt(c.left,0),U=lt(c.right,0),L=lt(c.top,0),W=lt(c.bottom,0);f?T=x-2*(A!==0||U!==0?A+U:lt(c.left,c.right)):k=p-2*(L!==0||W!==0?L+W:lt(c.top,c.bottom))}await l({...t,availableWidth:T,availableHeight:k});const N=await i.getDimensions(a.floating);return x!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function vl(){return typeof window<"u"}function es(e){return wy(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(wy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wy(e){return vl()?e instanceof Node||e instanceof dt(e).Node:!1}function Wt(e){return vl()?e instanceof Element||e instanceof dt(e).Element:!1}function rn(e){return vl()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function cp(e){return!vl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const tE=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!tE.has(o)}const nE=new Set(["table","td","th"]);function rE(e){return nE.has(es(e))}const oE=[":popover-open",":modal"];function yl(e){return oE.some(t=>{try{return e.matches(t)}catch{return!1}})}const sE=["transform","translate","scale","rotate","perspective"],iE=["transform","translate","scale","rotate","perspective","filter"],aE=["paint","layout","strict","content"];function pf(e){const t=mf(),n=Wt(e)?Vt(e):e;return sE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||iE.some(r=>(n.willChange||"").includes(r))||aE.some(r=>(n.contain||"").includes(r))}function lE(e){let t=or(e);for(;rn(t)&&!Ko(t);){if(pf(t))return t;if(yl(t))return null;t=or(t)}return null}function mf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uE=new Set(["html","body","#document"]);function Ko(e){return uE.has(es(e))}function Vt(e){return dt(e).getComputedStyle(e)}function wl(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function or(e){if(es(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cp(e)&&e.host||on(e);return cp(t)?t.host:t}function xy(e){const t=or(e);return Ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&yi(t)?t:xy(t)}function ri(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=xy(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=dt(o);if(s){const a=$c(i);
vendor: 4,772 bytes, line 96
96return t.concat(i,i.visualViewport||[],yi(o)?o:[],a&&n?ri(a):[])}return t.concat(o,ri(o,[],n))}function $c(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function by(e){const t=Vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Wa(n)!==s||Wa(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function gf(e){return Wt(e)?e:e.contextElement}function Ro(e){const t=gf(e);if(!rn(t))return nn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=by(t);let i=(s?Wa(n.width):n.width)/r,a=(s?Wa(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const cE=nn(0);function Sy(e){const t=dt(e);return!mf()||!t.visualViewport?cE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dt(e)?!1:t}function Fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=gf(e);let i=nn(1);t&&(r?Wt(r)&&(i=Ro(r)):i=Ro(e));const a=dE(s,n,r)?Sy(s):nn(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(s){const h=dt(s),f=r&&Wt(r)?dt(r):r;let x=h,p=$c(x);for(;p&&r&&f!==x;){const w=Ro(p),v=p.getBoundingClientRect(),m=Vt(p),g=v.left+(p.clientLeft+parseFloat(m.paddingLeft))*w.x,b=v.top+(p.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=g,u+=b,x=dt(p),p=$c(x)}}return Ha({width:c,height:d,x:l,y:u})}function vf(e,t){const n=wl(e).scrollLeft;return t?t.left+n:Fr(on(e)).left+n}function _y(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:vf(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function fE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=on(r),a=t?yl(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=nn(1);const c=nn(0),d=rn(r);if((d||!d&&!s)&&((es(r)!=="body"||yi(i))&&(l=wl(r)),rn(r))){const f=Fr(r);u=Ro(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=i&&!d&&!s?_y(i,l,!0):nn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function hE(e){return Array.from(e.getClientRects())}function pE(e){const t=on(e),n=wl(e),r=e.ownerDocument.body,o=lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+vf(e);const a=-n.scrollTop;return Vt(r).direction==="rtl"&&(i+=lt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function mE(e,t){const n=dt(e),r=on(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=mf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const gE=new Set(["absolute","fixed"]);function vE(e,t){const n=Fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=rn(e)?Ro(e):nn(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function dp(e,t,n){let r;if(t==="viewport")r=mE(e,n);else if(t==="document")r=pE(on(e));else if(Wt(t))r=vE(t,n);else{const o=Sy(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ha(r)}function Ey(e,t){const n=or(e);return n===t||!Wt(n)||Ko(n)?!1:Vt(n).position==="fixed"||Ey(n,t)}function yE(e,t){const n=t.get(e);if(n)return n;let r=ri(e,[],!1).filter(a=>Wt(a)&&es(a)!=="body"),o=null;const s=Vt(e).position==="fixed";let i=s?or(e):e;for(;Wt(i)&&!Ko(i);){const a=Vt(i),l=pf(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&gE.has(o.position)||yi(i)&&!l&&Ey(e,i))?r=r.filter(c=>c!==i):o=a,i=or(i)}return t.set(e,r),r}function wE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?yl(t)?[]:yE(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const d=dp(t,c,o);return u.top=lt(d.top,u.top),u.right=rr(d.right,u.right),u.bottom=rr(d.bottom,u.bottom),u.left=lt(d.left,u.left),u},dp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function xE(e){const{width:t,height:n}=by(e);return{width:t,height:n}}function bE(e,t,n){const r=rn(t),o=on(t),s=n==="fixed",i=Fr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=nn(0);function u(){l.x=vf(o)}if(r||!r&&!s)if((es(t)!=="body"||yi(o))&&(a=wl(t)),r){const f=Fr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const c=o&&!r&&!s?_y(o,a):nn(0),d=i.left+a.scrollLeft-l.x-c.x,h=i.top+a.scrollTop-l.y-c.y;return{x:d,y:h,width:i.width,height:i.height}}function gu(e){return Vt(e).position==="static"}function fp(e,t){if(!rn(e)||Vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function ky(e,t){const n=dt(e);
vendor: 9,138 bytes, line 96
96if(yl(e))return n;if(!rn(e)){let o=or(e);for(;o&&!Ko(o);){if(Wt(o)&&!gu(o))return o;o=or(o)}return n}let r=fp(e,t);for(;r&&rE(r)&&gu(r);)r=fp(r,t);return r&&Ko(r)&&gu(r)&&!pf(r)?n:r||lE(e)||n}const SE=async function(e){const t=this.getOffsetParent||ky,n=this.getDimensions,r=await n(e.floating);return{reference:bE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _E(e){return Vt(e).direction==="rtl"}const EE={convertOffsetParentRelativeRectToViewportRelativeRect:fE,getDocumentElement:on,getClippingRect:wE,getOffsetParent:ky,getElementRects:SE,getClientRects:hE,getDimensions:xE,getScale:Ro,isElement:Wt,isRTL:_E};function Cy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kE(e,t){let n=null,r;const o=on(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(a||t(),!h||!f)return;const x=Vi(d),p=Vi(o.clientWidth-(c+h)),w=Vi(o.clientHeight-(d+f)),v=Vi(c),g={rootMargin:-x+"px "+-p+"px "+-w+"px "+-v+"px",threshold:lt(0,rr(1,l))||1};let b=!0;function _(E){const k=E[0].intersectionRatio;if(k!==l){if(!b)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Cy(u,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return i(!0),s}function CE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=gf(e),c=o||s?[...u?ri(u):[],...ri(t)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=u&&a?kE(u,n):null;let h=-1,f=null;i&&(f=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=f)==null||g.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let x,p=l?Fr(e):null;l&&w();function w(){const v=Fr(e);p&&!Cy(p,v)&&n(),p=v,x=requestAnimationFrame(w)}return n(),()=>{var v;c.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(x)}}const TE=J_,PE=X_,RE=G_,OE=eE,NE=Q_,hp=q_,AE=Z_,jE=(e,t,n)=>{const r=new Map,o={platform:EE,...n},s={...o.platform,_c:r};return K_(e,t,{...o,platform:s})};var IE=typeof document<"u",LE=function(){},pa=IE?y.useLayoutEffect:LE;function Ka(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ka(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ka(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ty(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pp(e,t){const n=Ty(e);return Math.round(t*n)/n}function vu(e){const t=y.useRef(e);return pa(()=>{t.current=e}),t}function $E(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=y.useState(r);Ka(h,r)||f(r);const[x,p]=y.useState(null),[w,v]=y.useState(null),m=y.useCallback(C=>{C!==E.current&&(E.current=C,p(C))},[]),g=y.useCallback(C=>{C!==k.current&&(k.current=C,v(C))},[]),b=s||x,_=i||w,E=y.useRef(null),k=y.useRef(null),T=y.useRef(c),N=l!=null,A=vu(l),U=vu(o),L=vu(u),W=y.useCallback(()=>{if(!E.current||!k.current)return;const C={placement:t,strategy:n,middleware:h};U.current&&(C.platform=U.current),jE(E.current,k.current,C).then(R=>{const $={...R,isPositioned:L.current!==!1};I.current&&!Ka(T.current,$)&&(T.current=$,Vr.flushSync(()=>{d($)}))})},[h,t,n,U,L]);pa(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[u]);const I=y.useRef(!1);pa(()=>(I.current=!0,()=>{I.current=!1}),[]),pa(()=>{if(b&&(E.current=b),_&&(k.current=_),b&&_){if(A.current)return A.current(b,_,W);W()}},[b,_,W,A,N]);const H=y.useMemo(()=>({reference:E,floating:k,setReference:m,setFloating:g}),[m,g]),F=y.useMemo(()=>({reference:b,floating:_}),[b,_]),B=y.useMemo(()=>{const C={position:n,left:0,top:0};if(!F.floating)return C;const R=pp(F.floating,c.x),$=pp(F.floating,c.y);return a?{...C,transform:"translate("+R+"px, "+$+"px)",...Ty(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:$}},[n,a,F.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:W,refs:H,elements:F,floatingStyles:B}),[c,W,H,F,B])}const ME=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hp({element:r.current,padding:o}).fn(n):{}:r?hp({element:r,padding:o}).fn(n):{}}}},DE=(e,t)=>({...TE(e),options:[e,t]}),FE=(e,t)=>({...PE(e),options:[e,t]}),UE=(e,t)=>({...AE(e),options:[e,t]}),zE=(e,t)=>({...RE(e),options:[e,t]}),BE=(e,t)=>({...OE(e),options:[e,t]}),WE=(e,t)=>({...NE(e),options:[e,t]}),VE=(e,t)=>({...ME(e),options:[e,t]});var HE="Arrow",Py=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return S.jsx(le.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});Py.displayName=HE;var KE=Py;function qE(e){const[t,n]=y.useState(void 0);return Fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var yf="Popper",[Ry,xl]=gi(yf),[GE,Oy]=Ry(yf),Ny=e=>{const{__scopePopper:t,children:n}=e,[r,o]=y.useState(null);return S.jsx(GE,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ny.displayName=yf;var Ay="PopperAnchor",jy=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Oy(Ay,n),i=y.useRef(null),a=ke(t,i);return y.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:S.jsx(le.div,{...o,ref:a})});jy.displayName=Ay;var wf="PopperContent",[QE,YE]=Ry(wf),Iy=y.forwardRef((e,t)=>{var M,ie,Se,se,te,re;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:x,...p}=e,w=Oy(wf,n),[v,m]=y.useState(null),g=ke(t,Ue=>m(Ue)),[b,_]=y.useState(null),E=qE(b),k=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,N=r+(s!=="center"?"-"+s:""),A=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},U=Array.isArray(u)?u:[u],L=U.length>0,W={padding:A,boundary:U.filter(XE),altBoundary:L},{refs:I,floatingStyles:H,placement:F,isPositioned:B,middlewareData:C}=$E({strategy:"fixed",placement:N,whileElementsMounted:(...Ue)=>CE(...Ue,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[DE({mainAxis:o+T,alignmentAxis:i}),l&&FE({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?UE():void 0,...W}),l&&zE({...W}),BE({...W,apply:({elements:Ue,rects:mt,availableWidth:dr,availableHeight:_n})=>{const{width:fr,height:is}=mt.reference,qr=Ue.floating.style;qr.setProperty("--radix-popper-available-width",`${dr}px`),qr.setProperty("--radix-popper-available-height",`${_n}px`),qr.setProperty("--radix-popper-anchor-width",`${fr}px`),qr.setProperty("--radix-popper-anchor-height",`${is}px`)}}),b&&VE({element:b,padding:a}),ZE({arrowWidth:k,arrowHeight:T}),h&&WE({strategy:"referenceHidden",...W})]}),[R,$]=My(F),V=Bt(x);Fe(()=>{B&&(V==null||V())},[B,V]);const z=(M=C.arrow)==null?void 0:M.x,Y=(ie=C.arrow)==null?void 0:ie.y,K=((Se=C.arrow)==null?void 0:Se.centerOffset)!==0,[fe,be]=y.useState();return Fe(()=>{v&&be(window.getComputedStyle(v).zIndex)},[v]),S.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:B?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(se=C.transformOrigin)==null?void 0:se.x,(te=C.transformOrigin)==null?void 0:te.y].join(" "),...((re=C.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(QE,{scope:n,placedSide:R,onArrowChange:_,arrowX:z,arrowY:Y,shouldHideArrow:K,children:S.jsx(le.div,{"data-side":R,"data-align":$,...p,ref:g,style:{...p.style,animation:B?void 0:"none"}})})})});Iy.displayName=wf;var Ly="PopperArrow",JE={top:"bottom",right:"left",bottom:"top",left:"r
96ight"},$y=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=YE(Ly,r),i=JE[s.placedSide];return S.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:S.jsx(KE,{...o,ref:n,style:{...o.style,display:"block"}})})});$y.displayName=Ly;function XE(e){return e!==null}var ZE=e=>({name:"transformOrigin",options:e,fn(t){var w,v,m;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=My(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,f=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let x="",p="";return u==="bottom"?(x=i?d:`${h}px`,p=`${-l}px`):u==="top"?(x=i?d:`${h}px`,p=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,p=i?d:`${f}px`):u==="left"&&(x=`${r.floating.width+l}px`,p=i?d:`${f}px`),{data:{x,y:p}}}});function My(e){const[t,n="center"]=e.split("-");return[t,n]}var ek=Ny,Dy=jy,Fy=Iy,Uy=$y,[bl,UO]=gi("Tooltip",[xl]),xf=xl(),zy="TooltipProvider",tk=700,mp="tooltip.open",[nk,By]=bl(zy),Wy=e=>{const{__scopeTooltip:t,delayDuration:n=tk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),S.jsx(nk,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Wy.displayName=zy;var Vy="Tooltip",[zO,Sl]=bl(Vy),Mc="TooltipTrigger",rk=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Sl(Mc,n),s=By(Mc,n),i=xf(n),a=y.useRef(null),l=ke(t,a,o.onTriggerChange),u=y.useRef(!1),c=y.useRef(!1),d=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),S.jsx(Dy,{asChild:!0,...i,children:S.jsx(le.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ee(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ee(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ee(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ee(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ee(e.onBlur,o.onClose),onClick:ee(e.onClick,o.onClose)})})});rk.displayName=Mc;var ok="TooltipPortal",[BO,sk]=bl(ok,{forceMount:void 0}),qo="TooltipContent",Hy=y.forwardRef((e,t)=>{const n=sk(qo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Sl(qo,e.__scopeTooltip);return S.jsx(rf,{present:r||i.open,children:i.disableHoverableContent?S.jsx(Ky,{side:o,...s,ref:t}):S.jsx(ik,{side:o,...s,ref:t})})}),ik=y.forwardRef((e,t)=>{const n=Sl(qo,e.__scopeTooltip),r=By(qo,e.__scopeTooltip),o=y.useRef(null),s=ke(t,o),[i,a]=y.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,h=y.useCallback(()=>{a(null),d(!1)},[d]),f=y.useCallback((x,p)=>{const w=x.currentTarget,v={x:x.clientX,y:x.clientY},m=dk(v,w.getBoundingClientRect()),g=fk(v,m),b=hk(p.getBoundingClientRect()),_=mk([...g,...b]);a(_),d(!0)},[d]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(l&&c){const x=w=>f(w,c),p=w=>f(w,l);return l.addEventListener("pointerleave",x),c.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",p)}}},[l,c,f,h]),y.useEffect(()=>{if(i){const x=p=>{const w=p.target,v={x:p.clientX,y:p.clientY},m=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),g=!pk(v,i);m?h():g&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,c,i,u,h]),S.jsx(Ky,{...e,ref:s})}),[ak,lk]=bl(Vy,{isInside:!1}),uk=_1("TooltipContent"),Ky=y.forwardRef((e,t)=>
96{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Sl(qo,n),u=xf(n),{onClose:c}=l;return y.useEffect(()=>(document.addEventListener(mp,c),()=>document.removeEventListener(mp,c)),[c]),y.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),S.jsx(pl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:S.jsxs(Fy,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[S.jsx(uk,{children:r}),S.jsx(ak,{scope:n,isInside:!0,children:S.jsx(H1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Hy.displayName=qo;var qy="TooltipArrow",ck=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=xf(n);return lk(qy,n).isInside?null:S.jsx(Uy,{...o,...r,ref:t})});ck.displayName=qy;function dk(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function fk(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hk(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function pk(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,c=a.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function mk(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),gk(t)}function gk(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var vk=Wy,Gy=Hy;const yk=vk,wk=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(Gy,{ref:r,sideOffset:t,className:Le("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));wk.displayName=Gy.displayName;var _l=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(){}},El=typeof window>"u"||"Deno"in globalThis;function jt(){}function xk(e,t){return typeof e=="function"?e(t):e}function bk(e){return typeof e=="number"&&e>=0&&e!==1/0}function Sk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dc(e,t){return typeof e=="function"?e(t):e}function _k(e,t){return typeof e=="function"?e(t):e}function gp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==bf(i,t.options))return!1}else if(!si(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function vp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(oi(t.options.mutationKey)!==oi(s))return!1}else if(!si(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function bf(e,t){return((t==null?void 0:t.queryKeyHashFn)||oi)(e)}function oi(e){return JSON.stringify(e,(t,n)=>Fc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function si(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>si(e[n],t[n])):!1}function Qy(e,t){if(e===t)return e;const n=yp(e)&&yp(t);if(n||Fc(e)&&Fc(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<i;c++){const d=n?c:s[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=Qy(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function yp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fc(e){if(!wp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!wp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function wp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ek(e){return new Promise(t=>{setTimeout(t,e)})}function kk(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Qy(e,t):t}function Ck(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Tk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Sf=Symbol();function Yy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Sf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var kr,Fn,No,im,Pk=(im=class extends _l{constructor(){super();oe(this,kr);oe(this,Fn);oe(this,No);G(this,No,t=>{if(!El&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,Fn)||this.setEventListener(P(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Fn))==null||t.call(this),G(this,Fn,void 0))}setEventListener(t){var n;G(this,No,t),(n=P(this,Fn))==null||n.call(this),G(this,Fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,kr)!==t&&(G(this,kr,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,517 bytes, line 96
96this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,kr)=="boolean"?P(this,kr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},kr=new WeakMap,Fn=new WeakMap,No=new WeakMap,im),Jy=new Pk,Ao,Un,jo,am,Rk=(am=class extends _l{constructor(){super();oe(this,Ao,!0);oe(this,Un);oe(this,jo);G(this,jo,t=>{if(!El&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,Un)||this.setEventListener(P(this,jo))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Un))==null||t.call(this),G(this,Un,void 0))}setEventListener(t){var n;G(this,jo,t),(n=P(this,Un))==null||n.call(this),G(this,Un,t(this.setOnline.bind(this)))}setOnline(t){P(this,Ao)!==t&&(G(this,Ao,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Ao)}},Ao=new WeakMap,Un=new WeakMap,jo=new WeakMap,am),qa=new Rk;function Ok(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Nk(e){return Math.min(1e3*2**e,3e4)}function Xy(e){return(e??"online")==="online"?qa.isOnline():!0}var Zy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yu(e){return e instanceof Zy}function e0(e){let t=!1,n=0,r=!1,o;const s=Ok(),i=p=>{var w;r||(h(new Zy(p)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Jy.isFocused()&&(e.networkMode==="always"||qa.isOnline())&&e.canRun(),c=()=>Xy(e.networkMode)&&e.canRun(),d=p=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,p),o==null||o(),s.resolve(p))},h=p=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,p),o==null||o(),s.reject(p))},f=()=>new Promise(p=>{var w;o=v=>{(r||u())&&p(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),x=()=>{if(r)return;let p;const w=n===0?e.initialPromise:void 0;try{p=w??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(d).catch(v=>{var E;if(r)return;const m=e.retry??(El?0:3),g=e.retryDelay??Nk,b=typeof g=="function"?g(n,v):g,_=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,v);if(t||!_){h(v);return}n++,(E=e.onFail)==null||E.call(e,n,v),Ek(b).then(()=>u()?void 0:f()).then(()=>{t?h(v):x()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?x():f().then(x),s)}}var Ak=e=>setTimeout(e,0);function jk(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Ak;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ye=jk(),Cr,lm,t0=(lm=class{constructor(){oe(this,Cr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bk(this.gcTime)&&G(this,Cr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(El?1/0:5*60*1e3))}clearGcTimeout(){P(this,Cr)&&(clearTimeout(P(this,Cr)),G(this,Cr,void 0))}},Cr=new WeakMap,lm),Io,Tr,vt,Pr,Ve,ui,Rr,It,an,um,Ik=(um=class extends t0{constructor(t){super();oe(this,It);oe(this,Io);oe(this,Tr);oe(this,vt);oe(this,Pr);oe(this,Ve);oe(this,ui);oe(this,Rr);G(this,Rr,!1),G(this,ui,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,Pr,t.client),G(this,vt,P(this,Pr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,Io,$k(this.options)),this.state=t.state??P(this,Io),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...P(this,ui),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,vt).remove(this)}setData(t,n){const r=kk(this.state.data,t,this.options);return ze(this,It,an).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ze(this,It,an).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,Ve))==null?void 0:r.promise;
vendor: 1,669 bytes, line 96
96return(o=P(this,Ve))==null||o.cancel(t),n?n.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Io))}isActive(){return this.observers.some(t=>_k(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Sf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Dc(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:!Sk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,vt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,Ve)&&(P(this,Rr)?P(this,Ve).cancel({revert:!0}):P(this,Ve).cancelRetry()),this.scheduleGc()),P(this,vt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,It,an).call(this,{type:"invalidate"})}
vendor: 6,523 bytes, line 96
96fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Ve))return P(this,Ve).continueRetry(),P(this,Ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,Rr,!0),r.signal)})},s=()=>{const h=Yy(this.options,n),x=(()=>{const p={client:P(this,Pr),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return G(this,Rr,!1),this.options.persister?this.options.persister(h,x,this):h(x)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,Pr),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,Tr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&ze(this,It,an).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,x,p,w;yu(h)&&h.silent||ze(this,It,an).call(this,{type:"error",error:h}),yu(h)||((x=(f=P(this,vt).config).onError)==null||x.call(f,h,this),(w=(p=P(this,vt).config).onSettled)==null||w.call(p,this.state.data,h,this)),this.scheduleGc()};return G(this,Ve,e0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,x,p,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){l(v);return}(x=(f=P(this,vt).config).onSuccess)==null||x.call(f,h,this),(w=(p=P(this,vt).config).onSettled)==null||w.call(p,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{ze(this,It,an).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{ze(this,It,an).call(this,{type:"pause"})},onContinue:()=>{ze(this,It,an).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,Ve).start()}},Io=new WeakMap,Tr=new WeakMap,vt=new WeakMap,Pr=new WeakMap,Ve=new WeakMap,ui=new WeakMap,Rr=new WeakMap,It=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Lk(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,Tr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return yu(o)&&o.revert&&P(this,Tr)?{...P(this,Tr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,vt).notify({query:this,type:"updated",action:t})})},um);function Lk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $k(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,cm,Mk=(cm=class extends _l{constructor(t={}){super();oe(this,Gt);this.config=t,G(this,Gt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??bf(o,n);let i=this.get(s);return i||(i=new Ik({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){P(this,Gt).has(t.queryHash)||(P(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Gt).get(t)}getAll(){return[...P(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>gp(t,r)):n}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,cm),Qt,Ge,Or,Yt,Nn,dm,Dk=(dm=class extends t0{constructor(t){super();oe(this,Yt);oe(this,Qt);oe(this,Ge);oe(this,Or);this.mutationId=t.mutationId,G(this,Ge,t.mutationCache),G(this,Qt,[]),this.state=t.state||Fk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Qt).includes(t)||(P(this,Qt).push(t),this.clearGcTimeout(),P(this,Ge).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Qt,P(this,Qt).filter(n=>n!==t)),this.scheduleGc(),P(this,Ge).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Ge).remove(this))}continue(){var t;return((t=P(this,Or))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,c,d,h,f,x,p,w,v,m,g,b,_,E,k,T;const n=()=>{ze(this,Yt,Nn).call(this,{type:"continue"})};G(this,Or,e0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,A)=>{ze(this,Yt,Nn).call(this,{type:"failed",failureCount:N,error:A})},onPause:()=>{ze(this,Yt,Nn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Ge).canRun(this)}));const r=this.state.status==="pending",o=!P(this,Or).canStart();try{if(r)n();else{ze(this,Yt,Nn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=P(this,Ge).config).onMutate)==null?void 0:i.call(s,t,this));
96const A=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));A!==this.state.context&&ze(this,Yt,Nn).call(this,{type:"pending",context:A,variables:t,isPaused:o})}const N=await P(this,Or).start();return await((c=(u=P(this,Ge).config).onSuccess)==null?void 0:c.call(u,N,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,N,t,this.state.context)),await((x=(f=P(this,Ge).config).onSettled)==null?void 0:x.call(f,N,null,this.state.variables,this.state.context,this)),await((w=(p=this.options).onSettled)==null?void 0:w.call(p,N,null,t,this.state.context)),ze(this,Yt,Nn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((m=(v=P(this,Ge).config).onError)==null?void 0:m.call(v,N,t,this.state.context,this)),await((b=(g=this.options).onError)==null?void 0:b.call(g,N,t,this.state.context)),await((E=(_=P(this,Ge).config).onSettled)==null?void 0:E.call(_,void 0,N,this.state.variables,this.state.context,this)),await((T=(k=this.options).onSettled)==null?void 0:T.call(k,void 0,N,t,this.state.context)),N}finally{ze(this,Yt,Nn).call(this,{type:"error",error:N})}}finally{P(this,Ge).runNext(this)}}},Qt=new WeakMap,Ge=new WeakMap,Or=new WeakMap,Yt=new WeakSet,Nn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ye.batch(()=>{P(this,Qt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Ge).notify({mutation:this,type:"updated",action:t})})},dm);function Fk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fn,Lt,ci,fm,Uk=(fm=class extends _l{constructor(t={}){super();oe(this,fn);oe(this,Lt);oe(this,ci);this.config=t,G(this,fn,new Set),G(this,Lt,new Map),G(this,ci,0)}build(t,n,r){const o=new Dk({mutationCache:this,mutationId:++_i(this,ci)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,fn).add(t);const n=Hi(t);if(typeof n=="string"){const r=P(this,Lt).get(n);r?r.push(t):P(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,fn).delete(t)){const n=Hi(t);if(typeof n=="string"){const r=P(this,Lt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Hi(t);if(typeof n=="string"){const r=P(this,Lt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Hi(t);if(typeof n=="string"){const o=(r=P(this,Lt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ye.batch(()=>{P(this,fn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,fn).clear(),P(this,Lt).clear()})}getAll(){return Array.from(P(this,fn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vp(n,r))}findAll(t={}){return this.getAll().filter(n=>vp(t,n))}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(jt))))}},fn=new WeakMap,Lt=new WeakMap,ci=new WeakMap,fm);function Hi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function xp(e){return{onFetch:(t,n)=>{var c,d,h,f,x;const r=t.options,o=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,s=((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 u=async()=>{let p=!1;const w=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)}
vendor: 4,187 bytes, line 96
96)},v=Yy(t.options,t.fetchOptions),m=async(g,b,_)=>{if(p)return Promise.reject();if(b==null&&g.pages.length)return Promise.resolve(g);const k=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:b,direction:_?"backward":"forward",meta:t.options.meta};return w(U),U})(),T=await v(k),{maxPages:N}=t.options,A=_?Tk:Ck;return{pages:A(g.pages,T,N),pageParams:A(g.pageParams,b,N)}};if(o&&s.length){const g=o==="backward",b=g?zk:bp,_={pages:s,pageParams:i},E=b(r,_);a=await m(_,E,g)}else{const g=e??s.length;do{const b=l===0?i[0]??r.initialPageParam:bp(r,a);if(l>0&&b==null)break;a=await m(a,b),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>{var p,w;return(w=(p=t.options).persister)==null?void 0:w.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function bp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function zk(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var _e,zn,Bn,Lo,$o,Wn,Mo,Do,hm,Bk=(hm=class{constructor(e={}){oe(this,_e);oe(this,zn);oe(this,Bn);oe(this,Lo);oe(this,$o);oe(this,Wn);oe(this,Mo);oe(this,Do);G(this,_e,e.queryCache||new Mk),G(this,zn,e.mutationCache||new Uk),G(this,Bn,e.defaultOptions||{}),G(this,Lo,new Map),G(this,$o,new Map),G(this,Wn,0)}mount(){_i(this,Wn)._++,P(this,Wn)===1&&(G(this,Mo,Jy.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,_e).onFocus())})),G(this,Do,qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,_e).onOnline())})))}unmount(){var e,t;_i(this,Wn)._--,P(this,Wn)===0&&((e=P(this,Mo))==null||e.call(this),G(this,Mo,void 0),(t=P(this,Do))==null||t.call(this),G(this,Do,void 0))}isFetching(e){return P(this,_e).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,zn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,_e).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,_e).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Dc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,_e).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,_e).get(r.queryHash),s=o==null?void 0:o.state.data,i=xk(t,s);if(i!==void 0)return P(this,_e).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ye.batch(()=>P(this,_e).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,_e).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,_e);Ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,_e);return Ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ye.batch(()=>P(this,_e).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(jt).catch(jt)}invalidateQueries(e,t={}){return Ye.batch(()=>(P(this,_e).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ye.batch(()=>P(this,_e).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(jt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,_e).build(this,t);return n.isStaleByTime(Dc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=xp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).cat
96ch(jt)}ensureInfiniteQueryData(e){return e.behavior=xp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qa.isOnline()?P(this,zn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,_e)}getMutationCache(){return P(this,zn)}getDefaultOptions(){return P(this,Bn)}setDefaultOptions(e){G(this,Bn,e)}setQueryDefaults(e,t){P(this,Lo).set(oi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Lo).values()],n={};return t.forEach(r=>{si(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,$o).set(oi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,$o).values()],n={};return t.forEach(r=>{si(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,Bn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bf(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===Sf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Bn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,_e).clear(),P(this,zn).clear()}},_e=new WeakMap,zn=new WeakMap,Bn=new WeakMap,Lo=new WeakMap,$o=new WeakMap,Wn=new WeakMap,Mo=new WeakMap,Do=new WeakMap,hm),Wk=y.createContext(void 0),Vk=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Wk.Provider,{value:e,children:t}));/**
97 * @remix-run/router v1.23.0
98 *
99 * Copyright (c) Remix Software Inc.
100 *
101 * This source code is licensed under the MIT license found in the
102 * LICENSE.md file in the root directory of this source tree.
103 *
104 * @license MIT
105 */function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ii.apply(this,arguments)}var Kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Kn||(Kn={}));const Sp="popstate";function Hk(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Uc("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:r0(o)}return qk(t,n,null,e)}function Ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function n0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kk(){return Math.random().toString(36).substr(2,8)}function _p(e,t){return{usr:e.state,key:e.key,idx:t}}function Uc(e,t,n,r){return n===void 0&&(n=null),ii({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ts(t):t,{state:n,key:t&&t.key||r||Kk()})}function r0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ts(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function qk(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Kn.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(ii({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=Kn.Pop;let w=c(),v=w==null?null:w-u;u=w,l&&l({action:a,location:p.location,delta:v})}function h(w,v){a=Kn.Push;let m=Uc(p.location,w,v);u=c()+1;let g=_p(m,u),b=p.createHref(m);try{i.pushState(g,"",b)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(b)}s&&l&&l({action:a,location:p.location,delta:1})}function f(w,v){a=Kn.Replace;let m=Uc(p.location,w,v);u=c();let g=_p(m,u),b=p.createHref(m);i.replaceState(g,"",b),s&&l&&l({action:a,location:p.location,delta:0})}function x(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:r0(w);return m=m.replace(/ $/,"%20"),Ae(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let p={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Sp,d),l=w,()=>{o.removeEventListener(Sp,d),l=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let v=x(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:f,go(w){return i.go(w)}};return p}var Ep;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ep||(Ep={}));
vendor: 11,480 bytes, lines 105-114
105function Gk(e,t,n){return n===void 0&&(n="/"),Qk(e,t,n,!1)}function Qk(e,t,n,r){let o=typeof t=="string"?ts(t):t,s=i0(o.pathname||"/",n);if(s==null)return null;let i=o0(e);Yk(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=aC(s);a=sC(i[l],u,r)}return a}function o0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Ae(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=jr([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Ae(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),o0(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:rC(u,s.index),routesMeta:c})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of s0(s.path))o(s,i,l)}),t}function s0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=s0(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Yk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Jk=/^:[\w-]+$/,Xk=3,Zk=2,eC=1,tC=10,nC=-2,kp=e=>e==="*";function rC(e,t){let n=e.split("/"),r=n.length;return n.some(kp)&&(r+=nC),t&&(r+=Zk),n.filter(o=>!kp(o)).reduce((o,s)=>o+(Jk.test(s)?Xk:s===""?eC:tC),r)}function oC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sC(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",d=Cp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Cp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),i.push({params:o,pathname:jr([s,d.pathname]),pathnameBase:hC(jr([s,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(s=jr([s,d.pathnameBase]))}return i}function Cp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=iC(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:h,isOptional:f}=c;if(h==="*"){let p=a[d]||"";i=s.slice(0,s.length-p.length).replace(/(.)\/+$/,"$1")}const x=a[d];return f&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function iC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),n0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function aC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return n0(!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 i0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function lC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ts(e):e;return{pathname:n?n.startsWith("/")?n:uC(n,t):t,search:pC(r),hash:mC(o)}}function uC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function wu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function cC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dC(e,t){let n=cC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function fC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ts(e):(o=ii({},e),Ae(!o.pathname||!o.pathname.includes("?"),wu("?","pathname","search",o)),Ae(!o.pathname||!o.pathname.includes("#"),wu("#","pathname","hash",o)),Ae(!o.search||!o.search.includes("#"),wu("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=lC(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const jr=e=>e.join("/").replace(/\/\/+/g,"/"),hC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const a0=["post","put","patch","delete"];new Set(a0);const vC=["get",...a0];new Set(vC);/**
106 * React Router v6.30.1
107 *
108 * Copyright (c) Remix Software Inc.
109 *
110 * This source code is licensed under the MIT license found in the
111 * LICENSE.md file in the root directory of this source tree.
112 *
113 * @license MIT
114 */function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(this,arguments)}const _f=y.createContext(null),yC=y.createContext(null),kl=y.createContext(null),Cl=y.createContext(null),ns=y.createContext({outlet:null,matches:[],isDataRoute:!1}),l0=y.createContext(null);function Tl(){return y.useContext(Cl)!=null}function Ef(){return Tl()||Ae(!1),y.useContext(Cl).location}function u0(e){y.useContext(kl).static||y.useLayoutEffect(e)}function wC(){let{isDataRoute:e}=y.useContext(ns);return e?AC():xC()}function xC(){Tl()||Ae(!1);let e=y.useContext(_f),{basename:t,future:n,navigator:r}=y.useContext(kl),{matches:o}=y.useContext(ns),{pathname:s}=Ef(),i=JSON.stringify(dC(o,n.v7_relativeSplatPath)),a=y.useRef(!1);return u0(()=>{a.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=fC(u,JSON.parse(i),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:jr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,i,s,e])}function bC(e,t){return SC(e,t)}function SC(e,t,n,r){Tl()||Ae(!1);let{navigator:o}=y.useContext(kl),{matches:s}=y.useContext(ns),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Ef(),c;if(t){var d;let w=typeof t=="string"?ts(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||Ae(!1),c=w}else c=u;let h=c.pathname||"/",f=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=Gk(e,{pathname:f}),p=TC(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:jr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:jr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&p?y.createElement(Cl.Provider,{value:{location:ai({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Kn.Pop}},p):p}function _C(){let e=NC(),t=gC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={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),n?y.createElement("pre",{style:o},n):null,null)}const EC=y.createElement(_C,null);class kC 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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(ns.Provider,{value:this.props.routeContext},y.createElement(l0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CC(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(_f);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(ns.Provider,{value:t},r)}function TC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Ae(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:h,errors:f}=n,x=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||x){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,h)=>{let f,x=!1,p=null,w=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,p=d.route.errorElement||EC,l&&(u<0&&h===0?(x=!0,w=null):u===h&&(x=!0,w=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,h+1)),m=()=>{let g;return f?g=p:x?g=w:d.route.Component?g=y.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,y.createElement(CC,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?y.createElement(kC,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var c0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(c0||{}),Ga=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useL
114oaderData",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}(Ga||{});function PC(e){let t=y.useContext(_f);return t||Ae(!1),t}function RC(e){let t=y.useContext(yC);return t||Ae(!1),t}function OC(e){let t=y.useContext(ns);return t||Ae(!1),t}function d0(e){let t=OC(),n=t.matches[t.matches.length-1];return n.route.id||Ae(!1),n.route.id}function NC(){var e;let t=y.useContext(l0),n=RC(Ga.UseRouteError),r=d0(Ga.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function AC(){let{router:e}=PC(c0.UseNavigateStable),t=d0(Ga.UseNavigateStable),n=y.useRef(!1);return u0(()=>{n.current=!0}),y.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ai({fromRouteId:t},s)))},[e,t])}function jC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ma(e){Ae(!1)}function IC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Kn.Pop,navigator:s,static:i=!1,future:a}=e;Tl()&&Ae(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:s,static:i,future:ai({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=ts(r));let{pathname:c="/",search:d="",hash:h="",state:f=null,key:x="default"}=r,p=y.useMemo(()=>{let w=i0(c,l);return w==null?null:{location:{pathname:w,search:d,hash:h,state:f,key:x},navigationType:o}},[l,c,d,h,f,x,o]);return p==null?null:y.createElement(kl.Provider,{value:u},y.createElement(Cl.Provider,{children:n,value:p}))}function LC(e){let{children:t,location:n}=e;return bC(zc(t),n)}new Promise(()=>{});function zc(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let s=[...t,o];if(r.type===y.Fragment){n.push.apply(n,zc(r.props.children,s));return}r.type!==ma&&Ae(!1),!r.props.index||!r.props.children||Ae(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=zc(r.props.children,s)),n.push(i)}),n}/**
115 * React Router DOM v6.30.1
116 *
117 * Copyright (c) Remix Software Inc.
118 *
119 * This source code is licensed under the MIT license found in the
120 * LICENSE.md file in the root directory of this source tree.
121 *
122 * @license MIT
123 */const $C="6";try{window.__reactRouterVersion=$C}catch{}const MC="startTransition",Tp=dd[MC];function DC(e){let{basename:t,children:n,future:r,window:o}=e,s=y.useRef();s.current==null&&(s.current=Hk({window:o,v5Compat:!0}));let i=s.current,[a,l]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&Tp?Tp(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>i.listen(c),[i,c]),y.useEffect(()=>jC(r),[r]),y.createElement(IC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var Pp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pp||(Pp={}));var Rp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Rp||(Rp={}));const FC=lf("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:"bg-primary text-primary-foreground hover:bg-primary/90",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"}}),f0=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?b1:"button";return S.jsx(i,{className:Le(FC({variant:t,size:n,className:e})),ref:s,...o})});f0.displayName="Button";const ga=y.forwardRef(({className:e,type:t,...n},r)=>S.jsx("input",{type:t,className:Le("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:r,...n}));ga.displayName="Input";var UC="Label",h0=y.forwardRef((e,t)=>
vendor: 5,511 bytes, line 123
123S.jsx(le.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));h0.displayName=UC;var p0=h0;const zC=lf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),io=y.forwardRef(({className:e,...t},n)=>S.jsx(p0,{ref:n,className:Le(zC(),e),...t}));io.displayName=p0.displayName;function Op(e,[t,n]){return Math.min(n,Math.max(t,e))}var BC=y.createContext(void 0);function WC(e){const t=y.useContext(BC);return e||t||"ltr"}var xu=0;function VC(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Np()),document.body.insertAdjacentElement("beforeend",e[1]??Np()),xu++,()=>{xu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xu--}},[])}function Np(){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 bu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Ap={bubbles:!1,cancelable:!0},HC="FocusScope",m0=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=y.useState(null),u=Bt(o),c=Bt(s),d=y.useRef(null),h=ke(t,p=>l(p)),f=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let p=function(g){if(f.paused||!a)return;const b=g.target;a.contains(b)?d.current=b:An(d.current,{select:!0})},w=function(g){if(f.paused||!a)return;const b=g.relatedTarget;b!==null&&(a.contains(b)||An(d.current,{select:!0}))},v=function(g){if(document.activeElement===document.body)for(const _ of g)_.removedNodes.length>0&&An(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const m=new MutationObserver(v);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),m.disconnect()}}},[r,a,f.paused]),y.useEffect(()=>{if(a){Ip.add(f);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(bu,Ap);a.addEventListener(bu,u),a.dispatchEvent(v),v.defaultPrevented||(KC(JC(g0(a)),{select:!0}),document.activeElement===p&&An(a))}return()=>{a.removeEventListener(bu,u),setTimeout(()=>{const v=new CustomEvent(Su,Ap);a.addEventListener(Su,c),a.dispatchEvent(v),v.defaultPrevented||An(p??document.body,{select:!0}),a.removeEventListener(Su,c),Ip.remove(f)},0)}}},[a,u,c,f]);const x=y.useCallback(p=>{if(!n&&!r||f.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(w&&v){const m=p.currentTarget,[g,b]=qC(m);g&&b?!p.shiftKey&&v===b?(p.preventDefault(),n&&An(g,{select:!0})):p.shiftKey&&v===g&&(p.preventDefault(),n&&An(b,{select:!0})):v===m&&p.preventDefault()}},[n,r,f.paused]);return S.jsx(le.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})});m0.displayName=HC;function KC(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(An(r,{select:t}),document.activeElement!==n)return}function qC(e){const t=g0(e),n=jp(t,e),r=jp(t.reverse(),e);return[n,r]}function g0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jp(e,t){for(const n of e)if(!GC(n,{upTo:t}))return n}function GC(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 QC(e){return e instanceof HTMLInputElement&&"select"in e}function An(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&QC(e)&&t&&e.select()}}var Ip=YC();function YC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Lp(e,t),e.unshift(t)},remove(t){var n;e=Lp(e,t),(n=e[0])==null||n.resume()}}}function Lp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function JC(e){return e.filter(t=>t.tagName!=="A")}function XC(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 ZC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xr=new WeakMap,Ki=new WeakMap,qi={},_u=0,v0=function(e){return e&&(e.host||v0(e.parentNode))},eT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=v0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tT=function(e,t,n,r){var o=eT(t,Array.isArray(e)?e:[e]);qi[n]||(qi[n]=new WeakMap);var s=qi[n],i=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))c(h);else try{var f=h.getAttribute(r),x=f!==null&&f!=="false",p=(Xr.get(h)||0)+1,w=(s.get(h)||0)+1;Xr.set(h,p),s.set(h,w),i.push(h),p===1&&x&&Ki.set(h,!0),w===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};
vendor: 6,072 bytes, lines 123-138
123return c(t),a.clear(),_u++,function(){i.forEach(function(d){var h=Xr.get(d)-1,f=s.get(d)-1;Xr.set(d,h),s.set(d,f),h||(Ki.has(d)||d.removeAttribute(r),Ki.delete(d)),f||d.removeAttribute(n)}),_u--,_u||(Xr=new WeakMap,Xr=new WeakMap,Ki=new WeakMap,qi={})}},nT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ZC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tT(r,o,n,"aria-hidden")):function(){return null}},Xt=function(){return Xt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Xt.apply(this,arguments)};function y0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function rT(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var va="right-scroll-bar-position",ya="width-before-scroll-bar",oT="with-scroll-bars-hidden",sT="--removed-body-scroll-bar-size";function Eu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function iT(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var aT=typeof window<"u"?y.useLayoutEffect:y.useEffect,$p=new WeakMap;function lT(e,t){var n=iT(null,function(r){return e.forEach(function(o){return Eu(o,r)})});return aT(function(){var r=$p.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Eu(a,null)}),s.forEach(function(a){o.has(a)||Eu(a,i)})}$p.set(n,e)},[e]),n}function uT(e){return e}function cT(e,t){t===void 0&&(t=uT);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var c=i;i=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){i.push(c),u()},filter:function(c){return i=i.filter(c),n}}}};return o}function dT(e){e===void 0&&(e={});var t=cT(null);return t.options=Xt({async:!0,ssr:!1},e),t}var w0=function(e){var t=e.sideCar,n=y0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Xt({},n))};w0.isSideCarExport=!0;function fT(e,t){return e.useMedium(t),w0}var x0=dT(),ku=function(){},Pl=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:ku,onWheelCapture:ku,onTouchMoveCapture:ku}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,x=e.noIsolation,p=e.inert,w=e.allowPinchZoom,v=e.as,m=v===void 0?"div":v,g=e.gapMode,b=y0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,E=lT([n,t]),k=Xt(Xt({},b),o);return y.createElement(y.Fragment,null,c&&y.createElement(_,{sideCar:x0,removeScrollBar:u,shards:d,noRelative:f,noIsolation:x,inert:p,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:g}),i?y.cloneElement(y.Children.only(a),Xt(Xt({},k),{ref:E})):y.createElement(m,Xt({},k,{className:l,ref:E}),a))});Pl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pl.classNames={fullWidth:ya,zeroRight:va};var hT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hT();return t&&e.setAttribute("nonce",t),e}function mT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pT())&&(mT(t,n),gT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yT=function(){var e=vT();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b0=function(){var e=yT(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},wT={left:0,top:0,right:0,gap:0},Cu=function(e){return parseInt(e||"",10)||0},xT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Cu(n),Cu(r),Cu(o)]},bT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wT;var t=xT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ST=b0(),Oo="data-scroll-locked",_T=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
124  .`.concat(oT,` {
125   overflow: hidden `).concat(r,`;
126   padding-right: `).concat(a,"px ").concat(r,`;
127  }
128  body[`).concat(Oo,`] {
129    overflow: hidden `).concat(r,`;
130    overscroll-behavior: contain;
131    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
132    padding-left: `.concat(o,`px;
133    padding-top: `).concat(s,`px;
134    padding-right: `).concat(i,`px;
135    margin-left:0;
136    margin-top:0;
137    margin-right: `).concat(a,"px ").concat(r,`;
138    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
138")].filter(Boolean).join(""),`
139  }
140  
141  .`).concat(va,` {
142    right: `).concat(a,"px ").concat(r,`;
143  }
144  
145  .`).concat(ya,` {
146    margin-right: `).concat(a,"px ").concat(r,`;
147  }
148  
149  .`).concat(va," .").concat(va,` {
150    right: 0 `).concat(r,`;
151  }
152  
153  .`).concat(ya," .").concat(ya,` {
154    margin-right: 0 `).concat(r,`;
155  }
156  
157  body[`).concat(Oo,`] {
158    `).concat(sT,": ").concat(a,`px;
159  }
160`)},Mp=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},ET=function(){y.useEffect(function(){return document.body.setAttribute(Oo,(Mp()+1).toString()),function(){var e=Mp()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},kT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ET();var s=y.useMemo(function(){return bT(o)},[o]);return y.createElement(ST,{styles:_T(s,!t,o,n?"":"!important")})},Bc=!1;if(typeof window<"u")try{var Gi=Object.defineProperty({},"passive",{get:function(){return Bc=!0,!0}});window.addEventListener("test",Gi,Gi),window.removeEventListener("test",Gi,Gi)}catch{Bc=!1}var Zr=Bc?{passive:!1}:!1,CT=function(e){return e.tagName==="TEXTAREA"},S0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!CT(e)&&n[t]==="visible")},TT=function(e){return S0(e,"overflowY")},PT=function(e){return S0(e,"overflowX")},Dp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_0(e,r);if(o){var s=E0(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},RT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},OT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_0=function(e,t){return e==="v"?TT(t):PT(t)},E0=function(e,t){return e==="v"?RT(t):OT(t)},NT=function(e,t){return e==="h"&&t==="rtl"?-1:1},AT=function(e,t,n,r,o){var s=NT(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,c=i>0,d=0,h=0;do{if(!a)break;var f=E0(e,a),x=f[0],p=f[1],w=f[2],v=p-w-s*x;(x||v)&&_0(e,a)&&(d+=v,h+=x);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(h)<1||!o))&&(u=!0),u},Qi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fp=function(e){return[e.deltaX,e.deltaY]},Up=function(e){return e&&"current"in e?e.current:e},jT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},IT=function(e){return`
161  .block-interactivity-`.concat(e,` {pointer-events: none;}
162  .allow-interactivity-`).concat(e,` {pointer-events: all;}
163`)},LT=0,eo=[];function $T(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(LT++)[0],s=y.useState(b0)[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(o));var p=rT([e.lockRef.current],(e.shards||[]).map(Up),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=Qi(p),m=n.current,g="deltaX"in p?p.deltaX:m[0]-v[0],b="deltaY"in p?p.deltaY:m[1]-v[1],_,E=p.target,k=Math.abs(g)>Math.abs(b)?"h":"v";if("touches"in p&&k==="h"&&E.type==="range")return!1;var T=Dp(k,E);if(!T)return!0;if(T?_=k:(_=k==="v"?"h":"v",T=Dp(k,E)),!T)return!1;if(!r.current&&"changedTouches"in p&&(g||b)&&(r.current=_),!_)return!0;var N=r.current||_;return AT(N,w,p,N==="h"?g:b,!0)},[]),l=y.useCallback(function(p){var w=p;if(!(!eo.length||eo[eo.length-1]!==s)){var v="deltaY"in w?Fp(w):Qi(w),m=t.current.filter(function(_){return _.name===w.type&&(_.target===w.target||w.target===_.shadowParent)&&jT(_.delta,v)}
vendor: 5,653 bytes, line 163
163)[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var g=(i.current.shards||[]).map(Up).filter(Boolean).filter(function(_){return _.contains(w.target)}),b=g.length>0?a(w,g[0]):!i.current.noIsolation;b&&w.cancelable&&w.preventDefault()}}},[]),u=y.useCallback(function(p,w,v,m){var g={name:p,delta:w,target:v,should:m,shadowParent:MT(v)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(b){return b!==g})},1)},[]),c=y.useCallback(function(p){n.current=Qi(p),r.current=void 0},[]),d=y.useCallback(function(p){u(p.type,Fp(p),p.target,a(p,e.lockRef.current))},[]),h=y.useCallback(function(p){u(p.type,Qi(p),p.target,a(p,e.lockRef.current))},[]);y.useEffect(function(){return eo.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Zr),document.addEventListener("touchmove",l,Zr),document.addEventListener("touchstart",c,Zr),function(){eo=eo.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,Zr),document.removeEventListener("touchmove",l,Zr),document.removeEventListener("touchstart",c,Zr)}},[]);var f=e.removeScrollBar,x=e.inert;return y.createElement(y.Fragment,null,x?y.createElement(s,{styles:IT(o)}):null,f?y.createElement(kT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const DT=fT(x0,$T);var k0=y.forwardRef(function(e,t){return y.createElement(Pl,Xt({},e,{ref:t,sideCar:DT}))});k0.classNames=Pl.classNames;var FT=[" ","Enter","ArrowUp","ArrowDown"],UT=[" ","Enter"],Ur="Select",[Rl,Ol,zT]=Av(Ur),[rs,WO]=gi(Ur,[zT,xl]),Nl=xl(),[BT,lr]=rs(Ur),[WT,VT]=rs(Ur),C0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:h,required:f,form:x}=e,p=Nl(t),[w,v]=y.useState(null),[m,g]=y.useState(null),[b,_]=y.useState(!1),E=WC(u),[k,T]=Pc({prop:r,defaultProp:o??!1,onChange:s,caller:Ur}),[N,A]=Pc({prop:i,defaultProp:a,onChange:l,caller:Ur}),U=y.useRef(null),L=w?x||!!w.closest("form"):!0,[W,I]=y.useState(new Set),H=Array.from(W).map(F=>F.props.value).join(";");return S.jsx(ek,{...p,children:S.jsxs(BT,{required:f,scope:t,trigger:w,onTriggerChange:v,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:cf(),value:N,onValueChange:A,open:k,onOpenChange:T,dir:E,triggerPointerDownPosRef:U,disabled:h,children:[S.jsx(Rl.Provider,{scope:t,children:S.jsx(WT,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(F=>{I(B=>new Set(B).add(F))},[]),onNativeOptionRemove:y.useCallback(F=>{I(B=>{const C=new Set(B);return C.delete(F),C})},[]),children:n})}),L?S.jsxs(Y0,{"aria-hidden":!0,required:f,tabIndex:-1,name:c,autoComplete:d,value:N,onChange:F=>A(F.target.value),disabled:h,form:x,children:[N===void 0?S.jsx("option",{value:""}):null,Array.from(W)]},H):null]})})};C0.displayName=Ur;var T0="SelectTrigger",P0=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Nl(n),i=lr(T0,n),a=i.disabled||r,l=ke(t,i.onTriggerChange),u=Ol(n),c=y.useRef("touch"),[d,h,f]=X0(p=>{const w=u().filter(g=>!g.disabled),v=w.find(g=>g.value===i.value),m=Z0(w,p,v);m!==void 0&&i.onValueChange(m.value)}),x=p=>{a||(i.onOpenChange(!0),f()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return S.jsx(Dy,{asChild:!0,...s,children:S.jsx(le.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":J0(i.value)?"":void 0,...o,ref:l,onClick:ee(o.onClick,p=>{p.currentTarget.focus(),c.current!=="mouse"&&x(p)}),onPointerDown:ee(o.onPointerDown,p=>{c.current=p.pointerType;const w=p.target;w.hasPointerCapture(p.pointerId)&&w.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(x(p),p.preventDefault())}),onKeyDown:ee(o.onKeyDown,p=>{const w=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(w&&p.key===" ")&&FT.includes(p.key)&&(x(),p.preventDefault())})})})});P0.displayName=T0;var R0="SelectValue",O0=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=lr(R0,n),{onValueNodeHasChildrenChange:u}=l,c=s!==void 0,d=ke(t,l.onValueNodeChange);return Fe(()=>{u(c)},[u,c]),S.jsx(le.span,{...a,ref:d,style:{pointerEvents:"none"},children:J0(l.value)?S.jsx(S.Fragment,{children:i}):s})});O0.displayName=R0;var HT="SelectIcon",N0=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return S.jsx(le.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});N0.displayName=HT;var KT="SelectPortal",A0=e=>S.jsx(nf,{asChild:!0,...e});A0.displayName=KT;var zr="SelectContent",j0=y.forwardRef((e,t)=>{const n=lr(zr,e.__scopeSelect),[r,o]=y.useState();if(Fe(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Vr.createPortal(S.jsx(I0,{scope:e.__scopeSelect,children:S.jsx(Rl.Slot,{scope:e.__scopeSelect,children:S.jsx("div",{children:e.children})})}),s):null}return S.jsx(L0,{...e,ref:t})});j0.displayName=zr;var Nt=10,[I0,ur]=rs(zr),qT="SelectContentImpl",GT=ti("SelectContent.RemoveScroll"),L0=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:f,sticky:x,hideWhenDetached:p,avoidCollisions:w,...v}=e,m=lr(zr,n),[g,b]=y.useState(null),[_,E]=y.useState(null),k=ke(t,M=>
vendor: 13,867 bytes, line 163
163b(M)),[T,N]=y.useState(null),[A,U]=y.useState(null),L=Ol(n),[W,I]=y.useState(!1),H=y.useRef(!1);y.useEffect(()=>{if(g)return nT(g)},[g]),VC();const F=y.useCallback(M=>{const[ie,...Se]=L().map(re=>re.ref.current),[se]=Se.slice(-1),te=document.activeElement;for(const re of M)if(re===te||(re==null||re.scrollIntoView({block:"nearest"}),re===ie&&_&&(_.scrollTop=0),re===se&&_&&(_.scrollTop=_.scrollHeight),re==null||re.focus(),document.activeElement!==te))return},[L,_]),B=y.useCallback(()=>F([T,g]),[F,T,g]);y.useEffect(()=>{W&&B()},[W,B]);const{onOpenChange:C,triggerPointerDownPosRef:R}=m;y.useEffect(()=>{if(g){let M={x:0,y:0};const ie=se=>{var te,re;M={x:Math.abs(Math.round(se.pageX)-(((te=R.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(se.pageY)-(((re=R.current)==null?void 0:re.y)??0))}},Se=se=>{M.x<=10&&M.y<=10?se.preventDefault():g.contains(se.target)||C(!1),document.removeEventListener("pointermove",ie),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",Se,{capture:!0})}}},[g,C,R]),y.useEffect(()=>{const M=()=>C(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[C]);const[$,V]=X0(M=>{const ie=L().filter(te=>!te.disabled),Se=ie.find(te=>te.ref.current===document.activeElement),se=Z0(ie,M,Se);se&&setTimeout(()=>se.ref.current.focus())}),z=y.useCallback((M,ie,Se)=>{const se=!H.current&&!Se;(m.value!==void 0&&m.value===ie||se)&&(N(M),se&&(H.current=!0))},[m.value]),Y=y.useCallback(()=>g==null?void 0:g.focus(),[g]),K=y.useCallback((M,ie,Se)=>{const se=!H.current&&!Se;(m.value!==void 0&&m.value===ie||se)&&U(M)},[m.value]),fe=r==="popper"?Wc:$0,be=fe===Wc?{side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:f,sticky:x,hideWhenDetached:p,avoidCollisions:w}:{};return S.jsx(I0,{scope:n,content:g,viewport:_,onViewportChange:E,itemRefCallback:z,selectedItem:T,onItemLeave:Y,itemTextRefCallback:K,focusSelectedItem:B,selectedItemText:A,position:r,isPositioned:W,searchRef:$,children:S.jsx(k0,{as:GT,allowPinchZoom:!0,children:S.jsx(m0,{asChild:!0,trapped:m.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:ee(o,M=>{var ie;(ie=m.trigger)==null||ie.focus({preventScroll:!0}),M.preventDefault()}),children:S.jsx(pl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:S.jsx(fe,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:M=>M.preventDefault(),...v,...be,onPlaced:()=>I(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ee(v.onKeyDown,M=>{const ie=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!ie&&M.key.length===1&&V(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let se=L().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(M.key)&&(se=se.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const te=M.target,re=se.indexOf(te);se=se.slice(re+1)}setTimeout(()=>F(se)),M.preventDefault()}})})})})})})});L0.displayName=qT;var QT="SelectItemAlignedPosition",$0=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=lr(zr,n),i=ur(zr,n),[a,l]=y.useState(null),[u,c]=y.useState(null),d=ke(t,k=>c(k)),h=Ol(n),f=y.useRef(!1),x=y.useRef(!0),{viewport:p,selectedItem:w,selectedItemText:v,focusSelectedItem:m}=i,g=y.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&w&&v){const k=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),A=v.getBoundingClientRect();if(s.dir!=="rtl"){const te=A.left-T.left,re=N.left-te,Ue=k.left-re,mt=k.width+Ue,dr=Math.max(mt,T.width),_n=window.innerWidth-Nt,fr=Op(re,[Nt,Math.max(Nt,_n-dr)]);a.style.minWidth=mt+"px",a.style.left=fr+"px"}else{const te=T.right-A.right,re=window.innerWidth-N.right-te,Ue=window.innerWidth-k.right-re,mt=k.width+Ue,dr=Math.max(mt,T.width),_n=window.innerWidth-Nt,fr=Op(re,[Nt,Math.max(Nt,_n-dr)]);a.style.minWidth=mt+"px",a.style.right=fr+"px"}const U=h(),L=window.innerHeight-Nt*2,W=p.scrollHeight,I=window.getComputedStyle(u),H=parseInt(I.borderTopWidth,10),F=parseInt(I.paddingTop,10),B=parseInt(I.borderBottomWidth,10),C=parseInt(I.paddingBottom,10),R=H+F+W+C+B,$=Math.min(w.offsetHeight*5,R),V=window.getComputedStyle(p),z=parseInt(V.paddingTop,10),Y=parseInt(V.paddingBottom,10),K=k.top+k.height/2-Nt,fe=L-K,be=w.offsetHeight/2,M=w.offsetTop+be,ie=H+F+M,Se=R-ie;if(ie<=K){const te=U.length>0&&w===U[U.length-1].ref.current;a.style.bottom="0px";const re=u.clientHeight-p.offsetTop-p.offsetHeight,Ue=Math.max(fe,be+(te?Y:0)+re+B),mt=ie+Ue;a.style.height=mt+"px"}else{const te=U.length>0&&w===U[0].ref.current;a.style.top="0px";const Ue=Math.max(K,H+p.offsetTop+(te?z:0)+be)+Se;a.style.height=Ue+"px",p.scrollTop=ie-K+p.offsetTop}a.style.margin=`${Nt}px 0`,a.style.minHeight=$+"px",a.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>f.current=!0)}},[h,s.trigger,s.valueNode,a,u,p,w,v,s.dir,r]);Fe(()=>g(),[g]);const[b,_]=y.useState();Fe(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const E=y.useCallback(k=>{k&&x.current===!0&&(g(),m==null||m(),x.current=!1)},[g,m]);return S.jsx(JT,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:S.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:S.jsx(le.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});$0.displayName=QT;var YT="SelectPopperPosition",Wc=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Nt,...s}=e,i=Nl(n);return S.jsx(Fy,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Wc.displayName=YT;var[JT,kf]=rs(zr,{}),Vc="SelectViewport",M0=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=ur(Vc,n),i=kf(Vc,n),a=ke(t,s.onViewportChange),l=y.useRef(0);return S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),S.jsx(Rl.Slot,{scope:n,children:S.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ee(o.onScroll,u=>{const c=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&d){const f=Math.abs(l.current-c.scrollTop);if(f>0){const x=window.innerHeight-Nt*2,p=parseFloat(d.style.minHeight),w=parseFloat(d.style.height),v=Math.max(p,w);if(v<x){const m=v+f,g=Math.min(x,m),b=m-g;d.style.height=g+"px",d.style.bottom==="0px"&&(c.scrollTop=b>0?b:0,d.style.justifyContent="flex-end")}}}l.current=c.scrollTop})})})]})});M0.displayName=Vc;var D0="SelectGroup",[XT,ZT]=rs(D0),eP=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cf();return S.jsx(XT,{scope:n,id:o,children:S.jsx(le.div,{role:"group","aria-labelledby":o,...r,ref:t})})});eP.displayName=D0;var F0="SelectLabel",U0=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ZT(F0,n);return S.jsx(le.div,{id:o.id,...r,ref:t})});U0.displayName=F0;var Qa="SelectItem",[tP,z0]=rs(Qa),B0=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=lr(Qa,n),l=ur(Qa,n),u=a.value===r,[c,d]=y.useState(s??""),[h,f]=y.useState(!1),x=ke(t,m=>{var g;return(g=l.itemRefCallback)==null?void 0:g.call(l,m,r,o)}),p=cf(),w=y.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return S.jsx(tP,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:y.useCallback(m=>{d(g=>g||((m==null?void 0:m.textContent)??"").trim())},[]),children:S.jsx(Rl.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:S.jsx(le.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:x,onFocus:ee(i.onFocus,()=>f(!0)),onBlur:ee(i.onBlur,()=>f(!1)),onClick:ee(i.onClick,()=>{w.current!=="mouse"&&v()}),onPointerUp:ee(i.onPointerUp,()=>{w.current==="mouse"&&v()}),onPointerDown:ee(i.onPointerDown,m=>{w.current=m.pointerType}),onPointerMove:ee(i.onPointerMove,m=>{var g;w.current=m.pointerType,o?(g=l.onItemLeave)==null||g.call(l):w.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ee(i.onPointerLeave,m=>{var g;m.currentTarget===document.activeElement&&((g=l.onItemLeave)==null||g.call(l))}),onKeyDown:ee(i.onKeyDown,m=>{var b;((b=l.searchRef)==null?void 0:b.current)!==""&&m.key===" "||(UT.includes(m.key)&&v(),m.key===" "&&m.preventDefault())})})})})});B0.displayName=Qa;var _s="SelectItemText",W0=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=lr(_s,n),a=ur(_s,n),l=z0(_s,n),u=VT(_s,n),[c,d]=y.useState(null),h=ke(t,v=>d(v),l.onItemTextChange,v=>{var m;return(m=a.itemTextRefCallback)==null?void 0:m.call(a,v,l.value,l.disabled)}),f=c==null?void 0:c.textContent,x=y.useMemo(()=>S.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value),[l.disabled,l.value,f]),{onNativeOptionAdd:p,onNativeOptionRemove:w}=u;return Fe(()=>(p(x),()=>w(x)),[p,w,x]),S.jsxs(S.Fragment,{children:[S.jsx(le.span,{id:l.textId,...s,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Vr.createPortal(s.children,i.valueNode):null]})});W0.displayName=_s;var V0="SelectItemIndicator",H0=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return z0(V0,n).isSelected?S.jsx(le.span,{"aria-hidden":!0,...r,ref:t}):null});H0.displayName=V0;var Hc="SelectScrollUpButton",K0=y.forwardRef((e,t)=>{const n=ur(Hc,e.__scopeSelect),r=kf(Hc,e.__scopeSelect),[o,s]=y.useState(!1),i=ke(t,r.onScrollButtonChange);return Fe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?S.jsx(G0,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});K0.displayName=Hc;var Kc="SelectScrollDownButton",q0=y.forwardRef((e,t)=>{const n=ur(Kc,e.__scopeSelect),r=kf(Kc,e.__scopeSelect),[o,s]=y.useState(!1),i=ke(t,r.onScrollButtonChange);return Fe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,c=Math.ceil(l.scrollTop)<u;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?S.jsx(G0,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});q0.displayName=Kc;var G0=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=ur("SelectScrollButton",n),i=y.useRef(null),a=Ol(n),l=y.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return y.useEffect(()=>()=>l(),[l]),Fe(()=>{var c;const u=a().find(d=>d.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[a]),S.jsx(le.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ee(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ee(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ee(o.onPointerLeave,()=>{l()})})}),nP="SelectSeparator",Q0=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return S.jsx(le.div,{"aria-hidden":!0,...r,ref:t})});Q0.displayName=nP;var qc="SelectArrow",rP=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Nl(n),s=lr(qc,n),i=ur(qc,n);return s.open&&i.position==="popper"?S.jsx(Uy,{...o,...r,ref:t}):null});rP.displayName=qc;var oP="SelectBubbleInput",Y0=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=y.useRef(null),s=ke(r,o),i=XC(t);return y.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&c){const d=new Event("change",{bubbles:!0});c.call(a,t),a.dispatchEvent(d)}},[i,t]),S.jsx(le.select,{...n,style:{...Mv,...n.style},ref:s,defaultValue:t})});Y0.displayName=oP;function J0(e){return e===""||e===void 0}function X0(e){const t=Bt(e),n=y.useRef(""),r=y.useRef(0),o=y.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Z0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=sP(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function sP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}
163var iP=C0,ew=P0,aP=O0,lP=N0,uP=A0,tw=j0,cP=M0,nw=U0,rw=B0,dP=W0,fP=H0,ow=K0,sw=q0,iw=Q0;const zp=iP,Bp=aP,Gc=y.forwardRef(({className:e,children:t,...n},r)=>S.jsxs(ew,{ref:r,className:Le("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,S.jsx(lP,{asChild:!0,children:S.jsx(iy,{className:"h-4 w-4 opacity-50"})})]}));Gc.displayName=ew.displayName;const aw=y.forwardRef(({className:e,...t},n)=>S.jsx(ow,{ref:n,className:Le("flex cursor-default items-center justify-center py-1",e),...t,children:S.jsx(mS,{className:"h-4 w-4"})}));aw.displayName=ow.displayName;const lw=y.forwardRef(({className:e,...t},n)=>S.jsx(sw,{ref:n,className:Le("flex cursor-default items-center justify-center py-1",e),...t,children:S.jsx(iy,{className:"h-4 w-4"})}));lw.displayName=sw.displayName;const Qc=y.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>S.jsx(uP,{children:S.jsxs(tw,{ref:o,className:Le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[S.jsx(aw,{}),S.jsx(cP,{className:Le("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),S.jsx(lw,{})]})}));Qc.displayName=tw.displayName;const hP=y.forwardRef(({className:e,...t},n)=>S.jsx(nw,{ref:n,className:Le("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));hP.displayName=nw.displayName;const wr=y.forwardRef(({className:e,children:t,...n},r)=>S.jsxs(rw,{ref:r,className:Le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[S.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:S.jsx(fP,{children:S.jsx(pS,{className:"h-4 w-4"})})}),S.jsx(dP,{children:t})]}));wr.displayName=rw.displayName;const pP=y.forwardRef(({className:e,...t},n)=>S.jsx(iw,{ref:n,className:Le("-mx-1 my-1 h-px bg-muted",e),...t}));pP.displayName=iw.displayName;const mP="modulepreload",gP=function(e){return"/"+e},Wp={},wi=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=gP(l),l in Wp)return;Wp[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":mP,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},vP=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>wi(async()=>{const{default:r}=await Promise.resolve().then(()=>os);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Cf extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class yP extends Cf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Vp extends Cf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Hp extends Cf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Yc;(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"})(Yc||(Yc={}));var wP=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
163return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class xP{constructor(t,{headers:n={},customFetch:r,region:o=Yc.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=vP(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return wP(this,void 0,void 0,function*(){try{const{headers:o,method:s,body:i}=n;let a={},{region:l}=n;l||(l=this.region);const u=new URL(`${this.url}/${t}`);l&&l!=="any"&&(a["x-region"]=l,u.searchParams.set("forceFunctionRegion",l));let c;i&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",c=i):typeof i=="string"?(a["Content-Type"]="text/plain",c=i):typeof FormData<"u"&&i instanceof FormData?c=i:(a["Content-Type"]="application/json",c=JSON.stringify(i)));const d=yield this.fetch(u.toString(),{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),o),body:c}).catch(p=>{throw new yP(p)}),h=d.headers.get("x-relay-error");if(h&&h==="true")throw new Vp(d);if(!d.ok)throw new Hp(d);let f=((r=d.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),x;return f==="application/json"?x=yield d.json():f==="application/octet-stream"?x=yield d.blob():f==="text/event-stream"?x=d:f==="multipart/form-data"?x=yield d.formData():x=yield d.text(),{data:x,error:null,response:d}}catch(o){return{data:null,error:o,response:o instanceof Hp||o instanceof Vp?o.context:void 0}}})}}var nt={},Tf={},Al={},xi={},jl={},Il={},bP=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Go=bP();const SP=Go.fetch,uw=Go.fetch.bind(Go),cw=Go.Headers,_P=Go.Request,EP=Go.Response,os=Object.freeze(Object.defineProperty({__proto__:null,Headers:cw,Request:_P,Response:EP,default:uw,fetch:SP},Symbol.toStringTag,{value:"Module"})),kP=Ww(os);var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});let CP=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
163de=t.code}};Ll.default=CP;var dw=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Il,"__esModule",{value:!0});const TP=dw(kP),PP=dw(Ll);let RP=class{constructor(t){var n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(n=t.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=TP.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=new Headers(this.headers),this.headers.set(t,n),this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let o=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var i,a,l,u;let c=null,d=null,h=null,f=s.status,x=s.statusText;if(s.ok){if(this.method!=="HEAD"){const m=await s.text();m===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((i=this.headers.get("Accept"))===null||i===void 0)&&i.includes("application/vnd.pgrst.plan+text"))?d=m:d=JSON.parse(m))}const w=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),v=(l=s.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");w&&v&&v.length>1&&(h=parseInt(v[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,h=null,f=406,x="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const w=await s.text();try{c=JSON.parse(w),Array.isArray(c)&&s.status===404&&(d=[],c=null,f=200,x="OK")}catch{s.status===404&&w===""?(f=204,x="No Content"):c={message:w}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,f=200,x="OK"),c&&this.shouldThrowOnError)throw new PP.default(c)}return{error:c,data:d,count:h,status:f,statusText:x}});return this.shouldThrowOnError||(o=o.catch(s=>{var i,a,l;return{error:{message:`${(i=s==null?void 0:s.name)!==null&&i!==void 0?i:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(a=s==null?void 0:s.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=s==null?void 0:s.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),o.then(t,n)}returns(){return this}overrideTypes(){return this}};Il.default=RP;var OP=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jl,"__esModule",{value:!0});const NP=OP(Il);let AP=class extends NP.default{select(t){let n=!1;const r=(t??"*").split("").map(o=>/\s/.test(o)&&!n?"":(o==='"'&&(n=!n),o)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:o,referencedTable:s=o}={}){const i=s?`${s}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const o=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(o,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:o=r}={}){const s=typeof o>"u"?"offset":`${o}.offset`,i=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,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}
163explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:o=!1,wal:s=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,o?"buffers":null,s?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${u}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};jl.default=AP;var jP=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xi,"__esModule",{value:!0});const IP=jP(jl);let LP=class extends IP.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(o=>typeof o=="string"&&new RegExp("[,()]").test(o)?`"${o}"`:`${o}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:o}={}){let s="";o==="plain"?s="pl":o==="phrase"?s="ph":o==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${s}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const o=r?`${r}.or`:"or";return this.url.searchParams.append(o,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};xi.default=LP;var $P=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Al,"__esModule",{value:!0});const ys=$P(xi);let MP=class{constructor(t,{headers:n={},schema:r,fetch:o}){this.url=t,this.headers=new Headers(n),this.schema=r,this.fetch=o}select(t,{head:n=!1,count:r}={}){const o=n?"HEAD":"GET";let s=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",i),r&&this.headers.append("Prefer",`count=${r}`),new ys.default({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:n,defaultToNull:r=!0}={}){var o;const s="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const i=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
1630){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new ys.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:o,defaultToNull:s=!0}={}){var i;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),o&&this.headers.append("Prefer",`count=${o}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new ys.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(t,{count:n}={}){var r;const o="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new ys.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var n;const r="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new ys.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};Al.default=MP;var fw=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tf,"__esModule",{value:!0});const DP=fw(Al),FP=fw(xi);let UP=class hw{constructor(t,{headers:n={},schema:r,fetch:o}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=o}from(t){const n=new URL(`${this.url}/${t}`);return new DP.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new hw(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:o=!1,count:s}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;r||o?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{l.searchParams.append(d,h)})):(a="POST",u=n);const c=new Headers(this.headers);return s&&c.set("Prefer",`count=${s}`),new FP.default({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};Tf.default=UP;var ss=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});nt.PostgrestError=nt.PostgrestBuilder=nt.PostgrestTransformBuilder=nt.PostgrestFilterBuilder=nt.PostgrestQueryBuilder=nt.PostgrestClient=void 0;const pw=ss(Tf);nt.PostgrestClient=pw.default;const mw=ss(Al);nt.PostgrestQueryBuilder=mw.default;const gw=ss(xi);nt.PostgrestFilterBuilder=gw.default;const vw=ss(jl);nt.PostgrestTransformBuilder=vw.default;const yw=ss(Il);nt.PostgrestBuilder=yw.default;const ww=ss(Ll);nt.PostgrestError=ww.default;var zP=nt.default={PostgrestClient:pw.default,PostgrestQueryBuilder:mw.default,PostgrestFilterBuilder:gw.default,PostgrestTransformBuilder:vw.default,PostgrestBuilder:yw.default,PostgrestError:ww.default};const{PostgrestClient:BP,PostgrestQueryBuilder:QO,PostgrestFilterBuilder:YO,PostgrestTransformBuilder:JO,PostgrestBuilder:XO,PostgrestError:ZO}=zP;class WP{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."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,o=parseInt(r.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:
164import ws from "ws"
165new 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 n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
166
167Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const VP="2.15.5",HP=`realtime-js/${VP}`,KP="1.0.0",Jc=1e4,qP=1e3,GP=100;var Ls;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ls||(Ls={}));var Pe;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Pe||(Pe={}));var Mt;(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"})(Mt||(Mt={}));var Xc;(function(e){e.websocket="websocket"})(Xc||(Xc={}));var br;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(br||(br={}));class QP{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const o=n.getUint8(1),s=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+o));i=i+o;const l=r.decode(t.slice(i,i+s));i=i+s;const u=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class xw{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ce;(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"})(ce||(ce={}));const Kp=(e,t,n={})=>{var r;const o=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((s,i)=>(s[i]=YP(i,e,t,o),s),{})},YP=(e,t,n,r)=>{const o=t.find(a=>a.name===e),s=o==null?void 0:o.type,i=n[e];return s&&!r.includes(s)?bw(s,i):Zc(i)},bw=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return eR(t,n)}switch(e){case ce.bool:return JP(t);case ce.float4:case ce.float8:case ce.int2:case ce.int4:case ce.int8:case ce.numeric:case ce.oid:return XP(t);case ce.json:case ce.jsonb:return ZP(t);case ce.timestamp:return tR(t);case ce.abstime:case ce.date:case ce.daterange:case ce.int4range:case ce.int8range:case ce.money:case ce.reltime:case ce.text:case ce.time:case ce.timestamptz:case ce.timetz:case ce.tsrange:case ce.tstzrange:return Zc(t);default:return Zc(t)}},Zc=e=>e,JP=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},XP=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 7,709 bytes, line 167
167if(!Number.isNaN(t))return t}return e},ZP=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},eR=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const i=e.slice(1,n);try{s=JSON.parse("["+i+"]")}catch{s=i?i.split(","):[]}return s.map(a=>bw(t,a))}return e},tR=e=>typeof e=="string"?e.replace(" ","T"):e,Sw=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Tu{constructor(t,n,r={},o=Jc){this.channel=t,this.event=n,this.payload=r,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var qp;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(qp||(qp={}));class $s{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=$s.syncState(this.state,o,s,i),this.pendingDiffs.forEach(l=>{this.state=$s.syncDiff(this.state,l,s,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=$s.syncDiff(this.state,o,s,i),a())}),this.onJoin((o,s,i)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:s,newPresences:i})}),this.onLeave((o,s,i)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:s,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,o){const s=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(s,(u,c)=>{i[u]||(l[u]=c)}),this.map(i,(u,c)=>{const d=s[u];if(d){const h=c.map(w=>w.presence_ref),f=d.map(w=>w.presence_ref),x=c.filter(w=>f.indexOf(w.presence_ref)<0),p=d.filter(w=>h.indexOf(w.presence_ref)<0);x.length>0&&(a[u]=x),p.length>0&&(l[u]=p)}else a[u]=c}),this.syncDiff(s,{joins:a,leaves:l},r,o)}static syncDiff(t,n,r,o){const{joins:s,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),o||(o=()=>{}),this.map(s,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(f=>f.presence_ref),h=c.filter(f=>d.indexOf(f.presence_ref)<0);t[a].unshift(...h)}r(a,c,l)}),this.map(i,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[a]=u,o(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const o=t[r];return"metas"in o?n[r]=o.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=o,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Gp;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Gp||(Gp={}));var Ms;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ms||(Ms={}));var cn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(cn||(cn={}));class Pf{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Pe.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Tu(this,Mt.join,this.params,this.timeout),this.rejoinTimer=new xw(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Pe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Pe.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Pe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Pe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Pe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Mt.reply,{},(o,s)=>{this._trigger(this._replyEventName(s),o)}),this.presence=new $s(this),this.broadcastEndpointURL=Sw(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,o,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Pe.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(o=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&o!==void 0?o:[],c=!!this.bindings[Ms.PRESENCE]&&this.bindings[Ms.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,d={},h={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(cn.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(cn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var x;if(this.socket.setAuth(),f===void 0){t==null||t(cn.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,w=(x=p==null?void 0:p.length)!==null&&x!==void 0?x:0,v=[];for(let m=0;m<w;m++){const g=p[m],{filter:{event:b,schema:_,table:E,filter:k}}=g,T=f&&f[m];
167if(T&&T.event===b&&T.schema===_&&T.table===E&&T.filter===k)v.push(Object.assign(Object.assign({},g),{id:T.id}));else{this.unsubscribe(),this.state=Pe.errored,t==null||t(cn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(cn.SUBSCRIBED);return}}).receive("error",f=>{this.state=Pe.errored,t==null||t(cn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(cn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Pe.joined&&t===Ms.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,r)}async send(t,n={}){var r,o;if(!this._canPush()&&t.type==="broadcast"){const{event:s,payload:i}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((o=u.body)===null||o===void 0?void 0:o.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var i,a,l;const u=this._push(t.type,t,n.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)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Pe.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Mt.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(o=>{r=new Tu(this,Mt.leave,{},t),r.receive("ok",()=>{n(),o("ok")}).receive("timeout",()=>{n(),o("timed out")}).receive("error",()=>{o("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Pe.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const o=new AbortController,s=setTimeout(()=>o.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(s),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new Tu(this,t,n,r);return this._canPush()?o.send():this._addToPushBuffer(o),o}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>GP){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var o,s;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=Mt;if(r&&[a,l,u,c].indexOf(i)>=0&&r!==this._joinRef())return;let h=this._onMessage(i,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(f=>{var x,p,w;return((x=f.filter)===null||x===void 0?void 0:x.event)==="*"||((w=(p=f.filter)===null||p===void 0?void 0:p.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===i}).map(f=>f.callback(h,r)):(s=this.bindings[i])===null||s===void 0||s.filter(f=>{var x,p,w,v,m,g;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const b=f.id,_=(x=f.filter)===null||x===void 0?void 0:x.event;return b&&((p=n.ids)===null||p===void 0?void 0:p.includes(b))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const b=(m=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return b==="*"||b===((g=n==null?void 0:n.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof h=="object"&&"ids"in h){const x=h.data,{schema:p,table:w,commit_timestamp:v,type:m,errors:g}=x;h=Object.assign(Object.assign({},{schema:p,table:w,commit_timestamp:v,eventType:m,new:{},old:{},errors:g}),this._getPayloadRecords(x))}f.callback(h,r)})}_isClosed(){return this.state===Pe.closed}_isJoined(){return this.state===Pe.joined}_isJoining(){return this.state===Pe.joining}_isLeaving(){return this.state===Pe.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const o=t.toLocaleLowerCase(),s={type:o,filter:n,callback:r};return this.bindings[o]?this.bindings[o].push(s):this.bindings[o]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(o=>{var s;return!(((s=o.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Pf.isEqual(o.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Mt.close,{},t)}_onError(t){this._on(Mt.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Pe.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Kp(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Kp(t.columns,t.old_record)),n}}const Pu=()=>{},Yi={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},nR=[1e3,2e3,5e3,1e4],rR=1e4,oR=`
168  addEventListener("message", (e) => {
169    if (e.data.event === "start") {
170      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
171    }
172  });`;class sR{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Jc,this.transport=null,this.heartbeatIntervalMs=Yi.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Pu,this.ref=0,this.reconnectTimer=null,this.logger=Pu,this.conn=null,this.sendBuffer=[],this.serializer
172=new QP,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=o=>{let s;return o?s=o:typeof fetch>"u"?s=(...i)=>wi(async()=>{const{default:a}=await Promise.resolve().then(()=>os);return{default:a}},void 0).then(({default:a})=>a(...i)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):s=fetch,(...i)=>s(...i)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Xc.websocket}`,this.httpEndpoint=Sw(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=WP.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
173
174To use Realtime in Node.js, you need to provide a WebSocket implementation:
175
176Option 1: Use Node.js 22+ which has native WebSocket support
177Option 2: Install and provide the "ws" package:
178
179  npm install ws
180
181  import ws from "ws"
182  const client = new RealtimeClient(url, {
183    ...options,
184    transport: ws
185  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:KP}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Ls.connecting:return br.Connecting;case Ls.open:return br.Open;case Ls.closing:return br.Closing;default:return br.Closed}}isConnected(){return this.connectionState()===br.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,o=this.getChannels().find(s=>s.topic===r);if(o)return o;{const s=new Pf(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){const{topic:n,event:r,payload:o,ref:s}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${s})`,o),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(qP,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Yi.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
185{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:o,payload:s,ref:i}=n,a=i?`(${i})`:"",l=s.status||"";this.log("receive",`${l} ${r} ${o} ${a}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(o,s,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Mt.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",o=new URLSearchParams(n);return`${t}${r}${o}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([oR],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const o={access_token:n,version:HP};n&&r.updateJoinPayload(o),r.joinedOnce&&r._isJoined()&&r._push(Mt.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new xw(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Yi.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,o,s,i,a,l,u,c;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
185imeout)!==null&&r!==void 0?r:Jc,this.heartbeatIntervalMs=(o=t==null?void 0:t.heartbeatIntervalMs)!==null&&o!==void 0?o:Yi.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!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:Pu,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=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:d=>nR[d-1]||rR,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(d,h)=>h(JSON.stringify(d)),this.decode=(c=t==null?void 0:t.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class Rf extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Re(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class iR extends Rf{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class ed extends Rf{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var aR=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const _w=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>wi(async()=>{const{default:r}=await Promise.resolve().then(()=>os);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},lR=()=>aR(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield wi(()=>Promise.resolve().then(()=>os),void 0)).Response:Response}),td=e=>{if(Array.isArray(e))return e.map(n=>td(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[o]=td(r)}),t},uR=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var Kr=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Ru=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),cR=(e,t,n)=>Kr(void 0,void 0,void 0,function*(){const r=yield lR();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(o=>{const s=e.status||500,i=(o==null?void 0:o.statusCode)||s+"";t(new iR(Ru(o),s,i))}).catch(o=>{t(new ed(Ru(o),o))}):t(new ed(Ru(e),e))}),dR=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?o:(uR(r)?(o.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),o.body=JSON.stringify(r)):o.body=r,t!=null&&t.duplex&&(o.duplex=t.duplex),Object.assign(Object.assign({},o),n))};function bi(e,t,n,r,o,s){return Kr(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,dR(t,r,o,s)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>cR(l,a,r))})})}function Ya(e,t,n,r){return Kr(this,void 0,void 0,function*(){return bi(e,"GET",t,n,r)})}function qt(e,t,n,r,o){return Kr(this,void 0,void 0,function*(){return bi(e,"POST",t,r,o,n)})}function nd(e,t,n,r,o){return Kr(this,void 0,void 0,function*(){return bi(e,"PUT",t,r,o,n)})}function fR(e,t,n,r){return Kr(this,void 0,void 0,function*(){return bi(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Ew(e,t,n,r,o){return Kr(this,void 0,void 0,function*(){return bi(e,"DELETE",t,r,o,n)})}var qe=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
185return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const hR={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Qp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class pR{constructor(t,n={},r,o){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=_w(o)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,r,o){return qe(this,void 0,void 0,function*(){try{let s;const i=Object.assign(Object.assign({},Qp),o);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",this.encodeMetadata(l)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",this.encodeMetadata(l))):(s=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),o!=null&&o.headers&&(a=Object.assign(Object.assign({},a),o.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),d=yield(t=="PUT"?nd:qt)(this.fetch,`${this.url}/object/${c}`,s,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Re(s))return{data:null,error:s};throw s}})}upload(t,n,r){return qe(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,o){return qe(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),i=this._getFinalPath(s),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Qp.upsert},o),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield nd(this.fetch,a.toString(),l,{headers:c});return{data:{path:s,fullPath:d.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Re(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return qe(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const o=Object.assign({},this.headers);n!=null&&n.upsert&&(o["x-upsert"]="true");const s=yield qt(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:o}),i=new URL(this.url+s.url),a=i.searchParams.get("token");if(!a)throw new Rf("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Re(r))return{data:null,error:r};throw r}})}update(t,n,r){return qe(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return qe(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Re(o))return{data:null,error:o};throw o}})}copy(t,n,r){return qe(this,void 0,void 0,function*(){try{return{data:{path:(yield qt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Re(o))return{data:null,error:o};throw o}})}createSignedUrl(t,n,r){return qe(this,void 0,void 0,function*(){try{let o=this._getFinalPath(t),s=yield qt(this.fetch,`${this.url}/object/sign/${o}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${i}`)},{data:s,error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Re(o))return{data:null,error:o};throw o}})}createSignedUrls(t,n,r){return qe(this,void 0,void 0,function*(){try{const o=yield qt(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:o.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${s}`):null})),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Re(o))return{data:null,error:o};throw o}})}download(t,n){return qe(this,void 0,void 0,function*(){const o=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=s?`?${s}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield Ya(this.fetch,`${this.url}/${o}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Re(a))return{data:null,error:a};throw a}})}info(t){return qe(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield Ya(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:td(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Re(r))return{data:null,error:r};throw r}})}exists(t){return qe(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield fR(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Re(r)&&r instanceof ed){const o=r.originalError;if([400,404].includes(o==null?void 0:o.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),o=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&o.push(s);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&o.push(l);let u=o.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return qe(this,void 0,void 0,function*(){try{return{data:yield Ew(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Re(n))return{data:null,error:n};throw n}})}list(t,n,r){return qe(this,void 0,void 0,function*(){try{const o=Object.assign(Object.assign(Object.assign({},hR),n),{prefix:t||""});return{data:yield qt(this.fetch,`${this.url}/object/list/${this.bucketId}`,o,{headers:this.headers},r),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Re(o))return{data:null,error:o};throw o}})}listV2(t,n){return qe(this,void 0,void 0,function*(){try{const r=Object.assign({},t);return{data:yield qt(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Re(r))return{data:null,error:r};throw r}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const mR="2.12.1",gR={"X-Client-Info":`storage-js/${mR}`};var to=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
185return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class vR{constructor(t,n={},r,o){this.shouldThrowOnError=!1;const s=new URL(t);o!=null&&o.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href,this.headers=Object.assign(Object.assign({},gR),n),this.fetch=_w(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return to(this,void 0,void 0,function*(){try{return{data:yield Ya(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Re(t))return{data:null,error:t};throw t}})}getBucket(t){return to(this,void 0,void 0,function*(){try{return{data:yield Ya(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Re(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return to(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Re(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return to(this,void 0,void 0,function*(){try{return{data:yield nd(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Re(r))return{data:null,error:r};throw r}})}emptyBucket(t){return to(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Re(n))return{data:null,error:n};throw n}})}deleteBucket(t){return to(this,void 0,void 0,function*(){try{return{data:yield Ew(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Re(n))return{data:null,error:n};throw n}})}}class yR extends vR{constructor(t,n={},r,o){super(t,n,r,o)}from(t){return new pR(this.url,this.headers,t,this.fetch)}}const wR="2.57.4";let Es="";typeof Deno<"u"?Es="deno":typeof document<"u"?Es="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Es="react-native":Es="node";const xR={"X-Client-Info":`supabase-js-${Es}/${wR}`},bR={headers:xR},SR={schema:"public"},_R={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},ER={};var kR=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const CR=e=>{let t;return e?t=e:typeof fetch>"u"?t=uw:t=fetch,(...n)=>t(...n)},TR=()=>typeof Headers>"u"?cw:Headers,PR=(e,t,n)=>{const r=CR(n),o=TR();return(s,i)=>kR(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new o(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,Object.assign(Object.assign({},i),{headers:u}))})};var RR=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};function OR(e){return e.endsWith("/")?e:e+"/"}function NR(e,t){var n,r;const{db:o,auth:s,realtime:i,global:a}=e,{db:l,auth:u,realtime:c,global:d}=t,h={db:Object.assign(Object.assign({},l),o),auth:Object.assign(Object.assign({},u),s),realtime:Object.assign(Object.assign({},c),i),storage:{},global:Object.assign(Object.assign(Object.assign({},d),a),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>
185RR(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function AR(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(OR(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const kw="2.71.1",ao=30*1e3,rd=3,Ou=rd*ao,jR="http://localhost:9999",IR="supabase.auth.token",LR={"X-Client-Info":`gotrue-js/${kw}`},od="X-Supabase-Api-Version",Cw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},$R=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,MR=10*60*1e3;class Of extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function Q(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class DR extends Of{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function FR(e){return Q(e)&&e.name==="AuthApiError"}class Tw extends Of{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class cr extends Of{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class jn extends cr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function UR(e){return Q(e)&&e.name==="AuthSessionMissingError"}class Ji extends cr{constructor(){super("Auth session or user missing","AuthInvalidToken
185ResponseError",500,void 0)}}class Xi extends cr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Zi extends cr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function zR(e){return Q(e)&&e.name==="AuthImplicitGrantRedirectError"}class Yp extends cr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class sd extends cr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Nu(e){return Q(e)&&e.name==="AuthRetryableFetchError"}class Jp extends cr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class id extends cr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Xp=` 	
186\r=`.split(""),BR=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Xp.length;t+=1)e[Xp[t].charCodeAt(0)]=-2;for(let t=0;t<Ja.length;t+=1)e[Ja[t].charCodeAt(0)]=t;return e})();function Zp(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ja[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ja[r]),t.queuedBits-=6}}function Pw(e,t,n){const r=BR[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function em(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},s=i=>{HR(i,r,n)};for(let i=0;i<e.length;i+=1)Pw(e.charCodeAt(i),o,s);return t.join("")}function WR(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 VR(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const o=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}WR(r,t)}}function HR(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function KR(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)Pw(e.charCodeAt(o),n,r);return new Uint8Array(t)}function qR(e){const t=[];return VR(e,n=>t.push(n)),new Uint8Array(t)}function GR(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};return e.forEach(o=>Zp(o,n,r)),Zp(null,n,r),t.join("")}function QR(e){return Math.round(Date.now()/1e3)+e}function YR(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Ot=()=>typeof window<"u"&&typeof document<"u",mr={tested:!1,writable:!1},Rw=()=>{if(!Ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(mr.tested)return mr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),mr.tested=!0,mr.writable=!0}catch{mr.tested=!0,mr.writable=!1}return mr.writable};function JR(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((o,s)=>{t[s]=o})}catch{}return n.searchParams.forEach((r,o)=>{t[o]=r}),t}const Ow=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>wi(async()=>{const{default:r}=await Promise.resolve().then(()=>os);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},XR=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",lo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},gr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},On=async(e,t)=>{await e.removeItem(t)};class $l{constructor(){this.promise=new $l.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}$l.promiseConstructor=Promise;function Au(e){const t=e.split(".");if(t.length!==3)throw new id("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!$R.test(t[r]))throw new id("JWT not in base64url format");return{header:JSON.parse(em(t[0])),payload:JSON.parse(em(t[1])),signature:KR(t[2]),raw:{header:t[0],payload:t[1]}}}async function ZR(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function eO(e,t){return new Promise((r,o)=>{(async()=>{for(let s=0;s<1/0;s++)try{const i=await e(s);if(!t(s,null,i)){r(i);return}}catch(i){if(!t(s,i)){o(i);return}}})()})}function tO(e){return("0"+e.toString(16)).substr(-2)}function nO(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let o="";for(let s=0;s<56;s++)o+=n.charAt(Math.floor(Math.random()*r));return o}return crypto.getRandomValues(t),Array.from(t,tO).join("")}async function rO(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
186n),o=new Uint8Array(r);return Array.from(o).map(s=>String.fromCharCode(s)).join("")}async function oO(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await rO(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function no(e,t,n=!1){const r=nO();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await lo(e,`${t}-code-verifier`,o);const s=await oO(r);return[s,r===s?"plain":"s256"]}const sO=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function iO(e){const t=e.headers.get(od);if(!t||!t.match(sO))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function aO(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 lO(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 uO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ro(e){if(!uO.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ju(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function tm(e){return JSON.parse(JSON.stringify(e))}var cO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),dO=[502,503,504];async function nm(e){var t;if(!XR(e))throw new sd(xr(e),0);if(dO.includes(e.status))throw new sd(xr(e),e.status);let n;try{n=await e.json()}catch(s){throw new Tw(xr(s),s)}let r;const o=iO(e);if(o&&o.getTime()>=Cw["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Jp(xr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new jn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,i)=>s&&typeof i=="string",!0))throw new Jp(xr(n),e.status,n.weak_password.reasons);throw new DR(xr(n),e.status||500,r)}const fO=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),o.body=JSON.stringify(r),Object.assign(Object.assign({},o),n))};async function X(e,t,n,r){var o;const s=Object.assign({},r==null?void 0:r.headers);s[od]||(s[od]=Cw["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const i=(o=r==null?void 0:r.query)!==null&&o!==void 0?o:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await hO(e,t,n+a,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function hO(e,t,n,r,o,s){const i=fO(t,r,o,s);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new sd(xr(l),0)}if(a.ok||await nm(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await nm(l)}}function ln(e){var t;let n=null;vO(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=QR(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function rm(e){const t=ln(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Dn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function pO(e){return{data:e,error:null}}function mO(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s}=e,i=cO(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function gO(e){return e}function vO(e){return e.access_token&&e.refresh_token&&e.expires_in}const Iu=["global","local","others"];var yO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};class wO{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Ow(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=Iu[0]){if(Iu.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Iu.join(", ")}`);try{return await X(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await X(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Dn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=yO(t,["options"]),o=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(o.new_email=r==null?void 0:r.newEmail,delete o.newEmail),await X(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:mO,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Q(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await X(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Dn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,o,s,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await X(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(o=t==null?void 0:t.perPage)===null||o===void 0?void 0:o.toString())!==null&&s!==void 0?s:""},xform:gO});if(c.error)throw c.error;const d=await c.json(),h=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(x=>{const p=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(x.split(";")[1].split("=")[1]);u[`${w}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(Q(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){ro(t);try{return await X(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Dn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){ro(t);try{return await X(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Dn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){ro(t);
186try{return await X(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Dn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){ro(t.userId);try{const{data:n,error:r}=await X(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:r}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _deleteFactor(t){ro(t.userId),ro(t.id);try{return{data:await X(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}}function om(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function xO(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const oo={debug:!!(globalThis&&Rw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
186class Nw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class bO extends Nw{}async function SO(e,t,n){oo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),oo.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async o=>{if(o){oo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{oo.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw oo.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new bO(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(oo.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}xO();const _O={url:jR,storageKey:IR,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:LR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function sm(e,t,n){return await n()}const so={};class li{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=li.nextInstanceID,li.nextInstanceID+=1,this.instanceID>0&&Ot()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const o=Object.assign(Object.assign({},_O),t);if(this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.persistSession=o.persistSession,this.storageKey=o.storageKey,this.autoRefreshToken=o.autoRefreshToken,this.admin=new wO({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=Ow(o.fetch),this.lock=o.lock||sm,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,o.lock?this.lock=o.lock:Ot()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=SO:this.lock=sm,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:Rw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=om(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=om(this.memoryStorage)),Ot()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=so[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){so[this.storageKey]=Object.assign(Object.assign({},so[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=so[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){so[this.storageKey]=Object.assign(Object.assign({},so[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${kw}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=JR(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Ot()&&this.detectSessionInUrl&&r!=="none"){const{data:o,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),zR(s)){const l=(t=s.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:s}}return await this._removeSession(),{error:s}}const{session:i,redirectType:a}=o;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Q(n)?{error:n}:{error:new Tw("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,o;try{const s=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(o=t==null?void 0:t.options)===null||o===void 0?void 0:o.captchaToken}},xform:ln}),{data:i,error:a}=s;
186if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(Q(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(t){var n,r,o;try{let s;if("email"in t){const{email:c,password:d,options:h}=t;let f=null,x=null;this.flowType==="pkce"&&([f,x]=await no(this.storage,this.storageKey)),s=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:x},xform:ln})}else if("phone"in t){const{phone:c,password:d,options:h}=t;s=await X(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(o=h==null?void 0:h.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:ln})}else throw new Xi("You must provide either an email or phone number and a password");const{data:i,error:a}=s;
186if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(Q(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:i,options:a}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:rm})}else if("phone"in t){const{phone:s,password:i,options:a}=t;n=await X(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:rm})}else throw new Xi("You must provide either an email or phone number and a password");const{data:r,error:o}=n;return o?{data:{user:null,session:null},error:o}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Ji}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:o})}catch(n){if(Q(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,o,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(o=t.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,r,o,s,i,a,l,u,c,d,h,f;let x,p;if("message"in t)x=t.message,p=t.signature;else{const{chain:w,wallet:v,statement:m,options:g}=t;let b;if(Ot())if(typeof v=="object")b=v;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))b=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=v}const _=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in b&&b.signIn){const E=await b.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g==null?void 0:g.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),m?{statement:m}:null));let k;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")k=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)k=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)x=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),p=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in b)||typeof b.signMessage!="function"||!("publicKey"in b)||typeof b!="object"||!b.publicKey||!("toBase58"in b.publicKey)||typeof b.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${_.host} wants you to sign in with your Solana account:`,b.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(o=(r=g==null?void 0:g.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((s=g==null?void 0:g.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((i=g==null?void 0:g.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((a=g==null?void 0:g.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((l=g==null?void 0:g.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((u=g==null?void 0:g.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((d=(c=g==null?void 0:g.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...g.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
187`);
187const E=await b.signMessage(new TextEncoder().encode(x),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=E}}try{const{data:w,error:v}=await X(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:GR(p)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:ln});if(v)throw v;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new Ji}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:v})}catch(w){if(Q(w))return{data:{user:null,session:null},error:w};throw w}}async _exchangeCodeForSession(t){const n=await gr(this.storage,`${this.storageKey}-code-verifier`),[r,o]=(n??"").split("/");try{const{data:s,error:i}=await X(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:ln});if(await On(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new Ji}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:o??null}),error:i})}catch(s){if(Q(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:o,access_token:s,nonce:i}=t,a=await X(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:o,access_token:s,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:ln}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Ji}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(Q(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,o,s,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await no(this.storage,this.storageKey));const{error:d}=await X(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await X(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(o=l==null?void 0:l.data)!==null&&o!==void 0?o:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new Xi("You must provide either an email or phone number.")}catch(a){if(Q(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let o,s;"options"in t&&(o=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await X(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:o,xform:ln});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(o){if(Q(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithSSO(t){var n,r,o;try{let s=null,i=null;return this.flowType==="pkce"&&([s,i]=await no(this.storage,this.storageKey)),await X(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((o=t==null?void 0:t.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:i}),headers:this.headers,xform:pO})}catch(s){if(Q(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new jn;const{error:o}=await X(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:o}})}catch(t){if(Q(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:o,options:s}=t,{error:i}=await X(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:o,options:s}=t,{data:i,error:a}=await X(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new Xi("You must provide either an email or phone number and a type")}catch(n){if(Q(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await gr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
187id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Ou:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await gr(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=ju()}if(this.storage.isServer&&t.user){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,c)=>(!i&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,c))})}return{data:{session:t},error:null}}const{session:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:o},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await X(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Dn}):await this._useSession(async n=>{var r,o,s;const{data:i,error:a}=n;if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new jn}:await X(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(o=i.session)===null||o===void 0?void 0:o.access_token)!==null&&s!==void 0?s:void 0,xform:Dn})})}catch(n){if(Q(n))return UR(n)&&(await this._removeSession(),await On(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:o,error:s}=r;if(s)throw s;if(!o.session)throw new jn;const i=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await no(this.storage,this.storageKey));const{data:u,error:c}=await X(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Dn});if(c)throw c;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new jn;const n=Date.now()/1e3;let r=n,o=!0,s=null;const{payload:i}=Au(t.access_token);if(i.exp&&(r=i.exp,o=r<=n),o){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(n){if(Q(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new jn;const{session:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:o?{data:{user:o.user,session:o},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(Q(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!Ot())throw new Zi("No browser detected.");
187if(t.error||t.error_description||t.error_code)throw new Zi(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Yp("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Zi("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Yp("No code detected.");const{data:m,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const b=new URL(window.location.href);return b.searchParams.delete("code"),window.history.replaceState(window.history.state,"",b.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:o,access_token:s,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!i||!u)throw new Zi("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let h=c+d;l&&(h=parseInt(l));const f=h-c;f*1e3<=ao&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const x=h-d;c-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,h,c):c-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,h,c);const{data:p,error:w}=await this._getUser(s);if(w)throw w;const v={provider_token:r,provider_refresh_token:o,access_token:s,expires_in:d,expires_at:h,refresh_token:i,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:t.type},error:null}}catch(r){if(Q(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await gr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return{error:s};const i=(r=o.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(FR(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await On(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=YR(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,o;try{const{data:{session:s},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((o=this.stateChangeEmitters.get(t))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,o=null;this.flowType==="pkce"&&([r,o]=await no(this.storage,this.storageKey,!0));try{return await X(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(Q(s))return{data:null,error:s};throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:o}=await this._useSession(async s=>{var i,a,l,u,c;const{data:d,error:h}=s;if(h)throw h;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 X(this.fetch,"GET",f,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(o)throw o;return Ot()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(Q(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)throw i;
187return await X(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(o=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await eO(async o=>(o>0&&await ZR(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await X(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ln})),(o,s)=>{const i=200*Math.pow(2,o);return s&&Nu(s)&&Date.now()+i-r<ao})}catch(r){if(this._debug(n,"error",r),Q(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Ot()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const o=await gr(this.storage,this.storageKey);if(o&&this.userStorage){let i=await gr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:o.user},await lo(this.userStorage,this.storageKey+"-user",i)),o.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:ju()}else if(o&&!o.user&&!o.user){const i=await gr(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(o.user=i.user,await On(this.storage,this.storageKey+"-user"),await lo(this.storage,this.storageKey,o)):o.user=ju()}if(this._debug(r,"session from storage",o),!this._isValidSession(o)){this._debug(r,"session is not valid"),o!==null&&await this._removeSession();return}const s=((n=o.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Ou;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Ou}s`),s){if(this.autoRefreshToken&&o.refresh_token){const{error:i}=await this._callRefreshToken(o.refresh_token);i&&(console.error(i),Nu(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(o.access_token);!a&&(i!=null&&i.user)?(o.user=i.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(r,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(r,"error",o),console.error(o);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new jn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new $l;const{data:s,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!s.session)throw new jn;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={session:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(o,"error",s),Q(s)){const i={session:null,error:s};return Nu(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(t,n,r=!0){const o=`#_notifyAllSubscribers(${t})`;this._debug(o,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(i),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(o,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await lo(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const s=tm(o);await lo(this.storage,this.storageKey,s)}else{const o=tm(n);await lo(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),await On(this.storage,this.storageKey),await On(this.storage,this.storageKey+"-code-verifier"),await On(this.storage,this.storageKey+"-user"),this.userStorage&&await On(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ot()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
187catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ao);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((r.expires_at*1e3-t)/ao);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${ao}ms, refresh threshold is ${rd} ticks`),o<=rd&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Nw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ot()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const o=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&o.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&o.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,i]=await no(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(i)}`});o.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);o.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&o.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${o.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?{data:null,error:s}:await X(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:u}=await X(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((o=l==null?void 0:l.totp)===null||o===void 0)&&o.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return{data:null,error:s};const{data:i,error:a}=await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(Q(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?{data:null,error:s}:await X(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Q(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],o=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),s=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:o,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:o},error:s}=t;if(s)return{data:null,error:s};if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Au(o.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=o.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const o=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+MR>o)return r;const{data:s,error:i}=await X(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=o,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:x}
187=await this.getSession();if(x||!f.session)return{data:null,error:x};r=f.session.access_token}const{header:o,payload:s,signature:i,raw:{header:a,payload:l}}=Au(r);n!=null&&n.allowExpired||aO(s.exp);const u=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:s,header:o,signature:i},error:null}}const c=lO(o.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,i,qR(`${a}.${l}`)))throw new id("Invalid JWT signature");return{data:{claims:s,header:o,signature:i},error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}}li.nextInstanceID=0;const EO=li;class kO extends EO{constructor(t){super(t)}}var CO=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class TO{constructor(t,n,r){var o,s,i;this.supabaseUrl=t,this.supabaseKey=n;const a=AR(t);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,u={db:SR,realtime:ER,auth:Object.assign(Object.assign({},_R),{storageKey:l}),global:bR},c=NR(r??{},u);this.storageKey=(o=c.auth.storageKey)!==null&&o!==void 0?o:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=c.auth)!==null&&i!==void 0?i:{},this.headers,c.global.fetch),this.fetch=PR(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new BP(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new yR(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new xP(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return CO(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,userStorage:s,storageKey:i,flowType:a,lock:l,debug:u},c,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new kO({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),c),storageKey:i,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,userStorage:s,flowType:a,lock:l,debug:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new sR(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const PO=(e,t,n)=>new TO(e,t,n);function RO(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}
187RO()&&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 OO="https://tenvpvdqddhgxvafbomf.supabase.co",NO="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRlbnZwdmRxZGRoZ3h2YWZib21mIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTg2NTc0MzMsImV4cCI6MjA3NDIzMzQzM30.yXtcRD51jC8wgp7yh3aNScSfJmKOE8aMLxu8jKWBMuY",AO=PO(OO,NO,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Aw="/assets/flock-logo-DiNFnQh2.png",jO=()=>{const e=wC(),{toast:t}=Rv(),[n,r]=y.useState({fullName:"",email:"",phone:"",doors:"",stage:""}),[o,s]=y.useState(!1),i=(l,u)=>{r(c=>({...c,[l]:u}))},a=async l=>{l.preventDefault(),s(!0);try{const{error:u}=await AO.from("form_submissions").insert({full_name:n.fullName,email:n.email,phone:n.phone,doors:n.doors,stage:n.stage});if(u){console.error("Error submitting form:",u),t({title:"Error",description:"There was an error submitting your form. Please try again.",variant:"destructive"});return}if(n.doors==="3+"&&(n.stage==="holding"||n.stage==="selling")){const d=`Residential doors owned: ${n.doors}, Landlord stage: ${n.stage}`,h=await fetch("https://apollo-production.flockhomes.com/",{method:"POST",body:JSON.stringify({operationName:"LandingCreateLead",query:"mutation LandingCreateLead($createLeadInput: Core_CreateLeadRequestInput!) {createLead(input: $createLeadInput) {    lead {     uuid      __typename    }    __typename  }}",variables:{createLeadInput:{fullName:n.fullName,email:n.email,phoneNumber:n.phone,source:"inbound",transactionType:"TRANSACTION_TYPE_CONTACT_INFORMATION",answers:JSON.stringify({additionalInfo:d,utmSource:"REIT Onboarding"})}}}),headers:{"Content-type":"application/json; charset=UTF-8",origin:"flockhomes.com"}});h.ok||console.error("Error sending to Flock system:",h.statusText)}t({title:"Success",description:"Your form has been submitted successfully!"}),e("/thank-you")}catch(u){console.error("Error submitting form:",u),t({title:"Error",description:"There was an error submitting your form. Please try again.",variant:"destructive"})}finally{s(!1)}};return S.jsx("div",{className:"min-h-screen bg-background font-outfit",children:S.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-12 lg:px-16 py-8",children:[S.jsx("div",{className:"mb-4",children:S.jsx("a",{href:"https://www.flockhomes.com",target:"_blank",rel:"noopener noreferrer",children:S.jsx("img",{src:Aw,alt:"FLOCK",className:"h-10 w-auto hover:opacity-80 transition-opacity cursor-pointer"})})}),S.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 lg:gap-12 items-start",children:[S.jsxs("div",{className:"space-y-6 lg:pr-8",children:[S.jsxs("div",{className:"space-y-4",children:[S.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-playfair font-black leading-[1.1] text-primary max-w-2xl",children:"Exit your real estate, without giving up your hard earned gains"}),S.jsxs("div",{className:"text-lg md:text-xl font-outfit font-normal text-flock-gray-7 leading-relaxed max-w-xl space-y-6",children:[S.jsx("p",{className:"text-base md:text-lg",children:"Instead of buying shares of a REIT and investing with significantly reduced after-tax proceeds, Flock Homes allows you to earn from a fund with tax-advantaged proceeds. The difference in returns can be substantial."}),S.jsx("p",{className:"text-base md:text-lg",children:"Flock has unlocked real estate's best kept secret - the 721 Exchange. It's a tax strategy long utilized by institutions and high net worth individuals."})]})]}),S.jsxs("div",{className:"space-y-4",children:[S.jsx("p",{className:"text-lg md:text-xl font-semibold text-flock-gray-8 font-outfit",children:"Flock has been the retirement solution for hundreds of landlords. Flock lets you:"}),S.jsxs("ul",{className:"space-y-3",children:[S.jsxs("li",{className:"flex items-center gap-4",children:[S.jsx("div",{className:"w-10 h-10 bg-flock-green-1 rounded-full flex items-center justify-center flex-shrink-0",children:S.jsx(hS,{className:"w-5 h-5 text-flock-green-6"})}),S.jsx("span",{className:"text-base md:text-lg font-outfit",children:"Defer & minimize taxes"})]}),S.jsxs("li",{className:"flex items-center gap-4",children:[S.jsx("div",{className:"w-10 h-10 bg-flock-green-1 rounded-full flex items-center justify-center flex-shrink-0",children:S.jsx(vS,{className:"w-5 h-5 text-flock-green-6"})}),S.jsx("span",{className:"text-base md:text-lg font-outfit",children:"Grow equity & receive passive income"})]}),S.jsxs("li",{className:"flex items-center gap-4",children:[S.jsx("div",{className:"w-10 h-10 bg-flock-green-1 rounded-full flex items-center justify-center flex-shrink-0",children:S.jsx(gS,{className:"w-5 h-5 text-flock-green-6"})}),S.jsx("span",{className:"text-base md:text-lg font-outfit",children:"Retire from being a landlord"})]})]})]})]}),S.jsx("div",{className:"lg:pl-4",children:S.jsxs("div",{className:"bg-card border border-flock-gray-2 rounded-lg p-4 md:p-6 shadow-sm max-w-md mx-auto lg:mx-0",children:[S.jsxs("div",{className:"mb-6",children:[S.jsx("h2",{className:"text-2xl font-playfair font-bold text-flock-gray-8 mb-2",children:"Request a Complimentary Valuation"}),S.jsx("p",{className:"font-outfit font-normal text-flock-gray-6",children:"Limited slots available before end of 2025 tax year"})]}),S.jsxs("form",{onSubmit:a,className:"space-y-4",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsx(io,{htmlFor:"fullName",className:"text-sm font-outfit font-medium text-flock-gray-8",children:"Full Name *"}),S.jsx(ga,{id:"fullName",type:"text",placeholder:"Enter your full name",value:n.fullName,onChange:l=>i("fullName",l.target.value),required:!0,className:"h-10 font-outfit border-flock-gray-2 focus:border-primary focus:ring-primary"})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx(io,{htmlFor:"email",className:"text-sm font-outfit font-medium text-flock-gray-8",children:"Email Address *"}),S.jsx(ga,{id:"email",type:"email",placeholder:"Enter your email",value:n.email,onChange:l=>i("email",l.target.value),required:!0,className:"h-10 font-outfit border-flock-gray-2 focus:border-primary focus:ring-primary"})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx(io,{htmlFor:"phone",className:"text-sm font-outfit font-medium text-flock-gray-8",children:"Phone Number *"}),S.jsx(ga,{id:"phone",type:"tel",placeholder:"Enter your phone number",value:n.phone,onChange:l=>i("phone",l.target.value),required:!0,className:"h-10 font-outfit border-flock-gray-2 focus:border-primary focus:ring-primary"})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx(io,{htmlFor:"doors",className:"text-sm font-outfit font-medium text-flock-gray-8",children:"How many residential rental doors do you own? *"}),S.jsxs(zp,{value:n.doors,onValueChange:l=>
187i("doors",l),children:[S.jsx(Gc,{className:"h-10 font-outfit border-flock-gray-2 focus:border-primary focus:ring-primary",children:S.jsx(Bp,{placeholder:"Select number of doors"})}),S.jsxs(Qc,{className:"font-outfit bg-background border-flock-gray-2",children:[S.jsx(wr,{value:"0",children:"0"}),S.jsx(wr,{value:"1-2",children:"1-2"}),S.jsx(wr,{value:"3+",children:"3+"})]})]})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx(io,{htmlFor:"stage",className:"text-sm font-outfit font-medium text-flock-gray-8",children:"What stage of the landlord journey are you in? *"}),S.jsxs(zp,{value:n.stage,onValueChange:l=>i("stage",l),children:[S.jsx(Gc,{className:"h-10 font-outfit border-flock-gray-2 focus:border-primary focus:ring-primary",children:S.jsx(Bp,{placeholder:"Select your stage"})}),S.jsxs(Qc,{className:"font-outfit bg-background border-flock-gray-2",children:[S.jsx(wr,{value:"buying",children:"Buying more doors"}),S.jsx(wr,{value:"holding",children:"Holding my current portfolio"}),S.jsx(wr,{value:"selling",children:"Considering selling some doors"})]})]})]}),S.jsx(f0,{type:"submit",disabled:o,className:"w-full h-12 text-base font-outfit font-semibold bg-primary hover:bg-primary/90 text-primary-foreground rounded-lg disabled:opacity-50",children:o?"Submitting...":"Submit"}),S.jsxs("p",{className:"text-xs font-outfit font-normal text-flock-gray-6 text-center leading-relaxed",children:["By clicking 'Submit' you agree to the use of your data in accordance with Flock Home's"," ",S.jsx("span",{className:"underline cursor-pointer",children:"Privacy Notice"}),", including for marketing purposes."]})]})]})})]}),S.jsx("div",{className:"mt-12 pt-8 border-t border-flock-gray-2",children:S.jsx("img",{src:"/lovable-uploads/c8f3efeb-180c-473b-bf54-5eedd5d95ac1.png",alt:"Key Investors and Service Providers",className:"w-full h-auto opacity-70 hover:opacity-100 transition-opacity duration-300"})})]})})},IO=()=>S.jsx("div",{className:"min-h-screen bg-background font-outfit flex items-center justify-center px-6",children:S.jsxs("div",{className:"max-w-md mx-auto text-center space-y-6",children:[S.jsx("div",{className:"mb-8",children:S.jsx("a",{href:"https://www.flockhomes.com",target:"_blank",rel:"noopener noreferrer",children:S.jsx("img",{src:Aw,alt:"FLOCK",className:"h-12 w-auto mx-auto hover:opacity-80 transition-opacity cursor-pointer"})})}),S.jsxs("div",{className:"space-y-4",children:[S.jsx("h1",{className:"text-3xl font-playfair font-bold text-primary",children:"Thank you for your submission."}),S.jsx("p",{className:"text-lg font-outfit text-flock-gray-7 leading-relaxed",children:"If you qualify, a Flock Homes client growth advisor will be in contact to schedule your consultation call."})]})]})}),LO=()=>{const e=Ef();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),S.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),S.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),S.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},$O=new Bk,MO=()=>S.jsx(Vk,{client:$O,children:S.jsxs(yk,{children:[S.jsx(e_,{}),S.jsx(A_,{}),S.jsx(DC,{children:S.jsxs(LC,{children:[S.jsx(ma,{path:"/",element:S.jsx(jO,{})}),S.jsx(ma,{path:"/thank-you",element:S.jsx(IO,{})}),S.jsx(ma,{path:"*",element:S.jsx(LO,{})})]})})]})});Pv(document.getElementById("root")).render(S.jsx(MO,{}));

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.