PageSourceSearch

https://rental-audit.lovable.app/assets/index-DfBUPW2m.js

js rental-audit.lovable.app collected 2026-10-03 03:42:22 UTC 491,620 bytes, 197 lines download raw bytes

vendor: 5,627 bytes, lines 1-9
1var Ff=e=>{throw TypeError(e)};var zl=(e,t,n)=>t.has(e)||Ff("Cannot "+n);var P=(e,t,n)=>(zl(e,t,"read from private field"),n?n.call(e):t.get(e)),oe=(e,t,n)=>t.has(e)?Ff("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(zl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ze=(e,t,n)=>(zl(e,t,"access private method"),n);var Ci=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return P(e,t,r)}});function Yw(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 mm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jw(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 gm={exports:{}},nl={},vm={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 fi=Symbol.for("react.element"),Xw=Symbol.for("react.portal"),Zw=Symbol.for("react.fragment"),ex=Symbol.for("react.strict_mode"),tx=Symbol.for("react.profiler"),nx=Symbol.for("react.provider"),rx=Symbol.for("react.context"),ox=Symbol.for("react.forward_ref"),sx=Symbol.for("react.suspense"),ix=Symbol.for("react.memo"),ax=Symbol.for("react.lazy"),Uf=Symbol.iterator;function lx(e){return e===null||typeof e!="object"?null:(e=Uf&&e[Uf]||e["@@iterator"],typeof e=="function"?e:null)}var ym={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wm=Object.assign,xm={};function Qo(e,t,n){this.props=e,this.context=t,this.refs=xm,this.updater=n||ym}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 bm(){}bm.prototype=Qo.prototype;function ld(e,t,n){this.props=e,this.context=t,this.refs=xm,this.updater=n||ym}var ud=ld.prototype=new bm;ud.constructor=ld;wm(ud,Qo.prototype);ud.isPureReactComponent=!0;var zf=Array.isArray,Sm=Object.prototype.hasOwnProperty,cd={current:null},_m={key:!0,ref:!0,__self:!0,__source:!0};function Em(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)Sm.call(t,r)&&!_m.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:fi,type:e,key:s,ref:i,props:o,_owner:cd.current}}function ux(e,t){return{$$typeof:fi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dd(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi}function cx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bf=/\/+/g;function Bl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cx(""+e.key):t.toString(36)}function ra(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 fi:case Xw:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Bl(i,0):r,zf(o)?(n="",e!=null&&(n=e.replace(Bf,"$&/")+"/"),ra(o,t,n,"",function(u){return u})):o!=null&&(dd(o)&&(o=ux(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Bf,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",zf(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Bl(s,a);i+=ra(s,t,n,l,o)}else if(l=lx(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Bl(s,a++),i+=ra(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}
vendor: 6,070 bytes, lines 9-25
9function Ti(e,t,n){if(e==null)return e;var r=[],o=0;return ra(e,r,"","",function(s){return t.call(n,s,o++)}),r}function dx(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},oa={transition:null},fx={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:oa,ReactCurrentOwner:cd};function km(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Ti,forEach:function(e,t,n){Ti(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ti(e,function(){t++}),t},toArray:function(e){return Ti(e,function(t){return t})||[]},only:function(e){if(!dd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Qo;Z.Fragment=Zw;Z.Profiler=tx;Z.PureComponent=ld;Z.StrictMode=ex;Z.Suspense=sx;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fx;Z.act=km;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=wm({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=cd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Sm.call(t,l)&&!_m.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:fi,type:e.type,key:o,ref:s,props:r,_owner:i}};Z.createContext=function(e){return e={$$typeof:rx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nx,_context:e},e.Consumer=e};Z.createElement=Em;Z.createFactory=function(e){var t=Em.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:ox,render:e}};Z.isValidElement=dd;Z.lazy=function(e){return{$$typeof:ax,_payload:{_status:-1,_result:e},_init:dx}};Z.memo=function(e,t){return{$$typeof:ix,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=oa.transition;oa.transition={};try{e()}finally{oa.transition=t}};Z.unstable_act=km;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";vm.exports=Z;var y=vm.exports;const j=mm(y),fd=Yw({__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 hx=y,px=Symbol.for("react.element"),mx=Symbol.for("react.fragment"),gx=Object.prototype.hasOwnProperty,vx=hx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yx={key:!0,ref:!0,__self:!0,__source:!0};function Cm(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)gx.call(t,r)&&!yx.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:px,type:e,key:s,ref:i,props:o,_owner:vx.current}}nl.Fragment=mx;nl.jsx=Cm;nl.jsxs=Cm;gm.exports=nl;var b=gm.exports,Tm={exports:{}},ht={},Pm={exports:{}},Rm={};/**
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 H=$-1>>>1,z=C[H];if(0<o(z,R))C[H]=R,C[$]=z,$=H;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 H=0,z=C.length,Y=z>>>1;H<Y;){var K=2*(H+1)-1,fe=C[K],Se=K+1,M=C[Se];if(0>o(fe,$))Se<z&&0>o(M,fe)?(C[H]=M,C[Se]=$,H=Se):(C[H]=fe,C[K]=$,H=K);else if(Se<z&&0>o(M,$))C[H]=M,C[Se]=$,H=Se;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 S(C){if(p=!1,g(C),!x)if(n(l)!==null)x=!0,F(_);else{var R=n(u);R!==null&&B(S,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 H=d.callback;
vendor: 1,959 bytes, line 25
25if(typeof H=="function"){d.callback=null,h=d.priorityLevel;var z=H(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(S,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,V=I.port2;I.port1.onmessage=L,W=function(){V.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 H=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?H+$:H):$=H,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},$>H?(C.sortIndex=$,t(u,C),n(l)===null&&C===n(u)&&(p?(v(T),T=-1):p=!0,B(S,$-H))):(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=$}}}})(Rm);Pm.exports=Rm;var wx=Pm.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 xx=y,ft=wx;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 Om=new Set,Fs={};function Br(e,t){Fo(e,t),Fo(e+"Capture",t)}function Fo(e,t){for(Fs[e]=t,e=0;e<t.length;e++)Om.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=Object.prototype.hasOwnProperty,bx=/^[: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]*$/,Wf={},Hf={};function Sx(e){return Mu.call(Hf,e)?!0:Mu.call(Wf,e)?!1:bx.test(e)?Hf[e]=!0:(Wf[e]=!0,!1)}function _x(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 Ex(e,t,n,r){if(t===null||typeof t>"u"||_x(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 hd=/[\-:]([a-z])/g;function pd(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(hd,pd);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(hd,pd);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(hd,pd);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 md(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")&&(Ex(t,n,o,r)&&(n=null),r||o===null?Sx(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=xx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pi=Symbol.for("react.element"),uo=Symbol.for("react.portal"),co=Symbol.for("react.fragment"),gd=Symbol.for("react.strict_mode"),Du=Symbol.for("react.profiler"),Nm=Symbol.for("react.provider"),Am=Symbol.for("react.context"),vd=Symbol.for("react.forward_ref"),Fu=Symbol.for("react.suspense"),Uu=Symbol.for("react.suspense_list"),yd=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),jm=Symbol.for("react.offscreen"),Vf=Symbol.iterator;function as(e){return e===null||typeof e!="object"?null:(e=Vf&&e[Vf]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Wl;function ys(e){if(Wl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wl=t&&t[1]||""}return`
34`+Wl+e}var Hl=!1;function Vl(e,t){if(!e||Hl)return"";Hl=!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{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ys(e):""}function kx(e){switch(e.tag){case 5:return ys(e.type);case 16:return ys("Lazy");case 13:return ys("Suspense");case 19:return ys("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function zu(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 Du:return"Profiler";case gd:return"StrictMode";case Fu:return"Suspense";case Uu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Am:return(e.displayName||"Context")+".Consumer";case Nm:return(e._context.displayName||"Context")+".Provider";case vd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yd:return t=e.displayName||null,t!==null?t:zu(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return zu(e(t))}catch{}}return null}function Cx(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 zu(t);case 8:return t===gd?"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 rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Im(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tx(e){var t=Im(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 Ri(e){e._valueTracker||(e._valueTracker=Tx(e))}function Lm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Im(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sa(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 Bu(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(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 $m(e,t){t=t.checked,t!=null&&md(e,"checked",t,!1)}function Wu(e,t){$m(e,t);var n=rr(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")?Hu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hu(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qf(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 Hu(e,t,n){(t!=="number"||Sa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ws=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=""+rr(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 Vu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gf(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(ws(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rr(n)}}function Mm(e,t){var n=rr(t.value),r=rr(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 Dm(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 Ku(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Dm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Oi,Fm=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(Oi=Oi||document.createElement("div"),Oi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Oi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Us(e,t){if(t){var n=e.firstChild;
vendor: 7,946 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cs={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},Px=["Webkit","ms","Moz","O"];Object.keys(Cs).forEach(function(e){Px.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cs[t]=Cs[e]})});function Um(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cs.hasOwnProperty(e)&&Cs[e]?(""+t).trim():t+"px"}function zm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Um(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Rx=be({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 qu(e,t){if(t){if(Rx[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 Gu(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 wd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yu=null,_o=null,Eo=null;function Yf(e){if(e=mi(e)){if(typeof Yu!="function")throw Error(O(280));var t=e.stateNode;t&&(t=al(t),Yu(e.stateNode,e.type,t))}}function Bm(e){_o?Eo?Eo.push(e):Eo=[e]:_o=e}function Wm(){if(_o){var e=_o,t=Eo;if(Eo=_o=null,Yf(e),t)for(e=0;e<t.length;e++)Yf(t[e])}}function Hm(e,t){return e(t)}function Vm(){}var Kl=!1;function Km(e,t,n){if(Kl)return e(t,n);Kl=!0;try{return Hm(e,t,n)}finally{Kl=!1,(_o!==null||Eo!==null)&&(Vm(),Wm())}}function zs(e,t){var n=e.stateNode;if(n===null)return null;var r=al(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 Ju=!1;if(gn)try{var ls={};Object.defineProperty(ls,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{Ju=!1}function Ox(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 Ts=!1,_a=null,Ea=!1,Xu=null,Nx={onError:function(e){Ts=!0,_a=e}};function Ax(e,t,n,r,o,s,i,a,l){Ts=!1,_a=null,Ox.apply(Nx,arguments)}function jx(e,t,n,r,o,s,i,a,l){if(Ax.apply(this,arguments),Ts){if(Ts){var u=_a;Ts=!1,_a=null}else throw Error(O(198));Ea||(Ea=!0,Xu=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 qm(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 Jf(e){if(Wr(e)!==e)throw Error(O(188))}function Ix(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 Jf(o),e;if(s===r)return Jf(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 Gm(e){return e=Ix(e),e!==null?Qm(e):null}function Qm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qm(e);if(t!==null)return t;e=e.sibling}return null}var Ym=ft.unstable_scheduleCallback,Xf=ft.unstable_cancelCallback,Lx=ft.unstable_shouldYield,$x=ft.unstable_requestPaint,Te=ft.unstable_now,Mx=ft.unstable_getCurrentPriorityLevel,xd=ft.unstable_ImmediatePriority,Jm=ft.unstable_UserBlockingPriority,ka=ft.unstable_NormalPriority,Dx=ft.unstable_LowPriority,Xm=ft.unstable_IdlePriority,rl=null,en=null;function Fx(e){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(rl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Bx,Ux=Math.log,zx=Math.LN2;function Bx(e){return e>>>=0,e===0?32:31-(Ux(e)/zx|0)|0}var Ni=64,Ai=4194304;function xs(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 Ca(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=xs(a):(s&=i,s!==0&&(r=xs(s)))}else i=n&~o,i!==0?r=xs(i):s!==0&&(r=xs(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 Wx(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 Hx(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]=Wx(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zm(){var e=Ni;return Ni<<=1,!(Ni&4194240)&&(Ni=64),e}function ql(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hi(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 Vx(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 bd(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 eg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}
vendor: 13,900 bytes, line 37
37var tg,Sd,ng,rg,og,ec=!1,ji=[],Gn=null,Qn=null,Yn=null,Bs=new Map,Ws=new Map,Mn=[],Kx="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 Zf(e,t){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":Bs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ws.delete(t.pointerId)}}function us(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=mi(t),t!==null&&Sd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function qx(e,t,n,r,o){switch(t){case"focusin":return Gn=us(Gn,e,t,n,r,o),!0;case"dragenter":return Qn=us(Qn,e,t,n,r,o),!0;case"mouseover":return Yn=us(Yn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Bs.set(s,us(Bs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ws.set(s,us(Ws.get(s)||null,e,t,n,r,o)),!0}return!1}function sg(e){var t=_r(e.target);if(t!==null){var n=Wr(t);if(n!==null){if(t=n.tag,t===13){if(t=qm(n),t!==null){e.blockedOn=t,og(e.priority,function(){ng(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 sa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tc(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=mi(n),t!==null&&Sd(t),e.blockedOn=n,!1;t.shift()}return!0}function eh(e,t,n){sa(e)&&n.delete(t)}function Gx(){ec=!1,Gn!==null&&sa(Gn)&&(Gn=null),Qn!==null&&sa(Qn)&&(Qn=null),Yn!==null&&sa(Yn)&&(Yn=null),Bs.forEach(eh),Ws.forEach(eh)}function cs(e,t){e.blockedOn===t&&(e.blockedOn=null,ec||(ec=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,Gx)))}function Hs(e){function t(o){return cs(o,e)}if(0<ji.length){cs(ji[0],e);for(var n=1;n<ji.length;n++){var r=ji[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gn!==null&&cs(Gn,e),Qn!==null&&cs(Qn,e),Yn!==null&&cs(Yn,e),Bs.forEach(t),Ws.forEach(t),n=0;n<Mn.length;n++)r=Mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mn.length&&(n=Mn[0],n.blockedOn===null);)sg(n),n.blockedOn===null&&Mn.shift()}var ko=Sn.ReactCurrentBatchConfig,Ta=!0;function Qx(e,t,n,r){var o=ae,s=ko.transition;ko.transition=null;try{ae=1,_d(e,t,n,r)}finally{ae=o,ko.transition=s}}function Yx(e,t,n,r){var o=ae,s=ko.transition;ko.transition=null;try{ae=4,_d(e,t,n,r)}finally{ae=o,ko.transition=s}}function _d(e,t,n,r){if(Ta){var o=tc(e,t,n,r);if(o===null)ru(e,t,r,Pa,n),Zf(e,r);else if(qx(o,e,t,n,r))r.stopPropagation();else if(Zf(e,r),t&4&&-1<Kx.indexOf(e)){for(;o!==null;){var s=mi(o);if(s!==null&&tg(s),s=tc(e,t,n,r),s===null&&ru(e,t,r,Pa,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else ru(e,t,r,null,n)}}var Pa=null;function tc(e,t,n,r){if(Pa=null,e=wd(r),e=_r(e),e!==null)if(t=Wr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=qm(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 Pa=e,null}function ig(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Mx()){case xd:return 1;case Jm:return 4;case ka:case Dx:return 16;case Xm:return 536870912;default:return 16}default:return 16}}var Vn=null,Ed=null,ia=null;function ag(){if(ia)return ia;var e,t=Ed,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 ia=o.slice(e,1<r?1-r:void 0)}function aa(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 Ii(){return!0}function th(){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)?Ii:th,this.isPropagationStopped=th,this}return be(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=Ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var Yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kd=pt(Yo),pi=be({},Yo,{view:0,detail:0}),Jx=pt(pi),Gl,Ql,ds,ol=be({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cd,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!==ds&&(ds&&e.type==="mousemove"?(Gl=e.screenX-ds.screenX,Ql=e.screenY-ds.screenY):Ql=Gl=0,ds=e),Gl)},movementY:function(e){return"movementY"in e?e.movementY:Ql}}),nh=pt(ol),Xx=be({},ol,{dataTransfer:0}),Zx=pt(Xx),eb=be({},pi,{relatedTarget:0}),Yl=pt(eb),tb=be({},Yo,{animationName:0,elapsedTime:0,pseudoElement:0}),nb=pt(tb),rb=be({},Yo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ob=pt(rb),sb=be({},Yo,{data:0}),rh=pt(sb),ib={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ab={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"},lb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ub(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lb[e])?!!t[e]:!1}function Cd(){return ub}var cb=be({},pi,{key:function(e){if(e.key){var t=ib[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=aa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ab[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cd,charCode:function(e){return e.type==="keypress"?aa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?aa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),db=pt(cb),fb=be({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oh=pt(fb),hb=be({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cd}),pb=pt(hb),mb=be({},Yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),gb=pt(mb),vb=be({},ol,{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}),yb=pt(vb),wb=[9,13,27,32],Td=gn&&"CompositionEvent"in window,Ps=null;gn&&"documentMode"in document&&(Ps=document.documentMode);var xb=gn&&"TextEvent"in window&&!Ps,lg=gn&&(!Td||Ps&&8<Ps&&11>=Ps),sh=" ",ih=!1;function ug(e,t){switch(e){case"keyup":return wb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fo=!1;function bb(e,t){switch(e){case"compositionend":return cg(t);case"keypress":return t.which!==32?null:(ih=!0,sh);case"textInput":return e=t.data,e===sh&&ih?null:e;default:return null}}function Sb(e,t){if(fo)return e==="compositionend"||!Td&&ug(e,t)?(e=ag(),ia=Ed=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 lg&&t.locale!=="ko"?null:t.data;default:return null}}var _b={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 ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_b[e.type]:t==="textarea"}function dg(e,t,n,r){Bm(r),t=Ra(t,"onChange"),0<t.length&&(n=new kd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rs=null,Vs=null;function Eb(e){Sg(e,0)}function sl(e){var t=mo(e);if(Lm(t))return e}function kb(e,t){if(e==="change")return t}var fg=!1;if(gn){var Jl;if(gn){var Xl="oninput"in document;if(!Xl){var lh=document.createElement("div");lh.setAttribute("oninput","return;"),Xl=typeof lh.oninput=="function"}Jl=Xl}else Jl=!1;fg=Jl&&(!document.documentMode||9<document.documentMode)}function uh(){Rs&&(Rs.detachEvent("onpropertychange",hg),Vs=Rs=null)}function hg(e){if(e.propertyName==="value"&&sl(Vs)){var t=[];dg(t,Vs,e,wd(e)),Km(Eb,t)}}function Cb(e,t,n){e==="focusin"?(uh(),Rs=t,Vs=n,Rs.attachEvent("onpropertychange",hg)):e==="focusout"&&uh()}function Tb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sl(Vs)}function Pb(e,t){if(e==="click")return sl(t)}function Rb(e,t){if(e==="input"||e==="change")return sl(t)}function Ob(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:Ob;function Ks(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(!Mu.call(t,o)||!zt(e[o],t[o]))return!1}return!0}function ch(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dh(e,t){var n=ch(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=ch(n)}}function pg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mg(){for(var e=window,t=Sa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sa(e.document)}return t}function Pd(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 Nb(e){var t=mg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pg(n.ownerDocument.documentElement,n)){if(r!==null&&Pd(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=dh(n,s);var i=dh(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 Ab=gn&&"documentMode"in document&&11>=document.documentMode,ho=null,nc=null,Os=null,rc=!1;function fh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rc||ho==null||ho!==Sa(r)||(r=ho,"selectionStart"in r&&Pd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Os&&Ks(Os,r)||(Os=r,r=Ra(nc,"onSelect"),0<r.length&&(t=new kd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ho)))}function Li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var po={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionend:Li("Transition","TransitionEnd")},Zl={},gg={};gn&&(gg=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 il(e){if(Zl[e])return Zl[e];if(!po[e])return e;var t=po[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gg)return Zl[e]=t[n];return e}var vg=il("animationend"),yg=il("animationiteration"),wg=il("animationstart"),xg=il("transitionend"),bg=new Map,hh="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 ar(e,t){bg.set(e,t),Br(t,[e])}for(var eu=0;eu<hh.length;eu++){var tu=hh[eu],jb=tu.toLowerCase(),Ib=tu[0].toUpperCase()+tu.slice(1);ar(jb,"on"+Ib)}ar(vg,"onAnimationEnd");ar(yg,"onAnimationIteration");ar(wg,"onAnimationStart");ar("dblclick","onDoubleClick");ar("focusin","onFocus");ar("focusout","onBlur");ar(xg,"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 bs="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(" "),Lb=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function ph(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jx(r,t,void 0,e),e.currentTarget=null}function Sg(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;ph(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;ph(o,a,u),s=l}}}if(Ea)throw e=Xu,Ea=!1,Xu=null,e}function pe(e,t){var n=t[lc];n===void 0&&(n=t[lc]=new Set);var r=e+"__bubble";n.has(r)||(_g(t,e,2,!1),n.add(r))}function nu(e,t,n){var r=0;t&&(r|=4),_g(n,e,r,t)}var $i="_reactListening"+Math.random().toString(36).slice(2);function qs(e){if(!e[$i]){e[$i]=!0,Om.forEach(function(n){n!=="selectionchange"&&(Lb.has(n)||nu(n,!1,e),nu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$i]||(t[$i]=!0,nu("selectionchange",!1,t))}}function _g(e,t,n,r){switch(ig(t)){case 1:var o=Qx;break;case 4:o=Yx;break;default:o=_d}n=o.bind(null,t,n,e),o=void 0,!Ju||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 ru(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: 4,093 bytes, line 37
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=_r(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Km(function(){var u=s,c=wd(n),d=[];e:{var h=bg.get(e);if(h!==void 0){var f=kd,x=e;switch(e){case"keypress":if(aa(n)===0)break e;case"keydown":case"keyup":f=db;break;case"focusin":x="focus",f=Yl;break;case"focusout":x="blur",f=Yl;break;case"beforeblur":case"afterblur":f=Yl;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=nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Zx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=pb;break;case vg:case yg:case wg:f=nb;break;case xg:f=gb;break;case"scroll":f=Jx;break;case"wheel":f=yb;break;case"copy":case"cut":case"paste":f=ob;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=oh}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 S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,v!==null&&(S=zs(m,v),S!=null&&p.push(Gs(m,S,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)&&(_r(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?_r(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=nh,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=oh,S="onPointerLeave",v="onPointerEnter",m="pointer"),w=f==null?h:mo(f),g=x==null?h:mo(x),h=new p(S,m+"leave",f,n,c),h.target=w,h.relatedTarget=g,S=null,_r(c)===u&&(p=new p(v,m+"enter",x,n,c),p.target=g,p.relatedTarget=w,S=p),w=S,f&&x)t:{for(p=f,v=x,m=0,g=p;g;g=Xr(g))m++;for(g=0,S=v;S;S=Xr(S))g++;for(;0<m-g;)p=Xr(p),m--;for(;0<g-m;)v=Xr(v),g--;for(;m--;){if(p===v||v!==null&&p===v.alternate)break t;p=Xr(p),v=Xr(v)}p=null}else p=null;f!==null&&mh(d,h,f,p,!1),x!==null&&w!==null&&mh(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 _=kb;else if(ah(h))if(fg)_=Rb;else{_=Tb;var E=Cb}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=Pb);if(_&&(_=_(e,u))){dg(d,_,n,c);break e}E&&E(e,h,u),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&Hu(h,"number",h.value)}switch(E=u?mo(u):window,e){case"focusin":(ah(E)||E.contentEditable==="true")&&(ho=E,nc=u,Os=null);break;case"focusout":Os=nc=ho=null;break;case"mousedown":rc=!0;break;case"contextmenu":case"mouseup":case"dragend":rc=!1,fh(d,n,c);break;case"selectionchange":if(Ab)break;case"keydown":case"keyup":fh(d,n,c)}var k;if(Td)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?ug(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(lg&&n.locale!=="ko"&&(fo||T!=="onCompositionStart"?T==="onCompositionEnd"&&fo&&(k=ag()):(Vn=c,Ed="value"in Vn?Vn.value:Vn.textContent,fo=!0)),E=Ra(u,T),0<E.length&&(T=new rh(T,e,null,n,c),d.push({event:T,listeners:E}),k?T.data=k:(k=cg(n),k!==null&&(T.data=k)))),(k=xb?bb(e,n):Sb(e,n))&&(u=Ra(u,"onBeforeInput"),0<u.length&&(c=new rh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}Sg(d,t)})}function Gs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ra(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;
vendor: 4,495 bytes, lines 37-38
37o.tag===5&&s!==null&&(o=s,s=zs(e,n),s!=null&&r.unshift(Gs(e,s,o)),s=zs(e,t),s!=null&&r.push(Gs(e,s,o))),e=e.return}return r}function Xr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mh(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=zs(n,s),l!=null&&i.unshift(Gs(n,l,a))):o||(l=zs(n,s),l!=null&&i.push(Gs(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var $b=/\r\n?/g,Mb=/\u0000|\uFFFD/g;function gh(e){return(typeof e=="string"?e:""+e).replace($b,`
38`).replace(Mb,"")}function Mi(e,t,n){if(t=gh(t),gh(e)!==t&&n)throw Error(O(425))}function Oa(){}var oc=null,sc=null;function ic(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 ac=typeof setTimeout=="function"?setTimeout:void 0,Db=typeof clearTimeout=="function"?clearTimeout:void 0,vh=typeof Promise=="function"?Promise:void 0,Fb=typeof queueMicrotask=="function"?queueMicrotask:typeof vh<"u"?function(e){return vh.resolve(null).then(e).catch(Ub)}:ac;function Ub(e){setTimeout(function(){throw e})}function ou(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),Hs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Hs(t)}function Jn(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 yh(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,Qs="__reactProps$"+Jo,vn="__reactContainer$"+Jo,lc="__reactEvents$"+Jo,zb="__reactListeners$"+Jo,Bb="__reactHandles$"+Jo;function _r(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=yh(e);e!==null;){if(n=e[Jt])return n;e=yh(e)}return t}e=n,n=e.parentNode}return null}function mi(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 al(e){return e[Qs]||null}var uc=[],go=-1;function lr(e){return{current:e}}function me(e){0>go||(e.current=uc[go],uc[go]=null,go--)}function de(e,t){go++,uc[go]=e.current,e.current=t}var or={},Ke=lr(or),ot=lr(!1),Ir=or;function Uo(e,t){var n=e.type.contextTypes;if(!n)return or;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 Na(){me(ot),me(Ke)}function wh(e,t,n){if(Ke.current!==or)throw Error(O(168));de(Ke,t),de(ot,n)}function Eg(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,Cx(e)||"Unknown",o));return be({},n,r)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Ir=Ke.current,de(Ke,e),de(ot,ot.current),!0}function xh(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Eg(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,me(ot),me(Ke),de(Ke,e)):me(ot),de(ot,n)}var dn=null,ll=!1,su=!1;function kg(e){dn===null?dn=[e]:dn.push(e)}function Wb(e){ll=!0,kg(e)}function ur(){if(!su&&dn!==null){su=!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,ll=!1}catch(o){throw dn!==null&&(dn=dn.slice(e+1)),Ym(xd,ur),o}finally{ae=t,su=!1}}return null}var vo=[],yo=0,ja=null,Ia=0,yt=[],wt=0,Lr=null,hn=1,pn="";function wr(e,t){vo[yo++]=Ia,vo[yo++]=ja,ja=e,Ia=t}function Cg(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 Rd(e){e.return!==null&&(wr(e,1),Cg(e,1,0))}function Od(e){for(;e===ja;)ja=vo[--yo],vo[yo]=null,Ia=vo[--yo],vo[yo]=null;for(;e===Lr;
vendor: 27,148 bytes, lines 38-40
38)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 Tg(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 bh(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=Jn(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 cc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dc(e){if(ve){var t=ut;if(t){var n=t;if(!bh(e,t)){if(cc(e))throw Error(O(418));t=Jn(n.nextSibling);var r=ct;t&&bh(e,t)?Tg(r,n):(e.flags=e.flags&-4097|2,ve=!1,ct=e)}}else{if(cc(e))throw Error(O(418));e.flags=e.flags&-4097|2,ve=!1,ct=e}}}function Sh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function Di(e){if(e!==ct)return!1;if(!ve)return Sh(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ic(e.type,e.memoizedProps)),t&&(t=ut)){if(cc(e))throw Pg(),Error(O(418));for(;t;)Tg(e,t),t=Jn(t.nextSibling)}if(Sh(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=Jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ct?Jn(e.stateNode.nextSibling):null;return!0}function Pg(){for(var e=ut;e;)e=Jn(e.nextSibling)}function zo(){ut=ct=null,ve=!1}function Nd(e){Dt===null?Dt=[e]:Dt.push(e)}var Hb=Sn.ReactCurrentBatchConfig;function fs(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 Fi(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _h(e){var t=e._init;return t(e._payload)}function Rg(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=tr(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,S){return m===null||m.tag!==6?(m=fu(g,v.mode,S),m.return=v,m):(m=o(m,g),m.return=v,m)}function l(v,m,g,S){var _=g.type;return _===co?c(v,m,g.props.children,S,g.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ln&&_h(_)===m.type)?(S=o(m,g.props),S.ref=fs(v,m,g),S.return=v,S):(S=pa(g.type,g.key,g.props,null,v.mode,S),S.ref=fs(v,m,g),S.return=v,S)}function u(v,m,g,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=hu(g,v.mode,S),m.return=v,m):(m=o(m,g.children||[]),m.return=v,m)}function c(v,m,g,S,_){return m===null||m.tag!==7?(m=jr(g,v.mode,S,_),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=fu(""+m,v.mode,g),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Pi:return g=pa(m.type,m.key,m.props,null,v.mode,g),g.ref=fs(v,null,m),g.return=v,g;case uo:return m=hu(m,v.mode,g),m.return=v,m;case Ln:var S=m._init;return d(v,S(m._payload),g)}if(ws(m)||as(m))return m=jr(m,v.mode,g,null),m.return=v,m;Fi(v,m)}return null}function h(v,m,g,S){var _=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return _!==null?null:a(v,m,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pi:return g.key===_?l(v,m,g,S):null;case uo:return g.key===_?u(v,m,g,S):null;case Ln:return _=g._init,h(v,m,_(g._payload),S)}if(ws(g)||as(g))return _!==null?null:c(v,m,g,S,null);Fi(v,g)}return null}function f(v,m,g,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(g)||null,a(m,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Pi:return v=v.get(S.key===null?g:S.key)||null,l(m,v,S,_);case uo:return v=v.get(S.key===null?g:S.key)||null,u(m,v,S,_);case Ln:var E=S._init;return f(v,m,g,E(S._payload),_)}if(ws(S)||as(S))return v=v.get(g)||null,c(m,v,S,_,null);Fi(m,S)}return null}function x(v,m,g,S){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],S);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&&wr(v,T),_;if(k===null){for(;T<g.length;T++)k=d(v,g[T],S),k!==null&&(m=s(k,m,T),E===null?_=k:E.sibling=k,E=k);return ve&&wr(v,T),_}for(k=r(v,k);T<g.length;T++)N=f(k,v,T,g[T],S),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&&wr(v,T),_}function p(v,m,g,S){var _=as(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,S);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&&wr(v,T),_;if(k===null){for(;!A.done;T++,A=g.next())A=d(v,A.value,S),A!==null&&(m=s(A,m,T),E===null?_=A:E.sibling=A,E=A);return ve&&wr(v,T),_}for(k=r(v,k);!A.done;T++,A=g.next())A=f(k,v,T,A.value,S),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&&wr(v,T),_}function w(v,m,g,S){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 Pi: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===Ln&&_h(_)===E.type){n(v,E.sibling),m=o(E,g.props),m.ref=fs(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=jr(g.props.children,v.mode,S,g.key),m.return=v,v=m):(S=pa(g.type,g.key,g.props,null,v.mode,S),S.ref=fs(v,m,g),S.return=v,v=S)}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=hu(g,v.mode,S),m.return=v,v=m}return i(v);case Ln:return E=g._init,w(v,m,E(g._payload),S)}if(ws(g))return x(v,m,g,S);if(as(g))return p(v,m,g,S);Fi(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=fu(g,v.mode,S),m.return=v,v=m),i(v)):n(v,m)}return w}var Bo=Rg(!0),Og=Rg(!1),La=lr(null),$a=null,wo=null,Ad=null;function jd(){Ad=wo=$a=null}function Id(e){var t=La.current;me(La),e._currentValue=t}function fc(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){$a=e,Ad=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(Ad!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if($a===null)throw Error(O(308));wo=e,$a.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Er=null;function Ld(e){Er===null?Er=[e]:Er.push(e)}function Ng(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ld(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 $n=!1;function $d(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ag(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 Xn(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,Ld(r)):(t.next=o.next,o.next=t),r.interleaved=t,yn(e,n)}function la(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,bd(e,n)}}function Eh(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 Ma(e,t,n,r){var o=e.updateQueue;$n=!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=be({},d,h);break e;case 2:$n=!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 kh(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 gi={},tn=lr(gi),Ys=lr(gi),Js=lr(gi);function kr(e){if(e===gi)throw Error(O(174));return e}function Md(e,t){switch(de(Js,t),de(Ys,e),de(tn,gi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ku(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ku(t,e)}me(tn),de(tn,t)}function Wo(){me(tn),me(Ys),me(Js)}function jg(e){kr(Js.current);var t=kr(tn.current),n=Ku(t,e.type);t!==n&&(de(Ys,e),de(tn,n))}function Dd(e){Ys.current===e&&(me(tn),me(Ys))}var we=lr(0);function Da(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 iu=[];function Fd(){for(var e=0;e<iu.length;e++)iu[e]._workInProgressVersionPrimary=null;iu.length=0}var ua=Sn.ReactCurrentDispatcher,au=Sn.ReactCurrentBatchConfig,$r=0,xe=null,Ae=null,Ie=null,Fa=!1,Ns=!1,Xs=0,Vb=0;function Be(){throw Error(O(321))}function Ud(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 zd(e,t,n,r,o,s){if($r=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ua.current=e===null||e.memoizedState===null?Qb:Yb,e=n(r,o),Ns){s=0;do{if(Ns=!1,Xs=0,25<=s)throw Error(O(301));s+=1,Ie=Ae=null,t.updateQueue=null,ua.current=Jb,e=n(r,o)}while(Ns)}if(ua.current=Ua,t=Ae!==null&&Ae.next!==null,$r=0,Ie=Ae=xe=null,Fa=!1,t)throw Error(O(300));return e}function Bd(){var e=Xs!==0;return Xs=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?xe.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Et(){if(Ae===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ie===null?xe.memoizedState:Ie.next;if(t!==null)Ie=t,Ae=e;else{if(e===null)throw Error(O(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ie===null?xe.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Zs(e,t){return typeof t=="function"?t(e):t}function lu(e){var t=Et(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Ae,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,xe.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,xe.lanes|=s,Mr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function uu(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 Ig(){}function Lg(e,t){var n=xe,r=Et(),o=t(),s=!zt(r.memoizedState,o);if(s&&(r.memoizedState=o,rt=!0),r=r.queue,Wd(Dg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,ei(9,Mg.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(O(349));$r&30||$g(n,t,o)}return o}function $g(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mg(e,t,n,r){t.value=n,t.getSnapshot=r,Fg(t)&&Ug(e)}function Dg(e,t,n){return n(function(){Fg(t)&&Ug(e)})}function Fg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function Ug(e){var t=yn(e,1);t!==null&&Ut(t,e,1,-1)}function Ch(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:Zs,lastRenderedState:e},t.queue=e,e=e.dispatch=Gb.bind(null,xe,e),[t.memoizedState,e]}function ei(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.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 zg(){return Et().memoizedState}function ca(e,t,n,r){var o=Kt();xe.flags|=e,o.memoizedState=ei(1|t,n,void 0,r===void 0?null:r)}function ul(e,t,n,r){var o=Et();r=r===void 0?null:r;var s=void 0;if(Ae!==null){var i=Ae.memoizedState;if(s=i.destroy,r!==null&&Ud(r,i.deps)){o.memoizedState=ei(t,n,s,r);return}}xe.flags|=e,o.memoizedState=ei(1|t,n,s,r)}function Th(e,t){return ca(8390656,8,e,t)}function Wd(e,t){return ul(2048,8,e,t)}function Bg(e,t){return ul(4,2,e,t)}function Wg(e,t){return ul(4,4,e,t)}function Hg(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,ul(4,4,Hg.bind(null,t,e),n)}function Hd(){}function Kg(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ud(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qg(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ud(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Gg(e,t,n){return $r&21?(zt(n,t)||(n=Zm(),xe.lanes|=n,Mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=n)}function Kb(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=au.transition;au.transition={};try{e(!1),t()}finally{ae=n,au.transition=r}}function Qg(){return Et().memoizedState}function qb(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yg(e))Jg(t,n);else if(n=Ng(e,t,n,r),n!==null){var o=Je();Ut(n,e,r,o),Xg(n,t,r)}}function Gb(e,t,n){var r=er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yg(e))Jg(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,Ld(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Ng(e,t,o,r),n!==null&&(o=Je(),Ut(n,e,r,o),Xg(n,t,r))}}function Yg(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Jg(e,t){Ns=Fa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bd(e,n)}}var Ua={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},Qb={readContext:_t,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Th,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ca(4194308,4,Hg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ca(4194308,4,e,t)},useInsertionEffect:function(e,t){return ca(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=qb.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Ch,useDebugValue:Hd,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Ch(!1),t=e[0];return e=Kb.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=Kt();if(ve){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Le===null)throw Error(O(349));$r&30||$g(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Th(Dg.bind(null,r,s,e),[e]),r.flags|=2048,ei(9,Mg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Le.identifierPrefix;if(ve){var n=pn,r=hn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Vb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yb={readContext:_t,useCallback:Kg,useContext:_t,useEffect:Wd,useImperativeHandle:Vg,useInsertionEffect:Bg,useLayoutEffect:Wg,useMemo:qg,useReducer:lu,useRef:zg,useState:function(){return lu(Zs)},useDebugValue:Hd,useDeferredValue:function(e){var t=Et();return Gg(t,Ae.memoizedState,e)},useTransition:function(){var e=lu(Zs)[0],t=Et().memoizedState;return[e,t]},useMutableSource:Ig,useSyncExternalStore:Lg,useId:Qg,unstable_isNewReconciler:!1},Jb={readContext:_t,useCallback:Kg,useContext:_t,useEffect:Wd,useImperativeHandle:Vg,useInsertionEffect:Bg,useLayoutEffect:Wg,useMemo:qg,useReducer:uu,useRef:zg,useState:function(){return uu(Zs)},useDebugValue:Hd,useDeferredValue:function(e){var t=Et();return Ae===null?t.memoizedState=e:Gg(t,Ae.memoizedState,e)},useTransition:function(){var e=uu(Zs)[0],t=Et().memoizedState;return[e,t]},useMutableSource:Ig,useSyncExternalStore:Lg,useId:Qg,unstable_isNewReconciler:!1};function At(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cl={isMounted:function(e){return(e=e._reactInternals)?Wr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),o=er(e),s=mn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Xn(e,s,o),t!==null&&(Ut(t,e,o,r),la(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),o=er(e),s=mn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Xn(e,s,o),t!==null&&(Ut(t,e,o,r),la(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=er(e),o=mn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Xn(e,o,r),t!==null&&(Ut(t,e,r,n),la(t,e,r))}};function Ph(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?!Ks(n,r)||!Ks(o,s):!0}function Zg(e,t,n){var r=!1,o=or,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):or),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Rh(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&&cl.enqueueReplaceState(t,t.state,null)}function pc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$d(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"&&(hc(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&&cl.enqueueReplaceState(o,o.state,null),Ma(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ho(e,t){try{var n="",r=t;do n+=kx(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 cu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function mc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xb=typeof WeakMap=="function"?WeakMap:Map;function ev(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ba||(Ba=!0,kc=r),mc(e,t)},n}function tv(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(){mc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){mc(e,t),typeof r!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Oh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xb;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=f1.bind(null,e,t,n),t.then(e,e))}function Nh(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 Ah(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,Xn(n,t,1))),n.lanes|=1),e)}var Zb=Sn.ReactCurrentOwner,rt=!1;function Qe(e,t,n,r){t.child=e===null?Og(t,null,n,r):Bo(t,e.child,n,r)}function jh(e,t,n,r,o){n=n.render;var s=t.ref;return Co(t,o),r=zd(e,t,n,r,s,o),n=Bd(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wn(e,t,o)):(ve&&n&&Rd(t),t.flags|=1,Qe(e,t,r,o),t.child)}function Ih(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Xd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,nv(e,t,s,r,o)):(e=pa(n.type,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:Ks,n(i,r)&&e.ref===t.ref)return wn(e,t,o)}return t.flags|=1,e=tr(s,r),e.ref=t.ref,e.return=t,t.child=e}function nv(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ks(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 gc(e,t,n,r,o)}function rv(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 ov(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 8,178 bytes, line 40
40function gc(e,t,n,r,o){var s=st(n)?Ir:Ke.current;return s=Uo(t,s),Co(t,o),n=zd(e,t,n,r,s,o),r=Bd(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wn(e,t,o)):(ve&&r&&Rd(t),t.flags|=1,Qe(e,t,n,o),t.child)}function Lh(e,t,n,r,o){if(st(n)){var s=!0;Aa(t)}else s=!1;if(Co(t,o),t.stateNode===null)da(e,t),Zg(t,n,r),pc(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)&&Rh(t,i,r,u),$n=!1;var h=t.memoizedState;i.state=h,Ma(t,r,i,o),l=t.memoizedState,a!==r||h!==l||ot.current||$n?(typeof c=="function"&&(hc(t,n,c,r),l=t.memoizedState),(a=$n||Ph(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,Ag(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)&&Rh(t,i,r,l),$n=!1,h=t.memoizedState,i.state=h,Ma(t,r,i,o);var x=t.memoizedState;a!==d||h!==x||ot.current||$n?(typeof f=="function"&&(hc(t,n,f,r),x=t.memoizedState),(u=$n||Ph(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 vc(e,t,n,r,s,o)}function vc(e,t,n,r,o,s){ov(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&xh(t,n,!1),wn(e,t,s);r=t.stateNode,Zb.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&&xh(t,n,!0),t.child}function sv(e){var t=e.stateNode;t.pendingContext?wh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wh(e,t.context,!1),Md(e,t.containerInfo)}function $h(e,t,n,r,o){return zo(),Nd(o),t.flags|=256,Qe(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0};function wc(e){return{baseLanes:e,cachePool:null,transitions:null}}function iv(e,t,n){var r=t.pendingProps,o=we.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(we,o&1),e===null)return dc(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=hl(i,r,0,null),e=jr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=wc(n),t.memoizedState=yc,e):Vd(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return e1(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=tr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=tr(a,s):(s=jr(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?wc(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=yc,r}return s=e.child,e=s.sibling,r=tr(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=hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ui(e,t,n,r){return r!==null&&Nd(r),Bo(t,e.child,null,n),e=Vd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e1(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=cu(Error(O(422))),Ui(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=hl({mode:"visible",children:r.children},o,0,null),s=jr(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=wc(i),t.memoizedState=yc,s);if(!(t.mode&1))return Ui(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=cu(s,r,void 0),Ui(e,t,i,r)}if(a=(i&e.childLanes)!==0,rt||a){if(r=Le,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 Jd(),r=cu(Error(O(421))),Ui(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=h1.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ut=Jn(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)}function Mh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fc(e.return,t,n)}function du(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 av(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Qe(e,t,r.children,n),r=we.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&&Mh(e,n,t);else if(e.tag===19)Mh(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(we,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&&Da(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),du(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&&Da(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}du(t,!0,n,null,s);break;case"together":du(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function da(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));
vendor: 4,174 bytes, line 40
40if(t.child!==null){for(e=t.child,n=tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function t1(e,t,n){switch(t.tag){case 3:sv(t),zo();break;case 5:jg(t);break;case 1:st(t.type)&&Aa(t);break;case 4:Md(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(La,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?iv(e,t,n):(de(we,we.current&1),e=wn(e,t,n),e!==null?e.sibling:null);de(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return av(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,rv(e,t,n)}return wn(e,t,n)}var lv,xc,uv,cv;lv=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}};xc=function(){};uv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,kr(tn.current);var s=null;switch(n){case"input":o=Bu(e,o),r=Bu(e,r),s=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),s=[];break;case"textarea":o=Vu(e,o),r=Vu(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Oa)}qu(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"&&(Fs.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"&&(Fs.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)}};cv=function(e,t,n,r){n!==r&&(t.flags|=4)};function hs(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 n1(e,t,n){var r=t.pendingProps;switch(Od(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)&&Na(),We(t),null;case 3:return r=t.stateNode,Wo(),me(ot),me(Ke),Fd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Di(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(Pc(Dt),Dt=null))),xc(e,t),We(t),null;case 5:Dd(t);var o=kr(Js.current);if(n=t.type,e!==null&&t.stateNode!=null)uv(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=kr(tn.current),Di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;
vendor: 33,008 bytes, line 40
40switch(r[Jt]=t,r[Qs]=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<bs.length;o++)pe(bs[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":Kf(r,s),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},pe("invalid",r);break;case"textarea":Gf(r,s),pe("invalid",r)}qu(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&&Mi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Mi(r.textContent,a,e),o=["children",""+a]):Fs.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&pe("scroll",r)}switch(n){case"input":Ri(r),qf(r,s,!0);break;case"textarea":Ri(r),Qf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Oa)}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=Dm(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[Qs]=r,lv(e,t,!1,!1),t.stateNode=e;e:{switch(i=Gu(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<bs.length;o++)pe(bs[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":Kf(e,r),o=Bu(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Gf(e,r),o=Vu(e,r),pe("invalid",e);break;default:o=r}qu(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?zm(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fm(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Us(e,l):typeof l=="number"&&Us(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Fs.hasOwnProperty(s)?l!=null&&s==="onScroll"&&pe("scroll",e):l!=null&&md(e,s,l,i))}switch(n){case"input":Ri(e),qf(e,r,!1);break;case"textarea":Ri(e),Qf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rr(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=Oa)}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)cv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=kr(Js.current),kr(tn.current),Di(t)){if(r=t.stateNode,n=t.memoizedProps,r[Jt]=t,(s=r.nodeValue!==n)&&(e=ct,e!==null))switch(e.tag){case 3:Mi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mi(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(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&ut!==null&&t.mode&1&&!(t.flags&128))Pg(),zo(),t.flags|=98560,s=!1;else if(s=Di(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&&(Pc(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||we.current&1?je===0&&(je=3):Jd())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Wo(),xc(e,t),e===null&&qs(t.stateNode.containerInfo),We(t),null;case 10:return Id(t.type._context),We(t),null;case 17:return st(t.type)&&Na(),We(t),null;case 19:if(me(we),s=t.memoizedState,s===null)return We(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)hs(s,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Da(e),i!==null){for(t.flags|=128,hs(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(we,we.current&1|2),t.child}e=e.sibling}s.tail!==null&&Te()>Vo&&(t.flags|=128,r=!0,hs(s,!1),t.lanes=4194304)}else{if(!r)if(e=Da(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ve)return We(t),null}else 2*Te()-s.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,hs(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=Te(),t.sibling=null,n=we.current,de(we,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Yd(),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 r1(e,t){switch(Od(t),t.tag){case 1:return st(t.type)&&Na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wo(),me(ot),me(Ke),Fd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dd(t),null;case 13:if(me(we),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(we),null;case 4:return Wo(),null;case 10:return Id(t.type._context),null;case 22:case 23:return Yd(),null;case 24:return null;default:return null}}var zi=!1,Ve=!1,o1=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){ke(e,t,r)}else n.current=null}function bc(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Dh=!1;function s1(e,t){if(oc=Ta,e=mg(),Pd(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(sc={focusedElem:e,selectionRange:n},Ta=!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(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=Dh,Dh=!1,x}function As(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&&bc(t,n,s)}o=o.next}while(o!==r)}}function dl(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 Sc(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 dv(e){var t=e.alternate;t!==null&&(e.alternate=null,dv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Qs],delete t[lc],delete t[zb],delete t[Bb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fv(e){return e.tag===5||e.tag===3||e.tag===4}function Fh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _c(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=Oa));else if(r!==4&&(e=e.child,e!==null))for(_c(e,t,n),e=e.sibling;e!==null;)_c(e,t,n),e=e.sibling}function Ec(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(Ec(e,t,n),e=e.sibling;e!==null;)Ec(e,t,n),e=e.sibling}var $e=null,$t=!1;function Pn(e,t,n){for(n=n.child;n!==null;)hv(e,t,n),n=n.sibling}function hv(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:Ve||xo(n,t);case 6:var r=$e,o=$t;$e=null,Pn(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?ou(e.parentNode,n):e.nodeType===1&&ou(e,n),Hs(e)):ou($e,n.stateNode));break;case 4:r=$e,o=$t,$e=n.stateNode.containerInfo,$t=!0,Pn(e,t,n),$e=r,$t=o;break;case 0:case 11:case 14:case 15:if(!Ve&&(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)&&bc(n,t,i),o=o.next}while(o!==r)}Pn(e,t,n);break;case 1:if(!Ve&&(xo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,Pn(e,t,n),Ve=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function Uh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o1),t.forEach(function(r){var o=p1.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));hv(s,i,o),$e=null,$t=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){ke(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)pv(t,e),t=t.sibling}function pv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Vt(e),r&4){try{As(3,e,e.return),dl(3,e)}catch(p){ke(e,e.return,p)}try{As(5,e,e.return)}catch(p){ke(e,e.return,p)}}break;case 1:Pt(t,e),Vt(e),r&512&&n!==null&&xo(n,n.return);break;case 5:if(Pt(t,e),Vt(e),r&512&&n!==null&&xo(n,n.return),e.flags&32){var o=e.stateNode;try{Us(o,"")}catch(p){ke(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&&$m(o,s),Gu(a,i);var u=Gu(a,s);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];c==="style"?zm(o,d):c==="dangerouslySetInnerHTML"?Fm(o,d):c==="children"?Us(o,d):md(o,c,d,u)}switch(a){case"input":Wu(o,s);break;case"textarea":Mm(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[Qs]=s}catch(p){ke(e,e.return,p)}}break;case 6:if(Pt(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(p){ke(e,e.return,p)}}break;case 3:if(Pt(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hs(t.containerInfo)}catch(p){ke(e,e.return,p)}break;case 4:Pt(t,e),Vt(e);break;case 13:Pt(t,e),Vt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Gd=Te())),r&4&&Uh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(u=Ve)||c,Pt(t,e),Ve=u):Pt(t,e),Vt(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:As(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){ke(r,n,p)}}break;case 5:xo(h,h.return);break;case 22:if(h.memoizedState!==null){Bh(d);continue}}f!==null?(f.return=h,D=f):Bh(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=Um("display",i))}catch(p){ke(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){ke(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),Vt(e),r&4&&Uh(e);break;case 21:break;default:Pt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(fv(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&&(Us(o,""),r.flags&=-33);var s=Fh(e);Ec(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Fh(e);_c(e,a,i);break;default:throw Error(O(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function i1(e,t,n){D=e,mv(e)}function mv(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||zi;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ve;a=zi;var u=Ve;if(zi=i,(Ve=l)&&!u)for(D=o;D!==null;)i=D,l=i.child,i.tag===22&&i.memoizedState!==null?Wh(o):l!==null?(l.return=i,D=l):Wh(o);for(;s!==null;)D=s,mv(s),s=s.sibling;D=o,zi=a,Ve=u}zh(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,D=s):zh(e)}}function zh(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:Ve||dl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ve)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&&kh(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}kh(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&&Hs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ve||t.flags&512&&Sc(t)}catch(h){ke(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 Bh(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 Wh(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{dl(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ke(t,o,l)}}var s=t.return;try{Sc(t)}catch(l){ke(t,s,l)}break;case 5:var i=t.return;try{Sc(t)}catch(l){ke(t,i,l)}}}catch(l){ke(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 a1=Math.ceil,za=Sn.ReactCurrentDispatcher,Kd=Sn.ReactCurrentOwner,bt=Sn.ReactCurrentBatchConfig,ne=0,Le=null,Pe=null,Me=0,at=0,bo=lr(0),je=0,ti=null,Mr=0,fl=0,qd=0,js=null,tt=null,Gd=0,Vo=1/0,un=null,Ba=!1,kc=null,Zn=null,Bi=!1,Kn=null,Wa=0,Is=0,Cc=null,fa=-1,ha=0;function Je(){return ne&6?Te():fa!==-1?fa:fa=Te()}function er(e){return e.mode&1?ne&2&&Me!==0?Me&-Me:Hb.transition!==null?(ha===0&&(ha=Zm()),ha):(e=ae,e!==0||(e=window.event,e=e===void 0?16:ig(e.type)),e):1}function Ut(e,t,n,r){if(50<Is)throw Is=0,Cc=null,Error(O(185));hi(e,n,r),(!(ne&2)||e!==Le)&&(e===Le&&(!(ne&2)&&(fl|=n),je===4&&Dn(e,Me)),it(e,r),n===1&&ne===0&&!(t.mode&1)&&(Vo=Te()+500,ll&&ur()))}function it(e,t){var n=e.callbackNode;Hx(e,t);var r=Ca(e,e===Le?Me:0);if(r===0)n!==null&&Xf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xf(n),t===1)e.tag===0?Wb(Hh.bind(null,e)):kg(Hh.bind(null,e)),Fb(function(){!(ne&6)&&ur()}),n=null;else{switch(eg(r)){case 1:n=xd;break;case 4:n=Jm;break;case 16:n=ka;break;case 536870912:n=Xm;break;default:n=ka}n=_v(n,gv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gv(e,t){if(fa=-1,ha=0,ne&6)throw Error(O(327));var n=e.callbackNode;if(To()&&e.callbackNode!==n)return null;var r=Ca(e,e===Le?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ha(e,r);else{t=r;var o=ne;ne|=2;var s=yv();(Le!==e||Me!==t)&&(un=null,Vo=Te()+500,Ar(e,t));do try{c1();break}catch(a){vv(e,a)}while(!0);jd(),za.current=s,ne=o,Pe!==null?t=0:(Le=null,Me=0,t=je)}if(t!==0){if(t===2&&(o=Zu(e),o!==0&&(r=o,t=Tc(e,o))),t===1)throw n=ti,Ar(e,0),Dn(e,r),it(e,Te()),n;if(t===6)Dn(e,r);else{if(o=e.current.alternate,!(r&30)&&!l1(o)&&(t=Ha(e,r),t===2&&(s=Zu(e),s!==0&&(r=s,t=Tc(e,s))),t===1))throw n=ti,Ar(e,0),Dn(e,r),it(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:xr(e,tt,un);break;case 3:if(Dn(e,r),(r&130023424)===r&&(t=Gd+500-Te(),10<t)){if(Ca(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ac(xr.bind(null,e,tt,un),t);break}xr(e,tt,un);break;case 4:if(Dn(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=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a1(r/1960))-r,10<r){e.timeoutHandle=ac(xr.bind(null,e,tt,un),r);break}xr(e,tt,un);break;case 5:xr(e,tt,un);break;default:throw Error(O(329))}}}return it(e,Te()),e.callbackNode===n?gv.bind(null,e):null}function Tc(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(Ar(e,t).flags|=256),e=Ha(e,t),e!==2&&(t=tt,tt=n,t!==null&&Pc(t)),e}function Pc(e){tt===null?tt=e:tt.push.apply(tt,e)}function l1(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 Dn(e,t){for(t&=~qd,t&=~fl,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 Hh(e){if(ne&6)throw Error(O(327));To();var t=Ca(e,0);if(!(t&1))return it(e,Te()),null;var n=Ha(e,t);if(e.tag!==0&&n===2){var r=Zu(e);r!==0&&(t=r,n=Tc(e,r))}if(n===1)throw n=ti,Ar(e,0),Dn(e,t),it(e,Te()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xr(e,tt,un),it(e,Te()),null}function Qd(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(Vo=Te()+500,ll&&ur())}}function Dr(e){Kn!==null&&Kn.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)&&ur()}}function Yd(){at=bo.current,me(bo)}function Ar(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Db(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Od(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Na();break;case 3:Wo(),me(ot),me(Ke),Fd();break;case 5:Dd(r);break;case 4:Wo();break;case 13:me(we);break;case 19:me(we);break;case 10:Id(r.type._context);break;case 22:case 23:Yd()}n=n.return}if(Le=e,Pe=e=tr(e.current,null),Me=at=t,je=0,ti=null,qd=fl=Mr=0,tt=js=null,Er!==null){for(t=0;t<Er.length;t++)if(n=Er[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}Er=null}return e}function vv(e,t){do{var n=Pe;try{if(jd(),ua.current=Ua,Fa){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Fa=!1}if($r=0,Ie=Ae=xe=null,Ns=!1,Xs=0,Kd.current=null,n===null||n.return===null){je=1,ti=t,Pe=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=Nh(i);if(f!==null){f.flags&=-257,Ah(f,i,a,s,t),f.mode&1&&Oh(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)){Oh(s,u,t),Jd();break e}l=Error(O(426))}}else if(ve&&a.mode&1){var w=Nh(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Ah(w,i,a,s,t),Nd(Ho(l,a));break e}}s=l=Ho(l,a),je!==4&&(je=2),js===null?js=[s]:js.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=ev(s,l,t);Eh(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"&&(Zn===null||!Zn.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=tv(s,a,t);Eh(s,S);break e}}s=s.return}while(s!==null)}xv(n)}catch(_){t=_,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function yv(){var e=za.current;return za.current=Ua,e===null?Ua:e}function Jd(){(je===0||je===3||je===2)&&(je=4),Le===null||!(Mr&268435455)&&!(fl&268435455)||Dn(Le,Me)}function Ha(e,t){var n=ne;ne|=2;var r=yv();(Le!==e||Me!==t)&&(un=null,Ar(e,t));do try{u1();break}catch(o){vv(e,o)}while(!0);if(jd(),ne=n,za.current=r,Pe!==null)throw Error(O(261));return Le=null,Me=0,je}function u1(){for(;Pe!==null;)wv(Pe)}function c1(){for(;Pe!==null&&!Lx();)wv(Pe)}function wv(e){var t=Sv(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?xv(e):Pe=t,Kd.current=null}function xv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=r1(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,Pe=null;return}}else if(n=n1(n,t,at),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);je===0&&(je=5)}function xr(e,t,n){var r=ae,o=bt.transition;try{bt.transition=null,ae=1,d1(e,t,n,r)}finally{bt.transition=o,ae=r}return null}function d1(e,t,n,r){do To();while(Kn!==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(Vx(e,s),e===Le&&(Pe=Le=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bi||(Bi=!0,_v(ka,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,Kd.current=null,s1(e,n),pv(n,e),Nb(sc),Ta=!!oc,sc=oc=null,e.current=n,i1(n),$x(),ne=a,ae=i,bt.transition=s}else e.current=n;if(Bi&&(Bi=!1,Kn=e,Wa=o),s=e.pendingLanes,s===0&&(Zn=null),Fx(n.stateNode),it(e,Te()),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(Ba)throw Ba=!1,e=kc,kc=null,e;return Wa&1&&e.tag!==0&&To(),s=e.pendingLanes,s&1?e===Cc?Is++:(Is=0,Cc=e):Is=0,ur(),null}function To(){if(Kn!==null){var e=eg(Wa),t=bt.transition,n=ae;try{if(bt.transition=null,ae=16>e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,Wa=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:As(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(dv(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:As(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:dl(9,a)}}catch(_){ke(a,a.return,_)}if(a===i){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(ne=o,ur(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(rl,e)}catch{}r=!0}return r}finally{ae=n,bt.transition=t}}return!1}function Vh(e,t,n){t=Ho(n,t),t=ev(e,t,1),e=Xn(e,t,1),t=Je(),e!==null&&(hi(e,1,t),it(e,t))}function ke(e,t,n){if(e.tag===3)Vh(e,e,n);else for(;t!==null;){if(t.tag===3){Vh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zn===null||!Zn.has(r))){e=Ho(n,e),e=tv(t,e,1),t=Xn(t,e,1),e=Je(),t!==null&&(hi(t,1,e),it(t,e));break}}t=t.return}}function f1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Me&n)===n&&(je===4||je===3&&(Me&130023424)===Me&&500>Te()-Gd?Ar(e,0):qd|=n),it(e,t)}function bv(e,t){t===0&&(e.mode&1?(t=Ai,Ai<<=1,!(Ai&130023424)&&(Ai=4194304)):t=1);var n=Je();e=yn(e,t),e!==null&&(hi(e,t,n),it(e,n))}function h1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bv(e,n)}function p1(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),bv(e,n)}var Sv;Sv=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,t1(e,t,n);rt=!!(e.flags&131072)}else rt=!1,ve&&t.flags&1048576&&Cg(t,Ia,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;da(e,t),e=t.pendingProps;var o=Uo(t,Ke.current);Co(t,n),o=zd(null,t,r,e,o,n);var s=Bd();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,Aa(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,$d(t),o.updater=cl,t.stateNode=o,o._reactInternals=t,pc(t,r,e,n),t=vc(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&Rd(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=g1(r),e=At(r,e),o){case 0:t=gc(null,t,r,e,n);break e;case 1:t=Lh(null,t,r,e,n);break e;case 11:t=jh(null,t,r,e,n);break e;case 14:t=Ih(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),gc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),Lh(e,t,r,o,n);case 3:e:{if(sv(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Ag(e,t),Ma(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=Ho(Error(O(423)),t),t=$h(e,t,r,n,o);break e}else if(r!==o){o=Ho(Error(O(424)),t),t=$h(e,t,r,n,o);break e}else for(ut=Jn(t.stateNode.containerInfo.firstChild),ct=t,ve=!0,Dt=null,n=Og(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 jg(t),e===null&&dc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ic(r,o)?i=null:s!==null&&ic(r,s)&&(t.flags|=32),ov(e,t),Qe(e,t,i,n),t.child;case 6:return e===null&&dc(t),null;case 13:return iv(e,t,n);case 4:return Md(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),jh(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(La,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),fc(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),fc(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),Ih(e,t,r,o,n);case 15:return nv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),da(e,t),t.tag=1,st(r)?(e=!0,Aa(t)):e=!1,Co(t,n),Zg(t,r,o),pc(t,r,o,n),vc(null,t,r,!0,e,n);case 19:return av(e,t,n);case 22:return rv(e,t,n)}throw Error(O(156,t.tag))};function _v(e,t){return Ym(e,t)}function m1(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 m1(e,t,n,r)}function Xd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g1(e){if(typeof e=="function")return Xd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vd)return 11;if(e===yd)return 14}return 2}function tr(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.deleti
vendor: 8,896 bytes, line 40
40ons=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 pa(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Xd(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case co:return jr(n.children,o,s,t);case gd:i=8,o|=8;break;case Du:return e=xt(12,n,t,o|2),e.elementType=Du,e.lanes=s,e;case Fu:return e=xt(13,n,t,o),e.elementType=Fu,e.lanes=s,e;case Uu:return e=xt(19,n,t,o),e.elementType=Uu,e.lanes=s,e;case jm:return hl(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nm:i=10;break e;case Am:i=9;break e;case vd:i=11;break e;case yd:i=14;break e;case Ln: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 jr(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=xt(22,e,r,t),e.elementType=jm,e.lanes=n,e.stateNode={isHidden:!1},e}function fu(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function hu(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 v1(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=ql(0),this.expirationTimes=ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ql(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zd(e,t,n,r,o,s,i,a,l){return e=new v1(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},$d(s),e}function y1(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 Ev(e){if(!e)return or;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 Eg(e,n,t)}return t}function kv(e,t,n,r,o,s,i,a,l){return e=Zd(n,r,!0,e,o,s,i,a,l),e.context=Ev(null),n=e.current,r=Je(),o=er(n),s=mn(r,o),s.callback=t??null,Xn(n,s,o),e.current.lanes=o,hi(e,o,r),it(e,r),e}function pl(e,t,n,r){var o=t.current,s=Je(),i=er(o);return n=Ev(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=Xn(o,t,i),e!==null&&(Ut(e,o,i,s),la(e,o,i)),i}function Va(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 Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ef(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function w1(){return null}var Cv=typeof reportError=="function"?reportError:function(e){console.error(e)};function tf(e){this._internalRoot=e}ml.prototype.render=tf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));pl(e,t,null,null)};ml.prototype.unmount=tf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dr(function(){pl(null,e,null,null)}),t[vn]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var t=rg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mn.length&&t!==0&&t<Mn[n].priority;n++);Mn.splice(n,0,e),n===0&&sg(e)}};function nf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qh(){}function x1(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Va(i);s.call(u)}}var i=kv(t,r,e,0,null,!1,!1,"",qh);return e._reactRootContainer=i,e[vn]=i.current,qs(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=Va(l);a.call(u)}}var l=Zd(e,0,!1,null,null,!1,!1,"",qh);return e._reactRootContainer=l,e[vn]=l.current,qs(e.nodeType===8?e.parentNode:e),Dr(function(){pl(t,l,n,r)}),l}function vl(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=Va(i);a.call(l)}}pl(t,i,e,o)}else i=x1(n,t,e,o,r);return Va(i)}tg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xs(t.pendingLanes);n!==0&&(bd(t,n|1),it(t,Te()),!(ne&6)&&(Vo=Te()+500,ur()))}break;case 13:Dr(function(){var r=yn(e,1);if(r!==null){var o=Je();Ut(r,e,1,o)}}),ef(e,1)}};Sd=function(e){if(e.tag===13){var t=yn(e,134217728);if(t!==null){var n=Je();Ut(t,e,134217728,n)}ef(e,134217728)}};ng=function(e){if(e.tag===13){var t=er(e),n=yn(e,t);if(n!==null){var r=Je();Ut(n,e,t,r)}ef(e,t)}};rg=function(){return ae};og=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Yu=function(e,t,n){switch(t){case"input":if(Wu(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=al(r);if(!o)throw Error(O(90));Lm(r),Wu(r,o)}}}break;case"textarea":Mm(e,n);break;case"select":t=n.value,t!=null&&So(e,!!n.multiple,t,!1)}};Hm=Qd;Vm=Dr;var b1={usingClientEntryPoint:!1,Events:[mi,mo,al,Bm,Wm,Qd]},ps={findFiberByHostInstance:_r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},S1={bundleType:ps.bundleType,version:ps.version,rendererPackageName:ps.rendererPackageName,rendererConfig:ps.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=Gm(e),e===null?null:e.stateNode},findFiberByHostInstance:ps.findFiberByHostInstance||w1,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 Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{rl=Wi.inject(S1),en=Wi}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b1;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nf(t))throw Error(O(200));return y1(e,t,null,n)};ht.createRoot=function(e,t){if(!nf(e))throw Error(O(299));var n=!1,r="",o=Cv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Zd(e,1,!1,null,null,n,!1,r,o),e[vn]=t.current,qs(e.nodeType===8?e.parentNode:e),new tf(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=Gm(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return Dr(e)};ht.hydrate=function(e,t,n){if(!gl(t))throw Error(O(200));return vl(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!nf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Cv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=kv(t,null,e,1,n??null,o,!1,s,i),e[vn]=t.current,qs(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 ml(t)};ht.render=function(e,t,n){if(!gl(t))throw Error(O(200));return vl(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!gl(e))throw Error(O(40));return e._reactRootContainer?(Dr(function(){vl(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1};ht.unstable_batchedUpdates=Qd;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!gl(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return vl(e,t,n,!1,r)};
40ht.version="18.3.1-next-f1338f8080-20240426";function Tv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tv)}catch(e){console.error(e)}}Tv(),Tm.exports=ht;var Hr=Tm.exports;const Pv=mm(Hr);var Rv,Gh=Hr;Rv=Gh.createRoot,Gh.hydrateRoot;const _1=1,E1=1e6;let pu=0;function k1(){return pu=(pu+1)%Number.MAX_SAFE_INTEGER,pu.toString()}const mu=new Map,Qh=e=>{if(mu.has(e))return;const t=setTimeout(()=>{mu.delete(e),Ls({type:"REMOVE_TOAST",toastId:e})},E1);mu.set(e,t)},C1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_1)};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)}}},ma=[];let ga={toasts:[]};function Ls(e){ga=C1(ga,e),ma.forEach(t=>{t(ga)})}function T1({...e}){const t=k1(),n=o=>Ls({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ls({type:"DISMISS_TOAST",toastId:t});return Ls({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Ov(){const[e,t]=y.useState(ga);return y.useEffect(()=>(ma.push(t),()=>{const n=ma.indexOf(t);n>-1&&ma.splice(n,1)}),[e]),{...e,toast:T1,dismiss:n=>Ls({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 Yh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nv(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Yh(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():Yh(e[o],null)}}}}function Ce(...e){return y.useCallback(Nv(...e),e)}function vi(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 b.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,P1(o,...t)]}function P1(...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 ni(e){const t=O1(e),n=y.forwardRef((r,o)=>{const{children:s,...i}=r,a=y.Children.toArray(s),l=a.find(A1);if(l){const u=l.props.children,c=a.map(d=>d===l?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return b.jsx(t,{...i,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return b.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var R1=ni("Slot");function O1(e){const t=y.forwardRef((n,r)=>{const{children:o,...s}=n;if(y.isValidElement(o)){const i=I1(o),a=j1(s,o.props);return o.type!==y.Fragment&&(a.ref=r?Nv(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 Av=Symbol("radix.slottable");function N1(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Av,t}function A1(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Av}function j1(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 I1(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 jv(e){const t=e+"CollectionProvider",[n,r]=vi(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 b.jsx(o,{scope:w,itemMap:g,collectionRef:m,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ni(a),u=j.forwardRef((p,w)=>{const{scope:v,children:m}=p,g=s(a,v),S=Ce(w,g.collectionRef);return b.jsx(l,{ref:S,children:m})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=ni(c),f=j.forwardRef((p,w)=>{const{scope:v,children:m,...g}=p,S=j.useRef(null),_=Ce(w,S),E=s(c,v);return j.useEffect(()=>(E.itemMap.set(S,{ref:S,...g}),()=>void E.itemMap.delete(S))),b.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 L1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=L1.reduce((e,t)=>{const n=ni(`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),b.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Iv(e,t){e&&Hr.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 $1(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 M1="DismissableLayer",Rc="dismissableLayer.update",D1="dismissableLayer.pointerDownOutside",F1="dismissableLayer.focusOutside",Jh,Lv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yl=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=y.useContext(Lv),[c,d]=y.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),x=Ce(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,S=m>=v,_=z1(k=>{const T=k.target,N=[...u.branches].some(A=>A.contains(T));!S||N||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},h),E=B1(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 $1(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&&(Jh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Xh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Jh)}},[c,h,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Xh())},[c,u]),y.useEffect(()=>{const k=()=>f({});return document.addEventListener(Rc,k),()=>document.removeEventListener(Rc,k)},[]),b.jsx(le.div,{...l,ref:x,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,_.onPointerDownCapture)})});yl.displayName=M1;var U1="DismissableLayerBranch",$v=y.forwardRef((e,t)=>{const n=y.useContext(Lv),r=y.useRef(null),o=Ce(t,r);return y.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx(le.div,{...e,ref:o})});$v.displayName=U1;function z1(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(){Mv(D1,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 B1(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&&Mv(F1,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 Xh(){const e=new CustomEvent(Rc);document.dispatchEvent(e)}function Mv(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?Iv(o,s):o.dispatchEvent(s)}var W1=yl,H1=$v,Fe=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},V1="Portal",rf=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?Pv.createPortal(b.jsx(le.div,{...r,ref:t}),i):null});rf.displayName=V1;function K1(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var of=e=>{const{present:t,children:n}=e,r=q1(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),s=Ce(r.ref,G1(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:s}):null};of.displayName="Presence";function q1(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),s=y.useRef("none"),i=e?"mounted":"unmounted",[a,l]=K1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Hi(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=Hi(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=Hi(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=Hi(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 Hi(e){return(e==null?void 0:e.animationName)||"none"}function G1(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 Q1=fd[" useInsertionEffect ".trim().toString()]||Fe;function Oc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Y1({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=J1(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 Y1({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),s=y.useRef(t);return Q1(()=>{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 J1(e){return typeof e=="function"}var Dv=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"}),X1="VisuallyHidden",wl=y.forwardRef((e,t)=>b.jsx(le.span,{...e,ref:t,style:{...Dv,...e.style}}));wl.displayName=X1;var Z1=wl,sf="ToastProvider",[af,eS,tS]=jv("Toast"),[Fv,sN]=vi("Toast",[tS]),[nS,xl]=Fv(sf),Uv=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 \`${sf}\`. Expected non-empty \`string\`.`),b.jsx(af.Provider,{scope:t,children:b.jsx(nS,{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})})};Uv.displayName=sf;var zv="ToastViewport",rS=["F8"],Nc="toast.viewportPause",Ac="toast.viewportResume",Bv=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=rS,label:o="Notifications ({hotkey})",...s}=e,i=xl(zv,n),a=eS(n),l=y.useRef(null),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=Ce(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(S=>v[S]||v.code===S)&&((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(Nc);v.dispatchEvent(E),i.isClosePausedRef.current=!0}},g=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(Ac);v.dispatchEvent(E),i.isClosePausedRef.current=!1}},S=E=>{!w.contains(E.relatedTarget)&&g()},_=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",m),w.addEventListener("focusout",S),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",_),window.addEventListener("blur",m),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",S),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 S=g.ref.current,_=[S,...gS(S)];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);gu(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]),b.jsxs(H1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&b.jsx(jc,{ref:u,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});gu(w)}}),b.jsx(af.Slot,{scope:n,children:b.jsx(le.ol,{tabIndex:-1,...s,ref:h})}),x&&b.jsx(jc,{ref:c,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});gu(w)}})]})});Bv.displayName=zv;var Wv="ToastFocusProxy",jc=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=xl(Wv,n);return b.jsx(wl,{"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()}})});jc.displayName=Wv;var yi="Toast",oS="toast.swipeStart",sS="toast.swipeMove",iS="toast.swipeCancel",aS="toast.swipeEnd",Hv=y.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=Oc({prop:r,defaultProp:o??!0,onChange:s,caller:yi});return b.jsx(of,{present:n||a,children:b.jsx(cS,{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)})})})});Hv.displayName=yi;var[lS,uS]=Fv(yi,{onClose(){}}),cS=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=xl(yi,n),[w,v]=y.useState(null),m=Ce(t,I=>v(I)),g=y.useRef(null),S=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 V;(w==null?void 0:w.contains(document.activeElement))&&((V=p.viewport)==null||V.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 V=()=>{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(Nc,F),I.addEventListener(Ac,V),()=>{I.removeEventListener(Nc,F),I.removeEventListener(Ac,V)}}},[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?Jv(w):null,[w]);return p.viewport?b.jsxs(b.Fragment,{children:[W&&b.jsx(dS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),b.jsx(lS,{scope:n,onClose:U,children:Hr.createPortal(b.jsx(af.ItemSlot,{scope:n,children:b.jsx(W1,{asChild:!0,onEscapeKeyDown:ee(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||U(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.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 V=I.clientX-g.current.x,F=I.clientY-g.current.y,B=!!S.current,C=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,$=C?R(0,V):0,H=C?0:R(0,F),z=I.pointerType==="touch"?10:2,Y={x:$,y:H},K={originalEvent:I,delta:Y};B?(S.current=Y,Vi(sS,d,K,{discrete:!1})):Zh(Y,p.swipeDirection,z)?(S.current=Y,Vi(oS,c,K,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(V)>z||Math.abs(F)>z)&&(g.current=null)}),onPointerUp:ee(e.onPointerUp,I=>{const V=S.current,F=I.target;if(F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),S.current=null,g.current=null,V){const B=I.currentTarget,C={originalEvent:I,delta:V};Zh(V,p.swipeDirection,p.swipeThreshold)?Vi(aS,f,C,{discrete:!0}):Vi(iS,h,C,{discrete:!0}),B.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}
40),dS=e=>{const{__scopeToast:t,children:n,...r}=e,o=xl(yi,t),[s,i]=y.useState(!1),[a,l]=y.useState(!1);return pS(()=>i(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:b.jsx(rf,{asChild:!0,children:b.jsx(wl,{...r,children:s&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},fS="ToastTitle",Vv=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(le.div,{...r,ref:t})});Vv.displayName=fS;var hS="ToastDescription",Kv=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(le.div,{...r,ref:t})});Kv.displayName=hS;var qv="ToastAction",Gv=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(Yv,{altText:n,asChild:!0,children:b.jsx(lf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${qv}\`. Expected non-empty \`string\`.`),null)});Gv.displayName=qv;var Qv="ToastClose",lf=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=uS(Qv,n);return b.jsx(Yv,{asChild:!0,children:b.jsx(le.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,o.onClose)})})});lf.displayName=Qv;var Yv=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Jv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),mS(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(...Jv(r))}}),t}function Vi(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?Iv(o,s):o.dispatchEvent(s)}var Zh=(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 pS(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 mS(e){return e.nodeType===e.ELEMENT_NODE}function gS(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 gu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var vS=Uv,Xv=Bv,Zv=Hv,ey=Vv,ty=Kv,ny=Gv,ry=lf;function oy(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=oy(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sy(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=oy(e))&&(r&&(r+=" "),r+=t);return r}const ep=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tp=sy,uf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return tp(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=ep(c)||ep(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 tp(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 yS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),iy=(...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 wS={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 xS=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,...wS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:iy("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 _n=(e,t)=>{const n=y.forwardRef(({className:r,...o},s)=>y.createElement(xS,{ref:s,iconNode:t,className:iy(`lucide-${yS(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 bS=_n("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 ay=_n("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 SS=_n("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 _S=_n("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 ES=_n("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
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 np=_n("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 8,500 bytes, lines 90-105
90y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 kS=_n("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"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const CS=_n("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const TS=_n("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cf="-",PS=e=>{const t=OS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(cf);return a[0]===""&&a.length!==1&&a.shift(),ly(a,t)||RS(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},ly=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ly(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(cf);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},rp=/^\[(.+)\]$/,RS=e=>{if(rp.test(e)){const t=rp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},OS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return AS(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ic(i,r,s,t)}),r},Ic=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:op(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(NS(o)){Ic(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ic(i,op(t,s),n,r)})})},op=(e,t)=>{let n=e;return t.split(cf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},NS=e=>e.isThemeGetter,AS=(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,jS=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)}}},uy="!",IS=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(uy),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},LS=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},$S=e=>({cache:jS(e.cacheSize),parseClassName:IS(e),...PS(e)}),MS=/\s+/,DS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(MS);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=LS(c).join(":"),v=d?w+uy:w,m=v+p;if(s.includes(m))continue;s.push(m);const g=o(p,x);for(let S=0;S<g.length;++S){const _=g[S];s.push(v+_)}a=u+(a.length>0?" "+a:a)}return a};function FS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=cy(t))&&(r&&(r+=" "),r+=n);return r}const cy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cy(e[r]))&&(n&&(n+=" "),n+=t);return n};function US(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((c,d)=>d(c),e());return n=$S(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=DS(l,n);return o(l,c),c}return function(){return s(FS.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},dy=/^\[(?:([a-z-]+):)?(.+)\]$/i,zS=/^\d+\/\d+$/,BS=new Set(["px","full","screen"]),WS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,VS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,KS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sn=e=>Po(e)||BS.has(e)||zS.test(e),Rn=e=>Xo(e,"length",t_),Po=e=>!!e&&!Number.isNaN(Number(e)),vu=e=>Xo(e,"number",Po),ms=e=>!!e&&Number.isInteger(Number(e)),GS=e=>e.endsWith("%")&&Po(e.slice(0,-1)),J=e=>dy.test(e),On=e=>WS.test(e),QS=new Set(["length","size","percentage"]),YS=e=>Xo(e,QS,fy),JS=e=>Xo(e,"position",fy),XS=new Set(["image","url"]),ZS=e=>Xo(e,XS,r_),e_=e=>Xo(e,"",n_),gs=()=>!0,Xo=(e,t,n)=>{const r=dy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},t_=e=>HS.test(e)&&!VS.test(e),fy=()=>!1,n_=e=>KS.test(e),r_=e=>qS.test(e),o_=()=>{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"),S=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,Rn],I=()=>["auto",Po,J],V=()=>["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"],H=()=>[Po,J];return{cacheSize:500,separator:":",theme:{colors:[gs],spacing:[sn,Rn],blur:["none","",On,J],brightness:H(),borderColor:[e],borderRadius:["none","","full",On,J],borderSpacing:L(),borderWidth:W(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[GS,Rn],inset:U(),margin:U(),opacity:H(),padding:L(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[On]}],"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:[...V(),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 105
105],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ms,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",ms,J]}],"grid-cols":[{"grid-cols":[gs]}],"col-start-end":[{col:["auto",{span:["full",ms,J]},J]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[gs]}],"row-start-end":[{row:["auto",{span:[ms,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:[On]},On]}],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",On,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vu]}],"font-family":[{font:[gs]}],"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,vu]}],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,Rn]}],"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:[...V(),JS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",YS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ZS]}],"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,Rn]}],"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,Rn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",On,e_]}],"shadow-color":[{shadow:[gs]}],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",On,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:H()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ms,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 105
105],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,Rn,vu]}],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"]}}},s_=US(o_);function ye(...e){return s_(sy(e))}const i_=vS,hy=y.forwardRef(({className:e,...t},n)=>b.jsx(Xv,{ref:n,className:ye("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}));hy.displayName=Xv.displayName;const a_=uf("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"}}),py=y.forwardRef(({className:e,variant:t,...n},r)=>b.jsx(Zv,{ref:r,className:ye(a_({variant:t}),e),...n}));py.displayName=Zv.displayName;const l_=y.forwardRef(({className:e,...t},n)=>b.jsx(ny,{ref:n,className:ye("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}));l_.displayName=ny.displayName;const my=y.forwardRef(({className:e,...t},n)=>b.jsx(ry,{ref:n,className:ye("absolute right-2 top-2 rounded-md p-1 text-foreground
105/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:b.jsx(TS,{className:"h-4 w-4"})}));my.displayName=ry.displayName;const gy=y.forwardRef(({className:e,...t},n)=>b.jsx(ey,{ref:n,className:ye("text-sm font-semibold",e),...t}));gy.displayName=ey.displayName;const vy=y.forwardRef(({className:e,...t},n)=>b.jsx(ty,{ref:n,className:ye("text-sm opacity-90",e),...t}));vy.displayName=ty.displayName;function u_(){const{toasts:e}=Ov();return b.jsxs(i_,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return b.jsxs(py,{...s,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(gy,{children:n}),r&&b.jsx(vy,{children:r})]}),o,b.jsx(my,{})]},t)}),b.jsx(hy,{})]})}var sp=["light","dark"],c_="(prefers-color-scheme: dark)",d_=y.createContext(void 0),f_={setTheme:e=>{},themes:[]},h_=()=>{var e;return(e=y.useContext(d_))!=null?e:f_};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?sp.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&&sp.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='${c_}',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 p_=e=>{switch(e){case"success":return v_;case"info":return w_;case"warning":return y_;case"error":return x_;default:return null}},m_=Array(12).fill(0),g_=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},m_.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),v_=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"})),y_=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"})),w_=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"})),x_=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"})),b_=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"})),S_=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};
105return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Lc=1,__=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:Lc++,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)=>
105this.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(k_(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)||Lc++;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 __,E_=(e,t)=>{let n=(t==null?void 0:t.id)||Lc++;return et.addToast({title:e,...t,id:n}),n},k_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",C_=E_,T_=()=>et.toasts,P_=()=>et.getActiveToasts();Object.assign(C_,{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:T_,getToasts:P_});function R_(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))}R_(`: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;
105left: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}
105: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%);
105--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%)}
106`);function Ki(e){return e.label!==void 0}var O_=3,N_="32px",A_="16px",ip=4e3,j_=356,I_=14,L_=20,$_=200;function Rt(...e){return e.filter(Boolean).join(" ")}function M_(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var D_=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:S,expanded:_,removeToast:E,defaultRichColors:k,closeButton:T,style:N,cancelButtonStyle:A,actionButtonStyle:U,className:L="",descriptionClassName:W="",duration:I,position:V,gap:F,loadingIcon:B,expandByDefault:C,classNames:R,icons:$,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=e,[Y,K]=j.useState(null),[fe,Se]=j.useState(null),[M,ie]=j.useState(!1),[_e,se]=j.useState(!1),[te,re]=j.useState(!1),[Ue,mt]=j.useState(!1),[hr,En]=j.useState(!1),[pr,ss]=j.useState(0),[Gr,jf]=j.useState(0),is=j.useRef(f.duration||I||ip),If=j.useRef(null),mr=j.useRef(null),zw=g===0,Bw=g
106+1<=v,gt=f.type,Qr=f.dismissible!==!1,Ww=f.className||"",Hw=f.descriptionClassName||"",ki=j.useMemo(()=>m.findIndex(q=>q.toastId===f.id)||0,[m,f.id]),Vw=j.useMemo(()=>{var q;return(q=f.closeButton)!=null?q:T},[f.closeButton,T]),Lf=j.useMemo(()=>f.duration||I||ip,[f.duration,I]),Fl=j.useRef(0),Yr=j.useRef(0),$f=j.useRef(0),Jr=j.useRef(null),[Kw,qw]=V.split("-"),Mf=j.useMemo(()=>m.reduce((q,ue,ge)=>ge>=ki?q:q+ue.height,0),[m,ki]),Df=S_(),Gw=f.invert||h,Ul=gt==="loading";Yr.current=j.useMemo(()=>ki*F+Mf,[ki,Mf]),j.useEffect(()=>{is.current=Lf},[Lf]),j.useEffect(()=>{ie(!0)},[]),j.useEffect(()=>{let q=mr.current;if(q){let ue=q.getBoundingClientRect().height;return jf(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=mr.current,ue=q.style.height;q.style.height="auto";let ge=q.getBoundingClientRect().height;q.style.height=ue,jf(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 kn=j.useCallback(()=>{se(!0),ss(Yr.current),w(q=>q.filter(ue=>ue.toastId!==f.id)),setTimeout(()=>{E(f)},$_)},[f,E,w,Yr]);j.useEffect(()=>{if(f.promise&&gt==="loading"||f.duration===1/0||f.type==="loading")return;let q;return _||p||z&&Df?(()=>{if($f.current<Fl.current){let ue=new Date().getTime()-Fl.current;is.current=is.current-ue}$f.current=new Date().getTime()})():is.current!==1/0&&(Fl.current=new Date().getTime(),q=setTimeout(()=>{var ue;(ue=f.onAutoClose)==null||ue.call(f,f),kn()},is.current)),()=>clearTimeout(q)},[_,p,f,gt,z,Df,kn]),j.useEffect(()=>{f.delete&&kn()},[kn,f.delete]);function Qw(){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(g_,{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:mr,className:Rt(L,Ww,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":hr,"data-removed":_e,"data-visible":Bw,"data-y-position":Kw,"data-x-position":qw,"data-index":g,"data-front":zw,"data-swiping":te,"data-dismissible":Qr,"data-type":gt,"data-invert":Gw,"data-swipe-out":Ue,"data-swipe-direction":fe,"data-expanded":!!(_||C&&M),style:{"--index":g,"--toasts-before":g,"--z-index":S.length-g,"--offset":`${_e?pr:Yr.current}px`,"--initial-height":C?"auto":`${Gr}px`,...N,...f.style},onDragEnd:()=>{re(!1),K(null),Jr.current=null},onPointerDown:q=>{Ul||!Qr||(If.current=new Date,ss(Yr.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(re(!0),Jr.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,ue,ge,kt;if(Ue||!Qr)return;Jr.current=null;let Ct=Number(((q=mr.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((ue=mr.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),gr=new Date().getTime()-((ge=If.current)==null?void 0:ge.getTime()),Tt=Y==="x"?Ct:Cn,Tn=Math.abs(Tt)/gr;if(Math.abs(Tt)>=L_||Tn>.11){ss(Yr.current),(kt=f.onDismiss)==null||kt.call(f,f),Se(Y==="x"?Ct>0?"right":"left":Cn>0?"down":"up"),kn(),mt(!0),En(!1);return}re(!1),K(null)},onPointerMove:q=>{var ue,ge,kt,Ct;if(!Jr.current||!Qr||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;let Cn=q.clientY-Jr.current.y,gr=q.clientX-Jr.current.x,Tt=(ge=e.swipeDirections)!=null?ge:M_(V);!Y&&(Math.abs(gr)>1||Math.abs(Cn)>1)&&K(Math.abs(gr)>
106Math.abs(Cn)?"x":"y");let Tn={x:0,y:0};Y==="y"?(Tt.includes("top")||Tt.includes("bottom"))&&(Tt.includes("top")&&Cn<0||Tt.includes("bottom")&&Cn>0)&&(Tn.y=Cn):Y==="x"&&(Tt.includes("left")||Tt.includes("right"))&&(Tt.includes("left")&&gr<0||Tt.includes("right")&&gr>0)&&(Tn.x=gr),(Math.abs(Tn.x)>0||Math.abs(Tn.y)>0)&&En(!0),(kt=mr.current)==null||kt.style.setProperty("--swipe-amount-x",`${Tn.x}px`),(Ct=mr.current)==null||Ct.style.setProperty("--swipe-amount-y",`${Tn.y}px`)}},Vw&&!f.jsx?j.createElement("button",{"aria-label":H,"data-disabled":Ul,"data-close-button":!0,onClick:Ul||!Qr?()=>{}:()=>{var q;kn(),(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:b_):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||Qw():null,f.type!=="loading"?f.icon||($==null?void 0:$[gt])||p_(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,Hw,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&&Ki(f.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:q=>{var ue,ge;Ki(f.cancel)&&Qr&&((ge=(ue=f.cancel).onClick)==null||ge.call(ue,q),kn())},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&&Ki(f.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||U,onClick:q=>{var ue,ge;Ki(f.action)&&((ge=(ue=f.action).onClick)==null||ge.call(ue,q),!q.defaultPrevented&&kn())},className:Rt(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function ap(){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 F_(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?A_:N_;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 U_=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=O_,toastOptions:p,dir:w=ap(),gap:v=I_,loadingIcon:m,icons:g,containerAriaLabel:S="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),[V,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),H=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(()=>{Pv.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(Se=>Y[Se]||Y.code===Se)&&(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":`${S} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((z,Y)=>{var K;let[fe,Se]=z.split("-");return E.length?j.createElement("ol",{key:z,dir:w==="auto"?ap():w,tabIndex:-1,ref:B,className:a,"data-sonner-toaster":!0,"data-theme":V,"data-y-position":fe,"data-lifted":U&&E.length>1&&!s,"data-x-position":Se,style:{"--front-toast-height":`${((K=N[0])==null?void 0:K.height)||0}px`,"--width":`${j_}px`,"--gap":`${v}px`,...f,...F_(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 _e,se;return j.createElement(D_,{key:M.id,icons:g,index:ie,toast:M,defaultRichColors:d,duration:(_e=p==null?void 0:p.duration)!=null?_e: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:H,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 z_=({...e})=>{const{theme:t="system"}=h_();return b.jsx(U_,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var B_=fd[" useId ".trim().toString()]||(()=>{}),W_=0;function df(e){const[t,n]=y.useState(B_());return Fe(()=>{n(r=>r??String(W_++))},[e]),t?`radix-${t}`:""}const H_=["top","right","bottom","left"],sr=Math.min,lt=Math.max,Ka=Math.round,qi=Math.floor,nn=e=>({x:e,y:e}
vendor: 11,921 bytes, line 106
106),V_={left:"right",right:"left",bottom:"top",top:"bottom"},K_={start:"end",end:"start"};function $c(e,t,n){return lt(e,sr(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 ff(e){return e==="x"?"y":"x"}function hf(e){return e==="y"?"height":"width"}const q_=new Set(["top","bottom"]);function Zt(e){return q_.has(bn(e))?"y":"x"}function pf(e){return ff(Zt(e))}function G_(e,t,n){n===void 0&&(n=!1);const r=Zo(e),o=pf(e),s=hf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qa(i)),[i,qa(i)]}function Q_(e){const t=qa(e);return[Mc(e),t,Mc(t)]}function Mc(e){return e.replace(/start|end/g,t=>K_[t])}const lp=["left","right"],up=["right","left"],Y_=["top","bottom"],J_=["bottom","top"];function X_(e,t,n){switch(e){case"top":case"bottom":return n?t?up:lp:t?lp:up;case"left":case"right":return t?Y_:J_;default:return[]}}function Z_(e,t,n,r){const o=Zo(e);let s=X_(bn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Mc)))),s}function qa(e){return e.replace(/left|right|bottom|top/g,t=>V_[t])}function eE(e){return{top:0,right:0,bottom:0,left:0,...e}}function yy(e){return typeof e!="number"?eE(e):{top:e,right:e,bottom:e,left:e}}function Ga(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 cp(e,t,n){let{reference:r,floating:o}=e;const s=Zt(t),i=pf(t),a=hf(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 tE=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}=cp(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:S,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],...S}},_&&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}=cp(u,h,l)),p=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:f}};async function ri(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=yy(f),w=a[h?d==="floating"?"reference":"floating":d],v=Ga(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)),S=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},_=Ga(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:g,strategy:l}):m);return{top:(v.top-_.top+x.top)/S.y,bottom:(_.bottom-v.bottom+x.bottom)/S.y,left:(v.left-_.left+x.left)/S.x,right:(_.right-v.right+x.right)/S.x}}const nE=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=yy(c),h={x:n,y:r},f=pf(o),x=hf(f),p=await i.getDimensions(u),w=f==="y",v=w?"top":"left",m=w?"bottom":"right",g=w?"clientHeight":"clientWidth",S=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=S/2-_/2,N=k/2-p[x]/2-1,A=sr(d[v],N),U=sr(d[m],N),L=A,W=k-p[x]-U,I=k/2-p[x]/2+T,V=$c(L,I,W),F=!l.arrow&&Zo(o)!=null&&I!==V&&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]:V,centerOffset:I-V-B,...F&&{alignmentOffset:B}},reset:F}}}),rE=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,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(g||!p?[qa(a)]:Q_(a)),E=x!=="none";!h&&E&&_.push(...Z_(a,p,x,S));const k=[a,..._],T=await ri(t,w),N=[];let A=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&N.push(T[v]),d){const I=G_(o,i,S);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,V=k[I];if(V&&(!(d==="alignment"?m!==Zt(V):!1)||A.every(C=>C.overflows[0]>0&&Zt(C.placement)===m)))return{data:{index:I,overflows:A},reset:{placement:V}};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 dp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fp(e){return H_.some(t=>e[t]>=0)}const oE=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 ri(t,{...o,elementContext:"reference"}),i=dp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:fp(i)}}}case"escaped":{const s=await ri(t,{...o,altBoundary:!0}),i=dp(s,n.floating);return{data:{escapedOffsets:i,escaped:fp(i)}}}default:return{}}}}},wy=new Set(["left","top"]);async function sE(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=wy.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 iE=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 sE(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}}}}},aE=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 ri(t,l),d=Zt(bn(o)),h=ff(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=$c(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=$c(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}}}}}},lE=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=ff(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",S=s.reference[h]-s.floating[g]+w.mainAxis,_=s.reference[h]+s.reference[g]-w.mainAxis;f<S?f=S:f>_&&(f=_)}if(u){var v,m;const g=h==="y"?"width":"height",S=wy.has(bn(o)),_=s.reference[d]-s.floating[g]+(S&&((v=i.offset)==null?void 0:v[d])||0)+(S?0:w.crossAxis),E=s.reference[d]+s.reference[g]+(S?0:((m=i.offset)==null?void 0:m[d])||0)-(S?w.crossAxis:0);x<_?x=_:x>E&&(x=E)}return{[h]:f,[d]:x}}}},uE=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 ri(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,S=sr(p-c[w],m),_=sr(x-c[v],g),E=!t.middlewareData.shift;let k=S,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 bl(){return typeof window<"u"}function es(e){return xy(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=(xy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xy(e){return bl()?e instanceof Node||e instanceof dt(e).Node:!1}function Wt(e){return bl()?e instanceof Element||e instanceof dt(e).Element:!1}function rn(e){return bl()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function hp(e){return!bl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const cE=new Set(["inline","contents"]);function wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!cE.has(o)}const dE=new Set(["table","td","th"]);function fE(e){return dE.has(es(e))}const hE=[":popover-open",":modal"];function Sl(e){return hE.some(t=>{try{return e.matches(t)}catch{return!1}})}const pE=["transform","translate","scale","rotate","perspective"],mE=["transform","translate","scale","rotate","perspective","filter"],gE=["paint","layout","strict","content"];function mf(e){const t=gf(),n=Wt(e)?Ht(e):e;return pE.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)||mE.some(r=>(n.willChange||"").includes(r))||gE.some(r=>(n.contain||"").includes(r))}function vE(e){let t=ir(e);for(;rn(t)&&!Ko(t);){if(mf(t))return t;if(Sl(t))return null;t=ir(t)}return null}function gf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yE=new Set(["html","body","#document"]);function Ko(e){return yE.has(es(e))}function Ht(e){return dt(e).getComputedStyle(e)}function _l(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ir(e){if(es(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hp(e)&&e.host||on(e);return hp(t)?t.host:t}function by(e){const t=ir(e);return Ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&wi(t)?t:by(t)}function oi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=by(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=dt(o);if(s){const a=Dc(i);
vendor: 4,772 bytes, line 106
106return t.concat(i,i.visualViewport||[],wi(o)?o:[],a&&n?oi(a):[])}return t.concat(o,oi(o,[],n))}function Dc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sy(e){const t=Ht(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=Ka(n)!==s||Ka(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function vf(e){return Wt(e)?e:e.contextElement}function Ro(e){const t=vf(e);if(!rn(t))return nn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Sy(t);let i=(s?Ka(n.width):n.width)/r,a=(s?Ka(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const wE=nn(0);function _y(e){const t=dt(e);return!gf()||!t.visualViewport?wE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xE(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=vf(e);let i=nn(1);t&&(r?Wt(r)&&(i=Ro(r)):i=Ro(e));const a=xE(s,n,r)?_y(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=Dc(x);for(;p&&r&&f!==x;){const w=Ro(p),v=p.getBoundingClientRect(),m=Ht(p),g=v.left+(p.clientLeft+parseFloat(m.paddingLeft))*w.x,S=v.top+(p.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=g,u+=S,x=dt(p),p=Dc(x)}}return Ga({width:c,height:d,x:l,y:u})}function yf(e,t){const n=_l(e).scrollLeft;return t?t.left+n:Fr(on(e)).left+n}function Ey(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:yf(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function bE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=on(r),a=t?Sl(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"||wi(i))&&(l=_l(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?Ey(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 SE(e){return Array.from(e.getClientRects())}function _E(e){const t=on(e),n=_l(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+yf(e);const a=-n.scrollTop;return Ht(r).direction==="rtl"&&(i+=lt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function EE(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=gf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const kE=new Set(["absolute","fixed"]);function CE(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 pp(e,t,n){let r;if(t==="viewport")r=EE(e,n);else if(t==="document")r=_E(on(e));else if(Wt(t))r=CE(t,n);else{const o=_y(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ga(r)}function ky(e,t){const n=ir(e);return n===t||!Wt(n)||Ko(n)?!1:Ht(n).position==="fixed"||ky(n,t)}function TE(e,t){const n=t.get(e);if(n)return n;let r=oi(e,[],!1).filter(a=>Wt(a)&&es(a)!=="body"),o=null;const s=Ht(e).position==="fixed";let i=s?ir(e):e;for(;Wt(i)&&!Ko(i);){const a=Ht(i),l=mf(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&kE.has(o.position)||wi(i)&&!l&&ky(e,i))?r=r.filter(c=>c!==i):o=a,i=ir(i)}return t.set(e,r),r}function PE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Sl(t)?[]:TE(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const d=pp(t,c,o);return u.top=lt(d.top,u.top),u.right=sr(d.right,u.right),u.bottom=sr(d.bottom,u.bottom),u.left=lt(d.left,u.left),u},pp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function RE(e){const{width:t,height:n}=Sy(e);return{width:t,height:n}}function OE(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=yf(o)}if(r||!r&&!s)if((es(t)!=="body"||wi(o))&&(a=_l(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?Ey(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 yu(e){return Ht(e).position==="static"}function mp(e,t){if(!rn(e)||Ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function Cy(e,t){const n=dt(e);
vendor: 9,138 bytes, line 106
106if(Sl(e))return n;if(!rn(e)){let o=ir(e);for(;o&&!Ko(o);){if(Wt(o)&&!yu(o))return o;o=ir(o)}return n}let r=mp(e,t);for(;r&&fE(r)&&yu(r);)r=mp(r,t);return r&&Ko(r)&&yu(r)&&!mf(r)?n:r||vE(e)||n}const NE=async function(e){const t=this.getOffsetParent||Cy,n=this.getDimensions,r=await n(e.floating);return{reference:OE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AE(e){return Ht(e).direction==="rtl"}const jE={convertOffsetParentRelativeRectToViewportRelativeRect:bE,getDocumentElement:on,getClippingRect:PE,getOffsetParent:Cy,getElementRects:NE,getClientRects:SE,getDimensions:RE,getScale:Ro,isElement:Wt,isRTL:AE};function Ty(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function IE(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=qi(d),p=qi(o.clientWidth-(c+h)),w=qi(o.clientHeight-(d+f)),v=qi(c),g={rootMargin:-x+"px "+-p+"px "+-w+"px "+-v+"px",threshold:lt(0,sr(1,l))||1};let S=!0;function _(E){const k=E[0].intersectionRatio;if(k!==l){if(!S)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Ty(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return i(!0),s}function LE(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=vf(e),c=o||s?[...u?oi(u):[],...oi(t)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=u&&a?IE(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&&!Ty(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 $E=iE,ME=aE,DE=rE,FE=uE,UE=oE,gp=nE,zE=lE,BE=(e,t,n)=>{const r=new Map,o={platform:jE,...n},s={...o.platform,_c:r};return tE(e,t,{...o,platform:s})};var WE=typeof document<"u",HE=function(){},va=WE?y.useLayoutEffect:HE;function Qa(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(!Qa(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)&&!Qa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Py(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vp(e,t){const n=Py(e);return Math.round(t*n)/n}function wu(e){const t=y.useRef(e);return va(()=>{t.current=e}),t}function VE(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);Qa(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))},[]),S=s||x,_=i||w,E=y.useRef(null),k=y.useRef(null),T=y.useRef(c),N=l!=null,A=wu(l),U=wu(o),L=wu(u),W=y.useCallback(()=>{if(!E.current||!k.current)return;const C={placement:t,strategy:n,middleware:h};U.current&&(C.platform=U.current),BE(E.current,k.current,C).then(R=>{const $={...R,isPositioned:L.current!==!1};I.current&&!Qa(T.current,$)&&(T.current=$,Hr.flushSync(()=>{d($)}))})},[h,t,n,U,L]);va(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[u]);const I=y.useRef(!1);va(()=>(I.current=!0,()=>{I.current=!1}),[]),va(()=>{if(S&&(E.current=S),_&&(k.current=_),S&&_){if(A.current)return A.current(S,_,W);W()}},[S,_,W,A,N]);const V=y.useMemo(()=>({reference:E,floating:k,setReference:m,setFloating:g}),[m,g]),F=y.useMemo(()=>({reference:S,floating:_}),[S,_]),B=y.useMemo(()=>{const C={position:n,left:0,top:0};if(!F.floating)return C;const R=vp(F.floating,c.x),$=vp(F.floating,c.y);return a?{...C,transform:"translate("+R+"px, "+$+"px)",...Py(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:V,elements:F,floatingStyles:B}),[c,W,V,F,B])}const KE=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?gp({element:r.current,padding:o}).fn(n):{}:r?gp({element:r,padding:o}).fn(n):{}}}},qE=(e,t)=>({...$E(e),options:[e,t]}),GE=(e,t)=>({...ME(e),options:[e,t]}),QE=(e,t)=>({...zE(e),options:[e,t]}),YE=(e,t)=>({...DE(e),options:[e,t]}),JE=(e,t)=>({...FE(e),options:[e,t]}),XE=(e,t)=>({...UE(e),options:[e,t]}),ZE=(e,t)=>({...KE(e),options:[e,t]});var ek="Arrow",Ry=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return b.jsx(le.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ry.displayName=ek;var tk=Ry;function nk(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 wf="Popper",[Oy,El]=vi(wf),[rk,Ny]=Oy(wf),Ay=e=>{const{__scopePopper:t,children:n}=e,[r,o]=y.useState(null);return b.jsx(rk,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ay.displayName=wf;var jy="PopperAnchor",Iy=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ny(jy,n),i=y.useRef(null),a=Ce(t,i);return y.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:b.jsx(le.div,{...o,ref:a})});Iy.displayName=jy;var xf="PopperContent",[ok,sk]=Oy(xf),Ly=y.forwardRef((e,t)=>{var M,ie,_e,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=Ny(xf,n),[v,m]=y.useState(null),g=Ce(t,Ue=>m(Ue)),[S,_]=y.useState(null),E=nk(S),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(ak),altBoundary:L},{refs:I,floatingStyles:V,placement:F,isPositioned:B,middlewareData:C}=VE({strategy:"fixed",placement:N,whileElementsMounted:(...Ue)=>LE(...Ue,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[qE({mainAxis:o+T,alignmentAxis:i}),l&&GE({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?QE():void 0,...W}),l&&YE({...W}),JE({...W,apply:({elements:Ue,rects:mt,availableWidth:hr,availableHeight:En})=>{const{width:pr,height:ss}=mt.reference,Gr=Ue.floating.style;Gr.setProperty("--radix-popper-available-width",`${hr}px`),Gr.setProperty("--radix-popper-available-height",`${En}px`),Gr.setProperty("--radix-popper-anchor-width",`${pr}px`),Gr.setProperty("--radix-popper-anchor-height",`${ss}px`)}}),S&&ZE({element:S,padding:a}),lk({arrowWidth:k,arrowHeight:T}),h&&XE({strategy:"referenceHidden",...W})]}),[R,$]=Dy(F),H=Bt(x);Fe(()=>{B&&(H==null||H())},[B,H]);const z=(M=C.arrow)==null?void 0:M.x,Y=(ie=C.arrow)==null?void 0:ie.y,K=((_e=C.arrow)==null?void 0:_e.centerOffset)!==0,[fe,Se]=y.useState();return Fe(()=>{v&&Se(window.getComputedStyle(v).zIndex)},[v]),b.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:B?V.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:b.jsx(ok,{scope:n,placedSide:R,onArrowChange:_,arrowX:z,arrowY:Y,shouldHideArrow:K,children:b.jsx(le.div,{"data-side":R,"data-align":$,...p,ref:g,style:{...p.style,animation:B?void 0:"none"}})})})});Ly.displayName=xf;var $y="PopperArrow",ik={top:"bottom",right:"left",bottom:"top",left:"r
106ight"},My=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=sk($y,r),i=ik[s.placedSide];return b.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:b.jsx(tk,{...o,ref:n,style:{...o.style,display:"block"}})})});My.displayName=$y;function ak(e){return e!==null}var lk=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]=Dy(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 Dy(e){const[t,n="center"]=e.split("-");return[t,n]}var uk=Ay,Fy=Iy,Uy=Ly,zy=My,[kl,iN]=vi("Tooltip",[El]),bf=El(),By="TooltipProvider",ck=700,yp="tooltip.open",[dk,Wy]=kl(By),Hy=e=>{const{__scopeTooltip:t,delayDuration:n=ck,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)},[]),b.jsx(dk,{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})};Hy.displayName=By;var Vy="Tooltip",[aN,Cl]=kl(Vy),Fc="TooltipTrigger",fk=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cl(Fc,n),s=Wy(Fc,n),i=bf(n),a=y.useRef(null),l=Ce(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]),b.jsx(Fy,{asChild:!0,...i,children:b.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)})})});fk.displayName=Fc;var hk="TooltipPortal",[lN,pk]=kl(hk,{forceMount:void 0}),qo="TooltipContent",Ky=y.forwardRef((e,t)=>{const n=pk(qo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Cl(qo,e.__scopeTooltip);return b.jsx(of,{present:r||i.open,children:i.disableHoverableContent?b.jsx(qy,{side:o,...s,ref:t}):b.jsx(mk,{side:o,...s,ref:t})})}),mk=y.forwardRef((e,t)=>{const n=Cl(qo,e.__scopeTooltip),r=Wy(qo,e.__scopeTooltip),o=y.useRef(null),s=Ce(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=xk(v,w.getBoundingClientRect()),g=bk(v,m),S=Sk(p.getBoundingClientRect()),_=Ek([...g,...S]);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=!_k(v,i);m?h():g&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,c,i,u,h]),b.jsx(qy,{...e,ref:s})}),[gk,vk]=kl(Vy,{isInside:!1}),yk=N1("TooltipContent"),qy=y.forwardRef((e,t)=>
106{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Cl(qo,n),u=bf(n),{onClose:c}=l;return y.useEffect(()=>(document.addEventListener(yp,c),()=>document.removeEventListener(yp,c)),[c]),y.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),b.jsx(yl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:b.jsxs(Uy,{"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:[b.jsx(yk,{children:r}),b.jsx(gk,{scope:n,isInside:!0,children:b.jsx(Z1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Ky.displayName=qo;var Gy="TooltipArrow",wk=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bf(n);return vk(Gy,n).isInside?null:b.jsx(zy,{...o,...r,ref:t})});wk.displayName=Gy;function xk(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 bk(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 Sk(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 _k(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 Ek(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),kk(t)}function kk(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 Ck=Hy,Qy=Ky;const Tk=Ck,Pk=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>b.jsx(Qy,{ref:r,sideOffset:t,className:ye("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}));Pk.displayName=Qy.displayName;var Tl=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(){}},Pl=typeof window>"u"||"Deno"in globalThis;function jt(){}function Rk(e,t){return typeof e=="function"?e(t):e}function Ok(e){return typeof e=="number"&&e>=0&&e!==1/0}function Nk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Uc(e,t){return typeof e=="function"?e(t):e}function Ak(e,t){return typeof e=="function"?e(t):e}function wp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Sf(i,t.options))return!1}else if(!ii(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 xp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(si(t.options.mutationKey)!==si(s))return!1}else if(!ii(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Sf(e,t){return((t==null?void 0:t.queryKeyHashFn)||si)(e)}function si(e){return JSON.stringify(e,(t,n)=>zc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ii(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ii(e[n],t[n])):!1}function Yy(e,t){if(e===t)return e;const n=bp(e)&&bp(t);if(n||zc(e)&&zc(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]=Yy(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function bp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zc(e){if(!Sp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Sp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sp(e){return Object.prototype.toString.call(e)==="[object Object]"}function jk(e){return new Promise(t=>{setTimeout(t,e)})}function Ik(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Yy(e,t):t}function Lk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function $k(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var _f=Symbol();function Jy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===_f?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Cr,Un,No,am,Mk=(am=class extends Tl{constructor(){super();oe(this,Cr);oe(this,Un);oe(this,No);G(this,No,t=>{if(!Pl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,Un)||this.setEventListener(P(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Un))==null||t.call(this),G(this,Un,void 0))}setEventListener(t){var n;G(this,No,t),(n=P(this,Un))==null||n.call(this),G(this,Un,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Cr)!==t&&(G(this,Cr,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,517 bytes, line 106
106this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Cr)=="boolean"?P(this,Cr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Cr=new WeakMap,Un=new WeakMap,No=new WeakMap,am),Xy=new Mk,Ao,zn,jo,lm,Dk=(lm=class extends Tl{constructor(){super();oe(this,Ao,!0);oe(this,zn);oe(this,jo);G(this,jo,t=>{if(!Pl&&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,zn)||this.setEventListener(P(this,jo))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,zn))==null||t.call(this),G(this,zn,void 0))}setEventListener(t){var n;G(this,jo,t),(n=P(this,zn))==null||n.call(this),G(this,zn,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,zn=new WeakMap,jo=new WeakMap,lm),Ya=new Dk;function Fk(){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 Uk(e){return Math.min(1e3*2**e,3e4)}function Zy(e){return(e??"online")==="online"?Ya.isOnline():!0}var e0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xu(e){return e instanceof e0}function t0(e){let t=!1,n=0,r=!1,o;const s=Fk(),i=p=>{var w;r||(h(new e0(p)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Xy.isFocused()&&(e.networkMode==="always"||Ya.isOnline())&&e.canRun(),c=()=>Zy(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??(Pl?0:3),g=e.retryDelay??Uk,S=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),jk(S).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 zk=e=>setTimeout(e,0);function Bk(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=zk;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=Bk(),Tr,um,n0=(um=class{constructor(){oe(this,Tr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ok(this.gcTime)&&G(this,Tr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pl?1/0:5*60*1e3))}clearGcTimeout(){P(this,Tr)&&(clearTimeout(P(this,Tr)),G(this,Tr,void 0))}},Tr=new WeakMap,um),Io,Pr,vt,Rr,He,ci,Or,It,an,cm,Wk=(cm=class extends n0{constructor(t){super();oe(this,It);oe(this,Io);oe(this,Pr);oe(this,vt);oe(this,Rr);oe(this,He);oe(this,ci);oe(this,Or);G(this,Or,!1),G(this,ci,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,Rr,t.client),G(this,vt,P(this,Rr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,Io,Vk(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,He))==null?void 0:t.promise}setOptions(t){this.options={...P(this,ci),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,vt).remove(this)}setData(t,n){const r=Ik(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,He))==null?void 0:r.promise;
vendor: 1,669 bytes, line 106
106return(o=P(this,He))==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=>Ak(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_f||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Uc(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:!Nk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,He))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,He))==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,He)&&(P(this,Or)?P(this,He).cancel({revert:!0}):P(this,He).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 106
106fetch(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,He))return P(this,He).continueRetry(),P(this,He).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,Or,!0),r.signal)})},s=()=>{const h=Jy(this.options,n),x=(()=>{const p={client:P(this,Rr),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return G(this,Or,!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,Rr),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,Pr,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;xu(h)&&h.silent||ze(this,It,an).call(this,{type:"error",error:h}),xu(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,He,t0({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,He).start()}},Io=new WeakMap,Pr=new WeakMap,vt=new WeakMap,Rr=new WeakMap,He=new WeakMap,ci=new WeakMap,Or=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,...Hk(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,Pr,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 xu(o)&&o.revert&&P(this,Pr)?{...P(this,Pr),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})})},cm);function Hk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Vk(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,dm,Kk=(dm=class extends Tl{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??Sf(o,n);let i=this.get(s);return i||(i=new Wk({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=>wp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wp(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,dm),Qt,Ge,Nr,Yt,An,fm,qk=(fm=class extends n0{constructor(t){super();oe(this,Yt);oe(this,Qt);oe(this,Ge);oe(this,Nr);this.mutationId=t.mutationId,G(this,Ge,t.mutationCache),G(this,Qt,[]),this.state=t.state||Gk(),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,Nr))==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,S,_,E,k,T;const n=()=>{ze(this,Yt,An).call(this,{type:"continue"})};G(this,Nr,t0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,A)=>{ze(this,Yt,An).call(this,{type:"failed",failureCount:N,error:A})},onPause:()=>{ze(this,Yt,An).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,Nr).canStart();try{if(r)n();else{ze(this,Yt,An).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=P(this,Ge).config).onMutate)==null?void 0:i.call(s,t,this));
106const A=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));A!==this.state.context&&ze(this,Yt,An).call(this,{type:"pending",context:A,variables:t,isPaused:o})}const N=await P(this,Nr).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,An).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((S=(g=this.options).onError)==null?void 0:S.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,An).call(this,{type:"error",error:N})}}finally{P(this,Ge).runNext(this)}}},Qt=new WeakMap,Ge=new WeakMap,Nr=new WeakMap,Yt=new WeakSet,An=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})})},fm);function Gk(){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,di,hm,Qk=(hm=class extends Tl{constructor(t={}){super();oe(this,fn);oe(this,Lt);oe(this,di);this.config=t,G(this,fn,new Set),G(this,Lt,new Map),G(this,di,0)}build(t,n,r){const o=new qk({mutationCache:this,mutationId:++Ci(this,di)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,fn).add(t);const n=Gi(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=Gi(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=Gi(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=Gi(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=>xp(n,r))}findAll(t={}){return this.getAll().filter(n=>xp(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,di=new WeakMap,hm);function Gi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function _p(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: 6,381 bytes, lines 106-115
106)},v=Jy(t.options,t.fetchOptions),m=async(g,S,_)=>{if(p)return Promise.reject();if(S==null&&g.pages.length)return Promise.resolve(g);const k=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return w(U),U})(),T=await v(k),{maxPages:N}=t.options,A=_?$k:Lk;return{pages:A(g.pages,T,N),pageParams:A(g.pageParams,S,N)}};if(o&&s.length){const g=o==="backward",S=g?Yk:Ep,_={pages:s,pageParams:i},E=S(r,_);a=await m(_,E,g)}else{const g=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:Ep(r,a);if(l>0&&S==null)break;a=await m(a,S),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 Ep(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 Yk(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 Ee,Bn,Wn,Lo,$o,Hn,Mo,Do,pm,Jk=(pm=class{constructor(e={}){oe(this,Ee);oe(this,Bn);oe(this,Wn);oe(this,Lo);oe(this,$o);oe(this,Hn);oe(this,Mo);oe(this,Do);G(this,Ee,e.queryCache||new Kk),G(this,Bn,e.mutationCache||new Qk),G(this,Wn,e.defaultOptions||{}),G(this,Lo,new Map),G(this,$o,new Map),G(this,Hn,0)}mount(){Ci(this,Hn)._++,P(this,Hn)===1&&(G(this,Mo,Xy.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ee).onFocus())})),G(this,Do,Ya.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ee).onOnline())})))}unmount(){var e,t;Ci(this,Hn)._--,P(this,Hn)===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,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Bn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,Ee).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Uc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,Ee).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,Ee).get(r.queryHash),s=o==null?void 0:o.state.data,i=Rk(t,s);if(i!==void 0)return P(this,Ee).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ye.batch(()=>P(this,Ee).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,Ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,Ee);Ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Ee);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,Ee).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(jt).catch(jt)}invalidateQueries(e,t={}){return Ye.batch(()=>(P(this,Ee).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,Ee).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,Ee).build(this,t);return n.isStaleByTime(Uc(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=_p(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}ensureInfiniteQueryData(e){return e.behavior=_p(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ya.isOnline()?P(this,Bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,Ee)}getMutationCache(){return P(this,Bn)}getDefaultOptions(){return P(this,Wn)}setDefaultOptions(e){G(this,Wn,e)}setQueryDefaults(e,t){P(this,Lo).set(si(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Lo).values()],n={};return t.forEach(r=>{ii(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,$o).set(si(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,$o).values()],n={};return t.forEach(r=>{ii(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,Wn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Sf(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===_f&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Wn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Ee).clear(),P(this,Bn).clear()}},Ee=new WeakMap,Bn=new WeakMap,Wn=new WeakMap,Lo=new WeakMap,$o=new WeakMap,Hn=new WeakMap,Mo=new WeakMap,Do=new WeakMap,pm),Xk=y.createContext(void 0),Zk=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(Xk.Provider,{value:e,children:t}));/**
107 * @remix-run/router v1.23.0
108 *
109 * Copyright (c) Remix Software Inc.
110 *
111 * This source code is licensed under the MIT license found in the
112 * LICENSE.md file in the root directory of this source tree.
113 *
114 * @license MIT
115 */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)}var qn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}
vendor: 4,857 bytes, line 115
115)(qn||(qn={}));const kp="popstate";function eC(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Bc("",{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:Ja(o)}return nC(t,n,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function r0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tC(){return Math.random().toString(36).substr(2,8)}function Cp(e,t){return{usr:e.state,key:e.key,idx:t}}function Bc(e,t,n,r){return n===void 0&&(n=null),ai({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ts(t):t,{state:n,key:t&&t.key||r||tC()})}function Ja(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 nC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=qn.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(ai({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=qn.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=qn.Push;let m=Bc(p.location,w,v);u=c()+1;let g=Cp(m,u),S=p.createHref(m);try{i.pushState(g,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(S)}s&&l&&l({action:a,location:p.location,delta:1})}function f(w,v){a=qn.Replace;let m=Bc(p.location,w,v);u=c();let g=Cp(m,u),S=p.createHref(m);i.replaceState(g,"",S),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:Ja(w);return m=m.replace(/ $/,"%20"),Re(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(kp,d),l=w,()=>{o.removeEventListener(kp,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 Tp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tp||(Tp={}));function rC(e,t,n){return n===void 0&&(n="/"),oC(e,t,n,!1)}function oC(e,t,n,r){let o=typeof t=="string"?ts(t):t,s=Ef(o.pathname||"/",n);if(s==null)return null;let i=o0(e);sC(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=gC(s);a=pC(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("/")&&(Re(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=nr([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Re(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:fC(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 sC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const iC=/^:[\w-]+$/,aC=3,lC=2,uC=1,cC=10,dC=-2,Pp=e=>e==="*";function fC(e,t){let n=e.split("/"),r=n.length;return n.some(Pp)&&(r+=dC),t&&(r+=lC),n.filter(o=>!Pp(o)).reduce((o,s)=>o+(iC.test(s)?aC:s===""?uC:cC),r)}function hC(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 pC(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=Rp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Rp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
vendor: 9,180 bytes, lines 115-124
115Object.assign(o,d.params),i.push({params:o,pathname:nr([s,d.pathname]),pathnameBase:xC(nr([s,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(s=nr([s,d.pathnameBase]))}return i}function Rp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mC(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 mC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),r0(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 gC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return r0(!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 Ef(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 vC(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:yC(n,t):t,search:bC(r),hash:SC(o)}}function yC(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 bu(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 wC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function i0(e,t){let n=wC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function a0(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ts(e):(o=ai({},e),Re(!o.pathname||!o.pathname.includes("?"),bu("?","pathname","search",o)),Re(!o.pathname||!o.pathname.includes("#"),bu("#","pathname","hash",o)),Re(!o.search||!o.search.includes("#"),bu("#","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=vC(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const nr=e=>e.join("/").replace(/\/\/+/g,"/"),xC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _C(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const l0=["post","put","patch","delete"];new Set(l0);const EC=["get",...l0];new Set(EC);/**
116 * React Router v6.30.1
117 *
118 * Copyright (c) Remix Software Inc.
119 *
120 * This source code is licensed under the MIT license found in the
121 * LICENSE.md file in the root directory of this source tree.
122 *
123 * @license MIT
124 */function li(){return li=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},li.apply(this,arguments)}const kf=y.createContext(null),kC=y.createContext(null),Vr=y.createContext(null),Rl=y.createContext(null),Kr=y.createContext({outlet:null,matches:[],isDataRoute:!1}),u0=y.createContext(null);function CC(e,t){let{relative:n}=t===void 0?{}:t;xi()||Re(!1);let{basename:r,navigator:o}=y.useContext(Vr),{hash:s,pathname:i,search:a}=f0(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:nr([r,i])),o.createHref({pathname:l,search:a,hash:s})}function xi(){return y.useContext(Rl)!=null}function bi(){return xi()||Re(!1),y.useContext(Rl).location}function c0(e){y.useContext(Vr).static||y.useLayoutEffect(e)}function d0(){let{isDataRoute:e}=y.useContext(Kr);return e?FC():TC()}function TC(){xi()||Re(!1);let e=y.useContext(kf),{basename:t,future:n,navigator:r}=y.useContext(Vr),{matches:o}=y.useContext(Kr),{pathname:s}=bi(),i=JSON.stringify(i0(o,n.v7_relativeSplatPath)),a=y.useRef(!1);return c0(()=>{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=a0(u,JSON.parse(i),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:nr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,i,s,e])}function f0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Vr),{matches:o}=y.useContext(Kr),{pathname:s}=bi(),i=JSON.stringify(i0(o,r.v7_relativeSplatPath));return y.useMemo(()=>a0(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function PC(e,t){return RC(e,t)}function RC(e,t,n,r){xi()||Re(!1);let{navigator:o}=y.useContext(Vr),{matches:s}=y.useContext(Kr),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=bi(),c;if(t){var d;let w=typeof t=="string"?ts(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||Re(!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=rC(e,{pathname:f}),p=IC(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:nr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:nr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&p?y.createElement(Rl.Provider,{value:{location:li({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:qn.Pop}},p):p}function OC(){let e=DC(),t=_C(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 NC=y.createElement(OC,null);class AC 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(Kr.Provider,{value:this.props.routeContext},y.createElement(u0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jC(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(kf);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Kr.Provider,{value:t},r)}function IC(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||Re(!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||NC,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(jC,{match:d,routeC
124ontext:{outlet:c,matches:v,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?y.createElement(AC,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var h0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(h0||{}),Xa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Xa||{});function LC(e){let t=y.useContext(kf);return t||Re(!1),t}function $C(e){let t=y.useContext(kC);return t||Re(!1),t}function MC(e){let t=y.useContext(Kr);return t||Re(!1),t}function p0(e){let t=MC(),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function DC(){var e;let t=y.useContext(u0),n=$C(Xa.UseRouteError),r=p0(Xa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function FC(){let{router:e}=LC(h0.UseNavigateStable),t=p0(Xa.UseNavigateStable),n=y.useRef(!1);return c0(()=>{n.current=!0}),y.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,li({fromRouteId:t},s)))},[e,t])}function UC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ya(e){Re(!1)}function zC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=qn.Pop,navigator:s,static:i=!1,future:a}=e;xi()&&Re(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:s,static:i,future:li({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=Ef(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(Vr.Provider,{value:u},y.createElement(Rl.Provider,{children:n,value:p}))}function BC(e){let{children:t,location:n}=e;return PC(Wc(t),n)}new Promise(()=>{});function Wc(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,Wc(r.props.children,s));return}r.type!==ya&&Re(!1),!r.props.index||!r.props.children||Re(!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=Wc(r.props.children,s)),n.push(i)}),n}/**
125 * React Router DOM v6.30.1
126 *
127 * Copyright (c) Remix Software Inc.
128 *
129 * This source code is licensed under the MIT license found in the
130 * LICENSE.md file in the root directory of this source tree.
131 *
132 * @license MIT
133 */function Hc(){return Hc=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},Hc.apply(this,arguments)}function WC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function HC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function VC(e,t){return e.button===0&&(!t||t==="_self")&&!HC(e)}const KC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],qC="6";try{window.__reactRouterVersion=qC}catch{}const GC="startTransition",Op=fd[GC];function QC(e){let{basename:t,children:n,future:r,window:o}=e,s=y.useRef();s.current==null&&(s.current=eC({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&&Op?Op(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>i.listen(c),[i,c]),y.useEffect(()=>UC(r),[r]),y.createElement(zC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const YC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",JC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,XC=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,h=WC(t,KC),{basename:f}=y.useContext(Vr),x,p=!1;if(typeof u=="string"&&JC.test(u)&&(x=u,YC))try{let g=new URL(window.location.href),S=u.startsWith("//")?new URL(g.protocol+u):new URL(u),_=Ef(S.pathname,f);S.origin===g.origin&&_!=null?u=_+S.search+S.hash:p=!0}catch{}let w=CC(u,{relative:o}),v=ZC(u,{replace:i,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:d});function m(g){r&&r(g),g.defaultPrevented||v(g)}return y.createElement("a",Hc({},h,{href:x||w,onClick:p||s?r:m,ref:n,target:l}))});var Np;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Np||(Np={}));var Ap;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ap||(Ap={}));function ZC(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,l=d0(),u=bi(),c=f0(e,{relative:i});return y.useCallback(d=>
133{if(VC(d,n)){d.preventDefault();let h=r!==void 0?r:Ja(u)===Ja(c);l(e,{replace:h,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[u,l,c,r,o,n,e,s,i,a])}const eT=uf("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 shadow-soft",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",hero:"bg-hero-gradient text-primary-foreground font-semibold shadow-medium hover:shadow-strong transform transition-all duration-300 hover:scale-[1.02]",accent:"bg-hero-accent-gradient text-accent-foreground font-semibold shadow-medium hover:shadow-strong transform transition-all duration-300 hover:scale-[1.02]",form:"bg-primary text-primary-foreground hover:bg-primary-dark shadow-soft transition-all duration-200"},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"}}),Cf=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?R1:"button";return b.jsx(i,{className:ye(eT({variant:t,size:n,className:e})),ref:s,...o})});Cf.displayName="Button";const wa=y.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:ye("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}));wa.displayName="Input";var tT="Label",m0=y.forwardRef((e,t)=>b.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())}}));m0.displayName=tT;var g0=m0;const nT=uf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ss=y.forwardRef(({className:e,...t},n)=>b.jsx(g0,{ref:n,className:ye(nT(),e),...t}));Ss.displayName=g0.displayName;const v0=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));v0.displayName="Card";const y0=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("flex flex-col space-y-1.5 p-6",e),...t}));y0.displayName="CardHeader";const w0=y.forwardRef(({className:e,...t},n)=>b.jsx("h3",{ref:n,className:ye("text-2xl font-semibold leading-none tracking-tight",e),...t}));w0.displayName="CardTitle";const x0=y.forwardRef(({className:e,...t},n)=>b.jsx("p",{ref:n,className:ye("text-sm text-muted-foreground",e),...t}));x0.displayName="CardDescription";const b0=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("p-6 pt-0",e),...t}));b0.displayName="CardContent";const rT=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:ye("flex items-center p-6 pt-0",e),...t}));rT.displayName="CardFooter";function jp(e,[t,n]){return Math.min(n,Math.max(t,e))}var oT=y.createContext(void 0);function sT(e){const t=y.useContext(oT);return e||t||"ltr"}var Su=0;function iT(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ip()),document.body.insertAdjacentElement("beforeend",e[1]??Ip()),Su++,()=>{Su===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Su--}},[])}function Ip(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,423 bytes, line 133
133style.position="fixed",e.style.pointerEvents="none",e}var _u="focusScope.autoFocusOnMount",Eu="focusScope.autoFocusOnUnmount",Lp={bubbles:!1,cancelable:!0},aT="FocusScope",S0=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=Ce(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 S=g.target;a.contains(S)?d.current=S:jn(d.current,{select:!0})},w=function(g){if(f.paused||!a)return;const S=g.relatedTarget;S!==null&&(a.contains(S)||jn(d.current,{select:!0}))},v=function(g){if(document.activeElement===document.body)for(const _ of g)_.removedNodes.length>0&&jn(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){Mp.add(f);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(_u,Lp);a.addEventListener(_u,u),a.dispatchEvent(v),v.defaultPrevented||(lT(hT(_0(a)),{select:!0}),document.activeElement===p&&jn(a))}return()=>{a.removeEventListener(_u,u),setTimeout(()=>{const v=new CustomEvent(Eu,Lp);a.addEventListener(Eu,c),a.dispatchEvent(v),v.defaultPrevented||jn(p??document.body,{select:!0}),a.removeEventListener(Eu,c),Mp.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,S]=uT(m);g&&S?!p.shiftKey&&v===S?(p.preventDefault(),n&&jn(g,{select:!0})):p.shiftKey&&v===g&&(p.preventDefault(),n&&jn(S,{select:!0})):v===m&&p.preventDefault()}},[n,r,f.paused]);return b.jsx(le.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})});S0.displayName=aT;function lT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(jn(r,{select:t}),document.activeElement!==n)return}function uT(e){const t=_0(e),n=$p(t,e),r=$p(t.reverse(),e);return[n,r]}function _0(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 $p(e,t){for(const n of e)if(!cT(n,{upTo:t}))return n}function cT(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 dT(e){return e instanceof HTMLInputElement&&"select"in e}function jn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dT(e)&&t&&e.select()}}var Mp=fT();function fT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dp(e,t),e.unshift(t)},remove(t){var n;e=Dp(e,t),(n=e[0])==null||n.resume()}}}function Dp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hT(e){return e.filter(t=>t.tagName!=="A")}function pT(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 mT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,Qi=new WeakMap,Yi={},ku=0,E0=function(e){return e&&(e.host||E0(e.parentNode))},gT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=E0(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})},vT=function(e,t,n,r){var o=gT(t,Array.isArray(e)?e:[e]);Yi[n]||(Yi[n]=new WeakMap);var s=Yi[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=(Zr.get(h)||0)+1,w=(s.get(h)||0)+1;Zr.set(h,p),s.set(h,w),i.push(h),p===1&&x&&Qi.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: 4,546 bytes, line 133
133return c(t),a.clear(),ku++,function(){i.forEach(function(d){var h=Zr.get(d)-1,f=s.get(d)-1;Zr.set(d,h),s.set(d,f),h||(Qi.has(d)||d.removeAttribute(r),Qi.delete(d)),f||d.removeAttribute(n)}),ku--,ku||(Zr=new WeakMap,Zr=new WeakMap,Qi=new WeakMap,Yi={})}},yT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=mT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),vT(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 k0(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 wT(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 xa="right-scroll-bar-position",ba="width-before-scroll-bar",xT="with-scroll-bars-hidden",bT="--removed-body-scroll-bar-size";function Cu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ST(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 _T=typeof window<"u"?y.useLayoutEffect:y.useEffect,Fp=new WeakMap;function ET(e,t){var n=ST(null,function(r){return e.forEach(function(o){return Cu(o,r)})});return _T(function(){var r=Fp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Cu(a,null)}),s.forEach(function(a){o.has(a)||Cu(a,i)})}Fp.set(n,e)},[e]),n}function kT(e){return e}function CT(e,t){t===void 0&&(t=kT);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 TT(e){e===void 0&&(e={});var t=CT(null);return t.options=Xt({async:!0,ssr:!1},e),t}var C0=function(e){var t=e.sideCar,n=k0(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))};C0.isSideCarExport=!0;function PT(e,t){return e.useMedium(t),C0}var T0=TT(),Tu=function(){},Ol=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),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,S=k0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,E=ET([n,t]),k=Xt(Xt({},S),o);return y.createElement(y.Fragment,null,c&&y.createElement(_,{sideCar:T0,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))});Ol.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ol.classNames={fullWidth:ba,zeroRight:xa};var RT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function OT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=RT();return t&&e.setAttribute("nonce",t),e}function NT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jT=function(){var e=0,t=null;
vendor: 8,672 bytes, lines 133-173
133return{add:function(n){e==0&&(t=OT())&&(NT(t,n),AT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},IT=function(){var e=jT();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},P0=function(){var e=IT(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},LT={left:0,top:0,right:0,gap:0},Pu=function(e){return parseInt(e||"",10)||0},$T=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[Pu(n),Pu(r),Pu(o)]},MT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return LT;var t=$T(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])}},DT=P0(),Oo="data-scroll-locked",FT=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
134  .`.concat(xT,` {
135   overflow: hidden `).concat(r,`;
136   padding-right: `).concat(a,"px ").concat(r,`;
137  }
138  body[`).concat(Oo,`] {
139    overflow: hidden `).concat(r,`;
140    overscroll-behavior: contain;
141    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
142    padding-left: `.concat(o,`px;
143    padding-top: `).concat(s,`px;
144    padding-right: `).concat(i,`px;
145    margin-left:0;
146    margin-top:0;
147    margin-right: `).concat(a,"px ").concat(r,`;
148    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
149  }
150  
151  .`).concat(xa,` {
152    right: `).concat(a,"px ").concat(r,`;
153  }
154  
155  .`).concat(ba,` {
156    margin-right: `).concat(a,"px ").concat(r,`;
157  }
158  
159  .`).concat(xa," .").concat(xa,` {
160    right: 0 `).concat(r,`;
161  }
162  
163  .`).concat(ba," .").concat(ba,` {
164    margin-right: 0 `).concat(r,`;
165  }
166  
167  body[`).concat(Oo,`] {
168    `).concat(bT,": ").concat(a,`px;
169  }
170`)},Up=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},UT=function(){y.useEffect(function(){return document.body.setAttribute(Oo,(Up()+1).toString()),function(){var e=Up()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},zT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;UT();var s=y.useMemo(function(){return MT(o)},[o]);return y.createElement(DT,{styles:FT(s,!t,o,n?"":"!important")})},Vc=!1;if(typeof window<"u")try{var Ji=Object.defineProperty({},"passive",{get:function(){return Vc=!0,!0}});window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{Vc=!1}var eo=Vc?{passive:!1}:!1,BT=function(e){return e.tagName==="TEXTAREA"},R0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!BT(e)&&n[t]==="visible")},WT=function(e){return R0(e,"overflowY")},HT=function(e){return R0(e,"overflowX")},zp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=O0(e,r);if(o){var s=N0(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},VT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},KT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},O0=function(e,t){return e==="v"?WT(t):HT(t)},N0=function(e,t){return e==="v"?VT(t):KT(t)},qT=function(e,t){return e==="h"&&t==="rtl"?-1:1},GT=function(e,t,n,r,o){var s=qT(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=N0(e,a),x=f[0],p=f[1],w=f[2],v=p-w-s*x;(x||v)&&O0(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},Xi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bp=function(e){return[e.deltaX,e.deltaY]},Wp=function(e){return e&&"current"in e?e.current:e},QT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},YT=function(e){return`
171  .block-interactivity-`.concat(e,` {pointer-events: none;}
172  .allow-interactivity-`).concat(e,` {pointer-events: all;}
173`)},JT=0,to=[];function XT(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(JT++)[0],s=y.useState(P0)[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=wT([e.lockRef.current],(e.shards||[]).map(Wp),!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=Xi(p),m=n.current,g="deltaX"in p?p.deltaX:m[0]-v[0],S="deltaY"in p?p.deltaY:m[1]-v[1],_,E=p.target,k=Math.abs(g)>Math.abs(S)?"h":"v";if("touches"in p&&k==="h"&&E.type==="range")return!1;var T=zp(k,E);if(!T)return!0;if(T?_=k:(_=k==="v"?"h":"v",T=zp(k,E)),!T)return!1;if(!r.current&&"changedTouches"in p&&(g||S)&&(r.current=_),!_)return!0;var N=r.current||_;return GT(N,w,p,N==="h"?g:S,!0)},[]),l=y.useCallback(function(p){var w=p;if(!(!to.length||to[to.length-1]!==s)){var v="deltaY"in w?Bp(w):Xi(w),m=t.current.filter(function(_){return _.name===w.type&&(_.target===w.target||w.target===_.shadowParent)&&QT(_.delta,v)})[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var g=(i.current.shards||[]).map(Wp).filter(Boolean).filter(function(_){return _.contains(w.target)}),S=g.length>0?a(w,g[0]):!i.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),u=y.useCallback(function(p,w,v,m){var g={name:p,delta:w,target:v,should:m,shadowParent:ZT(v)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(S){return S!==g})},1)},[]),c=y.useCallback(function(p){n.current=Xi(p),r.current=void 0},[]),d=y.useCallback(function(p){u(p.type,Bp(p),p.target,a(p,e.lockRef.current))},[]),h=y.useCallback(function(p){u(p.type,Xi(p),p.target,a(p,e.lockRef.current))},[]);y.useEffect(function(){return to.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,eo),document.addEventListener("touchmove",l,eo),document.addEventListener("touchstart",c,eo),function(){to=to.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,eo),document.removeEventListener("touchmove",l,eo),document.removeEventListener("touchstart",c,eo)}},[]);var f=e.removeScrollBar,x=e.inert;return y.createElement(y.Fragment,null,x?y.createElement(s,{styles:YT(o)}):null,f?y.createElement(zT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eP=PT(T0,XT);var A0=y.forwardRef(function(e,t){return y.createElement(Ol,Xt({},e,{ref:t,sideCar:eP}))});A0.classNames=Ol.classNames;var tP=[" ","Enter","ArrowUp","ArrowDown"],nP=[" ","Enter"],Ur="Select",[Nl,Al,rP]=jv(Ur),[ns,uN]=vi(Ur,[rP,El]),jl=El(),[oP,cr]=ns(Ur),[sP,iP]=ns(Ur),j0=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=jl(t),[w,v]=y.useState(null),[m,g]=y.useState(null),[S,_]=y.useState(!1),E=sT(u),[k,T]=Oc({prop:r,defaultProp:o??!1,onChange:s,caller:Ur}),[N,A]=Oc({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),V=Array.from(W).map(F=>F.props.value).join(";");return b.jsx(uk,{...p,children:b.jsxs(oP,{required:f,scope:t,trigger:w,onTriggerChange:v,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:df(),value:N,onValueChange:A,open:k,onOpenChange:T,dir:E,triggerPointerDownPosRef:U,disabled:h,children:[b.jsx(Nl.Provider,{scope:t,children:b.jsx(sP,{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?b.jsxs(rw,{"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?b.jsx("option",{value:""}):null,Array.from(W)]},V):null]})})};j0.displayName=Ur;var I0="SelectTrigger",L0=y.forwardRef((e,t)=>
vendor: 16,812 bytes, line 173
173{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=jl(n),i=cr(I0,n),a=i.disabled||r,l=Ce(t,i.onTriggerChange),u=Al(n),c=y.useRef("touch"),[d,h,f]=sw(p=>{const w=u().filter(g=>!g.disabled),v=w.find(g=>g.value===i.value),m=iw(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 b.jsx(Fy,{asChild:!0,...s,children:b.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":ow(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===" ")&&tP.includes(p.key)&&(x(),p.preventDefault())})})})});L0.displayName=I0;var $0="SelectValue",M0=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=cr($0,n),{onValueNodeHasChildrenChange:u}=l,c=s!==void 0,d=Ce(t,l.onValueNodeChange);return Fe(()=>{u(c)},[u,c]),b.jsx(le.span,{...a,ref:d,style:{pointerEvents:"none"},children:ow(l.value)?b.jsx(b.Fragment,{children:i}):s})});M0.displayName=$0;var aP="SelectIcon",D0=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return b.jsx(le.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});D0.displayName=aP;var lP="SelectPortal",F0=e=>b.jsx(rf,{asChild:!0,...e});F0.displayName=lP;var zr="SelectContent",U0=y.forwardRef((e,t)=>{const n=cr(zr,e.__scopeSelect),[r,o]=y.useState();if(Fe(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Hr.createPortal(b.jsx(z0,{scope:e.__scopeSelect,children:b.jsx(Nl.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),s):null}return b.jsx(B0,{...e,ref:t})});U0.displayName=zr;var Nt=10,[z0,dr]=ns(zr),uP="SelectContentImpl",cP=ni("SelectContent.RemoveScroll"),B0=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=cr(zr,n),[g,S]=y.useState(null),[_,E]=y.useState(null),k=Ce(t,M=>S(M)),[T,N]=y.useState(null),[A,U]=y.useState(null),L=Al(n),[W,I]=y.useState(!1),V=y.useRef(!1);y.useEffect(()=>{if(g)return yT(g)},[g]),iT();const F=y.useCallback(M=>{const[ie,..._e]=L().map(re=>re.ref.current),[se]=_e.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))}},_e=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",_e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",_e,{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[$,H]=sw(M=>{const ie=L().filter(te=>!te.disabled),_e=ie.find(te=>te.ref.current===document.activeElement),se=iw(ie,M,_e);se&&setTimeout(()=>se.ref.current.focus())}),z=y.useCallback((M,ie,_e)=>{const se=!V.current&&!_e;(m.value!==void 0&&m.value===ie||se)&&(N(M),se&&(V.current=!0))},[m.value]),Y=y.useCallback(()=>g==null?void 0:g.focus(),[g]),K=y.useCallback((M,ie,_e)=>{const se=!V.current&&!_e;(m.value!==void 0&&m.value===ie||se)&&U(M)},[m.value]),fe=r==="popper"?Kc:W0,Se=fe===Kc?{side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:f,sticky:x,hideWhenDetached:p,avoidCollisions:w}:{};return b.jsx(z0,{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:b.jsx(A0,{as:cP,allowPinchZoom:!0,children:b.jsx(S0,{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:b.jsx(yl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:b.jsx(fe,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:M=>M.preventDefault(),...v,...Se,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&&H(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()}})})})})})})});B0.displayName=uP;var dP="SelectItemAlignedPosition",W0=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=cr(zr,n),i=dr(zr,n),[a,l]=y.useState(null),[u,c]=y.useState(null),d=Ce(t,k=>c(k)),h=Al(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,hr=Math.max(mt,T.width),En=window.innerWidth-Nt,pr=jp(re,[Nt,Math.max(Nt,En-hr)]);a.style.minWidth=mt+"px",a.style.left=pr+"px"}else{const te=T.right-A.right,re=window.innerWidth-N.right-te,Ue=window.innerWidth-k.right-re,mt=k.width+Ue,hr=Math.max(mt,T.width),En=window.innerWidth-Nt,pr=jp(re,[Nt,Math.max(Nt,En-hr)]);a.style.minWidth=mt+"px",a.style.right=pr+"px"}const U=h(),L=window.innerHeight-Nt*2,W=p.scrollHeight,I=window.getComputedStyle(u),V=parseInt(I.borderTopWidth,10),F=parseInt(I.paddingTop,10),B=parseInt(I.borderBottomWidth,10),C=parseInt(I.paddingBottom,10),R=V+F+W+C+B,$=Math.min(w.offsetHeight*5,R),H=window.getComputedStyle(p),z=parseInt(H.paddingTop,10),Y=parseInt(H.paddingBottom,10),K=k.top+k.height/2-Nt,fe=L-K,Se=w.offsetHeight/2,M=w.offsetTop+Se,ie=V+F+M,_e=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,Se+(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,V+p.offsetTop+(te?z:0)+Se)+_e;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[S,_]=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 b.jsx(hP,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:b.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:b.jsx(le.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});W0.displayName=dP;var fP="SelectPopperPosition",Kc=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Nt,...s}=e,i=jl(n);return b.jsx(Uy,{...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)"}})});Kc.displayName=fP;var[hP,Tf]=ns(zr,{}),qc="SelectViewport",H0=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=dr(qc,n),i=Tf(qc,n),a=Ce(t,s.onViewportChange),l=y.useRef(0);return b.jsxs(b.Fragment,{children:[b.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}),b.jsx(Nl.Slot,{scope:n,children:b.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),S=m-g;d.style.height=g+"px",d.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=c.scrollTop})})})]})});H0.displayName=qc;var V0="SelectGroup",[pP,mP]=ns(V0),gP=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=df();return b.jsx(pP,{scope:n,id:o,children:b.jsx(le.div,{role:"group","aria-labelledby":o,...r,ref:t})})});gP.displayName=V0;var K0="SelectLabel",q0=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mP(K0,n);return b.jsx(le.div,{id:o.id,...r,ref:t})});q0.displayName=K0;var Za="SelectItem",[vP,G0]=ns(Za),Q0=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=cr(Za,n),l=dr(Za,n),u=a.value===r,[c,d]=y.useState(s??""),[h,f]=y.useState(!1),x=Ce(t,m=>{var g;return(g=l.itemRefCallback)==null?void 0:g.call(l,m,r,o)}),p=df(),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 b.jsx(vP,{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:b.jsx(Nl.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:b.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 S;((S=l.searchRef)==null?void 0:S.current)!==""&&m.key===" "||(nP.includes(m.key)&&v(),m.key===" "&&m.preventDefault())})})})})});Q0.displayName=Za;var _s="SelectItemText",Y0=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=cr(_s,n),a=dr(_s,n),l=G0(_s,n),u=iP(_s,n),[c,d]=y.useState(null),h=Ce(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(()=>b.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]),b.jsxs(b.Fragment,{children:[b.jsx(le.span,{id:l.textId,...s,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Hr.createPortal(s.children,i.valueNode):null]})});Y0.displayName=_s;var J0="SelectItemIndicator",X0=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return G0(J0,n).isSelected?b.jsx(le.span,{"aria-hidden":!0,...r,ref:t}):null});X0.displayName=J0;var Gc="SelectScrollUpButton",Z0=y.forwardRef((e,t)=>{const n=dr(Gc,e.__scopeSelect),r=Tf(Gc,e.__scopeSelect),[o,s]=y.useState(!1),i=Ce(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?b.jsx(tw,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Z0.displayName=Gc;var Qc="SelectScrollDownButton",ew=y.forwardRef((e,t)=>{const n=dr(Qc,e.__scopeSelect),r=Tf(Qc,e.__scopeSelect),[o,s]=y.useState(!1),i=Ce(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?b.jsx(tw,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});ew.displayName=Qc;var tw=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=dr("SelectScrollButton",n),i=y.useRef(null),a=Al(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]),b.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()})})}),yP="SelectSeparator",nw=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(le.div,{"aria-hidden":!0,...r,ref:t})});nw.displayName=yP;var Yc="SelectArrow",wP=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=jl(n),s=cr(Yc,n),i=dr(Yc,n);return s.open&&i.position==="popper"?b.jsx(zy,{...o,...r,ref:t}):null});wP.displayName=Yc;var xP="SelectBubbleInput",rw=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=y.useRef(null),s=Ce(r,o),i=pT(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]),b.jsx(le.select,{...n,style:{...Dv,...n.style},ref:s,defaultValue:t})});rw.displayName=xP;function ow(e){return e===""||e===void 0}function sw(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 iw(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=bP(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 bP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var SP=j0,aw=L0,_P=M0,EP=D0,kP=F0,lw=U0,CP=H0,uw=q0,cw=Q0,TP=Y0,PP=X0,dw=Z0,fw=ew,hw=nw;const RP=SP,OP=_P,pw=y.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(aw,{ref:r,className:ye("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
173ing-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,b.jsx(EP,{asChild:!0,children:b.jsx(ay,{className:"h-4 w-4 opacity-50"})})]}));pw.displayName=aw.displayName;const mw=y.forwardRef(({className:e,...t},n)=>b.jsx(dw,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(SS,{className:"h-4 w-4"})}));mw.displayName=dw.displayName;const gw=y.forwardRef(({className:e,...t},n)=>b.jsx(fw,{ref:n,className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(ay,{className:"h-4 w-4"})}));gw.displayName=fw.displayName;const vw=y.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>b.jsx(kP,{children:b.jsxs(lw,{ref:o,className:ye("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:[b.jsx(mw,{}),b.jsx(CP,{className:ye("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),b.jsx(gw,{})]})}));vw.displayName=lw.displayName;const NP=y.forwardRef(({className:e,...t},n)=>b.jsx(uw,{ref:n,className:ye("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));NP.displayName=uw.displayName;const Es=y.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(cw,{ref:r,className:ye("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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(PP,{children:b.jsx(bS,{className:"h-4 w-4"})})}),b.jsx(TP,{children:t})]}));Es.displayName=cw.displayName;const AP=y.forwardRef(({className:e,...t},n)=>b.jsx(hw,{ref:n,className:ye("-mx-1 my-1 h-px bg-muted",e),...t}));AP.displayName=hw.displayName;const jP="modulepreload",IP=function(e){return"/"+e},Hp={},Si=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=IP(l),l in Hp)return;Hp[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":jP,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)})},LP=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:r}=await Promise.resolve().then(()=>rs);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Pf extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class $P extends Pf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Vp extends Pf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Kp extends Pf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Jc;(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"})(Jc||(Jc={}));var MP=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
173return 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 DP{constructor(t,{headers:n={},customFetch:r,region:o=Jc.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=LP(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return MP(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 $P(p)}),h=d.headers.get("x-relay-error");if(h&&h==="true")throw new Vp(d);if(!d.ok)throw new Kp(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 Kp||o instanceof Vp?o.context:void 0}}})}}var nt={},Rf={},Il={},_i={},Ll={},$l={},FP=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=FP();const UP=Go.fetch,yw=Go.fetch.bind(Go),ww=Go.Headers,zP=Go.Request,BP=Go.Response,rs=Object.freeze(Object.defineProperty({__proto__:null,Headers:ww,Request:zP,Response:BP,default:yw,fetch:UP},Symbol.toStringTag,{value:"Module"})),WP=Jw(rs);var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});let HP=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
173de=t.code}};Ml.default=HP;var xw=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($l,"__esModule",{value:!0});const VP=xw(WP),KP=xw(Ml);let qP=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=VP.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 KP.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}};$l.default=qP;var GP=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ll,"__esModule",{value:!0});const QP=GP($l);let YP=class extends QP.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}
173explain({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}};Ll.default=YP;var JP=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});const XP=JP(Ll);let ZP=class extends XP.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}};_i.default=ZP;var eR=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Il,"__esModule",{value:!0});const vs=eR(_i);let tR=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 vs.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>
1730){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new vs.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 vs.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 vs.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 vs.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};Il.default=tR;var bw=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rf,"__esModule",{value:!0});const nR=bw(Il),rR=bw(_i);let oR=class Sw{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 nR.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Sw(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 rR.default({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};Rf.default=oR;var os=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 _w=os(Rf);nt.PostgrestClient=_w.default;const Ew=os(Il);nt.PostgrestQueryBuilder=Ew.default;const kw=os(_i);nt.PostgrestFilterBuilder=kw.default;const Cw=os(Ll);nt.PostgrestTransformBuilder=Cw.default;const Tw=os($l);nt.PostgrestBuilder=Tw.default;const Pw=os(Ml);nt.PostgrestError=Pw.default;var sR=nt.default={PostgrestClient:_w.default,PostgrestQueryBuilder:Ew.default,PostgrestFilterBuilder:kw.default,PostgrestTransformBuilder:Cw.default,PostgrestBuilder:Tw.default,PostgrestError:Pw.default};const{PostgrestClient:iR,PostgrestQueryBuilder:mN,PostgrestFilterBuilder:gN,PostgrestTransformBuilder:vN,PostgrestBuilder:yN,PostgrestError:wN}=sR;class aR{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:
174import ws from "ws"
175new 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+=`
176
177Suggested 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 lR="2.15.5",uR=`realtime-js/${lR}`,cR="1.0.0",Xc=1e4,dR=1e3,fR=100;var $s;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})($s||($s={}));var Oe;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Oe||(Oe={}));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 Zc;(function(e){e.websocket="websocket"})(Zc||(Zc={}));var Sr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Sr||(Sr={}));class hR{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 Rw{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 qp=(e,t,n={})=>{var r;const o=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((s,i)=>(s[i]=pR(i,e,t,o),s),{})},pR=(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)?Ow(s,i):ed(i)},Ow=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return yR(t,n)}switch(e){case ce.bool:return mR(t);case ce.float4:case ce.float8:case ce.int2:case ce.int4:case ce.int8:case ce.numeric:case ce.oid:return gR(t);case ce.json:case ce.jsonb:return vR(t);case ce.timestamp:return wR(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 ed(t);default:return ed(t)}},ed=e=>e,mR=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},gR=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 7,709 bytes, line 177
177if(!Number.isNaN(t))return t}return e},vR=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},yR=(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=>Ow(t,a))}return e},wR=e=>typeof e=="string"?e.replace(" ","T"):e,Nw=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Ru{constructor(t,n,r={},o=Xc){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 Gp;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Gp||(Gp={}));class Ms{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=Ms.syncState(this.state,o,s,i),this.pendingDiffs.forEach(l=>{this.state=Ms.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=Ms.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 Qp;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Qp||(Qp={}));var Ds;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ds||(Ds={}));var cn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(cn||(cn={}));class Of{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Oe.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 Ru(this,Mt.join,this.params,this.timeout),this.rejoinTimer=new Rw(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Oe.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=Oe.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Oe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Oe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Oe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Mt.reply,{},(o,s)=>{this._trigger(this._replyEventName(s),o)}),this.presence=new Ms(this),this.broadcastEndpointURL=Nw(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==Oe.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[Ds.PRESENCE]&&this.bindings[Ds.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:S,schema:_,table:E,filter:k}}=g,T=f&&f[m];
177if(T&&T.event===S&&T.schema===_&&T.table===E&&T.filter===k)v.push(Object.assign(Object.assign({},g),{id:T.id}));else{this.unsubscribe(),this.state=Oe.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=Oe.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===Oe.joined&&t===Ds.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=Oe.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 Ru(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=Oe.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 Ru(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>fR){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 S=f.id,_=(x=f.filter)===null||x===void 0?void 0:x.event;return S&&((p=n.ids)===null||p===void 0?void 0:p.includes(S))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const S=(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 S==="*"||S===((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===Oe.closed}_isJoined(){return this.state===Oe.joined}_isJoining(){return this.state===Oe.joining}_isLeaving(){return this.state===Oe.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&&Of.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=Oe.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=qp(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=qp(t.columns,t.old_record)),n}}const Ou=()=>{},Zi={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},xR=[1e3,2e3,5e3,1e4],bR=1e4,SR=`
178  addEventListener("message", (e) => {
179    if (e.data.event === "start") {
180      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
181    }
182  });`;class _R{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=Xc,this.transport=null,this.heartbeatIntervalMs=Zi.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ou,this.ref=0,this.reconnectTimer=null,this.logger=Ou,this.conn=null,this.sendBuffer=[],this.serializer
182=new hR,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)=>Si(async()=>{const{default:a}=await Promise.resolve().then(()=>rs);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}/${Zc.websocket}`,this.httpEndpoint=Nw(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=aR.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
183
184To use Realtime in Node.js, you need to provide a WebSocket implementation:
185
186Option 1: Use Node.js 22+ which has native WebSocket support
187Option 2: Install and provide the "ws" package:
188
189  npm install ws
190
191  import ws from "ws"
192  const client = new RealtimeClient(url, {
193    ...options,
194    transport: ws
195  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:cR}))}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 $s.connecting:return Sr.Connecting;case $s.open:return Sr.Open;case $s.closing:return Sr.Closing;default:return Sr.Closed}}isConnected(){return this.connectionState()===Sr.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 Of(`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(dR,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Zi.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=>
195{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([SR],{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:uR};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 Rw(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Zi.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
195imeout)!==null&&r!==void 0?r:Xc,this.heartbeatIntervalMs=(o=t==null?void 0:t.heartbeatIntervalMs)!==null&&o!==void 0?o:Zi.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:Ou,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=>xR[d-1]||bR,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 Nf extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ne(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class ER extends Nf{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 td extends Nf{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}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 Aw=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:r}=await Promise.resolve().then(()=>rs);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},CR=()=>kR(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Si(()=>Promise.resolve().then(()=>rs),void 0)).Response:Response}),nd=e=>{if(Array.isArray(e))return e.map(n=>nd(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]=nd(r)}),t},TR=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 qr=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 Nu=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),PR=(e,t,n)=>qr(void 0,void 0,void 0,function*(){const r=yield CR();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 ER(Nu(o),s,i))}).catch(o=>{t(new td(Nu(o),o))}):t(new td(Nu(e),e))}),RR=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?o:(TR(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 Ei(e,t,n,r,o,s){return qr(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,RR(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=>PR(l,a,r))})})}function el(e,t,n,r){return qr(this,void 0,void 0,function*(){return Ei(e,"GET",t,n,r)})}function qt(e,t,n,r,o){return qr(this,void 0,void 0,function*(){return Ei(e,"POST",t,r,o,n)})}function rd(e,t,n,r,o){return qr(this,void 0,void 0,function*(){return Ei(e,"PUT",t,r,o,n)})}function OR(e,t,n,r){return qr(this,void 0,void 0,function*(){return Ei(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function jw(e,t,n,r,o){return qr(this,void 0,void 0,function*(){return Ei(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)})}
195return 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 NR={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Yp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class AR{constructor(t,n={},r,o){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=Aw(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({},Yp),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"?rd: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(Ne(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:Yp.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 rd(this.fetch,a.toString(),l,{headers:c});return{data:{path:s,fullPath:d.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Ne(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 Nf("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ne(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(Ne(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(Ne(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(Ne(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(Ne(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 el(this.fetch,`${this.url}/${o}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ne(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 el(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:nd(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ne(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 OR(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ne(r)&&r instanceof td){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 jw(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ne(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({},NR),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(Ne(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(Ne(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 jR="2.12.1",IR={"X-Client-Info":`storage-js/${jR}`};var no=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
195return 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 LR{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({},IR),n),this.fetch=Aw(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return no(this,void 0,void 0,function*(){try{return{data:yield el(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ne(t))return{data:null,error:t};throw t}})}getBucket(t){return no(this,void 0,void 0,function*(){try{return{data:yield el(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ne(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return no(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(Ne(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return no(this,void 0,void 0,function*(){try{return{data:yield rd(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(Ne(r))return{data:null,error:r};throw r}})}emptyBucket(t){return no(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(Ne(n))return{data:null,error:n};throw n}})}deleteBucket(t){return no(this,void 0,void 0,function*(){try{return{data:yield jw(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ne(n))return{data:null,error:n};throw n}})}}
195class $R extends LR{constructor(t,n={},r,o){super(t,n,r,o)}from(t){return new AR(this.url,this.headers,t,this.fetch)}}const MR="2.57.4";let ks="";typeof Deno<"u"?ks="deno":typeof document<"u"?ks="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ks="react-native":ks="node";const DR={"X-Client-Info":`supabase-js-${ks}/${MR}`},FR={headers:DR},UR={schema:"public"},zR={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},BR={};var WR=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 HR=e=>{let t;return e?t=e:typeof fetch>"u"?t=yw:t=fetch,(...n)=>t(...n)},VR=()=>typeof Headers>"u"?ww:Headers,KR=(e,t,n)=>{const r=HR(n),o=VR();return(s,i)=>WR(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 qR=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 GR(e){return e.endsWith("/")?e:e+"/"}function QR(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:()=>qR(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function YR(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(GR(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const Iw="2.71.1",ao=30*1e3,od=3,Au=od*ao,JR="http://localhost:9999",XR="supabase.auth.token",ZR={"X-Client-Info":`gotrue-js/${Iw}`},sd="X-Supabase-Api-Version",Lw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},eO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,tO=10*60*1e3;class Af 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 nO extends Af{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function rO(e){return Q(e)&&e.name==="AuthApiError"}class $w extends Af{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class fr extends Af{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class In extends fr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function oO(e){return Q(e)&&e.name==="AuthSessionMissingError"}class ea extends fr{constructor(){super("Auth session or user missing","AuthInvalidToken
195ResponseError",500,void 0)}}class ta extends fr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class na extends fr{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 sO(e){return Q(e)&&e.name==="AuthImplicitGrantRedirectError"}class Jp extends fr{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 id extends fr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function ju(e){return Q(e)&&e.name==="AuthRetryableFetchError"}class Xp extends fr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class ad extends fr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const tl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Zp=` 	
196\r=`.split(""),iO=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Zp.length;t+=1)e[Zp[t].charCodeAt(0)]=-2;for(let t=0;t<tl.length;t+=1)e[tl[t].charCodeAt(0)]=t;return e})();function em(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(tl[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(tl[r]),t.queuedBits-=6}}function Mw(e,t,n){const r=iO[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 tm(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},s=i=>{uO(i,r,n)};for(let i=0;i<e.length;i+=1)Mw(e.charCodeAt(i),o,s);return t.join("")}function aO(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 lO(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}aO(r,t)}}function uO(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 cO(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)Mw(e.charCodeAt(o),n,r);return new Uint8Array(t)}function dO(e){const t=[];return lO(e,n=>t.push(n)),new Uint8Array(t)}function fO(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};return e.forEach(o=>em(o,n,r)),em(null,n,r),t.join("")}function hO(e){return Math.round(Date.now()/1e3)+e}function pO(){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",vr={tested:!1,writable:!1},Dw=()=>{if(!Ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(vr.tested)return vr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),vr.tested=!0,vr.writable=!0}catch{vr.tested=!0,vr.writable=!1}return vr.writable};function mO(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 Fw=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:r}=await Promise.resolve().then(()=>rs);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},gO=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))},yr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Nn=async(e,t)=>{await e.removeItem(t)};class Dl{constructor(){this.promise=new Dl.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Dl.promiseConstructor=Promise;function Iu(e){const t=e.split(".");if(t.length!==3)throw new ad("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!eO.test(t[r]))throw new ad("JWT not in base64url format");
196return{header:JSON.parse(tm(t[0])),payload:JSON.parse(tm(t[1])),signature:cO(t[2]),raw:{header:t[0],payload:t[1]}}}async function vO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function yO(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 wO(e){return("0"+e.toString(16)).substr(-2)}function xO(){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,wO).join("")}async function bO(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(s=>String.fromCharCode(s)).join("")}async function SO(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 bO(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ro(e,t,n=!1){const r=xO();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await lo(e,`${t}-code-verifier`,o);const s=await SO(r);return[s,r===s?"plain":"s256"]}const _O=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function EO(e){const t=e.headers.get(sd);if(!t||!t.match(_O))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function kO(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 CO(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 TO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function oo(e){if(!TO.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Lu(){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 nm(e){return JSON.parse(JSON.stringify(e))}var PO=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 br=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),RO=[502,503,504];async function rm(e){var t;if(!gO(e))throw new id(br(e),0);if(RO.includes(e.status))throw new id(br(e),e.status);let n;try{n=await e.json()}catch(s){throw new $w(br(s),s)}let r;const o=EO(e);if(o&&o.getTime()>=Lw["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 Xp(br(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new In}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 Xp(br(n),e.status,n.weak_password.reasons);throw new nO(br(n),e.status||500,r)}const OO=(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[sd]||(s[sd]=Lw["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 NO(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 NO(e,t,n,r,o,s){const i=OO(t,r,o,s);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new id(br(l),0)}if(a.ok||await rm(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await rm(l)}}function ln(e){var t;let n=null;LO(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=hO(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function om(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 Fn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function AO(e){return{data:e,error:null}}function jO(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s}=e,i=PO(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 IO(e){return e}function LO(e){return e.access_token&&e.refresh_token&&e.expires_in}const $u=["global","local","others"];var $O=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 MO{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Fw(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=$u[0]){if($u.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${$u.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:Fn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=$O(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:jO,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:Fn})}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:IO});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){oo(t);try{return await X(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Fn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){oo(t);try{return await X(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Fn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){oo(t);
196try{return await X(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Fn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){oo(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){oo(t.userId),oo(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 sm(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function DO(){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 so={debug:!!(globalThis&&Dw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
196class Uw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class FO extends Uw{}async function UO(e,t,n){so.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),so.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){so.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{so.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw so.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new FO(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(so.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()}}))}DO();const zO={url:JR,storageKey:XR,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:ZR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function im(e,t,n){return await n()}const io={};class ui{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=ui.nextInstanceID,ui.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({},zO),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 MO({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=Fw(o.fetch),this.lock=o.lock||im,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=UO:this.lock=im,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:Dw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=sm(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=sm(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=io[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){io[this.storageKey]=Object.assign(Object.assign({},io[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=io[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){io[this.storageKey]=Object.assign(Object.assign({},io[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Iw}) ${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=mO(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),sO(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 $w("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;
196if(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 ro(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 ta("You must provide either an email or phone number and a password");const{data:i,error:a}=s;
196if(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:om})}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:om})}else throw new ta("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 ea}:(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 S;if(Ot())if(typeof v=="object")S=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"))S=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.");S=v}const _=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const E=await S.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 S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.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:`,S.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(`
197`);const E=await S.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:fO(p)}
197,!((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 ea}:(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 yr(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 Nn(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new ea}:(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 ea}:(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 ro(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 ta("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 ro(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:AO})}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 In;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 ta("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 yr(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
197id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Au:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await yr(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=Lu()}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:Fn}):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 In}: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:Fn})})}catch(n){if(Q(n))return oO(n)&&(await this._removeSession(),await Nn(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 In;const i=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await ro(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:Fn});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 In;const n=Date.now()/1e3;let r=n,o=!0,s=null;const{payload:i}=Iu(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 In;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 na("No browser detected.");
197if(t.error||t.error_description||t.error_code)throw new na(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 Jp("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new na("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 Jp("No code detected.");const{data:m,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.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 na("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 yr(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&&!(rO(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await Nn(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=pO(),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 ro(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;
197return 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 yO(async o=>(o>0&&await vO(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&&ju(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 yr(this.storage,this.storageKey);if(o&&this.userStorage){let i=await yr(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:Lu()}else if(o&&!o.user&&!o.user){const i=await yr(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(o.user=i.user,await Nn(this.storage,this.storageKey+"-user"),await lo(this.storage,this.storageKey,o)):o.user=Lu()}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()<Au;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Au}s`),s){if(this.autoRefreshToken&&o.refresh_token){const{error:i}=await this._callRefreshToken(o.refresh_token);i&&(console.error(i),ju(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 In;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Dl;const{data:s,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!s.session)throw new In;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 ju(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=nm(o);await lo(this.storage,this.storageKey,s)}else{const o=nm(n);await lo(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),await Nn(this.storage,this.storageKey),await Nn(this.storage,this.storageKey+"-code-verifier"),await Nn(this.storage,this.storageKey+"-user"),this.userStorage&&await Nn(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)}
197catch(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 ${od} ticks`),o<=od&&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 Uw)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 ro(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}=Iu(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+tO>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}
197=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}}=Iu(r);n!=null&&n.allowExpired||kO(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=CO(o.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,i,dO(`${a}.${l}`)))throw new ad("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}}}ui.nextInstanceID=0;const BO=ui;class WO extends BO{constructor(t){super(t)}}var HO=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 VO{constructor(t,n,r){var o,s,i;this.supabaseUrl=t,this.supabaseKey=n;const a=YR(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:UR,realtime:BR,auth:Object.assign(Object.assign({},zR),{storageKey:l}),global:FR},c=QR(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=KR(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 iR(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new $R(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new DP(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 HO(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 WO({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 _R(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)}}
197const KO=(e,t,n)=>new VO(e,t,n);function qO(){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}qO()&&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 GO="https://kcildkrxhrnlgiqpdpcv.supabase.co",QO="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImtjaWxka3J4aHJubGdpcXBkcGN2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTgzMDgxMDUsImV4cCI6MjA3Mzg4NDEwNX0.AKR-GW1_h4NyrIgCfjs-PEgzbQNJaa46H5q7IRO2Z9g",YO=KO(GO,QO,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});function JO(){const{toast:e}=Ov(),t=d0(),[n,r]=y.useState({fullName:"",email:"",phone:"",rentalDoors:""}),[o,s]=y.useState(!1),i=(l,u)=>{r(c=>({...c,[l]:u}))},a=async l=>{if(l.preventDefault(),s(!0),!n.fullName||!n.email||!n.phone||!n.rentalDoors){e({title:"Please fill in all fields",description:"All fields are required to complete your submission.",variant:"destructive"}),s(!1);return}try{const{error:u}=await YO.from("registrations").insert({full_name:n.fullName,email:n.email,phone:n.phone,rental_doors:n.rentalDoors,landlord_stage:""});if(u)throw u;if(n.rentalDoors==="2-4"||n.rentalDoors==="5+"){const h={additionalInfo:`Residential doors owned: ${n.rentalDoors}`,utmSource:"Testimonial Giftcard Facebook Landing"};try{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(h)}}}),headers:{"Content-type":"application/json; charset=UTF-8",origin:"https://flockhomes.com/"}})}catch(f){console.error("Apollo API error:",f)}}e({title:"Submission successful!",description:"Thank you for your interest. We'll be in touch!"}),t("/thank-you")}catch(u){console.error("Submission error:",u),e({title:"Submission failed",description:"Please try again or contact support.",variant:"destructive"})}finally{s(!1)}};return b.jsxs(v0,{className:"w-full max-w-md mx-auto shadow-strong border-0 bg-card flex flex-col",children:[b.jsxs(y0,{className:"text-center pb-4",children:[b.jsx(w0,{className:"text-2xl font-playfair font-bold text-foreground",children:"Request Initial Valuation"}),b.jsx(x0,{className:"font-outfit text-muted-foreground",children:"Limited availability • $100 Amazon gift card included"})]}),b.jsx(b0,{className:"flex-1",children:b.jsxs("form",{onSubmit:a,className:"space-y-3",children:[b.jsxs("div",{className:"space-y-1",children:[b.jsx(Ss,{htmlFor:"fullName",className:"text-sm font-outfit font-medium text-foreground",children:"Full Name *"}),b.jsx(wa,{id:"fullName",type:"text",value:n.fullName,onChange:l=>i("fullName",l.target.value),placeholder:"Enter your full name",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),b.jsxs("div",{className:"space-y-1",children:[b.jsx(Ss,{htmlFor:"email",className:"text-sm font-outfit font-medium text-foreground",children:"Email Address *"}),b.jsx(wa,{id:"email",type:"email",value:n.email,onChange:l=>i("email",l.target.value),placeholder:"Enter your email",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),b.jsxs("div",{className:"space-y-1",children:[b.jsx(Ss,{htmlFor:"phone",className:"text-sm font-outfit font-medium text-foreground",children:"Phone Number *"}),b.jsx(wa,{id:"phone",type:"tel",value:n.phone,onChange:l=>i("phone",l.target.value),placeholder:"Enter your phone number",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),b.jsxs("div",{className:"space-y-1",children:[b.jsx(Ss,{htmlFor:"rentalDoors",className:"text-sm font-outfit font-medium text-foreground",children:"How many residential rental doors do you own? *"}),b.jsxs(RP,{value:n.rentalDoors,onValueChange:l=>i("rentalDoors",l),children:[b.jsx(pw,{className:"transition-all duration-200 focus:shadow-soft",children:b.jsx(OP,{placeholder:"Select number of doors"})}),b.jsxs(vw,{children:[b.jsx(Es,{value:"0",children:"0"}),b.jsx(Es,{value:"1",children:"1"}),b.jsx(Es,{value:"2-4",children:"2-4"}),b.jsx(Es,{value:"5+",children:"5+"})]})]})]}),b.jsx(Cf,{type:"submit",variant:"hero",size:"lg",className:"w-full mt-4",disabled:o,children:o?"Submitting...":"Submit"}),b.jsxs("p",{className:"text-xs font-outfit text-muted-foreground text-center mt-3",children:["By clicking 'Submit' you agree to the use of your data in accordance with Flock Home's"," ",b.jsx("a",{href:"https://flockhomes.com/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Privacy Notice"}),", including for marketing purposes."]})]})})]})}const XO="/assets/flock-logo-DiNFnQh2.png",ZO=()=>b.jsxs("div",{className:"min-h-screen bg-background flex flex-col p-6 sm:p-8 lg:p-12",children:[b.jsx("div",{className:"flex-1 flex items-center justify-center",children:b.jsx("div",{className:"max-w-6xl w-full mx-auto",children:b.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 lg:gap-16 items-start min-h-[70vh]",children:[b.jsxs("div",{className:"flex flex-col",children:[b.jsx("img",{src:XO,alt:"Flock Homes",className:"h-10 w-auto object-contain mb-6 self-start"}),b.jsxs("h1",{className:"text-4xl lg:text-5xl font-playfair font-black text-foreground leading-tight mb-8",children:[b.jsx("span",{className:"bg-text-gradient bg-clip-text text-transparent",children:"Exit your real estate,"}),b.jsx("br",{}),b.jsx("span",{className:"text-foreground",children:"without giving up your hard earned gains"})]}),b.jsx("p",{className:"text-xl font-outfit text-muted-foreground mb-6",children:"Retain your rental property equity, earn cash flow, and watch your investment grow—without property management headaches or tax penalties."}),b.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[b.jsxs("div",{className:"flex flex-col items-center text-center",children:[b.jsx("div",{className:"bg-muted rounded-full p-6 mb-3",children:b.jsx(np,{className:"w-10 h-10 text-primary"})}),b.jsx("h4",{className:"font-outfit font-semibold text-foreground text-base mb-1",children:"Tax-Deferred"}),b.jsx("p",{className:"font-outfit text-sm text-muted-foreground",children:"Defer capital gains taxes while transitioning your portfolio"})]}),b.jsxs("div",{className:"flex flex-col items-center text-center",children:[b.jsx("div",{className:"bg-muted rounded-full p-6 mb-3",children:b.jsx(kS,{className:"w-10 h-10 text-primary"})}),b.jsx("h4",{className:"font-outfit font-semibold text-foreground text-base mb-1",children:"Diversified"}),b.jsx("p",{className:"font-outfit text-sm text-muted-foreground",children:"Own a share of multiple properties across different markets"})]}),b.jsxs("div",{className:"flex flex-col items-center text-center",children:[b.jsx("div",{className:"bg-muted rounded-full p-6 mb-3",children:b.jsx(CS,{className:"w-10 h-10 text-primary"})}),b.jsx("h4",{className:"font-outfit font-semibold text-foreground text-base mb-1",children:"Hands-Off"}),b.jsx("p",{className:"font-outfit text-sm text-muted-foreground",children:"Professional management handles everything for you"})]})]}),b.jsx("div",{className:"bg-muted/30 py-4 px-4 border border-border/20 rounded-lg",children:b.jsxs("div",{className:"flex items-center justify-center gap-3",children:[b.jsx(np,{className:"w-5 h-5 text-primary flex-shrink-0"}),b.jsxs("div",{className:"text-center",children:[b.jsx("h3",{className:"text-base font-outfit font-semibold text-foreground",children:"Trusted by Property Owners Nationwide"}),b.jsx("p",{className:"font-outfit text-sm text-muted-foreground",children:"Over $200M in real estate assets managed · Portfolio of 1000+ Homes"})]})]})})]}),b.jsxs("div",{className:"flex flex-col items-center justify-start lg:pt-16",children:[b.jsx("div",{className:"w-full flex",children:b.jsx(JO,{})}),b.jsx("div",{className:"bg-card p-4 rounded-xl shadow-soft border border-border/20 mt-6 w-full max-w-md mx-auto",children:b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:b.jsx(ES,{className:"w-6 h-6 text-primary"})}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-lg font-outfit font-semibold text-foreground",children:"$100 Amazon Gift Card"}),b.jsx("p",{className:"font-outfit text-muted-foreground",children:"Free gift on us for qualifying participants"})]})]})})]})]})})}),b.jsx("div",{className:"py-4 px-6 mt-4",children:b.jsx("div",{className:"max-w-4xl mx-auto",children:b.jsxs("p",{className:"text-xs font-outfit text-muted-foreground text-center leading-relaxed",children:[b.jsx("strong",{children:"Gift card eligibility:"})," Gift card eligibility requires participant to own three or more 1-4 door single family rental properties, provide a property address that is within Flock's buy box, and complete a forty-five (45) minute consultation call with a Flock Homes Single Family Rental Director to discu
197ss your rental property goals. Qualifying participants will receive their gift card within seven (7) business days following completion of the introductory call. Flock Homes reserves the right in Flock's sole discretion to withhold any gift card for failure to meet the qualifying terms. This promotion is not affiliated with or endorsed by Carnival Cruise. If you qualify for the promotion, we will contact you via the email address provided. Promotional gift cards are limited to one per individual in total. Participation in multiple offers will not result in multiple rewards. Flock reserves the right to modify or cancel this promotion or any terms or conditions applicable to this promotion in its sole discretion, at any time and without any notice, and for any reason, including, without limitation, for technical issues or other unforeseen circumstances. Flock is not responsible for any technical issues, or other technical or human errors that may affect the operation or outcome of this promotion. Employees, contractors, and other agents of Flock and its affiliates, as well as their immediate family members, are not eligible to participate in this promotion. Employees of government entities, government-controlled entities, or government-owned entities are not eligible to participate in this promotion. This offer is void where prohibited by applicable law."]})})})]}),eN=()=>b.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:b.jsx("div",{className:"max-w-2xl w-full mx-auto text-center",children:b.jsxs("div",{className:"bg-card p-8 rounded-2xl shadow-strong border border-border/20",children:[b.jsxs("div",{className:"mb-6",children:[b.jsx(_S,{className:"w-16 h-16 text-primary mx-auto mb-4"}),b.jsx("h1",{className:"text-3xl font-playfair font-bold text-foreground mb-4",children:"Thank You for Your Submission"})]}),b.jsxs("div",{className:"space-y-4 mb-8",children:[b.jsx("p",{className:"text-lg font-outfit text-muted-foreground leading-relaxed",children:"We've received your information and a member of our team will be in touch shortly to discuss your property portfolio."}),b.jsx("div",{className:"bg-muted/30 p-4 rounded-lg",children:b.jsx("p",{className:"text-sm font-outfit text-muted-foreground",children:"Qualifying participants will receive their $100 Amazon gift card after completing an initial valuation call with a Flock Homes representative."})})]}),b.jsx(Cf,{variant:"hero",size:"lg",asChild:!0,children:b.jsx(XC,{to:"/",children:"Return Home"})})]})})}),tN=()=>{const e=bi();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),b.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:b.jsxs("div",{className:"text-center",children:[b.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),b.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),b.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},nN=new Jk,rN=()=>b.jsx(Zk,{client:nN,children:b.jsxs(Tk,{children:[b.jsx(u_,{}),b.jsx(z_,{}),b.jsx(QC,{children:b.jsxs(BC,{children:[b.jsx(ya,{path:"/",element:b.jsx(ZO,{})}),b.jsx(ya,{path:"/thank-you",element:b.jsx(eN,{})}),b.jsx(ya,{path:"*",element:b.jsx(tN,{})})]})})]})});Rv(document.getElementById("root")).render(b.jsx(rN,{}));

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.