PageSourceSearch

https://nexthospitalitycom.lovable.app/assets/index-CVJGNVnt.js

js nexthospitalitycom.lovable.app collected 2026-10-03 03:33:54 UTC 610,813 bytes, 255 lines download raw bytes

vendor: 6,277 bytes, lines 1-9
1var e0=Object.defineProperty;var Oh=e=>{throw TypeError(e)};var t0=(e,t,r)=>t in e?e0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var or=(e,t,r)=>t0(e,typeof t!="symbol"?t+"":t,r),Ul=(e,t,r)=>t.has(e)||Oh("Cannot "+r);var T=(e,t,r)=>(Ul(e,t,"read from private field"),r?r.call(e):t.get(e)),te=(e,t,r)=>t.has(e)?Oh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),V=(e,t,r,n)=>(Ul(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),De=(e,t,r)=>(Ul(e,t,"access private method"),r);var Io=(e,t,r,n)=>({set _(s){V(e,t,s,r)},get _(){return T(e,t,n)}});function r0(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mm={exports:{}},ll={},gm={exports:{}},Y={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var xo=Symbol.for("react.element"),n0=Symbol.for("react.portal"),s0=Symbol.for("react.fragment"),i0=Symbol.for("react.strict_mode"),o0=Symbol.for("react.profiler"),a0=Symbol.for("react.provider"),l0=Symbol.for("react.context"),c0=Symbol.for("react.forward_ref"),u0=Symbol.for("react.suspense"),d0=Symbol.for("react.memo"),h0=Symbol.for("react.lazy"),Ih=Symbol.iterator;function f0(e){return e===null||typeof e!="object"?null:(e=Ih&&e[Ih]||e["@@iterator"],typeof e=="function"?e:null)}var ym={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vm=Object.assign,wm={};function ei(e,t,r){this.props=e,this.context=t,this.refs=wm,this.updater=r||ym}ei.prototype.isReactComponent={};ei.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")};ei.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xm(){}xm.prototype=ei.prototype;function id(e,t,r){this.props=e,this.context=t,this.refs=wm,this.updater=r||ym}var od=id.prototype=new xm;od.constructor=id;vm(od,ei.prototype);od.isPureReactComponent=!0;var $h=Array.isArray,bm=Object.prototype.hasOwnProperty,ad={current:null},_m={key:!0,ref:!0,__self:!0,__source:!0};function Sm(e,t,r){var n,s={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)bm.call(t,n)&&!_m.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:xo,type:e,key:i,ref:o,props:s,_owner:ad.current}}function p0(e,t){return{$$typeof:xo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ld(e){return typeof e=="object"&&e!==null&&e.$$typeof===xo}function m0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Lh=/\/+/g;function Hl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?m0(""+e.key):t.toString(36)}function ua(e,t,r,n,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case xo:case n0:o=!0}}if(o)return o=e,s=s(o),e=n===""?"."+Hl(o,0):n,$h(s)?(r="",e!=null&&(r=e.replace(Lh,"$&/")+"/"),ua(s,t,r,"",function(c){return c})):s!=null&&(ld(s)&&(s=p0(s,r+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Lh,"$&/")+"/")+e)),t.push(s)),1;if(o=0,n=n===""?".":n+":",$h(e))for(var a=0;a<e.length;a++){i=e[a];var l=n+Hl(i,a);o+=ua(i,t,r,l,s)}else if(l=f0(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=n+Hl(i,a++),o+=ua(i,t,r,l,s);else if(i==="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 o}function $o(e,t,r){if(e==null)return e;var n=[],s=0;return ua(e,n,"","",function(i){return t.call(r,i,s++)}),n}function g0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},da={transition:null},y0={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:da,ReactCurrentOwner:ad};function km(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:$o,forEach:function(e,t,r){$o(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return $o(e,function(){t++}),t},toArray:function(e){return $o(e,function(t){return t})||[]},only:function(e){if(!ld(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=ei;Y.Fragment=s0;Y.Profiler=o0;Y.PureComponent=id;Y.StrictMode=i0;Y.Suspense=u0;
vendor: 7,358 bytes, lines 9-25
9Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=y0;Y.act=km;Y.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=vm({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=ad.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)bm.call(t,l)&&!_m.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:xo,type:e.type,key:s,ref:i,props:n,_owner:o}};Y.createContext=function(e){return e={$$typeof:l0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:a0,_context:e},e.Consumer=e};Y.createElement=Sm;Y.createFactory=function(e){var t=Sm.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:c0,render:e}};Y.isValidElement=ld;Y.lazy=function(e){return{$$typeof:h0,_payload:{_status:-1,_result:e},_init:g0}};Y.memo=function(e,t){return{$$typeof:d0,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=da.transition;da.transition={};try{e()}finally{da.transition=t}};Y.unstable_act=km;Y.useCallback=function(e,t){return Ge.current.useCallback(e,t)};Y.useContext=function(e){return Ge.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ge.current.useEffect(e,t)};Y.useId=function(){return Ge.current.useId()};Y.useImperativeHandle=function(e,t,r){return Ge.current.useImperativeHandle(e,t,r)};Y.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ge.current.useMemo(e,t)};Y.useReducer=function(e,t,r){return Ge.current.useReducer(e,t,r)};Y.useRef=function(e){return Ge.current.useRef(e)};Y.useState=function(e){return Ge.current.useState(e)};Y.useSyncExternalStore=function(e,t,r){return Ge.current.useSyncExternalStore(e,t,r)};Y.useTransition=function(){return Ge.current.useTransition()};Y.version="18.3.1";gm.exports=Y;var b=gm.exports;const N=wo(b),Em=r0({__proto__:null,default:N},[b]);/**
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 v0=b,w0=Symbol.for("react.element"),x0=Symbol.for("react.fragment"),b0=Object.prototype.hasOwnProperty,_0=v0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S0={key:!0,ref:!0,__self:!0,__source:!0};function Tm(e,t,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)b0.call(t,n)&&!S0.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:w0,type:e,key:i,ref:o,props:s,_owner:_0.current}}ll.Fragment=x0;ll.jsx=Tm;ll.jsxs=Tm;mm.exports=ll;var u=mm.exports,Cm={exports:{}},ft={},jm={exports:{}},Pm={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(C,P){var $=C.length;C.push(P);e:for(;0<$;){var K=$-1>>>1,F=C[K];if(0<s(F,P))C[K]=P,C[$]=F,$=K;else break e}}function r(C){return C.length===0?null:C[0]}function n(C){if(C.length===0)return null;var P=C[0],$=C.pop();if($!==P){C[0]=$;e:for(var K=0,F=C.length,Q=F>>>1;K<Q;){var Z=2*(K+1)-1,be=C[Z],Me=Z+1,re=C[Me];if(0>s(be,$))Me<F&&0>s(re,be)?(C[K]=re,C[Me]=$,K=Me):(C[K]=be,C[Z]=$,K=Z);else if(Me<F&&0>s(re,$))C[K]=re,C[Me]=$,K=Me;else break e}}return P}function s(C,P){var $=C.sortIndex-P.sortIndex;return $!==0?$:C.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,f=null,p=3,h=!1,w=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,g=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 v(C){for(var P=r(c);P!==null;){if(P.callback===null)n(c);else if(P.startTime<=C)n(c),P.sortIndex=P.expirationTime,t(l,P);else break;P=r(c)}}function _(C){if(y=!1,v(C),!w)if(r(l)!==null)w=!0,H(S);else{var P=r(c);P!==null&&q(_,P.startTime-C)}}function S(C,P){w=!1,y&&(y=!1,g(j),j=-1),h=!0;var $=p;try{for(v(P),f=r(l);f!==null&&(!(f.expirationTime>P)||C&&!U());){var K=f.callback;if(typeof K=="function"){f.callback=null,p=f.priorityLevel;var F=K(f.expirationTime<=P);P=e.unstable_now(),typeof F=="function"?f.callback=F:f===r(l)&&n(l),v(P)}else n(l);f=r(l)}if(f!==null)var Q=!0;else{var Z=r(c);Z!==null&&q(_,Z.startTime-P),Q=!1}return Q}finally{f=null,p=$,h=!1}}var k=!1,E=null,j=-1,A=5,O=-1;function U(){return!(e.unstable_now()-O<A)}function M(){if(E!==null){var C=e.unstable_now();O=C;var P=!0;try{P=E(!0,C)}finally{P?J():(k=!1,E=null)}}else k=!1}var J;if(typeof m=="function")J=function(){m(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,X=I.port2;I.port1.onmessage=M,J=function(){X.postMessage(null)}}else J=function(){x(M,0)};function H(C){E=C,k||(k=!0,J())}function q(C,P){j=x(function(){C(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){w||h||(w=!0,H(S))},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"):A=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(C){switch(p){case 1:case 2:case 3:var P=3;break;default:P=p}var $=p;p=P;try{return C()}finally{p=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,P){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var $=p;p=C;try{return P()}finally{p=$}},e.unstable_scheduleCallback=function(C,P,$){var K=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?K+$:K):$=K,C){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=$+F,C={id:d++,callback:P,priorityLevel:C,startTime:$,expirationTime:F,sortIndex:-1},$>K?(C.sortIndex=$,t(c,C),r(l)===null&&C===r(c)&&(y?(g(j),j=-1):y=!0,q(_,$-K))):(C.sortIndex=F,t(l,C),w||h||(w=!0,H(S))),C},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(C){var P=p;return function(){var $=p;p=P;try{return C.apply(this,arguments)}finally{p=$}}}})(Pm);
vendor: 4,242 bytes, lines 25-33
25jm.exports=Pm;var k0=jm.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 E0=b,ht=k0;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rm=new Set,zi={};function Wn(e,t){Vs(e,t),Vs(e+"Capture",t)}function Vs(e,t){for(zi[e]=t,e=0;e<t.length;e++)Rm.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lc=Object.prototype.hasOwnProperty,T0=/^[: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]*$/,Mh={},Dh={};function C0(e){return Lc.call(Dh,e)?!0:Lc.call(Mh,e)?!1:T0.test(e)?Dh[e]=!0:(Mh[e]=!0,!1)}function j0(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function P0(e,t,r,n){if(t===null||typeof t>"u"||j0(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Je(e,t,r,n,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var cd=/[\-:]([a-z])/g;function ud(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(cd,ud);Le[t]=new Je(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(cd,ud);Le[t]=new Je(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(cd,ud);Le[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function dd(e,t,r,n){var s=Le.hasOwnProperty(t)?Le[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(P0(t,r,s,n)&&(r=null),n||s===null?C0(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Sr=E0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Lo=Symbol.for("react.element"),fs=Symbol.for("react.portal"),ps=Symbol.for("react.fragment"),hd=Symbol.for("react.strict_mode"),Mc=Symbol.for("react.profiler"),Nm=Symbol.for("react.provider"),Am=Symbol.for("react.context"),fd=Symbol.for("react.forward_ref"),Dc=Symbol.for("react.suspense"),Fc=Symbol.for("react.suspense_list"),pd=Symbol.for("react.memo"),$r=Symbol.for("react.lazy"),Om=Symbol.for("react.offscreen"),Fh=Symbol.iterator;function ui(e){return e===null||typeof e!="object"?null:(e=Fh&&e[Fh]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Object.assign,Wl;function Si(e){if(Wl===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Wl=t&&t[1]||""}return`
34`+Wl+e}var Vl=!1;function ql(e,t){if(!e||Vl)return"";Vl=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var s=c.stack.split(`
35`),i=n.stack.split(`
36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
37`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Vl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Si(e):""}function R0(e){switch(e.tag){case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return Si("Suspense");case 19:return Si("SuspenseList");case 0:case 2:case 15:return e=ql(e.type,!1),e;case 11:return e=ql(e.type.render,!1),e;case 1:return e=ql(e.type,!0),e;default:return""}}function Bc(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 ps:return"Fragment";case fs:return"Portal";case Mc:return"Profiler";case hd:return"StrictMode";case Dc:return"Suspense";case Fc: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 fd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pd:return t=e.displayName||null,t!==null?t:Bc(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return Bc(e(t))}catch{}}return null}function N0(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 Bc(t);case 8:return t===hd?"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 sn(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 A0(e){var t=Im(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mo(e){e._valueTracker||(e._valueTracker=A0(e))}function $m(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Im(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ca(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 zc(e,t){var r=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Bh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=sn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lm(e,t){t=t.checked,t!=null&&dd(e,"checked",t,!1)}function Uc(e,t){Lm(e,t);var r=sn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Hc(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Hc(e,t,r){(t!=="number"||Ca(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ki=Array.isArray;function Ts(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+sn(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Wc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Uh(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(ki(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:sn(r)}}function Mm(e,t){var r=sn(t.value),n=sn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Hh(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 Vc(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 Do,Fm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Do=Do||document.createElement("div"),Do.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Do.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ui(e,t){if(t){var r=e.firstChild;
vendor: 8,942 bytes, line 37
37if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Pi={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},O0=["Webkit","ms","Moz","O"];Object.keys(Pi).forEach(function(e){O0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pi[t]=Pi[e]})});function Bm(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Pi.hasOwnProperty(e)&&Pi[e]?(""+t).trim():t+"px"}function zm(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=Bm(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var I0=ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qc(e,t){if(t){if(I0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Kc(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 Gc=null;function md(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jc=null,Cs=null,js=null;function Wh(e){if(e=So(e)){if(typeof Jc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=fl(t),Jc(e.stateNode,e.type,t))}}function Um(e){Cs?js?js.push(e):js=[e]:Cs=e}function Hm(){if(Cs){var e=Cs,t=js;if(js=Cs=null,Wh(e),t)for(e=0;e<t.length;e++)Wh(t[e])}}function Wm(e,t){return e(t)}function Vm(){}var Kl=!1;function qm(e,t,r){if(Kl)return e(t,r);Kl=!0;try{return Wm(e,t,r)}finally{Kl=!1,(Cs!==null||js!==null)&&(Vm(),Hm())}}function Hi(e,t){var r=e.stateNode;if(r===null)return null;var n=fl(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var Qc=!1;if(yr)try{var di={};Object.defineProperty(di,"passive",{get:function(){Qc=!0}}),window.addEventListener("test",di,di),window.removeEventListener("test",di,di)}catch{Qc=!1}function $0(e,t,r,n,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Ri=!1,ja=null,Pa=!1,Yc=null,L0={onError:function(e){Ri=!0,ja=e}};function M0(e,t,r,n,s,i,o,a,l){Ri=!1,ja=null,$0.apply(L0,arguments)}function D0(e,t,r,n,s,i,o,a,l){if(M0.apply(this,arguments),Ri){if(Ri){var c=ja;Ri=!1,ja=null}else throw Error(R(198));Pa||(Pa=!0,Yc=c)}}function Vn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Km(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vh(e){if(Vn(e)!==e)throw Error(R(188))}function F0(e){var t=e.alternate;if(!t){if(t=Vn(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return Vh(s),e;if(i===n)return Vh(s),t;i=i.sibling}throw Error(R(188))}if(r.return!==n.return)r=s,n=i;else{for(var o=!1,a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o)throw Error(R(189))}}if(r.alternate!==n)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function Gm(e){return e=F0(e),e!==null?Jm(e):null}function Jm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jm(e);if(t!==null)return t;e=e.sibling}return null}var Qm=ht.unstable_scheduleCallback,qh=ht.unstable_cancelCallback,B0=ht.unstable_shouldYield,z0=ht.unstable_requestPaint,xe=ht.unstable_now,U0=ht.unstable_getCurrentPriorityLevel,gd=ht.unstable_ImmediatePriority,Ym=ht.unstable_UserBlockingPriority,Ra=ht.unstable_NormalPriority,H0=ht.unstable_LowPriority,Xm=ht.unstable_IdlePriority,cl=null,er=null;function W0(e){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(cl,e,void 0,(e.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:K0,V0=Math.log,q0=Math.LN2;function K0(e){return e>>>=0,e===0?32:31-(V0(e)/q0|0)|0}var Fo=64,Bo=4194304;function Ei(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 Na(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=Ei(a):(i&=o,i!==0&&(n=Ei(i)))}else o=r&~s,o!==0?n=Ei(o):i!==0&&(n=Ei(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Bt(t),s=1<<r,n|=e[r],t&=~s;return n}function G0(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 J0(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Bt(i),a=1<<o,l=s[o];l===-1?(!(a&r)||a&n)&&(s[o]=G0(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Xc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zm(){var e=Fo;return Fo<<=1,!(Fo&4194240)&&(Fo=64),e}function Gl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=r}function Q0(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-Bt(r),i=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~i}}function yd(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Bt(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var ne=0;function eg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var tg,vd,rg,ng,sg,Zc=!1,zo=[],Jr=null,Qr=null,Yr=null,Wi=new Map,Vi=new Map,Dr=[],Y0="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 Kh(e,t){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Yr=null;break;case"pointerover":case"pointerout":Wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vi.delete(t.pointerId)}}function hi(e,t,r,n,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},t!==null&&(t=So(t),t!==null&&vd(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function X0(e,t,r,n,s){switch(t){case"focusin":return Jr=hi(Jr,e,t,r,n,s),!0;
vendor: 10,354 bytes, line 37
37case"dragenter":return Qr=hi(Qr,e,t,r,n,s),!0;case"mouseover":return Yr=hi(Yr,e,t,r,n,s),!0;case"pointerover":var i=s.pointerId;return Wi.set(i,hi(Wi.get(i)||null,e,t,r,n,s)),!0;case"gotpointercapture":return i=s.pointerId,Vi.set(i,hi(Vi.get(i)||null,e,t,r,n,s)),!0}return!1}function ig(e){var t=En(e.target);if(t!==null){var r=Vn(t);if(r!==null){if(t=r.tag,t===13){if(t=Km(r),t!==null){e.blockedOn=t,sg(e.priority,function(){rg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ha(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=eu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Gc=n,r.target.dispatchEvent(n),Gc=null}else return t=So(r),t!==null&&vd(t),e.blockedOn=r,!1;t.shift()}return!0}function Gh(e,t,r){ha(e)&&r.delete(t)}function Z0(){Zc=!1,Jr!==null&&ha(Jr)&&(Jr=null),Qr!==null&&ha(Qr)&&(Qr=null),Yr!==null&&ha(Yr)&&(Yr=null),Wi.forEach(Gh),Vi.forEach(Gh)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,Zc||(Zc=!0,ht.unstable_scheduleCallback(ht.unstable_NormalPriority,Z0)))}function qi(e){function t(s){return fi(s,e)}if(0<zo.length){fi(zo[0],e);for(var r=1;r<zo.length;r++){var n=zo[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Jr!==null&&fi(Jr,e),Qr!==null&&fi(Qr,e),Yr!==null&&fi(Yr,e),Wi.forEach(t),Vi.forEach(t),r=0;r<Dr.length;r++)n=Dr[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Dr.length&&(r=Dr[0],r.blockedOn===null);)ig(r),r.blockedOn===null&&Dr.shift()}var Ps=Sr.ReactCurrentBatchConfig,Aa=!0;function ex(e,t,r,n){var s=ne,i=Ps.transition;Ps.transition=null;try{ne=1,wd(e,t,r,n)}finally{ne=s,Ps.transition=i}}function tx(e,t,r,n){var s=ne,i=Ps.transition;Ps.transition=null;try{ne=4,wd(e,t,r,n)}finally{ne=s,Ps.transition=i}}function wd(e,t,r,n){if(Aa){var s=eu(e,t,r,n);if(s===null)sc(e,t,n,Oa,r),Kh(e,n);else if(X0(s,e,t,r,n))n.stopPropagation();else if(Kh(e,n),t&4&&-1<Y0.indexOf(e)){for(;s!==null;){var i=So(s);if(i!==null&&tg(i),i=eu(e,t,r,n),i===null&&sc(e,t,n,Oa,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else sc(e,t,n,null,r)}}var Oa=null;function eu(e,t,r,n){if(Oa=null,e=md(n),e=En(e),e!==null)if(t=Vn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Km(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Oa=e,null}function og(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(U0()){case gd:return 1;case Ym:return 4;case Ra:case H0:return 16;case Xm:return 536870912;default:return 16}default:return 16}}var qr=null,xd=null,fa=null;function ag(){if(fa)return fa;var e,t=xd,r=t.length,n,s="value"in qr?qr.value:qr.textContent,i=s.length;for(e=0;e<r&&t[e]===s[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===s[i-n];n++);return fa=s.slice(e,1<n?1-n:void 0)}function pa(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 Uo(){return!0}function Jh(){return!1}function pt(e){function t(r,n,s,i,o){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Uo:Jh,this.isPropagationStopped=Jh,this}return ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Uo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Uo)},persist:function(){},isPersistent:Uo}),t}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bd=pt(ti),_o=ge({},ti,{view:0,detail:0}),rx=pt(_o),Jl,Ql,pi,ul=ge({},_o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_d,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!==pi&&(pi&&e.type==="mousemove"?(Jl=e.screenX-pi.screenX,Ql=e.screenY-pi.screenY):Ql=Jl=0,pi=e),Jl)},movementY:function(e){return"movementY"in e?e.movementY:Ql}}),Qh=pt(ul),nx=ge({},ul,{dataTransfer:0}),sx=pt(nx),ix=ge({},_o,{relatedTarget:0}),Yl=pt(ix),ox=ge({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),ax=pt(ox),lx=ge({},ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cx=pt(lx),ux=ge({},ti,{data:0}),Yh=pt(ux),dx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hx={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"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function px(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fx[e])?!!t[e]:!1}function _d(){return px}var mx=ge({},_o,{key:function(e){if(e.key){var t=dx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_d,charCode:function(e){return e.type==="keypress"?pa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gx=pt(mx),yx=ge({},ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xh=pt(yx),vx=ge({},_o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_d}),wx=pt(vx),xx=ge({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),bx=pt(xx),_x=ge({},ul,{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}),Sx=pt(_x),kx=[9,13,27,32],Sd=yr&&"CompositionEvent"in window,Ni=null;yr&&"documentMode"in document&&(Ni=document.documentMode);var Ex=yr&&"TextEvent"in window&&!Ni,lg=yr&&(!Sd||Ni&&8<Ni&&11>=Ni),Zh=" ",ef=!1;function cg(e,t){switch(e){case"keyup":return kx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ug(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ms=!1;function Tx(e,t){switch(e){case"compositionend":return ug(t);case"keypress":return t.which!==32?null:(ef=!0,Zh);case"textInput":return e=t.data,e===Zh&&ef?null:e;default:return null}}function Cx(e,t){if(ms)return e==="compositionend"||!Sd&&cg(e,t)?(e=ag(),fa=xd=qr=null,ms=!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 jx={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 tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jx[e.type]:t==="textarea"}function dg(e,t,r,n){Um(n),t=Ia(t,"onChange"),0<t.length&&(r=new bd("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ai=null,Ki=null;function Px(e){_g(e,0)}function dl(e){var t=vs(e);if($m(t))return e}function Rx(e,t){if(e==="change")return t}var hg=!1;if(yr){var Xl;if(yr){var Zl="oninput"in document;if(!Zl){var rf=document.createElement("div");rf.setAttribute("oninput","return;"),Zl=typeof rf.oninput=="function"}Xl=Zl}else Xl=!1;hg=Xl&&(!document.documentMode||9<document.documentMode)}function nf(){Ai&&(Ai.detachEvent("onpropertychange",fg),Ki=Ai=null)}function fg(e){if(e.propertyName==="value"&&dl(Ki)){var t=[];dg(t,Ki,e,md(e)),qm(Px,t)}}function Nx(e,t,r){e==="focusin"?(nf(),Ai=t,Ki=r,Ai.attachEvent("onpropertychange",fg)):e==="focusout"&&nf()}function Ax(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dl(Ki)}function Ox(e,t){if(e==="click")return dl(t)}function Ix(e,t){if(e==="input"||e==="change")return dl(t)}function $x(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:$x;function Gi(e,t){if(Ut(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!Lc.call(t,s)||!Ut(e[s],t[s]))return!1}return!0}function sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function of(e,t){var r=sf(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sf(r)}}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=Ca();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ca(e.document)}return t}function kd(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 Lx(e){var t=mg(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pg(r.ownerDocument.documentElement,r)){if(n!==null&&kd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!e.extend&&i>n&&(s=n,n=i,i=s),s=of(r,i);var o=of(r,n);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mx=yr&&"documentMode"in document&&11>=document.documentMode,gs=null,tu=null,Oi=null,ru=!1;function af(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ru||gs==null||gs!==Ca(n)||(n=gs,"selectionStart"in n&&kd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Oi&&Gi(Oi,n)||(Oi=n,n=Ia(tu,"onSelect"),0<n.length&&(t=new bd("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gs)))}function Ho(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ys={animationend:Ho("Animation","AnimationEnd"),animationiteration:Ho("Animation","AnimationIteration"),animationstart:Ho("Animation","AnimationStart"),transitionend:Ho("Transition","TransitionEnd")},ec={},gg={};yr&&(gg=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function hl(e){if(ec[e])return ec[e];if(!ys[e])return e;var t=ys[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in gg)return ec[e]=t[r];return e}var yg=hl("animationend"),vg=hl("animationiteration"),wg=hl("animationstart"),xg=hl("transitionend"),bg=new Map,lf="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 dn(e,t){bg.set(e,t),Wn(t,[e])}for(var tc=0;tc<lf.length;tc++){var rc=lf[tc],Dx=rc.toLowerCase(),Fx=rc[0].toUpperCase()+rc.slice(1);dn(Dx,"on"+Fx)}dn(yg,"onAnimationEnd");dn(vg,"onAnimationIteration");dn(wg,"onAnimationStart");dn("dblclick","onDoubleClick");dn("focusin","onFocus");dn("focusout","onBlur");dn(xg,"onTransitionEnd");Vs("onMouseEnter",["mouseout","mouseover"]);Vs("onMouseLeave",["mouseout","mouseover"]);Vs("onPointerEnter",["pointerout","pointerover"]);Vs("onPointerLeave",["pointerout","pointerover"]);Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,227 bytes, line 37
37Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ti="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(" "),Bx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ti));function cf(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,D0(n,t,void 0,e),e.currentTarget=null}function _g(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;cf(s,a,c),i=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;cf(s,a,c),i=l}}}if(Pa)throw e=Yc,Pa=!1,Yc=null,e}function le(e,t){var r=t[au];r===void 0&&(r=t[au]=new Set);var n=e+"__bubble";r.has(n)||(Sg(t,e,2,!1),r.add(n))}function nc(e,t,r){var n=0;t&&(n|=4),Sg(r,e,n,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function Ji(e){if(!e[Wo]){e[Wo]=!0,Rm.forEach(function(r){r!=="selectionchange"&&(Bx.has(r)||nc(r,!1,e),nc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wo]||(t[Wo]=!0,nc("selectionchange",!1,t))}}function Sg(e,t,r,n){switch(og(t)){case 1:var s=ex;break;case 4:s=tx;break;default:s=wd}r=s.bind(null,t,r,e),s=void 0,!Qc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function sc(e,t,r,n,s){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=En(a),o===null)return;if(l=o.tag,l===5||l===6){n=i=o;continue e}a=a.parentNode}}n=n.return}qm(function(){var c=i,d=md(r),f=[];e:{var p=bg.get(e);if(p!==void 0){var h=bd,w=e;switch(e){case"keypress":if(pa(r)===0)break e;case"keydown":case"keyup":h=gx;break;case"focusin":w="focus",h=Yl;break;case"focusout":w="blur",h=Yl;break;case"beforeblur":case"afterblur":h=Yl;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Qh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=sx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=wx;break;case yg:case vg:case wg:h=ax;break;case xg:h=bx;break;case"scroll":h=rx;break;case"wheel":h=Sx;break;case"copy":case"cut":case"paste":h=cx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Xh}var y=(t&4)!==0,x=!y&&e==="scroll",g=y?p!==null?p+"Capture":null:p;y=[];for(var m=c,v;m!==null;){v=m;var _=v.stateNode;if(v.tag===5&&_!==null&&(v=_,g!==null&&(_=Hi(m,g),_!=null&&y.push(Qi(m,_,v)))),x)break;m=m.return}0<y.length&&(p=new h(p,w,null,r,d),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&r!==Gc&&(w=r.relatedTarget||r.fromElement)&&(En(w)||w[vr]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(w=r.relatedTarget||r.toElement,h=c,w=w?En(w):null,w!==null&&(x=Vn(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(h=null,w=c),h!==w)){if(y=Qh,_="onMouseLeave",g="onMouseEnter",m="mou
37se",(e==="pointerout"||e==="pointerover")&&(y=Xh,_="onPointerLeave",g="onPointerEnter",m="pointer"),x=h==null?p:vs(h),v=w==null?p:vs(w),p=new y(_,m+"leave",h,r,d),p.target=x,p.relatedTarget=v,_=null,En(d)===c&&(y=new y(g,m+"enter",w,r,d),y.target=v,y.relatedTarget=x,_=y),x=_,h&&w)t:{for(y=h,g=w,m=0,v=y;v;v=rs(v))m++;for(v=0,_=g;_;_=rs(_))v++;for(;0<m-v;)y=rs(y),m--;for(;0<v-m;)g=rs(g),v--;for(;m--;){if(y===g||g!==null&&y===g.alternate)break t;y=rs(y),g=rs(g)}y=null}else y=null;h!==null&&uf(f,p,h,y,!1),w!==null&&x!==null&&uf(f,x,w,y,!0)}}e:{if(p=c?vs(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var S=Rx;else if(tf(p))if(hg)S=Ix;else{S=Ax;var k=Nx}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=Ox);if(S&&(S=S(e,c))){dg(f,S,r,d);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&Hc(p,"number",p.value)}switch(k=c?vs(c):window,e){case"focusin":(tf(k)||k.contentEditable==="true")&&(gs=k,tu=c,Oi=null);break;case"focusout":Oi=tu=gs=null;break;case"mousedown":ru=!0;break;case"contextmenu":case"mouseup":case"dragend":ru=!1,af(f,r,d);break;case"selectionchange":if(Mx)break;case"keydown":case"keyup":af(f,r,d)}var E;if(Sd)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else ms?cg(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(lg&&r.locale!=="ko"&&(ms||j!=="onCompositionStart"?j==="onCompositionEnd"&&ms&&(E=ag()):(qr=d,xd="value"in qr?qr.value:qr.textContent,ms=!0)),k=Ia(c,j),0<k.length&&(j=new Yh(j,e,null,r,d),f.push({event:j,listeners:k}),E?j.data=E:(E=ug(r),E!==null&&(j.data=E)))),(E=Ex?Tx(e,r):Cx(e,r))&&(c=Ia(c,"onBeforeInput"),0<c.length&&(d=new Yh("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:c}),d.data=E))}_g(f,t)})}function Qi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ia(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Hi(e,r),i!=null&&n.unshift(Qi(e,i,s)),i=Hi(e,t),i!=null&&n.push(Qi(e,i,s))),e=e.return}return n}function rs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uf(e,t,r,n,s){for(var i=t._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,s?(l=Hi(r,i),l!=null&&o.unshift(Qi(r,l,a))):s||(l=Hi(r,i),l!=null&&o.push(Qi(r,l,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var zx=/\r\n?/g,Ux=/\u0000|\uFFFD/g;function df(e){return(typeof e=="string"?e:""+e).replace(zx,`
38`).replace(Ux,"")}function Vo(e,t,r){if(t=df(t),df(e)!==t&&r)throw Error(R(425))}function $a(){}var nu=null,su=null;function iu(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 ou=typeof setTimeout=="function"?setTimeout:void 0,Hx=typeof clearTimeout=="function"?clearTimeout:void 0,hf=typeof Promise=="function"?Promise:void 0,Wx=typeof queueMicrotask=="function"?queueMicrotask:typeof hf<"u"?function(e){return hf.resolve(null).then(e).catch(Vx)}:ou;function Vx(e){setTimeout(function(){throw e})}function ic(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),qi(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);qi(t)}function Xr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ri=Math.random().toString(36).slice(2),Xt="__reactFiber$"+ri,Yi="__reactProps$"+ri,vr="__reactContainer$"+ri,au="__reactEvents$"+ri,qx="__reactListeners$"+ri,Kx="__reactHandles$"+ri;function En(e){var t=e[Xt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[vr]||r[Xt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=ff(e);e!==null;){if(r=e[Xt])return r;e=ff(e)}return t}e=r,r=e.parentNode}return null}function So(e){return e=e[Xt]||e[vr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function fl(e){return e[Yi]||null}var lu=[],ws=-1;function hn(e){return{current:e}}function ce(e){0>ws||(e.current=lu[ws],lu[ws]=null,ws--)}function oe(e,t){ws++,lu[ws]=e.current,e.current=t}var on={},He=hn(on),et=hn(!1),Dn=on;function qs(e,t){var r=e.type.contextTypes;if(!r)return on;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function tt(e){return e=e.childContextTypes,e!=null}function La(){ce(et),ce(He)}function pf(e,t,r){if(He.current!==on)throw Error(R(168));oe(He,t),oe(et,r)}function kg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(R(108,N0(e)||"Unknown",s));return ge({},r,n)}function Ma(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Dn=He.current,oe(He,e),oe(et,et.current),!0}function mf(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=kg(e,t,Dn),n.__reactInternalMemoizedMergedChildContext=e,ce(et),ce(He),oe(He,e)):ce(et),oe(et,r)}var hr=null,pl=!1,oc=!1;function Eg(e){hr===null?hr=[e]:hr.push(e)}function Gx(e){pl=!0,Eg(e)}function fn(){if(!oc&&hr!==null){oc=!0;var e=0,t=ne;try{var r=hr;for(ne=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}hr=null,pl=!1}catch(s){throw hr!==null&&(hr=hr.slice(e+1)),Qm(gd,fn),s}finally{ne=t,oc=!1}}return null}var xs=[],bs=0,Da=null,Fa=0,vt=[],wt=0,Fn=null,pr=1,mr="";function wn(e,t){xs[bs++]=Fa,xs[bs++]=Da,Da=e,Fa=t}function Tg(e,t,r){vt[wt++]=pr,vt[wt++]=mr,vt[wt++]=Fn,Fn=e;var n=pr;e=mr;var s=32-Bt(n)-1;n&=~(1<<s),r+=1;var i=32-Bt(t)+s;if(30<i){var o=s-s%5;i=(n&(1<<o)-1).toString(32),n>>=o,s-=o,pr=1<<32-Bt(t)+s|r<<s|n,mr=i+e}else pr=1<<i|r<<s|n,mr=e}function Ed(e){e.return!==null&&(wn(e,1),Tg(e,1,0))}function Td(e){for(;e===Da;)Da=xs[--bs],xs[bs]=null,Fa=xs[--bs],xs[bs]=null;for(;e===Fn;)Fn=vt[--wt],vt[wt]=null,mr=vt[--wt],vt[wt]=null,pr=vt[--wt],vt[wt]=null}var ut=null,ct=null,he=!1,Mt=null;function Cg(e,t){var r=xt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function gf(e,t){switch(e.tag){case 5:var r=e.type;
vendor: 4,805 bytes, line 38
38return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ut=e,ct=Xr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Fn!==null?{id:pr,overflow:mr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=xt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ut=e,ct=null,!0):!1;default:return!1}}function cu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uu(e){if(he){var t=ct;if(t){var r=t;if(!gf(e,t)){if(cu(e))throw Error(R(418));t=Xr(r.nextSibling);var n=ut;t&&gf(e,t)?Cg(n,r):(e.flags=e.flags&-4097|2,he=!1,ut=e)}}else{if(cu(e))throw Error(R(418));e.flags=e.flags&-4097|2,he=!1,ut=e}}}function yf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function qo(e){if(e!==ut)return!1;if(!he)return yf(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!iu(e.type,e.memoizedProps)),t&&(t=ct)){if(cu(e))throw jg(),Error(R(418));for(;t;)Cg(e,t),t=Xr(t.nextSibling)}if(yf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ct=Xr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=ut?Xr(e.stateNode.nextSibling):null;return!0}function jg(){for(var e=ct;e;)e=Xr(e.nextSibling)}function Ks(){ct=ut=null,he=!1}function Cd(e){Mt===null?Mt=[e]:Mt.push(e)}var Jx=Sr.ReactCurrentBatchConfig;function mi(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var n=r.stateNode}if(!n)throw Error(R(147,e));var s=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function Ko(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vf(e){var t=e._init;return t(e._payload)}function Pg(e){function t(g,m){if(e){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function r(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function n(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=rn(g,m),g.index=0,g.sibling=null,g}function i(g,m,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=2,m):v):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,m,v,_){return m===null||m.tag!==6?(m=fc(v,g.mode,_),m.return=g,m):(m=s(m,v),m.return=g,m)}function l(g,m,v,_){var S=v.type;return S===ps?d(g,m,v.props.children,_,v.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&vf(S)===m.type)?(_=s(m,v.props),_.ref=mi(g,m,v),_.return=g,_):(_=ba(v.type,v.key,v.props,null,g.mode,_),_.ref=mi(g,m,v),_.return=g,_)}function c(g,m,v,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=pc(v,g.mode,_),m.return=g,m):(m=s(m,v.children||[]),m.return=g,m)}function d(g,m,v,_,S){return m===null||m.tag!==7?(m=Mn(v,g.mode,_,S),m.return=g,m):(m=s(m,v),m.return=g,m)}function f(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=fc(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Lo:return v=ba(m.type,m.key,m.props,null,g.mode,v),v.ref=mi(g,null,m),v.return=g,v;case fs:return m=pc(m,g.mode,v),m.return=g,m;case $r:var _=m._init;return f(g,_(m._payload),v)}if(ki(m)||ui(m))return m=Mn(m,g.mode,v,null),m.return=g,m;Ko(g,m)}return null}function p(g,m,v,_){var S=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:a(g,m,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Lo:return v.key===S?l(g,m,v,_):null;case fs:return v.key===S?c(g,m,v,_):null;case $r:return S=v._init,p(g,m,S(v._payload),_)}if(ki(v)||ui(v))return S!==null?null:d(g,m,v,_,null);Ko(g,v)}return null}function h(g,m,v,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(v)||null,a(m,g,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Lo:return g=g.get(_.key===null?v:_.key)||null,l(m,g,_,S);case fs:return g=g.get(_.key===null?v:_.key)||null,c(m,g,_,S);case $r:var k=_._init;return h(g,m,v,k(_._payload),S)}if(ki(_)||ui(_))return g=g.get(v)||null,d(m,g,_,S,null);Ko(m,_)}return null}function w(g,m,v,_){for(var S=null,k=null,E=m,j=m=0,A=null;E!==null&&j<v.length;
vendor: 1,964 bytes, line 38
38j++){E.index>j?(A=E,E=null):A=E.sibling;var O=p(g,E,v[j],_);if(O===null){E===null&&(E=A);break}e&&E&&O.alternate===null&&t(g,E),m=i(O,m,j),k===null?S=O:k.sibling=O,k=O,E=A}if(j===v.length)return r(g,E),he&&wn(g,j),S;if(E===null){for(;j<v.length;j++)E=f(g,v[j],_),E!==null&&(m=i(E,m,j),k===null?S=E:k.sibling=E,k=E);return he&&wn(g,j),S}for(E=n(g,E);j<v.length;j++)A=h(E,g,j,v[j],_),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?j:A.key),m=i(A,m,j),k===null?S=A:k.sibling=A,k=A);return e&&E.forEach(function(U){return t(g,U)}),he&&wn(g,j),S}function y(g,m,v,_){var S=ui(v);if(typeof S!="function")throw Error(R(150));if(v=S.call(v),v==null)throw Error(R(151));for(var k=S=null,E=m,j=m=0,A=null,O=v.next();E!==null&&!O.done;j++,O=v.next()){E.index>j?(A=E,E=null):A=E.sibling;var U=p(g,E,O.value,_);if(U===null){E===null&&(E=A);break}e&&E&&U.alternate===null&&t(g,E),m=i(U,m,j),k===null?S=U:k.sibling=U,k=U,E=A}if(O.done)return r(g,E),he&&wn(g,j),S;if(E===null){for(;!O.done;j++,O=v.next())O=f(g,O.value,_),O!==null&&(m=i(O,m,j),k===null?S=O:k.sibling=O,k=O);return he&&wn(g,j),S}for(E=n(g,E);!O.done;j++,O=v.next())O=h(E,g,j,O.value,_),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?j:O.key),m=i(O,m,j),k===null?S=O:k.sibling=O,k=O);return e&&E.forEach(function(M){return t(g,M)}),he&&wn(g,j),S}function x(g,m,v,_){if(typeof v=="object"&&v!==null&&v.type===ps&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Lo:e:{for(var S=v.key,k=m;k!==null;){if(k.key===S){if(S=v.type,S===ps){if(k.tag===7){r(g,k.sibling),m=s(k,v.props.children),m.return=g,g=m;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&vf(S)===k.type){r(g,k.sibling),m=s(k,v.props),m.ref=mi(g,k,v),m.return=g,g=m;break e}r(g,k);break}else t(g,k);k=k.sibling}v.type===ps?(m=Mn(v.props.children,g.mode,_,v.key),m.return=g,g=m):(_=ba(v.type,v.key,v.props,null,g.mode,_),_.ref=mi(g,m,v),_.return=g,g=_)}return o(g);
vendor: 4,664 bytes, line 38
38case fs:e:{for(k=v.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){r(g,m.sibling),m=s(m,v.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else t(g,m);m=m.sibling}m=pc(v,g.mode,_),m.return=g,g=m}return o(g);case $r:return k=v._init,x(g,m,k(v._payload),_)}if(ki(v))return w(g,m,v,_);if(ui(v))return y(g,m,v,_);Ko(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(r(g,m.sibling),m=s(m,v),m.return=g,g=m):(r(g,m),m=fc(v,g.mode,_),m.return=g,g=m),o(g)):r(g,m)}return x}var Gs=Pg(!0),Rg=Pg(!1),Ba=hn(null),za=null,_s=null,jd=null;function Pd(){jd=_s=za=null}function Rd(e){var t=Ba.current;ce(Ba),e._currentValue=t}function du(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Rs(e,t){za=e,jd=_s=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function _t(e){var t=e._currentValue;if(jd!==e)if(e={context:e,memoizedValue:t,next:null},_s===null){if(za===null)throw Error(R(308));_s=e,za.dependencies={lanes:0,firstContext:e}}else _s=_s.next=e;return t}var Tn=null;function Nd(e){Tn===null?Tn=[e]:Tn.push(e)}function Ng(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,Nd(t)):(r.next=s.next,s.next=r),t.interleaved=r,wr(e,n)}function wr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Lr=!1;function Ad(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 gr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ee&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,wr(e,r)}return s=n.interleaved,s===null?(t.next=t,Nd(n)):(t.next=s.next,s.next=t),n.interleaved=t,wr(e,r)}function ma(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,yd(e,r)}}function wf(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=t:i=i.next=t}else s=i=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ua(e,t,r,n){var s=e.updateQueue;Lr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,d=c=l=null,a=i;do{var p=a.lane,h=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,y=a;switch(p=t,h=r,y.tag){case 1:if(w=y.payload,typeof w=="function"){f=w.call(h,f,p);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,p=typeof w=="function"?w.call(h,f,p):w,p==null)break e;f=ge({},f,p);break e;case 2:Lr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,o|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);zn|=o,e.lanes=o,e.memoizedState=f}}function xf(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(R(191,s));s.call(n)}}}var ko={},tr=hn(ko),Xi=hn(ko),Zi=hn(ko);function Cn(e){if(e===ko)throw Error(R(174));return e}
vendor: 7,973 bytes, line 38
38function Od(e,t){switch(oe(Zi,t),oe(Xi,e),oe(tr,ko),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vc(t,e)}ce(tr),oe(tr,t)}function Js(){ce(tr),ce(Xi),ce(Zi)}function Og(e){Cn(Zi.current);var t=Cn(tr.current),r=Vc(t,e.type);t!==r&&(oe(Xi,e),oe(tr,r))}function Id(e){Xi.current===e&&(ce(tr),ce(Xi))}var pe=hn(0);function Ha(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ac=[];function $d(){for(var e=0;e<ac.length;e++)ac[e]._workInProgressVersionPrimary=null;ac.length=0}var ga=Sr.ReactCurrentDispatcher,lc=Sr.ReactCurrentBatchConfig,Bn=0,me=null,Te=null,Pe=null,Wa=!1,Ii=!1,eo=0,Qx=0;function Fe(){throw Error(R(321))}function Ld(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ut(e[r],t[r]))return!1;return!0}function Md(e,t,r,n,s,i){if(Bn=i,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ga.current=e===null||e.memoizedState===null?eb:tb,e=r(n,s),Ii){i=0;do{if(Ii=!1,eo=0,25<=i)throw Error(R(301));i+=1,Pe=Te=null,t.updateQueue=null,ga.current=rb,e=r(n,s)}while(Ii)}if(ga.current=Va,t=Te!==null&&Te.next!==null,Bn=0,Pe=Te=me=null,Wa=!1,t)throw Error(R(300));return e}function Dd(){var e=eo!==0;return eo=0,e}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?me.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function St(){if(Te===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Pe===null?me.memoizedState:Pe.next;if(t!==null)Pe=t,Te=e;else{if(e===null)throw Error(R(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Pe===null?me.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function to(e,t){return typeof t=="function"?t(e):t}function cc(e){var t=St(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var n=Te,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var a=o=null,l=null,c=i;do{var d=c.lane;if((Bn&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,o=n):l=l.next=f,me.lanes|=d,zn|=d}c=c.next}while(c!==null&&c!==i);l===null?o=n:l.next=a,Ut(n,t.memoizedState)||(Ze=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do i=s.lane,me.lanes|=i,zn|=i,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function uc(e){var t=St(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,i=t.memoizedState;if(s!==null){r.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Ut(i,t.memoizedState)||(Ze=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Ig(){}function $g(e,t){var r=me,n=St(),s=t(),i=!Ut(n.memoizedState,s);if(i&&(n.memoizedState=s,Ze=!0),n=n.queue,Fd(Dg.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Pe!==null&&Pe.memoizedState.tag&1){if(r.flags|=2048,ro(9,Mg.bind(null,r,n,s,t),void 0,null),Ne===null)throw Error(R(349));Bn&30||Lg(r,t,s)}return s}function Lg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Mg(e,t,r,n){t.value=r,t.getSnapshot=n,Fg(t)&&Bg(e)}function Dg(e,t,r){return r(function(){Fg(t)&&Bg(e)})}function Fg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ut(e,r)}catch{return!0}}function Bg(e){var t=wr(e,1);t!==null&&zt(t,e,1,-1)}function bf(e){var t=Gt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:e},t.queue=e,e=e.dispatch=Zx.bind(null,me,e),[t.memoizedState,e]}function ro(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function zg(){return St().memoizedState}function ya(e,t,r,n){var s=Gt();me.flags|=e,s.memoizedState=ro(1|t,r,void 0,n===void 0?null:n)}function ml(e,t,r,n){var s=St();n=n===void 0?null:n;var i=void 0;if(Te!==null){var o=Te.memoizedState;if(i=o.destroy,n!==null&&Ld(n,o.deps)){s.memoizedState=ro(t,r,i,n);return}}me.flags|=e,s.memoizedState=ro(1|t,r,i,n)}function _f(e,t){return ya(8390656,8,e,t)}function Fd(e,t){return ml(2048,8,e,t)}function Ug(e,t){return ml(4,2,e,t)}function Hg(e,t){return ml(4,4,e,t)}function Wg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vg(e,t,r){return r=r!=null?r.concat([e]):null,ml(4,4,Wg.bind(null,t,e),r)}function Bd(){}function qg(e,t){var r=St();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ld(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Kg(e,t){var r=St();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ld(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Gg(e,t,r){return Bn&21?(Ut(r,t)||(r=Zm(),me.lanes|=r,zn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ze=!0),e.memoizedState=r)}function Yx(e,t){var r=ne;ne=r!==0&&4>r?r:4,e(!0);var n=lc.transition;lc.transition={};try{e(!1),t()}finally{ne=r,lc.transition=n}}function Jg(){return St().memoizedState}function Xx(e,t,r){var n=tn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Qg(e))Yg(t,r);else if(r=Ng(e,t,r,n),r!==null){var s=Ke();zt(r,e,n,s),Xg(r,t,n)}}function Zx(e,t,r){var n=tn(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qg(e))Yg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,Ut(a,o)){var l=t.interleaved;l===null?(s.next=s,Nd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=Ng(e,t,s,n),r!==null&&(s=Ke(),zt(r,e,n,s),Xg(r,t,n))}}function Qg(e){var t=e.alternate;return e===me||t!==null&&t===me}function Yg(e,t){Ii=Wa=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Xg(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,yd(e,r)}}var Va={readContext:_t,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},eb={readContext:_t,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:_f,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ya(4194308,4,Wg.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ya(4194308,4,e,t)},useInsertionEffect:function(e,t){return ya(4,2,e,t)},useMemo:function(e,t){var r=Gt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Gt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Xx.bind(null,me,e),[n.memoizedState,e]}
vendor: 7,431 bytes, lines 38-40
38,useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:bf,useDebugValue:Bd,useDeferredValue:function(e){return Gt().memoizedState=e},useTransition:function(){var e=bf(!1),t=e[0];return e=Yx.bind(null,e[1]),Gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=me,s=Gt();if(he){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ne===null)throw Error(R(349));Bn&30||Lg(n,t,r)}s.memoizedState=r;var i={value:r,getSnapshot:t};return s.queue=i,_f(Dg.bind(null,n,i,e),[e]),n.flags|=2048,ro(9,Mg.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Gt(),t=Ne.identifierPrefix;if(he){var r=mr,n=pr;r=(n&~(1<<32-Bt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=eo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Qx++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tb={readContext:_t,useCallback:qg,useContext:_t,useEffect:Fd,useImperativeHandle:Vg,useInsertionEffect:Ug,useLayoutEffect:Hg,useMemo:Kg,useReducer:cc,useRef:zg,useState:function(){return cc(to)},useDebugValue:Bd,useDeferredValue:function(e){var t=St();return Gg(t,Te.memoizedState,e)},useTransition:function(){var e=cc(to)[0],t=St().memoizedState;return[e,t]},useMutableSource:Ig,useSyncExternalStore:$g,useId:Jg,unstable_isNewReconciler:!1},rb={readContext:_t,useCallback:qg,useContext:_t,useEffect:Fd,useImperativeHandle:Vg,useInsertionEffect:Ug,useLayoutEffect:Hg,useMemo:Kg,useReducer:uc,useRef:zg,useState:function(){return uc(to)},useDebugValue:Bd,useDeferredValue:function(e){var t=St();return Te===null?t.memoizedState=e:Gg(t,Te.memoizedState,e)},useTransition:function(){var e=uc(to)[0],t=St().memoizedState;return[e,t]},useMutableSource:Ig,useSyncExternalStore:$g,useId:Jg,unstable_isNewReconciler:!1};function Rt(e,t){if(e&&e.defaultProps){t=ge({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function hu(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ge({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gl={isMounted:function(e){return(e=e._reactInternals)?Vn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ke(),s=tn(e),i=gr(n,s);i.payload=t,r!=null&&(i.callback=r),t=Zr(e,i,s),t!==null&&(zt(t,e,s,n),ma(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ke(),s=tn(e),i=gr(n,s);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Zr(e,i,s),t!==null&&(zt(t,e,s,n),ma(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ke(),n=tn(e),s=gr(r,n);s.tag=2,t!=null&&(s.callback=t),t=Zr(e,s,n),t!==null&&(zt(t,e,n,r),ma(t,e,n))}};function Sf(e,t,r,n,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!Gi(r,n)||!Gi(s,i):!0}function Zg(e,t,r){var n=!1,s=on,i=t.contextType;return typeof i=="object"&&i!==null?i=_t(i):(s=tt(t)?Dn:He.current,n=t.contextTypes,i=(n=n!=null)?qs(e,s):on),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gl,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function kf(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&gl.enqueueReplaceState(t,t.state,null)}function fu(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},Ad(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=_t(i):(i=tt(t)?Dn:He.current,s.context=qs(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(hu(e,t,i,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&gl.enqueueReplaceState(s,s.state,null),Ua(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Qs(e,t){try{var r="",n=t;do r+=R0(n),n=n.return;while(n);var s=r}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function dc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function pu(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var nb=typeof WeakMap=="function"?WeakMap:Map;function ey(e,t,r){r=gr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ka||(Ka=!0,ku=n),pu(e,t)},r}function ty(e,t,r){r=gr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){pu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){pu(e,t),typeof n!="function"&&(en===null?en=new Set([this]):en.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Ef(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new nb;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=yb.bind(null,e,t,r),t.then(e,e))}function Tf(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 Cf(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=gr(-1,1),t.tag=2,Zr(r,t,1))),r.lanes|=1),e)}var sb=Sr.ReactCurrentOwner,Ze=!1;function Ve(e,t,r,n){t.child=e===null?Rg(t,null,r,n):Gs(t,e.child,r,n)}function jf(e,t,r,n,s){r=r.render;var i=t.ref;return Rs(t,s),n=Md(e,t,r,n,i,s),r=Dd(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,xr(e,t,s)):(he&&r&&Ed(t),t.flags|=1,Ve(e,t,n,s),t.child)}function Pf(e,t,r,n,s){if(e===null){var i=r.type;return typeof i=="function"&&!Gd(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,ry(e,t,i,n,s)):(e=ba(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Gi,r(o,n)&&e.ref===t.ref)return xr(e,t,s)}return t.flags|=1,e=rn(i,n),e.ref=t.ref,e.return=t,t.child=e}function ry(e,t,r,n,s){if(e!==null){var i=e.memoizedProps;if(Gi(i,n)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=n=i,(e.lanes&s)!==0)e.flags&131072&&(Ze=!0);else return t.lanes=e.lanes,xr(e,t,s)}return mu(e,t,r,n,s)}function ny(e,t,r){var n=t.pendingProps,s=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},oe(ks,it),it|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,oe(ks,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,oe(ks,it),it|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,oe(ks,it),it|=n;return Ve(e,t,s,r),t.child}function sy(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function mu(e,t,r,n,s){var i=tt(r)?Dn:He.current;return i=qs(t,i),Rs(t,s),r=Md(e,t,r,n,i,s),n=Dd(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,xr(e,t,s)):(he&&n&&Ed(t),t.flags|=1,Ve(e,t,r,s),t.child)}function Rf(e,t,r,n,s){if(tt(r)){var i=!0;Ma(t)}else i=!1;if(Rs(t,s),t.stateNode===null)va(e,t),Zg(t,r,n),fu(t,r,n,s),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=_t(c):(c=tt(r)?Dn:He.current,c=qs(t,c));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==c)&&kf(t,o,n,c),Lr=!1;var p=t.memoizedState;o.state=p,Ua(t,n,o,s),l=t.memoizedState,a!==n||p!==l||et.current||Lr?(typeof d=="function"&&(hu(t,r,d,n),l=t.memoizedState),(a=Lr||Sf(t,r,a,n,p,l,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=c,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Ag(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Rt(t.type,a),o.props=c,f=t.pendingProps,p=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=_t(l):(l=tt(r)?Dn:He.current,l=qs(t,l));var h=r.getDerivedStateFromProps;(d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||p!==l)&&kf(t,o,n,l),Lr=!1,p=t.memoizedState,o.state=p,Ua(t,n,o,s);var w=t.memoizedState;a!==f||p!==w||et.current||Lr?(typeof h=="function"&&(hu(t,r,h,n),w=t.memoizedState),(c=Lr||Sf(t,r,c,n,p,w,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,w,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=w),o.props=n,o.state=w,o.context=l,n=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return gu(e,t,r,n,i,s)}function gu(e,t,r,n,s,i){sy(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return s&&mf(t,r,!1),xr(e,t,i);n=t.stateNode,sb.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Gs(t,e.child,null,i),t.child=Gs(t,null,a,i)):Ve(e,t,a,i),t.memoizedState=n.state,s&&mf(t,r,!0),t.child}function iy(e){var t=e.stateNode;t.pendingContext?pf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pf(e,t.context,!1),Od(e,t.containerInfo)}function Nf(e,t,r,n,s){return Ks(),Cd(s),t.flags|=256,Ve(e,t,r,n),t.child}var yu={dehydrated:null,treeContext:null,retryLane:0};function vu(e){return{baseLanes:e,cachePool:null,transitions:null}}function oy(e,t,r){var n=t.pendingProps,s=pe.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),oe(pe,s&1),e===null)return uu(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):(o=n.children,e=n.fallback,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=wl(o,n,0,null),e=Mn(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=vu(r),t.memoizedState=yu,e):zd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return ib(e,t,o,n,a,s,r);if(i){i=n.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=rn(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=rn(a,i):(i=Mn(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?vu(r):{base
vendor: 8,148 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=yu,n}return i=e.child,e=i.sibling,n=rn(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function zd(e,t){return t=wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Go(e,t,r,n){return n!==null&&Cd(n),Gs(t,e.child,null,r),e=zd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ib(e,t,r,n,s,i,o){if(r)return t.flags&256?(t.flags&=-257,n=dc(Error(R(422))),Go(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,s=t.mode,n=wl({mode:"visible",children:n.children},s,0,null),i=Mn(i,s,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Gs(t,e.child,null,o),t.child.memoizedState=vu(o),t.memoizedState=yu,i);if(!(t.mode&1))return Go(e,t,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(R(419)),n=dc(i,n,void 0),Go(e,t,o,n)}if(a=(o&e.childLanes)!==0,Ze||a){if(n=Ne,n!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,wr(e,s),zt(n,e,s,-1))}return Kd(),n=dc(Error(R(421))),Go(e,t,o,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=vb.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,ct=Xr(s.nextSibling),ut=t,he=!0,Mt=null,e!==null&&(vt[wt++]=pr,vt[wt++]=mr,vt[wt++]=Fn,pr=e.id,mr=e.overflow,Fn=t),t=zd(t,n.children),t.flags|=4096,t)}function Af(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),du(e.return,t,r)}function hc(e,t,r,n,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function ay(e,t,r){var n=t.pendingProps,s=n.revealOrder,i=n.tail;if(Ve(e,t,n.children,r),n=pe.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Af(e,r,t);else if(e.tag===19)Af(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(oe(pe,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Ha(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),hc(t,!1,s,r,i);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ha(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}hc(t,!0,r,null,i);break;case"together":hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function va(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=rn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=rn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function ob(e,t,r){switch(t.tag){case 3:iy(t),Ks();break;case 5:Og(t);break;case 1:tt(t.type)&&Ma(t);break;case 4:Od(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;oe(Ba,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(oe(pe,pe.current&1),t.flags|=128,null):r&t.child.childLanes?oy(e,t,r):(oe(pe,pe.current&1),e=xr(e,t,r),e!==null?e.sibling:null);oe(pe,pe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return ay(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),oe(pe,pe.current),n)break;return null;case 22:case 23:return t.lanes=0,ny(e,t,r)}return xr(e,t,r)}var ly,wu,cy,uy;ly=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};wu=function(){};cy=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,Cn(tr.current);var i=null;switch(r){case"input":s=zc(e,s),n=zc(e,n),i=[];break;case"select":s=ge({},s,{value:void 0}),n=ge({},n,{value:void 0}),i=[];break;case"textarea":s=Wc(e,s),n=Wc(e,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$a)}qc(r,n);var o;r=null;for(c in s)if(!n.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(zi.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(a=s!=null?s[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(zi.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&le("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};uy=function(e,t,r,n){r!==n&&(t.flags|=4)};function gi(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function ab(e,t,r){var n=t.pendingProps;switch(Td(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return tt(t.type)&&La(),Be(t),null;case 3:return n=t.stateNode,Js(),ce(et),ce(He),$d(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(qo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mt!==null&&(Cu(Mt),Mt=null))),wu(e,t),Be(t),null;case 5:Id(t);var s=Cn(Zi.current);if(r=t.type,e!==null&&t.stateNode!=null)cy(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(R(166));return Be(t),null}if(e=Cn(tr.current),qo(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Xt]=t,n[Yi]=i,e=(t.mode&1)!==0,r){case"dialog":le("cancel",n),le("close",n);break;case"iframe":case"object":case"embed":le("load",n);break;case"video":case"audio":for(s=0;s<Ti.length;s++)le(Ti[s],n);break;case"source":le("error",n);break;case"img":case"image":case"link":le("error",n),le("load",n);break;case"details":le("toggle",n);break;case"input":Bh(n,i),le("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},le("invalid",n);break;case"textarea":Uh(n,i),le("invalid",n)}
vendor: 31,760 bytes, line 40
40qc(r,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&Vo(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Vo(n.textContent,a,e),s=["children",""+a]):zi.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&le("scroll",n)}switch(r){case"input":Mo(n),zh(n,i,!0);break;case"textarea":Mo(n),Hh(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=$a)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Dm(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Xt]=t,e[Yi]=n,ly(e,t,!1,!1),t.stateNode=e;e:{switch(o=Kc(r,n),r){case"dialog":le("cancel",e),le("close",e),s=n;break;case"iframe":case"object":case"embed":le("load",e),s=n;break;case"video":case"audio":for(s=0;s<Ti.length;s++)le(Ti[s],e);s=n;break;case"source":le("error",e),s=n;break;case"img":case"image":case"link":le("error",e),le("load",e),s=n;break;case"details":le("toggle",e),s=n;break;case"input":Bh(e,n),s=zc(e,n),le("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=ge({},n,{value:void 0}),le("invalid",e);break;case"textarea":Uh(e,n),s=Wc(e,n),le("invalid",e);break;default:s=n}qc(r,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?zm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fm(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ui(e,l):typeof l=="number"&&Ui(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(zi.hasOwnProperty(i)?l!=null&&i==="onScroll"&&le("scroll",e):l!=null&&dd(e,i,l,o))}switch(r){case"input":Mo(e),zh(e,n,!1);break;case"textarea":Mo(e),Hh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+sn(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Ts(e,!!n.multiple,i,!1):n.defaultValue!=null&&Ts(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=$a)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Be(t),null;case 6:if(e&&t.stateNode!=null)uy(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(R(166));if(r=Cn(Zi.current),Cn(tr.current),qo(t)){if(n=t.stateNode,r=t.memoizedProps,n[Xt]=t,(i=n.nodeValue!==r)&&(e=ut,e!==null))switch(e.tag){case 3:Vo(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vo(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Xt]=t,t.stateNode=n}return Be(t),null;case 13:if(ce(pe),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&ct!==null&&t.mode&1&&!(t.flags&128))jg(),Ks(),t.flags|=98560,i=!1;else if(i=qo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[Xt]=t}else Ks(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),i=!1}else Mt!==null&&(Cu(Mt),Mt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||pe.current&1?je===0&&(je=3):Kd())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return Js(),wu(e,t),e===null&&Ji(t.stateNode.containerInfo),Be(t),null;case 10:return Rd(t.type._context),Be(t),null;case 17:return tt(t.type)&&La(),Be(t),null;case 19:if(ce(pe),i=t.memoizedState,i===null)return Be(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)gi(i,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ha(e),o!==null){for(t.flags|=128,gi(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return oe(pe,pe.current&1|2),t.child}e=e.sibling}i.tail!==null&&xe()>Ys&&(t.flags|=128,n=!0,gi(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ha(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),gi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!he)return Be(t),null}else 2*xe()-i.renderingStartTime>Ys&&r!==1073741824&&(t.flags|=128,n=!0,gi(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xe(),t.sibling=null,r=pe.current,oe(pe,n?r&1|2:r&1),t):(Be(t),null);case 22:case 23:return qd(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?it&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(Td(t),t.tag){case 1:return tt(t.type)&&La(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Js(),ce(et),ce(He),$d(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Id(t),null;case 13:if(ce(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ks()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(pe),null;case 4:return Js(),null;case 10:return Rd(t.type._context),null;case 22:case 23:return qd(),null;case 24:return null;default:return null}}var Jo=!1,Ue=!1,cb=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ss(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){we(e,t,n)}else r.current=null}function xu(e,t,r){try{r()}catch(n){we(e,t,n)}}var Of=!1;function ub(e,t){if(nu=Aa,e=mg(),kd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===s&&(a=o),p===i&&++d===n&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(su={focusedElem:e,selectionRange:r},Aa=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,x=w.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Rt(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(_){we(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return w=Of,Of=!1,w}function $i(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&xu(t,r,i)}s=s.next}while(s!==n)}}function yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function bu(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function dy(e){var t=e.alternate;t!==null&&(e.alternate=null,dy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xt],delete t[Yi],delete t[au],delete t[qx],delete t[Kx])),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 hy(e){return e.tag===5||e.tag===3||e.tag===4}function If(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hy(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 _u(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$a));else if(n!==4&&(e=e.child,e!==null))for(_u(e,t,r),e=e.sibling;e!==null;)_u(e,t,r),e=e.sibling}function Su(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Su(e,t,r),e=e.sibling;e!==null;)Su(e,t,r),e=e.sibling}var Ie=null,$t=!1;function Nr(e,t,r){for(r=r.child;r!==null;)fy(e,t,r),r=r.sibling}function fy(e,t,r){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(cl,r)}catch{}switch(r.tag){case 5:Ue||Ss(r,t);case 6:var n=Ie,s=$t;Ie=null,Nr(e,t,r),Ie=n,$t=s,Ie!==null&&($t?(e=Ie,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ie.removeChild(r.stateNode));break;case 18:Ie!==null&&($t?(e=Ie,r=r.stateNode,e.nodeType===8?ic(e.parentNode,r):e.nodeType===1&&ic(e,r),qi(e)):ic(Ie,r.stateNode));break;case 4:n=Ie,s=$t,Ie=r.stateNode.containerInfo,$t=!0,Nr(e,t,r),Ie=n,$t=s;break;case 0:case 11:case 14:case 15:if(!Ue&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&xu(r,t,o),s=s.next}while(s!==n)}Nr(e,t,r);break;case 1:if(!Ue&&(Ss(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){we(r,t,a)}Nr(e,t,r);break;case 21:Nr(e,t,r);break;case 22:r.mode&1?(Ue=(n=Ue)||r.memoizedState!==null,Nr(e,t,r),Ue=n):Nr(e,t,r);break;default:Nr(e,t,r)}}function $f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new cb),t.forEach(function(n){var s=wb.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function Ct(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ie=a.stateNode,$t=!1;break e;case 3:Ie=a.stateNode.containerInfo,$t=!0;break e;case 4:Ie=a.stateNode.containerInfo,$t=!0;break e}a=a.return}if(Ie===null)throw Error(R(160));fy(i,o,s),Ie=null,$t=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){we(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)py(t,e),t=t.sibling}function py(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Kt(e),n&4){try{$i(3,e,e.return),yl(3,e)}catch(y){we(e,e.return,y)}try{$i(5,e,e.return)}catch(y){we(e,e.return,y)}}break;case 1:Ct(t,e),Kt(e),n&512&&r!==null&&Ss(r,r.return);break;case 5:if(Ct(t,e),Kt(e),n&512&&r!==null&&Ss(r,r.return),e.flags&32){var s=e.stateNode;try{Ui(s,"")}catch(y){we(e,e.return,y)}}if(n&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Lm(s,i),Kc(a,o);var c=Kc(a,i);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?zm(s,f):d==="dangerouslySetInnerHTML"?Fm(s,f):d==="children"?Ui(s,f):dd(s,d,f,c)}switch(a){case"input":Uc(s,i);break;case"textarea":Mm(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?Ts(s,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?Ts(s,!!i.multiple,i.defaultValue,!0):Ts(s,!!i.multiple,i.multiple?[]:"",!1))}s[Yi]=i}catch(y){we(e,e.return,y)}}break;case 6:if(Ct(t,e),Kt(e),n&4){if(e.stateNode===null)throw Error(R(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){we(e,e.return,y)}}break;case 3:if(Ct(t,e),Kt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(y){we(e,e.return,y)}break;case 4:Ct(t,e),Kt(e);break;case 13:Ct(t,e),Kt(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Wd=xe())),n&4&&$f(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Ue=(c=Ue)||d,Ct(t,e),Ue=c):Ct(t,e),Kt(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(L=e,d=e.child;d!==null;){for(f=L=d;L!==null;){switch(p=L,h=p.child,p.tag){case 0:case 11:case 14:case 15:$i(4,p,p.return);break;case 1:Ss(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){we(n,r,y)}}break;case 5:Ss(p,p.return);break;case 22:if(p.memoizedState!==null){Mf(f);continue}}h!==null?(h.return=p,L=h):Mf(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Bm("display",o))}catch(y){we(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(y){we(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ct(t,e),Kt(e),n&4&&$f(e);break;case 21:break;default:Ct(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(hy(r)){var n=r;break e}r=r.return}throw Error(R(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Ui(s,""),n.flags&=-33);var i=If(e);Su(e,i,s);break;case 3:case 4:var o=n.stateNode.containerInfo,a=If(e);_u(e,a,o);break;default:throw Error(R(161))}}catch(l){we(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function db(e,t,r){L=e,my(e)}function my(e,t,r){for(var n=(e.mode&1)!==0;L!==null;){var s=L,i=s.child;if(s.tag===22&&n){var o=s.memoizedState!==null||Jo;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ue;a=Jo;var c=Ue;if(Jo=o,(Ue=l)&&!c)for(L=s;L!==null;)o=L,l=o.child,o.tag===22&&o.memoizedState!==null?Df(s):l!==null?(l.return=o,L=l):Df(s);for(;i!==null;)L=i,my(i),i=i.sibling;L=s,Jo=a,Ue=c}Lf(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,L=i):Lf(e)}}function Lf(e){for(;L!==null;){var t=L;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ue||yl(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ue)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:Rt(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&xf(t,i,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}xf(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&qi(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ue||t.flags&512&&bu(t)}catch(p){we(t,t.return,p)}}if(t===e){L=null;break}if(r=t.sibling,r!==null){r.return=t.return,L=r;break}L=t.return}}function Mf(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var r=t.sibling;if(r!==null){r.return=t.return,L=r;break}L=t.return}}function Df(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{yl(4,t)}catch(l){we(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(l){we(t,s,l)}}var i=t.return;try{bu(t)}catch(l){we(t,i,l)}break;case 5:var o=t.return;try{bu(t)}catch(l){we(t,o,l)}}}catch(l){we(t,t.return,l)}if(t===e){L=null;break}var a=t.sibling;if(a!==null){a.return=t.return,L=a;break}L=t.return}}var hb=Math.ceil,qa=Sr.ReactCurrentDispatcher,Ud=Sr.ReactCurrentOwner,bt=Sr.ReactCurrentBatchConfig,ee=0,Ne=null,Se=null,$e=0,it=0,ks=hn(0),je=0,no=null,zn=0,vl=0,Hd=0,Li=null,Xe=null,Wd=0,Ys=1/0,ur=null,Ka=!1,ku=null,en=null,Qo=!1,Kr=null,Ga=0,Mi=0,Eu=null,wa=-1,xa=0;function Ke(){return ee&6?xe():wa!==-1?wa:wa=xe()}function tn(e){return e.mode&1?ee&2&&$e!==0?$e&-$e:Jx.transition!==null?(xa===0&&(xa=Zm()),xa):(e=ne,e!==0||(e=window.event,e=e===void 0?16:og(e.type)),e):1}function zt(e,t,r,n){if(50<Mi)throw Mi=0,Eu=null,Error(R(185));bo(e,r,n),(!(ee&2)||e!==Ne)&&(e===Ne&&(!(ee&2)&&(vl|=r),je===4&&Fr(e,$e)),rt(e,n),r===1&&ee===0&&!(t.mode&1)&&(Ys=xe()+500,pl&&fn()))}function rt(e,t){var r=e.callbackNode;J0(e,t);var n=Na(e,e===Ne?$e:0);if(n===0)r!==null&&qh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&qh(r),t===1)e.tag===0?Gx(Ff.bind(null,e)):Eg(Ff.bind(null,e)),Wx(function(){!(ee&6)&&fn()}),r=null;else{switch(eg(n)){case 1:r=gd;break;case 4:r=Ym;break;case 16:r=Ra;break;case 536870912:r=Xm;break;default:r=Ra}r=Sy(r,gy.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function gy(e,t){if(wa=-1,xa=0,ee&6)throw Error(R(327));var r=e.callbackNode;if(Ns()&&e.callbackNode!==r)return null;var n=Na(e,e===Ne?$e:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Ja(e,n);else{t=n;var s=ee;ee|=2;var i=vy();(Ne!==e||$e!==t)&&(ur=null,Ys=xe()+500,Ln(e,t));do try{mb();break}catch(a){yy(e,a)}while(!0);Pd(),qa.current=i,ee=s,Se!==null?t=0:(Ne=null,$e=0,t=je)}if(t!==0){if(t===2&&(s=Xc(e),s!==0&&(n=s,t=Tu(e,s))),t===1)throw r=no,Ln(e,0),Fr(e,n),rt(e,xe()),r;if(t===6)Fr(e,n);else{if(s=e.current.alternate,!(n&30)&&!fb(s)&&(t=Ja(e,n),t===2&&(i=Xc(e),i!==0&&(n=i,t=Tu(e,i))),t===1))throw r=no,Ln(e,0),Fr(e,n),rt(e,xe()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(R(345));case 2:xn(e,Xe,ur);break;case 3:if(Fr(e,n),(n&130023424)===n&&(t=Wd+500-xe(),10<t)){if(Na(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Ke(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ou(xn.bind(null,e,Xe,ur),t);break}xn(e,Xe,ur);break;case 4:if(Fr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var o=31-Bt(n);i=1<<o,o=t[o],o>s&&(s=o),n&=~i}if(n=s,n=xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*hb(n/1960))-n,10<n){e.timeoutHandle=ou(xn.bind(null,e,Xe,ur),n);break}xn(e,Xe,ur);break;case 5:xn(e,Xe,ur);break;default:throw Error(R(329))}}}return rt(e,xe()),e.callbackNode===r?gy.bind(null,e):null}function Tu(e,t){var r=Li;return e.current.memoizedState.isDehydrated&&(Ln(e,t).flags|=256),e=Ja(e,t),e!==2&&(t=Xe,Xe=r,t!==null&&Cu(t)),e}function Cu(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function fb(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],i=s.getSnapshot;s=s.value;try{if(!Ut(i(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fr(e,t){for(t&=~Hd,t&=~vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Bt(t),n=1<<r;e[r]=-1,t&=~n}}function Ff(e){if(ee&6)throw Error(R(327));Ns();var t=Na(e,0);if(!(t&1))return rt(e,xe()),null;var r=Ja(e,t);if(e.tag!==0&&r===2){var n=Xc(e);n!==0&&(t=n,r=Tu(e,n))}if(r===1)throw r=no,Ln(e,0),Fr(e,t),rt(e,xe()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xn(e,Xe,ur),rt(e,xe()),null}function Vd(e,t){var r=ee;ee|=1;try{return e(t)}finally{ee=r,ee===0&&(Ys=xe()+500,pl&&fn())}}function Un(e){Kr!==null&&Kr.tag===0&&!(ee&6)&&Ns();var t=ee;ee|=1;var r=bt.transition,n=ne;try{if(bt.transition=null,ne=1,e)return e()}finally{ne=n,bt.transition=r,ee=t,!(ee&6)&&fn()}}function qd(){it=ks.current,ce(ks)}function Ln(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Hx(r)),Se!==null)for(r=Se.return;r!==null;){var n=r;switch(Td(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&La();break;case 3:Js(),ce(et),ce(He),$d();break;case 5:Id(n);break;case 4:Js();break;case 13:ce(pe);break;case 19:ce(pe);break;case 10:Rd(n.type._context);break;case 22:case 23:qd()}r=r.return}if(Ne=e,Se=e=rn(e.current,null),$e=it=t,je=0,no=null,Hd=vl=zn=0,Xe=Li=null,Tn!==null){for(t=0;t<Tn.length;t++)if(r=Tn[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=s,n.next=o}r.pending=n}Tn=null}return e}function yy(e,t){do{var r=Se;try{if(Pd(),ga.current=Va,Wa){for(var n=me.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Wa=!1}if(Bn=0,Pe=Te=me=null,Ii=!1,eo=0,Ud.current=null,r===null||r.return===null){je=1,no=t,Se=null;break}e:{var i=e,o=r.return,a=r,l=t;if(t=$e,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Tf(o);if(h!==null){h.flags&=-257,Cf(h,o,a,i,t),h.mode&1&&Ef(i,c,t),t=h,l=c;var w=t.updateQueue;if(w===null){var y=new Set;y.add(l),t.updateQueue=y}else w.add(l);break e}else{if(!(t&1)){Ef(i,c,t),Kd();break e}l=Error(R(426))}}else if(he&&a.mode&1){var x=Tf(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Cf(x,o,a,i,t),Cd(Qs(l,a));break e}}i=l=Qs(l,a),je!==4&&(je=2),Li===null?Li=[i]:Li.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=ey(i,l,t);wf(i,g);break e;case 1:a=l;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(en===null||!en.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=ty(i,a,t);wf(i,_);break e}}i=i.return}while(i!==null)}xy(r)}catch(S){t=S,Se===r&&r!==null&&(Se=r=r.return);continue}break}while(!0)}function vy(){var e=qa.current;return qa.current=Va,e===null?Va:e}function Kd(){(je===0||je===3||je===2)&&(je=4),Ne===null||!(zn&268435455)&&!(vl&268435455)||Fr(Ne,$e)}function Ja(e,t){var r=ee;ee|=2;var n=vy();(Ne!==e||$e!==t)&&(ur=null,Ln(e,t));do try{pb();break}catch(s){yy(e,s)}while(!0);if(Pd(),ee=r,qa.current=n,Se!==null)throw Error(R(261));return Ne=null,$e=0,je}function pb(){for(;Se!==null;)wy(Se)}function mb(){for(;Se!==null&&!B0();)wy(Se)}function wy(e){var t=_y(e.alternate,e,it);e.memoizedProps=e.pendingProps,t===null?xy(e):Se=t,Ud.current=null}function xy(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=lb(r,t),r!==null){r.flags&=32767,Se=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,Se=null;return}}else if(r=ab(r,t,it),r!==null){Se=r;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);je===0&&(je=5)}function xn(e,t,r){var n=ne,s=bt.transition;try{bt.transition=null,ne=1,gb(e,t,r,n)}finally{bt.transition=s,ne=n}return null}function gb(e,t,r,n){do Ns();while(Kr!==null);if(ee&6)throw Error(R(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(Q0(e,i),e===Ne&&(Se=Ne=null,$e=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Qo||(Qo=!0,Sy(Ra,function(){return Ns(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=bt.transition,bt.transition=null;var o=ne;ne=1;var a=ee;ee|=4,Ud.current=null,ub(e,r),py(r,e),Lx(su),Aa=!!nu,su=nu=null,e.current=r,db(r),z0(),ee=a,ne=o,bt.transition=i}else e.current=r;if(Qo&&(Qo=!1,Kr=e,Ga=s),i=e.pendingLanes,i===0&&(en=null),W0(r.stateNode),rt(e,xe()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(Ka)throw Ka=!1,e=ku,ku=null,e;return Ga&1&&e.tag!==0&&Ns(),i=e.pendingLanes,i&1?e===Eu?Mi++:(Mi=0,Eu=e):Mi=0,fn(),null}function Ns(){if(Kr!==null){var e=eg(Ga),t=bt.transition,r=ne;try{if(bt.transition=null,ne=16>e?16:e,Kr===null)var n=!1;else{if(e=Kr,Kr=null,Ga=0,ee&6)throw Error(R(331));var s=ee;for(ee|=4,L=e.current;L!==null;){var i=L,o=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(L=c;L!==null;){var d=L;switch(d.tag){case 0:case 11:case 15:$i(8,d,i)}var f=d.child;if(f!==null)f.return=d,L=f;else for(;L!==null;){d=L;var p=d.sibling,h=d.return;if(dy(d),d===c){L=null;break}if(p!==null){p.return=h,L=p;break}L=h}}}var w=i.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}L=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,L=o;else e:for(;L!==null;){if(i=L,i.flags&2048)switch(i.tag){case 0:case 11:case 15:$i(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,L=g;break e}L=i.return}}var m=e.current;for(L=m;L!==null;){o=L;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,L=v;else e:for(o=m;L!==null;){if(a=L,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:yl(9,a)}}catch(S){we(a,a.return,S)}if(a===o){L=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,L=_;break e}L=a.return}}if(ee=s,fn(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(cl,e)}catch{}n=!0}return n}finally{ne=r,bt.transition=t}}return!1}function Bf(e,t,r){t=Qs(r,t),t=ey(e,t,1),e=Zr(e,t,1),t=Ke(),e!==null&&(bo(e,1,t),rt(e,t))}function we(e,t,r){if(e.tag===3)Bf(e,e,r);else for(;t!==null;){if(t.tag===3){Bf(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(en===null||!en.has(n))){e=Qs(r,e),e=ty(t,e,1),t=Zr(t,e,1),e=Ke(),t!==null&&(bo(t,1,e),rt(t,e));break}}t=t.return}}function yb(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&r,Ne===e&&($e&r)===r&&(je===4||je===3&&($e&130023424)===$e&&500>xe()-Wd?Ln(e,0):Hd|=r),rt(e,t)}function by(e,t){t===0&&(e.mode&1?(t=Bo,Bo<<=1,!(Bo&130023424)&&(Bo=4194304)):t=1);var r=Ke();e=wr(e,t),e!==null&&(bo(e,t,r),rt(e,r))}function vb(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),by(e,r)}function wb(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(R(314))}n!==null&&n.delete(t),by(e,r)}var _y;_y=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)Ze=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ze=!1,ob(e,t,r);Ze=!!(e.flags&131072)}else Ze=!1,he&&t.flags&1048576&&Tg(t,Fa,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;va(e,t),e=t.pendingProps;var s=qs(t,He.current);Rs(t,r),s=Md(null,t,n,e,s,r);var i=Dd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(n)?(i=!0,Ma(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ad(t),s.updater=gl,t.stateNode=s,s._reactInternals=t,fu(t,n,e,r),t=gu(null,t,n,!0,i,r)):(t.tag=0,he&&i&&Ed(t),Ve(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(va(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=bb(n),e=Rt(n,e),s){case 0:t=mu(null,t,n,e,r);break e;case 1:t=Rf(null,t,n,e,r);break e;case 11:t=jf(null,t,n,e,r);break e;case 14:t=Pf(null,t,n,Rt(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),mu(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),Rf(e,t,n,s,r);case 3:e:{if(iy(t),e===null)throw Error(R(387));n=t.pendingProps,i=t.memoizedState,s=i.element,Ag(e,t),Ua(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Qs(Error(R(423)),t),t=Nf(e,t,n,r,s);break e}else if(n!==s){s=Qs(Error(R(424)),t),t=Nf(e,t,n,r,s);break e}else for(ct=Xr(t.stateNode.containerInfo.firstChild),ut=t,he=!0,Mt=null,r=Rg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ks(),n===s){t=xr(e,t,r);break e}Ve(e,t,n,r)}t=t.child}return t;case 5:return Og(t),e===null&&uu(t),n=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,iu(n,s)?o=null:i!==null&&iu(n,i)&&(t.flags|=32),sy(e,t),Ve(e,t,o,r),t.child;case 6:return e===null&&uu(t),null;case 13:return oy(e,t,r);case 4:return Od(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gs(t,null,n,r):Ve(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),jf(e,t,n,s,r);case 7:return Ve(e,t,t.pendingProps,r),t.child;case 8:return Ve(e,t,t.pendingProps.children,r),t.child;case 12:return Ve(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,oe(Ba,n._currentValue),n._currentValue=o,i!==null)if(Ut(i.value,o)){if(i.children===s.children&&!et.current){t=xr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=gr(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),du(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),du(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ve(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,Rs(t,r),s=_t(s),n=n(s),t.flags|=1,Ve(e,t,n,r),t.child;case 14:return n=t.type,s=Rt(n,t.pendingProps),s=Rt(n.type,s),Pf(e,t,n,s,r);case 15:return ry(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),va(e,t),t.tag=1,tt(n)?(e=!0,Ma(t)):e=!1,Rs(t,r),Zg(t,n,s),fu(t,n,s,r),gu(null,t,n,!0,e,r);case 19:return ay(e,t,r);case 22:return ny(e,t,r)}throw Error(R(156,t.tag))};function Sy(e,t){return Qm(e,t)}function xb(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 9,879 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,r,n){return new xb(e,t,r,n)}function Gd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bb(e){if(typeof e=="function")return Gd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fd)return 11;if(e===pd)return 14}return 2}function rn(e,t){var r=e.alternate;return r===null?(r=xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ba(e,t,r,n,s,i){var o=2;if(n=e,typeof e=="function")Gd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ps:return Mn(r.children,s,i,t);case hd:o=8,s|=8;break;case Mc:return e=xt(12,r,t,s|2),e.elementType=Mc,e.lanes=i,e;case Dc:return e=xt(13,r,t,s),e.elementType=Dc,e.lanes=i,e;case Fc:return e=xt(19,r,t,s),e.elementType=Fc,e.lanes=i,e;case Om:return wl(r,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nm:o=10;break e;case Am:o=9;break e;case fd:o=11;break e;case pd:o=14;break e;case $r:o=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=xt(o,r,t,s),t.elementType=e,t.type=n,t.lanes=i,t}function Mn(e,t,r,n){return e=xt(7,e,n,t),e.lanes=r,e}function wl(e,t,r,n){return e=xt(22,e,n,t),e.elementType=Om,e.lanes=r,e.stateNode={isHidden:!1},e}function fc(e,t,r){return e=xt(6,e,null,t),e.lanes=r,e}function pc(e,t,r){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _b(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Jd(e,t,r,n,s,i,o,a,l){return e=new _b(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=xt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ad(i),e}function Sb(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function ky(e){if(!e)return on;e=e._reactInternals;e:{if(Vn(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(tt(r))return kg(e,r,t)}return t}function Ey(e,t,r,n,s,i,o,a,l){return e=Jd(r,n,!0,e,s,i,o,a,l),e.context=ky(null),r=e.current,n=Ke(),s=tn(r),i=gr(n,s),i.callback=t??null,Zr(r,i,s),e.current.lanes=s,bo(e,s,n),rt(e,n),e}function xl(e,t,r,n){var s=t.current,i=Ke(),o=tn(s);return r=ky(r),t.context===null?t.context=r:t.pendingContext=r,t=gr(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Zr(s,t,o),e!==null&&(zt(e,s,o,i),ma(e,s,o)),o}function Qa(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 zf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Qd(e,t){zf(e,t),(e=e.alternate)&&zf(e,t)}function kb(){return null}var Ty=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yd(e){this._internalRoot=e}bl.prototype.render=Yd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));xl(e,t,null,null)};bl.prototype.unmount=Yd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Un(function(){xl(null,e,null,null)}),t[vr]=null}};function bl(e){this._internalRoot=e}bl.prototype.unstable_scheduleHydration=function(e){if(e){var t=ng();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Dr.length&&t!==0&&t<Dr[r].priority;r++);Dr.splice(r,0,e),r===0&&ig(e)}};function Xd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Uf(){}function Eb(e,t,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var c=Qa(o);i.call(c)}}var o=Ey(t,n,e,0,null,!1,!1,"",Uf);return e._reactRootContainer=o,e[vr]=o.current,Ji(e.nodeType===8?e.parentNode:e),Un(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var c=Qa(l);a.call(c)}}var l=Jd(e,0,!1,null,null,!1,!1,"",Uf);return e._reactRootContainer=l,e[vr]=l.current,Ji(e.nodeType===8?e.parentNode:e),Un(function(){xl(t,l,r,n)}),l}function Sl(e,t,r,n,s){var i=r._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Qa(o);a.call(l)}}xl(t,o,e,s)}else o=Eb(r,t,e,s,n);return Qa(o)}tg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ei(t.pendingLanes);r!==0&&(yd(t,r|1),rt(t,xe()),!(ee&6)&&(Ys=xe()+500,fn()))}break;case 13:Un(function(){var n=wr(e,1);if(n!==null){var s=Ke();zt(n,e,1,s)}}),Qd(e,1)}};vd=function(e){if(e.tag===13){var t=wr(e,134217728);if(t!==null){var r=Ke();zt(t,e,134217728,r)}Qd(e,134217728)}};rg=function(e){if(e.tag===13){var t=tn(e),r=wr(e,t);if(r!==null){var n=Ke();zt(r,e,t,n)}Qd(e,t)}};ng=function(){return ne};sg=function(e,t){var r=ne;try{return ne=e,t()}finally{ne=r}};Jc=function(e,t,r){switch(t){case"input":if(Uc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=fl(n);if(!s)throw Error(R(90));$m(n),Uc(n,s)}}}break;case"textarea":Mm(e,r);break;case"select":t=r.value,t!=null&&Ts(e,!!r.multiple,t,!1)}};Wm=Vd;Vm=Un;var Tb={usingClientEntryPoint:!1,Events:[So,vs,fl,Um,Hm,Vd]},yi={findFiberByHostInstance:En,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cb={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Gm(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||kb,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 Yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yo.isDisabled&&Yo.supportsFiber)try{cl=Yo.inject(Cb),er=Yo}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tb;ft.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xd(t))throw Error(R(200));return Sb(e,t,null,r)};ft.createRoot=function(e,t){if(!Xd(e))throw Error(R(299));var r=!1,n="",s=Ty;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Jd(e,1,!1,null,null,r,!1,n,s),e[vr]=t.current,Ji(e.nodeType===8?e.parentNode:e),new Yd(t)};ft.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Gm(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return Un(e)};ft.hydrate=function(e,t,r){if(!_l(t))throw Error(R(200));return Sl(null,e,t,!0,r)};ft.hydrateRoot=function(e,t,r){if(!Xd(e))throw Error(R(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",o=Ty;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Ey(t,null,e,1,r??null,s,!1,i,o),e[vr]=t.current,Ji(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new bl(t)};ft.render=function(e,t,r){if(!_l(t))throw Error(R(200));return Sl(null,e,t,!1,r)};ft.unmountComponentAtNode=function(e){if(!_l(e))throw Error(R(40));return e._reactRootContainer?(Un(function(){Sl(null,null,e,!1,function(){e._reactRootContainer=null,e[vr]=null})}),!0):!1};ft.unstable_batchedUpdates=Vd;ft.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!_l(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Sl(e,t,r,!1,n)};ft.version="18.3.1-next-f1338f8080-20240426";function Cy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cy)}catch(e){console.error(e)}}
40Cy(),Cm.exports=ft;var Eo=Cm.exports;const jy=wo(Eo);var Py,Hf=Eo;Py=Hf.createRoot,Hf.hydrateRoot;const jb=1,Pb=1e6;let mc=0;function Rb(){return mc=(mc+1)%Number.MAX_SAFE_INTEGER,mc.toString()}const gc=new Map,Wf=e=>{if(gc.has(e))return;const t=setTimeout(()=>{gc.delete(e),Di({type:"REMOVE_TOAST",toastId:e})},Pb);gc.set(e,t)},Nb=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,jb)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Wf(r):e.toasts.forEach(n=>{Wf(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},_a=[];let Sa={toasts:[]};function Di(e){Sa=Nb(Sa,e),_a.forEach(t=>{t(Sa)})}function Ab({...e}){const t=Rb(),r=s=>Di({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>Di({type:"DISMISS_TOAST",toastId:t});return Di({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function Ry(){const[e,t]=b.useState(Sa);return b.useEffect(()=>(_a.push(t),()=>{const r=_a.indexOf(t);r>-1&&_a.splice(r,1)}),[e]),{...e,toast:Ab,dismiss:r=>Di({type:"DISMISS_TOAST",toastId:r})}}function Ce(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Vf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ny(...e){return t=>{let r=!1;const n=e.map(s=>{const i=Vf(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():Vf(e[s],null)}}}}function Ht(...e){return b.useCallback(Ny(...e),e)}function kl(e,t=[]){let r=[];function n(i,o){const a=b.createContext(o),l=r.length;r=[...r,o];const c=f=>{var g;const{scope:p,children:h,...w}=f,y=((g=p==null?void 0:p[e])==null?void 0:g[l])||a,x=b.useMemo(()=>w,Object.values(w));return u.jsx(y.Provider,{value:x,children:h})};c.displayName=i+"Provider";function d(f,p){var y;const h=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,w=b.useContext(h);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,d]}const s=()=>{const i=r.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,Ob(s,...t)]}function Ob(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Ya(e){const t=$b(e),r=b.forwardRef((n,s)=>{const{children:i,...o}=n,a=b.Children.toArray(i),l=a.find(Mb);if(l){const c=l.props.children,d=a.map(f=>f===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...o,ref:s,children:b.isValidElement(c)?b.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:s,children:i})});return r.displayName=`${e}.Slot`,r}var Ib=Ya("Slot");function $b(e){const t=b.forwardRef((r,n)=>{const{children:s,...i}=r;if(b.isValidElement(s)){const o=Fb(s),a=Db(i,s.props);return s.type!==b.Fragment&&(a.ref=n?Ny(n,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ay=Symbol("radix.slottable");
vendor: 9,729 bytes, line 40
40function Lb(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ay,t}function Mb(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ay}function Db(e,t){const r={...t};for(const n in t){const s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function Fb(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Bb(e){const t=e+"CollectionProvider",[r,n]=kl(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:x,children:g}=y,m=N.useRef(null),v=N.useRef(new Map).current;return u.jsx(s,{scope:x,itemMap:v,collectionRef:m,children:g})};o.displayName=t;const a=e+"CollectionSlot",l=Ya(a),c=N.forwardRef((y,x)=>{const{scope:g,children:m}=y,v=i(a,g),_=Ht(x,v.collectionRef);return u.jsx(l,{ref:_,children:m})});c.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=Ya(d),h=N.forwardRef((y,x)=>{const{scope:g,children:m,...v}=y,_=N.useRef(null),S=Ht(x,_),k=i(d,g);return N.useEffect(()=>(k.itemMap.set(_,{ref:_,...v}),()=>void k.itemMap.delete(_))),u.jsx(p,{[f]:"",ref:S,children:m})});h.displayName=d;function w(y){const x=i(e+"CollectionConsumer",y);return N.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((k,E)=>v.indexOf(k.ref.current)-v.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},w,n]}var zb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=zb.reduce((e,t)=>{const r=Ya(`Primitive.${t}`),n=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Oy(e,t){e&&Eo.flushSync(()=>e.dispatchEvent(t))}function an(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Ub(e,t=globalThis==null?void 0:globalThis.document){const r=an(e);b.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Hb="DismissableLayer",ju="dismissableLayer.update",Wb="dismissableLayer.pointerDownOutside",Vb="dismissableLayer.focusOutside",qf,Iy=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zd=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=b.useContext(Iy),[d,f]=b.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=b.useState({}),w=Ht(t,E=>f(E)),y=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(x),m=d?y.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,_=m>=g,S=Kb(E=>{const j=E.target,A=[...c.branches].some(O=>O.contains(j));!_||A||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},p),k=Gb(E=>{const j=E.target;[...c.branches].some(O=>O.contains(j))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},p);return Ub(E=>{m===c.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},p),b.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(qf=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Kf(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=qf)}},[d,p,r,c]),b.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Kf())},[d,c]),b.useEffect(()=>{const E=()=>h({});return document.addEventListener(ju,E),()=>document.removeEventListener(ju,E)},[]),u.jsx(Qe.div,{...l,ref:w,style:{pointerEvents:v?_?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,S.onPointerDownCapture)})});Zd.displayName=Hb;var qb="DismissableLayerBranch",$y=b.forwardRef((e,t)=>{const r=b.useContext(Iy),n=b.useRef(null),s=Ht(t,n);return b.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),u.jsx(Qe.div,{...e,ref:s})});$y.displayName=qb;function Kb(e,t=globalThis==null?void 0:globalThis.document){const r=an(e),n=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){Ly(Wb,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Gb(e,t=globalThis==null?void 0:globalThis.document){const r=an(e),n=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!n.current&&Ly(Vb,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Kf(){const e=new CustomEvent(ju);document.dispatchEvent(e)}function Ly(e,t,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Oy(s,i):s.dispatchEvent(i)}var Jb=Zd,Qb=$y,ln=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Yb="Portal",My=b.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[s,i]=b.useState(!1);ln(()=>i(!0),[]);const o=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?jy.createPortal(u.jsx(Qe.div,{...n,ref:t}),o):null});My.displayName=Yb;function Xb(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}var eh=e=>{const{present:t,children:r}=e,n=Zb(t),s=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),i=Ht(n.ref,e1(s));return typeof r=="function"||n.isPresent?b.cloneElement(s,{ref:i}):null};eh.displayName="Presence";function Zb(e){const[t,r]=b.useState(),n=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=Xb(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=Xo(n.current);i.current=a==="mounted"?c:"none"},[a]),ln(()=>{const c=n.current,d=s.current;if(d!==e){const p=i.current,h=Xo(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),ln(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=h=>{const y=Xo(n.current).includes(h.animationName);if(h.target===t&&y&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=h=>{h.target===t&&(i.current=Xo(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Xo(e){return(e==null?void 0:e.animationName)||"none"}function e1(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var t1=Em[" useInsertionEffect ".trim().toString()]||ln;function r1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,i,o]=n1({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:s;{const d=b.useRef(e!==void 0);b.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const c=b.useCallback(d=>{var f;if(a){const p=s1(d)?d(e):d;p!==e&&((f=o.current)==null||f.call(o,p))}else i(d)},[a,e,i,o]);return[l,c]}function n1({defaultProp:e,onChange:t}){const[r,n]=b.useState(e),s=b.useRef(r),i=b.useRef(t);return t1(()=>{i.current=t},[t]),b.useEffect(()=>{var o;s.current!==r&&((o=i.current)==null||o.call(i,r),s.current=r)},[r,s]),[r,n,i]}function s1(e){return typeof e=="function"}var i1=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"}),o1="VisuallyHidden",El=b.forwardRef((e,t)=>
40u.jsx(Qe.span,{...e,ref:t,style:{...i1,...e.style}}));El.displayName=o1;var a1=El,th="ToastProvider",[rh,l1,c1]=Bb("Toast"),[Dy,b2]=kl("Toast",[c1]),[u1,Tl]=Dy(th),Fy=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=b.useState(null),[c,d]=b.useState(0),f=b.useRef(!1),p=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${th}\`. Expected non-empty \`string\`.`),u.jsx(rh.Provider,{scope:t,children:u.jsx(u1,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>d(h=>h+1),[]),onToastRemove:b.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:o})})};Fy.displayName=th;var By="ToastViewport",d1=["F8"],Pu="toast.viewportPause",Ru="toast.viewportResume",zy=b.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=d1,label:s="Notifications ({hotkey})",...i}=e,o=Tl(By,r),a=l1(r),l=b.useRef(null),c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=Ht(t,f,o.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;b.useEffect(()=>{const x=g=>{var v;n.length!==0&&n.every(_=>g[_]||g.code===_)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),b.useEffect(()=>{const x=l.current,g=f.current;if(w&&x&&g){const m=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(Pu);g.dispatchEvent(k),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(Ru);g.dispatchEvent(k),o.isClosePausedRef.current=!1}},_=k=>{!x.contains(k.relatedTarget)&&v()},S=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",m),x.addEventListener("focusout",_),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[w,o.isClosePausedRef]);const y=b.useCallback(({tabbingDirection:x})=>{const m=a().map(v=>{const _=v.ref.current,S=[_,...k1(_)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?m.reverse():m).flat()},[a]);return b.useEffect(()=>{const x=f.current;if(x){const g=m=>{var S,k,E;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const j=document.activeElement,A=m.shiftKey;if(m.target===x&&A){(S=c.current)==null||S.focus();return}const M=y({tabbingDirection:A?"backwards":"forwards"}),J=M.findIndex(I=>I===j);yc(M.slice(J+1))?m.preventDefault():A?(k=c.current)==null||k.focus():(E=d.current)==null||E.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[a,y]),u.jsxs(Qb,{ref:l,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&u.jsx(Nu,{ref:c,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});yc(x)}}),u.jsx(rh.Slot,{scope:r,children:u.jsx(Qe.ol,{tabIndex:-1,...i,ref:p})}),w&&u.jsx(Nu,{ref:d,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});yc(x)}})]})});zy.displayName=By;var Uy="ToastFocusProxy",Nu=b.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,i=Tl(Uy,r);return u.jsx(El,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&n()}})});Nu.displayName=Uy;var To="Toast",h1="toast.swipeStart",f1="toast.swipeMove",p1="toast.swipeCancel",m1="toast.swipeEnd",Hy=b.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=r1({prop:n,defaultProp:s??!0,onChange:i,caller:To});return u.jsx(eh,{present:r||a,children:u.jsx(v1,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:an(e.onPause),onResume:an(e.onResume),onSwipeStart:Ce(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Ce(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ce(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Hy.displayName=To;var[g1,y1]=Dy(To,{onClose(){}}),v1=b.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:h,...w}=e,y=Tl(To,r),[x,g]=b.useState(null),m=Ht(t,I=>g(I)),v=b.useRef(null),_=b.useRef(null),S=s||y.duration,k=b.useRef(0),E=b.useRef(S),j=b.useRef(0),{onToastAdd:A,onToastRemove:O}=y,U=an(()=>{var X;(x==null?void 0:x.contains(document.activeElement))&&((X=y.viewport)==null||X.focus()),o()}),M=b.useCallback(I=>{!I||I===1/0||(window.clearTimeout(j.current),k.current=new Date().getTime(),j.current=window.setTimeout(U,I))},[U]);b.useEffect(()=>{const I=y.viewport;if(I){const X=()=>{M(E.current),c==null||c()},H=()=>{const q=new Date().getTime()-k.current;E.current=E.current-q,window.clearTimeout(j.current),l==null||l()};return I.addEventListener(Pu,H),I.addEventListener(Ru,X),()=>{I.removeEventListener(Pu,H),I.removeEventListener(Ru,X)}}},[y.viewport,S,l,c,M]),b.useEffect(()=>{i&&!y.isClosePausedRef.current&&M(S)},[i,S,y.isClosePausedRef,M]),b.useEffect(()=>(A(),()=>O()),[A,O]);const J=b.useMemo(()=>x?Qy(x):null,[x]);return y.viewport?u.jsxs(u.Fragment,{children:[J&&u.jsx(w1,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:J}),u.jsx(g1,{scope:r,onClose:U,children:Eo.createPortal(u.jsx(rh.ItemSlot,{scope:r,children:u.jsx(Jb,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||U(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(Qe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...w,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ce(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Ce(e.onPointerDown,I=>{I.button===0&&(v.current={x:I.clientX,y:I.clientY})}),onPointerMove:Ce(e.onPointerMove,I=>{if(!v.current)return;const X=I.clientX-v.current.x,H=I.clientY-v.current.y,q=!!_.current,C=["left","right"].includes(y.swipeDirection),P=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,$=C?P(0,X):0,K=C?0:P(0,H),F=I.pointerType==="touch"?10:2,Q={x:$,y:K},Z={originalEvent:I,delta:Q};q?(_.current=Q,Zo(f1,f,Z,{discrete:!1})):Gf(Q,y.swipeDirection,F)?(_.current=Q,Zo(h1,d,Z,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(X)>F||Math.abs(H)>F)&&(v.current=null)}),onPointerUp:Ce(e.onPointerUp,I=>{const X=_.current,H=I.target;if(H.hasPointerCapture(I.pointerId)&&H.releasePointerCapture(I.pointerId),_.current=null,v.current=null,X){const q=I.currentTarget,C={originalEvent:I,delta:X};Gf(X,y.swipeDirection,y.swipeThreshold)?Zo(m1,h,C,{discrete:!0}):Zo(p1,p,C,{discrete:!0}),q.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),w1=e=>{const{__scopeToast:t,children:r,...n}=e,s=Tl(To,t),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return _1(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(My,{asChild:!0,children:u.jsx(El,{...n,children:i&&u.jsxs(u.Fragment,{children:[s.label," ",r]})})})},x1="ToastTitle",Wy=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(Qe.div,{...n,ref:t})});Wy.displayName=x1;var b1="ToastDescription",Vy=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(Qe.div,{...n,ref:t})});Vy.displayName=b1;var qy="ToastAction",Ky=b.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(Jy,{altText:r,asChild:!0,children:u.jsx(nh,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${qy}\`. Expected non-empty \`string\`.`),null)});Ky.displayName=qy;var Gy="ToastClose",nh=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=y1(Gy,r);return u.jsx(Jy,{asChild:!0,children:u.jsx(Qe.button,{type:"button",...n,ref:t,onClick:Ce(e.onClick,s.onClose)})})});nh.displayName=Gy;var Jy=b.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return u.jsx(Qe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function Qy(e){const t=[];
vendor: 3,823 bytes, lines 40-60
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),S1(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Qy(n))}}),t}function Zo(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Oy(s,i):s.dispatchEvent(i)}var Gf=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),i=n>s;return t==="left"||t==="right"?i&&n>r:!i&&s>r};function _1(e=()=>{}){const t=an(e);ln(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function S1(e){return e.nodeType===e.ELEMENT_NODE}function k1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function yc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var E1=Fy,Yy=zy,Xy=Hy,Zy=Wy,ev=Vy,tv=Ky,rv=nh;function nv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=nv(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sv(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=nv(e))&&(n&&(n+=" "),n+=t);return n}const Jf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qf=sv,sh=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Qf(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const d=r==null?void 0:r[c],f=i==null?void 0:i[c];if(d===null)return null;const p=Jf(d)||Jf(f);return s[c][p]}),a=r&&Object.entries(r).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(w=>{let[y,x]=w;return Array.isArray(x)?x.includes({...i,...a}[y]):{...i,...a}[y]===x})?[...c,f,p]:c},[]);return Qf(e,o,l,r==null?void 0:r.class,r==null?void 0:r.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const T1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),iv=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var C1={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 j1=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...C1,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:iv("lucide",s),...a},[...o.map(([c,d])=>b.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
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 ue=(e,t)=>
60{const r=b.forwardRef(({className:n,...s},i)=>b.createElement(j1,{ref:i,iconNode:t,className:iv(`lucide-${T1(e)}`,n),...s}));return r.displayName=`${e}`,r};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const nr=ue("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 P1=ue("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
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 ov=ue("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
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 ea=ue("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
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 ih=ue("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
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 oh=ue("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 R1=ue("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
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 av=ue("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Au=ue("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const ta=ue("Hotel",[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const N1=ue("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const A1=ue("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const lv=ue("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const cv=ue("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const O1=ue("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const uv=ue("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const I1=ue("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const $1=ue("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const dv=ue("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const L1=ue("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const Co=ue("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"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const M1=ue("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"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const hv=ue("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const D1=ue("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}
vendor: 12,528 bytes, lines 180-185
180],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const fv=ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ah="-",F1=e=>{const t=z1(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(ah);return a[0]===""&&a.length!==1&&a.shift(),pv(a,t)||B1(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},pv=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?pv(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(ah);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Yf=/^\[(.+)\]$/,B1=e=>{if(Yf.test(e)){const t=Yf.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},z1=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return H1(Object.entries(e.classGroups),r).forEach(([i,o])=>{Ou(o,n,i,t)}),n},Ou=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Xf(t,s);i.classGroupId=r;return}if(typeof s=="function"){if(U1(s)){Ou(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{Ou(o,Xf(t,i),r,n)})})},Xf=(e,t)=>{let r=e;return t.split(ah).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},U1=e=>e.isThemeGetter,H1=(e,t)=>t?e.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[r,s]}):e,W1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},mv="!",V1=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,d=0,f;for(let x=0;x<a.length;x++){let g=a[x];if(c===0){if(g===s&&(n||a.slice(x,x+i)===t)){l.push(a.slice(d,x)),d=x+i;continue}if(g==="/"){f=x;continue}}g==="["?c++:g==="]"&&c--}const p=l.length===0?a:a.substring(d),h=p.startsWith(mv),w=h?p.substring(1):p,y=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:y}};return r?a=>r({className:a,parseClassName:o}):o},q1=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},K1=e=>({cache:W1(e.cacheSize),parseClassName:V1(e),...F1(e)}),G1=/\s+/,J1=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(G1);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=r(c);let w=!!h,y=n(w?p.substring(0,h):p);if(!y){if(!w){a=c+(a.length>0?" "+a:a);continue}if(y=n(p),!y){a=c+(a.length>0?" "+a:a);continue}w=!1}const x=q1(d).join(":"),g=f?x+mv:x,m=g+y;if(i.includes(m))continue;i.push(m);const v=s(y,w);for(let _=0;_<v.length;++_){const S=v[_];i.push(g+S)}a=c+(a.length>0?" "+a:a)}return a};function Q1(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=gv(t))&&(n&&(n+=" "),n+=r);return n}const gv=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=gv(e[n]))&&(r&&(r+=" "),r+=t);return r};function Y1(e,...t){let r,n,s,i=o;function o(l){const c=t.reduce((d,f)=>f(d),e());return r=K1(c),n=r.cache.get,s=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=J1(l,r);return s(l,d),d}return function(){return i(Q1.apply(null,arguments))}}const ae=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},yv=/^\[(?:([a-z-]+):)?(.+)\]$/i,X1=/^\d+\/\d+$/,Z1=new Set(["px","full","screen"]),e_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t_=/\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$/,r_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,n_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,s_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ar=e=>As(e)||Z1.has(e)||X1.test(e),Ar=e=>ni(e,"length",h_),As=e=>!!e&&!Number.isNaN(Number(e)),vc=e=>ni(e,"number",As),vi=e=>!!e&&Number.isInteger(Number(e)),i_=e=>e.endsWith("%")&&As(e.slice(0,-1)),G=e=>yv.test(e),Or=e=>e_.test(e),o_=new Set(["length","size","percentage"]),a_=e=>ni(e,o_,vv),l_=e=>ni(e,"position",vv),c_=new Set(["image","url"]),u_=e=>ni(e,c_,p_),d_=e=>ni(e,"",f_),wi=()=>!0,ni=(e,t,r)=>{const n=yv.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},h_=e=>t_.test(e)&&!r_.test(e),vv=()=>!1,f_=e=>n_.test(e),p_=e=>s_.test(e),m_=()=>{const e=ae("colors"),t=ae("spacing"),r=ae("blur"),n=ae("brightness"),s=ae("borderColor"),i=ae("borderRadius"),o=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),c=ae("grayscale"),d=ae("hueRotate"),f=ae("invert"),p=ae("gap"),h=ae("gradientColorStops"),w=ae("gradientColorStopPositions"),y=ae("inset"),x=ae("margin"),g=ae("opacity"),m=ae("padding"),v=ae("saturate"),_=ae("scale"),S=ae("sepia"),k=ae("skew"),E=ae("space"),j=ae("translate"),A=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",G,t],M=()=>[G,t],J=()=>["",ar,Ar],I=()=>["auto",As,G],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],q=()=>["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"],P=()=>["","0",G],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[As,G];return{cacheSize:500,separator:":",theme:{colors:[wi],spacing:[ar,Ar],blur:["none","",Or,G],brightness:K(),borderColor:[e],borderRadius:["none","","full",Or,G],borderSpacing:M(),borderWidth:J(),contrast:K(),grayscale:P(),hueRotate:K(),invert:P(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[i_,Ar],inset:U(),margin:U(),opacity:K(),padding:M(),saturate:K(),scale:K(),sepia:P(),skew:K(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[Or]}],"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:[...X(),G]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vi,G]}],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",G]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",vi,G]}],"grid-cols":[{"grid-cols":[wi]}],"col-start-end":[{col:["auto",{span:["full",vi,G]},G]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[wi]}],"row-start-end":[{row:["auto",{span:[vi,G]},G]}],"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",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"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:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[Or]},Or]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Or,Ar]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vc]}],"font-family":[{font:[wi]}],"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",G]}],"line-clamp":[{"line-clamp":["none",As,vc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ar,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ar,Ar]}],"underline-offset":[{"underline-offset":["auto",ar,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],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",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),l_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",a_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},u_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}
vendor: 5,172 bytes, line 185
185],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[ar,G]}],"outline-w":[{outline:[ar,Ar]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[ar,Ar]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Or,d_]}],"shadow-color":[{shadow:[wi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Or,G]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[vi,G]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],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",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,487 bytes, line 185
185],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",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ar,Ar,vc]}],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"]}}},g_=Y1(m_);function qt(...e){return g_(sv(e))}const y_=E1,wv=b.forwardRef(({className:e,...t},r)=>u.jsx(Yy,{ref:r,className:qt("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}));wv.displayName=Yy.displayName;const v_=sh("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"}}),xv=b.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(Xy,{ref:n,className:qt(v_({variant:t}),e),...r}));xv.displayName=Xy.displayName;const w_=b.forwardRef(({className:e,...t},r)=>u.jsx(tv,{ref:r,className:qt("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}));
185w_.displayName=tv.displayName;const bv=b.forwardRef(({className:e,...t},r)=>u.jsx(rv,{ref:r,className:qt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(fv,{className:"h-4 w-4"})}));bv.displayName=rv.displayName;const _v=b.forwardRef(({className:e,...t},r)=>u.jsx(Zy,{ref:r,className:qt("text-sm font-semibold",e),...t}));_v.displayName=Zy.displayName;const Sv=b.forwardRef(({className:e,...t},r)=>u.jsx(ev,{ref:r,className:qt("text-sm opacity-90",e),...t}));Sv.displayName=ev.displayName;function x_(){const{toasts:e}=Ry();return u.jsxs(y_,{children:[e.map(function({id:t,title:r,description:n,action:s,...i}){return u.jsxs(xv,{...i,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(_v,{children:r}),n&&u.jsx(Sv,{children:n})]}),s,u.jsx(bv,{})]},t)}),u.jsx(wv,{})]})}var Zf=["light","dark"],b_="(prefers-color-scheme: dark)",__=b.createContext(void 0),S_={setTheme:e=>{},themes:[]},k_=()=>{var e;return(e=b.useContext(__))!=null?e:S_};b.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=s?Zf.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(w,y=!1,x=!0)=>{let g=o?o[w]:w,m=y?w+"|| ''":`'${g}'`,v="";return s&&x&&!y&&Zf.includes(w)&&(v+=`d.style.colorScheme = '${w}';`),r==="class"?y||g?v+=`c.add(${m})`:v+="null":g&&(v+=`d[s](n,${m})`),v},h=e?`!function(){${d}${p(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${b_}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${c?"":"else{"+p(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${f}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var E_=e=>{switch(e){case"success":return j_;case"info":return R_;case"warning":return P_;case"error":return N_;default:return null}},T_=Array(12).fill(0),C_=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},T_.map((r,n)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),j_=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),P_=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.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"})),R_=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),N_=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),A_=N.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"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),O_=()=>{let[e,t]=N.useState(document.hidden);return N.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Iu=1,I_=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,050 bytes, line 185
185{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Iu++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:r}),{...a,...e,id:s,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
185this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,i,o=n.then(async l=>{if(i=["resolve",l],N.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(L_(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:c,description:d})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:c,description:d})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:c,description:d})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Iu++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ye=new I_,$_=(e,t)=>{let r=(t==null?void 0:t.id)||Iu++;return Ye.addToast({title:e,...t,id:r}),r},L_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",M_=$_,D_=()=>Ye.toasts,F_=()=>Ye.getActiveToasts();Object.assign(M_,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:D_,getToasts:F_});function B_(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}B_(`: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;
185left: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}
185: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%);
185--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%)}
186`);function ra(e){return e.label!==void 0}var z_=3,U_="32px",H_="16px",ep=4e3,W_=356,V_=14,q_=20,K_=200;function jt(...e){return e.filter(Boolean).join(" ")}function G_(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var J_=e=>{var t,r,n,s,i,o,a,l,c,d,f;let{invert:p,toast:h,unstyled:w,interacting:y,setHeights:x,visibleToasts:g,heights:m,index:v,toasts:_,expanded:S,removeToast:k,defaultRichColors:E,closeButton:j,style:A,cancelButtonStyle:O,actionButtonStyle:U,className:M="",descriptionClassName:J="",duration:I,position:X,gap:H,loadingIcon:q,expandByDefault:C,classNames:P,icons:$,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:F}=e,[Q,Z]=N.useState(null),[be,Me]=N.useState(null),[re,Qn]=N.useState(!1),[Er,pn]=N.useState(!1),[Tr,Yn]=N.useState(!1),[Cr,No]=N.useState(!1),[Dl,Ao]=N.useState(!1),[Fl,li]=N.useState(0),[Xn,Ch]=N.useState(0),ci=N.useRef(h.duration||I||ep),jh=N.useRef(null),mn=N.useRef(null),Vw=v===0,qw=v+1<=g,mt=h.type,Zn=h.dism
vendor: 1,631 bytes, line 186
186issible!==!1,Kw=h.className||"",Gw=h.descriptionClassName||"",Oo=N.useMemo(()=>m.findIndex(W=>W.toastId===h.id)||0,[m,h.id]),Jw=N.useMemo(()=>{var W;return(W=h.closeButton)!=null?W:j},[h.closeButton,j]),Ph=N.useMemo(()=>h.duration||I||ep,[h.duration,I]),Bl=N.useRef(0),es=N.useRef(0),Rh=N.useRef(0),ts=N.useRef(null),[Qw,Yw]=X.split("-"),Nh=N.useMemo(()=>m.reduce((W,se,de)=>de>=Oo?W:W+se.height,0),[m,Oo]),Ah=O_(),Xw=h.invert||p,zl=mt==="loading";es.current=N.useMemo(()=>Oo*H+Nh,[Oo,Nh]),N.useEffect(()=>{ci.current=Ph},[Ph]),N.useEffect(()=>{Qn(!0)},[]),N.useEffect(()=>{let W=mn.current;if(W){let se=W.getBoundingClientRect().height;return Ch(se),x(de=>[{toastId:h.id,height:se,position:h.position},...de]),()=>x(de=>de.filter(kt=>kt.toastId!==h.id))}},[x,h.id]),N.useLayoutEffect(()=>{if(!re)return;let W=mn.current,se=W.style.height;W.style.height="auto";let de=W.getBoundingClientRect().height;W.style.height=se,Ch(de),x(kt=>kt.find(Et=>Et.toastId===h.id)?kt.map(Et=>Et.toastId===h.id?{...Et,height:de}:Et):[{toastId:h.id,height:de,position:h.position},...kt])},[re,h.title,h.description,x,h.id]);let jr=N.useCallback(()=>{pn(!0),li(es.current),x(W=>W.filter(se=>se.toastId!==h.id)),setTimeout(()=>{k(h)},K_)},[h,k,x,es]);N.useEffect(()=>{if(h.promise&&mt==="loading"||h.duration===1/0||h.type==="loading")return;let W;return S||y||F&&Ah?(()=>{if(Rh.current<Bl.current){let se=new Date().getTime()-Bl.current;ci.current=ci.current-se}Rh.current=new Date().getTime()})():ci.current!==1/0&&(Bl.current=new Date().getTime(),W=setTimeout(()=>{var se;(se=h.onAutoClose)==null||se.call(h,h),jr()},ci.current)),()=>clearTimeout(W)}
186,[S,y,h,mt,F,Ah,jr]),N.useEffect(()=>{h.delete&&jr()},[jr,h.delete]);function Zw(){var W,se,de;return $!=null&&$.loading?N.createElement("div",{className:jt(P==null?void 0:P.loader,(W=h==null?void 0:h.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":mt==="loading"},$.loading):q?N.createElement("div",{className:jt(P==null?void 0:P.loader,(se=h==null?void 0:h.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":mt==="loading"},q):N.createElement(C_,{className:jt(P==null?void 0:P.loader,(de=h==null?void 0:h.classNames)==null?void 0:de.loader),visible:mt==="loading"})}return N.createElement("li",{tabIndex:0,ref:mn,className:jt(M,Kw,P==null?void 0:P.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[mt],(r=h==null?void 0:h.classNames)==null?void 0:r[mt]),"data-sonner-toast":"","data-rich-colors":(n=h.richColors)!=null?n:E,"data-styled":!(h.jsx||h.unstyled||w),"data-mounted":re,"data-promise":!!h.promise,"data-swiped":Dl,"data-removed":Er,"data-visible":qw,"data-y-position":Qw,"data-x-position":Yw,"data-index":v,"data-front":Vw,"data-swiping":Tr,"data-dismissible":Zn,"data-type":mt,"data-invert":Xw,"data-swipe-out":Cr,"data-swipe-direction":be,"data-expanded":!!(S||C&&re),style:{"--index":v,"--toasts-before":v,"--z-index":_.length-v,"--offset":`${Er?Fl:es.current}px`,"--initial-height":C?"auto":`${Xn}px`,...A,...h.style},onDragEnd:()=>{Yn(!1),Z(null),ts.current=null},onPointerDown:W=>{zl||!Zn||(jh.current=new Date,li(es.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(Yn(!0),ts.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,se,de,kt;if(Cr||!Zn)return;ts.current=null;let Et=Number(((W=mn.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Pr=Number(((se=mn.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),gn=new Date().getTime()-((de=jh.current)==null?void 0:de.getTime()),Tt=Q==="x"?Et:Pr,Rr=Math.abs(Tt)/gn;if(Math.abs(Tt)>=q_||Rr>.11){li(es.current),(kt=h.onDismiss)==null||kt.call(h,h),Me(Q==="x"?Et>0?"right":"left":Pr>0?"down":"up"),jr(),No(!0),Ao(!1);return}Yn(!1),Z(null)},onPointerMove:W=>{var se,de,kt,Et;if(!ts.current||!Zn||((se=window.getSelection())==null?void 0:se.toString().length)>0)return;let Pr=W.clientY-ts.current.y,gn=W.clientX-ts.current.x,Tt=(de=e.swipeDirections)!=null?de:G_(X);!Q&&(Math.abs(gn)>1||Math.abs(Pr)>1)&&Z(Math.abs(gn)>Math.abs(Pr)?"x":"y");let Rr={x:0,y:0};Q==="y"?(Tt.includes("top")||Tt.includes("bottom"))&&(Tt.includes("top")&&Pr<0||Tt.includes("bottom")&&Pr>0)&&(Rr.y=Pr):Q==="x"&&(Tt.includes("left")||Tt.includes("right"))&&(Tt.includes("left")&&gn<0||Tt.includes("right")&&gn>0)&&(Rr.x=gn),(Math.abs(Rr.x)>0||Math.abs(Rr.y)>0)&&Ao(!0),(kt=mn.current)==null||kt.style.setProperty("--swipe-amount-x",`${Rr.x}px`),(Et=mn.current)==null||Et.style.setProperty("--swipe-amount-y",`${Rr.y}px`)}},Jw&&!h.jsx?N.createElement("button",{"aria-label":K,"data-disabled":zl,"data-close-button":!0,onClick:zl||!Zn?()=>{}:()=>{var W;jr(),(W=h.onDismiss)==null||W.call(h,h)},className:jt(P==null?void 0:P.closeButton,(s=h==null?void 0:h.classNames)==null?void 0:s.closeButton)},(i=$==null?void 0:$.close)!=null?i:A_):null,h.jsx||b.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:N.createElement(N.Fragment,null,mt||h.icon||h.promise?N.createElement("div",{"data-icon":"",className:jt(P==null?void 0:P.icon,(o=h==null?void 0:h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Zw():null,h.type!=="loading"?h.icon||($==null?void 0:$[mt])||E_(mt):null):null,N.createElement("div",{"data-content":"",className:jt(P==null?void 0:P.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},N.createElement("div",{"data-title":"",className:jt(P==null?void 0:P.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?N.createElement("div",{"data-description":"",className:jt(J,Gw,P==null?void 0:P.description,(c=h==null?void 0:h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),b.isValidElement(h.cancel)?h.cancel:h.cancel&&ra(h.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||O,onClick:W=>{var se,de;ra(h.cancel)&&Zn&&((de=(se=h.cancel).onClick)==null||de.call(se,W),jr())},className:jt(P==null?void 0:P.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,b.isValidElement(h.action)?h.action:h.action&&ra(h.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||U,onClick:W=>{var se,de;ra(h.action)&&((de=(se=h.action).onClick)==null||de.call(se,W),!W.defaultPrevented&&jr())},className:jt(P==null?void 0:P.actionButton,(f=h==null?void 0:h.classNames)==null?void 0:f.actionButton)},h.action.label):null))};function tp(){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 Q_(e,t){let r={};return[e,t].forEach((n,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?H_:U_;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${o}-${c}`]=a:r[`${o}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(a)}),r}var Y_=b.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:f,duration:p,style:h,visibleToasts:w=z_,toastOptions:y,dir:x=tp(),gap:g=V_,loadingIcon:m,icons:v,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=e,[k,E]=N.useState([]),j=N.useMemo(()=>Array.from(new Set([n].concat(k.filter(F=>F.position).map(F=>F.position)))),[k,n]),[A,O]=N.useState([]),[U,M]=N.useState(!1),[J,I]=N.useState(!1),[X,H]=N.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
186k":"light"),q=N.useRef(null),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=N.useRef(null),$=N.useRef(!1),K=N.useCallback(F=>{E(Q=>{var Z;return(Z=Q.find(be=>be.id===F.id))!=null&&Z.delete||Ye.dismiss(F.id),Q.filter(({id:be})=>be!==F.id)})},[]);return N.useEffect(()=>Ye.subscribe(F=>{if(F.dismiss){E(Q=>Q.map(Z=>Z.id===F.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{jy.flushSync(()=>{E(Q=>{let Z=Q.findIndex(be=>be.id===F.id);return Z!==-1?[...Q.slice(0,Z),{...Q[Z],...F},...Q.slice(Z+1)]:[F,...Q]})})})}),[]),N.useEffect(()=>{if(d!=="system"){H(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:Q})=>{H(Q?"dark":"light")})}catch{F.addListener(({matches:Z})=>{try{H(Z?"dark":"light")}catch(be){console.error(be)}})}},[d]),N.useEffect(()=>{k.length<=1&&M(!1)},[k]),N.useEffect(()=>{let F=Q=>{var Z,be;s.every(Me=>Q[Me]||Q.code===Me)&&(M(!0),(Z=q.current)==null||Z.focus()),Q.code==="Escape"&&(document.activeElement===q.current||(be=q.current)!=null&&be.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[s]),N.useEffect(()=>{if(q.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,$.current=!1)}},[q.current]),N.createElement("section",{ref:t,"aria-label":`${_} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((F,Q)=>{var Z;let[be,Me]=F.split("-");return k.length?N.createElement("ol",{key:F,dir:x==="auto"?tp():x,tabIndex:-1,ref:q,className:a,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":be,"data-lifted":U&&k.length>1&&!i,"data-x-position":Me,style:{"--front-toast-height":`${((Z=A[0])==null?void 0:Z.height)||0}px`,"--width":`${W_}px`,"--gap":`${g}px`,...h,...Q_(l,c)},onBlur:re=>{$.current&&!re.currentTarget.contains(re.relatedTarget)&&($.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||$.current||($.current=!0,P.current=re.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{J||M(!1)},onDragEnd:()=>M(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(re=>!re.position&&Q===0||re.position===F).map((re,Qn)=>{var Er,pn;return N.createElement(J_,{key:re.id,icons:v,index:Qn,toast:re,defaultRichColors:f,duration:(Er=y==null?void 0:y.duration)!=null?Er:p,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:w,closeButton:(pn=y==null?void 0:y.closeButton)!=null?pn:o,interacting:J,position:F,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:K,toasts:k.filter(Tr=>Tr.position==re.position),heights:A.filter(Tr=>Tr.position==re.position),setHeights:O,expandByDefault:i,gap:g,loadingIcon:m,expanded:U,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const X_=({...e})=>{const{theme:t="system"}=k_();return u.jsx(Y_,{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})},Z_=["top","right","bottom","left"],cn=Math.min,ot=Math.max,Xa=Math.round,na=Math.floor,rr=e=>({x:e,y:e}),eS={left:"right",right:"left",bottom:"top",top:"bottom"},tS={start:"end",end:"start"};function $u(e,t,r){return ot(e,cn(t,r))}function br(e,t){return typeof e=="function"?e(t):e}function _r(e){return e.split("-")[0]}function si(e){return e.split("-")[1]}function lh(e){return e==="x"?"y":"x"}function ch(e){return e==="y"?"height":"width"}const rS=new Set(["top","bottom"]);function Zt(e){return rS.has(_r(e))?"y":"x"}function uh(e){return lh(Zt(e))}function nS(e,t,r){r===void 0&&(r=!1);const n=si(e),s=uh(e),i=ch(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Za(o)),[o,Za(o)]}function sS(e){const t=Za(e);return[Lu(e),t,Lu(t)]}function Lu(e){return e.replace(/start|end/g,t=>tS[t])}const rp=["left","right"],np=["right","left"],iS=["top","bottom"],oS=["bottom","top"];function aS(e,t,r){switch(e){case"top":case"bottom":return r?t?np:rp:t?rp:np;case"left":case"right":return t?iS:oS;default:return[]}}function lS(e,t,r,n){const s=si(e);let i=aS(_r(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Lu)))),i}function Za(e){return e.replace(/left|right|bottom|top/g,t=>eS[t])}function cS(e){return{top:0,right:0,bottom:0,left:0,...e}}function kv(e){return typeof e!="number"?cS(e):{top:e,right:e,bottom:e,left:e}}function el(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function sp(e,t,r){let{reference:n,floating:s}=e;const i=Zt(t),o=uh(t),a=ch(o),l=_r(t),c=i==="y",d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-s.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-s.width,y:f};break;default:h={x:n.x,y:n.y}}switch(si(t)){case"start":h[o]-=p*(r&&c?-1:1);break;case"end":h[o]+=p*(r&&c?-1:1);break}return h}const uS=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}
vendor: 9,931 bytes, line 186
186=r,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=sp(c,n,l),p=n,h={},w=0;for(let y=0;y<a.length;y++){const{name:x,fn:g}=a[y],{x:m,y:v,data:_,reset:S}=await g({x:d,y:f,initialPlacement:n,placement:p,strategy:s,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});d=m??d,f=v??f,h={...h,[x]:{...h[x],..._}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:d,y:f}=sp(c,p,l)),y=-1)}return{x:d,y:f,placement:p,strategy:s,middlewareData:h}};async function so(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=br(t,e),w=kv(h),x=a[p?f==="floating"?"reference":"floating":f],g=el(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(x)))==null||r?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),m=f==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=el(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:v,strategy:l}):m);return{top:(g.top-S.top+w.top)/_.y,bottom:(S.bottom-g.bottom+w.bottom)/_.y,left:(g.left-S.left+w.left)/_.x,right:(S.right-g.right+w.right)/_.x}}const dS=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=br(e,t)||{};if(c==null)return{};const f=kv(d),p={x:r,y:n},h=uh(s),w=ch(h),y=await o.getDimensions(c),x=h==="y",g=x?"top":"left",m=x?"bottom":"right",v=x?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[h]-p[h]-i.floating[w],S=p[h]-i.reference[h],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=k?k[v]:0;(!E||!await(o.isElement==null?void 0:o.isElement(k)))&&(E=a.floating[v]||i.floating[w]);const j=_/2-S/2,A=E/2-y[w]/2-1,O=cn(f[g],A),U=cn(f[m],A),M=O,J=E-y[w]-U,I=E/2-y[w]/2+j,X=$u(M,I,J),H=!l.arrow&&si(s)!=null&&I!==X&&i.reference[w]/2-(I<M?O:U)-y[w]/2<0,q=H?I<M?I-M:I-J:0;return{[h]:p[h]+q,data:{[h]:X,centerOffset:I-X-q,...H&&{alignmentOffset:q}},reset:H}}}),hS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,...x}=br(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const g=_r(s),m=Zt(a),v=_r(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(v||!y?[Za(a)]:sS(a)),k=w!=="none";!p&&k&&S.push(...lS(a,y,w,_));const E=[a,...S],j=await so(t,x),A=[];let O=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&A.push(j[g]),f){const I=nS(s,o,_);A.push(j[I[0]],j[I[1]])}if(O=[...O,{placement:s,overflows:A}],!A.every(I=>I<=0)){var U,M;const I=(((U=i.flip)==null?void 0:U.index)||0)+1,X=E[I];if(X&&(!(f==="alignment"?m!==Zt(X):!1)||O.every(C=>C.overflows[0]>0&&Zt(C.placement)===m)))return{data:{index:I,overflows:O},reset:{placement:X}};let H=(M=O.filter(q=>q.overflows[0]<=0).sort((q,C)=>q.overflows[1]-C.overflows[1])[0])==null?void 0:M.placement;if(!H)switch(h){case"bestFit":{var J;const q=(J=O.filter(C=>{if(k){const P=Zt(C.placement);return P===m||P==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(P=>P>0).reduce((P,$)=>P+$,0)]).sort((C,P)=>C[1]-P[1])[0])==null?void 0:J[0];q&&(H=q);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function ip(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function op(e){return Z_.some(t=>e[t]>=0)}const fS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=br(e,t);switch(n){case"referenceHidden":{const i=await so(t,{...s,elementContext:"reference"}),o=ip(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:op(o)}}}case"escaped":{const i=await so(t,{...s,altBoundary:!0}),o=ip(i,r.floating);return{data:{escapedOffsets:o,escaped:op(o)}}}default:return{}}}}},Ev=new Set(["left","top"]);async function pS(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=_r(r),a=si(r),l=Zt(r)==="y",c=Ev.has(o)?-1:1,d=i&&l?-1:1,f=br(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(h=a==="end"?w*-1:w),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}const mS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await pS(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},gS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:g,y:m}=x;return{x:g,y:m}}},...l}=br(e,t),c={x:r,y:n},d=await so(t,l),f=Zt(_r(s)),p=lh(f);let h=c[p],w=c[f];if(i){const x=p==="y"?"top":"left",g=p==="y"?"bottom":"right",m=h+d[x],v=h-d[g];h=$u(m,h,v)}if(o){const x=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=w+d[x],v=w-d[g];w=$u(m,w,v)}const y=a.fn({...t,[p]:h,[f]:w});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[p]:i,[f]:o}}}}}},yS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=br(e,t),d={x:r,y:n},f=Zt(s),p=lh(f);let h=d[p],w=d[f];const y=br(a,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const v=p==="y"?"height":"width",_=i.reference[p]-i.floating[v]+x.mainAxis,S=i.reference[p]+i.reference[v]-x.mainAxis;h<_?h=_:h>S&&(h=S)}if(c){var g,m;const v=p==="y"?"width":"height",_=Ev.has(_r(s)),S=i.reference[f]-i.floating[v]+(_&&((g=o.offset)==null?void 0:g[f])||0)+(_?0:x.crossAxis),k=i.reference[f]+i.reference[v]+(_?0:((m=o.offset)==null?void 0:m[f])||0)-(_?x.crossAxis:0);w<S?w=S:w>k&&(w=k)}return{[p]:h,[f]:w}}}},vS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=br(e,t),d=await so(t,c),f=_r(s),p=si(s),h=Zt(s)==="y",{width:w,height:y}=i.floating;let x,g;f==="top"||f==="bottom"?(x=f,g=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=f,x=p==="end"?"top":"bottom");const m=y-d.top-d.bottom,v=w-d.left-d.right,_=cn(y-d[x],m),S=cn(w-d[g],v),k=!t.middlewareData.shift;let E=_,j=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=v),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=m),k&&!p){const O=ot(d.left,0),U=ot(d.right,0),M=ot(d.top,0),J=ot(d.bottom,0);h?j=w-2*(O!==0||U!==0?O+U:ot(d.left,d.right)):E=y-2*(M!==0||J!==0?M+J:ot(d.top,d.bottom))}await l({...t,availableWidth:j,availableHeight:E});const A=await o.getDimensions(a.floating);return w!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function Cl(){return typeof window<"u"}function ii(e){return Tv(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ir(e){var t;return(t=(Tv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tv(e){return Cl()?e instanceof Node||e instanceof dt(e).Node:!1}function Wt(e){return Cl()?e instanceof Element||e instanceof dt(e).Element:!1}function sr(e){return Cl()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function ap(e){return!Cl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const wS=new Set(["inline","contents"]);function jo(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!wS.has(s)}const xS=new Set(["table","td","th"]);function bS(e){return xS.has(ii(e))}const _S=[":popover-open",":modal"];function jl(e){return _S.some(t=>{try{return e.matches(t)}catch{return!1}})}const SS=["transform","translate","scale","rotate","perspective"],kS=["transform","translate","scale","rotate","perspective","filter"],ES=["paint","layout","strict","content"];function dh(e){const t=hh(),r=Wt(e)?Vt(e):e;return SS.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||kS.some(n=>(r.willChange||"").includes(n))||ES.some(n=>(r.contain||"").includes(n))}function TS(e){let t=un(e);for(;sr(t)&&!Xs(t);){if(dh(t))return t;if(jl(t))return null;t=un(t)}return null}function hh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const CS=new Set(["html","body","#document"]);function Xs(e){return CS.has(ii(e))}function Vt(e){return dt(e).getComputedStyle(e)}function Pl(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function un(e){if(ii(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||ir(e);return ap(t)?t.host:t}function Cv(e){const t=un(e);return Xs(t)?e.ownerDocument?e.ownerDocument.body:e.body:sr(t)&&jo(t)?t:Cv(t)}function io(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Cv(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=dt(s);if(i){const a=Mu(o);
vendor: 4,772 bytes, line 186
186return t.concat(o,o.visualViewport||[],jo(s)?s:[],a&&r?io(a):[])}return t.concat(s,io(s,[],r))}function Mu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jv(e){const t=Vt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=sr(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=Xa(r)!==i||Xa(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function fh(e){return Wt(e)?e:e.contextElement}function Os(e){const t=fh(e);if(!sr(t))return rr(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=jv(t);let o=(i?Xa(r.width):r.width)/n,a=(i?Xa(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const jS=rr(0);function Pv(e){const t=dt(e);return!hh()||!t.visualViewport?jS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PS(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==dt(e)?!1:t}function Hn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=fh(e);let o=rr(1);t&&(n?Wt(n)&&(o=Os(n)):o=Os(e));const a=PS(i,r,n)?Pv(i):rr(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(i){const p=dt(i),h=n&&Wt(n)?dt(n):n;let w=p,y=Mu(w);for(;y&&n&&h!==w;){const x=Os(y),g=y.getBoundingClientRect(),m=Vt(y),v=g.left+(y.clientLeft+parseFloat(m.paddingLeft))*x.x,_=g.top+(y.clientTop+parseFloat(m.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,f*=x.y,l+=v,c+=_,w=dt(y),y=Mu(w)}}return el({width:d,height:f,x:l,y:c})}function ph(e,t){const r=Pl(e).scrollLeft;return t?t.left+r:Hn(ir(e)).left+r}function Rv(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:ph(e,n)),i=n.top+t.scrollTop;return{x:s,y:i}}function RS(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=ir(n),a=t?jl(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=rr(1);const d=rr(0),f=sr(n);if((f||!f&&!i)&&((ii(n)!=="body"||jo(o))&&(l=Pl(n)),sr(n))){const h=Hn(n);c=Os(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const p=o&&!f&&!i?Rv(o,l,!0):rr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}}function NS(e){return Array.from(e.getClientRects())}function AS(e){const t=ir(e),r=Pl(e),n=e.ownerDocument.body,s=ot(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ot(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ph(e);const a=-r.scrollTop;return Vt(n).direction==="rtl"&&(o+=ot(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function OS(e,t){const r=dt(e),n=ir(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=hh();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const IS=new Set(["absolute","fixed"]);function $S(e,t){const r=Hn(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=sr(e)?Os(e):rr(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=n*i.y;return{width:o,height:a,x:l,y:c}}function lp(e,t,r){let n;if(t==="viewport")n=OS(e,r);else if(t==="document")n=AS(ir(e));else if(Wt(t))n=$S(t,r);else{const s=Pv(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return el(n)}function Nv(e,t){const r=un(e);return r===t||!Wt(r)||Xs(r)?!1:Vt(r).position==="fixed"||Nv(r,t)}function LS(e,t){const r=t.get(e);if(r)return r;let n=io(e,[],!1).filter(a=>Wt(a)&&ii(a)!=="body"),s=null;const i=Vt(e).position==="fixed";let o=i?un(e):e;for(;Wt(o)&&!Xs(o);){const a=Vt(o),l=dh(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&IS.has(s.position)||jo(o)&&!l&&Nv(e,o))?n=n.filter(d=>d!==o):s=a,o=un(o)}return t.set(e,n),n}function MS(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const o=[...r==="clippingAncestors"?jl(t)?[]:LS(t,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,d)=>{const f=lp(t,d,s);return c.top=ot(f.top,c.top),c.right=cn(f.right,c.right),c.bottom=cn(f.bottom,c.bottom),c.left=ot(f.left,c.left),c},lp(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function DS(e){const{width:t,height:r}=jv(e);return{width:t,height:r}}function FS(e,t,r){const n=sr(t),s=ir(t),i=r==="fixed",o=Hn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=rr(0);function c(){l.x=ph(s)}if(n||!n&&!i)if((ii(t)!=="body"||jo(s))&&(a=Pl(t)),n){const h=Hn(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else s&&c();i&&!n&&s&&c();const d=s&&!n&&!i?Rv(s,a):rr(0),f=o.left+a.scrollLeft-l.x-d.x,p=o.top+a.scrollTop-l.y-d.y;return{x:f,y:p,width:o.width,height:o.height}}function wc(e){return Vt(e).position==="static"}function cp(e,t){if(!sr(e)||Vt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ir(e)===r&&(r=r.ownerDocument.body),r}function Av(e,t){const r=dt(e);
vendor: 8,988 bytes, line 186
186if(jl(e))return r;if(!sr(e)){let s=un(e);for(;s&&!Xs(s);){if(Wt(s)&&!wc(s))return s;s=un(s)}return r}let n=cp(e,t);for(;n&&bS(n)&&wc(n);)n=cp(n,t);return n&&Xs(n)&&wc(n)&&!dh(n)?r:n||TS(e)||r}const BS=async function(e){const t=this.getOffsetParent||Av,r=this.getDimensions,n=await r(e.floating);return{reference:FS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zS(e){return Vt(e).direction==="rtl"}const US={convertOffsetParentRelativeRectToViewportRelativeRect:RS,getDocumentElement:ir,getClippingRect:MS,getOffsetParent:Av,getElementRects:BS,getClientRects:NS,getDimensions:DS,getScale:Os,isElement:Wt,isRTL:zS};function Ov(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function HS(e,t){let r=null,n;const s=ir(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=c;if(a||t(),!p||!h)return;const w=na(f),y=na(s.clientWidth-(d+p)),x=na(s.clientHeight-(f+h)),g=na(d),v={rootMargin:-w+"px "+-y+"px "+-x+"px "+-g+"px",threshold:ot(0,cn(1,l))||1};let _=!0;function S(k){const E=k[0].intersectionRatio;if(E!==l){if(!_)return o();E?o(!1,E):n=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Ov(c,e.getBoundingClientRect())&&o(),_=!1}try{r=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{r=new IntersectionObserver(S,v)}r.observe(e)}return o(!0),i}function WS(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=fh(e),d=s||i?[...c?io(c):[],...io(t)]:[];d.forEach(g=>{s&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const f=c&&a?HS(c,r):null;let p=-1,h=null;o&&(h=new ResizeObserver(g=>{let[m]=g;m&&m.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let w,y=l?Hn(e):null;l&&x();function x(){const g=Hn(e);y&&!Ov(y,g)&&r(),y=g,w=requestAnimationFrame(x)}return r(),()=>{var g;d.forEach(m=>{s&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const VS=mS,qS=gS,KS=hS,GS=vS,JS=fS,up=dS,QS=yS,YS=(e,t,r)=>{const n=new Map,s={platform:US,...r},i={...s.platform,_c:n};return uS(e,t,{...s,platform:i})};var XS=typeof document<"u",ZS=function(){},ka=XS?b.useLayoutEffect:ZS;function tl(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 r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!tl(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&e.$$typeof)&&!tl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Iv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const r=Iv(e);return Math.round(t*r)/r}function xc(e){const t=b.useRef(e);return ka(()=>{t.current=e}),t}function ek(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=b.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=b.useState(n);tl(p,n)||h(n);const[w,y]=b.useState(null),[x,g]=b.useState(null),m=b.useCallback(C=>{C!==k.current&&(k.current=C,y(C))},[]),v=b.useCallback(C=>{C!==E.current&&(E.current=C,g(C))},[]),_=i||w,S=o||x,k=b.useRef(null),E=b.useRef(null),j=b.useRef(d),A=l!=null,O=xc(l),U=xc(s),M=xc(c),J=b.useCallback(()=>{if(!k.current||!E.current)return;const C={placement:t,strategy:r,middleware:p};U.current&&(C.platform=U.current),YS(k.current,E.current,C).then(P=>{const $={...P,isPositioned:M.current!==!1};I.current&&!tl(j.current,$)&&(j.current=$,Eo.flushSync(()=>{f($)}))})},[p,t,r,U,M]);ka(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[c]);const I=b.useRef(!1);ka(()=>(I.current=!0,()=>{I.current=!1}),[]),ka(()=>{if(_&&(k.current=_),S&&(E.current=S),_&&S){if(O.current)return O.current(_,S,J);J()}},[_,S,J,O,A]);const X=b.useMemo(()=>({reference:k,floating:E,setReference:m,setFloating:v}),[m,v]),H=b.useMemo(()=>({reference:_,floating:S}),[_,S]),q=b.useMemo(()=>{const C={position:r,left:0,top:0};if(!H.floating)return C;const P=dp(H.floating,d.x),$=dp(H.floating,d.y);return a?{...C,transform:"translate("+P+"px, "+$+"px)",...Iv(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:P,top:$}},[r,a,H.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:J,refs:X,elements:H,floatingStyles:q}),[d,J,X,H,q])}const tk=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?up({element:n.current,padding:s}).fn(r):{}:n?up({element:n,padding:s}).fn(r):{}}}},rk=(e,t)=>({...VS(e),options:[e,t]}),nk=(e,t)=>({...qS(e),options:[e,t]}),sk=(e,t)=>({...QS(e),options:[e,t]}),ik=(e,t)=>({...KS(e),options:[e,t]}),ok=(e,t)=>({...GS(e),options:[e,t]}),ak=(e,t)=>({...JS(e),options:[e,t]}),lk=(e,t)=>({...tk(e),options:[e,t]});var ck="Arrow",$v=b.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...i}=e;return u.jsx(Qe.svg,{...i,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});$v.displayName=ck;var uk=$v;function dk(e){const[t,r]=b.useState(void 0);return ln(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Lv="Popper",[Mv,Dv]=kl(Lv),[_2,Fv]=Mv(Lv),Bv="PopperAnchor",zv=b.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,i=Fv(Bv,r),o=b.useRef(null),a=Ht(t,o);return b.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:u.jsx(Qe.div,{...s,ref:a})});zv.displayName=Bv;var mh="PopperContent",[hk,fk]=Mv(mh),Uv=b.forwardRef((e,t)=>{var re,Qn,Er,pn,Tr,Yn;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:w,...y}=e,x=Fv(mh,r),[g,m]=b.useState(null),v=Ht(t,Cr=>m(Cr)),[_,S]=b.useState(null),k=dk(_),E=(k==null?void 0:k.width)??0,j=(k==null?void 0:k.height)??0,A=n+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(c)?c:[c],M=U.length>0,J={padding:O,boundary:U.filter(mk),altBoundary:M},{refs:I,floatingStyles:X,placement:H,isPositioned:q,middlewareData:C}=ek({strategy:"fixed",placement:A,whileElementsMounted:(...Cr)=>WS(...Cr,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[rk({mainAxis:s+j,alignmentAxis:o}),l&&nk({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?sk():void 0,...J}),l&&ik({...J}),ok({...J,apply:({elements:Cr,rects:No,availableWidth:Dl,availableHeight:Ao})=>{const{width:Fl,height:li}=No.reference,Xn=Cr.floating.style;Xn.setProperty("--radix-popper-available-width",`${Dl}px`),Xn.setProperty("--radix-popper-available-height",`${Ao}px`),Xn.setProperty("--radix-popper-anchor-width",`${Fl}px`),Xn.setProperty("--radix-popper-anchor-height",`${li}px`)}}),_&&lk({element:_,padding:a}),gk({arrowWidth:E,arrowHeight:j}),p&&ak({strategy:"referenceHidden",...J})]}),[P,$]=Vv(H),K=an(w);ln(()=>{q&&(K==null||K())},[q,K]);const F=(re=C.arrow)==null?void 0:re.x,Q=(Qn=C.arrow)==null?void 0:Qn.y,Z=((Er=C.arrow)==null?void 0:Er.centerOffset)!==0,[be,Me]=b.useState();return ln(()=>{g&&Me(window.getComputedStyle(g).zIndex)},[g]),u.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:be,"--radix-popper-transform-origin":[(pn=C.transformOrigin)==null?void 0:pn.x,(Tr=C.transformOrigin)==null?void 0:Tr.y].join(" "),...((Yn=C.hide)==null?void 0:Yn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(hk,{scope:r,placedSide:P,onArrowChange:S,arrowX:F,arrowY:Q,shouldHideArrow:Z,children:u.jsx(Qe.div,{"data-side":P,"data-align":$,...y,ref:v,style:{...y.style,animation:q?void 0:"none"}})})})});Uv.displayName=mh;var Hv="PopperArrow",pk={top:"bottom",right:"left",bottom:"top",left:"r
186ight"},Wv=b.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,i=fk(Hv,n),o=pk[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(uk,{...s,ref:r,style:{...s.style,display:"block"}})})});Wv.displayName=Hv;function mk(e){return e!==null}var gk=e=>({name:"transformOrigin",options:e,fn(t){var x,g,m;const{placement:r,rects:n,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=Vv(r),f={start:"0%",center:"50%",end:"100%"}[d],p=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,h=(((m=s.arrow)==null?void 0:m.y)??0)+l/2;let w="",y="";return c==="bottom"?(w=o?f:`${p}px`,y=`${-l}px`):c==="top"?(w=o?f:`${p}px`,y=`${n.floating.height+l}px`):c==="right"?(w=`${-l}px`,y=o?f:`${h}px`):c==="left"&&(w=`${n.floating.width+l}px`,y=o?f:`${h}px`),{data:{x:w,y}}}});function Vv(e){const[t,r="center"]=e.split("-");return[t,r]}var yk=zv,vk=Uv,wk=Wv,[Rl,S2]=kl("Tooltip",[Dv]),gh=Dv(),qv="TooltipProvider",xk=700,hp="tooltip.open",[bk,Kv]=Rl(qv),Gv=e=>{const{__scopeTooltip:t,delayDuration:r=xk,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(bk,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};Gv.displayName=qv;var Jv="Tooltip",[k2,Nl]=Rl(Jv),Du="TooltipTrigger",_k=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Nl(Du,r),i=Kv(Du,r),o=gh(r),a=b.useRef(null),l=Ht(t,a,s.onTriggerChange),c=b.useRef(!1),d=b.useRef(!1),f=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(yk,{asChild:!0,...o,children:u.jsx(Qe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:Ce(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ce(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:Ce(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ce(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:Ce(e.onBlur,s.onClose),onClick:Ce(e.onClick,s.onClose)})})});_k.displayName=Du;var Sk="TooltipPortal",[E2,kk]=Rl(Sk,{forceMount:void 0}),Zs="TooltipContent",Qv=b.forwardRef((e,t)=>{const r=kk(Zs,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=e,o=Nl(Zs,e.__scopeTooltip);return u.jsx(eh,{present:n||o.open,children:o.disableHoverableContent?u.jsx(Yv,{side:s,...i,ref:t}):u.jsx(Ek,{side:s,...i,ref:t})})}),Ek=b.forwardRef((e,t)=>{const r=Nl(Zs,e.__scopeTooltip),n=Kv(Zs,e.__scopeTooltip),s=b.useRef(null),i=Ht(t,s),[o,a]=b.useState(null),{trigger:l,onClose:c}=r,d=s.current,{onPointerInTransitChange:f}=n,p=b.useCallback(()=>{a(null),f(!1)},[f]),h=b.useCallback((w,y)=>{const x=w.currentTarget,g={x:w.clientX,y:w.clientY},m=Rk(g,x.getBoundingClientRect()),v=Nk(g,m),_=Ak(y.getBoundingClientRect()),S=Ik([...v,..._]);a(S),f(!0)},[f]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&d){const w=x=>h(x,d),y=x=>h(x,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",y)}}},[l,d,h,p]),b.useEffect(()=>{if(o){const w=y=>{const x=y.target,g={x:y.clientX,y:y.clientY},m=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),v=!Ok(g,o);m?p():v&&(p(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,o,c,p]),u.jsx(Yv,{...e,ref:i})}),[Tk,Ck]=Rl(Jv,{isInside:!1}),jk=Lb("TooltipContent"),Yv=b.forwardRef((e,t)=>
186{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Nl(Zs,r),c=gh(r),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(hp,d),()=>document.removeEventListener(hp,d)),[d]),b.useEffect(()=>{if(l.trigger){const f=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(Zd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(vk,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(jk,{children:n}),u.jsx(Tk,{scope:r,isInside:!0,children:u.jsx(a1,{id:l.contentId,role:"tooltip",children:s||n})})]})})});Qv.displayName=Zs;var Xv="TooltipArrow",Pk=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=gh(r);return Ck(Xv,r).isInside?null:u.jsx(wk,{...s,...n,ref:t})});Pk.displayName=Xv;function Rk(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Nk(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Ak(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function Ok(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],c=a.x,d=a.y,f=l.x,p=l.y;d>n!=p>n&&r<(f-c)*(n-d)/(p-d)+c&&(s=!s)}return s}function Ik(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),$k(t)}function $k(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Lk=Gv,Zv=Qv;const Mk=Lk,Dk=b.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(Zv,{ref:n,sideOffset:t,className:qt("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),...r}));Dk.displayName=Zv.displayName;var Al=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(){}},Ol=typeof window>"u"||"Deno"in globalThis;function Nt(){}function Fk(e,t){return typeof e=="function"?e(t):e}function Bk(e){return typeof e=="number"&&e>=0&&e!==1/0}function zk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fu(e,t){return typeof e=="function"?e(t):e}function Uk(e,t){return typeof e=="function"?e(t):e}function fp(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==yh(o,t.options))return!1}else if(!ao(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function pp(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(oo(t.options.mutationKey)!==oo(i))return!1}else if(!ao(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function yh(e,t){return((t==null?void 0:t.queryKeyHashFn)||oo)(e)}function oo(e){return JSON.stringify(e,(t,r)=>Bu(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function ao(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ao(e[r],t[r])):!1}function ew(e,t){if(e===t)return e;const r=mp(e)&&mp(t);if(r||Bu(e)&&Bu(t)){const n=r?e:Object.keys(e),s=n.length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{},l=new Set(n);let c=0;for(let d=0;d<o;d++){const f=r?d:i[d];(!r&&l.has(f)||r)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=ew(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function mp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bu(e){if(!gp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!gp(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hk(e){return new Promise(t=>{setTimeout(t,e)})}function Wk(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?ew(e,t):t}function Vk(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function qk(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var vh=Symbol();function tw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pn,zr,Ms,am,Kk=(am=class extends Al{constructor(){super();te(this,Pn);te(this,zr);te(this,Ms);V(this,Ms,t=>{if(!Ol&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,zr)||this.setEventListener(T(this,Ms))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,zr))==null||t.call(this),V(this,zr,void 0))}setEventListener(t){var r;V(this,Ms,t),(r=T(this,zr))==null||r.call(this),V(this,zr,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){T(this,Pn)!==t&&(V(this,Pn,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 20,025 bytes, line 186
186this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof T(this,Pn)=="boolean"?T(this,Pn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pn=new WeakMap,zr=new WeakMap,Ms=new WeakMap,am),rw=new Kk,Ds,Ur,Fs,lm,Gk=(lm=class extends Al{constructor(){super();te(this,Ds,!0);te(this,Ur);te(this,Fs);V(this,Fs,t=>{if(!Ol&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){T(this,Ur)||this.setEventListener(T(this,Fs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ur))==null||t.call(this),V(this,Ur,void 0))}setEventListener(t){var r;V(this,Fs,t),(r=T(this,Ur))==null||r.call(this),V(this,Ur,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ds)!==t&&(V(this,Ds,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return T(this,Ds)}},Ds=new WeakMap,Ur=new WeakMap,Fs=new WeakMap,lm),rl=new Gk;function Jk(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function Qk(e){return Math.min(1e3*2**e,3e4)}function nw(e){return(e??"online")==="online"?rl.isOnline():!0}var sw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function bc(e){return e instanceof sw}function iw(e){let t=!1,r=0,n=!1,s;const i=Jk(),o=y=>{var x;n||(p(new sw(y)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>rw.isFocused()&&(e.networkMode==="always"||rl.isOnline())&&e.canRun(),d=()=>nw(e.networkMode)&&e.canRun(),f=y=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,y),s==null||s(),i.resolve(y))},p=y=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,y),s==null||s(),i.reject(y))},h=()=>new Promise(y=>{var x;s=g=>{(n||c())&&y(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;s=void 0,n||(y=e.onContinue)==null||y.call(e)}),w=()=>{if(n)return;let y;const x=r===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(f).catch(g=>{var k;if(n)return;const m=e.retry??(Ol?0:3),v=e.retryDelay??Qk,_=typeof v=="function"?v(r,g):v,S=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,g);if(t||!S){p(g);return}r++,(k=e.onFail)==null||k.call(e,r,g),Hk(_).then(()=>c()?void 0:h()).then(()=>{t?p(g):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():h().then(w),i)}}var Yk=e=>setTimeout(e,0);function Xk(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=Yk;const i=a=>{t?e.push(a):s(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var qe=Xk(),Rn,cm,ow=(cm=class{constructor(){te(this,Rn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bk(this.gcTime)&&V(this,Rn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ol?1/0:5*60*1e3))}clearGcTimeout(){T(this,Rn)&&(clearTimeout(T(this,Rn)),V(this,Rn,void 0))}},Rn=new WeakMap,cm),Bs,Nn,yt,An,ze,yo,On,Ot,lr,um,Zk=(um=class extends ow{constructor(t){super();te(this,Ot);te(this,Bs);te(this,Nn);te(this,yt);te(this,An);te(this,ze);te(this,yo);te(this,On);V(this,On,!1),V(this,yo,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,An,t.client),V(this,yt,T(this,An).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,Bs,tE(this.options)),this.state=t.state??T(this,Bs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...T(this,yo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,yt).remove(this)}setData(t,r){const n=Wk(this.state.data,t,this.options);return De(this,Ot,lr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){De(this,Ot,lr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=T(this,ze))==null?void 0:n.promise;return(s=T(this,ze))==null||s.cancel(t),r?r.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Bs))}isActive(){return this.observers.some(t=>Uk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Fu(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:!zk(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,ze))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,ze))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,yt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(T(this,ze)&&(T(this,On)?T(this,ze).cancel({revert:!0}):T(this,ze).cancelRetry()),this.scheduleGc()),T(this,yt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||De(this,Ot,lr).call(this,{type:"invalidate"})}fetch(t,r){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,ze))return T(this,ze).continueRetry(),T(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(V(this,On,!0),n.signal)})},i=()=>{const p=tw(this.options,r),w=(()=>{const y={client:T(this,An),queryKey:this.queryKey,meta:this.meta};return s(y),y})();return V(this,On,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:T(this,An),state:this.state,fetchFn:i};return s(p),p})();(c=this.options.behavior)==null||c.onFetch(a,this),V(this,Nn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&De(this,Ot,lr).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=p=>{var h,w,y,x;bc(p)&&p.silent||De(this,Ot,lr).call(this,{type:"error",error:p}),bc(p)||((w=(h=T(this,yt).config).onError)==null||w.call(h,p,this),(x=(y=T(this,yt).config).onSettled)==null||x.call(y,this.state.data,p,this)),this.scheduleGc()};return V(this,ze,iw({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var h,w,y,x;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(g){l(g);return}(w=(h=T(this,yt).config).onSuccess)==null||w.call(h,p,this),(x=(y=T(this,yt).config).onSettled)==null||x.call(y,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,h)=>{De(this,Ot,lr).call(this,{type:"failed",failureCount:p,error:h})},onPause:()=>{De(this,Ot,lr).call(this,{type:"pause"})},onContinue:()=>{De(this,Ot,lr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,ze).start()}},Bs=new WeakMap,Nn=new WeakMap,yt=new WeakMap,An=new WeakMap,ze=new WeakMap,yo=new WeakMap,On=new WeakMap,Ot=new WeakSet,lr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...eE(n.data,this.options),fetchMeta:t.meta??null};case"success":return V(this,Nn,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return bc(s)&&s.revert&&T(this,Nn)?{...T(this,Nn),fetchStatus:"idle"}:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),qe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),T(this,yt).notify({query:this,type:"updated",action:t})})},um);function eE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function tE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Jt,dm,rE=(dm=class extends Al{constructor(t={}){super();te(this,Jt);this.config=t,V(this,Jt,new Map)}build(t,r,n){const s=r.queryKey,i=r.queryHash??yh(s,r);let o=this.get(i);return o||(o=new Zk({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){T(this,Jt).has(t.queryHash)||(T(this,Jt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,Jt).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,Jt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Jt).get(t)}getAll(){return[...T(this,Jt).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>fp(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>fp(t,n)):r}notify(t){qe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Jt=new WeakMap,dm),Qt,We,In,Yt,Ir,hm,nE=(hm=class extends ow{constructor(t){super();te(this,Yt);te(this,Qt);te(this,We);te(this,In);this.mutationId=t.mutationId,V(this,We,t.mutationCache),V(this,Qt,[]),this.state=t.state||sE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Qt).includes(t)||(T(this,Qt).push(t),this.clearGcTimeout(),T(this,We).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,Qt,T(this,Qt).filter(r=>r!==t)),this.scheduleGc(),T(this,We).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():T(this,We).remove(this))}continue(){var t;return((t=T(this,In))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,d,f,p,h,w,y,x,g,m,v,_,S,k,E,j;const r=()=>{De(this,Yt,Ir).call(this,{type:"continue"})};V(this,In,iw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,O)=>{De(this,Yt,Ir).call(this,{type:"failed",failureCount:A,error:O})},onPause:()=>{De(this,Yt,Ir).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,We).canRun(this)}));const n=this.state.status==="pending",s=!T(this,In).canStart();try{if(n)r();else{De(this,Yt,Ir).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=T(this,We).config).onMutate)==null?void 0:o.call(i,t,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));O!==this.state.context&&De(this,Yt,Ir).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const A=await T(this,In).start();return await((d=(c=T(this,We).config).onSuccess)==null?void 0:d.call(c,A,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,A,t,this.state.context)),await((w=(h=T(this,We).config).onSettled)==null?void 0:w.call(h,A,null,this.state.variables,this.state.context,this)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,A,null,t,this.state.context)),De(this,Yt,Ir).call(this,{type:"success",data:A}),A}catch(A){try{throw await((m=(g=T(this,We).config).onError)==null?void 0:m.call(g,A,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,A,t,this.state.context)),await((k=(S=T(this,We).config).onSettled)==null?void 0:k.call(S,void 0,A,this.state.variables,this.state.context,this)),await((j=(E=this.options).onSettled)==null?void 0:j.call(E,void 0,A,t,this.state.context)),A}finally{De(this,Yt,Ir).call(this,{type:"error",error:A})}}finally{T(this,We).runNext(this)}}},Qt=new WeakMap,We=new WeakMap,In=new WeakMap,Yt=new WeakSet,Ir=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),qe.batch(()=>{T(this,Qt).forEach(n=>{n.onMutationUpdate(t)}),T(this,We).notify({mutation:this,type:"updated",action:t})})},hm);function sE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fr,It,vo,fm,iE=(fm=class extends Al{constructor(t={}){super();te(this,fr);te(this,It);te(this,vo);this.config=t,V(this,fr,new Set),V(this,It,new Map),V(this,vo,0)}build(t,r,n){const s=new nE({mutationCache:this,mutationId:++Io(this,vo)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){T(this,fr).add(t);const r=sa(t);if(typeof r=="string"){const n=T(this,It).get(r);n?n.push(t):T(this,It).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,fr).delete(t)){const r=sa(t);if(typeof r=="string"){const n=T(this,It).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&T(this,It).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=sa(t);if(typeof r=="string"){const n=T(this,It).get(r),s=n==null?void 0:n.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=sa(t);if(typeof r=="string"){const s=(n=T(this,It).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qe.batch(()=>{T(this,fr).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,fr).clear(),T(this,It).clear()})}getAll(){return Array.from(T(this,fr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>pp(r,n))}findAll(t={}){return this.getAll().filter(r=>pp(t,r))}notify(t){qe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return qe.batch(()=>Promise.all(t.map(r=>r.continue().catch(Nt))))}},fr=new WeakMap,It=new WeakMap,vo=new WeakMap,fm);function sa(e){var t;return(t=e.options.scope)==null?void 0:t.id}function yp(e){return{onFetch:(t,r)=>{var d,f,p,h,w;const n=t.options,s=(p=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let y=!1;const x=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=tw(t.options,t.fetchOptions),m=async(v,_,S)=>{if(y)return Promise.reject();if(_==null&&v.pages.length)return Promise.resolve(v);const E=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return x(U),U})(),j=await g(E),{maxPages:A}=t.options,O=S?qk:Vk;return{pages:O(v.pages,j,A),pageParams:O(v.pageParams,_,A)}};if(s&&i.length){const v=s==="backward",_=v?oE:vp,S={pages:i,pageParams:o},k=_(n,S);a=await m(S,k,v)}else{const v=e??i.length;do{const _=l===0?o[0]??n.initialPageParam:vp(n,a);if(l>0&&_==null)break;a=await m(a,_),l++}while(l<v)}return a};t.options.persister?t.fetchFn=()=>{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function vp(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function oE(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ye,Hr,Wr,zs,Us,Vr,Hs,Ws,pm,aE=(pm=class{constructor(e={}){te(this,ye);te(this,Hr);te(this,Wr);te(this,zs);te(this,Us);te(this,Vr);te(this,Hs);te(this,Ws);V(this,ye,e.queryCache||new rE),V(this,Hr,e.mutationCache||new iE),V(this,Wr,e.defaultOptions||{}),V(this,zs,new Map),V(this,Us,new Map),V(this,Vr,0)}mount(){Io(this,Vr)._++,T(this,Vr)===1&&(V(this,Hs,rw.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ye).onFocus())})),V(this,Ws,rl.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ye).onOnline())})))}unmount(){var e,t;Io(this,Vr)._--,T(this,Vr)===0&&((e=T(this,Hs))==null||e.call(this),V(this,Hs,void 0),(t=T(this,Ws))==null||t.call(this),V(this,Ws,void 0))}isFetching(e){return T(this,ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Hr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,ye).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=T(this,ye).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Fu(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return T(this,ye).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=T(this,ye).get(n.queryHash),i=s==null?void 0:s.state.data,o=Fk(t,i);if(o!==void 0)return T(this,ye).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return qe.batch(()=>T(this,ye).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,ye).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=T(this,ye);qe.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,ye);return qe.batch(()=>(r.findAll(e).forEach(n=>
186{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=qe.batch(()=>T(this,ye).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(Nt).catch(Nt)}invalidateQueries(e,t={}){return qe.batch(()=>(T(this,ye).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=qe.batch(()=>T(this,ye).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(Nt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=T(this,ye).build(this,t);return r.isStaleByTime(Fu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nt).catch(Nt)}fetchInfiniteQuery(e){return e.behavior=yp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nt).catch(Nt)}ensureInfiniteQueryData(e){return e.behavior=yp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return rl.isOnline()?T(this,Hr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,ye)}getMutationCache(){return T(this,Hr)}getDefaultOptions(){return T(this,Wr)}setDefaultOptions(e){V(this,Wr,e)}setQueryDefaults(e,t){T(this,zs).set(oo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,zs).values()],r={};return t.forEach(n=>{ao(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){T(this,Us).set(oo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Us).values()],r={};return t.forEach(n=>{ao(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Wr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yh(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===vh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Wr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,ye).clear(),T(this,Hr).clear()}},ye=new WeakMap,Hr=new WeakMap,Wr=new WeakMap,zs=new WeakMap,Us=new WeakMap,Vr=new WeakMap,Hs=new WeakMap,Ws=new WeakMap,pm),lE=b.createContext(void 0),cE=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(lE.Provider,{value:e,children:t}));/**
187 * @remix-run/router v1.23.0
188 *
189 * Copyright (c) Remix Software Inc.
190 *
191 * This source code is licensed under the MIT license found in the
192 * LICENSE.md file in the root directory of this source tree.
193 *
194 * @license MIT
195 */function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lo.apply(this,arguments)}var Gr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Gr||(Gr={}));const wp="popstate";function uE(e){e===void 0&&(e={});function t(n,s){let{pathname:i,search:o,hash:a}=n.location;return zu("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:nl(s)}return hE(t,r,null,e)}function ke(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function aw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dE(){return Math.random().toString(36).substr(2,8)}function xp(e,t){return{usr:e.state,key:e.key,idx:t}}function zu(e,t,r,n){return r===void 0&&(r=null),lo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?oi(t):t,{state:r,key:t&&t.key||n||dE()})}function nl(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function oi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function hE(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,a=Gr.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(lo({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=Gr.Pop;let x=d(),g=x==null?null:x-c;c=x,l&&l({action:a,location:y.location,delta:g})}function p(x,g){a=Gr.Push;let m=zu(y.location,x,g);c=d()+1;let v=xp(m,c),_=y.createHref(m);try{o.pushState(v,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}i&&l&&l({action:a,location:y.location,delta:1})}function h(x,g){a=Gr.Replace;let m=zu(y.location,x,g);c=d();let v=xp(m,c),_=y.createHref(m);o.replaceState(v,"",_),i&&l&&l({action:a,location:y.location,delta:0})}function w(x){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof x=="str
195ing"?x:nl(x);return m=m.replace(/ $/,"%20"),ke(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return a},get location(){return e(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(wp,f),l=x,()=>{s.removeEventListener(wp,f),l=null}},createHref(x){return t(s,x)},createURL:w,encodeLocation(x){let g=w(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:h,go(x){return o.go(x)}};return y}var bp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bp||(bp={}));function fE(e,t,r){return r===void 0&&(r="/"),pE(e,t,r,!1)}function pE(e,t,r,n){let s=typeof t=="string"?oi(t):t,i=wh(s.pathname||"/",r);if(i==null)return null;let o=lw(e);mE(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=TE(i);a=kE(o[l],c,n)}return a}function lw(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ke(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=nn([n,l.relativePath]),d=r.concat(l);i.children&&i.children.length>0&&(ke(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),lw(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:_E(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of cw(i.path))s(i,o,l)}),t}function cw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=cw(n.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function mE(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:SE(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const gE=/^:[\w-]+$/,yE=3,vE=2,wE=1,xE=10,bE=-2,_p=e=>e==="*";function _E(e,t){let r=e.split("/"),n=r.length;return r.some(_p)&&(n+=bE),t&&(n+=vE),r.filter(s=>!_p(s)).reduce((s,i)=>s+(gE.test(i)?yE:i===""?wE:xE),n)}function SE(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function kE(e,t,r){let{routesMeta:n}=e,s={},i="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=Sp({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),p=l.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=Sp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;
vendor: 9,412 bytes, lines 195-204
195Object.assign(s,f.params),o.push({params:s,pathname:nn([i,f.pathname]),pathnameBase:RE(nn([i,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(i=nn([i,f.pathnameBase]))}return o}function Sp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=EE(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((c,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let y=a[f]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const w=a[f];return h&&!w?c[p]=void 0:c[p]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function EE(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),aw(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function TE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return aw(!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 wh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function CE(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?oi(e):e;return{pathname:r?r.startsWith("/")?r:jE(r,t):t,search:NE(n),hash:AE(s)}}function jE(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function _c(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function PE(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function uw(e,t){let r=PE(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function dw(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=oi(e):(s=lo({},e),ke(!s.pathname||!s.pathname.includes("?"),_c("?","pathname","search",s)),ke(!s.pathname||!s.pathname.includes("#"),_c("#","pathname","hash",s)),ke(!s.search||!s.search.includes("#"),_c("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;s.pathname=p.join("/")}a=f>=0?t[f]:"/"}let l=CE(s,a),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),RE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hw=["post","put","patch","delete"];new Set(hw);const IE=["get",...hw];new Set(IE);/**
196 * React Router v6.30.1
197 *
198 * Copyright (c) Remix Software Inc.
199 *
200 * This source code is licensed under the MIT license found in the
201 * LICENSE.md file in the root directory of this source tree.
202 *
203 * @license MIT
204 */function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},co.apply(this,arguments)}const xh=b.createContext(null),$E=b.createContext(null),qn=b.createContext(null),Il=b.createContext(null),Kn=b.createContext({outlet:null,matches:[],isDataRoute:!1}),fw=b.createContext(null);function LE(e,t){let{relative:r}=t===void 0?{}:t;Po()||ke(!1);let{basename:n,navigator:s}=b.useContext(qn),{hash:i,pathname:o,search:a}=mw(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:nn([n,o])),s.createHref({pathname:l,search:a,hash:i})}function Po(){return b.useContext(Il)!=null}function ai(){return Po()||ke(!1),b.useContext(Il).location}function pw(e){b.useContext(qn).static||b.useLayoutEffect(e)}function ME(){let{isDataRoute:e}=b.useContext(Kn);return e?QE():DE()}function DE(){Po()||ke(!1);let e=b.useContext(xh),{basename:t,future:r,navigator:n}=b.useContext(qn),{matches:s}=b.useContext(Kn),{pathname:i}=ai(),o=JSON.stringify(uw(s,r.v7_relativeSplatPath)),a=b.useRef(!1);return pw(()=>{a.current=!0}),b.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let f=dw(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:nn([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,o,i,e])}function mw(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=b.useContext(qn),{matches:s}=b.useContext(Kn),{pathname:i}=ai(),o=JSON.stringify(uw(s,n.v7_relativeSplatPath));return b.useMemo(()=>dw(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function FE(e,t){return BE(e,t)}function BE(e,t,r,n){Po()||ke(!1);let{navigator:s}=b.useContext(qn),{matches:i}=b.useContext(Kn),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=ai(),d;if(t){var f;let x=typeof t=="string"?oi(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||ke(!1),d=x}else d=c;let p=d.pathname||"/",h=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=fE(e,{pathname:h}),y=VE(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:nn([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:nn([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,r,n);return t&&y?b.createElement(Il.Provider,{value:{location:co({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Gr.Pop}},y):y}function zE(){let e=JE(),t=OE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:s},r):null,null)}const UE=b.createElement(zE,null);class HE extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?b.createElement(Kn.Provider,{value:this.props.routeContext},b.createElement(fw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WE(e){let{routeContext:t,match:r,children:n}=e,s=b.useContext(xh);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(Kn.Provider,{value:t},n)}function VE(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=(s=r)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||ke(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:h}=r,w=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||w){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,p)=>{let h,w=!1,y=null,x=null;r&&(h=a&&f.route.id?a[f.route.id]:void 0,y=f.route.errorElement||UE,l&&(c<0&&p===0?(w=!0,x=null):c===p&&(w=!0,x=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,p+1)),m=()=>{let v;return h?v=y:w?v=x:f.route.Component?v=b.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,b.createElement(WE,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:r!=null},children:v})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?b.createElement(HE,{location:r.location,revalidation:r.revalidation,component:y,error:h,children:m(),routeC
204ontext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var gw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gw||{}),sl=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}(sl||{});function qE(e){let t=b.useContext(xh);return t||ke(!1),t}function KE(e){let t=b.useContext($E);return t||ke(!1),t}function GE(e){let t=b.useContext(Kn);return t||ke(!1),t}function yw(e){let t=GE(),r=t.matches[t.matches.length-1];return r.route.id||ke(!1),r.route.id}function JE(){var e;let t=b.useContext(fw),r=KE(sl.UseRouteError),n=yw(sl.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function QE(){let{router:e}=qE(gw.UseNavigateStable),t=yw(sl.UseNavigateStable),r=b.useRef(!1);return pw(()=>{r.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,co({fromRouteId:t},i)))},[e,t])}function YE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function cr(e){ke(!1)}function XE(e){let{basename:t="/",children:r=null,location:n,navigationType:s=Gr.Pop,navigator:i,static:o=!1,future:a}=e;Po()&&ke(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:o,future:co({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof n=="string"&&(n=oi(n));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:w="default"}=n,y=b.useMemo(()=>{let x=wh(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:w},navigationType:s}},[l,d,f,p,h,w,s]);return y==null?null:b.createElement(qn.Provider,{value:c},b.createElement(Il.Provider,{children:r,value:y}))}function ZE(e){let{children:t,location:r}=e;return FE(Uu(t),r)}new Promise(()=>{});function Uu(e,t){t===void 0&&(t=[]);let r=[];return b.Children.forEach(e,(n,s)=>{if(!b.isValidElement(n))return;let i=[...t,s];if(n.type===b.Fragment){r.push.apply(r,Uu(n.props.children,i));return}n.type!==cr&&ke(!1),!n.props.index||!n.props.children||ke(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Uu(n.props.children,i)),r.push(o)}),r}/**
205 * React Router DOM v6.30.1
206 *
207 * Copyright (c) Remix Software Inc.
208 *
209 * This source code is licensed under the MIT license found in the
210 * LICENSE.md file in the root directory of this source tree.
211 *
212 * @license MIT
213 */function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hu.apply(this,arguments)}function eT(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function tT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rT(e,t){return e.button===0&&(!t||t==="_self")&&!tT(e)}const nT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],sT="6";try{window.__reactRouterVersion=sT}catch{}const iT="startTransition",kp=Em[iT];function oT(e){let{basename:t,children:r,future:n,window:s}=e,i=b.useRef();i.current==null&&(i.current=uE({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},d=b.useCallback(f=>{c&&kp?kp(()=>l(f)):l(f)},[l,c]);return b.useLayoutEffect(()=>o.listen(d),[o,d]),b.useEffect(()=>YE(n),[n]),b.createElement(XE,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}const aT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Re=b.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,p=eT(t,nT),{basename:h}=b.useContext(qn),w,y=!1;if(typeof c=="string"&&lT.test(c)&&(w=c,aT))try{let v=new URL(window.location.href),_=c.startsWith("//")?new URL(v.protocol+c):new URL(c),S=wh(_.pathname,h);_.origin===v.origin&&S!=null?c=S+_.search+_.hash:y=!0}catch{}let x=LE(c,{relative:s}),g=cT(c,{replace:o,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:f});function m(v){n&&n(v),v.defaultPrevented||g(v)}return b.createElement("a",Hu({},p,{href:w||x,onClick:y||i?n:m,ref:r,target:l}))});var Ep;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ep||(Ep={}));var Tp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tp||(Tp={}));function cT(e,t){let{target:r,replace:n,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=ME(),c=ai(),d=mw(e,{relative:o});return b.useCallback(f=>{if(rT(f,r)){f.preventDefault();let p=n!==void 0?n:nl(c)===nl(d);l(e,{replace:p,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,d,n,s,r,e,i,o,a])}var uT=typeof Element<"u",dT=typeof Map=="function",hT=typeof Set=="function",fT=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ea(e,t){if(e===t)return!0;
213if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ea(e[n],t[n]))return!1;return!0}var i;if(dT&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Ea(n.value[1],t.get(n.value[0])))return!1;return!0}if(hT&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(fT&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if(uT&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!Ea(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var pT=function(t,r){try{return Ea(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const mT=wo(pT);var gT=function(e,t,r,n,s,i,o,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,s,i,o,a],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},yT=gT;const Cp=wo(yT);var vT=function(t,r,n,s){var i=n?n.call(s,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c<o.length;c++){var d=o[c];if(!l(d))return!1;var f=t[d],p=r[d];if(i=n?n.call(s,f,p,d):void 0,i===!1||i===void 0&&f!==p)return!1}return!0};const wT=wo(vT);var vw=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(vw||{}),Sc={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},jp=Object.values(vw),bh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},xT=Object.entries(bh).reduce((e,[t,r])=>(e[r]=t,e),{}),Dt="data-rh",Is={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},$s=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},bT=e=>{let t=$s(e,"title");const r=$s(e,Is.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=$s(e,Is.DEFAULT_TITLE);return t||n||void 0},_T=e=>$s(e,Is.ON_CHANGE_CLIENT_STATE)||(()=>{}),kc=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),ST=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return r.concat(n)}}return r},[]),kT=e=>console&&typeof console.warn=="function"&&console.warn(e),xi=(e,t,r)=>{const n={};return r.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&kT(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(l=>{let c;const d=Object.keys(l);for(let p=0;p<d.length;p+=1){const h=d[p],w=h.toLowerCase();t.indexOf(w)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(w==="rel"&&l[w].toLowerCase()==="stylesheet")&&(c=w),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(c=h)}if(!c||!l[c])return!1;const f=l[c].toLowerCase();return n[c]||(n[c]={}),o[c]||(o[c]={}),n[c][f]?!1:(o[c][f]=!0,!0)}
213).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const c=a[l],d={...n[c],...o[c]};n[c]=d}return s},[]).reverse()},ET=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},TT=e=>({baseTag:ST(["href"],e),bodyAttributes:kc("bodyAttributes",e),defer:$s(e,Is.DEFER),encode:$s(e,Is.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:kc("htmlAttributes",e),linkTags:xi("link",["rel","href"],e),metaTags:xi("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:xi("noscript",["innerHTML"],e),onChangeClientState:_T(e),scriptTags:xi("script",["src","innerHTML"],e),styleTags:xi("style",["cssText"],e),title:bT(e),titleAttributes:kc("titleAttributes",e),prioritizeSeoTags:ET(e,Is.PRIORITIZE_SEO_TAGS)}),ww=e=>Array.isArray(e)?e.join(""):e,CT=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},Ec=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(CT(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Pp=(e,t)=>({...e,[t]:void 0}),jT=["noscript","script","style"],Wu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),xw=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),PT=(e,t,r,n)=>{const s=xw(r),i=ww(t);return s?`<${e} ${Dt}="true" ${s}>${Wu(i,n)}</${e}>`:`<${e} ${Dt}="true">${Wu(i,n)}</${e}>`},RT=(e,t,r=!0)=>t.reduce((n,s)=>{const i=s,o=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const f=typeof i[d]>"u"?d:`${d}="${Wu(i[d],r)}"`;return c?`${c} ${f}`:f},""),a=i.innerHTML||i.cssText||"",l=jT.indexOf(e)===-1;return`${n}<${e} ${Dt}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),bw=(e,t={})=>Object.keys(e).reduce((r,n)=>{const s=bh[n];return r[s||n]=e[n],r},t),NT=(e,t,r)=>{const n={key:t,[Dt]:!0},s=bw(r,n);return[N.createElement("title",s,t)]},Ta=(e,t)=>t.map((r,n)=>{const s={key:n,[Dt]:!0};return Object.keys(r).forEach(i=>{const a=bh[i]||i;if(a==="innerHTML"||a==="cssText"){const l=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=r[i]}),N.createElement(e,s)}),gt=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>NT(e,t.title,t.titleAttributes),toString:()=>PT(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>bw(t),toString:()=>xw(t)};default:return{toComponent:()=>Ta(e,t),toString:()=>RT(e,t,r)}}},AT=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=Ec(e,Sc.meta),i=Ec(t,Sc.link),o=Ec(r,Sc.script);return{priorityMethods:{toComponent:()=>[...Ta("meta",s.priority),...Ta("link",i.priority),...Ta("script",o.priority)],toString:()=>`${gt("meta",s.priority,n)} ${gt("link",i.priority,n)} ${gt("script",o.priority,n)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},OT=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:d,metaTags:f,scriptTags:p}=AT(e)),{priority:h,base:gt("base",t,n),bodyAttributes:gt("bodyAttributes",r,n),htmlAttributes:gt("htmlAttributes",s,n),link:gt("link",d,n),meta:gt("meta",f,n),noscript:gt("noscript",i,n),script:gt("script",p,n),style:gt("style",o,n),title:gt("title",{title:a,titleAttributes:l},n)}},Vu=OT,ia=[],_w=!!(typeof window<"u"&&window.document&&window.document.createElement),qu=class{constructor(e,t){or(this,"instances",[]);or(this,"canUseDOM",_w);or(this,"context");or(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ia:this.instances,add:e=>{(this.canUseDOM?ia:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ia:this.instances).indexOf(e);(this.canUseDOM?ia:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Vu({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},IT={}
213,Sw=N.createContext(IT),$n,kw=($n=class extends b.Component{constructor(r){super(r);or(this,"helmetData");this.helmetData=new qu(this.props.context||{},$n.canUseDOM)}render(){return N.createElement(Sw.Provider,{value:this.helmetData.value},this.props.children)}},or($n,"canUseDOM",_w),$n),ns=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${Dt}]`),s=[].slice.call(n),i=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const d=c,f=typeof a[d]>"u"?"":a[d];l.setAttribute(c,f)}l.setAttribute(Dt,"true"),s.some((c,d)=>(o=d,l.isEqualNode(c)))?s.splice(o,1):i.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>r.appendChild(a)),{oldTags:s,newTags:i}},Ku=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(Dt),s=n?n.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const l=t[a]||"";r.getAttribute(a)!==l&&r.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const c=i.indexOf(a);c!==-1&&i.splice(c,1)}for(let a=i.length-1;a>=0;a-=1)r.removeAttribute(i[a]);s.length===i.length?r.removeAttribute(Dt):r.getAttribute(Dt)!==o.join(",")&&r.setAttribute(Dt,o.join(","))},$T=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ww(e)),Ku("title",t)},Rp=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:d,title:f,titleAttributes:p}=e;Ku("body",n),Ku("html",s),$T(f,p);const h={baseTag:ns("base",r),linkTags:ns("link",i),metaTags:ns("meta",o),noscriptTags:ns("noscript",a),scriptTags:ns("script",c),styleTags:ns("style",d)},w={},y={};Object.keys(h).forEach(x=>{const{newTags:g,oldTags:m}=h[x];g.length&&(w[x]=g),m.length&&(y[x]=h[x].oldTags)}),t&&t(),l(e,w,y)},bi=null,LT=e=>{bi&&cancelAnimationFrame(bi),e.defer?bi=requestAnimationFrame(()=>{Rp(e,()=>{bi=null})}):(Rp(e),bi=null)},MT=LT,Np=class extends b.Component{constructor(){super(...arguments);or(this,"rendered",!1)}shouldComponentUpdate(t){return!wT(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const s=TT(t.get().map(i=>{const o={...i.props};return delete o.context,o}));kw.canUseDOM?MT(s):Vu&&(n=Vu(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},$c,Gn=($c=class extends b.Component{shouldComponentUpdate(e){return!mT(Pp(this.props,"helmetData"),Pp(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return Cp(jp.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${jp.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Cp(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};
213return N.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:s,...i}=n.props,o=Object.keys(i).reduce((l,c)=>(l[xT[c]||c]=i[c],l),{});let{type:a}=n;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(n,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,o,s);break;default:t=this.mapObjectTypeChildren(n,t,o,s);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof qu)){const s=n;n=new qu(s.context,!0),delete r.helmetData}return n?N.createElement(Np,{...r,context:n.value}):N.createElement(Sw.Consumer,null,s=>N.createElement(Np,{...r,context:s}))}},or($c,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),$c);const DT=sh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nt=b.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},i)=>{const o=n?Ib:"button";return u.jsx(o,{className:qt(DT({variant:t,size:r,className:e})),ref:i,...s})});nt.displayName="Button";const FT="/assets/logo-B8NHqalZ.png",Ap=[{href:"/",label:"Home"},{href:"/about",label:"About"},{href:"/services",label:"Services"},{href:"/case-studies",label:"Case Studies"},{href:"/press",label:"Press"},{href:"/blog",label:"Blog"},{href:"/contact",label:"Contact"}],BT=()=>{const[e,t]=b.useState(!1),r=ai();return u.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"flex items-center justify-between h-20",children:[u.jsx(Re,{to:"/",className:"flex items-center",children:u.jsx("img",{src:FT,alt:"Next Hospitality Advisors",className:"h-14 md:h-16 w-auto"})}),u.jsx("div",{className:"hidden md:flex items-center gap-8",children:Ap.map(n=>u.jsx(Re,{to:n.href,onClick:()=>window.scrollTo(0,0),className:`font-medium transition-colors teal-underline ${r.pathname===n.href?"text-primary font-semibold":"text-foreground hover:text-primary"}`,children:n.label},n.href))}),u.jsx("div",{className:"hidden md:block",children:u.jsx(nt,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90",children:u.jsx(Re,{to:"/contact",children:"Book a Discovery Call"})})}),u.jsx("button",{className:"md:hidden p-2",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?u.jsx(fv,{size:24}):u.jsx(O1,{size:24})})]}),e&&u.jsx("div",{className:"md:hidden py-4 border-t border-border",children:u.jsxs("div",{className:"flex flex-col gap-4",children:[Ap.map(n=>u.jsx(Re,{to:n.href,onClick:()=>t(!1),className:`font-medium py-2 ${r.pathname===n.href?"text-primary font-semibold":"text-foreground"}`,children:n.label},n.href)),u.jsx(nt,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90 mt-2",children:u.jsx(Re,{to:"/contact",onClick:()=>t(!1),children:"Book a Discovery Call"})})]})})]})})},zT="/assets/logo-dark-BuK4kk_9.png",UT=()=>u.jsx("footer",{className:"bg-primary text-primary-foreground",children:u.jsxs("div",{className:"container mx-auto px-4 py-16",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx("img",{src:zT,alt:"Next Hospital
213ity Advisors",className:"h-48 w-auto"}),u.jsx("p",{className:"text-primary-foreground/80 text-sm leading-relaxed",children:"Premier hospitality consulting for hotels, resorts, and F&B operations. Driving profitability through operational excellence."})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"font-display text-lg font-semibold",children:"Quick Links"}),u.jsx("ul",{className:"space-y-2",children:[{href:"/about",label:"About Us"},{href:"/services",label:"Services"},{href:"/case-studies",label:"Case Studies"},{href:"/blog",label:"Blog"},{href:"/contact",label:"Contact"}].map(e=>u.jsx("li",{children:u.jsx(Re,{to:e.href,className:"text-primary-foreground/80 hover:text-accent transition-colors text-sm",children:e.label})},e.href))})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"font-display text-lg font-semibold",children:"Services"}),u.jsxs("ul",{className:"space-y-2 text-sm text-primary-foreground/80",children:[u.jsx("li",{children:"Hotel Profit & Performance"}),u.jsx("li",{children:"Restaurant Growth Strategy"}),u.jsx("li",{children:"F&B Program Development"}),u.jsx("li",{children:"Asset & Project Management"}),u.jsx("li",{children:"Systems Implementation"})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"font-display text-lg font-semibold",children:"Get in Touch"}),u.jsxs("ul",{className:"space-y-3 text-sm",children:[u.jsxs("li",{className:"flex items-center gap-2 text-primary-foreground/80",children:[u.jsx(lv,{size:16,className:"text-accent"}),u.jsx("a",{href:"mailto:[email protected]",className:"hover:text-accent transition-colors",children:"[email protected]"})]}),u.jsxs("li",{className:"flex items-center gap-2 text-primary-foreground/80",children:[u.jsx(uv,{size:16,className:"text-accent"}),u.jsx("a",{href:"tel:+15613027491",className:"hover:text-accent transition-colors",children:"+1.561.302.7491"})]}),u.jsxs("li",{className:"flex items-start gap-2 text-primary-foreground/80",children:[u.jsx(cv,{size:16,className:"text-accent shrink-0 mt-0.5"}),u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{children:"Boca Raton, FL"}),u.jsx("span",{children:"Westport, CT"}),u.jsx("span",{children:"Madrid, Spain"})]})]}),u.jsxs("li",{className:"flex items-center gap-2 text-primary-foreground/80",children:[u.jsx(A1,{size:16,className:"text-accent"}),u.jsx("a",{href:"https://www.linkedin.com/in/doug-zeif-47030011/",target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent transition-colors",children:"LinkedIn"})]})]})]})]}),u.jsxs("div",{className:"border-t border-primary-foreground/20 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[u.jsxs("p",{className:"text-primary-foreground/60 text-sm",children:["© ",new Date().getFullYear()," Next Hospitality Advisors. All rights reserved."]}),u.jsxs("div",{className:"flex gap-6 text-sm text-primary-foreground/60",children:[u.jsx(Re,{to:"/privacy",className:"hover:text-accent transition-colors",children:"Privacy Policy"}),u.jsx(Re,{to:"/terms",className:"hover:text-accent transition-colors",children:"Terms of Service"})]})]})]})}),Jn=({children:e})=>u.jsxs("div",{className:"min-h-screen flex flex-col",children:[u.jsx(BT,{}),u.jsx("main",{className:"flex-1 pt-20",children:e}),u.jsx(UT,{})]}),HT="/assets/hotel-del-coronado-CPVySTw-.png",WT=()=>u.jsxs("section",{className:"relative min-h-[90vh] flex items-center overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${HT})`}}),u.jsx("div",{className:"absolute inset-0 bg-primary/75"}),u.jsx("div",{className:"container mx-auto px-4 relative z-10",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{className:"space-y-8 animate-fade-in",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 bg-accent/20 text-accent px-4 py-2 rounded-full text-sm font-medium",children:[u.jsx("span",{className:"w-2 h-2 bg-accent rounded-full animate-pulse"}),"Trusted by Blackstone, Starwood Capital & 50+ PE-Backed Portfolios"]}),u.jsxs("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-bold text-primary-foreground leading-tight",children:["Maximize Your"," ",u.jsx("span",{className:"text-accent",children:"Hotel Exit Value"}),u.jsx("br",{}),"Through F&B Optimization"]}),u.jsxs("p",{className:"text-lg md:text-xl text-primary-foreground
213/80 max-w-xl",children:["We deliver ",u.jsx("strong",{children:"35-55% GOP lifts"})," for hotel owners and PE firms—directly increasing asset valuations. At 15x EBITDA, every $1M in NOI means ",u.jsx("strong",{children:"$15M+ in added exit value"}),"."]}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[u.jsx(nt,{asChild:!0,size:"lg",className:"bg-accent text-accent-foreground hover:bg-accent/90 text-lg px-8",children:u.jsxs(Re,{to:"/contact",children:["Book a Discovery Call",u.jsx(nr,{className:"ml-2",size:20})]})}),u.jsx(nt,{asChild:!0,size:"lg",className:"border border-primary-foreground/40 bg-primary-foreground/10 text-primary-foreground hover:bg-primary-foreground/20 text-lg px-8",children:u.jsxs(Re,{to:"/case-studies",children:[u.jsx(I1,{className:"mr-2",size:18}),"View Case Studies"]})})]})]}),u.jsx("div",{className:"grid grid-cols-2 gap-4 lg:gap-6",children:[{value:"$100M+",label:"Incremental NOI Identified"},{value:"35-55%",label:"Typical GOP Lift"},{value:"150+",label:"Properties Optimized"},{value:"50+",label:"Years Combined Experience"}].map((e,t)=>u.jsxs("div",{className:"bg-primary-foreground/10 backdrop-blur-sm border border-primary-foreground/20 rounded-xl p-6 lg:p-8 text-center hover:bg-primary-foreground/15 transition-colors",style:{animationDelay:`${t*100}ms`},children:[u.jsx("div",{className:"font-display text-3xl lg:text-4xl font-bold text-accent mb-2",children:e.value}),u.jsx("div",{className:"text-primary-foreground/80 text-sm lg:text-base",children:e.label})]},t))})]})})]}),VT=[{name:"Blackstone",url:"https://www.blackstone.com"},{name:"Diamond Rock",url:"https://www.drhc.com"},{name:"Gem Capital Partners",url:"https://www.gemcapitalpartners.com"},{name:"Hotel Investment Partners",url:"https://www.hipartners.com"},{name:"Monarch Alternative Capital",url:"https://www.monarchlp.com"},{name:"Prime Group USA",url:"https://www.primegroupusa.com"},{name:"RushSt Gaming",url:"https://www.rushstreetgaming.com"},{name:"Starwood Capital",url:"https://starwoodcapital.com"},{name:"Sunstone Hotel Investors",url:"https://www.sunstonehotels.com"},{name:"T2 Hospitality",url:"https://www.t2hospitality.com"},{name:"The Related Companies",url:"https://www.related.com"},{name:"TMGOC Ventures",url:"https://www.tmgoc.com"},{name:"Wheelock Street Capital",url:"https://www.wheelockst.com"}],Op=[{name:"American Campus Communities",url:"https://www.americancampus.com"},{name:"Cornell University",url:"https://www.cornell.edu"},{name:"Schwarzman Scholars (Beijing)",url:"https://www.schwarzmanscholars.org"}],qT=[{name:"1Hotels",url:"https://www.1hotels.com"},{name:"AC Hotels",url:"https://www.marriott.com/ac-hotels"},{name:"Anantara Resorts (Maldives)",url:"https://www.anantara.com/en/dhigu-maldives"},{name:"Andaz Miami Beach",url:"https://www.hyatt.com/andaz/miamb-andaz-miami-beach"},{name:"Auberge Resorts",url:"https://aubergeresorts.com"},{name:"Boca Raton Resort & Club",url:"https://www.bocaresort.com"},{name:"Carneros Resort",url:"https://www.carnerosresort.com"},{name:"Center Parcs (UK)",url:"https://www.centerparcs.co.uk"},{name:"Conrad Hotels",url:"https://www.hilton.com/en/conrad"},{name:"Doubletree Hotels",url:"https://www.hilton.com/en/doubletree"},{name:"Doubletree by Hilton (Berlin)",url:"https://www.hilton.com/en/doubletree"},{name:"Four Seasons",url:"https://www.fourseasons.com"},{name:"Four Seasons, Hualalai",url:"https://www.fourseasons.com/hualalai"},{name:"Four Seasons, Ko'Olina",url:"https://www.fourseasons.com/oahu"},{name:"Four Seasons, Maui",url:"https://www.fourseasons.com/maui"},{name:"Grand Wailea Resort",url:"https://www.grandwailea.com"},{name:"Great Wolf Lodge",url:"https://www.greatwolf.com"},{name:"Hilton",url:"https://www.hilton.com"},{name:"Hotel Del Coronado",url:"https://www.hoteldel.com"},{name:"Hyatt",url:"https://www.hyatt.com"},{name:"JW Marriott",url:"https://www.marriott.com/jw-marriott"},{name:"Loew's Hotels",url:"https://www.loewshotels.com"},{name:"Mama Shelter",url:"https://www.mamashelter.com"},{name:"Mandarin Oriental",url:"https://www.mandarinoriental.com"},{name:"Mangia's Resorts",url:"https://www.mangias.com"},{name:"Marriott",url:"https://www.marriott.com"},{name:"Moxy Hotels",url:"https://www.marriott.com/moxy-hotels"},{name:"Ritz Carlton",url:"https://www.ritzcarlton.com"},{name:"Rivers Casinos",url:"https://www.riverscasino.com"},{name:"Sofitel",url:"https://www.sofitel.com"},{name:"Tetra, Palo Alto",url:"https://www.tetrahotels.com"},{name:"The Cosmopolitan",url:"https://www.cosmopolitanlasvegas.com"},{name:"The Shepherd Hotel",url:"https://www.theshepherdhotel.com"},{name:"Turtle Bay Resort",url:"https://www.turtlebayresort.com"},{name:"Waldorf Astoria",url:"https://www.hilton.com/en/waldorf-astoria"},{name:"Waldorf Astoria, Jerusalem",url:"https://www.hilton.com/en/waldorf-astoria/jerusalem"},{name:"Warner Resorts (UK)",url:"https://www.warnerleisurehotels.co.uk"}],Ip=[{name:"Celebrity Cruises",url:"https://www.celebritycruises.com"},{name:"Fisher Island Club",url:"https://www.fisherislandclub.com"},{name:"Lauderdale Yacht Club",url:"https://www.lauderdaleyc.com"},{name:"Little Houses Group (UK)",url:"https://www.littlehousesgroup.com"},{name:"Premier Club at The Boca Raton",url:"https://www.bocaresort.com"},{name:"Williams Island Club",url:"https://www.williamsisland.com"}],$p=[{name:"Alsea Zena (Spain)",url:"https://www.alsea.net"},{name:"AN Grup (Spain)",url:"https://angrup.com"},{name:"Darden Restaurants",url:"https://www.darden.com"},{name:"Gordon Ramsay Restaurants",url:"https://www.gordonramsayrestaurants.com"},{name:"José Andrés Group",url:"https://www.joseandres.com"}
213,{name:"Kin Khao (SF)",url:"https://www.kinkhao.com"},{name:"Le Sirenuse (Surf Club, Miami)",url:"https://www.lesirenuse.it"},{name:"Morimoto",url:"https://www.morimotorestaurant.com"},{name:"Nari (San Francisco)",url:"https://www.narisf.com"},{name:"Ruby Tuesday",url:"https://www.rubytuesday.com"},{name:"Smokey Bones",url:"https://www.smokeybones.com"},{name:"TGI Friday's",url:"https://www.tgifridays.com"},{name:"The Fresh Market",url:"https://www.thefreshmarket.com"}],_i=({clients:e,direction:t="left"})=>{const r=t==="left"?"animate-marquee":"animate-marquee-reverse";return u.jsxs("div",{className:"relative w-full overflow-hidden",children:[u.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-16 md:w-32 bg-gradient-to-r from-muted/50 to-transparent z-10 pointer-events-none"}),u.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-16 md:w-32 bg-gradient-to-l from-muted/50 to-transparent z-10 pointer-events-none"}),u.jsx("div",{className:`flex items-center ${r} hover:[animation-play-state:paused]`,children:[...e,...e].map((n,s)=>u.jsxs("div",{className:"flex items-center",children:[u.jsx("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground/60 hover:text-primary transition-all duration-200 font-display text-lg md:text-xl font-semibold hover:scale-105 whitespace-nowrap px-4 md:px-6",children:n.name}),u.jsx("span",{className:"text-muted-foreground/30 text-xl",children:"•"})]},`${n.name}-${s}`))})]})},KT=()=>u.jsxs("section",{className:"py-12 bg-muted/50 border-y border-border overflow-hidden",children:[u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("p",{className:"text-center text-muted-foreground text-sm mb-8 uppercase tracking-wider",children:"Trusted by Industry Leaders"})}),u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-center text-xs text-muted-foreground/70 uppercase tracking-widest mb-3",children:"Private Equity & Investment"}),u.jsx(_i,{clients:VT,direction:"left"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-center text-xs text-muted-foreground/70 uppercase tracking-widest mb-3",children:"Hotels & Resorts"}),u.jsx(_i,{clients:qT,direction:"right"})]}),Ip.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-center text-xs text-muted-foreground/70 uppercase tracking-widest mb-3",children:"Clubs & Cruise Lines"}),u.jsx(_i,{clients:Ip,direction:"left"})]}),Op.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-center text-xs text-muted-foreground/70 uppercase tracking-widest mb-3",children:"Education & Campus"}),u.jsx(_i,{clients:Op,direction:"right"})]}),$p.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-center text-xs text-muted-foreground/70 uppercase tracking-widest mb-3",children:"Restaurants & Food Markets"}),u.jsx(_i,{clients:$p,direction:"left"})]})]})]}),Ft=({eyebrow:e,title:t,description:r,centered:n=!0,light:s=!1})=>u.jsxs("div",{className:`max-w-3xl ${n?"mx-auto text-center":""}`,children:[e&&u.jsx("span",{className:"inline-block text-accent font-medium text-sm tracking-wider uppercase mb-3",children:e}),u.jsx("h2",{className:`font-display text-3xl md:text-4xl lg:text-5xl font-bold mb-4 ${s?"text-primary-foreground":"text-foreground"}`,children:t}),r&&u.jsx("p",{className:`text-lg ${s?"text-primary-foreground/80":"text-muted-foreground"}`,children:r})]}),GT=[{icon:Co,title:"Hotel Profit & Performance",description:"Comprehensive operational audits and profit optimization strategies that typically deliver 20-30% GOP improvement."},{icon:hv,title:"Restaurant Growth Strategy",description:"Menu engineering, concept development, and revenue optimization for hotel restaurants and independent F&B outlets."},{icon:ov,title:"Asset & Project Management",description:"From acquisition due diligence to renovation oversight, we protect and enhance your hospitality investments."},{icon:dv,title:"Systems Implementation",description:"POS, inventory, and operational technology solutions that drive efficiency and provide actionable insights."}],JT=()=>u.jsx("section",{className:"py-20 lg:py-28",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx(Ft,{eyebrow:"What We Do",title:"Hospital
213ity Consulting That Delivers Results",description:"We specialize in turning underperforming F&B operations into profit centers through proven strategies and hands-on execution."}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mt-16",children:GT.map((e,t)=>u.jsxs("div",{className:"group bg-card border border-border rounded-xl p-6 hover:border-accent hover:shadow-lg transition-all duration-300",children:[u.jsx("div",{className:"w-12 h-12 bg-accent/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-accent/20 transition-colors",children:u.jsx(e.icon,{className:"text-accent",size:24})}),u.jsx("h3",{className:"font-display text-xl font-semibold mb-3 text-foreground",children:e.title}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description})]},t))}),u.jsx("div",{className:"text-center mt-12",children:u.jsx(nt,{asChild:!0,variant:"outline",size:"lg",children:u.jsxs(Re,{to:"/services",children:["Explore All Services",u.jsx(nr,{className:"ml-2",size:18})]})})})]})}),QT=[{id:1,title:"Luxury Resort Portfolio Turnaround",client:"Private Equity Firm",result:"32% F&B GOP Increase",description:"Transformed underperforming restaurants across 12 luxury properties, identifying $1.2M in annual savings.",tags:["F&B Optimization","Multi-Property"]},{id:2,title:"Urban Hotel Restaurant Revamp",client:"Independent Hotel Group",result:"45% Revenue Growth",description:"Complete concept redesign and menu engineering that turned a struggling outlet into a neighborhood destination.",tags:["Concept Development","Menu Engineering"]},{id:3,title:"Convention Hotel F&B Overhaul",client:"Major Brand Property",result:"$800K Revenue Identified",description:"Streamlined banquet operations and implemented new technology, dramatically improving margins.",tags:["Banquets","Technology"]},{id:4,title:"All-Inclusive Resort Portfolio F&B Transformation",client:"Caribbean & Latin America",result:"12–15% Labor Cost Reduction",description:"Comprehensive F&B assessment across four resorts, identifying six-figure savings per property through centralized production, portion control, and demand-driven scheduling.",tags:["All-Inclusive","Portfolio Optimization"]},{id:5,title:"3-Star to 5-Star Resort Transformation",client:"Sardinia & Sicily Properties",result:"35% ADR Increase",description:"Transformed 6 three-star properties in Sardinia and Sicily into five-star resorts, dramatically elevating guest experience and driving significant rate growth.",tags:["Resort Transformation","ADR Growth"]}],YT=()=>u.jsx("section",{className:"py-20 lg:py-28 bg-muted/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx(Ft,{eyebrow:"Proven Results",title:"Success Stories That Speak for Themselves",description:"See how we've helped hospitality operators unlock hidden profit potential and transform their F&B operations."}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mt-16",children:QT.map(e=>u.jsxs("div",{className:"group bg-card border border-border rounded-xl overflow-hidden hover:shadow-xl transition-all duration-300",children:[u.jsxs("div",{className:"bg-primary px-6 py-4 flex items-center gap-3",children:[u.jsx(Co,{className:"text-accent",size:20}),u.jsx("span",{className:"text-primary-foreground font-semibold",children:e.result})]}),u.jsxs("div",{className:"p-6 space-y-4",children:[u.jsx("div",{className:"text-sm text-accent font-medium",children:e.client}),u.jsx("h3",{className:"font-display text-xl font-semibold text-foreground group-hover:text-accent transition-colors",children:e.title}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description}),u.jsx("div",{className:"flex flex-wrap gap-2",children:e.tags.map(t=>u.jsx("span",{className:"bg-muted text-muted-foreground text-xs px-3 py-1 rounded-full",children:t},t))})]})]},e.id))}),u.jsx("div",{className:"text-center mt-12",children:u.jsx(nt,{asChild:!0,size:"lg",className:"bg-accent text-accent-foreground hover:bg-accent/90",children:u.jsxs(Re,{to:"/case-studies",children:["View All Case Studies",u.jsx(nr,{className:"ml-2",size:18})]})})})]})}
213),XT=[{quote:"Next Hospitality transformed our F&B operations across our entire portfolio. Their hands-on approach and deep industry knowledge delivered results that exceeded our expectations.",author:"VP of Operations",company:"Private Equity Hospitality Fund"},{quote:"The team identified cost savings we'd overlooked for years. Their systematic approach to F&B optimization is unlike anything else in the industry.",author:"General Manager",company:"Luxury Resort Property"},{quote:"Working with Next Hospitality was a game-changer. They helped us reimagine our restaurant concept and increase revenue by 40% within the first year.",author:"Director of F&B",company:"Urban Boutique Hotel"}],ZT=()=>u.jsx("section",{className:"py-20 lg:py-28 bg-primary",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx(Ft,{eyebrow:"Client Testimonials",title:"What Our Clients Say",light:!0}),u.jsx("div",{className:"grid md:grid-cols-3 gap-8 mt-16",children:XT.map((e,t)=>u.jsxs("div",{className:"bg-primary-foreground/5 backdrop-blur-sm border border-primary-foreground/10 rounded-xl p-8 relative",children:[u.jsx($1,{className:"text-accent/40 absolute top-6 right-6",size:32}),u.jsxs("p",{className:"text-primary-foreground/90 leading-relaxed mb-6 relative z-10",children:['"',e.quote,'"']}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold text-primary-foreground",children:e.author}),u.jsx("div",{className:"text-primary-foreground/60 text-sm",children:e.company})]})]},t))})]})}),eC=["Wall Street Journal","Yahoo Finance","Hotel Business","Hospital
213ity Net","Restaurant Business"],tC=()=>u.jsx("section",{className:"py-12 border-b border-border",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx("p",{className:"text-center text-muted-foreground text-sm mb-6 uppercase tracking-wider",children:"As Featured In"}),u.jsx("div",{className:"flex flex-wrap justify-center items-center gap-6 md:gap-10",children:eC.map(e=>u.jsx("div",{className:"text-muted-foreground/50 hover:text-muted-foreground transition-colors font-medium text-sm md:text-base",children:e},e))})]})}),rC=()=>u.jsx("section",{className:"py-20 lg:py-28",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"bg-gradient-to-br from-primary via-primary to-navy-light rounded-2xl p-8 md:p-16 text-center relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-accent/10 rounded-full blur-3xl"}),u.jsx("div",{className:"absolute bottom-0 left-0 w-48 h-48 bg-gold-light/10 rounded-full blur-3xl"}),u.jsxs("div",{className:"relative z-10 max-w-2xl mx-auto space-y-6",children:[u.jsx(ih,{className:"w-12 h-12 text-accent mx-auto"}),u.jsxs("h2",{className:"font-display text-3xl md:text-4xl lg:text-5xl font-bold text-primary-foreground",children:["Ready to Unlock Your Property's",u.jsx("span",{className:"text-accent",children:" Hidden Potential?"})]}),u.jsx("p",{className:"text-primary-foreground/80 text-lg",children:"Schedule a complimentary 30-minute discovery call to discuss your F&B challenges and explore how we can help drive profitability."}),u.jsx(nt,{asChild:!0,size:"lg",className:"bg-accent text-accent-foreground hover:bg-accent/90 text-lg px-10",children:u.jsxs(Re,{to:"/contact",children:["Book Your Discovery Call",u.jsx(nr,{className:"ml-2",size:20})]})}),u.jsx("p",{className:"text-primary-foreground/50 text-sm",children:"No commitment required • Get actionable insights"})]})]})})}),nC=()=>u.jsxs(Jn,{children:[u.jsxs(Gn,{children:[u.jsx("title",{children:"Maximize Hotel Exit Value | 35-55% GOP Lift | Next Hospitality"}),u.jsx("meta",{name:"description",content:"We deliver 35-55% GOP lifts for PE firms and hotel owners—directly increasing exit valuations. At 15x EBITDA, every $1M NOI = $15M+ added value. Book a discovery call."}),u.jsx("meta",{name:"keywords",content:"hotel exit valuation consulting, PE hotel portfolio optimization, hotel F&B consulting, hotel NOI improvement, hotel EBITDA improvement, hospitality asset management"}),u.jsx("link",{rel:"canonical",href:"https://nexthospitality.com/"}),u.jsx("meta",{property:"og:title",content:"Maximize Hotel Exit Value | 35-55% GOP Lift | Next Hospitality"}),u.jsx("meta",{property:"og:description",content:"We deliver 35-55% GOP lifts for PE firms and hotel owners—directly increasing exit valuations. $100M+ incremental NOI identified."}),u.jsx("meta",{property:"og:type",content:"website"}),u.jsx("meta",{property:"og:url",content:"https://nexthospitality.com/"}),u.jsx("meta",{property:"og:image",content:"https://nexthospitality.com/images/og-image.jpg"}),u.jsx("meta",{property:"og:image:width",content:"1200"}),u.jsx("meta",{property:"og:image:height",content:"640"}),u.jsx("meta",{property:"og:site_name",content:"Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:"Maximize Hotel Exit Value | 35-55% GOP Lift | Next Hospitality"}),u.jsx("meta",{name:"twitter:description",content:"We deliver 35-55% GOP lifts for PE firms and hotel owners—directly increasing exit valuations. $100M+ incremental NOI identified."}),u.jsx("meta",{name:"twitter:image",content:"https://nexthospitality.com/images/og-image.jpg"}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization","@id":"https://nexthospitality.com/#organization",name:"Next Hospitality Advisors",alternateName:"Next Hospitality",description:"Hotel F&B consulting firm specializing in exit value optimization, GOP improvement, and asset management for PE-backed hotel portfolios and resorts.",url:"https://nexthospital
213ity.com",logo:"https://nexthospitality.com/images/og-image.jpg",image:"https://nexthospitality.com/images/og-image.jpg",telephone:"+1-561-302-7491",email:"[email protected]",foundingDate:"2018",founder:{"@type":"Person",name:"Douglas Zeif",jobTitle:"Principal & Founder"},address:[{"@type":"PostalAddress",addressLocality:"Boca Raton",addressRegion:"FL",addressCountry:"US"},{"@type":"PostalAddress",addressLocality:"Westport",addressRegion:"CT",addressCountry:"US"},{"@type":"PostalAddress",addressLocality:"Madrid",addressCountry:"ES"}],areaServed:["United States","Europe","Global"],knowsAbout:["Hotel F&B Optimization","Hotel Exit Valuation","Restaurant Consulting","Hospitality Asset Management","Menu Engineering","Hotel GOP Improvement","PE Portfolio Optimization"],sameAs:["https://www.linkedin.com/company/next-hospitality-advisors","https://dougzeif.substack.com"],contactPoint:{"@type":"ContactPoint",telephone:"+1-561-302-7491",contactType:"sales",email:"[email protected]",availableLanguage:["English","Spanish"]},priceRange:"$$$$"})}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite","@id":"https://nexthospitality.com/#website",url:"https://nexthospitality.com",name:"Next Hospitality Advisors",description:"Hotel F&B consulting and hospitality asset management",publisher:{"@id":"https://nexthospitality.com/#organization"}})})]}),u.jsx(WT,{}),u.jsx(KT,{}),u.jsx(JT,{}),u.jsx(YT,{}),u.jsx(ZT,{}),u.jsx(tC,{}),u.jsx(rC,{})]}),sC="/assets/profit-graph-CrSIIdLx.png",iC="/assets/resort-fb-program-BA8Curch.png",oC="/assets/asset-management-hotel-DxjtrNAu.png",aC="/assets/systems-implementation-C3KRTOsY.png",lC="/assets/restaurant-growth-CXFdWC33.jpg",cC=[{icon:Co,title:"Hotel Profit & Performance",description:"Comprehensive operational audits and profit optimization strategies for hotel F&B operations.",benefits:["Full operational diagnostic and benchmarking","Labor cost optimization and scheduling","Purchasing and inventory management","Revenue management strategies","P&L analysis and action planning"],ideal:"Hotel owners, GMs, and PE firms seeking to improve F&B margins",outcome:"35-55% typical GOP improvement",showGraph:!0},{icon:hv,title:"Restaurant Growth Strategy",description:"Menu engineering, concept development, and revenue optimization for hotel and independent restaurants.",benefits:["Menu engineering and pricing optimization","Concept development and repositioning","Guest experience enhancement","Marketing and revenue strategies","Competitive analysis and market positioning"],ideal:"Hotel F&B directors and independent restaurant groups",outcome:"25-45% revenue growth potential",image:lC},{icon:R1,title:"F&B Program Development",description:"End-to-end F&B program design for new properties, renovations, and brand conversions.",benefits:["Concept creation and brand development","Space planning and layout optimization","Kitchen and bar equipment placement and specifications","Procurement analysis and vendor negotiation","Operational standards and SOPs","Training program development","Pre-opening planning and execution"],ideal:"Developers, owners planning new F&B outlets",outcome:"Launch-ready F&B operations",image:iC,quote:"We build labor efficiencies into the programming from minute 1."},{icon:ov,title:"Asset & Project Management",description:"From acquisition due diligence to renovation oversight for hospitality investments.",benefits:["Acquisition due diligence and valuation","Renovation and CapEx planning","Project management and oversight","Asset repositioning strategies","Performance monitoring and reporting"],ideal:"PE firms, REITs, and hospitality investors",outcome:"Protected investments, maximized returns",image:oC},{icon:dv,title:"Systems Implementation",description:"POS, inventory, and operational technology solutions that drive efficiency.",benefits:["Technology needs assessment","POS and PMS integration","Inventory and recipe management systems","Reporting and analytics setup","Staff training and change management"],ideal:"Properties seeking operational technology upgrades",outcome:"Streamlined operations, better data insights",image:aC}],uC=()=>u.jsxs(Jn,{children:[u.jsxs(Gn,{children:[u.jsx("title",{children:"Hotel F&B & Asset Management Services | Next Hospital
213ity"}),u.jsx("meta",{name:"description",content:"Expert consulting for hotel profit improvement, restaurant growth, and asset management. 35-55% typical GOP improvement. Maximize your portfolio's valuation."}),u.jsx("meta",{name:"keywords",content:"hotel consulting services, F&B program development, hospitality asset management, restaurant growth strategy, hotel profit optimization"}),u.jsx("link",{rel:"canonical",href:"https://nexthospitality.com/services"}),u.jsx("meta",{property:"og:title",content:"Hotel F&B & Asset Management Services | Next Hospitality"}),u.jsx("meta",{property:"og:description",content:"Expert consulting for hotel profit improvement, restaurant growth, and asset management. 35-55% typical GOP improvement."}),u.jsx("meta",{property:"og:type",content:"website"}),u.jsx("meta",{property:"og:url",content:"https://nexthospitality.com/services"}),u.jsx("meta",{property:"og:site_name",content:"Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:"Hotel F&B & Asset Management Services | Next Hospitality"}),u.jsx("meta",{name:"twitter:description",content:"Expert consulting for hotel profit improvement, restaurant growth, and asset management. 35-55% typical GOP improvement."}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Service",provider:{"@type":"Organization","@id":"https://nexthospitality.com/#organization",name:"Next Hospitality Advisors"},serviceType:"Hotel F&B Consulting",areaServed:"Global",hasOfferCatalog:{"@type":"OfferCatalog",name:"Hotel Consulting Services",itemListElement:[{"@type":"Offer",itemOffered:{"@type":"Service",name:"Hotel Profit & Performance",description:"Comprehensive operational audits and profit optimization strategies for hotel F&B operations"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Restaurant Growth Strategy",description:"Menu engineering, concept development, and revenue optimization for hotel and independent restaurants"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"F&B Program Development",description:"End-to-end F&B program design for new properties, renovations, and brand conversions"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Asset & Project Management",description:"From acquisition due diligence to renovation oversight for hospitality investments"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Systems Implementation",description:"POS, inventory, and operational technology solutions that drive efficiency"}}]}})}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What results can I expect from hotel F&B consulting?",acceptedAnswer:{"@type":"Answer",text:"Our clients typically see 35-55% GOP (Gross Operating Profit) improvement. At 15x EBITDA multiples, every $1M increase in NOI can add $15M+ to your property's valuation."}},{"@type":"Question",name:"How long does a typical hotel F&B consulting engagement take?",acceptedAnswer:{"@type":"Answer",text:"Engagement length varies based on scope. Initial assessments take 2-4 weeks, while full operational transformations typically span 3-6 months with ongoing support options available."}},{"@type":"Question",name:"Do you work with independent hotels or only hotel portfolios?",acceptedAnswer:{"@type":"Answer",text:"We work with both independent hotels and multi-property portfolios. Our team has experience with luxury resorts, full-service hotels, PE-owned portfolios, and independent restaurant groups."}},{"@type":"Question",name:"What is included in a discovery call?",acceptedAnswer:{"@type":"Answer",text:"Our complimentary 30-minute discovery call includes discussion of your current F&B challenges, initial assessment of improvement opportunities, overview of our approach and methodology, and Q&A with next steps if there's a fit."}}]})})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-gradient-to-br from-primary via-primary to-navy-light",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsx("span",{className:"inline-block text-accent font-medium text-sm tracking-wider up
213percase mb-4",children:"Our Services"}),u.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-bold text-primary-foreground mb-6",children:"Hospitality Consulting That Drives Results"}),u.jsx("p",{className:"text-primary-foreground/80 text-lg md:text-xl",children:"From operational audits to technology implementation, we provide end-to-end solutions that transform F&B performance."})]})})}),u.jsx("section",{className:"py-20 lg:py-28",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"space-y-16",children:cC.map((e,t)=>u.jsxs("div",{className:`grid lg:grid-cols-2 gap-12 items-center ${t%2===1?"lg:flex-row-reverse":""}`,children:[u.jsxs("div",{className:t%2===1?"lg:order-2":"",children:[u.jsx("div",{className:"w-16 h-16 bg-accent/10 rounded-xl flex items-center justify-center mb-6",children:u.jsx(e.icon,{className:"text-accent",size:32})}),u.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold mb-4 text-foreground",children:e.title}),u.jsx("p",{className:"text-muted-foreground text-lg mb-6",children:e.description}),u.jsx("div",{className:"space-y-3 mb-6",children:e.benefits.map((r,n)=>u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx(oh,{className:"text-accent shrink-0 mt-0.5",size:18}),u.jsx("span",{className:"text-foreground",children:r})]},n))}),e.quote&&u.jsxs("blockquote",{className:"border-l-4 border-accent pl-4 py-2 mb-6 italic text-foreground/90",children:['"',e.quote,'"']}),u.jsxs("div",{className:"bg-muted rounded-lg p-4 mb-6",children:[u.jsxs("p",{className:"text-sm",children:[u.jsx("span",{className:"font-semibold text-foreground",children:"Ideal for:"})," ",u.jsx("span",{className:"text-muted-foreground",children:e.ideal})]}),u.jsxs("p",{className:"text-sm mt-2",children:[u.jsx("span",{className:"font-semibold text-foreground",children:"Expected outcome:"})," ",u.jsx("span",{className:"text-accent font-medium",children:e.outcome})]})]}),u.jsx(nt,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90",children:u.jsxs(Re,{to:"/contact",children:["Discuss This Service",u.jsx(nr,{className:"ml-2",size:18})]})})]}),u.jsx("div",{className:`bg-muted/50 rounded-2xl h-80 flex items-center justify-center overflow-hidden ${t%2===1?"lg:order-1":""}`,children:e.showGraph?u.jsx("img",{src:sC,alt:"Profit growth graph showing 35-55% GOP improvement",className:"w-full h-full object-contain p-4"}):e.image?u.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover"}):u.jsx(e.icon,{className:"text-muted-foreground/20",size:120})})]},t))})})}),u.jsx("section",{className:"py-20 bg-muted/30",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx(Ft,{eyebrow:"Get Started",title:"Not Sure Which Service You Need?",description:"Schedule a complimentary discovery call and we'll help identify the right approach for your property."}),u.jsx(nt,{asChild:!0,size:"lg",className:"mt-8 bg-accent text-accent-foreground hover:bg-accent/90",children:u.jsxs(Re,{to:"/contact",children:["Book a Discovery Call",u.jsx(nr,{className:"ml-2",size:18})]})})]})})]}),dC="/assets/tfm-roasting-plant-BLQhQnkp.jpg",hC="/assets/tfm-deli-hot-bar-DI7VNoQj.jpg",fC="/assets/tfm-deli-counter-G6iHhkAE.jpg",pC=[{id:10,icon:ta,title:"Transforming F&B Performance Across a Portfolio of All-Inclusive & Luxury Resorts",client:"Caribbean & Latin America",clientType:"4-Star & 5-Star Resort Portfolio",result:"12–15% Labor Cost Reduction",revenue:"Six-Figure Savings Per Property",challenge:"A portfolio of four resorts in the Caribbean and Latin America — two five-star and two four-star properties — faced systemic F&B inefficiencies despite strong demand and premium positioning. Decentralized kitchen operations led to duplicated labor, buffet overproduction exceeded 30% waste levels, protein portions were oversized, scheduling was static regardless of occupancy, and several outlets lacked clear identity and concept cohesion.",solution:"Conducted full-scale operational deep dives across all properties using the Profit → Product → People framework. Recommended centralized production hubs, dynamic buffet planning tied to occupancy, standardized portion sizes, staggered demand-driven labor scheduling, upgraded reservation technology, and concept repositioning for underperforming venues.",outcomes:["20–30%+ reduction in food waste through buffet optimization","Six-figure annual savings per property via portion control and procurement","12–15% labor cost reduction without service degradation","Stronger concept clarity and enhanced guest experience across outlets"],tags:["All-Inclusive","Portfolio Optimization","Centralized Production"]},{id:9,icon:ea,title:"Transforming Grocery Foodservice into a Growth Engine",client:"National Specialty Grocery Retailer",clientType:"150+ Stores Nationwide",result:"+28% YoY Store Sales",revenue:"Expanded HMR Share of Wallet",challenge:"A national specialty grocery chain set out to drive greater in-store trial, increase Home Meal Replacement (HMR) penetration, and modernize its prepared food experience — without compromising operational efficiency at scale. The goal was not incremental change, but a step-change in how foodservice performed inside the store.",solution:"Reimagined the store's foodservice ecosystem as a collection of high-impact, destination-driven experiences, each engineered for speed, scalability, and margin. Key initiatives included Ready-to-Travel Meals, Custom Salad & Salad Bar Program, Made-to-Order Pizza Station, and The Roasting Plant Coffee Partnership. Scope extended from concept ideation through full operational programming, including menu development, equipment strategy, labor optimization, packaging guidance, and POS integration.",outcomes:["+28% year-over-year increase in total store sales","Significant lift in in-store trial and dwell time","Expanded Home Meal Replacement share of wallet","Improved daypart performance, particularly mornings and dinner","A foodservice platform scalable across 150+ locations"],tags:["Grocery F&B","Concept Strategy","Operational Execution"],images:[dC,fC,hC]},{id:1,icon:ta,title:"F&B Optimization & Experience Activation",client:"Indian Ocean",clientType:"Ultra-Luxury Island Resort",result:"20-25% Labor Reduction",revenue:"Improved F&B GOP",challenge:"An ultra-luxury, multi-island resort with numerous standalone restaurants and bars, extensive in-villa dining, and high ADRs during peak season. Despite strong demand, F&B profitability exhibited significant volatility between peak and shoulder seasons, with structural inefficiencies limiting flow-through and overall GOP performance.",solution:"Conducted on-site F&B visitation and strategic review focu
213sed on pricing strategy, menu engineering, labor deployment, buffet optimization, beverage strategy, procurement and waste reduction, concept clarity, and guest experience activation. Introduced dynamic pricing models aligned with villa ADRs, re-engineered menus, and implemented forecast-driven scheduling.",outcomes:["20-25% potential F&B staffing reduction without service degradation","50% buffet footprint reduction with improved guest experience","Sustainability initiatives as both cost reducers and storytelling tools","Stronger shoulder-season performance and pricing resilience"],tags:["Ultra-Luxury","Labor Optimization","Experience Activation"]},{id:3,icon:ta,title:"Luxury Hotel, Private Club & Golf Resort Repositioning",client:"Dallas Metroplex",clientType:"PE Portfolio Asset",result:"GOP: <6% → 32%",revenue:"$40M+ Annual F&B Revenue",challenge:"A large-scale luxury destination with 400+ guest rooms, a private Members' Club, two championship golf courses, and a major fitness and health club. Food & Beverage was significantly underperforming financially at acquisition, with GOP below 6%. Staffing levels were disconnected from demand, menus lacked product sourcing and portion discipline, and banquet/catering demand was under-monetized.",solution:"Re-concepted and renovated the primary restaurant, transformed the lobby bar into an all-day revenue hub, reimagined the Members' Club as a lifestyle destination, integrated F&B into the fitness club experience. Rebuilt staffing guides based on demand patterns, menu-engineered all offerings, and trained sales teams on SPA™ (Stretch Price Architecture) for dynamic pricing.",outcomes:["~29% revenue lift by Year Two","F&B GOP increased from <6% to 32%","F&B revenues exceeded $40 million annually","Enhanced asset attractiveness and valuation at sale"],tags:["F&B Repositioning","Private Club","Value Creation"]},{id:2,icon:ea,title:"Luxury Coastal Resort Transformation",client:"Spain",clientType:"New Ownership",result:"€2M+ Annual Labor Savings",revenue:"Multi-Million Euro GOP Lift",challenge:"A large-scale luxury coastal resort with multiple restaurants, bars, banquet facilities, and leisure amenities. F&B had become overly complex, labor-heavy, and misaligned with guest behavior — resulting in excess staffing, redundant food production across outlets, loss-leading prestige venues, and inconsistent service delivery despite luxury positioning.",solution:"Implemented forecast-driven scheduling with four-hour labor blocks, reducing F&B headcount by ~25%. Consolidated ~70% of food production into a central kitchen model. Closed or re-concepted underperforming venues, reduced buffet footprint by 50%, and identified targeted CapEx recommendations for group and events enablement.",outcomes:["€2M+ in annual labor savings identified","~25% reduction in overall F&B headcount","50% reduction in buffet footprint with improved guest experience","Stronger alignment between F&B performance and asset valuation"],tags:["Labor Optimization","Central Kitchen","Strategic Simplification"]},{id:5,icon:ea,title:"Luxury Resort Portfolio Turnaround",client:"Private Equity Firm",clientType:"PE Investor",result:"32% F&B GOP Increase",revenue:"$1.2M Annual Savings",challenge:"A PE firm acquired a portfolio of 12 luxury resorts with consistently underperforming F&B operations. Labor costs were 8% above industry benchmarks, food costs were uncontrolled, and guest satisfaction scores were declining.",solution:"We conducted comprehensive operational audits across all properties, implemented standardized purchasing programs, redesigned labor scheduling, and introduced new menu engineering practices.",outcomes:["32% improvement in F&B GOP across the portfolio","$1.2M in annual cost savings identified and captured","Guest satisfaction scores improved by 18 points","Standardized operations enabling better benchmarking"],tags:["F&B Optimization","Multi-Property","PE Portfolio"]},{id:4,icon:D1,title:"Urban Hotel Restaurant Revamp",client:"Independent Hotel Group",clientType:"Hotel Operator",result:"45% Revenue Growth",revenue:"$500K Additional Revenue",challenge:"An independent boutique hotel's signature restaurant was losing money and failing to attract local diners. The outdated concept no longer matched the neighborhood's evolving demographics.",solution:"Complete concept redesign including new culinary direction, interior refresh recommendations, menu engineering, pricing optimization, and a local marketing strategy to position the restaurant as a neighborhood destination.",outcomes:["45% increase in restaurant revenue within 12 months","Restaurant profitability achieved within 6 months","40% increase in local (non-guest) covers","Featured in local food publications"],tags:["Concept Development","Menu Engineering","Turnaround"]},{id:7,icon:ta,title:"Convention Hotel F&B Overhaul",client:"Major Brand Property",clientType:"Branded Hotel",result:"$800K Revenue Identified",revenue:"22% Margin Improvement",challenge:"A 500-room convention hotel was struggling with banquet profitability and losing group business to competitors. Technology was outdated and processes were inefficient.",solution:"Streamlined banquet operations, implemented new event management te
213chnology, renegotiated vendor contracts, and developed new F&B packages designed to increase capture rates.",outcomes:["$800K in new revenue opportunities identified","22% improvement in banquet margins","15% increase in F&B capture rate from groups","Reduced event setup time by 30%"],tags:["Banquets & Catering","Technology","Convention Hotels"]},{id:6,icon:ea,title:"Resort F&B Pre-Opening Success",client:"Development Company",clientType:"Developer",result:"On-Time, On-Budget Launch",revenue:"Beat Pro Forma by 15%",challenge:"A developer was opening a new 300-room resort with five F&B outlets and needed to develop concepts, operational standards, and recruit and train the entire F&B team.",solution:"Full-service F&B program development including concept creation, menu development, SOPs, vendor selection, recruiting support, and comprehensive pre-opening training.",outcomes:["All outlets opened on schedule","F&B revenue exceeded pro forma by 15% in year one","Staff retention rate 20% above industry average","Guest satisfaction scores exceeded brand standards"],tags:["Pre-Opening","F&B Development","Resort"]},{id:8,icon:Co,title:"Quick-Service Concept Optimization",client:"Airport Hospitality Group",clientType:"QSR Operator",result:"28% Throughput Increase",revenue:"$350K Annual Revenue Lift",challenge:"An airport QSR operator was experiencing long wait times, customer complaints, and missed sales during peak periods. The operation couldn't keep up with passenger volume.",solution:"Redesigned kitchen workflow, implemented new POS configuration for speed, optimized menu for faster preparation, and introduced mobile ordering capabilities.",outcomes:["28% increase in throughput during peak hours","Average wait time reduced from 8 to 4 minutes","$350K in additional annual revenue captured","Customer satisfaction improved by 25 points"],tags:["QSR","Operations","Airport F&B"]}],mC=()=>u.jsxs(Jn,{children:[u.jsxs(Gn,{children:[u.jsx("title",{children:"Hotel Consulting Results | 50%+ GOP Improvements | Case Studies"}),u.jsx("meta",{name:"description",content:"See how we've helped hotels achieve 50%+ GOP lift and millions in NOI. Real results from luxury resorts, PE portfolios, and branded hotels."}),u.jsx("meta",{name:"keywords",content:"hotel consulting case studies, F&B optimization results, hotel GOP improvement examples, hospitality turnaround"}),u.jsx("link",{rel:"canonical",href:"https://nexthospitality.com/case-studies"}),u.jsx("meta",{property:"og:title",content:"Hotel Consulting Results | 50%+ GOP Improvements"}),u.jsx("meta",{property:"og:description",content:"See how we've helped hotels achieve 50%+ GOP lift and millions in NOI. Real results from luxury resorts and PE portfolios."}),u.jsx("meta",{property:"og:type",content:"website"}),u.jsx("meta",{property:"og:url",content:"https://nexthospitality.com/case-studies"}),u.jsx("meta",{property:"og:site_name",content:"Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:"Hotel Consulting Results | 50%+ GOP Improvements"}),u.jsx("meta",{name:"twitter:description",content:"See how we've helped hotels achieve 50%+ GOP lift and millions in NOI. Real results from luxury resorts."})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-gradient-to-br from-primary via-primary to-navy-light",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsx("span",{className:"inline-block text-accent font-medium text-sm tracking-wider uppercase mb-4",children:"Case Studies"}),u.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-bold text-primary-foreground mb-6",children:"Real Results for Real Properties"}),u.jsx("p",{className:"text-primary-foreground/80 text-lg md:text-xl",children:"See how we've helped hospitality operators unlock profit potential and transform underperforming F&B operations."})]})})}),u.jsx("section",{className:"py-20 lg:py-28",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"space-y-12",children:pC.map((e,t)=>u.jsx("div",{className:"bg-card border border-border rounded-2xl overflow-hidden hover:shadow-lg transition-shadow",children:u.jsxs("div",{className:"grid lg:grid-cols-3",children:[u.jsxs("div",{className:"bg-primary p-8 lg:p-10 flex flex-col justify-center",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 text-accent mb-4",children:[u.jsx(e.icon,{size:20}),u.jsx("span",{className:"text-sm font-medium",children:e.clientType})]}),u.jsx("h3",{className:"font-display text-2xl md:text-3xl font-bold text-primary-foreground mb-2",children:e.result}),u.jsx("p",{className:"text-accent font-semibold text-lg mb-4",children:e.revenue}),u.jsx("div",{className:"flex flex-wrap gap-2 mt-auto",children:e.tags.map(r=>
213u.jsx("span",{className:"bg-primary-foreground/10 text-primary-foreground/80 text-xs px-3 py-1 rounded-full",children:r},r))})]}),u.jsxs("div",{className:"lg:col-span-2 p-8 lg:p-10",children:[u.jsx("div",{className:"text-sm text-accent font-medium mb-2",children:e.client}),u.jsx("h3",{className:"font-display text-2xl font-bold text-foreground mb-6",children:e.title}),u.jsxs("div",{className:"space-y-4 mb-6",children:[u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-foreground mb-1",children:"The Challenge"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:e.challenge})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-foreground mb-1",children:"Our Solution"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:e.solution})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Key Outcomes"}),u.jsx("ul",{className:"grid sm:grid-cols-2 gap-2",children:e.outcomes.map((r,n)=>u.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[u.jsx(Co,{className:"text-accent shrink-0 mt-0.5",size:14}),r]},n))})]}),e.images&&e.images.length>0&&u.jsxs("div",{className:"mt-6",children:[u.jsx("h4",{className:"font-semibold text-foreground mb-3",children:"Project Gallery"}),u.jsx("div",{className:"grid grid-cols-3 gap-3",children:e.images.map((r,n)=>u.jsx("div",{className:"aspect-[4/3] rounded-lg overflow-hidden",children:u.jsx("img",{src:r,alt:`${e.title} - Image ${n+1}`,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-300"})},n))})]})]})]})]})},e.id))})})}),u.jsx("section",{className:"py-20 bg-muted/30",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx(Ft,{eyebrow:"Your Success Story",title:"Ready to See Results Like These?",description:"Schedule a discovery call to discuss how we can help optimize your F&B operations."}),u.jsx(nt,{asChild:!0,size:"lg",className:"mt-8 bg-accent text-accent-foreground hover:bg-accent/90",children:u.jsxs(Re,{to:"/contact",children:["Book a Discovery Call",u.jsx(nr,{className:"ml-2",size:18})]})})]})})]}),gC="/assets/douglas-zeif-CbjKUJxd.jpg",yC="/assets/paul-fiala-CIV7ou8M.jpg",vC="/assets/alfonso-valero-sMPsL0hD.png",wC="/assets/mary-dargenis-piB9tPjC.jpg",xC="/assets/susan-terry-DMT9ATrx.jpeg",bC="/assets/peter-vestinos-CWHpKNJz.jpg",_C="/assets/conrad-maldives-C79Q1Lhv.png",SC=[{icon:L1,title:"Results-Driven",description:"We measure our success by the tangible improvements we deliver to your bottom line."},{icon:M1,title:"Hands-On Partnership",description:"We work alongside your team, not from an ivory tower. Real implementation, real results."},{icon:N1,title:"Innovation + Experience",description:"15+ years of hospitality expertise combined with fresh thinking and modern solutions."},{icon:P1,title:"Excellence in Execution",description:"From strategy to implementation, we ensure every recommendation becomes reality."}],kC=[{name:"Douglas Zeif",role:"Principal & Founder",photo:gC,bio:"Doug Zeif is the principal of Next Hospitality Advisors, drawing from nine years overseeing food and beverage operations globally for The Blackstone Group's hotel and resort portfolio numbering over 100 full-service assets."},{name:"Paul J. Fiala",role:"Partner & Chief Operating Officer",photo:yC,bio:"Paul has more than 25 years of food and beverage leadership experience and is recognized as an innovative, creative thinker. Most recently, Paul led food and beverage for Four Seasons Hotels and Resorts, introducing over 20 new restaurant and bar concepts."},{name:"Alfonso Valero",role:"Managing Director, EMEA",photo:vC,bio:"Alfonso has more than 30 years of experience in the restaurant business having directed and grown several national brands within the EMEA during his tenure with Grupo Zena and Alsea Spain. He has in-depth knowledge of operations, concepting, and marketing."},{name:"Mary D'Argenis-Fernandez",role:"Training Partner",photo:wC,bio:"Mary D'Argenis-Fernandez brings a lifelong passion for hospitality excellence. Her keen eye for guest experience and service standards makes her an invaluable partner in developing world-class training programs."},{name:"Susan Terry",role:"Director of Culinary",photo:xC,bio:"Susan Terry is a seasoned veteran of the hospital
213ity industry. At Hilton Hotels and Resorts, she directed strategic F&B operations for 42 managed hotels across North America, the Caribbean, Mexico, and South America."},{name:"Peter Vestinos",role:"Beverage Director",photo:bC,bio:"Peter Vestinos is an award-winning, nationally recognized bartender and spirits professional with over 18 years of experience designing cocktail programs, training bartenders and sales teams, and consulting with spirit brands."}],EC=()=>u.jsxs(Jn,{children:[u.jsxs(Gn,{children:[u.jsx("title",{children:"About Next Hospitality | 50+ Years Hotel F&B Expertise"}),u.jsx("meta",{name:"description",content:"Meet the team behind $100M+ in identified NOI for hotel portfolios. Hands-on hospitality operators, not just consultants."}),u.jsx("meta",{name:"keywords",content:"hospitality consulting team, hotel F&B experts, hotel operations consultants, Doug Zeif, Paul Fiala"}),u.jsx("link",{rel:"canonical",href:"https://nexthospitality.com/about"}),u.jsx("meta",{property:"og:title",content:"About Next Hospitality | 50+ Years Hotel F&B Expertise"}),u.jsx("meta",{property:"og:description",content:"Meet the team behind $100M+ in identified NOI for hotel portfolios. Hands-on hospital
213ity operators, not just consultants."}),u.jsx("meta",{property:"og:type",content:"website"}),u.jsx("meta",{property:"og:url",content:"https://nexthospitality.com/about"}),u.jsx("meta",{property:"og:site_name",content:"Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:"About Next Hospitality | 50+ Years Hotel F&B Expertise"}),u.jsx("meta",{name:"twitter:description",content:"Meet the team behind $100M+ in identified NOI for hotel portfolios. Hands-on hospitality operators."}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"AboutPage",mainEntity:{"@type":"Organization",name:"Next Hospitality Advisors",founder:{"@type":"Person",name:"Douglas Zeif",jobTitle:"Principal & Founder"},employee:[{"@type":"Person",name:"Paul J. Fiala",jobTitle:"Partner & Chief Operating Officer"},{"@type":"Person",name:"Alfonso Valero",jobTitle:"Managing Director, EMEA"},{"@type":"Person",name:"Mary D'Argenis-Fernandez",jobTitle:"Training Partner"},{"@type":"Person",name:"Susan Terry",jobTitle:"Director of Culinary"},{"@type":"Person",name:"Peter Vestinos",jobTitle:"Beverage Director"}]}})})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-gradient-to-br from-primary via-primary to-navy-light",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsx("span",{className:"inline-block text-accent font-medium text-sm tracking-wider uppercase mb-4",children:"About Us"}),u.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-bold text-primary-foreground mb-6",children:"Your Partners in Hospitality Excellence"}),u.jsx("p",{className:"text-primary-foreground/80 text-lg md:text-xl",children:"We're not just consultants—we're hospitality operators who've sat in your seat and understand what it takes to drive real results."})]})})}),u.jsx("section",{className:"py-20 lg:py-28",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{children:[u.jsx("span",{className:"inline-block text-accent font-medium text-sm tracking-wider uppercase mb-4",children:"Our Story"}),u.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold mb-6 text-foreground",children:"Born from the Realization That Hospitality F&B Can Do Better"}),u.jsxs("div",{className:"space-y-4 text-muted-foreground",children:[u.jsx("p",{children:"After two decades leading F&B operations for major hotel brands and PE-owned portfolios, our founder saw the same pattern repeated across the industry: F&B operations that underperformed their potential, not from lack of effort, but from lack of specialized focus."}),u.jsx("p",{children:"Next Hospitality was founded on a simple premise: hotels deserve F&B consulting that combines deep operational expertise with modern analytical approaches. We don't just deliver reports—we implement solutions and stay until results are achieved."}),u.jsx("p",{children:"Today, we've helped optimize F&B operations across 100+ hotel properties, delivering over $100M in untapped NOI opportunities and averaging 25-30% GOP improvements for our clients."})]})]}),u.jsxs("div",{className:"rounded-2xl h-96 overflow-hidden relative",children:[u.jsx("img",{src:_C,alt:"Conrad Maldives, Rangali Island",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute bottom-4 right-4 bg-background/80 backdrop-blur-sm px-3 py-1.5 rounded-lg",children:u.jsx("span",{className:"text-sm font-medium text-foreground",children:"Conrad Maldives, Rangali Island"})})]})]})})}),u.jsx("section",{className:"py-20 lg:py-28 bg-muted/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx(Ft,{eyebrow:"Our Approach",title:"What Sets Us Apart",description:"We believe in partnership, not presentations. Here's how we work."}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mt-16",children:SC.map((e,t)=>u.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 hover:border-accent transition-colors",children:[u.jsx("div",{className:"w-12 h-12 bg-accent/10 rounded-lg flex items-center justify-center mb-4",children:u.jsx(e.icon,{className:"text-accent",size:24})}),u.jsx("h3",{className:"font-display text-xl font-semibold mb-3 text-foreground",children:e.title}),u.jsx("p",{className:"text-muted-foreground text-sm",children:e.description})]},t))})]})}),u.jsx("section",{className:"py-20 lg:py-28",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx(Ft,{eyebrow:"Our Team",title:"Meet the Experts Behind Your Success",description:"A team of hospital
213ity veterans with hands-on operational experience."}),u.jsx("div",{className:"grid md:grid-cols-3 gap-8 mt-16",children:kC.map((e,t)=>u.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden hover:shadow-lg transition-shadow",children:[u.jsx("div",{className:"h-64 overflow-hidden",children:u.jsx("img",{src:e.photo,alt:e.name,className:"w-full h-full object-cover object-top"})}),u.jsxs("div",{className:"p-6",children:[u.jsx("h3",{className:"font-display text-xl font-semibold text-foreground",children:e.name}),u.jsx("p",{className:"text-accent font-medium text-sm mb-3",children:e.role}),u.jsx("p",{className:"text-muted-foreground text-sm",children:e.bio})]})]},t))})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-primary",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx(Ft,{eyebrow:"Why Choose Us",title:"The Next Hospitality Difference",light:!0}),u.jsx("div",{className:"grid md:grid-cols-2 gap-6 mt-12 max-w-4xl mx-auto",children:["Operator-led: We've run hotels and restaurants, not just advised them","Results-guaranteed: We tie our success to your outcomes","Hands-on implementation: We don't just recommend, we execute","Industry connections: Access to our vendor and talent network","Proven methodology: Refined over 100+ engagements","Ongoing support: Partnership that extends beyond the project"].map((e,t)=>u.jsxs("div",{className:"flex items-start gap-3 bg-primary-foreground/5 rounded-lg p-4",children:[u.jsx(oh,{className:"text-accent shrink-0 mt-0.5",size:20}),u.jsx("span",{className:"text-primary-foreground",children:e})]},t))})]})}),u.jsx("section",{className:"py-20",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx(Ft,{eyebrow:"Let's Connect",title:"Ready to Work Together?",description:"Schedule a discovery call to discuss how we can help transform your F&B operations."}),u.jsx(nt,{asChild:!0,size:"lg",className:"mt-8 bg-accent text-accent-foreground hover:bg-accent/90",children:u.jsxs(Re,{to:"/contact",children:["Book a Discovery Call",u.jsx(nr,{className:"ml-2",size:18})]})})]})})]}),TC="/assets/benzinga-logo-CUrQANCA.svg",CC="/assets/power-list-logo-EFMxI_jZ.jpg",jC=[{id:1,title:"Echelon Kitchen and Bar Named 2026 James Beard Award Semifinalist",publication:"James Beard Foundation",date:"January 2026",excerpt:"Echelon Kitchen and Bar, a Next Hospitality Advisors client, has been recognized as a semifinalist for the prestigious 2026 James Beard Awards, representing the pinnacle of culinary recognition in the US.",link:"https://www.jamesbeard.org/stories/james-beard-award-semifinalists-2026",logoText:"James Beard Foundation",logoColor:"#c41230"},{id:2,title:"'It was unbelievable': Echelon staff react to James Beard Award semifinalist recognition",publication:"MLive",date:"January 2026",excerpt:"Doug Zeif, founder and partner at Echelon, shares his reaction to the restaurant earning a spot on the James Beard Award semifinalist shortlist for Best New Restaurant—the only semifinalist from Michigan in this category.",link:"https://www.mlive.com/news/2026/01/it-was-unbelievable-echelon-staff-react-to-james-beard-award-semifinalist-recognition.html",logoText:"MLive",logoColor:"#00923f"},{id:3,title:"These are Michigan's 2026 James Beard Award Semifinalists",publication:"MSN",date:"January 2026",excerpt:"A look at Michigan's semifinalists for the 2026 James Beard Awards, featuring Echelon Kitchen and Bar as the state's sole representative in the Best New Restaurant category.",link:"https://www.msn.com/en-us
213/foodanddrink/foodnews/these-are-michigan-s-2026-james-beard-award-semifinalists/ar-AA1UFRmw",logoText:"MSN",logoColor:"#0078d4"}],PC=[{id:1,title:"Tiki Bar-inspired speakeasy Huña opens below Echelon in Downtown Ann Arbor",publication:"WXYZ Detroit",date:"February 2026",excerpt:"A new tiki cocktail bar from the team behind James Beard Award-nominated Echelon Kitchen & Bar in Ann Arbor officially opened, featuring tropical-inspired cocktails and a speakeasy atmosphere.",link:"https://www.wxyz.com/news/tiki-bar-inspired-speakeasy-huna-opens-below-echelon-in-downtown-ann-arbor",logoText:"WXYZ Detroit",logoColor:"#0033a0"},{id:2,title:"New Tiki Bar Below Echelon in Ann Arbor Will Be a Tropical Paradise",publication:"MSN",date:"January 2026",excerpt:"A look at the upcoming tiki bar concept opening beneath Echelon Kitchen & Bar in downtown Ann Arbor, promising a tropical escape experience.",link:"https://www.msn.com/en-us/foodanddrink/foodnews/new-tiki-bar-below-echelon-in-ann-arbor-will-be-a-tropical-paradise/ar-AA1UW6Xm",logoText:"MSN",logoColor:"#0078d4"},{id:3,title:"Meet Doug Zeif",publication:"Bold Journey",date:"September 2025",excerpt:"An in-depth conversation with Doug Zeif about his entrepreneurial journey, leadership philosophy, and the growth of Next Hospitality Advisors.",link:"https://boldjourney.com/meet-doug-zeif-2/",logoText:"Bold Journey",logoColor:"#1a1a1a"},{id:4,title:"Echelon Kitchen & Bar opens in downtown Ann Arbor",publication:"The Michigan Daily",date:"February 2025",excerpt:"Doug Zeif, owner and founder of Echelon, discusses the vegetable-forward dining experience featuring artisanal cuisine focused on locally s
213ourced Michigan ingredients.",link:"https://www.michigandaily.com/news/business/wood-fired-and-vegetable-forward-echelon-kitchen-bar-opens-in-downtown-ann-arbor/",logoText:"The Michigan Daily",logoColor:"#00274c"},{id:5,title:"Echelon Kitchen & Bar Is Ann Arbor's New Restaurant for Michigan-Grown Ingredients",publication:"Eater Detroit",date:"January 2025",excerpt:"A look inside the new wood-fired, vegetable-forward restaurant showcasing Michigan's agricultural diversity in the heart of downtown Ann Arbor.",link:"https://detroit.eater.com/2025/1/23/24350580/echelon-ann-arbor-local-produce-open-photos-images",logoText:"Eater Detroit",logoColor:"#e60000"},{id:6,title:"Echelon Kitchen & Bar sets opening date in downtown Ann Arbor",publication:"MLive",date:"January 2025",excerpt:"Echelon Kitchen & Bar announces its opening date at 200 S. Main St., bringing a highly anticipated dining destination to downtown Ann Arbor.",link:"https://www.mlive.com/news/ann-arbor/2025/01/echelon-kitchen-bar-sets-opening-date-in-downtown-ann-arbor.html",logoText:"MLive",logoColor:"#00923f"},{id:7,title:"Echelon Kitchen & Bar to Open in Ann Arbor, Michigan",publication:"FSR Magazine",date:"December 2024",excerpt:"Echelon Kitchen & Bar, a new wood-fired, vegetable-forward restaurant, is designed as a love letter to the local bounty of Michigan, which ranks among the nation's top agricultural states.",link:"https://www.fsrmagazine.com/industry-news/echelon-kitchen-bar-to-open-in-ann-arbor-michigan/",logoText:"FSR Magazine",logoColor:"#1a1a1a"},{id:8,title:"Echelon Kitchen & Bar in Ann Arbor spotlights Michigan's agricultural riches",publication:"Metro Times",date:"December 2024",excerpt:"A new culinary destination set to redefine farm-to-table dining in Michigan, showcasing the state's rich agricultural diversity through a wood-fired, vegetable-forward menu.",link:"https://www.metrotimes.com/food-drink/echelon-kitchen-and-bar-in-ann-arbor-spotlights-michigans-agricultural-riches-38127310/",logoText:"Metro Times",logoColor:"#e31837"},{id:9,title:"Meet Doug Zeif",publication:"Bold Journey",date:"December 2024",excerpt:"An introduction to Doug Zeif, exploring his background, career path, and insights on building success in the hospitality industry.",link:"https://boldjourney.com/meet-doug-zeif/",logoText:"Bold Journey",logoColor:"#1a1a1a"},{id:10,title:"Meet Doug Zeif",publication:"CanvasRebel",date:"December 2024",excerpt:"A feature on his professional journey, scaling Next Hospitality Advisors, and his operational philosophy developed during his tenure at The Cheesecake Factory and Blackstone.",link:"https://canvasrebel.com/meet-doug-zeif/",logoText:"CanvasRebel",logoColor:"#000000"},{id:11,title:"Hidden Gems: Meet Doug Zeif of NEXT HOSPITALITY ADVISORS",publication:"VoyageMichigan",date:"September 2024",excerpt:"A detailed interview covering Doug Zeif's career from The Cheesecake Factory to Blackstone and his work transforming hospitality operations across luxury properties.",link:"https://voyagemichigan.com/interview/hidden-gems-meet-doug-zeif-of-next-hospitality-advisors/",logoText:"Voyage",logoColor:"#e91e63"},{id:12,title:"Next Hospitality Advisors utilizes innovative framework to bring levels of growth to the hospitality industry",publication:"Benzinga",date:"July 2023",excerpt:"Next Hospitality Advisors is utilizing an innovative framework to help restructure how hospital
213ity companies improve their operations and bring new levels of success by elevating guest experience, revenue and profitability.",link:"https://www.benzinga.com/pressreleases/23/07/g33347067/next-hospitality-advisors-utilizes-innovative-framework-to-bring-levels-of-growth-to-the-hospitali",logo:TC},{id:13,title:"Next Hospitality Advisors utilizes innovative framework to bring levels of growth to the hospitality industry",publication:"Yahoo Finance",date:"July 2023",excerpt:"Next Hospitality Advisors is utilizing an innovative framework to help restructure how hospitality companies improve their operations and bring new levels of success by elevating guest experience, revenue and profitability.",link:"https://finance.yahoo.com/news/next-hospitality-advisors-utilizes-innovative-140900330.html",logoText:"Yahoo Finance",logoColor:"#6001d2"},{id:14,title:"Industry Leading Hospitality Consultants Announce New Headquarters in European Expansion",publication:"Newsfile",date:"July 2023",excerpt:"Coverage of the firm's expansion into Europe to serve clients in the U.K., France, and Spain with new headquarters in Madrid.",link:"https://www.newsfilecorp.com/release/173545/Industry-Leading-Hospitality-Consultants-Announce-New-Headquarters-in-European-Expansion",logoText:"Newsfile",logoColor:"#0066cc"},{id:15,title:"Doug Zeif - Restaurant Unstoppable Podcast",publication:"Restaurant Unstoppable",date:"2023",excerpt:"Podcast episode featuring Doug Zeif discussing hospitality asset management, F&B optimization strategies, and lessons from decades in the industry.",link:"https://restaurantunstoppable.com/doug-zeif-next/",logoText:"Restaurant Unstoppable",logoColor:"#ff6600"},{id:16,title:"Nation's Restaurant News Power List 2020: Reader Picks",publication:"Nation's Restaurant News",date:"April 2020",excerpt:"Doug Zeif was recognized as one of the industry's top 50 most influential people in foodservice, honoring his expertise in hospital
213ity asset management and F&B optimization.",link:"https://www.nrn.com/people/power-list-2020-reader-picks",logo:CC},{id:17,title:"Doug Zeif Named Executive of the Year in Hospitality Management",publication:"24-7 Press Release",date:"July 2015",excerpt:"Recognition for three decades of experience and leadership in hospitality management and F&B operations.",link:"https://www.24-7pressrelease.com/press-release/410239/doug-zeif-has-been-named-an-executive-of-the-year-in-hospitality-management",logoText:"24-7 Press",logoColor:"#333333"}],RC=()=>u.jsxs(Jn,{children:[u.jsxs(Gn,{children:[u.jsx("title",{children:"Press & Media Coverage | Next Hospitality Advisors"}),u.jsx("meta",{name:"description",content:"Read the latest news and media coverage about Next Hospitality Advisors. Featured in Benzinga, Yahoo Finance, Nation's Restaurant News, and more."}),u.jsx("meta",{name:"keywords",content:"Next Hospitality news, Doug Zeif press, hospitality consulting media, hotel F&B consulting news"}),u.jsx("link",{rel:"canonical",href:"https://nexthospitality.com/press"}),u.jsx("meta",{property:"og:title",content:"Press & Media Coverage | Next Hospitality Advisors"}),u.jsx("meta",{property:"og:description",content:"Read the latest news and media coverage about Next Hospitality Advisors. Featured in Benzinga, Yahoo Finance, and more."}),u.jsx("meta",{property:"og:type",content:"website"}),u.jsx("meta",{property:"og:url",content:"https://nexthospitality.com/press"}),u.jsx("meta",{property:"og:site_name",content:"Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:"Press & Media Coverage | Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:description",content:"Read the latest news and media coverage about Next Hospitality Advisors."})]}),u.jsx("section",{className:"pt-32 pb-20 bg-gradient-to-b from-primary/5 to-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx(Ft,{eyebrow:"News & Media",title:"Press & Media",description:"Stay up to date with the latest news, insights, and media coverage featuring our work in hospitality consulting."})})}),u.jsx("section",{className:"py-16 bg-gradient-to-b from-accent/5 to-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"h-px flex-1 bg-accent/30"}),u.jsxs("h2",{className:"text-xl font-display font-semibold text-accent flex items-center gap-2",children:[u.jsx("span",{className:"text-2xl",children:"🏆"}),"James Beard Recognition"]}),u.jsx("div",{className:"h-px flex-1 bg-accent/30"})]}),u.jsx("div",{className:"grid gap-6",children:jC.map(e=>u.jsx("article",{className:"group p-8 bg-card rounded-lg border-2 border-accent/30 hover:border-accent transition-all duration-300 hover:shadow-xl shadow-lg",children:u.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mb-3",children:[e.logo?u.jsx("img",{src:e.logo,alt:e.publication,className:"h-10 w-auto"}):e.logoText?u.jsx("span",{className:"font-bold text-sm",style:{color:e.logoColor},children:e.logoText}):u.jsx("span",{className:"font-medium text-accent",children:e.publication}),u.jsx("span",{children:"•"}),u.jsx("span",{children:e.date})]}),u.jsx("h3",{className:"text-xl font-display font-semibold text-foreground mb-3 group-hover:text-accent transition-colors",children:e.title}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.excerpt})]}),u.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-accent hover:text-accent/80 font-medium transition-colors shrink-0",children:["Read More",u.jsx(Au,{className:"w-4 h-4"})]})]})},e.id))})]})})}),u.jsx("section",{className:"py-20 bg-background",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsx("h2",{className:"text-xl font-display font-semibold text-foreground mb-8 text-center",children:"More Press Coverage"}),u.jsx("div",{className:"grid gap-8",children:PC.map(e=>u.jsx("article",{className:"group p-8 bg-card rounded-lg border border-border hover:border-accent/50 transition-all duration-300 hover:shadow-lg",children:u.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mb-3",children:[e.logo?u.jsx("img",{src:e.logo,alt:e.publication,className:"h-10 w-auto"}):e.logoText?u.jsx("span",{className:"font-bold text-sm",style:{color:e.logoColor},children:e.logoText}):u.jsx("span",{className:"font-medium text-accent",children:e.publication}),u.jsx("span",{children:"•"}),u.jsx("span",{children:e.date})]}),u.jsx("h3",{className:"text-xl font-display font-semibold text-foreground mb-3 group-hover:text-accent transition-colors",children:e.title}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.excerpt})]}),u.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-accent hover:text-accent/80 font-medium transition-colors shrink-0",children:["Read More",u.jsx(Au,{className:"w-4 h-4"})]})]})},e.id))})]})})})]}),Lp=[{id:0,title:"Intentional Dining, Part II",excerpt:"When theory meets reality. A few weeks ago, I wrote about casual dining losing its soul. Then we put that philosophy to the test — with Echelon Kitchen & Bar earning a James Beard semi-finalist nod, and a tiki bar in the basement with a membership waiting list. What happens when intent drives every decision.",author:"Doug Zeif",date:"March 11, 2026",readTime:"6 min read",category:"Industry Reflection",externalUrl:"https://substack.com/@dougzeif/note/c-226022015"}
213,{id:1,title:"Why Most Hospitality Concepts Should Never Scale",excerpt:"What actually scales in hospitality isn't what most people think. A provocative truth shared at TrendsConnect2026: most hospitality businesses should never scale—not because the idea is bad, but because scaling requires a different set of capabilities.",author:"Doug Zeif",date:"January 20, 2026",readTime:"7 min read",category:"Industry Reflection",externalUrl:"https://dougzeif.substack.com/p/why-most-hospitality-concepts-should"},{id:1,title:"What Casual Dining Taught Me — and Why I Ultimately Moved Beyond It",excerpt:"How proximity to world-class chefs reshaped my ambition and led to a more intentional approach to building restaurants. A journey from casual dining roots to discovering what it means to create something truly distinctive.",author:"Doug Zeif",date:"January 13, 2026",readTime:"6 min read",category:"Industry Reflection",externalUrl:"https://dougzeif.substack.com/p/what-casual-dining-taught-me-and"},{id:1,title:"A Requiem for The Cheesecake Factory, Friendship Heights",excerpt:"A personal reflection on the closure of The Cheesecake Factory at Friendship Heights—exploring what made it special, the memories it holds, and what its departure says about the changing landscape of casual dining in America.",author:"Doug Zeif",date:"January 1, 2026",readTime:"8 min read",category:"Industry Reflection",externalUrl:"https://dougzeif.substack.com/p/a-requiem-for-the-cheesecake-factory"},{id:1,title:"Complimentary Plastic Bottles of Water Is Lazy Hospitality",excerpt:"And it's costing hotels more than they think. Globally, hotels and resorts are estimated to use 20–30 billion single-use plastic water bottles every year. That figure alone is staggering—but it only hints at the broader environmental, operational, and financial impact hiding in plain sight.",author:"Doug Zeif",date:"December 17, 2024",readTime:"6 min read",category:"Sustainability",externalUrl:"https://dougzeif.substack.com/p/complimentary-plastic-bottles-of"},{id:1,title:"F&B Optimization in Hotels & Resorts",excerpt:"Hot on the heels of our appearance and subsequent dialogues with Owners and Investors at #IHIFEMEA2024, it became even more apparent to us that a real call to action is required by operators.",author:"Doug Zeif",date:"April 24, 2024",readTime:"5 min read",category:"F&B Strategy",externalUrl:"https://nexthospitality.com/fb-optimization-in-hotels-resorts/"},{id:2,title:"Unlocking Hidden Value in Hotel Assets: Maximize Profitability in F&B",excerpt:"With the debt markets potentially loosening up due to the Federal Reserve cutting interest rates, the hospitality industry is expected to witness an influx of hotel assets being put up for sale.",author:"Doug Zeif",date:"December 26, 2023",readTime:"6 min read",category:"Asset Value",externalUrl:"https://nexthospitality.com/unlocking-hidden-value-in-hotel-assets-maximize-profitability-in-fb-and-attract-potential-buyers/"},{id:3,title:"Rethinking Employee Scheduling in Hotels & Resorts",excerpt:"The current practice of scheduling employees for standard 8-hour shifts in hotels and resorts overlooks the dynamic nature of the hospitality industry. Let's explore alternative approaches.",author:"Doug Zeif",date:"November 3, 2023",readTime:"7 min read",category:"Labor Management",externalUrl:"https://nexthospitality.com/rethinking-employee-scheduling-in-hotels-resorts-maximizing-efficiency-and-flexibility/"},{id:4,title:"Hotel Brands and the Need for a New Approach in Restaurant & Bar Concepts",excerpt:"Hotel brands have been trying for years to get owners to adopt their restaurant and bar concepts. The idea is to create uniformity and consistency, but is this the right approach?",author:"Doug Zeif",date:"October 26, 2023",readTime:"5 min read",category:"Concept Development",externalUrl:"https://nexthospitality.com/hotel-brands-and-the-need-for-a-new-approach-in-restaurant-bar-concepts/"},{id:5,title:"Why Hotels Should Reconsider Posting Banquet and Catering Prices Online",excerpt:"For years, hotels and resorts have relied on posting banquet and catering prices online. However, it's time to rethink this practice and explore alternative approaches.",author:"Doug Zeif",date:"October 20, 2023",readTime:"5 min read",category:"Revenue Strategy",externalUrl:"https://nexthospital
213ity.com/why-hotels-and-resorts-should-reconsider-posting-banquet-and-catering-prices-online/"},{id:6,title:"Dynamic Banquet & Catering Pricing",excerpt:"Let's talk about dynamic pricing and why hotels and resorts find it difficult to implement it effectively in their banquet and catering menus and seasonal offerings.",author:"Doug Zeif",date:"October 16, 2023",readTime:"6 min read",category:"Pricing Strategy",externalUrl:"https://nexthospitality.com/dynamic-banquet-catering-pricing/"},{id:7,title:"Surge/Dynamic Pricing in Restaurants",excerpt:"In today's ever-evolving business landscape, surge pricing has become a game-changer for various industries. Learn from hotels, Uber/Lyft, and airlines.",author:"Doug Zeif",date:"October 12, 2023",readTime:"6 min read",category:"Pricing Strategy",externalUrl:"https://nexthospitality.com/surge-dynamic-pricing-in-restaurants/"},{id:8,title:"Elevating Non-Alcoholic Beverages: Presenting Sophisticated Alternatives",excerpt:"In the culinary world, non-alcoholic beverages are often labeled as mocktails — a term that carries negative connotations. It's time for restaurants to adopt a more sophisticated approach.",author:"Doug Zeif",date:"October 4, 2023",readTime:"4 min read",category:"Beverage Program",externalUrl:"https://nexthospitality.com/elevating-non-alcoholic-beverages-presenting-sophisticated-alternatives/"},{id:9,title:'"Classic" or Not…',excerpt:"Are you ready to embark on a culinary journey that will transport you to the golden age of deliciousness? Let's dive into the world of classics and the use of the word on restaurant menus.",author:"Doug Zeif",date:"August 31, 2023",readTime:"4 min read",category:"Menu Engineering",externalUrl:"https://nexthospitality.com/classic-or-not/"},{id:10,title:"Check Average vs. Frequency",excerpt:"Discover the secret behind hotels' revenue strategy! Ever wondered why hotels prioritize check average over enhancing value, quality, and service to drive guest frequency?",author:"Doug Zeif",date:"October 1, 2023",readTime:"5 min read",category:"Revenue Strategy",externalUrl:"https://nexthospitality.com/check-avg-vs-frequency/"}],NC=()=>u.jsxs(Jn,{children:[u.jsxs(Gn,{children:[u.jsx("title",{children:"Hotel F&B Insights & Industry Trends | Next Hospitality Blog"}),u.jsx("meta",{name:"description",content:"Expert insights on hotel F&B optimization, labor management, menu engineering, and hospitality industry trends from Next Hospitality Advisors."}),u.jsx("meta",{name:"keywords",content:"hotel F&B blog, hospitality consulting insights, restaurant optimization tips, hotel industry trends, menu engineering"}),u.jsx("link",{rel:"canonical",href:"https://nexthospitality.com/blog"}),u.jsx("meta",{property:"og:title",content:"Hotel F&B Insights & Industry Trends | Next Hospitality Blog"}),u.jsx("meta",{property:"og:description",content:"Expert insights on hotel F&B optimization, labor management, menu engineering, and hospitality industry trends."}),u.jsx("meta",{property:"og:type",content:"blog"}),u.jsx("meta",{property:"og:url",content:"https://nexthospitality.com/blog"}),u.jsx("meta",{property:"og:site_name",content:"Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:"Hotel F&B Insights & Industry Trends | Next Hospitality Blog"}),u.jsx("meta",{name:"twitter:description",content:"Expert insights on hotel F&B optimization, labor management, and hospitality industry trends."}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Blog","@id":"https://nexthospitality.com/blog/#blog",name:"The F&B Advisor Blog",description:"Expert insights on hotel F&B optimization, labor management, menu engineering, and hospitality industry trends",url:"https://nexthospitality.com/blog",publisher:{"@type":"Organization","@id":"https://nexthospitality.com/#organization",name:"Next Hospitality Advisors",logo:{"@type":"ImageObject",url:"https://nexthospitality.com/images/og-image.jpg"}},blogPost:Lp.map(e=>
213({"@type":"BlogPosting",headline:e.title,description:e.excerpt,datePublished:new Date(e.date).toISOString().split("T")[0],author:{"@type":"Person",name:e.author},publisher:{"@type":"Organization",name:"Next Hospitality Advisors"},mainEntityOfPage:e.externalUrl,articleSection:e.category}))})})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-gradient-to-br from-primary via-primary to-navy-light",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsx("span",{className:"inline-block text-accent font-medium text-sm tracking-wider uppercase mb-4",children:"Insights & Resources"}),u.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-bold text-primary-foreground mb-6",children:"The F&B Advisor Blog"}),u.jsx("p",{className:"text-primary-foreground/80 text-lg md:text-xl",children:"Strategies, trends, and insights to help you unlock the full potential of your hospitality F&B operations."})]})})}),u.jsx("section",{className:"py-20 lg:py-28",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:Lp.map(e=>u.jsx("a",{href:e.externalUrl,target:"_blank",rel:"noopener noreferrer",className:"bg-card border border-border rounded-2xl overflow-hidden hover:shadow-lg transition-shadow group block",children:u.jsxs("div",{className:"p-8",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("span",{className:"bg-accent/10 text-accent text-xs font-medium px-3 py-1 rounded-full",children:e.category}),u.jsx(Au,{size:16,className:"text-muted-foreground group-hover:text-accent transition-colors"})]}),u.jsx("h2",{className:"font-display text-xl md:text-2xl font-bold text-foreground mb-3 group-hover:text-accent transition-colors",children:e.title}),u.jsx("p",{className:"text-muted-foreground mb-6",children:e.excerpt}),u.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(ih,{size:14}),e.date]}),u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(av,{size:14}),e.readTime]})]}),u.jsxs("span",{className:"text-accent font-medium",children:["By ",e.author]})]})]})},e.id))})})}),u.jsx("section",{className:"py-20 bg-muted/30",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx(Ft,{eyebrow:"Get Expert Guidance",title:"Ready to Optimize Your F&B Operations?",description:"Schedule a discovery call to discuss how we can help transform your hotel's F&B performance."}),u.jsx(nt,{asChild:!0,size:"lg",className:"mt-8 bg-accent text-accent-foreground hover:bg-accent/90",children:u.jsxs(Re,{to:"/contact",children:["Book a Discovery Call",u.jsx(nr,{className:"ml-2",size:18})]})})]})})]}),Ci=b.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:qt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));Ci.displayName="Input";const Ew=b.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{className:qt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
213ing-offset-background 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",e),ref:r,...t}));Ew.displayName="Textarea";var AC="Label",Tw=b.forwardRef((e,t)=>u.jsx(Qe.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Tw.displayName=AC;var Cw=Tw;const OC=sh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),bn=b.forwardRef(({className:e,...t},r)=>u.jsx(Cw,{ref:r,className:qt(OC(),e),...t}));bn.displayName=Cw.displayName;function $l(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function IC(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?i(d.value):s(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})}const $C=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class _h extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class LC extends _h{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Mp extends _h{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Dp extends _h{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Gu;(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"})(Gu||(Gu={}));class MC{constructor(t,{headers:r={},customFetch:n,region:s=Gu.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=$C(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return IC(this,arguments,void 0,function*(r,n={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:d,timeout:f}=n;let p={},{region:h}=n;h||(h=this.region);const w=new URL(`${this.url}/${r}`);h&&h!=="any"&&(p["x-region"]=h,w.searchParams.set("forceFunctionRegion",h));let y;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",y=c):typeof c=="string"?(p["Content-Type"]="text/plain",y=c):typeof FormData<"u"&&c instanceof FormData?y=c:(p["Content-Type"]="application/json",y=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?y=JSON.stringify(c):y=c;let x=d;f&&(o=new AbortController,i=setTimeout(()=>o.abort(),f),d?(x=o.signal,d.addEventListener("abort",()=>o.abort())):x=o.signal);const g=yield this.fetch(w.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:y,signal:x}).catch(S=>{throw new LC(S)}),m=g.headers.get("x-relay-error");if(m&&m==="true")throw new Mp(g);if(!g.ok)throw new Dp(g);let v=((s=g.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return v==="application/json"?_=yield g.json():v==="application/octet-stream"||v==="application/pdf"?_=yield g.blob():v==="text/event-stream"?_=g:v==="multipart/form-data"?_=yield g.formData():_=yield g.text(),{data:_,error:null,response:g}}catch(a){return{data:null,error:a,response:a instanceof Dp||a instanceof Mp?a.context:void 0}}finally{i&&clearTimeout(i)}})}}
213var DC=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},FC=class{constructor(e){var t,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,c=i.status,d=i.statusText;if(i.ok){var f,p;if(r.method!=="HEAD"){var h;const g=await i.text();g===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((h=r.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?a=g:a=JSON.parse(g))}const y=(f=r.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),x=(p=i.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");y&&x&&x.length>1&&(l=parseInt(x[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,d="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var w;const y=await i.text();try{o=JSON.parse(y),Array.isArray(o)&&i.status===404&&(a=[],o=null,c=200,d="OK")}catch{i.status===404&&y===""?(c=204,d="No Content"):o={message:y}}if(o&&r.isMaybeSingle&&(!(o==null||(w=o.details)===null||w===void 0)&&w.includes("0 rows"))&&(o=null,c=200,d="OK"),o&&r.shouldThrowOnError)throw new DC(o)}return{error:o,data:a,count:l,status:c,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="";const l=i==null?void 0:i.cause;if(l){var c,d,f,p;const w=(c=l==null?void 0:l.message)!==null&&c!==void 0?c:"",y=(d=l==null?void 0:l.code)!==null&&d!==void 0?d:"";a=`${(f=i==null?void 0:i.name)!==null&&f!==void 0?f:"FetchError"}: ${i==null?void 0:i.message}`,a+=`
214
215Caused by: ${(p=l==null?void 0:l.name)!==null&&p!==void 0?p:"Error"}: ${w}`,y&&(a+=` (${y})`),l!=null&&l.stack&&(a+=`
216${l.stack}`)}else{var h;a=(h=i==null?void 0:i.stack)!==null&&h!==void 0?h:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},BC=class extends FC{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
216explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Fp=new RegExp("[,()]");var us=class extends BC{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Fp.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&Fp.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},zC=class{constructor(e,{headers:t={},schema:r,fetch:n}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),n&&l.append("Prefer",`count=${n}`),new us({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
2160){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new us({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),n&&l.append("Prefer",`count=${n}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((d,f)=>d.concat(Object.keys(f)),[]);if(c.length>0){const d=[...new Set(c)].map(f=>`"${f}"`);a.searchParams.set("columns",d.join(","))}}return new us({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:t}={}){var r;const n="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new us({method:n,url:s,headers:i,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new us({method:r,url:n,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},UC=class jw{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new zC(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new jw(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const d=h=>h!==null&&typeof h=="object"&&(!Array.isArray(h)||h.some(d)),f=n&&Object.values(r).some(d);f?(a="POST",c=r):n||s?(a=n?"HEAD":"GET",Object.entries(r).filter(([h,w])=>w!==void 0).map(([h,w])=>[h,Array.isArray(w)?`{${w.join(",")}}`:`${w}`]).forEach(([h,w])=>{l.searchParams.append(h,w)})):(a="POST",c=r);const p=new Headers(this.headers);return f?p.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&p.set("Prefer",`count=${i}`),new us({method:a,url:l,headers:p,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class HC{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const s=n.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
217import ws from "ws"
218new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=`
219
220Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const WC="2.91.1",VC=`realtime-js/${WC}`,qC="1.0.0",Pw="2.0.0",Bp=Pw,Ju=1e4,KC=1e3,GC=100;var Mr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Mr||(Mr={}));var Ee;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ee||(Ee={}));var Lt;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Lt||(Lt={}));var Qu;(function(e){e.websocket="websocket"})(Qu||(Qu={}));var Sn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Sn||(Sn={}));class JC{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+f.length,h=new ArrayBuffer(this.HEADER_LENGTH+p);
220let w=new DataView(h),y=0;w.setUint8(y++,this.KINDS.userBroadcastPush),w.setUint8(y++,l.length),w.setUint8(y++,a.length),w.setUint8(y++,o.length),w.setUint8(y++,c.length),w.setUint8(y++,f.length),w.setUint8(y++,r),Array.from(l,g=>w.setUint8(y++,g.charCodeAt(0))),Array.from(a,g=>w.setUint8(y++,g.charCodeAt(0))),Array.from(o,g=>w.setUint8(y++,g.charCodeAt(0))),Array.from(c,g=>w.setUint8(y++,g.charCodeAt(0))),Array.from(f,g=>w.setUint8(y++,g.charCodeAt(0)));var x=new Uint8Array(h.byteLength+n.byteLength);return x.set(new Uint8Array(h),0),x.set(new Uint8Array(n),h.byteLength),x.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,i,o,a,l]=n;return r({join_ref:s,ref:i,topic:o,event:a,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),i=r.getUint8(2),o=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const c=n.decode(t.slice(l,l+s));l=l+s;const d=n.decode(t.slice(l,l+i));l=l+i;const f=n.decode(t.slice(l,l+o));l=l+o;const p=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(n.decode(p)):p,w={type:this.BROADCAST_EVENT,event:d,payload:h};return o>0&&(w.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class Rw{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ie;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ie||(ie={}));const zp=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=QC(o,e,t,s),i),{}):{}},QC=(e,t,r,n)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=r[e];return i&&!n.includes(i)?Nw(i,o):Yu(o)},Nw=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return ej(t,r)}switch(e){case ie.bool:return YC(t);case ie.float4:case ie.float8:case ie.int2:case ie.int4:case ie.int8:case ie.numeric:case ie.oid:return XC(t);case ie.json:case ie.jsonb:return ZC(t);case ie.timestamp:return tj(t);case ie.abstime:case ie.date:case ie.daterange:case ie.int4range:case ie.int8range:case ie.money:case ie.reltime:case ie.text:case ie.time:case ie.timestamptz:case ie.timetz:case ie.tsrange:case ie.tstzrange:return Yu(t);default:return Yu(t)}},Yu=e=>e,YC=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},XC=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},ZC=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},ej=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const o=e.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>Nw(t,a))}return e},tj=e=>typeof e=="string"?e.replace(" ","T"):e,Aw=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Tc{constructor(t,r,n={},s=Ju){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHo
220oks=[],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,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Up;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Up||(Up={}));class Fi{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Fi.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Fi.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Fi.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const i=this.cloneDeep(t),o=this.transformState(r),a={},l={};return this.map(i,(c,d)=>{o[c]||(l[c]=d)}),this.map(o,(c,d)=>{const f=i[c];if(f){const p=d.map(x=>x.presence_ref),h=f.map(x=>x.presence_ref),w=d.filter(x=>h.indexOf(x.presence_ref)<0),y=f.filter(x=>p.indexOf(x.presence_ref)<0);w.length>0&&(a[c]=w),y.length>0&&(l[c]=y)}else a[c]=d}),this.syncDiff(i,{joins:a,leaves:l},n,s)}static syncDiff(t,r,n,s){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const d=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),d.length>0){const f=t[a].map(h=>h.presence_ref),p=d.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...p)}n(a,d,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const d=l.map(f=>f.presence_ref);c=c.filter(f=>d.indexOf(f.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Hp;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Hp||(Hp={}));var Bi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Bi||(Bi={}));var dr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(dr||(dr={}));class Es{constructor(t,r={config:{}},n){var s,i;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Ee.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new Tc(this,Lt.join,this.params,this.timeout),this.rejoinTimer=new Rw(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ee.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=Ee.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ee.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ee.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ee.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Lt.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new Fi(this),this.broadcastEndpointURL=Aw(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Ee.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(h=>h.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Bi.PRESENCE]&&this.bindings[Bi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},p={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(h=>t==null?void 0:t(dr.CHANNEL_ERROR,h)),this._onClose(()=>t==null?void 0:t(dr.CLOSED)),this.updateJoinPayload(Object.assign({config:p},f)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:h})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){t==null||t(dr.SUBSCRIBED);return}else{const y=this.bindings.postgres_changes,x=(w=y==null?void 0:y.length)!==null&&w!==void 0?w:0,g=[];for(let m=0;m<x;m++){const v=y[m],{filter:{event:_,schema:S,table:k,filter:E}}=v,j=h&&h[m];if(j&&j.event===_&&Es.isFilterValueEqual(j.schema,S)&&Es.isFilterValueEqual(j.table,k)&&Es.isFilterValueEqual(j.filter,E))g.push(Object.assign(Object.assign({},v),{id:j.id}));else{this.unsubscribe(),this.state=Ee.errored,t==null||t(dr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,t&&t(dr.SUBSCRIBED);return}}).receive("error",h=>{this.state=Ee.errored,t==null||t(dr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(dr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===Ee.joined&&t===Bi.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
220try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ee.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Lt.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new Tc(this,Lt.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ee.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Tc(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>GC){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=Lt;if(n&&[a,l,c,d].indexOf(o)>=0&&n!==this._joinRef())return;let p=this._onMessage(o,r,n);if(r&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(h=>{var w,y,x;return((w=h.filter)===null||w===void 0?void 0:w.event)==="*"||((x=(y=h.filter)===null||y===void 0?void 0:y.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(h=>h.callback(p,n)):(i=this.bindings[o])===null||i===void 0||i.filter(h=>{var w,y,x,g,m,v,_,S;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const k=h.id,E=(w=h.filter)===null||w===void 0?void 0:w.event;return k&&((y=r.ids)===null||y===void 0?void 0:y.includes(k))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))&&(!(!((g=h.filter)===null||g===void 0)&&g.table)||h.filter.table===((m=r.data)===null||m===void 0?void 0:m.table))}else{const k=(_=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||_===void 0?void 0:_.toLocaleLowerCase();return k==="*"||k===((S=r==null?void 0:r.event)===null||S===void 0?void 0:S.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof p=="object"&&"ids"in p){const w=p.data,{schema:y,table:x,commit_timestamp:g,type:m,errors:v}=w;p=Object.assign(Object.assign({},{schema:y,table:x,commit_timestamp:g,eventType:m,new:{},old:{},errors:v}),this._getPayloadRecords(w))}h.callback(p,n)})}_isClosed(){return this.state===Ee.closed}_isJoined(){return this.state===Ee.joined}_isJoining(){return this.state===Ee.joining}_isLeaving(){return this.state===Ee.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&Es.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Lt.close,{},t)}_onError(t){this._on(Lt.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ee.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=zp(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=zp(t.columns,t.old_record)),r}}const Cc=()=>{},oa={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},rj=[1e3,2e3,5e3,1e4],nj=1e4,sj=`
221  addEventListener("message", (e) => {
222    if (e.data.event === "start") {
223      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
224    }
225  });`;class ij{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Ju,this.transport=null,this.heartbeatIntervalMs=oa.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Cc,this.ref=0,this.reconnectTimer=null,this.vsn=Bp,this.logger=Cc,this.conn=null,this.sendBuffer=[],this.serializer
225=new JC,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${Qu.websocket}`,this.httpEndpoint=Aw(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=HC.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r}
226
227To use Realtime in Node.js, you need to provide a WebSocket implementation:
228
229Option 1: Use Node.js 22+ which has native WebSocket support
230Option 2: Install and provide the "ws" package:
231
232  npm install ws
233
234  import ws from "ws"
235  const client = new RealtimeClient(url, {
236    ...options,
237    transport: ws
238  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Mr.connecting:return Sn.Connecting;case Mr.open:return Sn.Open;case Mr.closing:return Sn.Closing;default:return Sn.Closed}}isConnected(){return this.connectionState()===Sn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new Es(`realtime:${t}`,r,this);return this.channels.push(i),i}}push(t){const{topic:r,event:n,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(KC,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 238
238heduleTimeout()},oa.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const c=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",c)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:s,payload:i,ref:o}=r,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Mr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Mr.open||this.conn.readyState===Mr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
238heduleTimeout(),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(Lt.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([sj],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const i={access_token:r,version:VC};r&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(Lt.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new Rw(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},oa.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,i,o,a,l,c,d,f,p,h;switch(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:Ju,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:oa.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Cc,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Bp,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:w=>rj[w-1]||nj,this.vsn){case qC:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(w,y)=>y(JSON.stringify(w)),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:(w,y)=>y(JSON.parse(w));break;case Pw:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var uo=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function oj(e,t,r){const n=new URL(t,e);if(r)for(const[s,i]of Object.entries(r))i!==void 0&&n.searchParams.set(s,i);return n.toString()}async function aj(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function lj(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:i,headers:o}){const a=oj(e.baseUrl,n,s),l=await aj(e.auth),c=await t(a,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),d=await c.text(),f=(c.headers.get("content-type")||"").includes("application/json"),p=f&&d?JSON.parse(d):d;if(!c.ok){const h=f?p:void 0,w=h==null?void 0:h.error;throw new uo((w==null?void 0:w.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:h})}return{status:c.status,headers:c.headers,data:p}}}}function aa(e){return e.join("�")}var cj=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:aa(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${aa(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${aa(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${aa(e.namespace)}`}),!0}catch(t){if(t instanceof uo&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof uo&&r.status===409)return;throw r}}};function ss(e){return e.join("�")}var uj=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ss(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof uo&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof uo&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},dj=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=lj({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new cj(this.client,t),this.tableOps=new uj(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
238async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Ll=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function fe(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var hj=class extends Ll{constructor(e,t,r){super(e),this.name="StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Xu=class extends Ll{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const Sh=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),fj=()=>Response,Zu=e=>{if(Array.isArray(e))return e.map(r=>Zu(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Zu(n)}),t},pj=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)},mj=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function gj(e,t){if(ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yj(e){var t=gj(e,"string");return ho(t)=="symbol"?t:t+""}function vj(e,t,r){return(t=yj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wp(Object(r),!0).forEach(function(n){vj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const jc=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},wj=async(e,t,r)=>{e instanceof await fj()&&!(r!=null&&r.noResolveJson)?e.json().then(n=>{const s=e.status||500,i=(n==null?void 0:n.statusCode)||s+"";t(new hj(jc(n),s,i))}).catch(n=>{t(new Xu(jc(n),n))}):t(new Xu(jc(e),e))},xj=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?s:(pj(n)?(s.headers=z({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),z(z({},s),r))};async function Ro(e,t,r,n,s,i){return new Promise((o,a)=>{e(r,xj(t,n,s,i)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>wj(l,a,n))})}async function fo(e,t,r,n){return Ro(e,"GET",t,r,n)}async function At(e,t,r,n,s){return Ro(e,"POST",t,n,s,r)}async function ed(e,t,r,n,s){return Ro(e,"PUT",t,n,s,r)}async function bj(e,t,r,n){return Ro(e,"HEAD",t,z(z({},r),{},{noResolveJson:!0}),n)}async function kh(e,t,r,n,s){return Ro(e,"DELETE",t,n,s,r)}var _j=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(fe(t))return{data:null,error:t};throw t}}};let Ow;Ow=Symbol.toStringTag;var Sj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Ow]="BlobDownloadBuilder",this.promise=null}asStream(){return new _j(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(fe(t))return{data:null,error:t};throw t}}};const kj={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Vp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Ej=class{constructor(e,t={},r,n){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=r,this.fetch=Sh(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,r,n){var s=this;try{let i;const o=z(z({},Vp),n);let a=z(z({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers&&(a=z(z({},a),n.headers));const c=s._removeEmptyFolders(t),d=s._getFinalPath(c),f=await(e=="PUT"?ed:At)(s.fetch,`${s.url}/object/${d}`,i,z({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(s.shouldThrowOnError)throw i;if(fe(i))return{data:null,error:i};throw i}}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);a.searchParams.set("token",t);try{let l;const c=z({upsert:Vp.upsert},n),d=z(z({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType),{data:{path:i,fullPath:(await ed(s.fetch,a.toString(),l,{headers:d})).Key},error:null}}catch(l){if(s.shouldThrowOnError)throw l;if(fe(l))return{data:null,error:l};throw l}}async createSignedUploadUrl(e,t){var r=this;try{let n=r._getFinalPath(e);const s=z({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await At(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(r.url+i.url),a=o.searchParams.get("token");if(!a)throw new Ll("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(fe(n))return{data:null,error:n};throw n}}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;try{return{data:await At(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
238stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(fe(s))return{data:null,error:s};throw s}}async copy(e,t,r){var n=this;try{return{data:{path:(await At(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key},error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(fe(s))return{data:null,error:s};throw s}}async createSignedUrl(e,t,r){var n=this;try{let s=n._getFinalPath(e),i=await At(n.fetch,`${n.url}/object/sign/${s}`,z({expiresIn:t},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${n.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(fe(s))return{data:null,error:s};throw s}}async createSignedUrls(e,t,r){var n=this;try{const s=await At(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>z(z({},o),{},{signedUrl:o.signedURL?encodeURI(`${n.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(fe(s))return{data:null,error:s};throw s}}download(e,t){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",n=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=n?`?${n}`:"",i=this._getFinalPath(e),o=()=>fo(this.fetch,`${this.url}/${r}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new Sj(o,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);try{return{data:Zu(await fo(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(fe(n))return{data:null,error:n};throw n}}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await bj(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(fe(n)&&n instanceof Xu){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&n.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&n.push(o);let a=n.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${r}${a}`)}}}async remove(e){var t=this;try{return{data:await kh(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}async list(e,t,r){var n=this;try{const s=z(z(z({},kj),t),{},{prefix:e||""});return{data:await At(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r),error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(fe(s))return{data:null,error:s};throw s}}async listV2(e,t){var r=this;try{const n=z({},e);return{data:await At(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(fe(n))return{data:null,error:n};throw n}}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const Iw="2.91.1",$w={"X-Client-Info":`storage-js/${Iw}`};var Tj=class{constructor(e,t={},r,n){this.shouldThrowOnError=!1;const s=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=z(z({},$w),t),this.fetch=Sh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const r=t.listBucketOptionsToQueryString(e);return{data:await fo(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}async getBucket(e){var t=this;try{return{data:await fo(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}async createBucket(e,t={public:!1}){var r=this;try{return{data:await At(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(fe(n))return{data:null,error:n};throw n}}async updateBucket(e,t){var r=this;try{return{data:await ed(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(fe(n))return{data:null,error:n};throw n}}async emptyBucket(e){var t=this;try{return{data:await At(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await kh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},Cj=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=z(z({},$w),t),this.fetch=Sh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await At(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}async listBuckets(e){var t=this;
238try{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return{data:await fo(t.fetch,s,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await kh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(fe(r))return{data:null,error:r};throw r}}from(e){var t=this;if(!mj(e))throw new Ll("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new dj({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}};const Eh={"X-Client-Info":`storage-js/${Iw}`,"Content-Type":"application/json"};var Lw=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function at(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var Pc=class extends Lw{constructor(e,t,r){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},jj=class extends Lw{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const Th=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Pj=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)},qp=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Rj=async(e,t,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const n=e.status||500,s=e;if(typeof s.json=="function")s.json().then(i=>{const o=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||n+"";t(new Pc(qp(i),n,o))}).catch(()=>{const i=n+"";t(new Pc(s.statusText||`HTTP ${n} error`,n,i))});else{const i=n+"";t(new Pc(s.statusText||`HTTP ${n} error`,n,i))}}else t(new jj(qp(e),e))},Nj=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return n?(Pj(n)?(s.headers=z({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,z(z({},s),r)):s};async function Aj(e,t,r,n,s,i){return new Promise((o,a)=>{e(r,Nj(t,n,s,i)).then(l=>{if(!l.ok)throw l;if(n!=null&&n.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>o(l)).catch(l=>Rj(l,a,n))})}async function lt(e,t,r,n,s){return Aj(e,"POST",t,n,s,r)}var Oj=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=z(z({},Eh),t),this.fetch=Th(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await lt(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async getIndex(e,t){var r=this;try{return{data:await lt(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(at(n))return{data:null,error:n};throw n}}async listIndexes(e){var t=this;try{return{data:await lt(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async deleteIndex(e,t){var r=this;try{return{data:await lt(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(at(n))return{data:null,error:n};throw n}}},Ij=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=z(z({},Eh),t),this.fetch=Th(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await lt(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async getVectors(e){var t=this;try{return{data:await lt(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
238if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await lt(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async queryVectors(e){var t=this;try{return{data:await lt(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await lt(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}},$j=class{constructor(e,t={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=z(z({},Eh),t),this.fetch=Th(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await lt(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async getBucket(e){var t=this;try{return{data:await lt(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async listBuckets(e={}){var t=this;try{return{data:await lt(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}async deleteBucket(e){var t=this;try{return{data:await lt(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(at(r))return{data:null,error:r};throw r}}},Lj=class extends $j{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Mj(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},Mj=class extends Oj{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new Dj(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Dj=class extends Ij{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,z(z({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},Fj=class extends Tj{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new Ej(this.url,this.headers,e,this.fetch)}get vectors(){return new Lj(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Cj(this.url+"/iceberg",this.headers,this.fetch)}};const Mw="2.91.1",ds=30*1e3,td=3,Rc=td*ds,Bj="http://localhost:9999",zj="supabase.auth.token",Uj={"X-Client-Info":`gotrue-js/${Mw}`},rd="X-Supabase-Api-Version",Dw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Hj=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Wj=10*60*1e3;
238class po extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function D(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Vj extends po{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function qj(e){return D(e)&&e.name==="AuthApiError"}class kn extends po{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class kr extends po{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class st extends kr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Kj(e){return D(e)&&e.name==="AuthSessionMissingError"}class is extends kr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class la extends kr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ca extends kr{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Gj(e){return D(e)&&e.name==="AuthImplicitGrantRedirectError"}class Kp extends kr{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Jj extends kr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class nd extends kr{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Nc(e){return D(e)&&e.name==="AuthRetryableFetchError"}class Gp extends kr{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class sd extends kr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const il="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Jp=` 	
239\r=`.split(""),Qj=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Jp.length;t+=1)e[Jp[t].charCodeAt(0)]=-2;for(let t=0;t<il.length;t+=1)e[il[t].charCodeAt(0)]=t;return e})();function Qp(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(il[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(il[n]),t.queuedBits-=6}}function Fw(e,t,r){const n=Qj[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Yp(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{Zj(o,n,r)};for(let o=0;o<e.length;o+=1)Fw(e.charCodeAt(o),s,i);return t.join("")}function Yj(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 Xj(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}Yj(n,t)}}function Zj(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Ls(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;
239s+=1)Fw(e.charCodeAt(s),r,n);return new Uint8Array(t)}function eP(e){const t=[];return Xj(e,r=>t.push(r)),new Uint8Array(t)}function jn(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>Qp(s,r,n)),Qp(null,r,n),t.join("")}function tP(e){return Math.round(Date.now()/1e3)+e}function rP(){return Symbol("auth-callback")}const Oe=()=>typeof window<"u"&&typeof document<"u",yn={tested:!1,writable:!1},Bw=()=>{if(!Oe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(yn.tested)return yn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),yn.tested=!0,yn.writable=!0}catch{yn.tested=!0,yn.writable=!1}return yn.writable};function nP(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const zw=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),sP=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",hs=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},vn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Ae=async(e,t)=>{await e.removeItem(t)};class Ml{constructor(){this.promise=new Ml.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Ml.promiseConstructor=Promise;function Ac(e){const t=e.split(".");if(t.length!==3)throw new sd("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!Hj.test(t[n]))throw new sd("JWT not in base64url format");return{header:JSON.parse(Yp(t[0])),payload:JSON.parse(Yp(t[1])),signature:Ls(t[2]),raw:{header:t[0],payload:t[1]}}}async function iP(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function oP(e,t){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){n(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function aP(e){return("0"+e.toString(16)).substr(-2)}function lP(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,aP).join("")}async function cP(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function uP(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await cP(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function os(e,t,r=!1){const n=lP();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await hs(e,`${t}-code-verifier`,s);const i=await uP(n);return[i,n===i?"plain":"s256"]}const dP=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function hP(e){const t=e.headers.get(rd);if(!t||!t.match(dP))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function fP(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 pP(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 mP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function as(e){if(!mP.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Oc(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function gP(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;
239if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,s)}})}function Xp(e){return JSON.parse(JSON.stringify(e))}const _n=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),yP=[502,503,504];async function Zp(e){var t;if(!sP(e))throw new nd(_n(e),0);if(yP.includes(e.status))throw new nd(_n(e),e.status);let r;try{r=await e.json()}catch(i){throw new kn(_n(i),i)}let n;const s=hP(e);if(s&&s.getTime()>=Dw["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Gp(_n(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new st}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Gp(_n(r),e.status,r.weak_password.reasons);throw new Vj(_n(r),e.status||500,n)}const vP=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function B(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[rd]||(i[rd]=Dw["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await wP(e,t,r+a,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function wP(e,t,r,n,s,i){const o=vP(t,n,s,i);let a;try{a=await e(r,Object.assign({},o))}catch(l){throw console.error(l),new nd(_n(l),0)}if(a.ok||await Zp(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await Zp(l)}}function Pt(e){var t;let r=null;_P(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=tP(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function em(e){const t=Pt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Br(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function xP(e){return{data:e,error:null}}function bP(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=$l(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function tm(e){return e}function _P(e){return e.access_token&&e.refresh_token&&e.expires_in}const Ic=["global","local","others"];class SP{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=zw(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=Ic[0]){if(Ic.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Ic.join(", ")}`);try{return await B(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(D(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await B(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Br})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=$l(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await B(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:bP,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(D(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await B(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Br})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await B(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:tm});if(d.error)throw d.error;const f=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>
2390&&(h.forEach(w=>{const y=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);c[`${x}Page`]=y}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(D(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){as(t);try{return await B(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Br})}catch(r){if(D(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){as(t);try{return await B(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Br})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){as(t);try{return await B(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Br})}catch(n){if(D(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){as(t.userId);try{const{data:r,error:n}=await B(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(D(r))return{data:null,error:r};throw r}}async _deleteFactor(t){as(t.userId),as(t.id);try{return{data:await B(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(D(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await B(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:tm});if(d.error)throw d.error;const f=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(w=>{const y=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);c[`${x}Page`]=y}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(D(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(D(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await B(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(D(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await B(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(D(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await B(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(D(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(D(r))return{data:null,error:r};throw r}}}function rm(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const ls={debug:!!(globalThis&&Bw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
239class Uw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class kP extends Uw{}async function EP(e,t,r){ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),ls.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:n.signal},async s=>{if(s){ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw ls.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new kP(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ls.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function TP(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function Hw(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function CP(e){return parseInt(e,16)}function jP(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function PP(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:d,uri:f,version:p}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
240`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=Hw(e.address),w=d?`${d}://${n}`:n,y=e.statement?`${e.statement}
241`:"",x=`${w} wants you to sign in with your Ethereum account:
242${h}
243
244${y}`;let g=`URI: ${f}
245Version: ${p}
246Chain ID: ${r}${o?`
247Nonce: ${o}`:""}
248Issued At: ${i.toISOString()}`;if(s&&(g+=`
249Expiration Time: ${s.toISOString()}`),a&&(g+=`
250Not Before: ${a.toISOString()}`),l&&(g+=`
251Request ID: ${l}`),c){let m=`
252Resources:`;for(const v of c){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);m+=`
253- ${v}`}g+=m}return`${x}
254${g}`}class _e extends Error{constructor({message:t,code:r,cause:n,name:s}){var i;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=s??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}}class ol extends _e{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function RP({error:e,options:t}){var r,n,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new _e({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new _e({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new _e({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new _e({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new _e({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new _e({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new _e({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;
254if(Ww(o)){if(i.rp.id!==o)return new _e({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new _e({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new _e({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function NP({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new _e({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(Ww(n)){if(r.rpId!==n)return new _e({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new _e({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class AP{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const OP=new AP;function IP(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=$l(e,["challenge","user","excludeCredentials"]),i=Ls(t).buffer,o=Object.assign(Object.assign({},r),{id:Ls(r.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Ls(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function $P(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=$l(e,["challenge","allowCredentials"]),s=Ls(t).buffer,i=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const a=r[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Ls(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function LP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:jn(new Uint8Array(e.response.attestationObject)),clientDataJSON:jn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function MP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:jn(new Uint8Array(s.authenticatorData)),clientDataJSON:jn(new Uint8Array(s.clientDataJSON)),signature:jn(new Uint8Array(s.signature)),userHandle:s.userHandle?jn(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Ww(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function nm(){var e,t;return!!(Oe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function DP(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ol("Browser returned unexpected credential type",t)}:{data:null,error:new ol("Empty credential response",t)}}
254catch(t){return{data:null,error:RP({error:t,options:e})}}}async function FP(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ol("Browser returned unexpected credential type",t)}:{data:null,error:new ol("Empty credential response",t)}}catch(t){return{data:null,error:NP({error:t,options:e})}}}const BP={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},zP={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function al(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))n[i]=o;else if(r(o))n[i]=o;else if(t(o)){const a=n[i];t(a)?n[i]=al(a,o):n[i]=al(o)}else n[i]=o}return n}function UP(e,t){return al(BP,e,t||{})}function HP(e,t){return al(zP,e,t||{})}class WP{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},i){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!o)return{data:null,error:a};const l=s??OP.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:c}=o.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${n}`),c.displayName||(c.displayName=c.name)}switch(o.webauthn.type){case"create":{const c=UP(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:f}=await DP({publicKey:c,signal:l});return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}case"request":{const c=HP(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:f}=await FP(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:c,signal:l}));return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}}}catch(o){return D(o)?{data:null,error:o}:{data:null,error:new kn("Unexpected error in challenge",o)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new po("rpId is required for WebAuthn authentication")};try{if(!nm())return{data:null,error:new kn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(o){return D(o)?{data:null,error:o}:{data:null,error:new kn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new po("rpId is required for WebAuthn registration")};try{if(!nm())return{data:null,error:new kn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var f;return(f=d.data)===null||f===void 0?void 0:f.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return D(o)?{data:null,error:o}:{data:null,error:new kn("Unexpected error in register",o)}}}}TP();const VP={url:Bj,storageKey:zj,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Uj,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function sm(e,t,r){return await r()}const cs={};class mo{get jwks(){var t,r;return(r=(t=cs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){cs[this.storageKey]=Object.assign(Object.assign({},cs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=cs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){cs[this.storageKey]=Object.assign(Object.assign({},cs[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},VP),t);if(this.storageKey=i.storageKey,this.instanceID=(r=mo.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,mo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Oe()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new SP({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=zw(i.fetch),this.lock=i.lock||sm,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&Oe()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=EP:this.lock=sm,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new WP(this)}
254,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:Bw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=rm(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=rm(this.memoryStorage)),Oe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Mw}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Oe()&&(r=nP(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Oe()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Gj(i)){const l=(t=i.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:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return D(r)?this._returnResult({error:r}):this._returnResult({error:new kn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Pt}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(D(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var r,n,s;try{let i;if("email"in t){const{email:d,password:f,options:p}=t;let h=null,w=null;this.flowType==="pkce"&&([h,w]=await os(this.storage,this.storageKey)),i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:f,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:h,code_challenge_method:w},xform:Pt})}else if("phone"in t){const{phone:d,password:f,options:p}=t;i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Pt})}else throw new la("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ae(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),D(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:o,options:a}=t;r=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:em})}else if("phone"in t){const{phone:i,password:o,options:a}=t;r=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:em})}else throw new la("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const i=new is;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,i,o,a,l,c,d,f,p;let h,w;if("message"in t)h=t.message,w=t.signature;else{const{chain:y,wallet:x,statement:g,options:m}=t;let v;if(Oe())if(typeof x=="object")v=x;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")v=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=x}const _=new URL((r=m==null?void 0:m.url)!==null&&r!==void 0?r:window.location.href),S=await v.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=Hw(S[0]);let E=(n=m==null?void 0:m.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!E){const A=await v.request({method:"eth_chainId"});E=CP(A)}const j={domain:_.host,address:k,statement:g,uri:_.href,version:"1",chainId:E,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=m==null?void 0:m.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=m==null?void 0:m.signInWithEthereum)===null||d===void 0?void 0:d.resources};h=PP(j),w=await v.request({method:"personal_sign",params:[jP(h),k]})}try{const{data:y,error:x}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:w},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Pt});if(x)throw x;if(!y||!y.session||!y.user){const g=new is;return this._returnResult({data:{user:null,session:null},error:g})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:x})}catch(y){if(D(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(t){var r,n,s,i,o,a,l,c,d,f,p,h;let w,y;if("message"in t)w=t.message,y=t.signature;else{const{chain:x,wallet:g,statement:m,options:v}=t;let _;if(Oe())if(typeof g=="object")_=g;
254else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))_=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=g}const S=new URL((r=v==null?void 0:v.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const k=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let E;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")E=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)E=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)w=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),y=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(n=v==null?void 0:v.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((o=v==null?void 0:v.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((f=(d=v==null?void 0:v.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...v.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(`
255`);const k=await _.signMessage(new TextEncoder().encode(w),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=k}}try{const{data:x,error:g}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:jn(y)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Pt});if(g)throw g;if(!x||!x.session||!x.user){const m=new is;return this._returnResult({data:{user:null,session:null},error:m})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:g})}catch(x){if(D(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const r=await vn(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new Jj;const{data:i,error:o}=await B(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Pt});if(await Ae(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new is;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),D(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,a=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Pt}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new is;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if("email"in t){const{email:a,options:l}=t;
255let c=null,d=null;this.flowType==="pkce"&&([c,d]=await os(this.storage,this.storageKey));const{error:f}=await B(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=await B(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new la("You must provide either an email or phone number.")}catch(a){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),D(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let s,i;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await B(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Pt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(D(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await os(this.storage,this.storageKey));const c=await B(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:xP});return!((i=c.data)===null||i===void 0)&&i.url&&Oe()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),D(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new st;const{error:s}=await B(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(D(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:i}=t,{error:o}=await B(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:n,type:s,options:i}=t,{data:o,error:a}=await B(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new la("You must provide either an email or phone number and a type")}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await vn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
255id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Rc:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await vn(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Oc()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=gP(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Br}):await this._useSession(async r=>{var n,s,i;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new st}:await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Br})})}catch(r){if(D(r))return Kj(r)&&(await this._removeSession(),await Ae(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new st;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await os(this.storage,this.storageKey));const{data:c,error:d}=await B(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Br});if(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),D(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new st;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=Ac(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(D(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:a}=r;if(a)throw a;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new st;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(D(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!Oe())throw new ca("No browser detected.");
255if(t.error||t.error_description||t.error_code)throw new ca(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Kp("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ca("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Kp("No code detected.");const{data:m,error:v}=await this._exchangeCodeForSession(t.code);if(v)throw v;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!i||!a||!o||!c)throw new ca("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let p=d+f;l&&(p=parseInt(l));const h=p-d;h*1e3<=ds&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${f}s`);const w=p-f;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,p,d):d-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,p,d);const{data:y,error:x}=await this._getUser(i);if(x)throw x;const g={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:p,refresh_token:o,token_type:c,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(n){if(D(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await vn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({error:i});const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(qj(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ae(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=rP(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await os(this.storage,this.storageKey,!0));try{return await B(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),D(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,a,l,c,d;const{data:f,error:p}=i;if(p)throw p;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.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 B(this.fetch,"GET",h,{headers:this.headers,jwt:(d=(c=f.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Oe()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(D(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:i}}=r;if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:d}=t,f=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Pt}),{data:p,error:h}=f;return h?this._returnResult({data:{user:null,session:null},error:h}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new is}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:h}))}catch(s){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),D(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
255return await B(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await oP(async s=>(s>0&&await iP(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await B(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Pt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Nc(i)&&Date.now()+o-n<ds})}catch(n){if(this._debug(r,"error",n),D(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Oe()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await vn(this.storage,this.storageKey);if(s&&this.userStorage){let o=await vn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await hs(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Oc()}else if(s&&!s.user&&!s.user){const o=await vn(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ae(this.storage,this.storageKey+"-user"),await hs(this.storage,this.storageKey,s)):s.user=Oc()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Rc;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${Rc}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Nc(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new st;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Ml;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new st;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),D(i)){const o={data:null,error:i};return Nc(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ae(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await hs(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=Xp(s);await hs(this.storage,this.storageKey,i)}else{const s=Xp(r);await hs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ae(this.storage,this.storageKey),await Ae(this.storage,this.storageKey+"-code-verifier"),await Ae(this.storage,this.storageKey+"-user"),this.userStorage&&await Ae(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;
255try{t&&Oe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ds);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/ds);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ds}ms, refresh threshold is ${td} ticks`),s<=td&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Uw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Oe()||!(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 r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await os(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?this._returnResult({data:null,error:i}):await B(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await B(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?LP(t.webauthn.credential_response):MP(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await B(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=await B(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:IP(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:$P(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,r;const{data:{session:n},error:s}
255=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Ac(n.access_token);let o=null;i.aal&&(o=i.aal);let a=o;((r=(t=n.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=i.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await B(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new st})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new st});const o=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Oe()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(D(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new st});const o=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Oe()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(D(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await B(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new st})})}catch(t){if(D(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await B(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new st})})}catch(r){if(D(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+Wj>s)return n;const{data:i,error:o}=await B(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:h,error:w}
255=await this.getSession();if(w||!h.session)return this._returnResult({data:null,error:w});n=h.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Ac(n);r!=null&&r.allowExpired||fP(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:h}=await this.getUser(n);if(h)throw h;return{data:{claims:i,header:s,signature:o},error:null}}const d=pP(s.alg),f=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,eP(`${a}.${l}`)))throw new sd("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(D(n))return this._returnResult({data:null,error:n});throw n}}}mo.nextInstanceID={};const qP=mo,KP="2.91.1";let ji="";typeof Deno<"u"?ji="deno":typeof document<"u"?ji="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ji="react-native":ji="node";const GP={"X-Client-Info":`supabase-js-${ji}/${KP}`},JP={headers:GP},QP={schema:"public"},YP={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},XP={};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function ZP(e,t){if(go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e2(e){var t=ZP(e,"string");return go(t)=="symbol"?t:t+""}function t2(e,t,r){return(t=e2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?im(Object(r),!0).forEach(function(n){t2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const r2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),n2=()=>Headers,s2=(e,t,r)=>{const n=r2(r),s=n2();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(i,ve(ve({},o),{},{headers:c}))}};function i2(e){return e.endsWith("/")?e:e+"/"}function o2(e,t){var r,n;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:d,global:f}=t,p={db:ve(ve({},l),s),auth:ve(ve({},c),i),realtime:ve(ve({},d),o),storage:{},global:ve(ve(ve({},f),a),{},{headers:ve(ve({},(r=f==null?void 0:f.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function a2(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(i2(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var l2=class extends qP{constructor(e){super(e)}},c2=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const i=a2(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:QP,realtime:XP,auth:ve(ve({},YP),{},{storageKey:o}),global:JP},l=o2(r??{},a);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=s2(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(ve({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new UC(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new Fj(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new MC(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
255channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:c},d,f){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new l2({url:this.authUrl.href,headers:ve(ve({},p),d),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new ij(this.realtimeUrl.href,ve(ve({},e),{},{params:ve(ve({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const u2=(e,t,r)=>new c2(e,t,r);function d2(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}d2()&&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 h2="https://qhfrcxktydgwwhoebpvw.supabase.co",f2="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFoZnJjeGt0eWRnd3dob2VicHZ3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjkzNDU1ODcsImV4cCI6MjA4NDkyMTU4N30.JJsM7334pvHyMqh86yL2RhYuc15thyModz1OtLXMHIk",p2=u2(h2,f2,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),m2=e=>{const t=[];return e.name.trim()?e.name.length>100&&t.push("Name must be less than 100 characters"):t.push("Name is required"),e.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)?e.email.length>255&&t.push("Email must be less than 255 characters"):t.push("Please enter a valid email address"):t.push("Email is required"),e.message&&e.message.length>2e3&&t.push("Message must be less than 2000 characters"),e.phone&&e.phone.length>30&&t.push("Phone number is too long"),t},om={name:"",email:"",company:"",phone:"",propertyType:"",message:""},g2=()=>{const{toast:e}=Ry(),[t,r]=b.useState(!1),[n,s]=b.useState(om),i=async a=>{a.preventDefault();const l=m2(n);if(l.length>0){e({title:"Validation Error",description:l.join(". "),variant:"destructive"});return}r(!0);try{const{data:c,error:d}=await p2.functions.invoke("contact-form",{body:n});if(d)throw d;e({title:"Message Sent!",description:(c==null?void 0:c.message)||"Thank you for reaching out. We'll be in touch within 24 hours."}),s(om)}catch(c){console.error("Contact form error:",c),e({title:"Error",description:(c==null?void 0:c.message)||"Failed to send message. Please try again or contact us directly.",variant:"destructive"})}finally{r(!1)}},o=a=>{s(l=>({...l,[a.target.name]:a.target.value}))};return u.jsxs(Jn,{children:[u.jsxs(Gn,{children:[u.jsx("title",{children:"Book a Discovery Call | Hotel F&B Consulting | Next Hospitality"}),u.jsx("meta",{name:"description",content:"Schedule a free 30-minute discovery call to discuss your hotel's F&B optimization opportunities. Response within 24 hours."}),u.jsx("meta",{name:"keywords",content:"hotel consulting contact, F&B consulting discovery call, hospitality consulting inquiry, book consultation"}
255),u.jsx("link",{rel:"canonical",href:"https://nexthospitality.com/contact"}),u.jsx("meta",{property:"og:title",content:"Book a Discovery Call | Hotel F&B Consulting"}),u.jsx("meta",{property:"og:description",content:"Schedule a free 30-minute discovery call to discuss your hotel's F&B optimization opportunities."}),u.jsx("meta",{property:"og:type",content:"website"}),u.jsx("meta",{property:"og:url",content:"https://nexthospitality.com/contact"}),u.jsx("meta",{property:"og:site_name",content:"Next Hospitality Advisors"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:"Book a Discovery Call | Hotel F&B Consulting"}),u.jsx("meta",{name:"twitter:description",content:"Schedule a free 30-minute discovery call to discuss your hotel's F&B optimization opportunities."}),u.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"ContactPage",name:"Contact Next Hospitality Advisors",description:"Schedule a free 30-minute discovery call to discuss your hotel's F&B optimization opportunities",url:"https://nexthospitality.com/contact",mainEntity:{"@type":"Organization","@id":"https://nexthospitality.com/#organization",name:"Next Hospitality Advisors",telephone:"+1-561-302-7491",email:"[email protected]",contactPoint:[{"@type":"ContactPoint",telephone:"+1-561-302-7491",contactType:"sales",email:"[email protected]",areaServed:["US","Global"],availableLanguage:["English","Spanish"],hoursAvailable:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday"],opens:"09:00",closes:"18:00"}}],address:[{"@type":"PostalAddress",addressLocality:"Boca Raton",addressRegion:"FL",addressCountry:"US"},{"@type":"PostalAddress",addressLocality:"Westport",addressRegion:"CT",addressCountry:"US"},{"@type":"PostalAddress",addressLocality:"Madrid",addressCountry:"ES"}]}})})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-gradient-to-br from-primary via-primary to-navy-light",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsx("span",{className:"inline-block text-accent font-medium text-sm tracking-wider uppercase mb-4",children:"Get in Touch"}),u.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-bold text-primary-foreground mb-6",children:"Let's Discuss Your F&B Challenges"}),u.jsx("p",{className:"text-primary-foreground/80 text-lg md:text-xl",children:"Schedule a complimentary 30-minute discovery call to explore how we can help improve your property's F&B performance."})]})})}),u.jsx("section",{className:"py-20 lg:py-28",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold mb-2 text-foreground",children:"Request a Discovery Call"}),u.jsx("p",{className:"text-muted-foreground mb-8",children:"Fill out the form below and we'll reach out within 24 hours to schedule your complimentary consultation."}),u.jsxs("form",{onSubmit:i,className:"space-y-6",children:[u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(bn,{htmlFor:"name",children:"Full Name *"}),u.jsx(Ci,{id:"name",name:"name",value:n.name,onChange:o,required:!0,placeholder:"John Smith"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(bn,{htmlFor:"email",children:"Email *"}),u.jsx(Ci,{id:"email",name:"email",type:"email",value:n.email,onChange:o,required:!0,placeholder:"[email protected]"})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(bn,{htmlFor:"company",children:"Company / Property Name"}),u.jsx(Ci,{id:"company",name:"company",value:n.company,onChange:o,placeholder:"Hotel Name or Company"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(bn,{htmlFor:"phone",children:"Phone Number"}),u.jsx(Ci,{id:"phone",name:"phone",type:"tel",value:n.phone,onChange:o,placeholder:"(123) 456-7890"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(bn,{htmlFor:"propertyType",children:"Property Type"}),u.jsxs("select",{id:"propertyType",name:"propertyType",value:n.propertyType,onCh
255ange:o,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:[u.jsx("option",{value:"",children:"Select property type..."}),u.jsx("option",{value:"luxury-hotel",children:"Luxury Hotel/Resort"}),u.jsx("option",{value:"full-service",children:"Full-Service Hotel"}),u.jsx("option",{value:"select-service",children:"Select-Service Hotel"}),u.jsx("option",{value:"portfolio",children:"Hotel Portfolio (Multi-Property)"}),u.jsx("option",{value:"independent-restaurant",children:"Independent Restaurant"}),u.jsx("option",{value:"other",children:"Other"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(bn,{htmlFor:"message",children:"Tell Us About Your Challenges"}),u.jsx(Ew,{id:"message",name:"message",value:n.message,onChange:o,rows:4,placeholder:"What F&B challenges are you facing? What outcomes are you hoping to achieve?"})]}),u.jsxs(nt,{type:"submit",size:"lg",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:t,children:[t?"Sending...":"Request Discovery Call",u.jsx(nr,{className:"ml-2",size:18})]})]})]}),u.jsxs("div",{className:"space-y-8",children:[u.jsxs("div",{className:"bg-muted/50 rounded-xl p-8",children:[u.jsxs("h3",{className:"font-display text-xl font-semibold mb-4 text-foreground flex items-center gap-2",children:[u.jsx(ih,{className:"text-accent",size:24}),"What to Expect"]}),u.jsx("p",{className:"text-muted-foreground mb-4",children:"Your complimentary 30-minute discovery call includes:"}),u.jsx("ul",{className:"space-y-3",children:["Discussion of your current F&B challenges","Initial assessment of improvement opportunities","Overview of our approach and methodology","Q&A and next steps if there's a fit"].map((a,l)=>u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx(oh,{className:"text-accent shrink-0 mt-0.5",size:16}),u.jsx("span",{className:"text-foreground text-sm",children:a})]},l))})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"font-display text-xl font-semibold text-foreground",children:"Other Ways to Reach Us"}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 text-muted-foreground hover:text-accent transition-colors",children:[u.jsx("div",{className:"w-10 h-10 bg-accent/10 rounded-lg flex items-center justify-center",children:u.jsx(lv,{className:"text-accent",size:18})}),u.jsx("span",{children:"[email protected]"})]}),u.jsxs("a",{href:"tel:+15613027491",className:"flex items-center gap-3 text-muted-foreground hover:text-accent transition-colors",children:[u.jsx("div",{className:"w-10 h-10 bg-accent/10 rounded-lg flex items-center justify-center",children:u.jsx(uv,{className:"text-accent",size:18})}),u.jsx("span",{children:"+1.561.302.7491"})]}),u.jsxs("div",{className:"flex items-start gap-3 text-muted-foreground",children:[u.jsx("div",{className:"w-10 h-10 bg-accent/10 rounded-lg flex items-center justify-center shrink-0",children:u.jsx(cv,{className:"text-accent",size:18})}),u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{children:"Boca Raton, Florida"}),u.jsx("span",{children:"Westport, CT"}),u.jsx("span",{children:"Madrid, Spain"})]})]}),u.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground",children:[u.jsx("div",{className:"w-10 h-10 bg-accent/10 rounded-lg flex items-center justify-center",children:u.jsx(av,{className:"text-accent",size:18})}),u.jsx("span",{children:"Response within 24 hours"})]})]})]}),u.jsxs("div",{className:"bg-primary rounded-xl p-6 text-center",children:[u.jsx("p",{className:"text-primary-foreground/80 text-sm mb-2",children:"Trusted by operators of"}),u.jsx("p",{className:"font-display text-3xl font-bold text-accent mb-2",children:"100+ Hotels"}),u.jsx("p",{className:"text-primary-foreground/60 text-sm",children:"Including properties managed by Hilton, Marriott, Hyatt, and leading PE firms"})]})]})]})})})]})},y2=()=>{const e=ai();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},v2=new aE,w2=()=>u.jsx(kw,{children:u.jsx(cE,{client:v2,children:u.jsxs(Mk,{children:[u.jsx(x_,{}),u.jsx(X_,{}),u.jsx(oT,{children:u.jsxs(ZE,{children:[u.jsx(cr,{path:"/",element:u.jsx(nC,{})}),u.jsx(cr,{path:"/services",element:u.jsx(uC,{})}),u.jsx(cr,{path:"/case-studies",element:u.jsx(mC,{})}),u.jsx(cr,{path:"/about",element:u.jsx(EC,{})}),u.jsx(cr,{path:"/press",element:u.jsx(RC,{})}),u.jsx(cr,{path:"/blog",element:u.jsx(NC,{})}),u.jsx(cr,{path:"/contact",element:u.jsx(g2,{})}),u.jsx(cr,{path:"*",element:u.jsx(y2,{})})]})})]})})});Py(document.getElementById("root")).render(u.jsx(w2,{}));

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.