PageSourceSearch

https://steak-reservation-hub.lovable.app/assets/index-3JQ_D0ms.js

js steak-reservation-hub.lovable.app collected 2026-10-03 03:35:59 UTC 867,339 bytes, 410 lines download raw bytes

vendor: 4,303 bytes, lines 1-9
1var RS=Object.defineProperty;var Lp=e=>{throw TypeError(e)};var OS=(e,t,n)=>t in e?RS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Un=(e,t,n)=>OS(e,typeof t!="symbol"?t+"":t,n),Yu=(e,t,n)=>t.has(e)||Lp("Cannot "+n);var N=(e,t,n)=>(Yu(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?Lp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q=(e,t,n,r)=>(Yu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),nt=(e,t,n)=>(Yu(e,t,"access private method"),n);var il=(e,t,n,r)=>({set _(s){Q(e,t,s,n)},get _(){return N(e,t,r)}});function AS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[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"]'))r(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"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(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 r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vb={exports:{}},nu={},yb={exports:{}},ne={};/**
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 Fa=Symbol.for("react.element"),DS=Symbol.for("react.portal"),MS=Symbol.for("react.fragment"),IS=Symbol.for("react.strict_mode"),LS=Symbol.for("react.profiler"),$S=Symbol.for("react.provider"),zS=Symbol.for("react.context"),FS=Symbol.for("react.forward_ref"),BS=Symbol.for("react.suspense"),US=Symbol.for("react.memo"),WS=Symbol.for("react.lazy"),$p=Symbol.iterator;function HS(e){return e===null||typeof e!="object"?null:(e=$p&&e[$p]||e["@@iterator"],typeof e=="function"?e:null)}var bb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wb=Object.assign,xb={};function ro(e,t,n){this.props=e,this.context=t,this.refs=xb,this.updater=n||bb}ro.prototype.isReactComponent={};ro.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")};ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kb(){}kb.prototype=ro.prototype;function Ff(e,t,n){this.props=e,this.context=t,this.refs=xb,this.updater=n||bb}var Bf=Ff.prototype=new kb;Bf.constructor=Ff;wb(Bf,ro.prototype);Bf.isPureReactComponent=!0;var zp=Array.isArray,Sb=Object.prototype.hasOwnProperty,Uf={current:null},_b={key:!0,ref:!0,__self:!0,__source:!0};function Eb(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Sb.call(t,r)&&!_b.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Fa,type:e,key:i,ref:o,props:s,_owner:Uf.current}}function VS(e,t){return{$$typeof:Fa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fa}function KS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fp=/\/+/g;function Qu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?KS(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Hl(e,t,n,r,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 Fa:case DS:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Qu(o,0):r,zp(s)?(n="",e!=null&&(n=e.replace(Fp,"$&/")+"/"),Hl(s,t,n,"",function(u){return u})):s!=null&&(Wf(s)&&(s=VS(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Fp,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",zp(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Qu(i,a);o+=Hl(i,t,n,l,s)}else if(l=HS(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Qu(i,a++),o+=Hl(i,t,n,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 ol(e,t,n){if(e==null)return e;var r=[],s=0;return Hl(e,r,"","",function(i){return t.call(n,i,s++)}),r}function GS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gt={current:null},Vl={transition:null},qS={ReactCurrentDispatcher:gt,ReactCurrentBatchConfig:Vl,ReactCurrentOwner:Uf};function jb(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:ol,forEach:function(e,t,n){ol(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ol(e,function(){t++}),t},toArray:function(e){return ol(e,function(t){return t})||[]},only:function(e){if(!Wf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=ro;ne.Fragment=MS;ne.Profiler=LS;ne.PureComponent=Ff;ne.StrictMode=IS;ne.Suspense=BS;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qS;ne.act=jb;ne.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=wb({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Uf.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Sb.call(t,l)&&!_b.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Fa,type:e.type,key:s,ref:i,props:r,_owner:o}};ne.createContext=function(e){return e={$$typeof:zS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$S,_context:e},e.Consumer=e};ne.createElement=Eb;ne.createFactory=function(e){var t=Eb.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:FS,render:e}};ne.isValidElement=Wf;ne.lazy=function(e){return{$$typeof:WS,_payload:{_status:-1,_result:e},_init:GS}};ne.memo=function(e,t){return{$$typeof:US,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=Vl.transition;Vl.transition={};try{e()}finally{Vl.transition=t}};ne.unstable_act=jb;ne.useCallback=function(e,t){return gt.current.useCallback(e,t)};ne.useContext=function(e){return gt.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return gt.current.useDeferredValue(e)};ne.useEffect=function(e,t){return gt.current.useEffect(e,t)};ne.useId=function(){return gt.current.useId()};ne.useImperativeHandle=function(e,t,n){return gt.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return gt.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return gt.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return gt.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return gt.current.useReducer(e,t,n)};ne.useRef=function(e){return gt.current.useRef(e)};ne.useState=function(e){return gt.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return gt.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return gt.current.useTransition()};ne.version="18.3.1";yb.exports=ne;var w=yb.exports;const R=za(w),Hf=AS({__proto__:null,default:R},[w]);/**
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 ZS=w,JS=Symbol.for("react.element"),YS=Symbol.for("react.fragment"),QS=Object.prototype.hasOwnProperty,XS=ZS.__SECRET_INT
vendor: 11,418 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,e_={key:!0,ref:!0,__self:!0,__source:!0};function Tb(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)QS.call(t,r)&&!e_.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:JS,type:e,key:i,ref:o,props:s,_owner:XS.current}}nu.Fragment=YS;nu.jsx=Tb;nu.jsxs=Tb;vb.exports=nu;var c=vb.exports,Nb={exports:{}},It={},Cb={exports:{}},Pb={};/**
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(j,P){var F=j.length;j.push(P);e:for(;0<F;){var Z=F-1>>>1,H=j[Z];if(0<s(H,P))j[Z]=P,j[F]=H,F=Z;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var P=j[0],F=j.pop();if(F!==P){j[0]=F;e:for(var Z=0,H=j.length,te=H>>>1;Z<te;){var re=2*(Z+1)-1,Me=j[re],tt=re+1,ce=j[tt];if(0>s(Me,F))tt<H&&0>s(ce,Me)?(j[Z]=ce,j[tt]=F,Z=tt):(j[Z]=Me,j[re]=F,Z=re);else if(tt<H&&0>s(ce,F))j[Z]=ce,j[tt]=F,Z=tt;else break e}}return P}function s(j,P){var F=j.sortIndex-P.sortIndex;return F!==0?F:j.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=[],u=[],d=1,h=null,m=3,f=!1,y=!1,p=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(j){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=j)r(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(u)}}function k(j){if(p=!1,b(j),!y)if(n(l)!==null)y=!0,K(S);else{var P=n(u);P!==null&&D(k,P.startTime-j)}}function S(j,P){y=!1,p&&(p=!1,v(T),T=-1),f=!0;var F=m;try{for(b(P),h=n(l);h!==null&&(!(h.expirationTime>P)||j&&!W());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,m=h.priorityLevel;var H=Z(h.expirationTime<=P);P=e.unstable_now(),typeof H=="function"?h.callback=H:h===n(l)&&r(l),b(P)}else r(l);h=n(l)}if(h!==null)var te=!0;else{var re=n(u);re!==null&&D(k,re.startTime-P),te=!1}return te}finally{h=null,m=F,f=!1}}var _=!1,E=null,T=-1,C=5,M=-1;function W(){return!(e.unstable_now()-M<C)}function $(){if(E!==null){var j=e.unstable_now();M=j;var P=!0;try{P=E(!0,j)}finally{P?q():(_=!1,E=null)}}else _=!1}var q;if(typeof g=="function")q=function(){g($)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,X=L.port2;L.port1.onmessage=$,q=function(){X.postMessage(null)}}else q=function(){x($,0)};function K(j){E=j,_||(_=!0,q())}function D(j,P){T=x(function(){j(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(j){j.callback=null},e.unstable_continueExecution=function(){y||f||(y=!0,K(S))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var F=m;m=P;try{return j()}finally{m=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,P){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var F=m;m=j;try{return P()}finally{m=F}},e.unstable_scheduleCallback=function(j,P,F){var Z=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Z+F:Z):F=Z,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=F+H,j={id:d++,callback:P,priorityLevel:j,startTime:F,expirationTime:H,sortIndex:-1},F>Z?(j.sortIndex=F,t(u,j),n(l)===null&&j===n(u)&&(p?(v(T),T=-1):p=!0,D(k,F-Z))):(j.sortIndex=H,t(l,j),y||f||(y=!0,K(S))),j},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(j){var P=m;return function(){var F=m;m=P;try{return j.apply(this,arguments)}finally{m=F}}}})(Pb);Cb.exports=Pb;var t_=Cb.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 n_=w,Dt=t_;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rb=new Set,ta={};function Is(e,t){Hi(e,t),Hi(e+"Capture",t)}function Hi(e,t){for(ta[e]=t,e=0;e<t.length;e++)Rb.add(t[e])}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rh=Object.prototype.hasOwnProperty,r_=/^[: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]*$/,Bp={},Up={};function s_(e){return rh.call(Up,e)?!0:rh.call(Bp,e)?!1:r_.test(e)?Up[e]=!0:(Bp[e]=!0,!1)}function i_(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function o_(e,t,n,r){if(t===null||typeof t>"u"||i_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new vt(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){Xe[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vf=/[\-:]([a-z])/g;function Kf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Vf,Kf);Xe[t]=new vt(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(Vf,Kf);Xe[t]=new vt(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(Vf,Kf);Xe[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gf(e,t,n,r){var s=Xe.hasOwnProperty(t)?Xe[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(o_(t,n,s,r)&&(n=null),r||s===null?s_(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var cr=n_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,al=Symbol.for("react.element"),ci=Symbol.for("react.portal"),ui=Symbol.for("react.fragment"),qf=Symbol.for("react.strict_mode"),sh=Symbol.for("react.profiler"),Ob=Symbol.for("react.provider"),Ab=Symbol.for("react.context"),Zf=Symbol.for("react.forward_ref"),ih=Symbol.for("react.suspense"),oh=Symbol.for("react.suspense_list"),Jf=Symbol.for("react.memo"),Sr=Symbol.for("react.lazy"),Db=Symbol.for("react.offscreen"),Wp=Symbol.iterator;function bo(e){return e===null||typeof e!="object"?null:(e=Wp&&e[Wp]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Object.assign,Xu;function Do(e){if(Xu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xu=t&&t[1]||""}return`
34`+Xu+e}var ed=!1;function td(e,t){if(!e||ed)return"";ed=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 4,297 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=r.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{ed=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Do(e):""}function a_(e){switch(e.tag){case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 2:case 15:return e=td(e.type,!1),e;case 11:return e=td(e.type.render,!1),e;case 1:return e=td(e.type,!0),e;default:return""}}function ah(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 ui:return"Fragment";case ci:return"Portal";case sh:return"Profiler";case qf:return"StrictMode";case ih:return"Suspense";case oh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ab:return(e.displayName||"Context")+".Consumer";case Ob:return(e._context.displayName||"Context")+".Provider";case Zf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jf:return t=e.displayName||null,t!==null?t:ah(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return ah(e(t))}catch{}}return null}function l_(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 ah(t);case 8:return t===qf?"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 Gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function c_(e){var t=Mb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ll(e){e._valueTracker||(e._valueTracker=c_(e))}function Ib(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hc(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 lh(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lb(e,t){t=t.checked,t!=null&&Gf(e,"checked",t,!1)}function ch(e,t){Lb(e,t);var n=Gr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uh(e,t.type,n):t.hasOwnProperty("defaultValue")&&uh(e,t.type,Gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 37
37function Vp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function uh(e,t,n){(t!=="number"||hc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mo=Array.isArray;function Si(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Gr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function dh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(Mo(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gr(n)}}function $b(e,t){var n=Gr(t.value),r=Gr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zb(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 hh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cl,Fb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(cl=cl||document.createElement("div"),cl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function na(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bo={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},u_=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){u_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});function Bb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function Ub(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Bb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var d_=Ne({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 fh(e,t){if(t){if(d_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function mh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 ph=null;function Yf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gh=null,_i=null,Ei=null;function qp(e){if(e=Wa(e)){if(typeof gh!="function")throw Error(A(280));var t=e.stateNode;t&&(t=au(t),gh(e.stateNode,e.type,t))}}function Wb(e){_i?Ei?Ei.push(e):Ei=[e]:_i=e}function Hb(){if(_i){var e=_i,t=Ei;if(Ei=_i=null,qp(e),t)for(e=0;e<t.length;e++)qp(t[e])}}function Vb(e,t){return e(t)}function Kb(){}var nd=!1;function Gb(e,t,n){if(nd)return e(t,n);nd=!0;try{return Vb(e,t,n)}finally{nd=!1,(_i!==null||Ei!==null)&&(Kb(),Hb())}}function ra(e,t){var n=e.stateNode;if(n===null)return null;var r=au(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var vh=!1;if(nr)try{var wo={};Object.defineProperty(wo,"passive",{get:function(){vh=!0}}),window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch{vh=!1}function h_(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Uo=!1,fc=null,mc=!1,yh=null,f_={onError:function(e){Uo=!0,fc=e}};function m_(e,t,n,r,s,i,o,a,l){Uo=!1,fc=null,h_.apply(f_,arguments)}function p_(e,t,n,r,s,i,o,a,l){if(m_.apply(this,arguments),Uo){if(Uo){var u=fc;Uo=!1,fc=null}else throw Error(A(198));mc||(mc=!0,yh=u)}}function Ls(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function qb(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 Zp(e){if(Ls(e)!==e)throw Error(A(188))}function g_(e){var t=e.alternate;if(!t){if(t=Ls(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Zp(s),e;if(i===r)return Zp(s),t;i=i.sibling}throw Error(A(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Zb(e){return e=g_(e),e!==null?Jb(e):null}function Jb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jb(e);if(t!==null)return t;e=e.sibling}return null}var Yb=Dt.unstable_scheduleCallback,Jp=Dt.unstable_cancelCallback,v_=Dt.unstable_shouldYield,y_=Dt.unstable_requestPaint,Ae=Dt.unstable_now,b_=Dt.unstable_getCurrentPriorityLevel,Qf=Dt.unstable_ImmediatePriority,Qb=Dt.unstable_UserBlockingPriority,pc=Dt.unstable_NormalPriority,w_=Dt.unstable_LowPriority,Xb=Dt.unstable_IdlePriority,ru=null,On=null;function x_(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(ru,e,void 0,(e.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:__,k_=Math.log,S_=Math.LN2;function __(e){return e>>>=0,e===0?32:31-(k_(e)/S_|0)|0}var ul=64,dl=4194304;function Io(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 gc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Io(a):(i&=o,i!==0&&(r=Io(i)))}else o=n&~s,o!==0?r=Io(o):i!==0&&(r=Io(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-fn(t),s=1<<n,r|=e[n],t&=~s;return r}function E_(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 j_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-fn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=E_(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function bh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function e0(){var e=ul;return ul<<=1,!(ul&4194240)&&(ul=64),e}function rd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function Ba(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fn(t),e[t]=n}function T_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-fn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Xf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-fn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var de=0;function t0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var n0,em,r0,s0,i0,wh=!1,hl=[],Lr=null,$r=null,zr=null,sa=new Map,ia=new Map,Er=[],N_="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 Yp(e,t){switch(e){case"focusin":case"focusout":Lr=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":sa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ia.delete(t.pointerId)}}function xo(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Wa(t),t!==null&&em(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function C_(e,t,n,r,s){switch(t){case"focusin":return Lr=xo(Lr,e,t,n,r,s),!0;case"dragenter":return $r=xo($r,e,t,n,r,s),!0;case"mouseover":return zr=xo(zr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return sa.set(i,xo(sa.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ia.set(i,xo(ia.get(i)||null,e,t,n,r,s)),!0}return!1}function o0(e){var t=fs(e.target);if(t!==null){var n=Ls(t);if(n!==null){if(t=n.tag,t===13){if(t=qb(n),t!==null){e.blockedOn=t,i0(e.priority,function(){r0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ph=r,n.target.dispatchEvent(r),ph=null}else return t=Wa(n),t!==null&&em(t),e.blockedOn=n,!1;t.shift()}return!0}function Qp(e,t,n){Kl(e)&&n.delete(t)}function P_(){wh=!1,Lr!==null&&Kl(Lr)&&(Lr=null),$r!==null&&Kl($r)&&($r=null),zr!==null&&Kl(zr)&&(zr=null),sa.forEach(Qp),ia.forEach(Qp)}function ko(e,t){e.blockedOn===t&&(e.blockedOn=null,wh||(wh=!0,Dt.unstable_scheduleCallback(Dt.unstable_NormalPriority,P_)))}function oa(e){function t(s){return ko(s,e)}if(0<hl.length){ko(hl[0],e);for(var n=1;n<hl.length;n++){var r=hl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Lr!==null&&ko(Lr,e),$r!==null&&ko($r,e),zr!==null&&ko(zr,e),sa.forEach(t),ia.forEach(t),n=0;n<Er.length;n++)r=Er[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Er.length&&(n=Er[0],n.blockedOn===null);)o0(n),n.blockedOn===null&&Er.shift()}var ji=cr.ReactCurrentBatchConfig,vc=!0;function R_(e,t,n,r){var s=de,i=ji.transition;ji.transition=null;try{de=1,tm(e,t,n,r)}finally{de=s,ji.transition=i}}function O_(e,t,n,r){var s=de,i=ji.transition;ji.transition=null;try{de=4,tm(e,t,n,r)}finally{de=s,ji.transition=i}}function tm(e,t,n,r){if(vc){var s=xh(e,t,n,r);if(s===null)fd(e,t,r,yc,n),Yp(e,r);else if(C_(s,e,t,n,r))r.stopPropagation();else if(Yp(e,r),t&4&&-1<N_.indexOf(e)){for(;s!==null;){var i=Wa(s);if(i!==null&&n0(i),i=xh(e,t,n,r),i===null&&fd(e,t,r,yc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else fd(e,t,r,null,n)}}var yc=null;function xh(e,t,n,r){if(yc=null,e=Yf(r),e=fs(e),e!==null)if(t=Ls(e),t===null)e=null;else if(n=t.tag,n===13){if(e=qb(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yc=e,null}
vendor: 10,401 bytes, line 37
37function a0(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(b_()){case Qf:return 1;case Qb:return 4;case pc:case w_:return 16;case Xb:return 536870912;default:return 16}default:return 16}}var Dr=null,nm=null,Gl=null;function l0(){if(Gl)return Gl;var e,t=nm,n=t.length,r,s="value"in Dr?Dr.value:Dr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Gl=s.slice(e,1<r?1-r:void 0)}function ql(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 fl(){return!0}function Xp(){return!1}function Lt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?fl:Xp,this.isPropagationStopped=Xp,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var so={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rm=Lt(so),Ua=Ne({},so,{view:0,detail:0}),A_=Lt(Ua),sd,id,So,su=Ne({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==So&&(So&&e.type==="mousemove"?(sd=e.screenX-So.screenX,id=e.screenY-So.screenY):id=sd=0,So=e),sd)},movementY:function(e){return"movementY"in e?e.movementY:id}}),eg=Lt(su),D_=Ne({},su,{dataTransfer:0}),M_=Lt(D_),I_=Ne({},Ua,{relatedTarget:0}),od=Lt(I_),L_=Ne({},so,{animationName:0,elapsedTime:0,pseudoElement:0}),$_=Lt(L_),z_=Ne({},so,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F_=Lt(z_),B_=Ne({},so,{data:0}),tg=Lt(B_),U_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W_={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"},H_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=H_[e])?!!t[e]:!1}function sm(){return V_}var K_=Ne({},Ua,{key:function(e){if(e.key){var t=U_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ql(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sm,charCode:function(e){return e.type==="keypress"?ql(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ql(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G_=Lt(K_),q_=Ne({},su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ng=Lt(q_),Z_=Ne({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sm}),J_=Lt(Z_),Y_=Ne({},so,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q_=Lt(Y_),X_=Ne({},su,{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}),eE=Lt(X_),tE=[9,13,27,32],im=nr&&"CompositionEvent"in window,Wo=null;nr&&"documentMode"in document&&(Wo=document.documentMode);var nE=nr&&"TextEvent"in window&&!Wo,c0=nr&&(!im||Wo&&8<Wo&&11>=Wo),rg=" ",sg=!1;function u0(e,t){switch(e){case"keyup":return tE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function rE(e,t){switch(e){case"compositionend":return d0(t);case"keypress":return t.which!==32?null:(sg=!0,rg);case"textInput":return e=t.data,e===rg&&sg?null:e;default:return null}}function sE(e,t){if(di)return e==="compositionend"||!im&&u0(e,t)?(e=l0(),Gl=nm=Dr=null,di=!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 c0&&t.locale!=="ko"?null:t.data;default:return null}}var iE={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 ig(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iE[e.type]:t==="textarea"}function h0(e,t,n,r){Wb(r),t=bc(t,"onChange"),0<t.length&&(n=new rm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ho=null,aa=null;function oE(e){S0(e,0)}function iu(e){var t=mi(e);if(Ib(t))return e}function aE(e,t){if(e==="change")return t}var f0=!1;if(nr){var ad;if(nr){var ld="oninput"in document;if(!ld){var og=document.createElement("div");og.setAttribute("oninput","return;"),ld=typeof og.oninput=="function"}ad=ld}else ad=!1;f0=ad&&(!document.documentMode||9<document.documentMode)}function ag(){Ho&&(Ho.detachEvent("onpropertychange",m0),aa=Ho=null)}function m0(e){if(e.propertyName==="value"&&iu(aa)){var t=[];h0(t,aa,e,Yf(e)),Gb(oE,t)}}function lE(e,t,n){e==="focusin"?(ag(),Ho=t,aa=n,Ho.attachEvent("onpropertychange",m0)):e==="focusout"&&ag()}function cE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(aa)}function uE(e,t){if(e==="click")return iu(t)}function dE(e,t){if(e==="input"||e==="change")return iu(t)}function hE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pn=typeof Object.is=="function"?Object.is:hE;function la(e,t){if(pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!rh.call(t,s)||!pn(e[s],t[s]))return!1}return!0}function lg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cg(e,t){var n=lg(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lg(n)}}function p0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?p0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function g0(){for(var e=window,t=hc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hc(e.document)}return t}function om(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 fE(e){var t=g0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&p0(n.ownerDocument.documentElement,n)){if(r!==null&&om(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=cg(n,i);var o=cg(n,r);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>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mE=nr&&"documentMode"in document&&11>=document.documentMode,hi=null,kh=null,Vo=null,Sh=!1;function ug(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sh||hi==null||hi!==hc(r)||(r=hi,"selectionStart"in r&&om(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Vo&&la(Vo,r)||(Vo=r,r=bc(kh,"onSelect"),0<r.length&&(t=new rm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hi)))}function ml(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fi={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionend:ml("Transition","TransitionEnd")},cd={},v0={};nr&&(v0=document.createElement("div").style,"AnimationEvent"in window||(delete fi.animationend.animation,delete fi.animationiteration.animation,delete fi.animationstart.animation),"TransitionEvent"in window||delete fi.transitionend.transition);function ou(e){if(cd[e])return cd[e];if(!fi[e])return e;var t=fi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in v0)return cd[e]=t[n];return e}var y0=ou("animationend"),b0=ou("animationiteration"),w0=ou("animationstart"),x0=ou("transitionend"),k0=new Map,dg="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 Yr(e,t){k0.set(e,t),Is(t,[e])}for(var ud=0;ud<dg.length;ud++){var dd=dg[ud],pE=dd.toLowerCase(),gE=dd[0].toUpperCase()+dd.slice(1);Yr(pE,"on"+gE)}Yr(y0,"onAnimationEnd");Yr(b0,"onAnimationIteration");Yr(w0,"onAnimationStart");Yr("dblclick","onDoubleClick");Yr("focusin","onFocus");Yr("focusout","onBlur");Yr(x0,"onTransitionEnd");Hi("onMouseEnter",["mouseout","mouseover"]);Hi("onMouseLeave",["mouseout","mouseover"]);Hi("onPointerEnter",["pointerout","pointerover"]);Hi("onPointerLeave",["pointerout","pointerover"]);Is("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Is("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Is("onBeforeInput",["compositionend","keypress","textInput","paste"]);Is("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Is("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Is("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lo="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(" "),vE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lo));function hg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,p_(r,t,void 0,e),e.currentTarget=null}function S0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;hg(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;hg(s,a,u),i=l}}}if(mc)throw e=yh,mc=!1,yh=null,e}function we(e,t){var n=t[Nh];n===void 0&&(n=t[Nh]=new Set);var r=e+"__bubble";n.has(r)||(_0(t,e,2,!1),n.add(r))}function hd(e,t,n){var r=0;t&&(r|=4),_0(n,e,r,t)}var pl="_reactListening"+Math.random().toString(36).slice(2);function ca(e){if(!e[pl]){e[pl]=!0,Rb.forEach(function(n){n!=="selectionchange"&&(vE.has(n)||hd(n,!1,e),hd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pl]||(t[pl]=!0,hd("selectionchange",!1,t))}}function _0(e,t,n,r){switch(a0(t)){case 1:var s=R_;break;case 4:s=O_;break;default:s=tm}n=s.bind(null,t,n,e),s=void 0,!vh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function fd(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.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=fs(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Gb(function(){var u=i,d=Yf(n),h=[];e:{var m=k0.get(e);if(m!==void 0){var f=rm,y=e;switch(e){case"keypress":if(ql(n)===0)break e;case"keydown":case"keyup":f=G_;break;case"focusin":y="focus",f=od;break;case"focusout":y="blur",f=od;break;case"beforeblur":case"afterblur":f=od;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=M_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=J_;break;case y0:case b0:case w0:f=$_;break;case x0:f=Q_;break;case"scroll":f=A_;break;case"wheel":f=eE;break;case"copy":case"cut":case"paste":f=F_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=ng}var p=(t&4)!==0,x=!p&&e==="scroll",v=p?m!==null?m+"Capture":null:m;p=[];for(var g=u,b;g!==null;){b=g;var k=b.stateNode;if(b.tag===5&&k!==null&&(b=k,v!==null&&(k=ra(g,v),k!=null&&p.push(ua(g,k,b)))),x)break;g=g.return}0<p.length&&(m=new f(m,y,null,n,d),h.push({event:m,listeners:p}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&n!==ph&&(y=n.relatedTarget||n.fromElement)&&(fs(y)||y[rr]))break e;if((f||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,f?(y=n.relatedTarget||n.toElement,f=u,y=y?fs(y):null,y!==null&&(x=Ls(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(f=null,y=u),f!==y)){if(p=eg,k="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=ng,k="onPointerLeave",v="onPointerEnter",g="pointer"),x=f==null?m:mi(f),b=y==null?m:mi(y),m=new p(k,g+"leave",f,n,d),m.target=x,m.relatedTarget=b,k=null,fs(d)===u&&(p=new p(v,g+"enter",y,n,d),p.target=b,p.relatedTarget=x,k=p),x=k,f&&y)t:{for(p=f,v=y,g=0,b=p;b;b=qs(b))g++;for(b=0,k=v;k;k=qs(k))b++;for(;0<g-b;)p=qs(p),g--;for(;0<b-g;)v=qs(v),b--;for(;g--;){if(p===v||v!==null&&p===v.alternate)break t;p=qs(p),v=qs(v)}p=null}else p=null;f!==null&&fg(h,m,f,p,!1),y!==null&&x!==null&&fg(h,x,y,p,!0)}}e:{if(m=u?mi(u):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var S=aE;else if(ig(m))if(f0)S=dE;else{S=cE;var _=lE}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(S=uE);if(S&&(S=S(e,u))){h0(h,S,n,d);break e}_&&_(e,m,u),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&uh(m,"number",m.value)}switch(_=u?mi(u):window,e){case"focusin":(ig(_)||_.contentEditable==="true")&&(hi=_,kh=u,Vo=null);break;case"focusout":Vo=kh=hi=null;break;case"mousedown":Sh=!0;break;case"contextmenu":case"mouseup":case"dragend":Sh=!1,ug(h,n,d);break;case"selectionchange":if(mE)break;case"keydown":case"keyup":ug(h,n,d)}var E;if(im)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else di?u0(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(c0&&n.locale!=="ko"&&(di||T!=="onCompositionStart"?T==="onCompositionEnd"&&di&&(E=l0()):(Dr=d,nm="value"in Dr?Dr.value:Dr.textContent,di=!0)),_=bc(u,T),0<_.length&&(T=new tg(T,e,null,n,d),h.push({event:T,listeners:_}),E?T.data=E:(E=d0(n),E!==null&&(T.data=E)))),(E=nE?rE(e,n):sE(e,n))&&(u=bc(u,"onBeforeInput"),0<u.length&&(d=new tg("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=E))}S0(h,t)})}function ua(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ra(e,n),i!=null&&r.unshift(ua(e,i,s)),i=ra(e,t),i!=null&&r.push(ua(e,i,s))),e=e.return}return r}function qs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 4,594 bytes, lines 37-38
37function fg(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=ra(n,i),l!=null&&o.unshift(ua(n,l,a))):s||(l=ra(n,i),l!=null&&o.push(ua(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var yE=/\r\n?/g,bE=/\u0000|\uFFFD/g;function mg(e){return(typeof e=="string"?e:""+e).replace(yE,`
38`).replace(bE,"")}function gl(e,t,n){if(t=mg(t),mg(e)!==t&&n)throw Error(A(425))}function wc(){}var _h=null,Eh=null;function jh(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 Th=typeof setTimeout=="function"?setTimeout:void 0,wE=typeof clearTimeout=="function"?clearTimeout:void 0,pg=typeof Promise=="function"?Promise:void 0,xE=typeof queueMicrotask=="function"?queueMicrotask:typeof pg<"u"?function(e){return pg.resolve(null).then(e).catch(kE)}:Th;function kE(e){setTimeout(function(){throw e})}function md(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),oa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);oa(t)}function Fr(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 gg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var io=Math.random().toString(36).slice(2),Nn="__reactFiber$"+io,da="__reactProps$"+io,rr="__reactContainer$"+io,Nh="__reactEvents$"+io,SE="__reactListeners$"+io,_E="__reactHandles$"+io;function fs(e){var t=e[Nn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rr]||n[Nn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gg(e);e!==null;){if(n=e[Nn])return n;e=gg(e)}return t}e=n,n=e.parentNode}return null}function Wa(e){return e=e[Nn]||e[rr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function au(e){return e[da]||null}var Ch=[],pi=-1;function Qr(e){return{current:e}}function xe(e){0>pi||(e.current=Ch[pi],Ch[pi]=null,pi--)}function ge(e,t){pi++,Ch[pi]=e.current,e.current=t}var qr={},at=Qr(qr),St=Qr(!1),Ts=qr;function Vi(e,t){var n=e.type.contextTypes;if(!n)return qr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function _t(e){return e=e.childContextTypes,e!=null}function xc(){xe(St),xe(at)}function vg(e,t,n){if(at.current!==qr)throw Error(A(168));ge(at,t),ge(St,n)}function E0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(A(108,l_(e)||"Unknown",s));return Ne({},n,r)}function kc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qr,Ts=at.current,ge(at,e),ge(St,St.current),!0}function yg(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=E0(e,t,Ts),r.__reactInternalMemoizedMergedChildContext=e,xe(St),xe(at),ge(at,e)):xe(St),ge(St,n)}var Jn=null,lu=!1,pd=!1;function j0(e){Jn===null?Jn=[e]:Jn.push(e)}function EE(e){lu=!0,j0(e)}function Xr(){if(!pd&&Jn!==null){pd=!0;var e=0,t=de;try{var n=Jn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Jn=null,lu=!1}catch(s){throw Jn!==null&&(Jn=Jn.slice(e+1)),Yb(Qf,Xr),s}finally{de=t,pd=!1}}return null}var gi=[],vi=0,Sc=null,_c=0,Wt=[],Ht=0,Ns=null,Qn=1,Xn="";function cs(e,t){gi[vi++]=_c,gi[vi++]=Sc,Sc=e,_c=t}function T0(e,t,n){Wt[Ht++]=Qn,Wt[Ht++]=Xn,Wt[Ht++]=Ns,Ns=e;var r=Qn;e=Xn;var s=32-fn(r)-1;r&=~(1<<s),n+=1;var i=32-fn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Qn=1<<32-fn(t)+s|n<<s|r,Xn=i+e}else Qn=1<<i|n<<s|r,Xn=e}function am(e){e.return!==null&&(cs(e,1),T0(e,1,0))}function lm(e){for(;e===Sc;)Sc=gi[--vi],gi[vi]=null,_c=gi[--vi],gi[vi]=null;for(;e===Ns;)Ns=Wt[--Ht],Wt[Ht]=null,Xn=Wt[--Ht],Wt[Ht]=null,Qn=Wt[--Ht],Wt[Ht]=null}var Ot=null,Rt=null,Se=!1,un=null;function N0(e,t){var n=Vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function bg(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 15,457 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ot=e,Rt=Fr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ot=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ns!==null?{id:Qn,overflow:Xn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ot=e,Rt=null,!0):!1;default:return!1}}function Ph(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Rh(e){if(Se){var t=Rt;if(t){var n=t;if(!bg(e,t)){if(Ph(e))throw Error(A(418));t=Fr(n.nextSibling);var r=Ot;t&&bg(e,t)?N0(r,n):(e.flags=e.flags&-4097|2,Se=!1,Ot=e)}}else{if(Ph(e))throw Error(A(418));e.flags=e.flags&-4097|2,Se=!1,Ot=e}}}function wg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ot=e}function vl(e){if(e!==Ot)return!1;if(!Se)return wg(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jh(e.type,e.memoizedProps)),t&&(t=Rt)){if(Ph(e))throw C0(),Error(A(418));for(;t;)N0(e,t),t=Fr(t.nextSibling)}if(wg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rt=Fr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=Ot?Fr(e.stateNode.nextSibling):null;return!0}function C0(){for(var e=Rt;e;)e=Fr(e.nextSibling)}function Ki(){Rt=Ot=null,Se=!1}function cm(e){un===null?un=[e]:un.push(e)}var jE=cr.ReactCurrentBatchConfig;function _o(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var s=r,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(A(284));if(!n._owner)throw Error(A(290,e))}return e}function yl(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xg(e){var t=e._init;return t(e._payload)}function P0(e){function t(v,g){if(e){var b=v.deletions;b===null?(v.deletions=[g],v.flags|=16):b.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=Hr(v,g),v.index=0,v.sibling=null,v}function i(v,g,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<g?(v.flags|=2,g):b):(v.flags|=2,g)):(v.flags|=1048576,g)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,g,b,k){return g===null||g.tag!==6?(g=kd(b,v.mode,k),g.return=v,g):(g=s(g,b),g.return=v,g)}function l(v,g,b,k){var S=b.type;return S===ui?d(v,g,b.props.children,k,b.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Sr&&xg(S)===g.type)?(k=s(g,b.props),k.ref=_o(v,g,b),k.return=v,k):(k=tc(b.type,b.key,b.props,null,v.mode,k),k.ref=_o(v,g,b),k.return=v,k)}function u(v,g,b,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Sd(b,v.mode,k),g.return=v,g):(g=s(g,b.children||[]),g.return=v,g)}function d(v,g,b,k,S){return g===null||g.tag!==7?(g=js(b,v.mode,k,S),g.return=v,g):(g=s(g,b),g.return=v,g)}function h(v,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=kd(""+g,v.mode,b),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case al:return b=tc(g.type,g.key,g.props,null,v.mode,b),b.ref=_o(v,null,g),b.return=v,b;case ci:return g=Sd(g,v.mode,b),g.return=v,g;case Sr:var k=g._init;return h(v,k(g._payload),b)}if(Mo(g)||bo(g))return g=js(g,v.mode,b,null),g.return=v,g;yl(v,g)}return null}function m(v,g,b,k){var S=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return S!==null?null:a(v,g,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case al:return b.key===S?l(v,g,b,k):null;case ci:return b.key===S?u(v,g,b,k):null;case Sr:return S=b._init,m(v,g,S(b._payload),k)}if(Mo(b)||bo(b))return S!==null?null:d(v,g,b,k,null);yl(v,b)}return null}function f(v,g,b,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return v=v.get(b)||null,a(g,v,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case al:return v=v.get(k.key===null?b:k.key)||null,l(g,v,k,S);case ci:return v=v.get(k.key===null?b:k.key)||null,u(g,v,k,S);case Sr:var _=k._init;return f(v,g,b,_(k._payload),S)}if(Mo(k)||bo(k))return v=v.get(b)||null,d(g,v,k,S,null);yl(g,k)}return null}function y(v,g,b,k){for(var S=null,_=null,E=g,T=g=0,C=null;E!==null&&T<b.length;T++){E.index>T?(C=E,E=null):C=E.sibling;var M=m(v,E,b[T],k);if(M===null){E===null&&(E=C);break}e&&E&&M.alternate===null&&t(v,E),g=i(M,g,T),_===null?S=M:_.sibling=M,_=M,E=C}if(T===b.length)return n(v,E),Se&&cs(v,T),S;if(E===null){for(;T<b.length;T++)E=h(v,b[T],k),E!==null&&(g=i(E,g,T),_===null?S=E:_.sibling=E,_=E);return Se&&cs(v,T),S}for(E=r(v,E);T<b.length;T++)C=f(E,v,T,b[T],k),C!==null&&(e&&C.alternate!==null&&E.delete(C.key===null?T:C.key),g=i(C,g,T),_===null?S=C:_.sibling=C,_=C);return e&&E.forEach(function(W){return t(v,W)}),Se&&cs(v,T),S}function p(v,g,b,k){var S=bo(b);if(typeof S!="function")throw Error(A(150));if(b=S.call(b),b==null)throw Error(A(151));for(var _=S=null,E=g,T=g=0,C=null,M=b.next();E!==null&&!M.done;T++,M=b.next()){E.index>T?(C=E,E=null):C=E.sibling;var W=m(v,E,M.value,k);if(W===null){E===null&&(E=C);break}e&&E&&W.alternate===null&&t(v,E),g=i(W,g,T),_===null?S=W:_.sibling=W,_=W,E=C}if(M.done)return n(v,E),Se&&cs(v,T),S;if(E===null){for(;!M.done;T++,M=b.next())M=h(v,M.value,k),M!==null&&(g=i(M,g,T),_===null?S=M:_.sibling=M,_=M);return Se&&cs(v,T),S}for(E=r(v,E);!M.done;T++,M=b.next())M=f(E,v,T,M.value,k),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?T:M.key),g=i(M,g,T),_===null?S=M:_.sibling=M,_=M);return e&&E.forEach(function($){return t(v,$)}),Se&&cs(v,T),S}function x(v,g,b,k){if(typeof b=="object"&&b!==null&&b.type===ui&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case al:e:{for(var S=b.key,_=g;_!==null;){if(_.key===S){if(S=b.type,S===ui){if(_.tag===7){n(v,_.sibling),g=s(_,b.props.children),g.return=v,v=g;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Sr&&xg(S)===_.type){n(v,_.sibling),g=s(_,b.props),g.ref=_o(v,_,b),g.return=v,v=g;break e}n(v,_);break}else t(v,_);_=_.sibling}b.type===ui?(g=js(b.props.children,v.mode,k,b.key),g.return=v,v=g):(k=tc(b.type,b.key,b.props,null,v.mode,k),k.ref=_o(v,g,b),k.return=v,v=k)}return o(v);case ci:e:{for(_=b.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),g=s(g,b.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Sd(b,v.mode,k),g.return=v,v=g}return o(v);case Sr:return _=b._init,x(v,g,_(b._payload),k)}if(Mo(b))return y(v,g,b,k);if(bo(b))return p(v,g,b,k);yl(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),g=s(g,b),g.return=v,v=g):(n(v,g),g=kd(b,v.mode,k),g.return=v,v=g),o(v)):n(v,g)}return x}var Gi=P0(!0),R0=P0(!1),Ec=Qr(null),jc=null,yi=null,um=null;function dm(){um=yi=jc=null}function hm(e){var t=Ec.current;xe(Ec),e._currentValue=t}function Oh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){jc=e,um=yi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xt=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(um!==e)if(e={context:e,memoizedValue:t,next:null},yi===null){if(jc===null)throw Error(A(308));yi=e,jc.dependencies={lanes:0,firstContext:e}}else yi=yi.next=e;return t}var ms=null;function fm(e){ms===null?ms=[e]:ms.push(e)}function O0(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,fm(t)):(n.next=s.next,s.next=n),t.interleaved=n,sr(e,r)}function sr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _r=!1;function mm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function A0(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 tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Br(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,sr(e,n)}return s=r.interleaved,s===null?(t.next=t,fm(r)):(t.next=s.next,s.next=t),r.interleaved=t,sr(e,n)}function Zl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xf(e,n)}}function kg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tc(e,t,n,r){var s=e.updateQueue;_r=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var h=s.baseState;o=0,d=u=l=null,a=i;do{var m=a.lane,f=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,p=a;switch(m=t,f=n,p.tag){case 1:if(y=p.payload,typeof y=="function"){h=y.call(f,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,m=typeof y=="function"?y.call(f,h,m):y,m==null)break e;h=Ne({},h,m);break e;case 2:_r=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[a]:m.push(a))}else f={eventTime:f,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,l=h):d=d.next=f,o|=m;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;m=a,a=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=u,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);Ps|=o,e.lanes=o,e.memoizedState=h}}function Sg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(A(191,s));s.call(r)}}}var Ha={},An=Qr(Ha),ha=Qr(Ha),fa=Qr(Ha);function ps(e){if(e===Ha)throw Error(A(174));return e}function pm(e,t){switch(ge(fa,t),ge(ha,e),ge(An,Ha),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hh(t,e)}xe(An),ge(An,t)}function qi(){xe(An),xe(ha),xe(fa)}function D0(e){ps(fa.current);var t=ps(An.current),n=hh(t,e.type);t!==n&&(ge(ha,e),ge(An,n))}function gm(e){ha.current===e&&(xe(An),xe(ha))}var je=Qr(0);function Nc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gd=[];function vm(){for(var e=0;e<gd.length;e++)gd[e]._workInProgressVersionPrimary=null;gd.length=0}var Jl=cr.ReactCurrentDispatcher,vd=cr.ReactCurrentBatchConfig,Cs=0,Te=null,Be=null,Ge=null,Cc=!1,Ko=!1,ma=0,TE=0;function rt(){throw Error(A(321))}function ym(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function bm(e,t,n,r,s,i){if(Cs=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jl.current=e===null||e.memoizedState===null?RE:OE,e=n(r,s),Ko){i=0;do{if(Ko=!1,ma=0,25<=i)throw Error(A(301));i+=1,Ge=Be=null,t.updateQueue=null,Jl.current=AE,e=n(r,s)}while(Ko)}if(Jl.current=Pc,t=Be!==null&&Be.next!==null,Cs=0,Ge=Be=Te=null,Cc=!1,t)throw Error(A(300));return e}function wm(){var e=ma!==0;return ma=0,e}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?Te.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Zt(){if(Be===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=Ge===null?Te.memoizedState:Ge.next;if(t!==null)Ge=t,Be=e;else{if(e===null)throw Error(A(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Ge===null?Te.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function pa(e,t){return typeof t=="function"?t(e):t}function yd(e){var t=Zt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Be,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var d=u.lane;if((Cs&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=h,o=r):l=l.next=h,Te.lanes|=d,Ps|=d}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,pn(r,t.memoizedState)||(xt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Te.lanes|=i,Ps|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bd(e){var t=Zt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);pn(i,t.memoizedState)||(xt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function M0(){}function I0(e,t){var n=Te,r=Zt(),s=t(),i=!pn(r.memoizedState,s);if(i&&(r.memoizedState=s,xt=!0),r=r.queue,xm(z0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ge!==null&&Ge.memoizedState.tag&1){if(n.flags|=2048,ga(9,$0.bind(null,n,r,s,t),void 0,null),qe===null)throw Error(A(349));Cs&30||L0(n,t,s)}return s}function L0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $0(e,t,n,r){t.value=n,t.getSnapshot=r,F0(t)&&B0(e)}
vendor: 4,969 bytes, line 38
38function z0(e,t,n){return n(function(){F0(t)&&B0(e)})}function F0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function B0(e){var t=sr(e,1);t!==null&&mn(t,e,1,-1)}function _g(e){var t=kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t.queue=e,e=e.dispatch=PE.bind(null,Te,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function U0(){return Zt().memoizedState}function Yl(e,t,n,r){var s=kn();Te.flags|=e,s.memoizedState=ga(1|t,n,void 0,r===void 0?null:r)}function cu(e,t,n,r){var s=Zt();r=r===void 0?null:r;var i=void 0;if(Be!==null){var o=Be.memoizedState;if(i=o.destroy,r!==null&&ym(r,o.deps)){s.memoizedState=ga(t,n,i,r);return}}Te.flags|=e,s.memoizedState=ga(1|t,n,i,r)}function Eg(e,t){return Yl(8390656,8,e,t)}function xm(e,t){return cu(2048,8,e,t)}function W0(e,t){return cu(4,2,e,t)}function H0(e,t){return cu(4,4,e,t)}function V0(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 K0(e,t,n){return n=n!=null?n.concat([e]):null,cu(4,4,V0.bind(null,t,e),n)}function km(){}function G0(e,t){var n=Zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ym(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function q0(e,t){var n=Zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ym(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Z0(e,t,n){return Cs&21?(pn(n,t)||(n=e0(),Te.lanes|=n,Ps|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=n)}function NE(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=vd.transition;vd.transition={};try{e(!1),t()}finally{de=n,vd.transition=r}}function J0(){return Zt().memoizedState}function CE(e,t,n){var r=Wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Y0(e))Q0(t,n);else if(n=O0(e,t,n,r),n!==null){var s=pt();mn(n,e,r,s),X0(n,t,r)}}function PE(e,t,n){var r=Wr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Y0(e))Q0(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,n);if(s.hasEagerState=!0,s.eagerState=a,pn(a,o)){var l=t.interleaved;l===null?(s.next=s,fm(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=O0(e,t,s,r),n!==null&&(s=pt(),mn(n,e,r,s),X0(n,t,r))}}function Y0(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Q0(e,t){Ko=Cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function X0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xf(e,n)}}var Pc={readContext:qt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},RE={readContext:qt,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Eg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4194308,4,V0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var n=kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=CE.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:_g,useDebugValue:km,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=_g(!1),t=e[0];return e=NE.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,s=kn();if(Se){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),qe===null)throw Error(A(349));Cs&30||L0(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Eg(z0.bind(null,r,i,e),[e]),r.flags|=2048,ga(9,$0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kn(),t=qe.identifierPrefix;if(Se){var n=Xn,r=Qn;n=(r&~(1<<32-fn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ma++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=TE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},OE={readContext:qt,useCallback:G0,useContext:qt,useEffect:xm,useImperativeHandle:K0,useInsertionEffect:W0,useLayoutEffect:H0,useMemo:q0,useReducer:yd,useRef
vendor: 4,528 bytes, lines 38-40
38:U0,useState:function(){return yd(pa)},useDebugValue:km,useDeferredValue:function(e){var t=Zt();return Z0(t,Be.memoizedState,e)},useTransition:function(){var e=yd(pa)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:M0,useSyncExternalStore:I0,useId:J0,unstable_isNewReconciler:!1},AE={readContext:qt,useCallback:G0,useContext:qt,useEffect:xm,useImperativeHandle:K0,useInsertionEffect:W0,useLayoutEffect:H0,useMemo:q0,useReducer:bd,useRef:U0,useState:function(){return bd(pa)},useDebugValue:km,useDeferredValue:function(e){var t=Zt();return Be===null?t.memoizedState=e:Z0(t,Be.memoizedState,e)},useTransition:function(){var e=bd(pa)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:M0,useSyncExternalStore:I0,useId:J0,unstable_isNewReconciler:!1};function rn(e,t){if(e&&e.defaultProps){t=Ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ah(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var uu={isMounted:function(e){return(e=e._reactInternals)?Ls(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Wr(e),i=tr(r,s);i.payload=t,n!=null&&(i.callback=n),t=Br(e,i,s),t!==null&&(mn(t,e,s,r),Zl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Wr(e),i=tr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Br(e,i,s),t!==null&&(mn(t,e,s,r),Zl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pt(),r=Wr(e),s=tr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Br(e,s,r),t!==null&&(mn(t,e,r,n),Zl(t,e,r))}};function jg(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!la(n,r)||!la(s,i):!0}function ew(e,t,n){var r=!1,s=qr,i=t.contextType;return typeof i=="object"&&i!==null?i=qt(i):(s=_t(t)?Ts:at.current,r=t.contextTypes,i=(r=r!=null)?Vi(e,s):qr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=uu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Tg(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&uu.enqueueReplaceState(t,t.state,null)}function Dh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},mm(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=qt(i):(i=_t(t)?Ts:at.current,s.context=Vi(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ah(e,t,i,n),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&&uu.enqueueReplaceState(s,s.state,null),Tc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Zi(e,t){try{var n="",r=t;do n+=a_(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function wd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Mh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var DE=typeof WeakMap=="function"?WeakMap:Map;function tw(e,t,n){n=tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oc||(Oc=!0,Vh=r),Mh(e,t)},n}function nw(e,t,n){n=tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Mh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Mh(e,t),typeof r!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ng(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new DE;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=qE.bind(null,e,t,n),t.then(e,e))}function Cg(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}
vendor: 10,061 bytes, line 40
40function Pg(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=tr(-1,1),t.tag=2,Br(n,t,1))),n.lanes|=1),e)}var ME=cr.ReactCurrentOwner,xt=!1;function ht(e,t,n,r){t.child=e===null?R0(t,null,n,r):Gi(t,e.child,n,r)}function Rg(e,t,n,r,s){n=n.render;var i=t.ref;return Ti(t,s),r=bm(e,t,n,r,i,s),n=wm(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(Se&&n&&am(t),t.flags|=1,ht(e,t,r,s),t.child)}function Og(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Pm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,rw(e,t,i,r,s)):(e=tc(n.type,null,r,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(n=n.compare,n=n!==null?n:la,n(o,r)&&e.ref===t.ref)return ir(e,t,s)}return t.flags|=1,e=Hr(i,r),e.ref=t.ref,e.return=t,t.child=e}function rw(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(la(i,r)&&e.ref===t.ref)if(xt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(xt=!0);else return t.lanes=e.lanes,ir(e,t,s)}return Ih(e,t,n,r,s)}function sw(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(wi,Tt),Tt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(wi,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(wi,Tt),Tt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(wi,Tt),Tt|=r;return ht(e,t,s,n),t.child}function iw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ih(e,t,n,r,s){var i=_t(n)?Ts:at.current;return i=Vi(t,i),Ti(t,s),n=bm(e,t,n,r,i,s),r=wm(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(Se&&r&&am(t),t.flags|=1,ht(e,t,n,s),t.child)}function Ag(e,t,n,r,s){if(_t(n)){var i=!0;kc(t)}else i=!1;if(Ti(t,s),t.stateNode===null)Ql(e,t),ew(t,n,r),Dh(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=qt(u):(u=_t(n)?Ts:at.current,u=Vi(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Tg(t,o,r,u),_r=!1;var m=t.memoizedState;o.state=m,Tc(t,r,o,s),l=t.memoizedState,a!==r||m!==l||St.current||_r?(typeof d=="function"&&(Ah(t,n,d,r),l=t.memoizedState),(a=_r||jg(t,n,a,r,m,l,u))?(h||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=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,A0(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:rn(t.type,a),o.props=u,h=t.pendingProps,m=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=qt(l):(l=_t(n)?Ts:at.current,l=Vi(t,l));var f=n.getDerivedStateFromProps;(d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||m!==l)&&Tg(t,o,r,l),_r=!1,m=t.memoizedState,o.state=m,Tc(t,r,o,s);var y=t.memoizedState;a!==h||m!==y||St.current||_r?(typeof f=="function"&&(Ah(t,n,f,r),y=t.memoizedState),(u=_r||jg(t,n,u,r,m,y,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Lh(e,t,n,r,i,s)}function Lh(e,t,n,r,s,i){iw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&yg(t,n,!1),ir(e,t,i);r=t.stateNode,ME.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Gi(t,e.child,null,i),t.child=Gi(t,null,a,i)):ht(e,t,a,i),t.memoizedState=r.state,s&&yg(t,n,!0),t.child}function ow(e){var t=e.stateNode;t.pendingContext?vg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vg(e,t.context,!1),pm(e,t.containerInfo)}function Dg(e,t,n,r,s){return Ki(),cm(s),t.flags|=256,ht(e,t,n,r),t.child}var $h={dehydrated:null,treeContext:null,retryLane:0};function zh(e){return{baseLanes:e,cachePool:null,transitions:null}}function aw(e,t,n){var r=t.pendingProps,s=je.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),ge(je,s&1),e===null)return Rh(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=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=fu(o,r,0,null),e=js(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=zh(n),t.memoizedState=$h,e):Sm(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return IE(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Hr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Hr(a,i):(i=js(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?zh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=$h,r}return i=e.child,e=i.sibling,r=Hr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Sm(e,t){return t=fu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bl(e,t,n,r){return r!==null&&cm(r),Gi(t,e.child,null,n),e=Sm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function IE(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=wd(Error(A(422))),bl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=fu({mode:"visible",children:r.children},s,0,null),i=js(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Gi(t,e.child,null,o),t.child.memoizedState=zh(o),t.memoizedState=$h,i);if(!(t.mode&1))return bl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(A(419)),r=wd(i,r,void 0),bl(e,t,o,r)}if(a=(o&e.childLanes)!==0,xt||a){if(r=qe,r!==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&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,sr(e,s),mn(r,e,s,-1))}return Cm(),r=wd(Error(A(421))),bl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=ZE.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Rt=Fr(s.nextSibling),Ot=t,Se=!0,un=null,e!==null&&(Wt[Ht++]=Qn,Wt[Ht++]=Xn,Wt[Ht++]=Ns,Qn=e.id,Xn=e.overflow,Ns=t),t=Sm(t,r.children),t.flags|=4096,t)}function Mg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Oh(e.return,t,n)}function xd(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function lw(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(ht(e,t,r.children,n),r=je.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mg(e,n,t);else if(e.tag===19)Mg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(je,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Nc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),xd(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Nc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}xd(t,!0,n,null,i);break;case"together":xd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ql(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ir(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ps|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=Hr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function LE(e,t,n){switch(t.tag){case 3:ow(t),Ki();break;case 5:D0(t);break;case 1:_t(t.type)&&kc(t);break;case 4:pm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ge(Ec,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?aw(e,t,n):(ge(je,je.current&1),e=ir(e,t,n),e!==null?e.sibling:null);ge(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lw(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ge(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,sw(e,t,n)}return ir(e,t,n)}var cw,Fh,uw,dw;cw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Fh=function(){};uw=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ps(An.current);var i=null;switch(n){case"input":s=lh(e,s),r=lh(e,r),i=[];break;case"select":s=Ne({},s,{value:void 0}),r=Ne({},r,{value:void 0}),i=[];break;case"textarea":s=dh(e,s),r=dh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wc)}fh(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ta.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ta.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&we("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};dw=function(e,t,n,r){n!==r&&(t.flags|=4)};function Eo(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $E(e,t,n){var r=t.pendingProps;switch(lm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return _t(t.type)&&xc(),st(t),null;case 3:return r=t.stateNode,qi(),xe(St),xe(at),vm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,un!==null&&(qh(un),un=null))),Fh(e,t),st(t),null;case 5:gm(t);var s=ps(fa.current);if(n=t.type,e!==null&&t.stateNode!=null)uw(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return st(t),null}if(e=ps(An.current),vl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Nn]=t,r[da]=i,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(s=0;s<Lo.length;s++)we(Lo[s],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":Hp(r,i),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},we("invalid",r);break;case"textarea":Kp(r,i),we("invalid",r)}fh(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 28,896 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&gl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&gl(r.textContent,a,e),s=["children",""+a]):ta.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&we("scroll",r)}switch(n){case"input":ll(r),Vp(r,i,!0);break;case"textarea":ll(r),Gp(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=wc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zb(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Nn]=t,e[da]=r,cw(e,t,!1,!1),t.stateNode=e;e:{switch(o=mh(n,r),n){case"dialog":we("cancel",e),we("close",e),s=r;break;case"iframe":case"object":case"embed":we("load",e),s=r;break;case"video":case"audio":for(s=0;s<Lo.length;s++)we(Lo[s],e);s=r;break;case"source":we("error",e),s=r;break;case"img":case"image":case"link":we("error",e),we("load",e),s=r;break;case"details":we("toggle",e),s=r;break;case"input":Hp(e,r),s=lh(e,r),we("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ne({},r,{value:void 0}),we("invalid",e);break;case"textarea":Kp(e,r),s=dh(e,r),we("invalid",e);break;default:s=r}fh(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Ub(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fb(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&na(e,l):typeof l=="number"&&na(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ta.hasOwnProperty(i)?l!=null&&i==="onScroll"&&we("scroll",e):l!=null&&Gf(e,i,l,o))}switch(n){case"input":ll(e),Vp(e,r,!1);break;case"textarea":ll(e),Gp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Si(e,!!r.multiple,i,!1):r.defaultValue!=null&&Si(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=wc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return st(t),null;case 6:if(e&&t.stateNode!=null)dw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=ps(fa.current),ps(An.current),vl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Nn]=t,(i=r.nodeValue!==n)&&(e=Ot,e!==null))switch(e.tag){case 3:gl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Nn]=t,t.stateNode=r}return st(t),null;case 13:if(xe(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&Rt!==null&&t.mode&1&&!(t.flags&128))C0(),Ki(),t.flags|=98560,i=!1;else if(i=vl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(A(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(A(317));i[Nn]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;st(t),i=!1}else un!==null&&(qh(un),un=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||je.current&1?Ue===0&&(Ue=3):Cm())),t.updateQueue!==null&&(t.flags|=4),st(t),null);case 4:return qi(),Fh(e,t),e===null&&ca(t.stateNode.containerInfo),st(t),null;case 10:return hm(t.type._context),st(t),null;case 17:return _t(t.type)&&xc(),st(t),null;case 19:if(xe(je),i=t.memoizedState,i===null)return st(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Eo(i,!1);else{if(Ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Nc(e),o!==null){for(t.flags|=128,Eo(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,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}),n=n.sibling;return ge(je,je.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>Ji&&(t.flags|=128,r=!0,Eo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Nc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Se)return st(t),null}else 2*Ae()-i.renderingStartTime>Ji&&n!==1073741824&&(t.flags|=128,r=!0,Eo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=je.current,ge(je,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Nm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Tt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function zE(e,t){switch(lm(t),t.tag){case 1:return _t(t.type)&&xc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(),xe(St),xe(at),vm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gm(t),null;case 13:if(xe(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(je),null;case 4:return qi(),null;case 10:return hm(t.type._context),null;case 22:case 23:return Nm(),null;case 24:return null;default:return null}}var wl=!1,ot=!1,FE=typeof WeakSet=="function"?WeakSet:Set,B=null;function bi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function Bh(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var Ig=!1;function BE(e,t){if(_h=vc,e=g0(),om(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==n||s!==0&&h.nodeType!==3||(a=o+s),h!==i||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===n&&++u===s&&(a=o),m===i&&++d===r&&(l=o),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eh={focusedElem:e,selectionRange:n},vc=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,x=y.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:rn(t.type,p),x);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(k){Oe(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return y=Ig,Ig=!1,y}function Go(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Bh(t,n,i)}s=s.next}while(s!==r)}}function du(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Uh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hw(e){var t=e.alternate;t!==null&&(e.alternate=null,hw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nn],delete t[da],delete t[Nh],delete t[SE],delete t[_E])),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 fw(e){return e.tag===5||e.tag===3||e.tag===4}function Lg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fw(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 Wh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wc));else if(r!==4&&(e=e.child,e!==null))for(Wh(e,t,n),e=e.sibling;e!==null;)Wh(e,t,n),e=e.sibling}function Hh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Hh(e,t,n),e=e.sibling;e!==null;)Hh(e,t,n),e=e.sibling}var Ye=null,cn=!1;function vr(e,t,n){for(n=n.child;n!==null;)mw(e,t,n),n=n.sibling}function mw(e,t,n){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(ru,n)}catch{}switch(n.tag){case 5:ot||bi(n,t);case 6:var r=Ye,s=cn;Ye=null,vr(e,t,n),Ye=r,cn=s,Ye!==null&&(cn?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(cn?(e=Ye,n=n.stateNode,e.nodeType===8?md(e.parentNode,n):e.nodeType===1&&md(e,n),oa(e)):md(Ye,n.stateNode));break;case 4:r=Ye,s=cn,Ye=n.stateNode.containerInfo,cn=!0,vr(e,t,n),Ye=r,cn=s;break;case 0:case 11:case 14:case 15:if(!ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Bh(n,t,o),s=s.next}while(s!==r)}vr(e,t,n);break;case 1:if(!ot&&(bi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Oe(n,t,a)}vr(e,t,n);break;case 21:vr(e,t,n);break;case 22:n.mode&1?(ot=(r=ot)||n.memoizedState!==null,vr(e,t,n),ot=r):vr(e,t,n);break;default:vr(e,t,n)}}function $g(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FE),t.forEach(function(r){var s=JE.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ye=a.stateNode,cn=!1;break e;case 3:Ye=a.stateNode.containerInfo,cn=!0;break e;case 4:Ye=a.stateNode.containerInfo,cn=!0;break e}a=a.return}if(Ye===null)throw Error(A(160));mw(i,o,s),Ye=null,cn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Oe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)pw(t,e),t=t.sibling}function pw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),wn(e),r&4){try{Go(3,e,e.return),du(3,e)}catch(p){Oe(e,e.return,p)}try{Go(5,e,e.return)}catch(p){Oe(e,e.return,p)}}break;case 1:en(t,e),wn(e),r&512&&n!==null&&bi(n,n.return);break;case 5:if(en(t,e),wn(e),r&512&&n!==null&&bi(n,n.return),e.flags&32){var s=e.stateNode;try{na(s,"")}catch(p){Oe(e,e.return,p)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Lb(s,i),mh(a,o);var u=mh(a,i);for(o=0;o<l.length;o+=2){var d=l[o],h=l[o+1];d==="style"?Ub(s,h):d==="dangerouslySetInnerHTML"?Fb(s,h):d==="children"?na(s,h):Gf(s,d,h,u)}switch(a){case"input":ch(s,i);break;case"textarea":$b(s,i);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?Si(s,!!i.multiple,f,!1):m!==!!i.multiple&&(i.defaultValue!=null?Si(s,!!i.multiple,i.defaultValue,!0):Si(s,!!i.multiple,i.multiple?[]:"",!1))}s[da]=i}catch(p){Oe(e,e.return,p)}}break;case 6:if(en(t,e),wn(e),r&4){if(e.stateNode===null)throw Error(A(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(p){Oe(e,e.return,p)}}break;case 3:if(en(t,e),wn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{oa(t.containerInfo)}catch(p){Oe(e,e.return,p)}break;case 4:en(t,e),wn(e);break;case 13:en(t,e),wn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(jm=Ae())),r&4&&$g(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(ot=(u=ot)||d,en(t,e),ot=u):en(t,e),wn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(B=e,d=e.child;d!==null;){for(h=B=d;B!==null;){switch(m=B,f=m.child,m.tag){case 0:case 11:case 14:case 15:Go(4,m,m.return);break;case 1:bi(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(p){Oe(r,n,p)}}break;case 5:bi(m,m.return);break;case 22:if(m.memoizedState!==null){Fg(h);continue}}f!==null?(f.return=m,B=f):Fg(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Bb("display",o))}catch(p){Oe(e,e.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(p){Oe(e,e.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:en(t,e),wn(e),r&4&&$g(e);break;case 21:break;default:en(t,e),wn(e)}}function wn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(fw(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(na(s,""),r.flags&=-33);var i=Lg(e);Hh(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Lg(e);Wh(e,a,o);break;default:throw Error(A(161))}}catch(l){Oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function UE(e,t,n){B=e,gw(e)}function gw(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var s=B,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||wl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ot;a=wl;var u=ot;if(wl=o,(ot=l)&&!u)for(B=s;B!==null;)o=B,l=o.child,o.tag===22&&o.memoizedState!==null?Bg(s):l!==null?(l.return=o,B=l):Bg(s);for(;i!==null;)B=i,gw(i),i=i.sibling;B=s,wl=a,ot=u}zg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,B=i):zg(e)}}function zg(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ot||du(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ot)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:rn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Sg(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Sg(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&oa(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}ot||t.flags&512&&Uh(t)}catch(m){Oe(t,t.return,m)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Fg(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Bg(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{du(4,t)}catch(l){Oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Oe(t,s,l)}}var i=t.return;try{Uh(t)}catch(l){Oe(t,i,l)}break;case 5:var o=t.return;try{Uh(t)}catch(l){Oe(t,o,l)}}}catch(l){Oe(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var WE=Math.ceil,Rc=cr.ReactCurrentDispatcher,_m=cr.ReactCurrentOwner,Kt=cr.ReactCurrentBatchConfig,oe=0,qe=null,Le=null,Qe=0,Tt=0,wi=Qr(0),Ue=0,va=null,Ps=0,hu=0,Em=0,qo=null,wt=null,jm=0,Ji=1/0,Gn=null,Oc=!1,Vh=null,Ur=null,xl=!1,Mr=null,Ac=0,Zo=0,Kh=null,Xl=-1,ec=0;function pt(){return oe&6?Ae():Xl!==-1?Xl:Xl=Ae()}function Wr(e){return e.mode&1?oe&2&&Qe!==0?Qe&-Qe:jE.transition!==null?(ec===0&&(ec=e0()),ec):(e=de,e!==0||(e=window.event,e=e===void 0?16:a0(e.type)),e):1}function mn(e,t,n,r){if(50<Zo)throw Zo=0,Kh=null,Error(A(185));Ba(e,n,r),(!(oe&2)||e!==qe)&&(e===qe&&(!(oe&2)&&(hu|=n),Ue===4&&jr(e,Qe)),Et(e,r),n===1&&oe===0&&!(t.mode&1)&&(Ji=Ae()+500,lu&&Xr()))}function Et(e,t){var n=e.callbackNode;j_(e,t);var r=gc(e,e===qe?Qe:0);if(r===0)n!==null&&Jp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Jp(n),t===1)e.tag===0?EE(Ug.bind(null,e)):j0(Ug.bind(null,e)),xE(function(){!(oe&6)&&Xr()}),n=null;else{switch(t0(r)){case 1:n=Qf;break;case 4:n=Qb;break;case 16:n=pc;break;case 536870912:n=Xb;break;default:n=pc}n=_w(n,vw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vw(e,t){if(Xl=-1,ec=0,oe&6)throw Error(A(327));var n=e.callbackNode;if(Ni()&&e.callbackNode!==n)return null;var r=gc(e,e===qe?Qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Dc(e,r);else{t=r;var s=oe;oe|=2;var i=bw();(qe!==e||Qe!==t)&&(Gn=null,Ji=Ae()+500,Es(e,t));do try{KE();break}catch(a){yw(e,a)}while(!0);dm(),Rc.current=i,oe=s,Le!==null?t=0:(qe=null,Qe=0,t=Ue)}if(t!==0){if(t===2&&(s=bh(e),s!==0&&(r=s,t=Gh(e,s))),t===1)throw n=va,Es(e,0),jr(e,r),Et(e,Ae()),n;if(t===6)jr(e,r);else{if(s=e.current.alternate,!(r&30)&&!HE(s)&&(t=Dc(e,r),t===2&&(i=bh(e),i!==0&&(r=i,t=Gh(e,i))),t===1))throw n=va,Es(e,0),jr(e,r),Et(e,Ae()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:us(e,wt,Gn);break;case 3:if(jr(e,r),(r&130023424)===r&&(t=jm+500-Ae(),10<t)){if(gc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){pt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Th(us.bind(null,e,wt,Gn),t);break}us(e,wt,Gn);break;case 4:if(jr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-fn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WE(r/1960))-r,10<r){e.timeoutHandle=Th(us.bind(null,e,wt,Gn),r);break}us(e,wt,Gn);break;case 5:us(e,wt,Gn);break;default:throw Error(A(329))}}}return Et(e,Ae()),e.callbackNode===n?vw.bind(null,e):null}function Gh(e,t){var n=qo;return e.current.memoizedState.isDehydrated&&(Es(e,t).flags|=256),e=Dc(e,t),e!==2&&(t=wt,wt=n,t!==null&&qh(t)),e}function qh(e){wt===null?wt=e:wt.push.apply(wt,e)}function HE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!pn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function jr(e,t){for(t&=~Em,t&=~hu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-fn(t),r=1<<n;e[n]=-1,t&=~r}}function Ug(e){if(oe&6)throw Error(A(327));Ni();var t=gc(e,0);if(!(t&1))return Et(e,Ae()),null;var n=Dc(e,t);if(e.tag!==0&&n===2){var r=bh(e);r!==0&&(t=r,n=Gh(e,r))}if(n===1)throw n=va,Es(e,0),jr(e,t),Et(e,Ae()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,us(e,wt,Gn),Et(e,Ae()),null}function Tm(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Ji=Ae()+500,lu&&Xr())}}function Rs(e){Mr!==null&&Mr.tag===0&&!(oe&6)&&Ni();var t=oe;oe|=1;var n=Kt.transition,r=de;try{if(Kt.transition=null,de=1,e)return e()}finally{de=r,Kt.transition=n,oe=t,!(oe&6)&&Xr()}}function Nm(){Tt=wi.current,xe(wi)}function Es(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,wE(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(lm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xc();break;case 3:qi(),xe(St),xe(at),vm();break;case 5:gm(r);break;case 4:qi();break;case 13:xe(je);break;case 19:xe(je);break;case 10:hm(r.type._context);break;case 22:case 23:Nm()}n=n.return}if(qe=e,Le=e=Hr(e.current,null),Qe=Tt=t,Ue=0,va=null,Em=hu=Ps=0,wt=qo=null,ms!==null){for(t=0;t<ms.length;t++)if(n=ms[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}ms=null}return e}function yw(e,t){do{var n=Le;try{if(dm(),Jl.current=Pc,Cc){for(var r=Te.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Cc=!1}if(Cs=0,Ge=Be=Te=null,Ko=!1,ma=0,_m.current=null,n===null||n.return===null){Ue=1,va=t,Le=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Qe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Cg(o);if(f!==null){f.flags&=-257,Pg(f,o,a,i,t),f.mode&1&&Ng(i,u,t),t=f,l=u;var y=t.updateQueue;if(y===null){var p=new Set;p.add(l),t.updateQueue=p}else y.add(l);break e}else{if(!(t&1)){Ng(i,u,t),Cm();break e}l=Error(A(426))}}else if(Se&&a.mode&1){var x=Cg(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Pg(x,o,a,i,t),cm(Zi(l,a));break e}}i=l=Zi(l,a),Ue!==4&&(Ue=2),qo===null?qo=[i]:qo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=tw(i,l,t);kg(i,v);break e;case 1:a=l;var g=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ur===null||!Ur.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=nw(i,a,t);kg(i,k);break e}}i=i.return}while(i!==null)}xw(n)}catch(S){t=S,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function bw(){var e=Rc.current;return Rc.current=Pc,e===null?Pc:e}function Cm(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),qe===null||!(Ps&268435455)&&!(hu&268435455)||jr(qe,Qe)}function Dc(e,t){var n=oe;oe|=2;var r=bw();(qe!==e||Qe!==t)&&(Gn=null,Es(e,t));do try{VE();break}catch(s){yw(e,s)}while(!0);if(dm(),oe=n,Rc.current=r,Le!==null)throw Error(A(261));return qe=null,Qe=0,Ue}function VE(){for(;Le!==null;)ww(Le)}function KE(){for(;Le!==null&&!v_();)ww(Le)}function ww(e){var t=Sw(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?xw(e):Le=t,_m.current=null}function xw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zE(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Le=null;return}}else if(n=$E(n,t,Tt),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);Ue===0&&(Ue=5)}function us(e,t,n){var r=de,s=Kt.transition;try{Kt.transition=null,de=1,GE(e,t,n,r)}finally{Kt.transition=s,de=r}return null}function GE(e,t,n,r){do Ni();while(Mr!==null);if(oe&6)throw Error(A(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(T_(e,i),e===qe&&(Le=qe=null,Qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xl||(xl=!0,_w(pc,function(){return Ni(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Kt.transition,Kt.transition=null;var o=de;de=1;var a=oe;oe|=4,_m.current=null,BE(e,n),pw(n,e),fE(Eh),vc=!!_h,Eh=_h=null,e.current=n,UE(n),y_(),oe=a,de=o,Kt.transition=i}else e.current=n;if(xl&&(xl=!1,Mr=e,Ac=s),i=e.pendingLanes,i===0&&(Ur=null),x_(n.stateNode),Et(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Oc)throw Oc=!1,e=Vh,Vh=null,e;return Ac&1&&e.tag!==0&&Ni(),i=e.pendingLanes,i&1?e===Kh?Zo++:(Zo=0,Kh=e):Zo=0,Xr(),null}function Ni(){if(Mr!==null){var e=t0(Ac),t=Kt.transition,n=de;try{if(Kt.transition=null,de=16>e?16:e,Mr===null)var r=!1;else{if(e=Mr,Mr=null,Ac=0,oe&6)throw Error(A(331));var s=oe;for(oe|=4,B=e.current;B!==null;){var i=B,o=i.child;if(B.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(B=u;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:Go(8,d,i)}var h=d.child;if(h!==null)h.return=d,B=h;else for(;B!==null;){d=B;var m=d.sibling,f=d.return;if(hw(d),d===u){B=null;break}if(m!==null){m.return=f,B=m;break}B=f}}}var y=i.alternate;if(y!==null){var p=y.child;if(p!==null){y.child=null;do{var x=p.sibling;p.sibling=null,p=x}while(p!==null)}}B=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,B=o;else e:for(;B!==null;){if(i=B,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Go(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,B=v;break e}B=i.return}}var g=e.current;for(B=g;B!==null;){o=B;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,B=b;else e:for(o=g;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:du(9,a)}}catch(S){Oe(a,a.return,S)}if(a===o){B=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,B=k;break e}B=a.return}}if(oe=s,Xr(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(ru,e)}catch{}r=!0}return r}finally{de=n,Kt.transition=t}}return!1}function Wg(e,t,n){t=Zi(n,t),t=tw(e,t,1),e=Br(e,t,1),t=pt(),e!==null&&(Ba(e,1,t),Et(e,t))}function Oe(e,t,n){if(e.tag===3)Wg(e,e,n);else for(;t!==null;){if(t.tag===3){Wg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ur===null||!Ur.has(r))){e=Zi(n,e),e=nw(t,e,1),t=Br(t,e,1),e=pt(),t!==null&&(Ba(t,1,e),Et(t,e));break}}t=t.return}}function qE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pt(),e.pingedLanes|=e.suspendedLanes&n,qe===e&&(Qe&n)===n&&(Ue===4||Ue===3&&(Qe&130023424)===Qe&&500>Ae()-jm?Es(e,0):Em|=n),Et(e,t)}function kw(e,t){t===0&&(e.mode&1?(t=dl,dl<<=1,!(dl&130023424)&&(dl=4194304)):t=1);var n=pt();e=sr(e,t),e!==null&&(Ba(e,t,n),Et(e,n))}function ZE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kw(e,n)}function JE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),kw(e,n)}var Sw;Sw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)xt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xt=!1,LE(e,t,n);xt=!!(e.flags&131072)}else xt=!1,Se&&t.flags&1048576&&T0(t,_c,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ql(e,t),e=t.pendingProps;var s=Vi(t,at.current);Ti(t,n),s=bm(null,t,r,e,s,n);var i=wm();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,_t(r)?(i=!0,kc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,mm(t),s.updater=uu,t.stateNode=s,s._reactInternals=t,Dh(t,r,e,n),t=Lh(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&am(t),ht(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ql(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=QE(r),e=rn(r,e),s){case 0:t=Ih(null,t,r,e,n);break e;case 1:t=Ag(null,t,r,e,n);break e;case 11:t=Rg(null,t,r,e,n);break e;case 14:t=Og(null,t,r,rn(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rn(r,s),Ih(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rn(r,s),Ag(e,t,r,s,n);case 3:e:{if(ow(t),e===null)throw Error(A(387));
vendor: 6,894 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,A0(e,t),Tc(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Zi(Error(A(423)),t),t=Dg(e,t,r,n,s);break e}else if(r!==s){s=Zi(Error(A(424)),t),t=Dg(e,t,r,n,s);break e}else for(Rt=Fr(t.stateNode.containerInfo.firstChild),Ot=t,Se=!0,un=null,n=R0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ki(),r===s){t=ir(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return D0(t),e===null&&Rh(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,jh(r,s)?o=null:i!==null&&jh(r,i)&&(t.flags|=32),iw(e,t),ht(e,t,o,n),t.child;case 6:return e===null&&Rh(t),null;case 13:return aw(e,t,n);case 4:return pm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gi(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rn(r,s),Rg(e,t,r,s,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ge(Ec,r._currentValue),r._currentValue=o,i!==null)if(pn(i.value,o)){if(i.children===s.children&&!St.current){t=ir(e,t,n);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===r){if(i.tag===1){l=tr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Oh(i.return,n,t),a.lanes|=n;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(A(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Oh(o,n,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}ht(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ti(t,n),s=qt(s),r=r(s),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,s=rn(r,t.pendingProps),s=rn(r.type,s),Og(e,t,r,s,n);case 15:return rw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:rn(r,s),Ql(e,t),t.tag=1,_t(r)?(e=!0,kc(t)):e=!1,Ti(t,n),ew(t,r,s),Dh(t,r,s,n),Lh(null,t,r,!0,e,n);case 19:return lw(e,t,n);case 22:return sw(e,t,n)}throw Error(A(156,t.tag))};function _w(e,t){return Yb(e,t)}function YE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,n,r){return new YE(e,t,n,r)}function Pm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QE(e){if(typeof e=="function")return Pm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zf)return 11;if(e===Jf)return 14}return 2}function Hr(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function tc(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Pm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ui:return js(n.children,s,i,t);case qf:o=8,s|=8;break;case sh:return e=Vt(12,n,t,s|2),e.elementType=sh,e.lanes=i,e;case ih:return e=Vt(13,n,t,s),e.elementType=ih,e.lanes=i,e;case oh:return e=Vt(19,n,t,s),e.elementType=oh,e.lanes=i,e;case Db:return fu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ob:o=10;break e;case Ab:o=9;break e;case Zf:o=11;break e;case Jf:o=14;break e;case Sr:o=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Vt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function js(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function fu(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Db,e.lanes=n,e.stateNode={isHidden:!1},e}function kd(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function Sd(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XE(e,t,n,r,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=rd(0),this.expirationTimes=rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Rm(e,t,n,r,s,i,o,a,l){return e=new XE(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mm(i),e}function ej(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ci,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ew(e){if(!e)return qr;e=e._reactInternals;e:{if(Ls(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(_t(n))return E0(e,n,t)}return t}function jw(e,t,n,r,s,i,o,a,l){return e=Rm(n,r,!0,e,s,i,o,a,l),e.context=Ew(null),n=e.current,r=pt(),s=Wr(n),i=tr(r,s),i.callback=t??null,Br(n,i,s),e.current.lanes=s,Ba(e,s,r),Et(e,r),e}function mu(e,t,n,r){var s=t.current,i=pt(),o=Wr(s);return n=Ew(n),t.context===null?t.context=n:t.pendingContext=n,t=tr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Br(s,t,o),e!==null&&(mn(e,s,o,i),Zl(e,s,o)),o}function Mc(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 Hg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}
vendor: 6,051 bytes, line 40
40function Om(e,t){Hg(e,t),(e=e.alternate)&&Hg(e,t)}function tj(){return null}var Tw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Am(e){this._internalRoot=e}pu.prototype.render=Am.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));mu(e,t,null,null)};pu.prototype.unmount=Am.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rs(function(){mu(null,e,null,null)}),t[rr]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=s0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Er.length&&t!==0&&t<Er[n].priority;n++);Er.splice(n,0,e),n===0&&o0(e)}};function Dm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vg(){}function nj(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Mc(o);i.call(u)}}var o=jw(t,r,e,0,null,!1,!1,"",Vg);return e._reactRootContainer=o,e[rr]=o.current,ca(e.nodeType===8?e.parentNode:e),Rs(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Mc(l);a.call(u)}}var l=Rm(e,0,!1,null,null,!1,!1,"",Vg);return e._reactRootContainer=l,e[rr]=l.current,ca(e.nodeType===8?e.parentNode:e),Rs(function(){mu(t,l,n,r)}),l}function vu(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Mc(o);a.call(l)}}mu(t,o,e,s)}else o=nj(n,t,e,s,r);return Mc(o)}n0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Io(t.pendingLanes);n!==0&&(Xf(t,n|1),Et(t,Ae()),!(oe&6)&&(Ji=Ae()+500,Xr()))}break;case 13:Rs(function(){var r=sr(e,1);if(r!==null){var s=pt();mn(r,e,1,s)}}),Om(e,1)}};em=function(e){if(e.tag===13){var t=sr(e,134217728);if(t!==null){var n=pt();mn(t,e,134217728,n)}Om(e,134217728)}};r0=function(e){if(e.tag===13){var t=Wr(e),n=sr(e,t);if(n!==null){var r=pt();mn(n,e,t,r)}Om(e,t)}};s0=function(){return de};i0=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};gh=function(e,t,n){switch(t){case"input":if(ch(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=au(r);if(!s)throw Error(A(90));Ib(r),ch(r,s)}}}break;case"textarea":$b(e,n);break;case"select":t=n.value,t!=null&&Si(e,!!n.multiple,t,!1)}};Vb=Tm;Kb=Rs;var rj={usingClientEntryPoint:!1,Events:[Wa,mi,au,Wb,Hb,Tm]},jo={findFiberByHostInstance:fs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sj={bundleType:jo.bundleType,version:jo.version,rendererPackageName:jo.rendererPackageName,rendererConfig:jo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:cr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zb(e),e===null?null:e.stateNode},findFiberByHostInstance:jo.findFiberByHostInstance||tj,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 kl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kl.isDisabled&&kl.supportsFiber)try{ru=kl.inject(sj),On=kl}catch{}}It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rj;It.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dm(t))throw Error(A(200));return ej(e,t,null,n)};It.createRoot=function(e,t){if(!Dm(e))throw Error(A(299));var n=!1,r="",s=Tw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Rm(e,1,!1,null,null,n,!1,r,s),e[rr]=t.current,ca(e.nodeType===8?e.parentNode:e),new Am(t)};It.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(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Zb(t),e=e===null?null:e.stateNode,e};It.flushSync=function(e){return Rs(e)};It.hydrate=function(e,t,n){if(!gu(t))throw Error(A(200));return vu(null,e,t,!0,n)};It.hydrateRoot=function(e,t,n){if(!Dm(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Tw;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=jw(t,null,e,1,n??null,s,!1,i,o),e[rr]=t.current,ca(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new pu(t)};It.render=function(e,t,n){if(!gu(t))throw Error(A(200));return vu(null,e,t,!1,n)};It.unmountComponentAtNode=function(e){if(!gu(e))throw Error(A(40));return e._reactRootContainer?(Rs(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[rr]=null})}),!0):!1};It.unstable_batchedUpdates=Tm;It.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!gu(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return vu(e,t,n,!1,r)};It.version="18.3.1-next-f1338f8080-20240426";function Nw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nw)}catch(e){console.error(e)}}Nw(),Nb.exports=It;var Va=Nb.exports;const Cw=za(Va);var Pw,Kg=Va;Pw=Kg.createRoot,Kg.hydrateRoot;var ij=typeof Element<"u",oj=typeof Map=="function",aj=typeof Set=="function",lj=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nc(e,t){if(e===t)return!0;
40if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!nc(e[r],t[r]))return!1;return!0}var i;if(oj&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!nc(r.value[1],t.get(r.value[0])))return!1;return!0}if(aj&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(lj&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])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),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(ij&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!nc(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var cj=function(t,n){try{return nc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const uj=za(cj);var dj=function(e,t,n,r,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 u=[n,r,s,i,o,a],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},hj=dj;const Gg=za(hj);var fj=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var d=o[u];if(!l(d))return!1;var h=t[d],m=n[d];if(i=r?r.call(s,h,m,d):void 0,i===!1||i===void 0&&h!==m)return!1}return!0};const mj=za(fj);var Rw=(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))(Rw||{}),_d={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"]}},qg=Object.values(Rw),yu={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ow=Object.entries(yu).reduce((e,[t,n])=>(e[n]=t,e),{}),hn="data-rh",Ci={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Pi=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},pj=e=>{let t=Pi(e,"title");const n=Pi(e,Ci.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Pi(e,Ci.DEFAULT_TITLE);return t||r||void 0},gj=e=>Pi(e,Ci.ON_CHANGE_CLIENT_STATE)||(()=>{}),Ed=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),vj=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),yj=e=>console&&typeof console.warn=="function"&&console.warn(e),To=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&yj(`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 u;const d=Object.keys(l);for(let m=0;m<d.length;m+=1){const f=d[m],y=f.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(y==="rel"&&l[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(u=f)}if(!u||!l[u])return!1;const h=l[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][h]?!1:(o[u][h]=!0,!0)}
40).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const u=a[l],d={...r[u],...o[u]};r[u]=d}return s},[]).reverse()},bj=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},wj=e=>({baseTag:vj(["href"],e),bodyAttributes:Ed("bodyAttributes",e),defer:Pi(e,Ci.DEFER),encode:Pi(e,Ci.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ed("htmlAttributes",e),linkTags:To("link",["rel","href"],e),metaTags:To("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:To("noscript",["innerHTML"],e),onChangeClientState:gj(e),scriptTags:To("script",["src","innerHTML"],e),styleTags:To("style",["cssText"],e),title:pj(e),titleAttributes:Ed("titleAttributes",e),prioritizeSeoTags:bj(e,Ci.PRIORITIZE_SEO_TAGS)}),Aw=e=>Array.isArray(e)?e.join(""):e,xj=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},jd=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(xj(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Zg=(e,t)=>({...e,[t]:void 0}),kj=["noscript","script","style"],Zh=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Dw=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Sj=(e,t,n,r)=>{const s=Dw(n),i=Aw(t);return s?`<${e} ${hn}="true" ${s}>${Zh(i,r)}</${e}>`:`<${e} ${hn}="true">${Zh(i,r)}</${e}>`},_j=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof i[d]>"u"?d:`${d}="${Zh(i[d],n)}"`;return u?`${u} ${h}`:h},""),a=i.innerHTML||i.cssText||"",l=kj.indexOf(e)===-1;return`${r}<${e} ${hn}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),Mw=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=yu[r];return n[s||r]=e[r],n},t),Ej=(e,t,n)=>{const r={key:t,[hn]:!0},s=Mw(n,r);return[R.createElement("title",s,t)]},rc=(e,t)=>t.map((n,r)=>{const s={key:r,[hn]:!0};return Object.keys(n).forEach(i=>{const a=yu[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[i]}),R.createElement(e,s)}),Ft=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Ej(e,t.title,t.titleAttributes),toString:()=>Sj(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Mw(t),toString:()=>Dw(t)};default:return{toComponent:()=>rc(e,t),toString:()=>_j(e,t,n)}}},jj=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=jd(e,_d.meta),i=jd(t,_d.link),o=jd(n,_d.script);return{priorityMethods:{toComponent:()=>[...rc("meta",s.priority),...rc("link",i.priority),...rc("script",o.priority)],toString:()=>`${Ft("meta",s.priority,r)} ${Ft("link",i.priority,r)} ${Ft("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},Tj=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:h,scriptTags:m}=e,f={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:f,linkTags:d,metaTags:h,scriptTags:m}=jj(e)),{priority:f,base:Ft("base",t,r),bodyAttributes:Ft("bodyAttributes",n,r),htmlAttributes:Ft("htmlAttributes",s,r),link:Ft("link",d,r),meta:Ft("meta",h,r),noscript:Ft("noscript",i,r),script:Ft("script",m,r),style:Ft("style",o,r),title:Ft("title",{title:a,titleAttributes:l},r)}},Jh=Tj,Sl=[],Mm=!!(typeof window<"u"&&window.document&&window.document.createElement),Yh=class{constructor(e,t){Un(this,"instances",[]);Un(this,"canUseDOM",Mm);Un(this,"context");Un(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Sl:this.instances,add:e=>{(this.canUseDOM?Sl:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Sl:this.instances).indexOf(e);(this.canUseDOM?Sl:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Jh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Nj=parseInt(R.version.split(".")[0],10),Qh=Nj>=19,Cj={},Iw=R.createContext(Cj),ys,Lw=(ys=class extends w.Component{constructor(n){super(n);Un(this,"helmetData");Qh?this.helmetData=null:this.helmetData=new Yh(this.props.context||{},ys.canUseDOM)}render(){return Qh?R.createElement(R.Fragment,null,this.props.children):R.createElement(Iw.Provider,{value:this.helmetData.value},this.props.children)}},Un(ys,"canUseDOM",Mm),ys),Zs=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${hn}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText"){const d=a.cssText;
40l.appendChild(document.createTextNode(d))}else{const d=u,h=typeof a[d]>"u"?"":a[d];l.setAttribute(u,h)}l.setAttribute(hn,"true"),s.some((u,d)=>(o=d,l.isEqualNode(u)))?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=>n.appendChild(a)),{oldTags:s,newTags:i}},Xh=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(hn),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const u=i.indexOf(a);u!==-1&&i.splice(u,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);s.length===i.length?n.removeAttribute(hn):n.getAttribute(hn)!==o.join(",")&&n.setAttribute(hn,o.join(","))},Pj=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Aw(e)),Xh("title",t)},Jg=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:d,title:h,titleAttributes:m}=e;Xh("body",r),Xh("html",s),Pj(h,m);const f={baseTag:Zs("base",n),linkTags:Zs("link",i),metaTags:Zs("meta",o),noscriptTags:Zs("noscript",a),scriptTags:Zs("script",u),styleTags:Zs("style",d)},y={},p={};Object.keys(f).forEach(x=>{const{newTags:v,oldTags:g}=f[x];v.length&&(y[x]=v),g.length&&(p[x]=f[x].oldTags)}),t&&t(),l(e,y,p)},No=null,Rj=e=>{No&&cancelAnimationFrame(No),e.defer?No=requestAnimationFrame(()=>{Jg(e,()=>{No=null})}):(Jg(e),No=null)},Oj=Rj,Yg=class extends w.Component{constructor(){super(...arguments);Un(this,"rendered",!1)}shouldComponentUpdate(t){return!mj(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=wj(t.get().map(i=>{const{context:o,...a}=i.props;return a}));Lw.canUseDOM?Oj(s):Jh&&(r=Jh(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},sc=[],Qg=e=>{const t={};for(const n of Object.keys(e))t[Ow[n]||n]=e[n];return t},os=e=>{const t={};for(const n of Object.keys(e)){const r=yu[n];t[r||n]=e[n]}return t},Xg=(e,t)=>{if(!Mm)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],o=Object.keys(t);for(const a of i)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},Td=()=>{const e={},t={};for(const n of sc){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,Qg(r)),s&&Object.assign(t,Qg(s))}Xg("html",e),Xg("body",t)},Aj=class extends w.Component{componentDidMount(){sc.push(this),Td()}componentDidUpdate(){Td()}componentWillUnmount(){const e=sc.indexOf(this);e!==-1&&sc.splice(e,1),Td()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return R.createElement("title",os(t),e)}renderBase(){const{base:e}=this.props;return e?R.createElement("base",os(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("meta",{key:n,...os(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("link",{key:n,...os(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=os(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=os(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=os(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("noscript",{key:n,...i})})}render(){return R.createElement(R.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},nh,Dj=(nh=class extends w.Component{shouldComponentUpdate(e){return!uj(Zg(this.props,"helmetData"),Zg(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,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
40warnOnInvalidChildren(e,t){return Gg(qg.some(n=>e.type===n),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 ${qg.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Gg(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="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 n={};return R.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((l,u)=>(l[Ow[u]||u]=i[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Yh)){const s=r;r=new Yh(s.context,!0),delete n.helmetData}return Qh?R.createElement(Aj,{...n}):r?R.createElement(Yg,{...n,context:r.value}):R.createElement(Iw.Consumer,null,s=>R.createElement(Yg,{...n,context:s}))}},Un(nh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),nh);const Mj=1,Ij=1e6;let Nd=0;function Lj(){return Nd=(Nd+1)%Number.MAX_SAFE_INTEGER,Nd.toString()}const Cd=new Map,ev=e=>{if(Cd.has(e))return;const t=setTimeout(()=>{Cd.delete(e),Jo({type:"REMOVE_TOAST",toastId:e})},Ij);Cd.set(e,t)},$j=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Mj)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ev(n):e.toasts.forEach(r=>{ev(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ic=[];let oc={toasts:[]};function Jo(e){oc=$j(oc,e),ic.forEach(t=>{t(oc)})}function gs({...e}){const t=Lj(),n=s=>Jo({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Jo({type:"DISMISS_TOAST",toastId:t});return Jo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function $w(){const[e,t]=w.useState(oc);return w.useEffect(()=>(ic.push(t),()=>{const n=ic.indexOf(t);n>-1&&ic.splice(n,1)}),[e]),{...e,toast:gs,dismiss:n=>Jo({type:"DISMISS_TOAST",toastId:n})}}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function tv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zw(...e){return t=>{let n=!1;const r=e.map(s=>{const i=tv(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():tv(e[s],null)}}}}function lt(...e){return w.useCallback(zw(...e),e)}function oo(e,t=[]){let n=[];function r(i,o){const a=w.createContext(o),l=n.length;n=[...n,o];const u=h=>{var v;const{scope:m,children:f,...y}=h,p=((v=m==null?void 0:m[e])==null?void 0:v[l])||a,x=w.useMemo(()=>y,Object.values(y));return c.jsx(p.Provider,{value:x,children:f})};u.displayName=i+"Provider";function d(h,m){var p;const f=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,y=w.useContext(f);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(o=>w.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,zj(s,...t)]}function zj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(i)[`__scope${u}`];return{...a,...h}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ya(e){const t=Bj(e),n=w.forwardRef((r,s)=>{const{children:i,...o}=r,a=w.Children.toArray(i),l=a.find(Wj);if(l){const u=l.props.children,d=a.map(h=>h===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...o,ref:s,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return c.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var Fj=ya("Slot");function Bj(e){const t=w.forwardRef((n,r)=>{const{children:s,...i}=n;
vendor: 9,423 bytes, line 40
40if(w.isValidElement(s)){const o=Vj(s),a=Hj(i,s.props);return s.type!==w.Fragment&&(a.ref=r?zw(r,o):o),w.cloneElement(s,a)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fw=Symbol("radix.slottable");function Uj(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fw,t}function Wj(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fw}function Hj(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Vj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Kj(e){const t=e+"CollectionProvider",[n,r]=oo(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:x,children:v}=p,g=R.useRef(null),b=R.useRef(new Map).current;return c.jsx(s,{scope:x,itemMap:b,collectionRef:g,children:v})};o.displayName=t;const a=e+"CollectionSlot",l=ya(a),u=R.forwardRef((p,x)=>{const{scope:v,children:g}=p,b=i(a,v),k=lt(x,b.collectionRef);return c.jsx(l,{ref:k,children:g})});u.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",m=ya(d),f=R.forwardRef((p,x)=>{const{scope:v,children:g,...b}=p,k=R.useRef(null),S=lt(x,k),_=i(d,v);return R.useEffect(()=>(_.itemMap.set(k,{ref:k,...b}),()=>void _.itemMap.delete(k))),c.jsx(m,{[h]:"",ref:S,children:g})});f.displayName=d;function y(p){const x=i(e+"CollectionConsumer",p);return R.useCallback(()=>{const g=x.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((_,E)=>b.indexOf(_.ref.current)-b.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:f},y,r]}var Gj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=Gj.reduce((e,t)=>{const n=ya(`Primitive.${t}`),r=w.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Bw(e,t){e&&Va.flushSync(()=>e.dispatchEvent(t))}function In(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qj(e,t=globalThis==null?void 0:globalThis.document){const n=In(e);w.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zj="DismissableLayer",ef="dismissableLayer.update",Jj="dismissableLayer.pointerDownOutside",Yj="dismissableLayer.focusOutside",nv,Uw=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bu=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=w.useContext(Uw),[d,h]=w.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),y=lt(t,E=>h(E)),p=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(x),g=d?p.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,k=g>=v,S=Xj(E=>{const T=E.target,C=[...u.branches].some(M=>M.contains(T));!k||C||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},m),_=eT(E=>{const T=E.target;[...u.branches].some(M=>M.contains(T))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},m);return qj(E=>{g===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},m),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(nv=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),rv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=nv)}},[d,m,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),rv())},[d,u]),w.useEffect(()=>{const E=()=>f({});return document.addEventListener(ef,E),()=>document.removeEventListener(ef,E)},[]),c.jsx(De.div,{...l,ref:y,style:{pointerEvents:b?k?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});bu.displayName=Zj;var Qj="DismissableLayerBranch",Ww=w.forwardRef((e,t)=>{const n=w.useContext(Uw),r=w.useRef(null),s=lt(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(De.div,{...e,ref:s})});Ww.displayName=Qj;function Xj(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Hw(Jj,n,u,{discrete:!0})};const u={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);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function eT(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=w.useRef(!1);return w.useEffect(()=>{const s=i=>{i.target&&!r.current&&Hw(Yj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function rv(){const e=new CustomEvent(ef);document.dispatchEvent(e)}function Hw(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Bw(s,i):s.dispatchEvent(i)}var tT=bu,nT=Ww,or=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},rT="Portal",Im=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=w.useState(!1);or(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Cw.createPortal(c.jsx(De.div,{...r,ref:t}),o):null});Im.displayName=rT;function sT(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var ao=e=>{const{present:t,children:n}=e,r=iT(t),s=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=lt(r.ref,oT(s));return typeof n=="function"||r.isPresent?w.cloneElement(s,{ref:i}):null};ao.displayName="Presence";function iT(e){const[t,n]=w.useState(),r=w.useRef(null),s=w.useRef(e),i=w.useRef("none"),o=e?"mounted":"unmounted",[a,l]=sT(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=_l(r.current);i.current=a==="mounted"?u:"none"},[a]),or(()=>{const u=r.current,d=s.current;if(d!==e){const m=i.current,f=_l(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),or(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=f=>{const p=_l(r.current).includes(f.animationName);if(f.target===t&&p&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=f=>{f.target===t&&(i.current=_l(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _l(e){return(e==null?void 0:e.animationName)||"none"}function oT(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var aT=Hf[" useInsertionEffect ".trim().toString()]||or;function Lm({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=lT({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=w.useCallback(d=>{var h;if(a){const m=cT(d)?d(e):d;
40m!==e&&((h=o.current)==null||h.call(o,m))}else i(d)},[a,e,i,o]);return[l,u]}function lT({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),s=w.useRef(n),i=w.useRef(t);return aT(()=>{i.current=t},[t]),w.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function cT(e){return typeof e=="function"}var uT=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"}),dT="VisuallyHidden",wu=w.forwardRef((e,t)=>c.jsx(De.span,{...e,ref:t,style:{...uT,...e.style}}));wu.displayName=dT;var hT=wu,$m="ToastProvider",[zm,fT,mT]=Kj("Toast"),[Vw,W6]=oo("Toast",[mT]),[pT,xu]=Vw($m),Kw=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=w.useState(null),[u,d]=w.useState(0),h=w.useRef(!1),m=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${$m}\`. Expected non-empty \`string\`.`),c.jsx(zm.Provider,{scope:t,children:c.jsx(pT,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>d(f=>f+1),[]),onToastRemove:w.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,children:o})})};Kw.displayName=$m;var Gw="ToastViewport",gT=["F8"],tf="toast.viewportPause",nf="toast.viewportResume",qw=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=gT,label:s="Notifications ({hotkey})",...i}=e,o=xu(Gw,n),a=fT(n),l=w.useRef(null),u=w.useRef(null),d=w.useRef(null),h=w.useRef(null),m=lt(t,h,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;w.useEffect(()=>{const x=v=>{var b;r.length!==0&&r.every(k=>v[k]||v.code===k)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=l.current,v=h.current;if(y&&x&&v){const g=()=>{if(!o.isClosePausedRef.current){const _=new CustomEvent(tf);v.dispatchEvent(_),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const _=new CustomEvent(nf);v.dispatchEvent(_),o.isClosePausedRef.current=!1}},k=_=>{!x.contains(_.relatedTarget)&&b()},S=()=>{x.contains(document.activeElement)||b()};return x.addEventListener("focusin",g),x.addEventListener("focusout",k),x.addEventListener("pointermove",g),x.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",b),()=>{x.removeEventListener("focusin",g),x.removeEventListener("focusout",k),x.removeEventListener("pointermove",g),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",b)}}},[y,o.isClosePausedRef]);const p=w.useCallback(({tabbingDirection:x})=>{const g=a().map(b=>{const k=b.ref.current,S=[k,...CT(k)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?g.reverse():g).flat()},[a]);return w.useEffect(()=>{const x=h.current;if(x){const v=g=>{var S,_,E;const b=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!b){const T=document.activeElement,C=g.shiftKey;if(g.target===x&&C){(S=u.current)==null||S.focus();return}const $=p({tabbingDirection:C?"backwards":"forwards"}),q=$.findIndex(L=>L===T);Pd($.slice(q+1))?g.preventDefault():C?(_=u.current)==null||_.focus():(E=d.current)==null||E.focus()}};return x.addEventListener("keydown",v),()=>x.removeEventListener("keydown",v)}},[a,p]),c.jsxs(nT,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&c.jsx(rf,{ref:u,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"forwards"});Pd(x)}}),c.jsx(zm.Slot,{scope:n,children:c.jsx(De.ol,{tabIndex:-1,...i,ref:m})}),y&&c.jsx(rf,{ref:d,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"backwards"});Pd(x)}})]})});qw.displayName=Gw;var Zw="ToastFocusProxy",rf=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=xu(Zw,n);return c.jsx(wu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});rf.displayName=Zw;var Ka="Toast",vT="toast.swipeStart",yT="toast.swipeMove",bT="toast.swipeCancel",wT="toast.swipeEnd",Jw=w.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=Lm({prop:r,defaultProp:s??!0,onChange:i,caller:Ka});return c.jsx(ao,{present:n||a,children:c.jsx(ST,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:In(e.onPause),onResume:In(e.onResume),onSwipeStart:pe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:pe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});Jw.displayName=Ka;var[xT,kT]=Vw(Ka,{onClose(){}}),ST=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:m,onSwipeEnd:f,...y}=e,p=xu(Ka,n),[x,v]=w.useState(null),g=lt(t,L=>v(L)),b=w.useRef(null),k=w.useRef(null),S=s||p.duration,_=w.useRef(0),E=w.useRef(S),T=w.useRef(0),{onToastAdd:C,onToastRemove:M}=p,W=In(()=>{var X;(x==null?void 0:x.contains(document.activeElement))&&((X=p.viewport)==null||X.focus()),o()}),$=w.useCallback(L=>{!L||L===1/0||(window.clearTimeout(T.current),_.current=new Date().getTime(),T.current=window.setTimeout(W,L))},[W]);w.useEffect(()=>{const L=p.viewport;if(L){const X=()=>{$(E.current),u==null||u()},K=()=>{const D=new Date().getTime()-_.current;E.current=E.current-D,window.clearTimeout(T.current),l==null||l()};return L.addEventListener(tf,K),L.addEventListener(nf,X),()=>{L.removeEventListener(tf,K),L.removeEventListener(nf,X)}}},[p.viewport,S,l,u,$]),w.useEffect(()=>{i&&!p.isClosePausedRef.current&&$(S)},[i,S,p.isClosePausedRef,$]),w.useEffect(()=>(C(),()=>M()),[C,M]);const q=w.useMemo(()=>x?rx(x):null,[x]);return p.viewport?c.jsxs(c.Fragment,{children:[q&&c.jsx(_T,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:q}),c.jsx(xT,{scope:n,onClose:W,children:Va.createPortal(c.jsx(zm.ItemSlot,{scope:n,children:c.jsx(tT,{asChild:!0,onEscapeKeyDown:pe(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||W(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(De.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:pe(e.onPointerDown,L=>{L.button===0&&(b.current={x:L.clientX,y:L.clientY})}),onPointerMove:pe(e.onPointerMove,L=>{if(!b.current)return;const X=L.clientX-b.current.x,K=L.clientY-b.current.y,D=!!k.current,j=["left","right"].includes(p.swipeDirection),P=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,F=j?P(0,X):0,Z=j?0:P(0,K),H=L.pointerType==="touch"?10:2,te={x:F,y:Z},re={originalEvent:L,delta:te};D?(k.current=te,El(yT,h,re,{discrete:!1})):sv(te,p.swipeDirection,H)?(k.current=te,El(vT,d,re,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(X)>H||Math.abs(K)>H)&&(b.current=null)}),onPointerUp:pe(e.onPointerUp,L=>{const X=k.current,K=L.target;if(K.hasPointerCapture(L.pointerId)&&K.releasePointerCapture(L.pointerId),k.current=null,b.current=null,X){const D=L.currentTarget,j={originalEvent:L,delta:X};sv(X,p.swipeDirection,p.swipeThreshold)?El(wT,f,j,{discrete:!0}):El(bT,m,j,{discrete:!0}),D.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),_T=e=>{const{__scopeToast:t,children:n,...r}=e,s=xu(Ka,t),[i,o]=w.useState(!1),[a,l]=w.useState(!1);return TT(()=>o(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Im,{asChild:!0,children:c.jsx(wu,{...r,children:i&&c.jsxs(c.Fragment,{children:[s.label," ",n]})})})},ET="ToastTitle",Yw=w.forwardRef((e,t)=>
vendor: 16,282 bytes, lines 40-210
40{const{__scopeToast:n,...r}=e;return c.jsx(De.div,{...r,ref:t})});Yw.displayName=ET;var jT="ToastDescription",Qw=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(De.div,{...r,ref:t})});Qw.displayName=jT;var Xw="ToastAction",ex=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(nx,{altText:n,asChild:!0,children:c.jsx(Fm,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Xw}\`. Expected non-empty \`string\`.`),null)});ex.displayName=Xw;var tx="ToastClose",Fm=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=kT(tx,n);return c.jsx(nx,{asChild:!0,children:c.jsx(De.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,s.onClose)})})});Fm.displayName=tx;var nx=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return c.jsx(De.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function rx(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),NT(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...rx(r))}}),t}function El(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Bw(s,i):s.dispatchEvent(i)}var sv=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function TT(e=()=>{}){const t=In(e);or(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function NT(e){return e.nodeType===e.ELEMENT_NODE}function CT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Pd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var PT=Kw,sx=qw,ix=Jw,ox=Yw,ax=Qw,lx=ex,cx=Fm;function ux(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=ux(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dx(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=ux(e))&&(r&&(r+=" "),r+=t);return r}const iv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ov=dx,ku=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ov(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],h=i==null?void 0:i[u];if(d===null)return null;const m=iv(d)||iv(h);return s[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,m]=d;return m===void 0||(u[h]=m),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:m,...f}=d;return Object.entries(f).every(y=>{let[p,x]=y;return Array.isArray(x)?x.includes({...i,...a}[p]):{...i,...a}[p]===x})?[...u,h,m]:u},[]);return ov(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const RT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hx=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var OT={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 AT=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>w.createElement("svg",{ref:l,...OT,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:hx("lucide",s),...a},[...o.map(([u,d])=>w.createElement(u,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 ie=(e,t)=>{const n=w.forwardRef(({className:r,...s},i)=>w.createElement(AT,{ref:i,iconNode:t,className:hx(`lucide-${RT(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const $s=ie("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 ba=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 DT=ie("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/**
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 MT=ie("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
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 fx=ie("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 IT=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 LT=ie("ChefHat",[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]]);/**
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 $T=ie("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 zT=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 FT=ie("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
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 BT=ie("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 sf=ie("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 Ga=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 UT=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
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 Bm=ie("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"}]]);/**
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 WT=ie("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
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 mx=ie("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
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 HT=ie("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
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 VT=ie("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
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 KT=ie("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
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 wa=ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 px=ie("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"}]]);/**
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 gx=ie("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"}]]);/**
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 GT=ie("MapPinned",[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]]);/**
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 qT=ie("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"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const Yo=ie("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"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const ZT=ie("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"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const vx=ie("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const yx=ie("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const JT=ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 9,160 bytes, lines 210-230
210],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const YT=ie("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const Ic=ie("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"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const av=ie("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"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const bx=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Um="-",QT=e=>{const t=eN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Um);return a[0]===""&&a.length!==1&&a.shift(),wx(a,t)||XT(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},wx=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?wx(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Um);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},lv=/^\[(.+)\]$/,XT=e=>{if(lv.test(e)){const t=lv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eN=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nN(Object.entries(e.classGroups),n).forEach(([i,o])=>{of(o,r,i,t)}),r},of=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:cv(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(tN(s)){of(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{of(o,cv(t,i),n,r)})})},cv=(e,t)=>{let n=e;return t.split(Um).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tN=e=>e.isThemeGetter,nN=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,rN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},xx="!",sN=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,d=0,h;for(let x=0;x<a.length;x++){let v=a[x];if(u===0){if(v===s&&(r||a.slice(x,x+i)===t)){l.push(a.slice(d,x)),d=x+i;continue}if(v==="/"){h=x;continue}}v==="["?u++:v==="]"&&u--}const m=l.length===0?a:a.substring(d),f=m.startsWith(xx),y=f?m.substring(1):m,p=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},iN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},oN=e=>({cache:rN(e.cacheSize),parseClassName:sN(e),...QT(e)}),aN=/\s+/,lN=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(aN);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:f}=n(u);let y=!!f,p=r(y?m.substring(0,f):m);if(!p){if(!y){a=u+(a.length>0?" "+a:a);continue}if(p=r(m),!p){a=u+(a.length>0?" "+a:a);continue}y=!1}const x=iN(d).join(":"),v=h?x+xx:x,g=v+p;if(i.includes(g))continue;i.push(g);const b=s(p,y);for(let k=0;k<b.length;++k){const S=b[k];i.push(v+S)}a=u+(a.length>0?" "+a:a)}return a};function cN(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kx(t))&&(r&&(r+=" "),r+=n);return r}const kx=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kx(e[r]))&&(n&&(n+=" "),n+=t);return n};function uN(e,...t){let n,r,s,i=o;function o(l){const u=t.reduce((d,h)=>h(d),e());return n=oN(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=lN(l,n);return s(l,d),d}return function(){return i(cN.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Sx=/^\[(?:([a-z-]+):)?(.+)\]$/i,dN=/^\d+\/\d+$/,hN=new Set(["px","full","screen"]),fN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mN=/\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$/,pN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wn=e=>Ri(e)||hN.has(e)||dN.test(e),yr=e=>lo(e,"length",EN),Ri=e=>!!e&&!Number.isNaN(Number(e)),Rd=e=>lo(e,"number",Ri),Co=e=>!!e&&Number.isInteger(Number(e)),yN=e=>e.endsWith("%")&&Ri(e.slice(0,-1)),ee=e=>Sx.test(e),br=e=>fN.test(e),bN=new Set(["length","size","percentage"]),wN=e=>lo(e,bN,_x),xN=e=>lo(e,"position",_x),kN=new Set(["image","url"]),SN=e=>lo(e,kN,TN),_N=e=>lo(e,"",jN),Po=()=>!0,lo=(e,t,n)=>{const r=Sx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},EN=e=>mN.test(e)&&!pN.test(e),_x=()=>!1,jN=e=>gN.test(e),TN=e=>vN.test(e),NN=()=>{const e=be("colors"),t=be("spacing"),n=be("blur"),r=be("brightness"),s=be("borderColor"),i=be("borderRadius"),o=be("borderSpacing"),a=be("borderWidth"),l=be("contrast"),u=be("grayscale"),d=be("hueRotate"),h=be("invert"),m=be("gap"),f=be("gradientColorStops"),y=be("gradientColorStopPositions"),p=be("inset"),x=be("margin"),v=be("opacity"),g=be("padding"),b=be("saturate"),k=be("scale"),S=be("sepia"),_=be("skew"),E=be("space"),T=be("translate"),C=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",ee,t],$=()=>[ee,t],q=()=>["",Wn,yr],L=()=>["auto",Ri,ee],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",ee],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[Ri,ee];return{cacheSize:500,separator:":",theme:{colors:[Po],spacing:[Wn,yr],blur:["none","",br,ee],brightness:Z(),borderColor:[e],borderRadius:["none","","full",br,ee],borderSpacing:$(),borderWidth:q(),contrast:Z(),grayscale:P(),hueRotate:Z(),invert:P(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[yN,yr],inset:W(),margin:W(),opacity:Z(),padding:$(),saturate:Z(),scale:Z(),sepia:P(),skew:Z(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"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(),ee]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}
vendor: 9,947 bytes, line 230
230],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Co,ee]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ee]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Co,ee]}],"grid-cols":[{"grid-cols":[Po]}],"col-start-end":[{col:["auto",{span:["full",Co,ee]},ee]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Po]}],"row-start-end":[{row:["auto",{span:[Co,ee]},ee]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[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",ee,t]}],"min-w":[{"min-w":[ee,t,"min","max","fit"]}],"max-w":[{"max-w":[ee,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rd]}],"font-family":[{font:[Po]}],"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",ee]}],"line-clamp":[{"line-clamp":["none",Ri,Rd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wn,ee]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wn,yr]}],"underline-offset":[{"underline-offset":["auto",Wn,ee]}],"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:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],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",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),xN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],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":[v]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:K()}],"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:["",...K()]}],"outline-offset":[{"outline-offset":[Wn,ee]}],"outline-w":[{outline:[Wn,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Wn,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,_N]}],"shadow-color":[{shadow:[Po]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,ee]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"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",ee]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Co,ee]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],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",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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,647 bytes, line 230
230],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",ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Wn,yr,Rd]}],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"]}}},CN=uN(NN);function ve(...e){return CN(dx(e))}const PN=PT,Ex=w.forwardRef(({className:e,...t},n)=>c.jsx(sx,{ref:n,className:ve("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}));Ex.displayName=sx.displayName;const RN=ku("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"}}),jx=w.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(ix,{ref:r,className:ve(RN({variant:t}),e),...n}));jx.displayName=ix.displayName;const ON=w.forwardRef(({className:e,...t},n)=>c.jsx(lx,{ref:n,className:ve("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}));ON.displayName=lx.displayName;const Tx=w.forwardRef(({className:e,...t},n)=>c.jsx(cx,{ref:n,className:ve("absolute right-2 top-2 rounded-md p-1 text-foreground
230/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:c.jsx(bx,{className:"h-4 w-4"})}));Tx.displayName=cx.displayName;const Nx=w.forwardRef(({className:e,...t},n)=>c.jsx(ox,{ref:n,className:ve("text-sm font-semibold",e),...t}));Nx.displayName=ox.displayName;const Cx=w.forwardRef(({className:e,...t},n)=>c.jsx(ax,{ref:n,className:ve("text-sm opacity-90",e),...t}));Cx.displayName=ax.displayName;function AN(){const{toasts:e}=$w();return c.jsxs(PN,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return c.jsxs(jx,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Nx,{children:n}),r&&c.jsx(Cx,{children:r})]}),s,c.jsx(Tx,{})]},t)}),c.jsx(Ex,{})]})}var uv=["light","dark"],DN="(prefers-color-scheme: dark)",MN=w.createContext(void 0),IN={setTheme:e=>{},themes:[]},LN=()=>{var e;return(e=w.useContext(MN))!=null?e:IN};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?uv.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(y,p=!1,x=!0)=>{let v=o?o[y]:y,g=p?y+"|| ''":`'${v}'`,b="";return s&&x&&!p&&uv.includes(y)&&(b+=`d.style.colorScheme = '${y}';`),n==="class"?p||v?b+=`c.add(${g})`:b+="null":v&&(b+=`d[s](n,${g})`),b},f=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${DN}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}${u?"":"else{"+m(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}else{${m(i,!1,!1)};}${h}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var $N=e=>{switch(e){case"success":return BN;case"info":return WN;case"warning":return UN;case"error":return HN;default:return null}},zN=Array(12).fill(0),FN=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},zN.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),BN=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),UN=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.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"})),WN=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),HN=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),VN=R.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"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),KN=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};
230return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},af=1,GN=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:af++,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:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
230this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],R.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(ZN(l)&&!l.ok){s=!1;let u=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:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||af++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},bt=new GN,qN=(e,t)=>{let n=(t==null?void 0:t.id)||af++;return bt.addToast({title:e,...t,id:n}),n},ZN=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",JN=qN,YN=()=>bt.toasts,QN=()=>bt.getActiveToasts();Object.assign(JN,{success:bt.success,info:bt.info,warning:bt.warning,error:bt.error,custom:bt.custom,message:bt.message,promise:bt.promise,dismiss:bt.dismiss,loading:bt.loading},{getHistory:YN,getToasts:QN});function XN(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}XN(`: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;
230left: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}
230: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%);
230--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%)}
231`);function jl(e){return e.label!==void 0}var eC=3,tC="32px",nC="16px",dv=4e3,rC=356,sC=14,iC=20,oC=200;function tn(...e){return e.filter(Boolean).join(" ")}function aC(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var lC=e=>{var t,n,r,s,i,o,a,l,u,d,h;let{invert:m,toast:f,unstyled:y,interacting:p,setHeights:x,visibleToasts:v,heights:g,index:b,toasts:k,expanded:S,removeToast:_,defaultRichColors:E,closeButton:T,style:C,cancelButtonStyle:M,actionButtonStyle:W,className:$="",descriptionClassName:q="",duration:L,position:X,gap:K,loadingIcon:D,expandByDefault:j,classNames:P,icons:F,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:H}=e,[te,re]=R.useState(null),[Me,tt]=R.useState(null),[ce,Us]=R.useState(!1),[dr,rs]=R.use
vendor: 4,102 bytes, line 231
231State(!1),[hr,Ws]=R.useState(!1),[fr,nl]=R.useState(!1),[Gu,rl]=R.useState(!1),[qu,vo]=R.useState(0),[Hs,Rp]=R.useState(0),yo=R.useRef(f.duration||L||dv),Op=R.useRef(null),ss=R.useRef(null),kS=b===0,SS=b+1<=v,$t=f.type,Vs=f.dismissible!==!1,_S=f.className||"",ES=f.descriptionClassName||"",sl=R.useMemo(()=>g.findIndex(Y=>Y.toastId===f.id)||0,[g,f.id]),jS=R.useMemo(()=>{var Y;return(Y=f.closeButton)!=null?Y:T},[f.closeButton,T]),Ap=R.useMemo(()=>f.duration||L||dv,[f.duration,L]),Zu=R.useRef(0),Ks=R.useRef(0),Dp=R.useRef(0),Gs=R.useRef(null),[TS,NS]=X.split("-"),Mp=R.useMemo(()=>g.reduce((Y,he,ke)=>ke>=sl?Y:Y+he.height,0),[g,sl]),Ip=KN(),CS=f.invert||m,Ju=$t==="loading";Ks.current=R.useMemo(()=>sl*K+Mp,[sl,Mp]),R.useEffect(()=>{yo.current=Ap},[Ap]),R.useEffect(()=>{Us(!0)},[]),R.useEffect(()=>{let Y=ss.current;if(Y){let he=Y.getBoundingClientRect().height;return Rp(he),x(ke=>[{toastId:f.id,height:he,position:f.position},...ke]),()=>x(ke=>ke.filter(Yt=>Yt.toastId!==f.id))}},[x,f.id]),R.useLayoutEffect(()=>{if(!ce)return;let Y=ss.current,he=Y.style.height;Y.style.height="auto";let ke=Y.getBoundingClientRect().height;Y.style.height=he,Rp(ke),x(Yt=>Yt.find(Qt=>Qt.toastId===f.id)?Yt.map(Qt=>Qt.toastId===f.id?{...Qt,height:ke}:Qt):[{toastId:f.id,height:ke,position:f.position},...Yt])},[ce,f.title,f.description,x,f.id]);let mr=R.useCallback(()=>{rs(!0),vo(Ks.current),x(Y=>Y.filter(he=>he.toastId!==f.id)),setTimeout(()=>{_(f)},oC)},[f,_,x,Ks]);R.useEffect(()=>{if(f.promise&&$t==="loading"||f.duration===1/0||f.type==="loading")return;let Y;return S||p||H&&Ip?(()=>{if(Dp.current<Zu.current){let he=new Date().getTime()-Zu.current;yo.current=yo.current-he}Dp.current=new Date().getTime()})():yo.current!==1/0&&(Zu.current=new Date().getTime(),Y=setTimeout(()=>{var he;(he=f.onAutoClose)==null||he.call(f,f),mr()},yo.current)),()=>clearTimeout(Y)},[S,p,f,$t,H,Ip,mr]),R.useEffect(()=>{f.delete&&mr()},[mr,f.delete]);function PS(){var Y,he,ke;return F!=null&&F.loading?R.createElement("div",{className:tn(P==null?void 0:P.loader,(Y=f==null?void 0:f.classNames)==null?void 0:Y.loader,"sonner-loader"),"data-visible":$t==="loading"},F.loading):D?R.createElement("div",{className:tn(P==null?void 0:P.loader,(he=f==null?void 0:f.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":$t==="loading"},D):R.createElement(FN,{className:tn(P==null?void 0:P.loader,(ke=f==null?void 0:f.classNames)==null?void 0:ke.loader),visible:$t==="loading"})}return R.createElement("li",{tabIndex:0,ref:ss,className:tn($,_S,P==null?void 0:P.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[$t],(n=f==null?void 0:f.classNames)==null?void 0:n[$t]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:E,"data-styled":!(f.jsx||f.unstyled||y),"data-mounted":ce,"data-promise":!!f.promise,"data-swiped":Gu,"data-removed":dr,"data-visible":SS,"data-y-position":TS,"data-x-position":NS,"data-index":b,"data-front":kS,"data-swiping":hr,"data-dismissible":Vs,"data-type":$t,"data-invert":CS,"data-swipe-out":fr,"data-swipe-direction":Me,"data-expanded":!!(S||j&&ce),style:{"--index":b,"--toasts-before":b,"--z-index":k.length-b,"--offset":`${dr?qu:Ks.current}px`,"--initial-height":j?"auto":`${Hs}px`,...C,...f.style},onDragEnd:()=>{Ws(!1),re(null),Gs.current=null},onPointerDown:Y=>{Ju||!Vs||(Op.current=new Date,vo(Ks.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(Ws(!0),Gs.current={x:Y.clientX,y:Y.clientY}))},onPointerUp:()=>{var Y,he,ke,Yt;if(fr||!Vs)return;Gs.current=null;let Qt=Number(((Y=ss.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pr=Number(((he=ss.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),is=new Date().getTime()-((ke=Op.current)==null?void 0:ke.getTime()),Xt=te==="x"?Qt:pr,gr=Math.abs(Xt)/is;if(Math.abs(Xt)>=iC||gr>.11){vo(Ks.current),(Yt=f.onDismiss)==null||Yt.call(f,f),tt(te==="x"?Qt>0?"right":"left":pr>0?"down":"up"),mr(),nl(!0),rl(!1);return}Ws(!1),re(null)},onPointerMove:Y=>{var he,ke,Yt,Qt;
231if(!Gs.current||!Vs||((he=window.getSelection())==null?void 0:he.toString().length)>0)return;let pr=Y.clientY-Gs.current.y,is=Y.clientX-Gs.current.x,Xt=(ke=e.swipeDirections)!=null?ke:aC(X);!te&&(Math.abs(is)>1||Math.abs(pr)>1)&&re(Math.abs(is)>Math.abs(pr)?"x":"y");let gr={x:0,y:0};te==="y"?(Xt.includes("top")||Xt.includes("bottom"))&&(Xt.includes("top")&&pr<0||Xt.includes("bottom")&&pr>0)&&(gr.y=pr):te==="x"&&(Xt.includes("left")||Xt.includes("right"))&&(Xt.includes("left")&&is<0||Xt.includes("right")&&is>0)&&(gr.x=is),(Math.abs(gr.x)>0||Math.abs(gr.y)>0)&&rl(!0),(Yt=ss.current)==null||Yt.style.setProperty("--swipe-amount-x",`${gr.x}px`),(Qt=ss.current)==null||Qt.style.setProperty("--swipe-amount-y",`${gr.y}px`)}},jS&&!f.jsx?R.createElement("button",{"aria-label":Z,"data-disabled":Ju,"data-close-button":!0,onClick:Ju||!Vs?()=>{}:()=>{var Y;mr(),(Y=f.onDismiss)==null||Y.call(f,f)},className:tn(P==null?void 0:P.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=F==null?void 0:F.close)!=null?i:VN):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:R.createElement(R.Fragment,null,$t||f.icon||f.promise?R.createElement("div",{"data-icon":"",className:tn(P==null?void 0:P.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||PS():null,f.type!=="loading"?f.icon||(F==null?void 0:F[$t])||$N($t):null):null,R.createElement("div",{"data-content":"",className:tn(P==null?void 0:P.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},R.createElement("div",{"data-title":"",className:tn(P==null?void 0:P.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?R.createElement("div",{"data-description":"",className:tn(q,ES,P==null?void 0:P.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&jl(f.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:Y=>{var he,ke;jl(f.cancel)&&Vs&&((ke=(he=f.cancel).onClick)==null||ke.call(he,Y),mr())},className:tn(P==null?void 0:P.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&jl(f.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||W,onClick:Y=>{var he,ke;jl(f.action)&&((ke=(he=f.action).onClick)==null||ke.call(he,Y),!Y.defaultPrevented&&mr())},className:tn(P==null?void 0:P.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function hv(){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 cC(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?nC:tC;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var uC=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:h,duration:m,style:f,visibleToasts:y=eC,toastOptions:p,dir:x=hv(),gap:v=sC,loadingIcon:g,icons:b,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=e,[_,E]=R.useState([]),T=R.useMemo(()=>Array.from(new Set([r].concat(_.filter(H=>H.position).map(H=>H.position)))),[_,r]),[C,M]=R.useState([]),[W,$]=R.useState(!1),[q,L]=R.use
vendor: 4,306 bytes, line 231
231State(!1),[X,K]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=R.useRef(null),j=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=R.useRef(null),F=R.useRef(!1),Z=R.useCallback(H=>{E(te=>{var re;return(re=te.find(Me=>Me.id===H.id))!=null&&re.delete||bt.dismiss(H.id),te.filter(({id:Me})=>Me!==H.id)})},[]);return R.useEffect(()=>bt.subscribe(H=>{if(H.dismiss){E(te=>te.map(re=>re.id===H.id?{...re,delete:!0}:re));return}setTimeout(()=>{Cw.flushSync(()=>{E(te=>{let re=te.findIndex(Me=>Me.id===H.id);return re!==-1?[...te.slice(0,re),{...te[re],...H},...te.slice(re+1)]:[H,...te]})})})}),[]),R.useEffect(()=>{if(d!=="system"){K(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;let H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:te})=>{K(te?"dark":"light")})}catch{H.addListener(({matches:re})=>{try{K(re?"dark":"light")}catch(Me){console.error(Me)}})}},[d]),R.useEffect(()=>{_.length<=1&&$(!1)},[_]),R.useEffect(()=>{let H=te=>{var re,Me;s.every(tt=>te[tt]||te.code===tt)&&($(!0),(re=D.current)==null||re.focus()),te.code==="Escape"&&(document.activeElement===D.current||(Me=D.current)!=null&&Me.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[s]),R.useEffect(()=>{if(D.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,F.current=!1)}},[D.current]),R.createElement("section",{ref:t,"aria-label":`${k} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((H,te)=>{var re;let[Me,tt]=H.split("-");return _.length?R.createElement("ol",{key:H,dir:x==="auto"?hv():x,tabIndex:-1,ref:D,className:a,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":Me,"data-lifted":W&&_.length>1&&!i,"data-x-position":tt,style:{"--front-toast-height":`${((re=C[0])==null?void 0:re.height)||0}px`,"--width":`${rC}px`,"--gap":`${v}px`,...f,...cC(l,u)},onBlur:ce=>{F.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(F.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||F.current||(F.current=!0,P.current=ce.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{q||$(!1)},onDragEnd:()=>$(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},_.filter(ce=>!ce.position&&te===0||ce.position===H).map((ce,Us)=>{var dr,rs;return R.createElement(lC,{key:ce.id,icons:b,index:Us,toast:ce,defaultRichColors:h,duration:(dr=p==null?void 0:p.duration)!=null?dr:m,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:y,closeButton:(rs=p==null?void 0:p.closeButton)!=null?rs:o,interacting:q,position:H,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:Z,toasts:_.filter(hr=>hr.position==ce.position),heights:C.filter(hr=>hr.position==ce.position),setHeights:M,expandByDefault:i,gap:v,loadingIcon:g,expanded:W,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const dC=({...e})=>{const{theme:t="system"}=LN();return c.jsx(uC,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var hC=Hf[" useId ".trim().toString()]||(()=>{}),fC=0;function mC(e){const[t,n]=w.useState(hC());return or(()=>{e||n(r=>r??String(fC++))},[e]),e||(t?`radix-${t}`:"")}const pC=["top","right","bottom","left"],Zr=Math.min,Nt=Math.max,Lc=Math.round,Tl=Math.floor,Dn=e=>({x:e,y:e}
vendor: 19,317 bytes, line 231
231),gC={left:"right",right:"left",bottom:"top",top:"bottom"},vC={start:"end",end:"start"};function lf(e,t,n){return Nt(e,Zr(t,n))}function ar(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function co(e){return e.split("-")[1]}function Wm(e){return e==="x"?"y":"x"}function Hm(e){return e==="y"?"height":"width"}const yC=new Set(["top","bottom"]);function Pn(e){return yC.has(lr(e))?"y":"x"}function Vm(e){return Wm(Pn(e))}function bC(e,t,n){n===void 0&&(n=!1);const r=co(e),s=Vm(e),i=Hm(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=$c(o)),[o,$c(o)]}function wC(e){const t=$c(e);return[cf(e),t,cf(t)]}function cf(e){return e.replace(/start|end/g,t=>vC[t])}const fv=["left","right"],mv=["right","left"],xC=["top","bottom"],kC=["bottom","top"];function SC(e,t,n){switch(e){case"top":case"bottom":return n?t?mv:fv:t?fv:mv;case"left":case"right":return t?xC:kC;default:return[]}}function _C(e,t,n,r){const s=co(e);let i=SC(lr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(cf)))),i}function $c(e){return e.replace(/left|right|bottom|top/g,t=>gC[t])}function EC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Px(e){return typeof e!="number"?EC(e):{top:e,right:e,bottom:e,left:e}}function zc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function pv(e,t,n){let{reference:r,floating:s}=e;const i=Pn(t),o=Vm(t),a=Hm(o),l=lr(t),u=i==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,m=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-s.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-s.width,y:h};break;default:f={x:r.x,y:r.y}}switch(co(t)){case"start":f[o]-=m*(n&&u?-1:1);break;case"end":f[o]+=m*(n&&u?-1:1);break}return f}const jC=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=pv(u,r,l),m=r,f={},y=0;for(let p=0;p<a.length;p++){const{name:x,fn:v}=a[p],{x:g,y:b,data:k,reset:S}=await v({x:d,y:h,initialPlacement:r,placement:m,strategy:s,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});d=g??d,h=b??h,f={...f,[x]:{...f[x],...k}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:d,y:h}=pv(u,m,l)),p=-1)}return{x:d,y:h,placement:m,strategy:s,middlewareData:f}};async function xa(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:f=0}=ar(t,e),y=Px(f),x=a[m?h==="floating"?"reference":"floating":h],v=zc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),g=h==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),k=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=zc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:b,strategy:l}):g);return{top:(v.top-S.top+y.top)/k.y,bottom:(S.bottom-v.bottom+y.bottom)/k.y,left:(v.left-S.left+y.left)/k.x,right:(S.right-v.right+y.right)/k.x}}const TC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=ar(e,t)||{};if(u==null)return{};const h=Px(d),m={x:n,y:r},f=Vm(s),y=Hm(f),p=await o.getDimensions(u),x=f==="y",v=x?"top":"left",g=x?"bottom":"right",b=x?"clientHeight":"clientWidth",k=i.reference[y]+i.reference[f]-m[f]-i.floating[y],S=m[f]-i.reference[f],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=_?_[b]:0;(!E||!await(o.isElement==null?void 0:o.isElement(_)))&&(E=a.floating[b]||i.floating[y]);const T=k/2-S/2,C=E/2-p[y]/2-1,M=Zr(h[v],C),W=Zr(h[g],C),$=M,q=E-p[y]-W,L=E/2-p[y]/2+T,X=lf($,L,q),K=!l.arrow&&co(s)!=null&&L!==X&&i.reference[y]/2-(L<$?M:W)-p[y]/2<0,D=K?L<$?L-$:L-q:0;return{[f]:m[f]+D,data:{[f]:X,centerOffset:L-X-D,...K&&{alignmentOffset:D}},reset:K}}}),NC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:p=!0,...x}=ar(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=lr(s),g=Pn(a),b=lr(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=m||(b||!p?[$c(a)]:wC(a)),_=y!=="none";!m&&_&&S.push(..._C(a,p,y,k));const E=[a,...S],T=await xa(t,x),C=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&C.push(T[v]),h){const L=bC(s,o,k);C.push(T[L[0]],T[L[1]])}if(M=[...M,{placement:s,overflows:C}],!C.every(L=>L<=0)){var W,$;const L=(((W=i.flip)==null?void 0:W.index)||0)+1,X=E[L];if(X&&(!(h==="alignment"?g!==Pn(X):!1)||M.every(j=>j.overflows[0]>0&&Pn(j.placement)===g)))return{data:{index:L,overflows:M},reset:{placement:X}};let K=($=M.filter(D=>D.overflows[0]<=0).sort((D,j)=>D.overflows[1]-j.overflows[1])[0])==null?void 0:$.placement;if(!K)switch(f){case"bestFit":{var q;const D=(q=M.filter(j=>{if(_){const P=Pn(j.placement);return P===g||P==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(P=>P>0).reduce((P,F)=>P+F,0)]).sort((j,P)=>j[1]-P[1])[0])==null?void 0:q[0];D&&(K=D);break}case"initialPlacement":K=a;break}if(s!==K)return{reset:{placement:K}}}return{}}}};function gv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vv(e){return pC.some(t=>e[t]>=0)}const CC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=ar(e,t);switch(r){case"referenceHidden":{const i=await xa(t,{...s,elementContext:"reference"}),o=gv(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:vv(o)}}}case"escaped":{const i=await xa(t,{...s,altBoundary:!0}),o=gv(i,n.floating);return{data:{escapedOffsets:o,escaped:vv(o)}}}default:return{}}}}},Rx=new Set(["left","top"]);async function PC(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=lr(n),a=co(n),l=Pn(n)==="y",u=Rx.has(o)?-1:1,d=i&&l?-1:1,h=ar(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),l?{x:f*d,y:m*u}:{x:m*u,y:f*d}}const RC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await PC(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},OC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:g}=x;return{x:v,y:g}}},...l}=ar(e,t),u={x:n,y:r},d=await xa(t,l),h=Pn(lr(s)),m=Wm(h);let f=u[m],y=u[h];if(i){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",g=f+d[x],b=f-d[v];f=lf(g,f,b)}if(o){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=y+d[x],b=y-d[v];y=lf(g,y,b)}const p=a.fn({...t,[m]:f,[h]:y});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[m]:i,[h]:o}}}}}},AC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ar(e,t),d={x:n,y:r},h=Pn(s),m=Wm(h);let f=d[m],y=d[h];const p=ar(a,t),x=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=m==="y"?"height":"width",k=i.reference[m]-i.floating[b]+x.mainAxis,S=i.reference[m]+i.reference[b]-x.mainAxis;f<k?f=k:f>S&&(f=S)}if(u){var v,g;const b=m==="y"?"width":"height",k=Rx.has(lr(s)),S=i.reference[h]-i.floating[b]+(k&&((v=o.offset)==null?void 0:v[h])||0)+(k?0:x.crossAxis),_=i.reference[h]+i.reference[b]+(k?0:((g=o.offset)==null?void 0:g[h])||0)-(k?x.crossAxis:0);y<S?y=S:y>_&&(y=_)}return{[m]:f,[h]:y}}}},DC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=ar(e,t),d=await xa(t,u),h=lr(s),m=co(s),f=Pn(s)==="y",{width:y,height:p}=i.floating;let x,v;h==="top"||h==="bottom"?(x=h,v=m===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,x=m==="end"?"top":"bottom");const g=p-d.top-d.bottom,b=y-d.left-d.right,k=Zr(p-d[x],g),S=Zr(y-d[v],b),_=!t.middlewareData.shift;let E=k,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=g),_&&!m){const M=Nt(d.left,0),W=Nt(d.right,0),$=Nt(d.top,0),q=Nt(d.bottom,0);f?T=y-2*(M!==0||W!==0?M+W:Nt(d.left,d.right)):E=p-2*($!==0||q!==0?$+q:Nt(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:E});const C=await o.getDimensions(a.floating);return y!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function Su(){return typeof window<"u"}function uo(e){return Ox(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zn(e){var t;return(t=(Ox(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ox(e){return Su()?e instanceof Node||e instanceof At(e).Node:!1}function gn(e){return Su()?e instanceof Element||e instanceof At(e).Element:!1}function Ln(e){return Su()?e instanceof HTMLElement||e instanceof At(e).HTMLElement:!1}function yv(e){return!Su()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof At(e).ShadowRoot}const MC=new Set(["inline","contents"]);function qa(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!MC.has(s)}const IC=new Set(["table","td","th"]);function LC(e){return IC.has(uo(e))}const $C=[":popover-open",":modal"];function _u(e){return $C.some(t=>{try{return e.matches(t)}catch{return!1}})}const zC=["transform","translate","scale","rotate","perspective"],FC=["transform","translate","scale","rotate","perspective","filter"],BC=["paint","layout","strict","content"];function Km(e){const t=Gm(),n=gn(e)?vn(e):e;return zC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||FC.some(r=>(n.willChange||"").includes(r))||BC.some(r=>(n.contain||"").includes(r))}function UC(e){let t=Jr(e);for(;Ln(t)&&!Yi(t);){if(Km(t))return t;if(_u(t))return null;t=Jr(t)}return null}function Gm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const WC=new Set(["html","body","#document"]);function Yi(e){return WC.has(uo(e))}function vn(e){return At(e).getComputedStyle(e)}function Eu(e){return gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jr(e){if(uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yv(e)&&e.host||zn(e);return yv(t)?t.host:t}function Ax(e){const t=Jr(e);return Yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ln(t)&&qa(t)?t:Ax(t)}function ka(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Ax(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=At(s);if(i){const a=uf(o);return t.concat(o,o.visualViewport||[],qa(s)?s:[],a&&n?ka(a):[])}return t.concat(s,ka(s,[],n))}function uf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dx(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ln(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Lc(n)!==i||Lc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function qm(e){return gn(e)?e:e.contextElement}function Oi(e){const t=qm(e);if(!Ln(t))return Dn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Dx(t);let o=(i?Lc(n.width):n.width)/r,a=(i?Lc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const HC=Dn(0);function Mx(e){const t=At(e);return!Gm()||!t.visualViewport?HC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==At(e)?!1:t}function Os(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=qm(e);let o=Dn(1);t&&(r?gn(r)&&(o=Oi(r)):o=Oi(e));const a=VC(i,n,r)?Mx(i):Dn(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,h=s.height/o.y;if(i){const m=At(i),f=r&&gn(r)?At(r):r;let y=m,p=uf(y);for(;p&&r&&f!==y;){const x=Oi(p),v=p.getBoundingClientRect(),g=vn(p),b=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*x.x,k=v.top+(p.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,h*=x.y,l+=b,u+=k,y=At(p),p=uf(y)}}return zc({width:d,height:h,x:l,y:u})}function Zm(e,t){const n=Eu(e).scrollLeft;return t?t.left+n:Os(zn(e)).left+n}function Ix(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Zm(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function KC(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=zn(r),a=t?_u(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Dn(1);const d=Dn(0),h=Ln(r);if((h||!h&&!i)&&((uo(r)!=="body"||qa(o))&&(l=Eu(r)),Ln(r))){const f=Os(r);u=Oi(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const m=o&&!h&&!i?Ix(o,l,!0):Dn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-l.scrollTop*u.y+d.y+m.y}}function GC(e){return Array.from(e.getClientRects())}function qC(e){const t=zn(e),n=Eu(e),r=e.ownerDocument.body,s=Nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Zm(e);const a=-n.scrollTop;return vn(r).direction==="rtl"&&(o+=Nt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function ZC(e,t){const n=At(e),r=zn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Gm();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const JC=new Set(["absolute","fixed"]);function YC(e,t){const n=Os(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Ln(e)?Oi(e):Dn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function bv(e,t,n){let r;if(t==="viewport")r=ZC(e,n);else if(t==="document")r=qC(zn(e));else if(gn(t))r=YC(t,n);else{const s=Mx(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return zc(r)}function Lx(e,t){const n=Jr(e);return n===t||!gn(n)||Yi(n)?!1:vn(n).position==="fixed"||Lx(n,t)}function QC(e,t){const n=t.get(e);if(n)return n;let r=ka(e,[],!1).filter(a=>gn(a)&&uo(a)!=="body"),s=null;const i=vn(e).position==="fixed";let o=i?Jr(e):e;for(;gn(o)&&!Yi(o);){const a=vn(o),l=Km(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&JC.has(s.position)||qa(o)&&!l&&Lx(e,o))?r=r.filter(d=>d!==o):s=a,o=Jr(o)}return t.set(e,r),r}function XC(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?_u(t)?[]:QC(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,d)=>{const h=bv(t,d,s);return u.top=Nt(h.top,u.top),u.right=Zr(h.right,u.right),u.bottom=Zr(h.bottom,u.bottom),u.left=Nt(h.left,u.left),u},bv(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function eP(e){const{width:t,height:n}=Dx(e);return{width:t,height:n}}function tP(e,t,n){const r=Ln(t),s=zn(t),i=n==="fixed",o=Os(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Dn(0);function u(){l.x=Zm(s)}if(r||!r&&!i)if((uo(t)!=="body"||qa(s))&&(a=Eu(t)),r){const f=Os(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?Ix(s,a):Dn(0),h=o.left+a.scrollLeft-l.x-d.x,m=o.top+a.scrollTop-l.y-d.y;return{x:h,y:m,width:o.width,height:o.height}}function Od(e){return vn(e).position==="static"}function wv(e,t){if(!Ln(e)||vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zn(e)===n&&(n=n.ownerDocument.body),n}function $x(e,t){const n=At(e);if(_u(e))return n;if(!Ln(e)){let s=Jr(e);for(;s&&!Yi(s);){if(gn(s)&&!Od(s))return s;s=Jr(s)}return n}let r=wv(e,t);for(;r&&LC(r)&&Od(r);)r=wv(r,t);return r&&Yi(r)&&Od(r)&&!Km(r)?n:r||UC(e)||n}const nP=async function(e){const t=this.getOffsetParent||$x,n=this.getDimensions,r=await n(e.floating);return{reference:tP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rP(e){return vn(e).direction==="rtl"}const sP={convertOffsetParentRelativeRectToViewportRelativeRect:KC,getDocumentElement:zn,getClippingRect:XC,getOffsetParent:$x,getElementRects:nP,getClientRects:GC,getDimensions:eP,getScale:Oi,isElement:gn,isRTL:rP};function zx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iP(e,t){let n=null,r;const s=zn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:m,height:f}=u;if(a||t(),!m||!f)return;const y=Tl(h),p=Tl(s.clientWidth-(d+m)),x=Tl(s.clientHeight-(h+f)),v=Tl(d),b={rootMargin:-y+"px "+-p+"px "+-x+"px "+-v+"px",threshold:Nt(0,Zr(1,l))||1};let k=!0;function S(_){const E=_[0].intersectionRatio;if(E!==l){if(!k)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!zx(u,e.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return o(!0),i}function oP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=qm(e),d=s||i?[...u?ka(u):[],...ka(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const h=u&&a?iP(u,n):null;let m=-1,f=null;o&&(f=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let y,p=l?Os(e):null;l&&x();function x(){const v=Os(e);p&&!zx(p,v)&&n(),p=v,y=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),h==null||h(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const aP=RC,lP=OC,cP=NC,uP=DC,dP=CC,xv=TC,hP=AC,fP=(e,t,n)=>{const r=new Map,s={platform:sP,...n},i={...s.platform,_c:r};return jC(e,t,{...s,platform:i})};var mP=typeof document<"u",pP=function(){},ac=mP?w.useLayoutEffect:pP;function Fc(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 231
231if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Fc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Fc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Fx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kv(e,t){const n=Fx(e);return Math.round(t*n)/n}function Ad(e){const t=w.useRef(e);return ac(()=>{t.current=e}),t}function gP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,h]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=w.useState(r);Fc(m,r)||f(r);const[y,p]=w.useState(null),[x,v]=w.useState(null),g=w.useCallback(j=>{j!==_.current&&(_.current=j,p(j))},[]),b=w.useCallback(j=>{j!==E.current&&(E.current=j,v(j))},[]),k=i||y,S=o||x,_=w.useRef(null),E=w.useRef(null),T=w.useRef(d),C=l!=null,M=Ad(l),W=Ad(s),$=Ad(u),q=w.useCallback(()=>{if(!_.current||!E.current)return;const j={placement:t,strategy:n,middleware:m};W.current&&(j.platform=W.current),fP(_.current,E.current,j).then(P=>{const F={...P,isPositioned:$.current!==!1};L.current&&!Fc(T.current,F)&&(T.current=F,Va.flushSync(()=>{h(F)}))})},[m,t,n,W,$]);ac(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,h(j=>({...j,isPositioned:!1})))},[u]);const L=w.useRef(!1);ac(()=>(L.current=!0,()=>{L.current=!1}),[]),ac(()=>{if(k&&(_.current=k),S&&(E.current=S),k&&S){if(M.current)return M.current(k,S,q);q()}},[k,S,q,M,C]);const X=w.useMemo(()=>({reference:_,floating:E,setReference:g,setFloating:b}),[g,b]),K=w.useMemo(()=>({reference:k,floating:S}),[k,S]),D=w.useMemo(()=>{const j={position:n,left:0,top:0};if(!K.floating)return j;const P=kv(K.floating,d.x),F=kv(K.floating,d.y);return a?{...j,transform:"translate("+P+"px, "+F+"px)",...Fx(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:F}},[n,a,K.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:q,refs:X,elements:K,floatingStyles:D}),[d,q,X,K,D])}const vP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xv({element:r.current,padding:s}).fn(n):{}:r?xv({element:r,padding:s}).fn(n):{}}}},yP=(e,t)=>({...aP(e),options:[e,t]}),bP=(e,t)=>({...lP(e),options:[e,t]}),wP=(e,t)=>({...hP(e),options:[e,t]}),xP=(e,t)=>({...cP(e),options:[e,t]}),kP=(e,t)=>({...uP(e),options:[e,t]}),SP=(e,t)=>({...dP(e),options:[e,t]}),_P=(e,t)=>({...vP(e),options:[e,t]});var EP="Arrow",Bx=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return c.jsx(De.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Bx.displayName=EP;var jP=Bx;function Ux(e){const[t,n]=w.useState(void 0);return or(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=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,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Jm="Popper",[Wx,ju]=oo(Jm),[TP,Hx]=Wx(Jm),Vx=e=>{const{__scopePopper:t,children:n}=e,[r,s]=w.useState(null);return c.jsx(TP,{scope:t,anchor:r,onAnchorChange:s,children:n})};Vx.displayName=Jm;var Kx="PopperAnchor",Gx=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Hx(Kx,n),o=w.useRef(null),a=lt(t,o);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:c.jsx(De.div,{...s,ref:a})});Gx.displayName=Kx;var Ym="PopperContent",[NP,CP]=Wx(Ym),qx=w.forwardRef((e,t)=>
vendor: 4,218 bytes, line 231
231{var ce,Us,dr,rs,hr,Ws;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:y,...p}=e,x=Hx(Ym,n),[v,g]=w.useState(null),b=lt(t,fr=>g(fr)),[k,S]=w.useState(null),_=Ux(k),E=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,C=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],$=W.length>0,q={padding:M,boundary:W.filter(RP),altBoundary:$},{refs:L,floatingStyles:X,placement:K,isPositioned:D,middlewareData:j}=gP({strategy:"fixed",placement:C,whileElementsMounted:(...fr)=>oP(...fr,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[yP({mainAxis:s+T,alignmentAxis:o}),l&&bP({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?wP():void 0,...q}),l&&xP({...q}),kP({...q,apply:({elements:fr,rects:nl,availableWidth:Gu,availableHeight:rl})=>{const{width:qu,height:vo}=nl.reference,Hs=fr.floating.style;Hs.setProperty("--radix-popper-available-width",`${Gu}px`),Hs.setProperty("--radix-popper-available-height",`${rl}px`),Hs.setProperty("--radix-popper-anchor-width",`${qu}px`),Hs.setProperty("--radix-popper-anchor-height",`${vo}px`)}}),k&&_P({element:k,padding:a}),OP({arrowWidth:E,arrowHeight:T}),m&&SP({strategy:"referenceHidden",...q})]}),[P,F]=Yx(K),Z=In(y);or(()=>{D&&(Z==null||Z())},[D,Z]);const H=(ce=j.arrow)==null?void 0:ce.x,te=(Us=j.arrow)==null?void 0:Us.y,re=((dr=j.arrow)==null?void 0:dr.centerOffset)!==0,[Me,tt]=w.useState();return or(()=>{v&&tt(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:D?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[(rs=j.transformOrigin)==null?void 0:rs.x,(hr=j.transformOrigin)==null?void 0:hr.y].join(" "),...((Ws=j.hide)==null?void 0:Ws.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(NP,{scope:n,placedSide:P,onArrowChange:S,arrowX:H,arrowY:te,shouldHideArrow:re,children:c.jsx(De.div,{"data-side":P,"data-align":F,...p,ref:b,style:{...p.style,animation:D?void 0:"none"}})})})});qx.displayName=Ym;var Zx="PopperArrow",PP={top:"bottom",right:"left",bottom:"top",left:"right"},Jx=w.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=CP(Zx,r),o=PP[i.placedSide];return c.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:c.jsx(jP,{...s,ref:n,style:{...s.style,display:"block"}})})});Jx.displayName=Zx;function RP(e){return e!==null}var OP=e=>({name:"transformOrigin",options:e,fn(t){var x,v,g;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,d]=Yx(n),h={start:"0%",center:"50%",end:"100%"}[d],m=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let y="",p="";return u==="bottom"?(y=o?h:`${m}px`,p=`${-l}px`):u==="top"?(y=o?h:`${m}px`,p=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,p=o?h:`${f}px`):u==="left"&&(y=`${r.floating.width+l}px`,p=o?h:`${f}px`),{data:{x:y,y:p}}}});function Yx(e){const[t,n="center"]=e.split("-");return[t,n]}var AP=Vx,Qm=Gx,Qx=qx,Xx=Jx,[Tu,H6]=oo("Tooltip",[ju]),Xm=ju(),ek="TooltipProvider",DP=700,Sv="tooltip.open",[MP,tk]=Tu(ek),nk=e=>{const{__scopeTooltip:t,delayDuration:n=DP,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=w.useRef(!0),a=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(MP,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,838 bytes, line 231
231o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};nk.displayName=ek;var rk="Tooltip",[V6,Nu]=Tu(rk),df="TooltipTrigger",IP=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Nu(df,n),i=tk(df,n),o=Xm(n),a=w.useRef(null),l=lt(t,a,s.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),h=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Qm,{asChild:!0,...o,children:c.jsx(De.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:pe(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:pe(e.onBlur,s.onClose),onClick:pe(e.onClick,s.onClose)})})});IP.displayName=df;var LP="TooltipPortal",[K6,$P]=Tu(LP,{forceMount:void 0}),Qi="TooltipContent",sk=w.forwardRef((e,t)=>{const n=$P(Qi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Nu(Qi,e.__scopeTooltip);return c.jsx(ao,{present:r||o.open,children:o.disableHoverableContent?c.jsx(ik,{side:s,...i,ref:t}):c.jsx(zP,{side:s,...i,ref:t})})}),zP=w.forwardRef((e,t)=>{const n=Nu(Qi,e.__scopeTooltip),r=tk(Qi,e.__scopeTooltip),s=w.useRef(null),i=lt(t,s),[o,a]=w.useState(null),{trigger:l,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,m=w.useCallback(()=>{a(null),h(!1)},[h]),f=w.useCallback((y,p)=>{const x=y.currentTarget,v={x:y.clientX,y:y.clientY},g=HP(v,x.getBoundingClientRect()),b=VP(v,g),k=KP(p.getBoundingClientRect()),S=qP([...b,...k]);a(S),h(!0)},[h]);return w.useEffect(()=>()=>m(),[m]),w.useEffect(()=>{if(l&&d){const y=x=>f(x,d),p=x=>f(x,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",p)}}},[l,d,f,m]),w.useEffect(()=>{if(o){const y=p=>{const x=p.target,v={x:p.clientX,y:p.clientY},g=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),b=!GP(v,o);g?m():b&&(m(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,o,u,m]),c.jsx(ik,{...e,ref:i})}),[FP,BP]=Tu(rk,{isInside:!1}),UP=Uj("TooltipContent"),ik=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Nu(Qi,n),u=Xm(n),{onClose:d}=l;return w.useEffect(()=>(document.addEventListener(Sv,d),()=>document.removeEventListener(Sv,d)),[d]),w.useEffect(()=>{if(l.trigger){const h=m=>{const f=m.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(bu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs(Qx,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(UP,{children:r}),c.jsx(FP,{scope:n,isInside:!0,children:c.jsx(hT,{id:l.contentId,role:"tooltip",children:s||r})})]})})});sk.displayName=Qi;var ok="TooltipArrow",WP=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Xm(n);return BP(ok,n).isInside?null:c.jsx(Xx,{...s,...r,ref:t})});WP.displayName=ok;function HP(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function VP(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function KP(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function GP(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],u=a.x,d=a.y,h=l.x,m=l.y;d>r!=m>r&&n<(h-u)*(r-d)/(m-d)+u&&(s=!s)}return s}function qP(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ZP(t)}function ZP(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];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 n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var JP=nk,ak=sk;const YP=JP,QP=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(ak,{ref:r,sideOffset:t,className:ve("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
231de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));QP.displayName=ak.displayName;var Cu=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(){}},Pu=typeof window>"u"||"Deno"in globalThis;function sn(){}function XP(e,t){return typeof e=="function"?e(t):e}function eR(e){return typeof e=="number"&&e>=0&&e!==1/0}function tR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hf(e,t){return typeof e=="function"?e(t):e}function nR(e,t){return typeof e=="function"?e(t):e}function _v(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ep(o,t.options))return!1}else if(!_a(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Ev(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Sa(t.options.mutationKey)!==Sa(i))return!1}else if(!_a(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function ep(e,t){return((t==null?void 0:t.queryKeyHashFn)||Sa)(e)}function Sa(e){return JSON.stringify(e,(t,n)=>ff(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function _a(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_a(e[n],t[n])):!1}function lk(e,t){if(e===t)return e;const n=jv(e)&&jv(t);if(n||ff(e)&&ff(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<o;d++){const h=n?d:i[d];(!n&&l.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,u++):(a[h]=lk(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&u++)}return s===o&&u===s?e:a}return t}function jv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ff(e){if(!Tv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Tv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Tv(e){return Object.prototype.toString.call(e)==="[object Object]"}function rR(e){return new Promise(t=>{setTimeout(t,e)})}function sR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lk(e,t):t}function iR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function oR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var tp=Symbol();function ck(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var bs,Cr,Ii,cb,aR=(cb=class extends Cu{constructor(){super();le(this,bs);le(this,Cr);le(this,Ii);Q(this,Ii,t=>{if(!Pu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,Cr)||this.setEventListener(N(this,Ii))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,Cr))==null||t.call(this),Q(this,Cr,void 0))}setEventListener(t){var n;Q(this,Ii,t),(n=N(this,Cr))==null||n.call(this),Q(this,Cr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,bs)!==t&&(Q(this,bs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,bs)=="boolean"?N(this,bs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},bs=new WeakMap,Cr=new WeakMap,Ii=new WeakMap,cb),uk=new aR,Li,Pr,$i,ub,lR=(ub=class extends Cu{constructor(){super();le(this,Li,!0);le(this,Pr);le(this,$i);Q(this,$i,t=>{if(!Pu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,Pr)||this.setEventListener(N(this,$i))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,Pr))==null||t.call(this),Q(this,Pr,void 0))}setEventListener(t){var n;Q(this,$i,t),(n=N(this,Pr))==null||n.call(this),Q(this,Pr,t(this.setOnline.bind(this)))}setOnline(t){N(this,Li)!==t&&(Q(this,Li,t),this.listeners.forEac
vendor: 13,931 bytes, line 231
231h(r=>{r(t)}))}isOnline(){return N(this,Li)}},Li=new WeakMap,Pr=new WeakMap,$i=new WeakMap,ub),Bc=new lR;function cR(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function uR(e){return Math.min(1e3*2**e,3e4)}function dk(e){return(e??"online")==="online"?Bc.isOnline():!0}var hk=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Dd(e){return e instanceof hk}function fk(e){let t=!1,n=0,r=!1,s;const i=cR(),o=p=>{var x;r||(m(new hk(p)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>uk.isFocused()&&(e.networkMode==="always"||Bc.isOnline())&&e.canRun(),d=()=>dk(e.networkMode)&&e.canRun(),h=p=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,p),s==null||s(),i.resolve(p))},m=p=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,p),s==null||s(),i.reject(p))},f=()=>new Promise(p=>{var x;s=v=>{(r||u())&&p(v)},(x=e.onPause)==null||x.call(e)}).then(()=>{var p;s=void 0,r||(p=e.onContinue)==null||p.call(e)}),y=()=>{if(r)return;let p;const x=n===0?e.initialPromise:void 0;try{p=x??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(h).catch(v=>{var _;if(r)return;const g=e.retry??(Pu?0:3),b=e.retryDelay??uR,k=typeof b=="function"?b(n,v):b,S=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!S){m(v);return}n++,(_=e.onFail)==null||_.call(e,n,v),rR(k).then(()=>u()?void 0:f()).then(()=>{t?m(v):y()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?y():f().then(y),i)}}var dR=e=>setTimeout(e,0);function hR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=dR;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(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=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var mt=hR(),ws,db,mk=(db=class{constructor(){le(this,ws)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eR(this.gcTime)&&Q(this,ws,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pu?1/0:5*60*1e3))}clearGcTimeout(){N(this,ws)&&(clearTimeout(N(this,ws)),Q(this,ws,void 0))}},ws=new WeakMap,db),zi,xs,Bt,ks,it,La,Ss,an,Kn,hb,fR=(hb=class extends mk{constructor(t){super();le(this,an);le(this,zi);le(this,xs);le(this,Bt);le(this,ks);le(this,it);le(this,La);le(this,Ss);Q(this,Ss,!1),Q(this,La,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,ks,t.client),Q(this,Bt,N(this,ks).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,zi,pR(this.options)),this.state=t.state??N(this,zi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,it))==null?void 0:t.promise}setOptions(t){this.options={...N(this,La),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Bt).remove(this)}setData(t,n){const r=sR(this.state.data,t,this.options);return nt(this,an,Kn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){nt(this,an,Kn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=N(this,it))==null?void 0:r.promise;return(s=N(this,it))==null||s.cancel(t),n?n.then(sn).catch(sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,zi))}isActive(){return this.observers.some(t=>nR(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>hf(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:!tR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,it))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,it))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,Bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,it)&&(N(this,Ss)?N(this,it).cancel({revert:!0}):N(this,it).cancelRetry()),this.scheduleGc()),N(this,Bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||nt(this,an,Kn).call(this,{type:"invalidate"})}fetch(t,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,it))return N(this,it).continueRetry(),N(this,it).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(Q(this,Ss,!0),r.signal)})},i=()=>{const m=ck(this.options,n),y=(()=>{const p={client:N(this,ks),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return Q(this,Ss,!1),this.options.persister?this.options.persister(m,y,this):m(y)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,ks),state:this.state,fetchFn:i};return s(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),Q(this,xs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&nt(this,an,Kn).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=m=>{var f,y,p,x;Dd(m)&&m.silent||nt(this,an,Kn).call(this,{type:"error",error:m}),Dd(m)||((y=(f=N(this,Bt).config).onError)==null||y.call(f,m,this),(x=(p=N(this,Bt).config).onSettled)==null||x.call(p,this.state.data,m,this)),this.scheduleGc()};return Q(this,it,fk({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var f,y,p,x;if(m===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){l(v);return}(y=(f=N(this,Bt).config).onSuccess)==null||y.call(f,m,this),(x=(p=N(this,Bt).config).onSettled)==null||x.call(p,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,f)=>{nt(this,an,Kn).call(this,{type:"failed",failureCount:m,error:f})},onPause:()=>{nt(this,an,Kn).call(this,{type:"pause"})},onContinue:()=>{nt(this,an,Kn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),N(this,it).start()}},zi=new WeakMap,xs=new WeakMap,Bt=new WeakMap,ks=new WeakMap,it=new WeakMap,La=new WeakMap,Ss=new WeakMap,an=new WeakSet,Kn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...mR(r.data,this.options),fetchMeta:t.meta??null};case"success":return Q(this,xs,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Dd(s)&&s.revert&&N(this,xs)?{...N(this,xs),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,Bt).notify({query:this,type:"updated",action:t})})},hb);function mR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function pR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var _n,fb,gR=(fb=class extends Cu{constructor(t={}){super();le(this,_n);this.config=t,Q(this,_n,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??ep(s,n);let o=this.get(i);return o||(o=new fR({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){N(this,_n).has(t.queryHash)||(N(this,_n).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,_n).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,_n).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,_n).get(t)}getAll(){return[...N(this,_n).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_v(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>_v(t,r)):n}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_n=new WeakMap,fb),En,dt,_s,jn,xr,mb,vR=(mb=class extends mk{constructor(t){super();le(this,jn);le(this,En);le(this,dt);le(this,_s);this.mutationId=t.mutationId,Q(this,dt,t.mutationCache),Q(this,En,[]),this.state=t.state||yR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,En).includes(t)||(N(this,En).push(t),this.clearGcTimeout(),N(this,dt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,En,N(this,En).filter(n=>n!==t)),this.scheduleGc(),N(this,dt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,En).length||(this.state.status==="pending"?this.scheduleGc():N(this,dt).remove(this))}continue(){var t;return((t=N(this,_s))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,u,d,h,m,f,y,p,x,v,g,b,k,S,_,E,T;const n=()=>{nt(this,jn,xr).call(this,{type:"continue"})};Q(this,_s,fk({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,M)=>{nt(this,jn,xr).call(this,{type:"failed",failureCount:C,error:M})},onPause:()=>{nt(this,jn,xr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,dt).canRun(this)}));const r=this.state.status==="pending",s=!N(this,_s).canStart();try{if(r)n();else{nt(this,jn,xr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=N(this,dt).config).onMutate)==null?void 0:o.call(i,t,this));const M=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));M!==this.state.context&&nt(this,jn,xr).call(this,{type:"pending",context:M,variables:t,isPaused:s})}const C=await N(this,_s).start();return await((d=(u=N(this,dt).config).onSuccess)==null?void 0:d.call(u,C,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,C,t,this.state.context)),await((y=(f=N(this,dt).config).onSettled)==null?void 0:y.call(f,C,null,this.state.variables,this.state.context,this)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,C,null,t,this.state.context)),nt(this,jn,xr).call(this,{type:"success",data:C}),C}catch(C){try{throw await((g=(v=N(this,dt).config).onError)==null?void 0:g.call(v,C,t,this.state.context,this)),await((k=(b=this.options).onError)==null?void 0:k.call(b,C,t,this.state.context)),await((_=(S=N(this,dt).config).onSettled)==null?void 0:_.call(S,void 0,C,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,C,t,this.state.context)),C}finally{nt(this,jn,xr).call(this,{type:"error",error:C})}}finally{N(this,dt).runNext(this)}}},En=new WeakMap,dt=new WeakMap,_s=new WeakMap,jn=new WeakSet,xr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mt.batch(()=>{N(this,En).forEach(r=>{r.onMutationUpdate(t)}),N(this,dt).notify({mutation:this,type:"updated",action:t})})},mb);function yR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}
231var Yn,ln,$a,pb,bR=(pb=class extends Cu{constructor(t={}){super();le(this,Yn);le(this,ln);le(this,$a);this.config=t,Q(this,Yn,new Set),Q(this,ln,new Map),Q(this,$a,0)}build(t,n,r){const s=new vR({mutationCache:this,mutationId:++il(this,$a)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){N(this,Yn).add(t);const n=Nl(t);if(typeof n=="string"){const r=N(this,ln).get(n);r?r.push(t):N(this,ln).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Yn).delete(t)){const n=Nl(t);if(typeof n=="string"){const r=N(this,ln).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&N(this,ln).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Nl(t);if(typeof n=="string"){const r=N(this,ln).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Nl(t);if(typeof n=="string"){const s=(r=N(this,ln).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){mt.batch(()=>{N(this,Yn).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Yn).clear(),N(this,ln).clear()})}getAll(){return Array.from(N(this,Yn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ev(n,r))}findAll(t={}){return this.getAll().filter(n=>Ev(t,n))}notify(t){mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mt.batch(()=>Promise.all(t.map(n=>n.continue().catch(sn))))}},Yn=new WeakMap,ln=new WeakMap,$a=new WeakMap,pb);function Nl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Nv(e){return{onFetch:(t,n)=>{var d,h,m,f,y;const r=t.options,s=(m=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const x=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=ck(t.options,t.fetchOptions),g=async(b,k,S)=>{if(p)return Promise.reject();if(k==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const W={client:t.client,queryKey:t.queryKey,pageParam:k,direction:S?"backward":"forward",meta:t.options.meta};return x(W),W})(),T=await v(E),{maxPages:C}=t.options,M=S?oR:iR;return{pages:M(b.pages,T,C),pageParams:M(b.pageParams,k,C)}};if(s&&i.length){const b=s==="backward",k=b?wR:Cv,S={pages:i,pageParams:o},_=k(r,S);a=await g(S,_,b)}else{const b=e??i.length;do{const k=l===0?o[0]??r.initialPageParam:Cv(r,a);if(l>0&&k==null)break;a=await g(a,k),l++}while(l<b)}return a};t.options.persister?t.fetchFn=()=>{var p,x;return(x=(p=t.options).persister)==null?void 0:x.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Cv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Pe,Rr,Or,Fi,Bi,Ar,Ui,Wi,gb,xR=(gb=class{constructor(e={}){le(this,Pe);le(this,Rr);le(this,Or);le(this,Fi);le(this,Bi);le(this,Ar);le(this,Ui);le(this,Wi);Q(this,Pe,e.queryCache||new gR),Q(this,Rr,e.mutationCache||new bR),Q(this,Or,e.defaultOptions||{}),Q(this,Fi,new Map),Q(this,Bi,new Map),Q(this,Ar,0)}mount(){il(this,Ar)._++,N(this,Ar)===1&&(Q(this,Ui,uk.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Pe).onFocus())})),Q(this,Wi,Bc.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Pe).onOnline())})))}unmount(){var e,t;il(this,Ar)._--,N(this,Ar)===0&&((e=N(this,Ui))==null||e.call(this),Q(this,Ui,void 0),(t=N(this,Wi))==null||t.call(this),Q(this,Wi,void 0))}isFetching(e){return N(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,Rr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,Pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,Pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hf(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,Pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=N(this,Pe).get(r.queryHash),i=s==null?void 0:s.state.data,o=XP(t,i);if(o!==void 0)return N(this,Pe).build(this,r).setData(o,{...n,manual:!0})}
231setQueriesData(e,t,n){return mt.batch(()=>N(this,Pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,Pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,Pe);mt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,Pe);return mt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=mt.batch(()=>N(this,Pe).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(sn).catch(sn)}invalidateQueries(e,t={}){return mt.batch(()=>(N(this,Pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=mt.batch(()=>N(this,Pe).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(sn)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(sn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,Pe).build(this,t);return n.isStaleByTime(hf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sn).catch(sn)}fetchInfiniteQuery(e){return e.behavior=Nv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sn).catch(sn)}ensureInfiniteQueryData(e){return e.behavior=Nv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bc.isOnline()?N(this,Rr).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Pe)}getMutationCache(){return N(this,Rr)}getDefaultOptions(){return N(this,Or)}setDefaultOptions(e){Q(this,Or,e)}setQueryDefaults(e,t){N(this,Fi).set(Sa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Fi).values()],n={};return t.forEach(r=>{_a(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,Bi).set(Sa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Bi).values()],n={};return t.forEach(r=>{_a(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,Or).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ep(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===tp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,Or).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Pe).clear(),N(this,Rr).clear()}},Pe=new WeakMap,Rr=new WeakMap,Or=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,Ar=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,gb),kR=w.createContext(void 0),SR=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(kR.Provider,{value:e,children:t}));/**
232 * @remix-run/router v1.23.0
233 *
234 * Copyright (c) Remix Software Inc.
235 *
236 * This source code is licensed under the MIT license found in the
237 * LICENSE.md file in the root directory of this source tree.
238 *
239 * @license MIT
240 */function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(this,arguments)}var Ir;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ir||(Ir={}));const Pv="popstate";function _R(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return mf("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Uc(s)}return jR(t,n,null,e)}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ER(){return Math.random().toString(36).substr(2,8)}function Rv(e,t){return{usr:e.state,key:e.key,idx:t}}function mf(e,t,n,r){return n===void 0&&(n=null),Ea({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ho(t):t,{state:n,key:t&&t.key||r||ER()})}function Uc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ho(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jR(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Ir.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(Ea({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){a=Ir.Pop;let x=d(),v=x==null?null:x-u;u=x,l&&l({action:a,location:p.location,delta:v})}function m(x,v){a=Ir.Push;let g=mf(p.location,x,v);u=d()+1;let b=Rv(g,u),k=p.createHref(g);try{o.pushState(b,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(k)}i&&l&&l({action:a,location:p.location,delta:1})}function f(x,v){a=Ir.Replace;let g=mf(p.location,x,v);u=d();let b=Rv(g,u),k=p.createHref(g);o.replaceState(b,"",k),i&&l&&l({action:a,location:p.location,delta:0})}function y(x){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof x=="str
240ing"?x:Uc(x);return g=g.replace(/ $/,"%20"),Fe(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={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(Pv,h),l=x,()=>{s.removeEventListener(Pv,h),l=null}},createHref(x){return t(s,x)},createURL:y,encodeLocation(x){let v=y(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:f,go(x){return o.go(x)}};return p}var Ov;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ov||(Ov={}));function TR(e,t,n){return n===void 0&&(n="/"),NR(e,t,n,!1)}function NR(e,t,n,r){let s=typeof t=="string"?ho(t):t,i=np(s.pathname||"/",n);if(i==null)return null;let o=gk(e);CR(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=FR(i);a=$R(o[l],u,r)}return a}function gk(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");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("/")&&(Fe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Vr([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(Fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),gk(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:IR(u,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 vk(i.path))s(i,o,l)}),t}function vk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=vk(r.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 CR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:LR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const PR=/^:[\w-]+$/,RR=3,OR=2,AR=1,DR=10,MR=-2,Av=e=>e==="*";function IR(e,t){let n=e.split("/"),r=n.length;return n.some(Av)&&(r+=MR),t&&(r+=OR),n.filter(s=>!Av(s)).reduce((s,i)=>s+(PR.test(i)?RR:i===""?AR:DR),r)}function LR(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function $R(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h=Dv({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),m=l.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Dv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,180 bytes, lines 240-249
240Object.assign(s,h.params),o.push({params:s,pathname:Vr([i,h.pathname]),pathnameBase:HR(Vr([i,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(i=Vr([i,h.pathnameBase]))}return o}function Dv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=zR(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:m,isOptional:f}=d;if(m==="*"){let p=a[h]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const y=a[h];return f&&!y?u[m]=void 0:u[m]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function zR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pk(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function FR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pk(!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 np(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function BR(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ho(e):e;return{pathname:n?n.startsWith("/")?n:UR(n,t):t,search:VR(r),hash:KR(s)}}function UR(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Md(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function WR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yk(e,t){let n=WR(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bk(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=ho(e):(s=Ea({},e),Fe(!s.pathname||!s.pathname.includes("?"),Md("?","pathname","search",s)),Fe(!s.pathname||!s.pathname.includes("#"),Md("#","pathname","hash",s)),Fe(!s.search||!s.search.includes("#"),Md("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),h-=1;s.pathname=m.join("/")}a=h>=0?t[h]:"/"}let l=BR(s,a),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Vr=e=>e.join("/").replace(/\/\/+/g,"/"),HR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),VR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,KR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function GR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wk=["post","put","patch","delete"];new Set(wk);const qR=["get",...wk];new Set(qR);/**
241 * React Router v6.30.1
242 *
243 * Copyright (c) Remix Software Inc.
244 *
245 * This source code is licensed under the MIT license found in the
246 * LICENSE.md file in the root directory of this source tree.
247 *
248 * @license MIT
249 */function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ja.apply(this,arguments)}const rp=w.createContext(null),ZR=w.createContext(null),zs=w.createContext(null),Ru=w.createContext(null),Fs=w.createContext({outlet:null,matches:[],isDataRoute:!1}),xk=w.createContext(null);function JR(e,t){let{relative:n}=t===void 0?{}:t;Za()||Fe(!1);let{basename:r,navigator:s}=w.useContext(zs),{hash:i,pathname:o,search:a}=Sk(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Vr([r,o])),s.createHref({pathname:l,search:a,hash:i})}function Za(){return w.useContext(Ru)!=null}function fo(){return Za()||Fe(!1),w.useContext(Ru).location}function kk(e){w.useContext(zs).static||w.useLayoutEffect(e)}function sp(){let{isDataRoute:e}=w.useContext(Fs);return e?c2():YR()}function YR(){Za()||Fe(!1);let e=w.useContext(rp),{basename:t,future:n,navigator:r}=w.useContext(zs),{matches:s}=w.useContext(Fs),{pathname:i}=fo(),o=JSON.stringify(yk(s,n.v7_relativeSplatPath)),a=w.useRef(!1);return kk(()=>{a.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let h=bk(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Vr([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,o,i,e])}function Sk(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(zs),{matches:s}=w.useContext(Fs),{pathname:i}=fo(),o=JSON.stringify(yk(s,r.v7_relativeSplatPath));return w.useMemo(()=>bk(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function QR(e,t){return XR(e,t)}function XR(e,t,n,r){Za()||Fe(!1);let{navigator:s}=w.useContext(zs),{matches:i}=w.useContext(Fs),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=fo(),d;if(t){var h;let x=typeof t=="string"?ho(t):t;l==="/"||(h=x.pathname)!=null&&h.startsWith(l)||Fe(!1),d=x}else d=u;let m=d.pathname||"/",f=m;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=TR(e,{pathname:f}),p=s2(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Vr([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Vr([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&p?w.createElement(Ru.Provider,{value:{location:ja({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ir.Pop}},p):p}function e2(){let e=l2(),t=GR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:s},n):null,null)}const t2=w.createElement(e2,null);class n2 extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Fs.Provider,{value:this.props.routeContext},w.createElement(xk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function r2(e){let{routeContext:t,match:n,children:r}=e,s=w.useContext(rp);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Fs.Provider,{value:t},r)}function s2(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||Fe(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:m,errors:f}=n,y=h.route.loader&&m[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||y){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,m)=>{let f,y=!1,p=null,x=null;n&&(f=a&&h.route.id?a[h.route.id]:void 0,p=h.route.errorElement||t2,l&&(u<0&&m===0?(y=!0,x=null):u===m&&(y=!0,x=h.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,m+1)),g=()=>{let b;return f?b=p:y?b=x:h.route.Component?b=w.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=d,w.createElement(r2,{match:h,routeC
249ontext:{outlet:d,matches:v,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?w.createElement(n2,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var _k=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_k||{}),Wc=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}(Wc||{});function i2(e){let t=w.useContext(rp);return t||Fe(!1),t}function o2(e){let t=w.useContext(ZR);return t||Fe(!1),t}function a2(e){let t=w.useContext(Fs);return t||Fe(!1),t}function Ek(e){let t=a2(),n=t.matches[t.matches.length-1];return n.route.id||Fe(!1),n.route.id}function l2(){var e;let t=w.useContext(xk),n=o2(Wc.UseRouteError),r=Ek(Wc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function c2(){let{router:e}=i2(_k.UseNavigateStable),t=Ek(Wc.UseNavigateStable),n=w.useRef(!1);return kk(()=>{n.current=!0}),w.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ja({fromRouteId:t},i)))},[e,t])}function u2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ct(e){Fe(!1)}function d2(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Ir.Pop,navigator:i,static:o=!1,future:a}=e;Za()&&Fe(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:i,static:o,future:ja({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=ho(r));let{pathname:d="/",search:h="",hash:m="",state:f=null,key:y="default"}=r,p=w.useMemo(()=>{let x=np(d,l);return x==null?null:{location:{pathname:x,search:h,hash:m,state:f,key:y},navigationType:s}},[l,d,h,m,f,y,s]);return p==null?null:w.createElement(zs.Provider,{value:u},w.createElement(Ru.Provider,{children:n,value:p}))}function h2(e){let{children:t,location:n}=e;return QR(pf(t),n)}new Promise(()=>{});function pf(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,s)=>{if(!w.isValidElement(r))return;let i=[...t,s];if(r.type===w.Fragment){n.push.apply(n,pf(r.props.children,i));return}r.type!==ct&&Fe(!1),!r.props.index||!r.props.children||Fe(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=pf(r.props.children,i)),n.push(o)}),n}/**
250 * React Router DOM v6.30.1
251 *
252 * Copyright (c) Remix Software Inc.
253 *
254 * This source code is licensed under the MIT license found in the
255 * LICENSE.md file in the root directory of this source tree.
256 *
257 * @license MIT
258 */function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gf.apply(this,arguments)}function f2(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function m2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function p2(e,t){return e.button===0&&(!t||t==="_self")&&!m2(e)}function vf(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function g2(e,t){let n=vf(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const v2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],y2="6";try{window.__reactRouterVersion=y2}catch{}const b2="startTransition",Mv=Hf[b2];function w2(e){let{basename:t,children:n,future:r,window:s}=e,i=w.useRef();i.current==null&&(i.current=_R({window:s,v5Compat:!0}));let o=i.current,[a,l]=w.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=w.useCallback(h=>{u&&Mv?Mv(()=>l(h)):l(h)},[l,u]);return w.useLayoutEffect(()=>o.listen(d),[o,d]),w.useEffect(()=>u2(r),[r]),w.createElement(d2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const x2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_e=w.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:h}=t,m=f2(t,v2),{basename:f}=w.useContext(zs),y,p=!1;if(typeof u=="string"&&k2.test(u)&&(y=u,x2))try{let b=new URL(window.location.href),k=u.startsWith("//")?new URL(b.protocol+u):new URL(u),S=np(k.pathname,f);k.origin===b.origin&&S!=null?u=S+k.search+k.hash:p=!0}catch{}let x=JR(u,{relative:s}),v=S2(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function g(b){r&&r(b),b.defaultPrevented||v(b)}return w.createElement("a",gf({},m,{href:y||x,onClick:p||i?r:g,ref:n,target:l}))});var Iv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Iv||(Iv={}));var Lv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Lv||(Lv={}));function S2(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=sp(),u=fo(),d=Sk(e,{relative:o});return w.useCallback(h=>{if(p2(h,n)){h.preventDefault();let m=r!==void 0?r:Uc(u)===Uc(d);l(e,{replace:m,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,d,r,s,n,e,i,o,a])}function _2(e){let t=w.useRef(vf(e)),n=w.useRef(!1),r=fo(),s=w.useMemo(()=>g2(r.search,n.current?null:t.current),[r.search]),i=sp(),o=w.useCallback((a,l)=>{const u=vf(typeof a=="function"?a(s):a);n.current=!0,i("?"+u,l)},[i,s]);return[s,o]}const I={nav:{angebote:{de:"Angebote",en:"Offers",sv:"Erbjudanden",da:"Tilbud"},speisekarte:{de:"Speisekarte",en:"Menu",sv:"Meny",da:"Menu"},bewertungen:{de:"Bewertungen",en:"Reviews",sv:"Omdömen",da:"Anmeldelser"},bilder:{de:"Bilder",en:"Gallery",sv:"Galleri",da:"Galleri"},kontakt:{de:"Kontakt",en:"Contact",sv:"Kontakt",da:"Kontakt"},partner:{de:"Partner",en:"Partners",sv:"Partners",da:"Partnere"},gutscheine:{de:"Gutscheine",en:"Gift Cards",sv:"Presentkort",da:"Gavekort"},reservieren:{de:"Reservieren",en:"Reserve",sv:"Reservera",da:"Reserver"}},topbar:{hours:{de:"Täglich: 7-23 Uhr",en:"Daily: 7am-11pm",sv:"Dagligen: 7-23",da:"Dagligt: 7-23"}},hero:{welcome:{de:"Willkommen im",en:"Welcome to",sv:"Välkommen till",da:"Velkommen til"},subtitle:{de:"NORDIC GRILL- & BBQ-HAUS",en:"NORDIC GRILL & BBQ HOUSE",sv:"NORDISK GRILL- & BBQ-HUS",da:"NORDISK GRILL- & BBQ-HUS"},description:{de:"Genuss mitten in Rostock mit saftigen Rippchen & Steaks aus unserem 800°C Southbend-Ofen für Sie auf den Punkt gegrillt. Genießen Sie die entspannte Atmosphäre im Innenhof des Hopfenmarktes.",en:"Culinary delight in the heart of Rostock – juicy ribs & steaks grilled to perfection in our 800°C Southbend oven. Enjoy the relaxed atmosphere in the Hopfenmarkt courtyard.",sv:"Njutning mitt i Rostock med saftiga revben & stekar grillade till perfektion i vår 800°C Southbend-ugn. Njut av den avslappnade atmosfären på Hopfenmarkts innergård.",da:"Nydelse midt i Rostock med saftige spareribs & steaks grillet til perfektion i vores 800°C Southbend-ovn. Nyd den afslappede atmosfære i Hopfenmarkts gårdhave."},openingHours:{de:"Öffnungszeiten",en:"Opening Hours",sv:"Öppettider",da:"Åbningstider"},daily:{de:"Täglich 7-23 Uhr",en:"Daily 7am-11pm",sv:"Dagligen 7-23",da:"Dagligt 7-23"},reservation:{de:"Reservierung",en:"Reservation",sv:"Reservation",da:"Reservation"},online:{de:"Online",en:"Online",sv:"Online",da:"Online"},cta:{de:"Jetzt Tisch reservieren",en:"Reserve a Table Now",sv:"Boka bord nu",da:"Reserver bord nu"},gutscheinCta:{de:"Gutscheine kaufen",en:"Buy Gift Cards",sv:"Köp presentkort",da:"Køb gavekort"}},ueberUns:{subtitle:{de:"Über uns",en:"About Us",sv:"Om oss",da:"Om os"},title:{de:"FAMILIENGEFÜHRTES STEAKHOUSE IN ROSTOCK",en:"FAMILY-RUN STEAKHOUSE IN ROSTOCK",sv:"FAMILJEÄGT STEAKHOUSE I ROSTOCK",da:"FAMILIEDREVET STEAKHOUSE I ROSTOCK"},tagline:{de:"Aus Rostock. Mit Herz. Seit Generationen.",en:"From Rostock. With heart. For generations.",sv:"Från Rostock. Med hjärta. I generationer.",da:"Fra Rostock. Med hjerte. I generationer."},description:{de:"Hinter jedem Steak, jedem Lächeln und jedem ‚Schön, dass Sie da sind' steht eine Familie aus Rostock – mit Leidenschaft fürs Handwerk, enger Verbundenheit zu unseren regionalen Lieferanten und Partnern und der Überzeugung, dass echtes Gastgebertum durch Generationen wächst.",en:"Behind every steak, every smile and every ‘So glad you're here' stands a family from Rostock – with passion for the craft, close ties to our regional suppliers and partners, and the belief that true hospital
258ity grows through generations.",sv:"Bakom varje stek, varje leende och varje ‘Vad roligt att du är här’ står en familj från Rostock – med passion för hantverket, nära band till våra regionala leverantörer och partners och övertygelsen att äkta gästfrihet växer genom generationer.",da:"Bag hver steak, hvert smil og hvert ‘Hvor er det dejligt, at du er her’ står en familie fra Rostock – med passion for håndværket, tætte bånd til vores regionale leverandører og partnere og overbevisningen om, at ægte gæstfrihed vokser gennem generationer."},family:{de:"Ihre Familie Düwiger",en:"Yours, the Düwiger Family",sv:"Er familj Düwiger",da:"Jeres familie Düwiger"},feature1Title:{de:"Familiengeführt seit Generationen",en:"Family-Run for Generations",sv:"Familjeägt i generationer",da:"Familiedrevet i generationer"},feature1Text:{de:"Mit Leidenschaft, Handwerk und echtem Gastgebertum – jeden Tag persönlich für Sie da.",en:"With passion, craftsmanship and true hospitality – here for you personally every day.",sv:"Med passion, hantverk och äkta gästfrihet – personligen här för dig varje dag.",da:"Med passion, håndværk og ægte gæstfrihed – personligt til stede for dig hver dag."},feature2Title:{de:"Zuhause am Hopfenmarkt Rostock",en:"At Home at Hopfenmarkt Rostock",sv:"Hemma vid Hopfenmarkt i Rostock",da:"Hjemme på Hopfenmarkt i Rostock"},feature2Text:{de:"Mitten am Hopfenmarkt – fest verwurzelt in der Hansestadt und ihrer Geschichte.",en:"Right at Hopfenmarkt – firmly rooted in the Hanseatic city and its history.",sv:"Mitt vid Hopfenmarkt – fast rotade i hansestaden och dess historia.",da:"Midt på Hopfenmarkt – solidt forankret i hansestaden og dens historie."},feature3Title:{de:"Regionale Lieferanten & Partner",en:"Regional Suppliers & Partners",sv:"Regionala leverantörer & partners",da:"Regionale leverandører & partnere"},feature3Text:{de:"Wir setzen auf Qualität aus der Region und Partner, die wir persönlich kennen und schätzen.",en:"We rely on regional quality and partners we know and value personally.",sv:"Vi satsar på regional kvalitet och partners som vi känner och värdesätter personligen.",da:"Vi satser på regional kvalitet og partnere, som vi kender og værdsætter personligt."}},angebote:{subtitle:{de:"Unsere Highlights",en:"Our Highlights",sv:"Våra höjdpunkter",da:"Vores højdepunkter"},title:{de:"AKTUELLE ANGEBOTE",en:"CURRENT OFFERS",sv:"AKTUELLA ERBJUDANDEN",da:"AKTUELLE TILBUD"},description:{de:"Entdecken Sie unsere wöchentlichen Specials und saisonalen Angebote",en:"Discover our weekly specials and seasonal offers",sv:"Upptäck våra veckovisa specialerbjudanden och säsongserbjudanden",da:"Oplev vores ugentlige specialiteter og sæsontilbud"},today:{de:"Heute",en:"Today",sv:"Idag",da:"I dag"},offers:{spareRibsSatt:{title:{de:'Spare Ribs „satt"',en:"All-You-Can-Eat Spare Ribs",sv:'Spare Ribs "mätta"',da:'Spare Ribs "mæt"'}
258,description:{de:"All-you-can-eat Spareribs mit hausgemachten Saucen und Beilagen nach Wahl. (nicht im Dezember)",en:"All-you-can-eat spare ribs with homemade sauces and sides of your choice. (not in December)",sv:"All-you-can-eat spareribs med hemgjorda såser och tillbehör efter eget val. (ej i december)",da:"All-you-can-eat spareribs med hjemmelavede saucer og tilbehør efter eget valg. (ikke i december)"},badge:{de:"Di & Mi",en:"Tue & Wed",sv:"Tis & Ons",da:"Tir & Ons"},timing:{de:"Ab 17:00 Uhr",en:"From 5pm",sv:"Från kl. 17",da:"Fra kl. 17"}},fruehstueck:{title:{de:"Frühstücksbuffet",en:"Breakfast Buffet",sv:"Frukostbuffé",da:"Morgenmadsbuffet"},description:{de:"Starten Sie genussvoll in den Tag mit unserem reichhaltigen Frühstücksbuffet – unser Geheimtipp!",en:"Start your day with our generous breakfast buffet – our insider tip!",sv:"Börja dagen med vår generösa frukostbuffé – vårt insidertips!",da:"Start dagen med vores generøse morgenmadsbuffet – vores insidertip!"},badge:{de:"Täglich",en:"Daily",sv:"Dagligen",da:"Dagligt"},timing:{de:"07:00-10:00 Uhr",en:"7:00-10:00am",sv:"07:00-10:00",da:"07:00-10:00"}},businessLunch:{title:{de:"Business Lunch",en:"Business Lunch",sv:"Business Lunch",da:"Business Lunch"},description:{de:"Täglich wechselndes Mittagsmenü mit Suppe und Hauptgang (nicht an Feiertagen). Unser Tipp: Fragen Sie nach unserer Stempelkarte – jeder 10. Business Lunch geht auf uns!",en:"Daily changing lunch menu with soup and main course (not on public holidays). Our tip: Ask about our stamp card – every 10th business lunch is on us!",sv:"Dagligen skiftande lunchmeny med soppa och huvudrätt (ej helgdagar). Vårt tips: Fråga om vårt stämpelkort – var 10:e business lunch bjuder vi på!",da:"Dagligt skiftende frokostmenu med suppe og hovedret (ikke på helligdage). Vores tip: Spørg om vores stempelkort – hver 10. business lunch er på os!"},badge:{de:"Mo-Fr",en:"Mon-Fri",sv:"Mån-Fre",da:"Man-Fre"},timing:{de:"11:00-15:00 Uhr",en:"11:00am-3:00pm",sv:"11:00-15:00",da:"11:00-15:00"}},fancyHour:{title:{de:"Fancy Hour",en:"Fancy Hour",sv:"Fancy Hour",da:"Fancy Hour"},description:{de:"Alle Cocktails 2 € günstiger! Genießen Sie entspannte Abende mit erfrischenden Drinks zu reduzierten Preisen.",en:"All cocktails €2 off! Enjoy relaxed evenings with refreshing drinks at reduced prices.",sv:"Alla cocktails 2 € billigare! Njut av avslappnade kvällar med uppfriskande drinkar till reducerade priser.",da:"Alle cocktails 2 € billigere! Nyd afslappede aftener med forfriskende drinks til reducerede priser."},badge:{de:"So-Do",en:"Sun-Thu",sv:"Sön-Tor",da:"Søn-Tor"},timing:{de:"20:00-22:00 Uhr",en:"8:00-10:00pm",sv:"20:00-22:00",da:"20:00-22:00"}},dryAged:{title:{de:"Dry Aged Steaks",en:"Dry Aged Steaks",sv:"Dry Aged Steaks",da:"Dry Aged Steaks"},description:{de:"NEU! Unsere Premium Dry Aged Steaks – wochenlang gereift für maximale Zartheit und intensives Aroma.",en:"NEW! Our premium Dry Aged Steaks – aged for weeks for maximum tenderness and intense flavour.",sv:"NYTT! Våra premium Dry Aged Steaks – mognade i veckor för maximal mörhet och intensiv smak.",da:"NYT! Vores premium Dry Aged Steaks – modnet i uger for maksimal mørhed og intens smag."},badge:{de:"NEU",en:"NEW",sv:"NYTT",da:"NYT"},timing:{de:"Täglich verfügbar",en:"Available daily",sv:"Tillgänglig dagligen",da:"Tilgængelig dagligt"}},kochGesucht:{title:{de:"Koch gesucht (m/w/d)",en:"Chef Wanted (m/f/d)",sv:"Kock sökes (m/k/d)",da:"Kok søges (m/k/d)"},description:{de:"Werde Teil unseres Teams! Voll- oder Teilzeit, faire Bezahlung, zentrale Lage in Rostock. Bewirb dich direkt online.",en:"Join our team! Full- or part-time, fair pay, central location in Rostock. Apply online directly.",sv:"Bli en del av vårt team! Hel- eller deltid, rättvis lön, centralt läge i Rostock. Ansök direkt online.",da:"Bliv en del af vores team! Fuld- eller deltid, fair løn, central beliggenhed i Rostock. Ansøg direkte online."},badge:{de:"JOB",en:"JOB",sv:"JOBB",da:"JOB"},timing:{de:"Voll- oder Teilzeit",en:"Full- or part-time",sv:"Hel- eller deltid",da:"Fuld- eller deltid"}},weihnachten:{title:{de:"Weihnachten bei LEON'S",en:"Christmas at LEON'S",sv:"Jul hos LEON'S",da:"Jul hos LEON'S"},description:{de:"Festliches Weihnachtsmenü, Weihnachtsfeiern und Geschenkgutscheine – die schönste Zeit des Jahres am Hopfenmarkt.",en:"Festive Christmas menu, Christmas parties and gift vouchers – the loveliest time of the year at Hopfenmarkt.",sv:"Festlig julmeny, julfester och presentkort – årets vackraste tid på Hopfenmarkt.",da:"Festlig julemenu, julefester og gavekort – årets dejligste tid på Hopfenmarkt."},badge:{de:"Weihnachten",en:"Christmas",sv:"Jul",da:"Jul"}
258,timing:{de:"Weihnachtszeit 2026",en:"Christmas 2026",sv:"Julen 2026",da:"Julen 2026"}}}},weihnachten:{bannerBadge:{de:"Weihnachtszeit 2026",en:"Christmas Season 2026",sv:"Julen 2026",da:"Julen 2026"},bannerTitle:{de:"WEIHNACHTEN AM HOPFENMARKT",en:"CHRISTMAS AT HOPFENMARKT",sv:"JUL PÅ HOPFENMARKT",da:"JUL PÅ HOPFENMARKT"},bannerText:{de:"Festlich feiern, herzhaft genießen: Entdecken Sie unser Weihnachtsmenü, Ihre Weihnachtsfeier mit der ganzen Familie und Geschenkgutscheine für die schönste Zeit des Jahres.",en:"Celebrate festively, feast heartily: discover our Christmas menu, your Christmas party with the whole family and gift vouchers for the loveliest time of the year.",sv:"Fira festligt, avnjut ordentligt: Upptäck vår julmeny, din julfest med hela familjen och presentkort till årets vackraste tid.",da:"Fejr festligt, nyd godt af det hele: Opdag vores julemenu, din julefest med hele familien og gavekort til årets dejligste tid."},ctaDiscover:{de:"Weihnachtsangebote entdecken",en:"Discover Christmas Offers",sv:"Upptäck julerbjudanden",da:"Se juletilbuddene"},ctaReserve:{de:"Tisch reservieren",en:"Reserve a Table",sv:"Boka bord",da:"Reserver bord"},pageSubtitle:{de:"Weihnachtszeit 2026",en:"Christmas Season 2026",sv:"Julen 2026",da:"Julen 2026"},heroTitle:{de:"FESTLICH FEIERN AM HOPFENMARKT",en:"A FESTIVE CELEBRATION AT HOPFENMARKT",sv:"FESTLIG FIRANDE PÅ HOPFENMARKT",da:"FESTLIG FEJRING PÅ HOPFENMARKT"},heroText:{de:"Die Weihnachtszeit gehört zu den schönsten Wochen im Jahr – bei uns wird sie besonders genussvoll. Ob gemütliches Festtagsessen, große Weihnachtsfeier oder Geschenkidee: LEON'S macht Ihre Weihnachten rund.",en:"The Christmas season is one of the loveliest times of the year – and with us it tastes even better. Whether a cosy holiday dinner, a big Christmas party or a gift idea: LEON'S makes your Christmas complete.",sv:"Julen är årets vackraste veckor – hos oss blir de extra smakfulla. Oavsett om det är en mysig helgmiddag, en stor julfest eller en presentidé: LEON'S gör din jul komplett.",da:"Julen er årets dejligste uger – hos os smager den ekstra godt. Uanset om det er en hyggelig festmiddag, en stor julefest eller en gaveidé: LEON'S gør din jul komplet."},menuBadge:{de:"Festtagsmenü",en:"Holiday Menu",sv:"Julmeny",da:"Julemenu"},menuTitle:{de:"UNSER WEIHNACHTSMENÜ",en:"OUR CHRISTMAS MENU",sv:"VÅR JULMENY",da:"VORES JULEMENU"},menuAvailable:{de:"Ab dem 23. November bei uns im Leon's",en:"Available from 23 November here at Leon's",sv:"Från 23 november hos oss på Leon's",da:"Fra 23. november hos os i Leon's"},menuText:{de:"Genießen Sie eines unserer vier festlichen Weihnachtsmenüs – von Wildgulasch über Lachs bis zur weihnachtlichen Ente. Alle Details und Preise finden Sie auf der Menükarte – oder sprechen Sie uns gerne an.",en:"Enjoy one of our four festive Christmas menus – from venison goulash to salmon and festive roast duck. All details and prices are on the menu card – or just talk to us.",sv:"Njut av en av våra fyra festliga julmenyer – från vildgulasch till lax och julanka. Alla detaljer och priser finns på menyn – eller prata gärna med oss.",da:"Nyd en af vores fire festlige julemenuer – fra vildgulasch til laks og juleand. Alle detaljer og priser står på menukortet – eller tag endelig kontakt."},menuEnlarge:{de:"Weihnachtsmenü 2026 in voller Größe ansehen",en:"View the 2026 Christmas menu in full size",sv:"Se julmenyn 2026 i full storlek",da:"Se julemenuen 2026 i fuld størrelse"},menuEnlargeHint:{de:"Tipp: Klicken Sie auf die Karte, um sie größer zu sehen.",en:"Tip: click the menu card to view it larger.",sv:"Tips: klicka på menyn för att se den större.",da:"Tip: Klik på menukortet for at se det større."},menuCta:{de:"Jetzt Tisch reservieren",en:"Reserve a Table Now",sv:"Boka bord nu",da:"Reserver bord nu"},partyBadge:{de:"Weihnachtsfeiern",en:"Christmas Parties",sv:"Julfester",da:"Julefester"},partyTitle:{de:"IHR FEST MIT TEAM & FAMILIE",en:"YOUR PARTY WITH TEAM & FAMILY",sv:"ER FEST MED TEAM & FAMILJ",da:"JERES FEST MED TEAM & FAMILIE"},partyText:{de:"Ob Firmenfeier, Vereinsfest oder Weihnachtsessen mit der ganzen Familie – wir richten Ihre Feier herzlich ein und finden mit Ihnen gemeinsam den passenden Rahmen.",en:"Whether a company party, club celebration or Christmas dinner with the whole family – we host your celebration with heart and find the right setting together with you.",sv:"Oavsett om det är en företagsfest, föreningskalas eller julmiddag med hela fam
258iljen – vi ordnar er fest med värme och hittar tillsammans med er den rätta ramen.",da:"Uanset om det er en firmafest, foreningsfest eller julemiddag med hele familien – vi værter for jeres fest med hjerte og finder sammen med jer den rette ramme."},party1Title:{de:"Gruppentische für Ihre Feier",en:"Group Tables for Your Party",sv:"Gruppbord för er fest",da:"Gruppeborde til jeres fest"},party1Text:{de:"Reservieren Sie Tische für Ihre Gruppe – für Feiern im großen Kreis oder im kleinen Rahmen.",en:"Reserve tables for your group – for large celebrations or an intimate gathering.",sv:"Boka bord för er grupp – för stora fester eller en intimare samling.",da:"Reservér borde til jeres gruppe – til store fester eller en intim sammenkomst."},party2Title:{de:"Rustikale Grillküche",en:"Rustic Grill Cuisine",sv:"Rustik grillmat",da:"Rustik grillokse"},party2Text:{de:"Steaks, Rippchen und Beilagen aus unserem 800°C-Ofen – der feste Klassiker für Festtage.",en:"Steaks, ribs and sides from our 800°C oven – the classic choice for the festive season.",sv:"Stekar, revben och tillbehör från vår 800°C-ugn – den klassiska favoriten till högtiderna.",da:"Steaks, ribben og tilbehør fra vores 800°C-ovn – den klassiske favorit til højtiderne."},party3Title:{de:"Persönliche Beratung",en:"Personal Advice",sv:"Personlig rådgivning",da:"Personlig rådgivning"},party3Text:{de:"Sprechen Sie uns an – wir beraten Sie gerne persönlich zu Menü, Gruppengröße und Termin.",en:"Talk to us – we are happy to advise you personally on menu, group size and date.",sv:"Hör av er – vi rådgör gärna personligen om meny, gruppstorlek och datum.",da:"Tag kontakt – vi rådgiver gerne personligt om menu, gruppestørrelse og dato."},groupCta:{de:"Tische für Ihre Gruppe reservieren",en:"Reserve Tables for Your Group",sv:"Boka bord för er grupp",da:"Reservér borde til jeres gruppe"},voucherBadge:{de:"Geschenkidee",en:"Gift Idea",sv:"Presentidé",da:"Gaveidé"},voucherTitle:{de:"GESCHENKGUTSCHEINE",en:"GIFT VOUCHERS",sv:"PRESENTKORT",da:"GAVEKORT"},voucherText:{de:"Suchen Sie noch ein Geschenk? Mit einem LEON'S Gutschein schenken Sie Genuss – vom saftigen Steak bis zum gemütlichen Abend am Hopfenmarkt.",en:"Still looking for a gift? A LEON'S voucher is a treat – from a juicy steak to a cosy evening at Hopfenmarkt.",sv:"Letar du fortfarande efter en gåva? Med ett LEON'S-presentkort ger du njutning – från saftig stek till en mysig kväll på Hopfenmarkt.",da:"Leder du stadig efter en gave? Med et LEON'S-gavekort giver du en oplevelse – fra saftig steak til en hyggelig aften på Hopfenmarkt."},voucherCta:{de:"Gutschein kaufen",en:"Buy a Gift Card",sv:"Köp presentkort",da:"Køb gavekort"},contactNote:{de:"Für Gruppen und Weihnachtsfeiern: Rufen Sie uns gerne an unter 0381 4583443 – wir freuen uns auf Sie!",en:"For groups and Christmas parties: call us at +49 381 4583443 – we look forward to seeing you!",sv:"För grupper och julfester: ring oss gärna på +49 381 4583443 – vi ser fram emot ert besök!",da:"Til grupper og julefester: ring gerne til os på +49 381 4583443 – vi glæder os til at se jer!"}},speisekarte:{subtitle:{de:"Unsere Klassiker",en:"Our Classics",sv:"Våra klassiker",da:"Vores klassikere"},title:{de:"Speisekarte",en:"Menu",sv:"Meny",da:"Menu"},description:{de:"Handverlesene Fleischqualität, traditionell zubereitet mit modernem Twist",en:"Hand-selected meat quality, traditionally prepared with a modern twist",sv:"Handplockat kött av högsta kvalitet, traditionellt tillagat med modern twist",da:"Håndplukket kødkvalitet, traditionelt tilberedt med et moderne twist"},pdfButton:{de:"Komplette Speisekarte (PDF)",en:"Full Menu (PDF)",sv:"Komplett meny (PDF)",da:"Komplet menu (PDF)"},onlineMenuButton:{de:"Online Speisekarte",en:"Online Menu",sv:"Online meny",da:"Online menu"},categories:{strohschwein:{de:"Steaks vom Strohschwein",en:"Straw Pig Steaks",sv:"Stekar från halmgris",da:"Steaks fra stråsvin"},spareRibs:{de:"Spare Ribs",en:"Spare Ribs",sv:"Spare Ribs",da:"Spare Ribs"},leonsCuts:{de:"LEON'S Cuts",en:"LEON'S Cuts",sv:"LEON'S Cuts",da:"LEON'S Cuts"}},spareRibsDesc:{de:"Im 800°C Southbend-Ofen gegrillt! Mit Cole slaw, Brotkorb & Aioli-Dip",en:"Grilled 
258in our 800°C Southbend oven! With coleslaw, bread basket & aioli dip",sv:"Grillad i vår 800°C Southbend-ugn! Med coleslaw, brödkorg & aioli-dipp",da:"Grillet i vores 800°C Southbend-ovn! Med coleslaw, brødkurv & aioli-dip"},items:{rumpsteakSchwein:{name:{de:"Rumpsteak",en:"Rump Steak",sv:"Rumpsteak",da:"Rumpsteak"},description:{de:"ca. 300g, mit typisch kleinem Fettrand für die Saftigkeit und den Geschmack",en:"approx. 300g, with its typical small fat edge for juiciness and flavour",sv:"ca 300g, med typisk liten fettkant för saftighet och smak",da:"ca. 300g, med typisk lille fedtkant for saftighed og smag"}},kotelettSchwein:{name:{de:"Kotelett",en:"Pork Chop",sv:"Kotlett",da:"Kotelet"},description:{de:"ca. 400g, saftig gegrillt mit knusprigem Fettrand, sehr geschmackvoll",en:"approx. 400g, juicy grilled with crispy fat edge, very flavourful",sv:"ca 400g, saftigt grillad med krispig fettkant, mycket smakrik",da:"ca. 400g, saftigt grillet med sprød fedtkant, meget smagfuld"}},filetMignonSchwein:{name:{de:"Filet Mignon",en:"Filet Mignon",sv:"Filet Mignon",da:"Filet Mignon"},description:{de:"ca. 200g, das beste und zarteste Stück vom Strohschwein",en:"approx. 200g, the finest and most tender cut of straw pig",sv:"ca 200g, det bästa och möraste stycket av halmgrisen",da:"ca. 200g, det bedste og møreste stykke af stråsvinet"}},ribEyeSchwein:{name:{de:"Rib Eye",en:"Rib Eye",sv:"Rib Eye",da:"Rib Eye"},description:{de:"ca. 400g, besonders saftig, fettdurchwachsen und perfekt marmoriert",en:"approx. 400g, especially juicy, marbled with fat for perfect flavour",sv:"ca 400g, extra saftig, fettmarmorerad och perfekt marbrerad",da:"ca. 400g, særligt saftig, fedtmarmoreret og perfekt marmoreret"}},tBoneSchwein:{name:{de:"T-Bone",en:"T-Bone",sv:"T-Bone",da:"T-Bone"},description:{de:"ca. 500g, zartes Filet und saftiger Schweinelachs am T-Knochen",en:"approx. 500g, tender fillet and juicy pork loin on the T-bone",sv:"ca 500g, mör filé och saftig fläskytterfilé på T-benet",da:"ca. 500g, mør filet og saftig svinemørbrad på T-benet"}},honeyStyle:{name:{de:"Honey Style",en:"Honey Style",sv:"Honey Style",da:"Honey Style"},description:{de:"Knusprige Ribs mit Honig-Barbecue-Marinade",en:"Crispy ribs with honey barbecue marinade",sv:"Krispiga revben med honung-barbecue-marinad",da:"Sprøde ribs med honning-barbecue-marinade"}},smokyStyle:{name:{de:"Smoky Style",en:"Smoky Style",sv:"Smoky Style",da:"Smoky Style"},description:{de:"Knusprige Ribs mit rauchiger Barbecue-Marinade",en:"Crispy ribs with smoky barbecue marinade",sv:"Krispiga revben med rökig barbecue-marinad",da:"Sprøde ribs med røget barbecue-marinade"}},spicyStyle:{name:{de:"Spicy Style",en:"Spicy Style",sv:"Spicy Style",da:"Spicy Style"},description:{de:"Knusprige Ribs mit würziger Barbecue-Marinade",en:"Crispy ribs with spicy barbecue marinade",sv:"Krispiga revben med kryddig barbecue-marinad",da:"Sprøde ribs med krydret barbecue-marinade"}},trilogie:{name:{de:"Spare Ribs Trilogie",en:"Spare Ribs Trilogy",sv:"Spare Ribs Trilogi",da:"Spare Ribs Trilogi"},description:{de:"Spicy, Smoky & Honey Style Ribs",en:"Spicy, Smoky & Honey Style Ribs",sv:"Spicy, Smoky & Honey Style Ribs",da:"Spicy, Smoky & Honey Style Ribs"}},haehnchen:{name:{de:"Hähnchenbrustfilet",en:"Chicken Breast Fillet",sv:"Kycklingbröstfilé",da:"Kyllingebrystfilet"},description:{de:"ca. 200g, besonders zart",en:"approx. 200g, especially tender",sv:"ca 200g, extra mör",da:"ca. 200g, særligt mør"}},huftsteak:{name:{de:"Huftsteak Medaillons",en:"Rump Steak Medallions",sv:"Höftbiffsmedaljoner",da:"Hoftesteakmedaljoner"},description:{de:"ca. 250g, saftig gegrillt, aus dem Herzen der Rinderhüfte",en:"approx. 250g, juicy grilled, from the heart of the beef rump",sv:"ca 250g, saftigt grillad, från hjärtat av nöthöften",da:"ca. 250g, saftigt grillet, fra hjertet af oksehoften"}},rumpsteakRind:{name:{de:"Rumpsteak",en:"Rump Steak",sv:"Rumpsteak",da:"Rumpsteak"},description:{de:"ca. 250g, mit typisch kleinem Fettrand, innen zart und fettarm",en:"approx. 250g, with typical small fat edge, tender and lean inside",sv:"ca 250g, med typisk liten fettkant, mör och mager inuti",da:"ca. 250g, med typisk lille fedtkant, mør og mager indeni"}},filetMignonRind:{name:{de:"Filet Mignon",en:"Filet Mignon",sv:"Filet Mignon",da:"Filet Mignon"},description:{de:"ca. 200g, das beste und zarteste Stück vom jungen Rind",en:"approx. 200g, the finest and most tender cut of young beef",sv:"ca 200g, det bästa och möraste stycket av ungt nötkött",da:"ca. 200g, det bedste og møreste stykke af ungt oksekød"}},ribEyeRind:{name:{de:"Rib Eye",en:"Rib Eye",sv:"Rib Eye",da:"Rib Eye"},description:{de:"ca. 350g, dieses Stück vom Rind ist ein Kennerfleisch",en:"approx. 350g, this beef cut is a connoisseur's choice",sv:"ca 350g, detta 
258nötköttsstycke är ett kännarkött",da:"ca. 350g, dette oksekødsstykke er et kendevalg"}},bbqPlatte:{name:{de:"LEON'S BBQ-Platte",en:"LEON'S BBQ Platter",sv:"LEON'S BBQ-tallrik",da:"LEON'S BBQ-tallerken"},description:{de:"Medaillon, Spare Ribs, Schweinebauch, Dips & Beilagen",en:"Medallion, Spare Ribs, Pork Belly, Dips & Sides",sv:"Medaljong, Spare Ribs, Fläskbuk, Dippar & Tillbehör",da:"Medaljon, Spare Ribs, Svinebryst, Dips & Tilbehør"}}},leonsCutsDesc:{de:"Unsere Steaks vom Rind mit knackigem Salat, Meerrettich & Haus-Steaksauce",en:"Our beef steaks with fresh salad, horseradish & house steak sauce",sv:"Våra nötstekar med fräsch sallad, pepparrot & husets steaksås",da:"Vores oksekødssteaks med frisk salat, peberrod & husets steaksauce"}},bewertungen:{subtitle:{de:"Das sagen unsere Gäste",en:"What Our Guests Say",sv:"Vad våra gäster säger",da:"Hvad vores gæster siger"},title:{de:"BEWERTUNGEN",en:"REVIEWS",sv:"OMDÖMEN",da:"ANMELDELSER"},googleRating:{de:"4.3 / 5 bei Google",en:"4.3 / 5 on Google",sv:"4.3 / 5 på Google",da:"4.3 / 5 på Google"},source:{de:"Quelle",en:"Source",sv:"Källa",da:"Kilde"}},reservierung:{subtitle:{de:"Sichern Sie sich Ihren Platz",en:"Secure Your Spot",sv:"Säkra din plats",da:"Sikr din plads"},title:{de:"TISCH RESERVIEREN",en:"RESERVE A TABLE",sv:"BOKA BORD",da:"RESERVER BORD"},description:{de:"Reservieren Sie bequem online oder rufen Sie uns direkt an",en:"Reserve conveniently online or call us directly",sv:"Boka bekvämt online eller ring oss direkt",da:"Reserver bekvemt online eller ring os direkte"},step1Title:{de:"Datum wählen",en:"Choose Date",sv:"Välj datum",da:"Vælg dato"},step1Desc:{de:"Wählen Sie Ihren Wunschtermin",en:"Select your preferred date",sv:"Välj ditt önskade datum",da:"Vælg din ønskede dato"},step2Title:{de:"Personen",en:"Guests",sv:"Gäster",da:"Gæster"},step2Desc:{de:"Geben Sie die Anzahl der Gäste an",en:"Specify the number of guests",sv:"Ange antalet gäster",da:"Angiv antallet af gæster"},step3Title:{de:"Bestätigen",en:"Confirm",sv:"Bekräfta",da:"Bekræft"},step3Desc:{de:"Erhalten Sie Ihre Bestätigung",en:"Receive your confirmation",sv:"Få din bekräftelse",da:"Modtag din bekræftelse"},phoneFallback:{de:"Lieber telefonisch? Kein Problem!",en:"Prefer to call? No problem!",sv:"Föredrar du att ringa? Inga problem!",da:"Foretrækker du at ringe? Intet problem!"}},bilder:{subtitle:{de:"Einblicke",en:"Insights",sv:"Inblickar",da:"Indblik"},title:{de:"GALERIE",en:"GALLERY",sv:"GALLERI",da:"GALLERI"},description:{de:"Erleben Sie die Atmosphäre von LEON'S in Bildern",en:"Experience the atmosphere of LEON'S in pictures",sv:"Upplev atmosfären på LEON'S i bilder",da:"Oplev atmosfæren hos LEON'S i billeder"},placeholder:{de:"Platzhalterbilder – Vor dem Launch mit Original-Fotos ersetzen",en:"Placeholder images – Replace with original photos before launch",sv:"Platshållarbilder – Ersätt med originalfoton före lansering",da:"Pladsholderbilleder – Erstat med originalfotos inden lancering"},categories:{interior:{de:"Interior",en:"Interior",sv:"Interiör",da:"Interiør"},gerichte:{de:"Gerichte",en:"Dishes",sv:"Rätter",da:"Retter"},ambiente:{de:"Ambiente",en:"Ambiance",sv:"Atmosfär",da:"Atmosfære"},team:{de:"Team",en:"Team",sv:"Team",da:"Team"}}},kontakt:{subtitle:{de:"Besuchen Sie uns",en:"Visit Us",sv:"Besök oss",da:"Besøg os"},title:{de:"KONTAKT",en:"CONTACT",sv:"KONTAKT",da:"KONTAKT"},adresse:{de:"Adresse",en:"Address",sv:"Adress",da:"Adresse"},aufHopfenmarkt:{de:"(auf dem Hopfenmarkt)",en:"(at the Hopfenmarkt)",sv:"(på Hopfenmarkt)",da:"(på Hopfenmarkt)"},telefon:{de:"Telefon",en:"Phone",sv:"Telefon",da:"Telefon"},email:{de:"E-Mail",en:"Email",sv:"E-post",da:"E-mail"},oeffnungszeiten:{de:"Öffnungszeiten",en:"Opening Hours",sv:"Öppettider",da:"Åbningstider"},taeglich:{de:"Täglich: 7-23 Uhr",en:"Daily: 7am-11pm",sv:"Dagligen: 7-23",da:"Dagligt: 7-23"},fruehstueck:{de:"Frühstück",en:"Breakfast",sv:"Frukost",da:"Morgenmad"},fruehstueckZeit:{de:"Täglich 7-10 Uhr",en:"Daily 7-10am",sv:"Dagligen 7-10",da:"Dagligt 7-10"},businessLunch:{de:"Business Lunch",en:"Business Lunch",sv:"Business Lunch",da:"Business Lunch"}
258,businessLunchZeit:{de:"Mo-Fr 11-15 Uhr (nicht an Feiertagen)",en:"Mon-Fri 11am-3pm (not on public holidays)",sv:"MÃ¥n-Fre 11-15 (ej helgdagar)",da:"Man-Fre 11-15 (ikke pÃ¥ helligdage)"},warmeKueche:{de:"Warme Küche",en:"Hot Kitchen",sv:"Varmkök",da:"Varmt køkken"},warmeKuecheZeit:{de:"11-22 Uhr",en:"11am-10pm",sv:"11-22",da:"11-22"},footer:{de:"Alle Rechte vorbehalten.",en:"All rights reserved.",sv:"Alla rättigheter förbehÃ¥llna.",da:"Alle rettigheder forbeholdes."},impressum:{de:"Impressum",en:"Legal Notice",sv:"Juridisk information",da:"Juridisk information"},datenschutz:{de:"Datenschutz",en:"Privacy Policy",sv:"Integritetspolicy",da:"Privatlivspolitik"}},mobileCta:{reservieren:{de:"Reservieren",en:"Reserve",sv:"Reservera",da:"Reserver"}},partner:{title:{de:"UNSERE PARTNER",en:"OUR PARTNERS",sv:"VÅRA PARTNERS",da:"VORES PARTNERE"},description:{de:"Lieferanten & Freunde, die uns am Herzen liegen",en:"Suppliers & friends close to our heart",sv:"Leverantörer & vänner som ligger oss varmt om hjärtat",da:"Leverandører & venner, der ligger os nær"},empty:{de:"Bald stellen wir hier unsere Partner vor.",en:"We'll introduce our partners here soon.",sv:"Vi presenterar snart vÃ¥ra partners här.",da:"Vi præsenterer snart vores partnere her."}},karriere:{navLabel:{de:"Karriere",en:"Careers",sv:"Karriär",da:"Karriere"},badge:{de:"Wir stellen ein",en:"We're hiring",sv:"Vi rekryterar",da:"Vi ansætter"},title:{de:"WIR SUCHEN EINEN KOCH (M/W/D)",en:"WE'RE LOOKING FOR A CHEF (M/F/D)",sv:"VI SÖKER EN KOCK (M/K/D)",da:"VI SØGER EN KOK (M/K/D)"},intro:{de:"Werde Teil unserer Familie im LEON'S Nordic Grill- & BBQ-Haus. Bewirb dich direkt hier – wir melden uns kurzfristig bei dir.",en:"Join our family at LEON'S Nordic Grill & BBQ House. Apply directly here – we'll get back to you shortly.",sv:"Bli en del av vÃ¥r familj pÃ¥ LEON'S Nordic Grill- & BBQ-Hus. Ansök direkt här – vi hör av oss snart.",da:"Bliv en del af vores familie pÃ¥ LEON'S Nordic Grill- & BBQ-Hus. Ansøg direkte her – vi vender hurtigt tilbage."},nameLabel:{de:"Name",en:"Name",sv:"Namn",da:"Navn"},namePlaceholder:{de:"Dein Name",en:"Your name",sv:"Ditt namn",da:"Dit navn"},phoneLabel:{de:"Telefon",en:"Phone",sv:"Telefon",da:"Telefon"},phonePlaceholder:{de:"Deine Telefonnummer",en:"Your phone number",sv:"Ditt telefonnummer",da:"Dit telefonnummer"},emailLabel:{de:"E-Mail",en:"Email",sv:"E-post",da:"E-mail"},emailPlaceholder:{de:"[email protected]",en:"[email protected]",sv:"[email protected]",da:"[email protected]"},emailHint:{de:"Wir schicken dir eine kurze Eingangsbestätigung.",en:"We'll send you a short confirmation.",sv:"Vi skickar en kort bekräftelse.",da:"Vi sender dig en kort bekræftelse."},messageLabel:{de:"Kurze Nachricht",en:"Short message",sv:"Kort meddelande",da:"Kort besked"},messagePlaceholder:{de:"Erzähl uns kurz von dir, deiner Erfahrung und wann du starten könntest.",en:"Tell us briefly about yourself, your experience and when you could start.",sv:"Berätta kort om dig själv, din erfarenhet och när du kan börja.",da:"Fortæl os kort om dig selv, din erfaring og hvornÃ¥r du kan starte."},submit:{de:"Bewerbung absenden",en:"Send application",sv:"Skicka ansökan",da:"Send ansøgning"},submitting:{de:"Wird gesendet…",en:"Sending…",sv:"Skickar…",da:"Sender…"},successTitle:{de:"Vielen Dank!",en:"Thank you!",sv:"Tack!",da:"Tak!"},successText:{de:"Wir haben deine Bewerbung erhalten und melden uns in Kürze.",en:"We've received your application and will be in touch soon.",sv:"Vi har fÃ¥tt din ansökan och hör av oss snart.",da:"Vi har modtaget din ansøgning og vender tilbage snart."},errorTitle:{de:"Etwas ist schiefgelaufen",en:"Something went wrong",sv:"NÃ¥got gick fel",da:"Noget gik galt"},errorText:{de:"Bitte versuche es erneut oder ruf uns einfach an.",en:"Please try again or simply give us a call.",sv:"Försök igen eller ring oss.",da:"Prøv igen eller ring til os."},ctaSection:{de:"Zur Bewerbung",en:"Apply now",sv:"Ansök nu",da:"Ansøg nu"},callbackHeading:{de:"Wann dürfen wir dich zurückrufen? (optional)",en:"When may we call you back? (optional)",sv:"När fÃ¥r vi ringa upp dig? (valfritt)",da:"HvornÃ¥r mÃ¥ vi ringe tilbage? (valgfrit)"},callbackDateLabel:{de:"Wunsch-Datum",en:"Preferred date",sv:"Önskat datum",da:"Ønsket dato"},callbackDatePlaceholder:{de:"Datum wählen",en:"Pick a date",sv:"Välj datum",da:"Vælg dato"},callbackTimeLabel:{de:"Wunsch-Uhrzeit",en:"Preferred time",sv:"Önskad tid",da:"Ønsket tid"},callbackTimePlaceholder:{de:"z. B. 14:00 oder 14-16 Uhr",en:"e.g. 2pm or 2-4pm",sv:"t.ex. 14:00 eller 14-16",da:"f.eks. 14:00 eller 14-16"}},pages:{backToHome:{de:"Zurück zur Startseite",en:"Back to Home",sv:"Tillbaka till startsidan",da:"Tilbage til forsiden"}}},E2=(e,t)=>
258e[t]||e.de,jk=w.createContext({language:"de",setLanguage:()=>{},t:e=>e.de}),j2=({children:e})=>{const[t,n]=w.useState(()=>{const i=localStorage.getItem("leons-lang");return i&&["de","en","sv","da"].includes(i)?i:"de"}),r=w.useCallback(i=>{n(i),localStorage.setItem("leons-lang",i)},[]),s=w.useCallback(i=>E2(i,t),[t]);return c.jsx(jk.Provider,{value:{language:t,setLanguage:r,t:s},children:e})},We=()=>w.useContext(jk),Ou=()=>{const{t:e}=We();return c.jsx("div",{className:"bg-secondary border-b border-border",children:c.jsx("div",{className:"container mx-auto px-4 py-2",children:c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 text-sm",children:[c.jsx("div",{className:"flex flex-wrap items-center gap-4",children:c.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 text-muted-foreground hover:text-primary transition-colors",children:[c.jsx(px,{className:"w-4 h-4"}),c.jsx("span",{className:"hidden sm:inline",children:"[email protected]"})]})}),c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[c.jsx(Ga,{className:"w-4 h-4"}),c.jsx("span",{className:"text-xs sm:text-sm",children:e(I.topbar.hours)})]})]})})})},yf=ku("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"}}),se=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?Fj:"button";return c.jsx(o,{className:ve(yf({variant:t,size:n,className:e})),ref:i,...s})});se.displayName="Button";const T2={de:c.jsxs("svg",{viewBox:"0 0 640 480",className:"w-5 h-4 rounded-sm",children:[c.jsx("rect",{width:"640",height:"160",fill:"#000"}),c.jsx("rect",{y:"160",width:"640",height:"160",fill:"#D00"}),c.jsx("rect",{y:"320",width:"640",height:"160",fill:"#FFCE00"})]}),en:c.jsxs("svg",{viewBox:"0 0 640 480",className:"w-5 h-4 rounded-sm",children:[c.jsx("rect",{width:"640",height:"480",fill:"#012169"}),c.jsx("path",{d:"M75 0l244 181L562 0h78v62L400 241l240 178v61h-80L320 301 82 480H0v-60l239-178L0 64V0h75z",fill:"#FFF"}),c.jsx("path",{d:"M424 281l216 159v40L369 281h55zm-184 20l6 35L54 480H0l240-179zM640 0v3L391 191l2-44L590 0h50zM0 0l239 176h-60L0 42V0z",fill:"#C8102E"}),c.jsx("path",{d:"M241 0v480h160V0H241zM0 160v160h640V160H0z",fill:"#FFF"}),c.jsx("path",{d:"M273 0v480h96V0h-96zM0 192v96h640v-96H0z",fill:"#C8102E"})]}),sv:c.jsxs("svg",{viewBox:"0 0 640 480",className:"w-5 h-4 rounded-sm",children:[c.jsx("rect",{width:"640",height:"480",fill:"#006AA7"}),c.jsx("rect",{x:"176",width:"64",height:"480",fill:"#FECC00"}),c.jsx("rect",{y:"208",width:"640",height:"64",fill:"#FECC00"})]}),da:c.jsxs("svg",{viewBox:"0 0 640 480",className:"w-5 h-4 rounded-sm",children:[c.jsx("rect",{width:"640",height:"480",fill:"#C8102E"}),c.jsx("rect",{x:"176",width:"64",height:"480",fill:"#FFF"}),c.jsx("rect",{y:"208",width:"640",height:"64",fill:"#FFF"})]})},$v=({lang:e})=>T2[e],mo=()=>{const[e,t]=w.useState(!1),{language:n,setLanguage:r,t:s}=We(),i=sp(),o=[{label:s(I.nav.angebote),href:"#angebote"},{label:s(I.nav.speisekarte),href:"#speisekarte"},{label:s(I.nav.kontakt),href:"#kontakt"},{label:s(I.nav.partner),href:"/partner",external:!1,isRoute:!0},{label:s(I.karriere.navLabel),href:"/karriere",external:!1,isRoute:!0},{label:s(I.nav.gutscheine),href:"https://www.yovite.com/Restaurant-Gutschein-R-59065063.html?REF=REST",external:!0}],a=u=>{if(u.external)window.open(u.href,"_blank");else if(u.isRoute)i(u.href);else{const d=document.querySelector(u.href);d&&d.scrollIntoView({behavior:"smooth"})}t(!1)},l=["de","en","sv","da"];return c.jsx("header",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"flex items-center justify-between h-16 md:h-20",children:[c.jsx("a",{href:"/",className:"flex items-center min-h-11",children:c.jsx("span",{className:"font-display text-3xl md:text-4xl tracking-wider text-foreground",children:"LEON'S"})}),c.jsx("nav",{className:"hidden md:flex items-center gap-6",children:o.map(u=>c.jsx("button",{onClick:()=>a(u),className:"transition-colors font-medium text-muted-foreground hover:text-primary",children:u.label},u.label))}),c.jsxs("div",{className:"hidden md:flex items-center gap-4",children:[c.jsx("div",{className:"flex items-center gap-1 border border-border rounded-md p-1",children:l.map(u=>c.jsx("button",{onClick:()=>r(u),"aria-label":`Sprache auf ${u.toUpperCase()} umstellen`,"aria-pressed":n===u,className:`px-2 py-1 text-xs font-semibold rounded transition-colors ${n===u?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:c.jsx($v,{lang:u})},u))}),c.jsx(se,{onClick:()=>a({href:"#reservierung"}),className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-6",children:s(I.nav.reservieren)})]}),c.jsx("button",{className:"md:hidden inline-flex min-h-11 min-w-11 items-center justify-center p-2 text-foreground",onClick:()=>t(!e),"aria-label":"Menü öffnen",children:e?c.jsx(bx,{className:"w-6 h-6"}):c.jsx(qT,{className:"w-6 h-6"})})]}),e&&c.jsx("div",{className:"md:hidden py-4 border-t border-border animate-fade-in",children:c.jsxs("nav",{className:"flex flex-col gap-4",children:[o.map(u=>c.jsx("button",{onClick:()=>a(u),className:"w-full min-h-11 text-left transition-colors font-medium py-2 text-base text-muted-foreground hover:text-primary",children:u.label},u.label)),c.jsx("div",{className:"flex items-center gap-1 border border-border rounded-md p-1 w-fit",children:l.map(u=>c.jsx("button",{onClick:()=>r(u),"aria-label":`Sprache auf ${u.toUpperCase()} umstellen`,"aria-pressed":n===u,className:`px-3 py-1.5 text-sm font-semibold rounded transition-colors ${n===u?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:c.jsx($v,{lang:u})},u))}),c.jsx(se,{onClick:()=>a({href:"#reservierung"}),className:"w-full min-h-12 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold mt-2",children:s(I.nav.reservieren)})]})})]})})},N2=()=>{const{t:e}=We(),t=()=>{var n;(n=document.getElementById("reservierung"))==null||n.scrollIntoView({behavior:"smooth",block:"start"})};return c.jsxs("section",{className:"relative min-h-[70vh] md:min-
258h-[80vh] flex items-center grain-overlay overflow-hidden py-10 sm:py-12 md:py-20",children:[c.jsx("div",{className:"absolute inset-0 bg-contain bg-top bg-no-repeat md:bg-cover md:bg-center",style:{backgroundImage:"url('https://images.unsplash.com/photo-1544025162-d76694265947?w=1920&q=80')"},children:c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/95 to-background/70 md:to-background/70"})}),c.jsx("div",{className:"container mx-auto w-full px-4 sm:px-6 relative z-10",children:c.jsxs("div",{className:"max-w-2xl",children:[c.jsx("span",{className:"inline-block text-primary font-semibold text-sm md:text-base uppercase tracking-widest mb-3 md:mb-4",children:e(I.hero.welcome)}),c.jsxs("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl lg:text-8xl text-foreground leading-none mb-3 md:mb-4 break-words",children:["LEON'S",c.jsx("span",{className:"sr-only",children:" — Nordic Grill- & BBQ-Haus Rostock am Hopfenmarkt"})]}),c.jsx("p",{className:"font-display text-xl md:text-2xl lg:text-3xl text-primary tracking-wide mb-4 md:mb-6",children:e(I.hero.subtitle)}),c.jsx("p",{className:"text-muted-foreground text-base md:text-xl mb-6 md:mb-8 max-w-lg",children:e(I.hero.description)}),c.jsx("div",{className:"mb-6 md:mb-8",children:c.jsxs("div",{className:"flex w-full sm:w-fit items-center gap-3 sm:gap-4 bg-primary/10 backdrop-blur-sm rounded-lg p-4 md:p-5 border border-primary/30 hover:border-primary/50 transition-colors",children:[c.jsx("div",{className:"w-10 h-10 md:w-12 md:h-12 rounded-full bg-primary/20 flex items-center justify-center flex-shrink-0",children:c.jsx(Ga,{className:"w-5 h-5 md:w-6 md:h-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-primary font-medium uppercase tracking-wide",children:e(I.hero.openingHours)}),c.jsx("p",{className:"text-base md:text-lg font-semibold text-foreground",children:e(I.hero.daily)})]})]})}),c.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-3 sm:gap-4",children:[c.jsx(se,{type:"button",onClick:t,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold text-base md:text-lg px-6 md:px-8 py-5 md:py-6 
258w-full sm:w-auto",children:e(I.hero.cta)}),c.jsx(se,{onClick:()=>window.open("https://www.yovite.com/Restaurant-Gutschein-R-59065063.html?REF=REST","_blank"),size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold text-base md:text-lg px-6 md:px-8 py-5 md:py-6 w-full sm:w-auto",children:e(I.hero.gutscheinCta)})]})]})})]})},Tk="/assets/weihnachten-feiern-BgfjzPcz.jpg",C2=()=>{const{t:e}=We(),t=I.weihnachten;return c.jsxs("section",{"aria-labelledby":"weihnachten-banner-title",className:"relative bg-foreground overflow-hidden",children:[c.jsxs("div",{"aria-hidden":"true",className:"absolute inset-0 pointer-events-none",children:[c.jsx("div",{className:"absolute -top-16 -left-16 w-72 h-72 rounded-full bg-gold/15 blur-3xl"}),c.jsx("div",{className:"absolute -bottom-24 right-0 w-80 h-80 rounded-full bg-primary/20 blur-3xl"}),c.jsx("div",{className:"absolute top-1/3 left-2/3 w-40 h-40 rounded-full bg-gold/10 blur-2xl"})]}),c.jsx("div",{className:"container mx-auto px-4 relative py-12 md:py-20",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16 items-center",children:[c.jsx(_e,{to:"/weihnachten",className:"relative order-1 lg:order-2 block rounded-2xl overflow-hidden shadow-2xl ring-2 ring-gold/40 hover:ring-gold/70 transition-all duration-300 group",tabIndex:-1,"aria-hidden":"true",children:c.jsx("img",{src:Tk,alt:"Weihnachtlich gedeckter Tisch mit Grillgerichten bei LEON'S",width:1280,height:864,className:"w-full h-auto object-cover block transition-transform duration-500 group-hover:scale-[1.03]",loading:"lazy"})}),c.jsxs("div",{className:"order-2 lg:order-1 text-center lg:text-left",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 bg-gold text-gold-foreground rounded-full px-4 py-1.5 text-sm font-semibold uppercase tracking-widest mb-5",children:[c.jsx(vx,{className:"w-4 h-4","aria-hidden":"true"}),e(t.bannerBadge)]}),c.jsx("h2",{id:"weihnachten-banner-title",className:"font-display text-4xl md:text-6xl text-primary-foreground leading-none mb-4 break-words",children:e(t.bannerTitle)}),c.jsx("p",{className:"text-primary-foreground/80 text-base md:text-lg leading-relaxed mb-8 max-w-xl mx-auto lg:mx-0",children:e(t.bannerText)}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center lg:justify-start",children:[c.jsx(se,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold w-full sm:w-auto min-h-11",children:c.jsxs(_e,{to:"/weihnachten",children:[e(t.ctaDiscover),c.jsx(ba,{className:"ml-2 w-4 h-4","aria-hidden":"true"})]})}),c.jsx(se,{asChild:!0,size:"lg",variant:"outline",className:"border-primary-foreground/40 text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground font-semibold w-full sm:w-auto min-h-11",children:c.jsx(_e,{to:"/reservierung",children:e(t.ctaReserve)})})]})]})]})})]})},P2=()=>{const{t:e}=We();return c.jsxs("section",{id:"ueber-uns","aria-labelledby":"ueber-uns-title",className:"py-20 bg-background",itemScope:!0,itemType:"https://schema.org/Restaurant",children:[c.jsx("meta",{itemProp:"name",content:"LEON'S Nordic Grill- & BBQ-Haus"}),c.jsx("meta",{itemProp:"address",content:"Hopfenmarkt, Rostock, Deutschland"}),c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("article",{className:"max-w-4xl mx-auto text-center",children:[c.jsxs("header",{children:[c.jsx("p",{className:"inline-block text-primary font-semibold text-sm md:text-base uppercase tracking-widest mb-4",children:e(I.ueberUns.subtitle)}),c.jsx("h2",{id:"ueber-uns-title",className:"font-display text-4xl md:text-5xl lg:text-6xl text-foreground leading-none mb-4",itemProp:"slogan",children:e(I.ueberUns.title)}),c.jsx("p",{className:"font-display text-xl md:text-2xl text-foreground/80 tracking-wide mb-6",children:e(I.ueberUns.tagline)})]}),c.jsx("p",{className:"text-muted-foreground text-lg md:text-xl leading-relaxed mb-4",itemProp:"description",children:e(I.ueberUns.description)}),c.jsx("p",{className:"font-display text-2xl md:text-3xl text-primary tracking-wide mb-12",children:e(I.ueberUns.family)}),c.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-12",children:[c.jsxs("section",{"aria-labelledby":"ueber-uns-feature-1",className:"bg-primary/10 backdrop-blur-sm rounded-lg p-6 border border-primary/30 hover:border-primary/50 transition-colors",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center mx-auto mb-4",children:c.jsx(VT,{className:"w-6 h-6 text-primary","aria-hidden":"true"})}),c.jsx("h3",{id:"ueber-uns-feature-1",className:"font-display text-xl text-foreground mb-2",children:e(I.ueberUns.feature1Title)}),c.jsx("p",{className:"text-muted-foreground text-sm",children:e(I.ueberUns.feature1Text)})]}),c.jsxs("section",{"aria-labelledby":"ueber-uns-feature-2",className:"bg-primary/10 backdrop-blur-sm rounded-lg p-6 border border-primary/30 hover:border-primary/50 transition-colors",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center mx-auto mb-4",children:c.jsx(gx,{className:"w-6 h-6 text-primary","aria-hidden":"true"})}),c.jsx("h3",{id:"ueber-uns-feature-2",className:"font-display text-xl text-foreground mb-2",children:e(I.ueberUns.feature2Title)}),c.jsx("p",{className:"text-muted-foreground text-sm",children:e(I.ueberUns.feature2Text)})]}),c.jsxs("section",{"aria-labelledby":"ueber-uns-feature-3",className:"bg-primary/10 backdrop-blur-sm rounded-lg p-6 border border-primary/30 hover:border-primary/50 transition-colors",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center mx-auto mb-4",children:c.jsx(Ic,{className:"w-6 h-6 text-primary","aria-hidden":"true"})}),c.jsx("h3",{id:"ueber-uns-feature-3",className:"font-display text-xl text-foreground mb-2",children:e(I.ueberUns.feature3Title)}),c.jsx("p",{className:"text-muted-foreground text-sm",children:e(I.ueberUns.feature3Text)})]})]})]})})]})},Xi=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ve("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
258Xi.displayName="Card";const Nk=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ve("flex flex-col space-y-1.5 p-6",e),...t}));Nk.displayName="CardHeader";const Ck=w.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:ve("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ck.displayName="CardTitle";const R2=w.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:ve("text-sm text-muted-foreground",e),...t}));R2.displayName="CardDescription";const eo=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ve("p-6 pt-0",e),...t}));eo.displayName="CardContent";const O2=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ve("flex items-center p-6 pt-0",e),...t}));O2.displayName="CardFooter";const A2=ku("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function bf({className:e,variant:t,...n}){return c.jsx("div",{className:ve(A2({variant:t}),e),...n})}const D2="/assets/fruehstuecksbuffet-CuMSOquZ.jpg",Pk="/assets/koch-stellenanzeige-D7GopHH_.png",Id=[{titleKey:"spareRibsSatt",price:"25,90 €",image:"https://images.unsplash.com/photo-1529193591184-b1d58069ecdd?w=400&q=80",activeDays:[2,3],activeMonths:[0,1,2,3,4,5,6,7,8,9,10]},{titleKey:"fruehstueck",price:"18,90 €",image:D2,activeDays:[0,1,2,3,4,5,6]},{titleKey:"businessLunch",price:"ab 10,90 €",image:"https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=400&q=80",activeDays:[1,2,3,4,5],link:"/business-lunch"},{titleKey:"fancyHour",price:"-2 €",image:"https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?w=400&q=80",activeDays:[0,1,2,3,4]},{titleKey:"dryAged",price:"",image:"https://images.unsplash.com/photo-1558030006-450675393462?w=400&q=80",activeDays:[0,1,2,3,4,5,6],link:"/dry-aged"},{titleKey:"kochGesucht",price:"",image:Pk,activeDays:[0,1,2,3,4,5,6],link:"/karriere"},{titleKey:"weihnachten",price:"",image:Tk,activeDays:[0,1,2,3,4,5,6],activeMonths:[9,10,11],specificDates:[],link:"/weihnachten"}],M2=e=>{const t=new Date;if(e.specificDates){const o=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;return e.specificDates.includes(o)}const n=t.getDay(),r=t.getMonth(),s=e.activeDays.includes(n),i=!e.activeMonths||e.activeMonths.includes(r);return s&&i},I2=()=>{const e=new Date,n=Math.floor((e.getTime()-new Date(e.getFullYear(),0,0).getTime())/(1e3*60*60*24))%Id.length;return[...Id.slice(n),...Id.slice(0,n)]},L2=()=>{const{t:e}=We(),t=I2();return c.jsx("section",{id:"angebote",className:"py-10 md:py-24 bg-secondary/30",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("span",{className:"text-primary font-semibold text-sm uppercase tracking-widest",children:e(I.angebote.subtitle)}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-foreground mt-2",children:e(I.angebote.title)}),c.jsx("p",{className:"text-muted-foreground mt-4 max-w-2xl mx-auto",children:e(I.angebote.description)})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map((n,r)=>{const s=M2(n),i=I.angebote.offers[n.titleKey];return c.jsxs(Xi,{className:`bg-card border-border overflow-hidden transition-all group ${s?"border-primary ring-2 ring-primary/20 shadow-lg shadow-primary/10":"hover:border-primary/50"}`,children:[c.jsxs("div",{className:"relative w-full aspect-[4/3] sm:aspect-video overflow-hidden bg-muted",children:[c.jsx("img",{src:n.image,alt:e(i.title),className:"w-full h-full object-contain group-hover:scale-[1.02] transition-transform duration-300"}),c.jsx(bf,{className:"absolute top-4 right-4 bg-primary text-primary-foreground",children:e(i.badge)}),s&&c.jsxs(bf,{variant:"secondary",className:"absolute top-4 left-4 bg-primary/90 text-primary-foreground flex items-center gap-1",children:[c.jsx(mx,{className:"w-3 h-3"}),e(I.angebote.today)]})]}),c.jsx(Nk,{children:c.jsx(Ck,{className:"font-body text-xl font-medium text-foreground",children:e(i.title)})}),c.jsxs(eo,{children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:e(i.description)}),c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(Ga,{className:"w-4 h-4"}),c.jsx("span",{children:e(i.timing)})]}),n.link&&c.jsx(se,{asChild:!0,size:"sm",className:"mt-4 w-full",children:c.jsxs(_e,{to:n.link,children:[n.titleKey==="dryAged"?"Karte ansehen":n.titleKey==="kochGesucht"?"Jetzt bewerben":n.titleKey==="weihnachten"?"Mehr erfahren":"Wochenkarte ansehen",c.jsx(ba,{className:"w-4 h-4 ml-1"})]})})]})]},r)})})]})})},$2="/assets/Speisekarte-Leons.pdf",z2="https://burwitz-digital-menu.lovable.app/leons",F2=[{key:"rumpsteakSchwein",price:"21,90 €"},{key:"kotelettSchwein",price:"21,90 €"},{key:"filetMignonSchwein",price:"19,90 €"},{key:"ribEyeSchwein",price:"22,90 €"},{key:"tBoneSchwein",price:"26,90 €"}],B2=[{key:"honeyStyle",price:"23,90 € / 28,90 €"},{key:"smokyStyle",price:"23,90 € / 28,90 €"},{key:"spicyStyle",price:"23,90 € / 28,90 €"},{key:"trilogie",price:"33,90 €"}],U2=[{key:"haehnchen",price:"15,90 €"},{key:"huftsteak",price:"21,90 €"},{key:"rumpsteakRind",price:"27,90 €"},{key:"filetMignonRind",price:"31,90 €"},{key:"ribEyeRind",price:"34,90 €"},{key:"bbqPlatte",price:"37,90 € / 69,90 €"}],zv=(e,t=0)=>{const n=new Date,s=(Math.floor((n.getTime()-new Date(n.getFullYear(),0,0).getTime())/(1e3*60*60*24))+t)%e.length,i=[];for(let o=0;o<3;o++)i.push(e[(s+o)%e.length]);return i},W2=()=>{const{t:e}=We(),t=I.speisekarte,n=[{title:e(t.categories.strohschwein),items:zv(F2)},{title:e(t.categories.spareRibs),description:e(t.spareRibsDesc),items:B2},{title:e(t.categories.leonsCuts),description:e(t.leonsCutsDesc),items:zv(U2,2)}];return c.jsx("section",{id:"speisekarte",className:"py-10 md:py-24",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("span",{className:"text-primary font-semibold text-sm uppercase tracking-widest",children:e(t.subtitle)}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-foreground mt-2",children:e(t.title)}),c.jsx("p",{className:"text-muted-foreground mt-4 max-w-2xl mx-auto",children:e(t.description)})]}),c.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 mb-12",children:n.map((r,s)=>c.jsx(Xi,{className:"bg-card border-border",children:c.jsxs(eo,{className:"p-4 sm:p-6",children:[c.jsx("h3",{className:"font-display text-3xl text-primary mb-6 border-b border-border pb-4",children:r.title}),c.jsx("div",{className:"space-y-6",children:r.items.map((i,o)=>{const a=t.items[i.key];return c.jsxs("div",{children:[c.jsx("h4",{className:"font-body font-medium text-lg text-foreground tracking-wide",children:e(a.name)}),c.jsx("p",{className:"text-base text-muted-foreground",children:e(a.description)})]},o)})})]})},s))}),c.jsx(Xi,{className:"bg-foreground border-primary/30 mb-12 overflow-hidden",children:c.jsx(eo,{className:"p-6 md:p-8",children:c.jsxs("div",{className:"flex flex-col md:flex-row items-stretch md:items-center justify-between gap-6",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[c.jsxs(bf,{className:"bg-primary text-primary-foreground text-sm px-3 py-1 flex items-center gap-1.5",children:[c.jsx(mx,{className:"w-3.5 h-3.5"}),"NEU"]}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-display text-3xl md:text-4xl text-primary-foreground",children:"DRY AGED STEAKS"}
258),c.jsx("p",{className:"text-primary-foreground/70 text-sm md:text-base mt-1",children:"Premium-Steaks, wochenlang gereift für intensiven Geschmack"})]})]}),c.jsx("div",{className:"w-full md:w-auto",children:c.jsx(se,{asChild:!0,size:"lg",className:"w-full md:w-auto bg-primary text-primary-foreground hover:bg-primary/90",children:c.jsxs(_e,{to:"/dry-aged",children:["Karte ansehen",c.jsx(ba,{className:"w-4 h-4 ml-2"})]})})})]})})}),c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[c.jsx(se,{id:"menuPdfBtn",asChild:!0,variant:"outline",size:"lg",className:"w-full sm:w-auto border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:c.jsxs("a",{href:$2,target:"_blank",rel:"noopener noreferrer",children:[c.jsx(UT,{className:"w-5 h-5 mr-2"}),e(t.pdfButton)]})}),c.jsx(se,{id:"onlineMenuBtn",asChild:!0,variant:"outline",size:"lg",className:"w-full sm:w-auto border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:c.jsxs("a",{href:z2,target:"_blank",rel:"noopener noreferrer",children:[c.jsx(Bm,{className:"w-5 h-5 mr-2"}),e(t.onlineMenuButton)]})})]})]})})},Ro=[{name:"Markus L.",rating:5,text:"Die gesamte Einrichtung strahlt eine liebevolle Atmosphäre aus. Das Personal ist außergewöhnlich nett und freundlich. Jedes Gericht ist ein Fest für den Gaumen und eine Augenweide – und die Preise sind mehr als akzeptabel!",source:"Google",date:"Oktober 2024"},{name:"Sven P.",rating:5,text:"Mehr durch Zufall entdeckt da das Leon's sich im Hinterhof befindet. Super Personal, leckeres Essen und tolles Ambiente. Essen: 5/5 | Service: 5/5 | Ambiente: 5/5",source:"Google",date:"Januar 2025"},{name:"Thomas B.",rating:5,text:"Prima Location in zentraler Lage. Die Rippchen sind ausgezeichnet! Gute Leistung von Küche und sehr freundlichem Service. Bei meinem Besuch mit 12 Personen bekamen alle Gäste ihre Speisen fast gleichzeitig und in sehr guter Qualität.",source:"Google",date:"Oktober 2024"},{name:"ohne ix",rating:4,text:"Im Innenhof Hopfengarten liegt dieses Restaurant mit einem sehr gelungenen Aussenbereich. Strandkoerbe und ueberschirmte Sitzecken laden zum Verweilen ein. Der Service ist sehr nett und bemueht - durchaus eine Empfehlung wert!",source:"Google",date:"August 2024"},{name:"Antje P.",rating:5,text:"Ein tolles Restaurant etwas versteckt mit super leckerem Essen und einem sehr netten zuvorkommenden Service. Essen: 5/5 | Service: 5/5 | Ambiente: 5/5",source:"Google",date:"Januar 2025"}],H2=({review:e,sourceLabel:t})=>c.jsx(Xi,{className:"bg-card border-border flex-shrink-0 w-[calc(100vw-2rem)] max-w-sm md:w-[400px]",children:c.jsxs(eo,{className:"p-5 sm:p-6",children:[c.jsx(ZT,{className:"w-10 h-10 text-primary/30 mb-4"}),c.jsxs("p",{className:"text-foreground mb-6 italic text-base leading-relaxed",children:['"',e.text,'"']}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("p",{className:"font-semibold text-foreground",children:e.name}),c.jsx("p",{className:"text-sm text-muted-foreground",children:e.date})]}),c.jsx("div",{className:"flex shrink-0 items-center gap-1",children:[...Array(e.rating)].map((n,r)=>c.jsx(yx,{className:"w-4 h-4 fill-primary text-primary"},r))})]}),c.jsxs("p",{className:"text-xs text-muted-foreground mt-4",children:[t,": ",e.source]})]})}),V2=()=>{const{t:e}=We(),t=[...Ro,...Ro],n={"@context":"https://schema.org","@type":"Restaurant",name:"LEON'S Nordic Grill- & BBQ-Haus",image:"https://images.unsplash.com/photo-1544025162-d76694265947?w=1200",servesCuisine:["Steakhouse","BBQ","Nordic"],priceRange:"€€",telephone:"+49-381-4583443",openingHours:"Mo-Su 07:00-23:00",address:{"@type":"PostalAddress",streetAddress:"Hopfenmarkt",addressLocality:"Rostock",postalCode:"18055",addressCountry:"DE"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.3",bestRating:"5",worstRating:"1",ratingCount:Ro.length,reviewCount:Ro.length},review:Ro.map(r=>({"@type":"Review",author:{"@type":"Person",name:r.name},datePublished:r.date,reviewBody:r.text,publisher:{"@type":"Organization",name:r.source},reviewRating:{"@type":"Rating",ratingValue:r.rating.toString(),bestRating:"5",worstRating:"1"}}))};return c.jsxs("section",{id:"bewertungen",className:"py-10 md:py-24 bg-secondary/30 overflow-hidden",children:[c.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("span",{className:"text-primary font-semibold text-sm uppercase tracking-widest",children:e(I.bewertungen.subtitle)}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-foreground mt-2",children:e(I.bewertungen.title)}),c.jsxs("div",{className:"flex items-center justify-center gap-2 mt-4",children:[[...Array(5)].map((r,s)=>c.jsx(yx,{className:"w-6 h-6 fill-primary text-primary"},s)),c.jsx("span",{className:"ml-2 text-muted-foreground",children:e(I.bewertungen.googleRating)})]})]})}),c.jsxs("div",{className:"relative w-full",style:{overflow:"hidden"},children:[c.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-20 md:w-40 bg-gradient-to-r from-secondary/30 to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-20 md:w-40 bg-gradient-to-l from-secondary/30 to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"flex gap-6 animate-marquee hover:pause-animation w-max",children:t.map((r,s)=>c.jsx(H2,{review:r,sourceLabel:e(I.bewertungen.source)},s))})]})]})},Fv="https://mytools.aleno.me/reservations/v2.0/reservations.html?k=eyJrIjoid2l2dTVrM2lsNm15cnBiOWlwdzZ4bmViajhycnVkaWRpZ280bGZwODBsbzlhNGlweTEiLCJyIjoiYWJGc011Z1Nmbms2YmV3QVIiLCJzIjoiaHR0cHM6Ly9teXRvb2xzLmFsZW5vLm1lLyJ9",Rk=()=>{const{t:e}=We(),t=I.reservierung,n=[{icon:MT,step:"1",title:e(t.step1Title),description:e(t.step1Desc)},{icon:Ic,step:"2",title:e(t.step2Title),description:e(t.step2Desc)},{icon:BT,step:"3",title:e(t.step3Title),description:e(t.step3Desc)}];return c.jsx("section",{id:"reservierung",className:"py-10 md:py-24",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("span",{className:"text-primary font-semibold text-sm uppercase tracking-widest",children:e(t.subtitle)}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-foreground mt-2",children:e(t.title)}),c.jsx("p",{className:"text-muted-foreground mt-4 max-w-2xl mx-auto",children:e(t.description)})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 mb-12 max-w-3xl mx-auto",children:n.map((r,s)=>c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 border-2 border-primary mb-4",children:c.jsx(r.icon,{className:"w-8 h-8 text-primary"})}),c.jsx("p",{className:"font-display text-xl text-foreground",children:r.title}),c.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:r.description})]},s))}),c.jsx(Xi,{id:"reservierung-buchen",className:"w-full bg-card border-border max-w-4xl mx-auto 
258scroll-mt-24 overflow-hidden",children:c.jsxs(eo,{className:"p-1 sm:p-2 md:p-4",children:[c.jsx("iframe",{src:Fv,title:"Reservierung – LEON'S Rostock",className:"w-full min-h-[720px] sm:min-h-[780px] rounded-md bg-white border-0",loading:"lazy",allow:"payment"}),c.jsx("div",{className:"mt-6 flex flex-col sm:flex-row items-center justify-center gap-3 text-center",children:c.jsx(se,{asChild:!0,variant:"ghost",size:"sm",className:"text-muted-foreground",children:c.jsxs("a",{href:Fv,target:"_blank",rel:"noopener noreferrer",children:[c.jsx(Bm,{className:"w-4 h-4 mr-2"}),"In neuem Fenster öffnen"]})})}),c.jsxs("div",{className:"mt-6 pt-6 border-t border-border text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:e(t.phoneFallback)}),c.jsx(se,{asChild:!0,variant:"outline",size:"lg",className:"border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:c.jsxs("a",{href:"tel:+493814583443",children:[c.jsx(Yo,{className:"w-5 h-5 mr-2"}),"0381 4583443"]})})]})]})})]})})},K2="/assets/galerie-steak-DILn-s_r.jpg",G2="/assets/galerie-terrasse-abends-34_Prh__.jpg",q2="/assets/galerie-terrasse-tag-zSeYEbhW.jpg",Z2="/assets/galerie-fruehstueck-BBu4xCGb.jpg",J2="/assets/galerie-spareribs-CqiAkb1X.jpg",Y2="/assets/galerie-burger-CWXAjCVh.jpg",Q2=[{src:Y2,alt:"Burger im Leon's",category:"gerichte",real:!0},{src:K2,alt:"Steak-Gericht im Leon's",category:"gerichte",real:!0},{src:G2,alt:"Terrasse am Abend im Leon's",category:"ambiente",real:!0},{src:q2,alt:"Terrasse im Leon's",category:"ambiente",real:!0},{src:Z2,alt:"Frühstück im Leon's",category:"gerichte",real:!0},{src:J2,alt:"Spare Ribs im Leon's",category:"gerichte",real:!0}],X2=()=>{const{t:e}=We(),t=I.bilder;return c.jsx("section",{id:"bilder",className:"py-10 md:py-24 bg-secondary/30",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("span",{className:"text-primary font-semibold text-sm uppercase tracking-widest",children:e(t.subtitle)}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-foreground mt-2",children:e(t.title)}),c.jsx("p",{className:"text-muted-foreground mt-4 max-w-2xl mx-auto",children:e(t.description)})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:Q2.map((n,r)=>c.jsxs("div",{className:"relative w-full overflow-hidden rounded-lg bg-card",children:[c.jsx("img",{src:n.src,alt:n.alt,className:"w-full h-auto object-contain",loading:"lazy"}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-background/60 to-transparent",children:c.jsx("span",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wider",children:e(t.categories[n.category])})})]},r))})]})})},eO=()=>{const{t:e,language:t}=We(),n=I.kontakt,r=new Date().getFullYear(),[s,i]=w.useState(!1),a={de:{title:"Google Maps lädt erst nach Ihrer Zustimmung",desc:"Beim Laden der Karte werden Daten (u. a. Ihre IP-Adresse) an Google in den USA übertragen. Mehr dazu in unserer Datenschutzerklärung.",btn:"Karte laden"},en:{title:"Google Maps loads only with your consent",desc:"Loading the map transfers data (incl. your IP address) to Google in the USA. See our privacy policy for details.",btn:"Load map"},sv:{title:"Google Maps laddas först efter ditt samtycke",desc:"När kartan laddas överförs data (bl.a. din IP-adress) till Google i USA. Se vÃ¥r integritetspolicy.",btn:"Ladda karta"},da:{title:"Google Maps indlæses først efter dit samtykke",desc:"NÃ¥r kortet indlæses, overføres data (bl.a. din IP-adresse) til Google i USA. Se vores privatlivspolitik.",btn:"Indlæs kort"}}[t];return c.jsx("section",{id:"kontakt",className:"py-10 md:py-24",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("span",{className:"text-primary font-semibold text-sm uppercase tracking-widest",children:e(n.subtitle)}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-foreground mt-2",children:e(n.title)})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[c.jsxs("div",{className:"space-y-8 min-w-0",children:[c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(gx,{className:"w-6 h-6 text-primary"})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h3",{className:"font-normal text-foreground mb-1",children:e(n.adresse)}),c.jsxs("p",{className:"text-muted-foreground",children:["LEON'S Nordic Grill- & BBQ-Haus",c.jsx("br",{}),"Kröpeliner Str. 19",c.jsx("br",{}),"18055 Rostock",c.jsx("br",{}),c.jsx("span",{className:"text-primary text-sm",children:e(n.aufHopfenmarkt)})]})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Yo,{className:"w-6 h-6 text-primary"})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h3",{className:"font-normal text-foreground mb-1",children:e(n.telefon)}),c.jsx("a",{href:"tel:+493814583443",className:"text-muted-foreground hover:text-primary transition-colors",children:"0381 4583443"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(px,{className:"w-6 h-6 text-primary"})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h3",{className:"font-normal text-foreground mb-1",children:e(n.email)}),c.jsx("a",{href:"mailto:[email protected]",className:"text-muted-foreground hover:text-primary transition-colors",children:"[email protected]"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Ga,{className:"w-6 h-6 text-primary"})}
258),c.jsxs("div",{className:"min-w-0 w-full overflow-x-auto",children:[c.jsx("h3",{className:"font-normal text-foreground mb-2",children:e(n.oeffnungszeiten)}),c.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:e(n.taeglich)}),c.jsx("table",{className:"w-full text-muted-foreground text-base sm:text-sm",children:c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{className:"pr-4 py-1",children:e(n.fruehstueck)}),c.jsx("td",{children:e(n.fruehstueckZeit)})]}),c.jsxs("tr",{children:[c.jsx("td",{className:"pr-4 py-1",children:e(n.businessLunch)}),c.jsx("td",{children:e(n.businessLunchZeit)})]}),c.jsxs("tr",{children:[c.jsx("td",{className:"pr-4 py-1",children:e(n.warmeKueche)}),c.jsx("td",{children:e(n.warmeKuecheZeit)})]})]})})]})]}),c.jsxs("div",{className:"flex items-center gap-4 pt-4",children:[c.jsx("a",{href:"#",className:"w-12 h-12 rounded-full bg-card border border-border flex items-center justify-center hover:bg-primary hover:border-primary transition-colors group","aria-label":"Facebook",children:c.jsx(WT,{className:"w-5 h-5 text-muted-foreground group-hover:text-primary-foreground"})}),c.jsx("a",{href:"#",className:"w-12 h-12 rounded-full bg-card border border-border flex items-center justify-center hover:bg-primary hover:border-primary transition-colors group","aria-label":"Instagram",children:c.jsx(KT,{className:"w-5 h-5 text-muted-foreground group-hover:text-primary-foreground"})})]})]}),c.jsx("div",{className:"w-full rounded-lg overflow-hidden border border-border h-[340px] sm:h-[400px] lg:h-auto min-h-[340px] sm:min-h-[400px] relative bg-card",children:s?c.jsx("iframe",{src:"https://maps.google.com/maps?q=Hopfenmarkt,+Kr%C3%B6peliner+Str.+19,+18055+Rostock,+Germany&t=&z=17&ie=UTF8&iwloc=&output=embed",width:"100%",height:"100%",style:{border:0,minHeight:"400px"},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"LEON'S Nordic Grill- & BBQ-Haus am Hopfenmarkt, Rostock"}):c.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-6 gap-4",children:[c.jsx(GT,{className:"w-12 h-12 text-primary","aria-hidden":"true"}),c.jsx("h3",{className:"font-display text-xl text-foreground",children:a.title}),c.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:[a.desc," ",c.jsx(_e,{to:"/datenschutz",className:"text-primary underline",children:e(n.datenschutz)})]}),c.jsx("button",{type:"button",onClick:()=>i(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-5 py-2 rounded-md transition-colors",children:a.btn})]})})]}),c.jsx("footer",{className:"mt-16 pt-8 border-t border-border",children:c.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[c.jsxs("p",{className:"text-muted-foreground text-sm",children:["© ",r," LEON'S Restaurant. ",e(n.footer)]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-3",children:[c.jsx(_e,{to:"/impressum",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:e(n.impressum)}),c.jsx(_e,{to:"/datenschutz",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:e(n.datenschutz)}),c.jsx(_e,{to:"/agb",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"AGB"})]})]})})]})})},tO="https://steak-reservation-hub.lovable.app",Fn=({title:e,description:t,path:n,jsonLd:r})=>{const s=`${tO}${n}`;return c.jsxs(Dj,{children:[c.jsx("title",{children:e}),c.jsx("meta",{name:"description",content:t}),c.jsx("link",{rel:"canonical",href:s}),c.jsx("meta",{property:"og:title",content:e}),c.jsx("meta",{property:"og:description",content:t}),c.jsx("meta",{property:"og:url",content:s}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{name:"twitter:title",content:e}),c.jsx("meta",{name:"twitter:description",content:t}),r&&c.jsx("script",{type:"application/ld+json",children:JSON.stringify(r)})]})},nO=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"LEON'S – Familiengeführtes Steakhouse & BBQ in Rostock | Hopfenmarkt",description:"LEON'S Rostock: familiengeführtes Nordic Grill- & BBQ-Haus am Hopfenmarkt. Steaks aus dem 800°C Southbend-Ofen. Jetzt Tisch reservieren!",path:"/"}),c.jsx(Ou,{}),c.jsx(mo,{}),c.jsxs("main",{children:[c.jsx(N2,{}),c.jsx(C2,{}),c.jsx(P2,{}),c.jsx(L2,{}),c.jsx(W2,{}),c.jsx(V2,{}),c.jsx(Rk,{}),c.jsx(X2,{}),c.jsx(eO,{})]})]}),rO=()=>{const{t:e}=We();return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Impressum | LEON'S Nordic Grill- & BBQ-Haus Rostock",description:"Impressum und Anbieterkennzeichnung gemäß § 5 DDG für LEON'S Nordic Grill- & BBQ-Haus, Hopfenmarkt Rostock.",path:"/impressum"}),c.jsxs("div",{className:"container mx-auto px-4 py-8 sm:py-12 max-w-3xl",children:[c.jsx(se,{asChild:!0,variant:"ghost",className:"mb-8",children:c.jsxs(_e,{to:"/",children:[c.jsx($s,{className:"w-4 h-4 mr-2"}),e(I.pages.backToHome)]})}),c.jsx("h1",{className:"font-display text-3xl sm:text-4xl md:text-5xl text-foreground mb-8",children:"IMPRESSUM"}),c.jsxs("div",{className:"prose prose-invert max-w-none space-y-8 text-base leading-relaxed text-muted-foreground",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Angaben gemäß § 5 Digitale-Dienste-Gesetz (DDG)"}),c.jsxs("p",{children:[c.jsx("strong",{className:"text-foreground",children:"GBSE GmbH"}),c.jsx("br",{}),"Kröpeliner Straße 20a",c.jsx("br",{}),"18055 Rostock"]}),c.jsxs("p",{className:"mt-4",children:[c.jsx("strong",{className:"text-foreground",children:"Vertreten durch:"}),c.jsx("br",{}),"Geschäftsführer: Mathias Düwiger"]}),c.jsxs("p",{className:"mt-4",children:[c.jsx("strong",{className:"text-foreground",children:"Kontakt"}),c.jsx("br",{}),"Telefon: 0381 4583443",c.jsx("br",{}),"E-Mail: [email protected]"]}),c.jsxs("p",{className:"mt-4",children:[c.jsx("strong",{className:"text-foreground",children:"Sitz der Gesellschaft:"}),c.jsx("br",{}),"Kröpeliner Straße 20a, 18055 Rostock"]}),c.jsxs("p",{className:"mt-4",children:[c.jsx("strong",{className:"text-foreground",children:"Registereintrag:"}),c.jsx("br",{}),"Handelsregister: HRB 8025",c.jsx("br",{}),"Registergericht: Amtsgericht Rostock"]}),c.jsxs("p",{className:"mt-4",children:[c.jsx("strong",{className:"text-foreground",children:"Umsatzsteuer-Identifikationsnummer gemäß § 27a UStG:"}),c.jsx("br",{}),"DE202349743"]}),c.jsxs("p",{className:"mt-4",children:[c.jsx("strong",{className:"text-foreground",children:"Steuernummer:"}),c.jsx("br",{}),"079/109/01146"]}
258)]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Hinweise zu KI-generierten Inhalten und Beispielabbildungen"}),c.jsxs("p",{children:["Diese Website wurde mit Unterstützung von Künstlicher Intelligenz (KI) erstellt.",c.jsx("br",{}),"Die auf dieser Website verwendeten Bilder wurden ganz oder teilweise KI-generiert bzw. KI-gestützt erstellt."]}),c.jsxs("p",{className:"mt-4",children:["Die dargestellten Speisen und Getränke dienen ausschließlich der beispielhaften Illustration.",c.jsx("br",{}),"Abbildungen zeigen Beispielgerichte/-getränke und werden in dieser Form nicht serviert."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Haftung für Inhalte"}),c.jsxs("p",{children:["Wir sind als Diensteanbieter für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich.",c.jsx("br",{}),"Wir übernehmen jedoch keine Gewähr für die Aktualität, Richtigkeit und Vollständigkeit der bereitgestellten Inhalte.",c.jsx("br",{}),"Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Inhalte umgehend entfernen."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Haftung für Links"}),c.jsxs("p",{children:["Diese Website enthält ggf. Links zu externen Websites Dritter, auf deren Inhalte wir keinen Einfluss haben.",c.jsx("br",{}),"Für die Inhalte der verlinkten Seiten ist stets der jeweilige Anbieter oder Betreiber der Seiten verantwortlich.",c.jsx("br",{}),"Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Links umgehend entfernen."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Urheberrecht"}),c.jsxs("p",{children:["Die durch den Seitenbetreiber erstellten Inhalte und Werke auf dieser Website unterliegen dem deutschen Urheberrecht.",c.jsx("br",{}),"Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung außerhalb der Grenzen des Urheberrechts bedürfen der schriftlichen Zustimmung des jeweiligen Rechteinhabers."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Datenschutz"}),c.jsxs("p",{children:["Informationen zur Verarbeitung personenbezogener Daten finden Sie in der"," ",c.jsx(_e,{to:"/datenschutz",className:"text-primary hover:underline",children:"Datenschutzerklärung"})," ","auf dieser Website.",c.jsx("br",{}),"Für Datenschutzanfragen nutzen Sie bitte: [email protected]"]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Verbraucherstreitbeilegung / Universalschlichtungsstelle (§ 36 VSBG)"}),c.jsx("p",{children:"Wir sind nicht bereit oder verpflichtet, an Streitbeilegungsverfahren vor einer Verbraucherschlichtungsstelle teilzunehmen."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Hinweis zur ehemaligen EU-Online-Streitbeilegung (OS)"}),c.jsx("p",{children:"Die Europäische Online-Streitbeilegungsplattform (ODR/OS) wird nicht mehr betrieben. Ein Link/Verweis ist daher nicht mehr vorgesehen."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"Verantwortlicher nach § 18 Abs. 2 MStV"}),c.jsx("p",{children:"Ein Verantwortlicher im Sinne des § 18 Abs. 2 MStV ist nur zu benennen, sofern diese Website journalistisch-redaktionelle Inhalte bereitstellt."})]})]})]})]})},sO=()=>{const{t:e}=We();return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Datenschutz | LEON'S Nordic Grill- & BBQ-Haus Rostock",description:"Datenschutzerklärung von LEON'S Rostock nach DSGVO – Verantwortlicher, Cookies, Reservierungen, Rechte der Betroffenen.",path:"/datenschutz"}),c.jsxs("div",{className:"container mx-auto px-4 py-8 sm:py-12 max-w-3xl",children:[c.jsx(se,{asChild:!0,variant:"ghost",className:"mb-8",children:c.jsxs(_e,{to:"/",children:[c.jsx($s,{className:"w-4 h-4 mr-2"}),e(I.pages.backToHome)]})}),c.jsx("h1",{className:"font-display text-3xl sm:text-4xl md:text-5xl text-foreground mb-8",children:"DATENSCHUTZERKLÄRUNG"}),c.jsxs("div",{className:"space-y-8 text-base leading-relaxed text-muted-foreground",children:[c.jsx("div",{children:c.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Stand: 08.02.2026"})}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"1. Verantwortlicher (Art. 13 DSGVO)"}),c.jsxs("p",{className:"mb-4",children:["GBSE GmbH",c.jsx("br",{}),"Kröpeliner Straße 20a",c.jsx("br",{}),"18055 Rostock",c.jsx("br",{}),c.jsx("br",{}),c.jsx("strong",{className:"text-foreground",children:"Vertreten durch:"})," Geschäftsführer Mathias Düwiger",c.jsx("br",{}),c.jsx("strong",{className:"text-foreground",children:"Telefon:"})," 0381 4583443",c.jsx("br",{}),c.jsx("strong",{className:"text-foreground",children:"E-Mail:"})," [email protected]"]}),c.jsx("p",{children:"Ein Datenschutzbeauftragter ist nicht benannt, da hierfür nach aktuellem Stand keine gesetzliche Verpflichtung besteht."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"2. Grundprinzipien"}),c.jsx("p",{children:'Wir verarbeiten personenbezogene Daten nach den Grundsätzen der Datenminimierung und Zweckbindung. Wir geben Daten nicht „einfach so" weiter und verkaufen keine personenbezogenen Daten.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"3. Datenkategorien"}),c.jsx("p",{className:"mb-4",children:"Je nach Nutzung verarbeiten wir insbesondere:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-foreground",children:"Technische Nutzungsdaten (Serverdaten):"})," IP-Adresse, Zeitstempel, aufgerufene Seite, Referrer, Browser-
258/Geräteinformationen, Statuscodes."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-foreground",children:"Reservierungs-/Anfragedaten:"})," Name, E-Mail, ggf. Telefonnummer, Datum/Uhrzeit, Personenzahl, Nachricht/Sonderwünsche."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-foreground",children:"Kommunikationsdaten:"})," Inhalte Ihrer Nachricht und unsere Antworten."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-foreground",children:"E-Mail-Versanddaten:"})," Empfängeradresse, Versandzeit, technische Zustell-/Logdaten, Inhalte der Bestätigungs-/Benachrichtigungs-Mail (z. B. Reservierungsdetails)."]})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"4. Zwecke und Rechtsgrundlagen"}),c.jsx("p",{className:"mb-4",children:"Wir verarbeiten Daten zu folgenden Zwecken:"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("p",{children:c.jsx("strong",{className:"text-foreground",children:"1) Websitebetrieb, Stabilität, Sicherheit, Fehleranalyse"})}),c.jsx("p",{children:"Rechtsgrundlage: Art. 6 Abs. 1 lit. f DSGVO (berechtigtes Interesse)."})]}),c.jsxs("div",{children:[c.jsx("p",{children:c.jsx("strong",{className:"text-foreground",children:"2) Bearbeitung von Reservierungen/Anfragen inkl. Rückfragen"})}),c.jsx("p",{children:"Rechtsgrundlage: Art. 6 Abs. 1 lit. b DSGVO (Vertragsanbahnung/Vertrag)."})]}),c.jsxs("div",{children:[c.jsx("p",{children:c.jsx("strong",{className:"text-foreground",children:"3) Automatisierter Versand von Bestätigungen/Benachrichtigungen per E-Mail"})}),c.jsx("p",{children:"Rechtsgrundlage: Art. 6 Abs. 1 lit. b DSGVO (vertragliche Kommunikation) und Art. 6 Abs. 1 lit. f DSGVO (effiziente Abwicklung)."})]}),c.jsxs("div",{children:[c.jsx("p",{children:c.jsx("strong",{className:"text-foreground",children:"4) Webanalyse/Statistik (Analytics)"})}),c.jsxs("p",{children:["Rechtsgrundlage: ",c.jsx("strong",{className:"text-foreground",children:"Einwilligung"})," nach Art. 6 Abs. 1 lit. a DSGVO ",c.jsx("strong",{className:"text-foreground",children:"und"})," § 25 Abs. 1 TDDDG (Zugriff auf Endeinrichtung/Cookies/ähnliche Technologien, soweit genutzt)."]})]})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"5. Hosting / technische Bereitstellung (Lovable)"}),c.jsx("p",{className:"mb-4",children:"Diese Website wird über die Lovable-Plattform bereitgestellt. Beim Aufruf werden technisch notwendige Daten verarbeitet (siehe Ziffer 3), um die Website auszuliefern und abzusichern."}),c.jsxs("p",{className:"mb-4",children:[c.jsx("strong",{className:"text-foreground",children:"Speicherdauer (Serverdaten):"})," Wir speichern Serverdaten nur so lange, wie es für Betrieb, IT-Sicherheit und Fehleranalyse erforderlich ist, und löschen/anonymisieren sie anschließend."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"6. Reservierungen/Anfragen und E-Mail-Versand"}),c.jsx("p",{className:"mb-4",children:"Wenn Sie über die Website reservieren/anfragen, verarbeiten wir Ihre Angaben zur Bearbeitung und zur Kommunikation (z. B. Bestätigungs-Mail)."}),c.jsxs("p",{children:[c.jsx("strong",{className:"text-foreground",children:"Speicherdauer Reservierungs-/Anfragedaten:"}),c.jsx("br",{}),"Wir löschen Reservierungs-/Anfragedaten grundsätzlich, sobald sie für die Abwicklung nicht mehr erforderlich sind. Für Nachweis-/Rückfragenzwecke speichern wir sie regelmäßig ",c.jsx("strong",{className:"text-foreground",children:"bis zu 6 Monate"})," nach dem Reservierungsdatum und löschen sie danach, sofern keine gesetzlichen Pflichten oder ein Streitfall eine längere Speicherung erfordern."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"7. Cookies / Endgerätezugriff (TDDDG) / localStorage"}),c.jsxs("p",{className:"mb-4",children:["Wir setzen technisch notwendige Speichermechanismen ein, damit die Website funktioniert.",c.jsx("br",{}),"Für alle nicht technisch notwendigen Zugriffe (insbesondere ",c.jsx("strong",{className:"text-foreground",children:"Analytics"}),") gilt: Nutzung erst nach Einwilligung über ein Consent-Banner."]}),c.jsxs("p",{className:"mb-4",children:[c.jsx("strong",{className:"text-foreground",children:"localStorage:"}),' Wir verwenden die Browser-Funktion „localStorage", um Ihre gewählte Spracheinstellung und Ihre Cookie-/Consent-Zustimmung zu speichern. Diese Daten verlassen Ihren Browser nicht und werden nicht an uns oder Dritte übermittelt. Sie können die gespeicherten Daten jederzeit in Ihren Browsereinstellungen löschen.']})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"8. Webanal
258yse (Lovable Project Analytics)"}),c.jsxs("p",{className:"mb-4",children:["Wir nutzen ",c.jsx("strong",{className:"text-foreground",children:"Lovable Project Analytics"})," zur Reichweitenmessung (z. B. Besucher, Seitenaufrufe, Besuchsdauer, Absprungrate, Traffic-Quellen, Gerätetypen)."]}),c.jsxs("p",{className:"mb-4",children:[c.jsx("strong",{className:"text-foreground",children:"Wichtig für Rechtssicherheit:"}),c.jsx("br",{}),"Analytics wird erst aktiviert, wenn Sie über das Consent-Banner eingewilligt haben. Ohne Einwilligung findet keine Analytics-Auswertung statt (ausgenommen rein technische, unbedingt erforderliche Messungen, sofern vorhanden)."]}),c.jsxs("p",{children:[c.jsx("strong",{className:"text-foreground",children:"Widerruf:"})," Sie können Ihre Einwilligung jederzeit mit Wirkung für die Zukunft über die Cookie-Einstellungen im Banner widerrufen."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"9. Einsatz von KI-Diensten (ChatGPT, Gemini, NotebookLM)"}),c.jsxs("p",{className:"mb-4",children:["Wir nutzen KI-Dienste zur ",c.jsx("strong",{className:"text-foreground",children:"internen Unterstützung"})," (z. B. Textentwürfe, Zusammenfassungen, Qualitäts- und Formulierungshilfen) bei der Bearbeitung von Anfragen, Reservierungen und Kommunikation."]}),c.jsx("p",{className:"mb-4",children:"Dabei können – je nach konkreter Nutzung – Inhalte (z. B. Nachrichtentexte und Reservierungsdetails) an folgende Anbieter übermittelt werden:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mb-4",children:[c.jsx("li",{children:c.jsx("strong",{className:"text-foreground",children:"OpenAI (ChatGPT)"})}),c.jsx("li",{children:c.jsx("strong",{className:"text-foreground",children:"Google (Gemini)"})}),c.jsx("li",{children:c.jsx("strong",{className:"text-foreground",children:"Google (NotebookLM)"})})]}),c.jsxs("p",{className:"mb-2",children:[c.jsx("strong",{className:"text-foreground",children:"Grundsatz:"})," Wir entscheiden nicht automatisiert. KI liefert Vorschläge – die finale Entscheidung/Antwort erfolgt durch Menschen."]}),c.jsxs("p",{className:"mb-2",children:[c.jsx("strong",{className:"text-foreground",children:"Rechtsgrundlage:"})," Art. 6 Abs. 1 lit. b DSGVO (Bearbeitung/Kommunikation) und Art. 6 Abs. 1 lit. f DSGVO (effiziente Bearbeitung)."]}),c.jsxs("p",{children:[c.jsx("strong",{className:"text-foreground",children:"Datenminimierung:"})," Wir verwenden KI nur, soweit erforderlich. Sensible Daten sollen nicht in KI-Tools eingegeben werden, sofern es vermeidbar ist."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"10. Empfänger / Auftragsverarbeiter"}),c.jsx("p",{className:"mb-4",children:"Wir setzen Dienstleister ein, die Daten in unserem Auftrag verarbeiten oder als Empfänger auftreten können, insbesondere:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-2",children:[c.jsx("li",{children:"Lovable (Plattform/Hosting/Analytics), ggf. Unterauftragnehmer gem. deren Vereinbarungen."}),c.jsx("li",{children:"KI-Anbieter: OpenAI und Google (Gemini/NotebookLM) – nur soweit wir diese zur Bearbeitung einsetzen."})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"11. Drittlandübermittlungen"}),c.jsx("p",{children:"Je nach Anbieter/Unterauftragnehmern kann eine Verarbeitung außerhalb EU/EWR nicht ausgeschlossen werden. In solchen Fällen erfolgt die Übermittlung nur unter den Voraussetzungen der DSGVO (z. B. Angemessenheitsbeschluss oder Standardvertragsklauseln und zusätzliche Maßnahmen)."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"12. Ihre Rechte (Auszug)"}),c.jsx("p",{className:"mb-4",children:"Sie haben – nach Maßgabe der gesetzlichen Voraussetzungen – u. a. folgende Rechte:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mb-4",children:[c.jsx("li",{children:"Auskunft (Art. 15 DSGVO),"}),c.jsx("li",{children:"Berichtigung, Löschung, Einschränkung,"}),c.jsx("li",{children:"Datenübertragbarkeit,"}),c.jsx("li",{children:"Widerspruch bei Verarbeitung auf Basis berechtigter Interessen (Art. 21 DSGVO)."})]}),c.jsxs("p",{children:["Zur Geltendmachung genügt eine E-Mail an: ",c.jsx("strong",{className:"text-foreground",children:"[email protected]"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"13. Beschwerdere
258cht"}),c.jsx("p",{children:"Sie haben das Recht, sich bei einer Datenschutzaufsichtsbehörde zu beschweren. Zuständig ist insbesondere der Landesbeauftragte für Datenschutz und Informationsfreiheit Mecklenburg-Vorpommern (LfDI MV)."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"14. Keine automatisierte Entscheidungsfindung"}),c.jsx("p",{children:"Eine automatisierte Entscheidungsfindung einschließlich Profiling im Sinne von Art. 22 DSGVO findet nicht statt."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"15. Änderungen"}),c.jsx("p",{children:"Wir aktualisieren diese Datenschutzerklärung, wenn sich Prozesse, Technik oder Rechtslage ändern. Es gilt die jeweils auf der Website veröffentlichte Version."})]})]})]})]})},iO=()=>{const{t:e}=We();return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"AGB | LEON'S Nordic Grill- & BBQ-Haus Rostock",description:"Allgemeine Geschäftsbedingungen für Reservierungen, Gruppen und Veranstaltungen der GBSE GmbH, LEON'S Rostock.",path:"/agb"}),c.jsxs("div",{className:"container mx-auto px-4 py-8 sm:py-12 max-w-3xl",children:[c.jsx(se,{asChild:!0,variant:"ghost",className:"mb-8",children:c.jsxs(_e,{to:"/",children:[c.jsx($s,{className:"w-4 h-4 mr-2"}),e(I.pages.backToHome)]})}),c.jsx("h1",{className:"font-display text-3xl sm:text-4xl md:text-5xl text-foreground mb-2",children:"ALLGEMEINE GESCHÄFTSBEDINGUNGEN"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:"für Reservierungen, Gruppen und Veranstaltungen"}),c.jsxs("div",{className:"space-y-8 text-base leading-relaxed text-muted-foreground",children:[c.jsxs("section",{children:[c.jsxs("p",{className:"mb-4",children:[c.jsx("strong",{className:"text-foreground",children:"GBSE Gastronomie-, Betriebs-, Service- und Einrichtungsgesellschaft mbH"}),c.jsx("br",{}),"Kröpeliner Straße 20a",c.jsx("br",{}),"18055 Rostock"]}),c.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Gültig für: Leon's Steakhouse · Wirtshaus Hopfenkeller · Gastronomiebereich Hotel am Hopfenmarkt"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Stand: Juli 2026"})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"1. Geltungsbereich"}),c.jsx("p",{className:"mb-4",children:"Diese Allgemeinen Geschäftsbedingungen (AGB) gelten für sämtliche Reservierungen, Tischbuchungen, Gruppenreservierungen, Veranstaltungen, schriftlichen Angebote, Menüvereinbarungen und Kostenübernahmeerklärungen der GBSE Gastronomie-, Betriebs-, Service- und Einrichtungsgesellschaft mbH in den oben genannten Betrieben."}),c.jsx("p",{children:"Individuell getroffene Vereinbarungen im Angebot oder in der Reservierungsbestätigung haben Vorrang vor diesen AGB. Mit Annahme des Angebots oder der Reservierungsbestätigung erkennt der Vertragspartner diese AGB an."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"2. Reservierungen und Angebote"}),c.jsx("p",{className:"mb-4",children:"Reservierungen können telefonisch, schriftlich, per E-Mail, online oder vor Ort erfolgen. Sie werden erst durch die ausdrückliche Bestätigung des Betriebs verbindlich."}),c.jsx("p",{className:"mb-4",children:"Angebote und Reservierungsoptionen gelten bis zu dem darin genannten Rückmeldetermin. Erfolgt bis dahin keine Bestätigung, kann der Betrieb den Termin oder den vorgesehenen Bereich anderweitig vergeben."}),c.jsx("p",{children:"Der Betrieb kann Reservierungsanfragen aus sachlichem Grund ablehnen, insbesondere wenn Kapazitäten fehlen, betriebliche Abläufe beeinträchtigt würden oder berechtigte Zweifel an der Durchführung oder Zahlung bestehen."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"3. Tisch- und Raumbereitstellung"}),c.jsx("p",{className:"mb-4",children:"Reservierte Tische werden bis 15 Minuten nach der vereinbarten Zeit freigehalten. Bei angekündigter Verspätung bemühen wir uns, die Reservierung aufrechtzuerhalten; ein Anspruch auf den ursprünglich vorgesehenen Tisch oder Raum besteht bei erheblicher Verspätung jedoch nicht."}),c.jsx("p",{children:"Eine exklusive Nutzung eines Raums oder Bereichs besteht nur, wenn diese ausdrücklich schriftlich bestätigt wurde."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"4. Personenzahl und Änderungen"}),c.jsx("p",{className:"mb-4",children:"Die bestätigte Personenzahl bildet die Grundlage für Einkauf, Personalplanung, Raumaufteilung und Speisenvorbereitung."}),c.jsx("p",{className:"mb-4",children:"Änderungen der Personenzahl sind spätestens 24 Stunden vor Beginn mitzuteilen. Abweichungen von mehr als 10 % bedürfen einer ausdrücklichen Bestätigung durch den Betrieb."}),c.jsx("p",{children:"Bei einer kurzfristigen Reduzierung oder bei Nichterscheinen einzelner Gäste kann die zuletzt bestätigte Personenzahl berechnet werden, soweit die hierfür vorbereiteten Leistungen nicht anderweitig verwendet werden können. Dem Vertragspartner bleibt der Nachweis gestattet, dass kein oder ein wesentlich geringerer Schaden entstanden ist."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"5. Speisenauswahl und Vorbestellung"}),c.jsx("p",{className:"mb-4",children:"Ab einer Gruppengröße von 10 Personen kann der Betrieb eine Vorauswahl der Speisen verlangen. Ab 15 Personen ist die vorherige Auswahl von mindestens einem Hauptgericht pro Person verpflichtend."}),c.jsxs("p",{className:"mb-4",children:[c.jsx("strong",{className:"text-foreground",children:"Vorteil der Vorbestellung:"})," Die Küche kann sich gezielt auf die Gruppe vorbereiten, Wartezeiten werden reduziert und die Hauptgerichte können möglichst zeitgleich serviert werden. Eine spontane À-la-carte-Bestellung der Hauptgerichte ist bei Gruppen ab 15 Personen aus organisatorischen Gründen nicht möglich."]}),c.jsx("p",{className:"mb-4",children:"Vorspeisen, Desserts, Getränke und weitere Komponenten können – sofern im Angebot nichts anderes vereinbart wurde – zusätzlich bestellt werden. Die Speisenauswahl ist innerhalb der im Angebot genannten Frist einzureichen."}),c.jsx("p",{children:"Sollte ein ausgewähltes Gericht aufgrund saisonaler Warenverfügbarkeit oder nicht vorhersehbarer Lieferengpässe nicht verfügbar sein, informiert der Betrieb rechtzeitig und bietet eine gleichwertige Alternative an."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"6. Allergien, Unverträglichkeiten und besondere Ernährungsformen"}),c.jsx("p",{className:"mb-4",children:"Allergien, Unverträglichkeiten und besondere Ernährungsformen sind spätestens zusammen mit der Speisenauswahl schriftlich mitzuteilen. Kurzfristige Änderungen können nur nach Verfügbarkeit und organisatorischer Möglichkeit berücksichtigt werden."}),c.jsx("p",{children:"Trotz sorgfältiger Arbeitsweise kann bei der Verarbeitung in einer gastronomischen Küche eine unbeabsichtigte Kreuzkontamination nicht vollständig ausgeschlossen werden. Bei schweren oder lebensbedrohlichen Allergien ist vorab eine individuelle Abstimmung erforderlich."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"7. Stornierungen bei Reservierungen bis 8 Personen"}),c.jsx("p",{children:"Stornierungen sind kostenfrei möglich. Wir bitten dennoch um eine rechtzeitige Absage, möglichst bis 12 Stunden vor dem reservierten Termin."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"8. Stornierungen bei Gruppen ab 8 Personen"}),c.jsx("p",{className:"mb-4",children:"Für Gruppenreservierungen ab 8 Personen gelten folgende Stornierungsbedingungen:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[c.jsx("li",{children:"Bis 48 Stunden vor Beginn: kostenfrei"}),c.jsx("li",{children:"Weniger als 48 bis 24 Stunden vor Beginn: 50 % der Berechnungsgrundlage"}),c.jsx("li",{children:"Weniger als 24 Stunden vor Beginn oder bei Nichterscheinen: 100 % der Berechnungsgrundlage"})]}),c.jsx("p",{children:"Berechnungsgrundlage ist der vereinbarte Menü- oder Mindestumsatz. Fehlt eine individuelle Vereinbarung, werden 25,00 EUR pro angemeldeter Person zugrunde gelegt. Ersparte Aufwendungen werden berücksichtigt. Dem Vertragspartner bleibt der Nachweis gestattet, dass kein oder ein wesentlich geringerer Schaden entstanden ist."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"9. 
258Veranstaltungen und exklusive Buchungen"}),c.jsx("p",{className:"mb-4",children:"Bei exklusiven Reservierungen, Feiern, Firmenveranstaltungen und Gruppenbuchungen ab 15 Personen gelten folgende Stornierungsbedingungen:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[c.jsx("li",{children:"Bis 7 Tage vor Veranstaltungsbeginn: kostenfrei"}),c.jsx("li",{children:"Weniger als 7 bis 3 Tage vor Veranstaltungsbeginn: 50 % der vereinbarten Summe"}),c.jsx("li",{children:"Weniger als 3 Tage vor Veranstaltungsbeginn: 70 % der vereinbarten Summe"}),c.jsx("li",{children:"Am Tag der Veranstaltung oder bei Nichterscheinen: 100 % der vereinbarten Summe"})]}),c.jsx("p",{className:"mb-4",children:"Maßgeblich ist der Zeitpunkt des Eingangs der Stornierung. Ersparte Aufwendungen werden berücksichtigt. Dem Vertragspartner bleibt der Nachweis gestattet, dass kein oder ein wesentlich geringerer Schaden entstanden ist. Der Betrieb kann eine angemessene Anzahlung verlangen."}),c.jsx("h3",{className:"font-display text-xl text-foreground mb-2",children:"Sonderregelung für Weihnachtsfeiern"}),c.jsx("p",{className:"mb-4",children:"Für Weihnachtsfeiern im Zeitraum vom 1. November bis zum 31. Januar des Folgejahres gelten wegen der besonders hohen Nachfrage abweichende Stornierungsbedingungen:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[c.jsx("li",{children:"Bis 28 Tage vor Veranstaltungsbeginn: kostenfrei"}),c.jsx("li",{children:"Weniger als 28 bis 14 Tage vor Veranstaltungsbeginn: 50 % der vereinbarten Summe"}),c.jsx("li",{children:"Weniger als 14 bis 4 Tage vor Veranstaltungsbeginn: 70 % der vereinbarten Summe"}),c.jsx("li",{children:"Ab 4 Tage vor Veranstaltungsbeginn oder bei Nichterscheinen: 100 % der vereinbarten Summe"})]}),c.jsx("p",{children:"Auch hier werden ersparte Aufwendungen berücksichtigt. Dem Vertragspartner bleibt der Nachweis gestattet, dass kein oder ein wesentlich geringerer Schaden entstanden ist."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"10. Zahlung, Einzelabrechnung und Rechnung"}),c.jsx("p",{className:"mb-4",children:"Die Bezahlung erfolgt grundsätzlich unmittelbar nach der Leistungserbringung vor Ort. Eine Zahlung auf Rechnung ist nur nach vorheriger schriftlicher Vereinbarung möglich."}),c.jsx("p",{className:"mb-4",children:"Ab 15 Personen ist eine Einzelabrechnung nur nach vorheriger Absprache möglich. Ohne entsprechende Vereinbarung kann der Betrieb eine Gesamtrechnung ausstellen."}),c.jsx("p",{children:"Rechnungen sind innerhalb von 7 Kalendertagen nach Zugang ohne Abzug zahlbar, sofern nichts Abweichendes vereinbart wurde."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"11. Kostenübernahme durch Dritte"}),c.jsx("p",{className:"mb-4",children:"Soll die Zahlung durch ein Unternehmen, eine Behörde, einen Verein, einen Reiseveranstalter oder einen sonstigen Dritten erfolgen, ist vor Veranstaltungsbeginn eine vollständig ausgefüllte und unterschriebene Kostenübernahmeerklärung erforderlich."}),c.jsx("p",{children:"Die Kostenübernahme muss den Umfang der übernommenen Leistungen und die gewünschte Zahlungsart eindeutig ausweisen. Liegt keine wirksame Kostenübernahme vor, bleibt der Besteller bzw. die vor Ort verantwortliche Person zur Zahlung verpflichtet."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"12. Speisen, Getränke und Dekoration von außerhalb"}),c.jsx("p",{className:"mb-4",children:"Das Mitbringen eigener Speisen und Getränke ist grundsätzlich nicht gestattet. Ausnahmen, insbesondere bei Torten oder besonderen Anlassspeisen, bedürfen der vorherigen schriftlichen Zustimmung; hierfür kann ein Serviceentgelt vereinbart werden."}),c.jsx("p",{children:"Dekorationen, Technik, Kerzen und sonstige Aufbauten dürfen nur nach vorheriger Abstimmung verwendet werden. Der Vertragspartner haftet für Schäden und die vollständige Entfernung mitgebrachter Gegenstände."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"13. Haftung und Garderobe"}),c.jsx("p",{className:"mb-4",children:"Für Garderobe, Wertgegenstände und persönliche Gegenstände wird nur im Rahmen der gesetzlichen Bestimmungen gehaftet. Für Schäden am Inventar oder an Räumlichkeiten, die vorsätzlich oder fahrlässig durch Gäste, Beauftragte oder Dienstleister des Vertragspartners verursacht werden, haftet der Verursacher bzw. der Vertragspartner nac
258h den gesetzlichen Vorschriften."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"14. Höhere Gewalt und betriebliche Störungen"}),c.jsx("p",{children:"Kann eine Reservierung oder Veranstaltung aufgrund höherer Gewalt, behördlicher Anordnung, erheblicher technischer Störung oder eines anderen vom Betrieb nicht zu vertretenden Ereignisses nicht durchgeführt werden, entfallen die beiderseitigen Leistungspflichten. Bereits geleistete Zahlungen werden für nicht erbrachte Leistungen zurückerstattet. Weitergehende Ansprüche bestehen nur nach Maßgabe der gesetzlichen Vorschriften."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"15. Hausrecht und Verhalten"}),c.jsx("p",{children:"Der Betrieb übt das Hausrecht aus. Gäste können bei erheblicher Störung des Betriebsablaufs, Belästigung anderer Gäste, Gewalt, Diskriminierung, Beschädigung oder Nichtbefolgung berechtigter Anweisungen vom weiteren Aufenthalt ausgeschlossen werden. Die Zahlungspflicht für bereits erbrachte oder verbindlich vorbereitete Leistungen bleibt bestehen."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"16. Datenschutz"}),c.jsxs("p",{children:["Personenbezogene Daten werden zur Bearbeitung und Durchführung der Reservierung oder Veranstaltung sowie zur Rechnungsstellung verarbeitet. Weitere Informationen enthält die jeweils geltende"," ",c.jsx(_e,{to:"/datenschutz",className:"text-primary hover:underline",children:"Datenschutzerklärung"})," ","der GBSE GmbH."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"font-display text-2xl text-foreground mb-4",children:"17. Schlussbestimmungen"}),c.jsx("p",{className:"mb-4",children:"Es gilt deutsches Recht. Zwingende gesetzliche Verbraucherschutzvorschriften bleiben unberührt."}),c.jsx("p",{children:"Sollten einzelne Bestimmungen dieser AGB unwirksam sein oder werden, bleibt die Wirksamkeit der übrigen Bestimmungen unberührt. Anstelle der unwirksamen Bestimmung gelten die gesetzlichen Vorschriften."})]})]})]})]})},oO="/assets/logoNordmann-o-1Z5j93.png",aO="/assets/Logo_Eiswerkstatt-BeoWJXHo.avif",lO="/assets/Logo_Hopfenkeller-BFRJvfOx.jpg",cO="/assets/Logo_Burwitz-DSyiQ6sM.png",uO="/assets/Logo_Gueduek-CDzSmElm.avif",dO="/assets/logo-baltic-weinkontor-DAzCV2Dw.png",hO=[{name:"Burwitz Legendär",description:{de:"Man muss das Rad nicht immer neu erfinden, wenn es ein paar Straßen weiter schon richtig gute Kollegen gibt! Wir sind sehr dankbar für die schöne und unkomplizierte Freundschaft zum Team vom Burwitz Legendär. Tolle Menschen, ein großartiges Restaurant und ein Miteinander, wie man es sich als Gastronom nur wünschen kann.",en:"You don't always have to reinvent the wheel when there are really great colleagues just a few streets away! We are very grateful for the wonderful and uncomplicated friendship with the team from Burwitz Legendär. Great people, an outstanding restaurant, and a togetherness that every restaurateur dreams of.",sv:"Man behöver inte alltid uppfinna hjulet på nytt när det finns riktigt bra kollegor bara några gator bort! Vi är mycket tacksamma för den fina och okomplicerade vänskapen med teamet från Burwitz Legendär. Fantastiska människor, en enastående restaurang och en gemenskap som varje krögare drömmer om.",da:"Man behøver ikke altid at opfinde den dybe tallerken, når der allerede er rigtig gode kolleger et par gader væk! Vi er meget taknemmelige for det dejlige og ukomplicerede venskab med holdet fra Burwitz Legendär. Fantastiske mennesker, en storslået restaurant og et sammenhold, som enhver gastronom kun kan ønske sig."},url:"https://burwitz-legendaer.de/",logo:cO},{name:"Wirtshaus Hopfenkeller",description:{de:"Gastronomie in Rostock macht am meisten Spaß, wenn man so tolle Kollegen und Nachbarn hat wie das Team vom Wirtshaus Hopfenkeller. Wir danken euch für das immer freundliche Miteinander und die großartige Nachbarschaft am Hopfenmarkt! Wer herzhafte Küche und ein uriges Ambiente sucht, ist bei unseren Freunden im Hopfenkeller genau richtig.",en:"Gastronomy in Rostock is most fun when you have such great colleagues and neighbours as the team from Wirtshaus Hopfenkeller. We thank you for the always friendly cooperation and the wonderful neighbourhood at Hopfenmarkt! If you're looking for hearty cuisine and a rustic atmosphere, our friends at the Hopfenkeller are the perfect choice.",sv:"Gastronomi i Rostock är som roligast när man har så fantastiska kollegor och grannar som teamet från Wirtshaus Hopfenkeller. Vi tackar er för det alltid vänliga samarbetet och det underbara grannskapet vid Hopfenmarkt! Den som söker rejäl mat och en rustik atmosfär är helt rätt hos våra vänner i Hopfenkeller.",da:"Gastronomi i Rostock er mest sjovt, når man har så fantastiske kolleger og naboer som holdet fra Wirtshaus Hopfenkeller. Vi takker jer for det altid venlige samvær og det storartede naboskab ved Hopfenmarkt! Hvis du søger gedigen mad og en hyggelig atmosfære, er vores venner i Hopfenkeller det helt rigtige valg."},url:"https://hopfenkeller-rostock.de/",logo:lO}],fO=[{name:"Nordmann Getränke",description:{de:"Unsere Gäste im Leons Rostock können sich immer auf gut gefüllte Kühlschränke verlassen – das verdanken wir unserem verlässlichen Partner, der Firma Nordmann. An dieser Stelle möchten wir uns für die langjährige, gute Kundenbeziehung und das immer freundliche Miteinander bedanken. Schön, euch an unserer Seite zu haben!",en:"Our guests at Leons Rostock can always count on well-stocked fridges – thanks to our reliable partner, Nordmann. We would like to take this opportunity to thank them for the long-standing, great business relationship and the always friendly cooperation. Great to have you by our side!",sv:"Våra gäster på Leons Rostock kan alltid lita på välfyllda kylskåp – tack vare vår pålitliga partner, Nordmann. Vi vill tacka för det långvariga, goda samarbetet och det alltid vänliga bemötandet. Skönt att ha er vid vår sida!",da:"Vores gæster på Leons Rostock kan altid regne med velfyldte køleskabe – det skylder vi vores pålidelige partner, Nordmann. Vi vil gerne takke for det mangeårige, gode samarbejde og den altid venlige omgang. Dejligt at have jer ved vores side!"},url:"https://nordmann-mv.de/",logo:oO},{name:"Eiswerkstatt Rostock",description:{de:"Wir haben im Leons 
258nicht nur tolle Gäste, sondern auch die besten Nachbarn! Die Eiswerkstatt Rostock ist für uns ein echter Glücksgriff – nicht nur wegen des fantastischen Eises, sondern vor allem wegen der unglaublich netten Menschen dort. Schön, dass ihr nebenan seid!",en:"At Leons, we don't just have great guests – we also have the best neighbours! The Eiswerkstatt Rostock is a real stroke of luck for us – not only because of the fantastic ice cream, but above all because of the incredibly nice people there. Great to have you next door!",sv:"På Leons har vi inte bara fantastiska gäster, utan också de bästa grannarna! Eiswerkstatt Rostock är en riktig lyckoträff för oss – inte bara för den fantastiska glassen, utan framför allt för de otroligt trevliga människorna där. Skönt att ha er bredvid!",da:"På Leons har vi ikke kun fantastiske gæster, men også de bedste naboer! Eiswerkstatt Rostock er et rigtigt lykketræf for os – ikke kun på grund af den fantastiske is, men især på grund af de utroligt rare mennesker der. Dejligt at have jer ved siden af!"},url:"https://eiswerkstatt-rostock.de/",logo:aO},{name:"GDK Rostock (Güdük)",description:{de:"Frische Zutaten sind für uns im Leons das absolute A und O! Deshalb sind wir unglaublich froh, mit dem Großhandel Güdük (GDK Rostock) einen so fantastischen Partner an unserer Seite zu haben. Das Team versorgt uns jeden Tag zuverlässig mit dem besten und frischesten Gemüse für unsere Gerichte. Ein großes Dankeschön für die tolle Zusammenarbeit und die immer gute Laune bei der Lieferung!",en:"Fresh ingredients are the absolute priority for us at Leons! That's why we're incredibly happy to have the wholesaler Güdük (GDK Rostock) as such a fantastic partner by our side. The team reliably supplies us every day with the best and freshest vegetables for our dishes. A big thank you for the great cooperation and the always good mood during deliveries!",sv:"Färska ingredienser är det absolut viktigaste för oss på Leons! Därför är vi otroligt glada över att ha grossisten Güdük (GDK Rostock) som en så fantastisk partner vid vår sida. Teamet förser oss varje dag pålitligt med de bästa och färskaste grönsakerna till våra rätter. Ett stort tack för det fantastiska samarbetet och det alltid goda humöret vid leveransen!",da:"Friske ingredienser er det absolutte A og O for os på Leons! Derfor er vi utroligt glade for at have grossisten Güdük (GDK Rostock) som en så fantastisk partner ved vores side. Holdet forsyner os hver dag pålideligt med de bedste og friskeste grøntsager til vores retter. En stor tak for det fantastiske samarbejde og det altid gode humør ved leveringen!"},url:"https://gdk-rostock.de/",logo:uO},{name:"Baltic Weinkontor",description:{de:"Guter Wein gehört zu einem guten Abend dazu – und dafür haben wir mit dem Baltic Weinkontor den perfekten Partner direkt am Hopfenmarkt gefunden. Das Team begeistert mit einer erlesenen Auswahl an Weinen aus aller Welt und einer Leidenschaft für regionale Produkte aus Mecklenburg-Vorpommern. Wir freuen uns sehr über diese tolle Nachbarschaft!",en:"Good wine is part of a good evening – and for that we found the perfect partner right at Hopfenmarkt with Baltic Weinkontor. The team impresses with a select range of wines from around the world and a passion for regional products from Mecklenburg-Vorpommern. We are very happy about this great neighbourhood!",sv:"Gott vin hör till en bra kväll – och för det har vi hittat den perfekta partnern direkt vid Hopfenmarkt med Baltic Weinkontor. Teamet imponerar med ett utvalt sortiment av viner från hela världen och en passion för regionala produkter från Mecklenburg-Vorpommern. Vi är mycket glada över detta fantastiska grannskap!",da:"Godt vin hører til en god aften – og til det har vi fundet den perfekte partner lige ved Hopfenmarkt med Baltic Weinkontor. Holdet imponerer med et udvalgt sortiment af vine fra hele verden og en passion for regionale produkter fra Mecklenburg-Vorpommern. Vi er meget glade for dette fantastiske naboskab!"},url:"https://baltic-weinkontor.de/",logo:dO}];function mO(e){const t=[...e];for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}const pO=()=>{const{t:e}=We(),t=w.useMemo(()=>[...hO,...mO(fO)],[]);return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Unsere Partner | LEON'S Rostock",description:"Lokale Partner von LEON'S Rostock am Hopfenmarkt – Burwitz Legendär, Hopfenkeller, Nordmann Getränke, Baltic Weinkontor und mehr.",path:"/partner"}),c.jsxs("div",{className:"container mx-auto px-4 py-12 max-w-3xl",children:[c.jsx(se,{asChild:!0,variant:"ghost",className:"mb-8",children:c.jsxs(_e,{to:"/",children:[c.jsx($s,{className:"w-4 h-4 mr-2"}),e(I.pages.backToHome)]})}),c.jsx("h1",{className:"font-display text-3xl sm:text-4xl md:text-5xl text-foreground mb-4",children:e(I.partner.title)}),c.jsx("p",{className:"text-muted-foreground text-lg mb-12",children:e(I.partner.description)}),t.length>0?c.jsx("div",{className:"space-y-6",children:t.map((n,r)=>c.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"relative flex flex-col sm:flex-row items-start gap-4 sm:gap-6 p-4 sm:p-6 rounded-lg border border-border bg-card hover:border-primary/50 transition-colors group",children:[n.logo&&c.jsx("img",{src:n.logo,alt:n.name,className:"w-full max-w-40 h-auto object-contain flex-shrink-0 mt-1"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h2",{className:"text-lg font-medium text-foreground group-hover:text-primary transition-colors",children:n.name}),c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:e(n.description)})]}),c.jsx(Bm,{className:"absolute sm:static right-4 top-4 w-5 h-5 text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0 mt-1"})]},r))}):c.jsx("p",{className:"text-muted-foreground italic",children:e(I.partner.empty)})]})]})},gO="05.10.–09.10.2026",vO=[{day:"Montag",price:"10,90 €",dish:"Zarte Hähnchenstreifen mit Pilzen und Zwiebeln in cremiger Rahmsauce, dazu goldbraune Rösti-Taler"},{day:"Dienstag",price:"10,90 €",dish:"Knusprig paniertes Schnitzel „Wiener Art“ mit frischer Zitrone und goldgelben Pommes frites"},{day:"Mittwoch",price:"10,90 €",dish:"Saftig gebratenes Rotbarschfilet mit hausgemachtem Gurkensalat und knusprigen Bratkartoffeln"},{day:"Donnerstag",price:"10,90 €",dish:"Spaghetti mit herzhafter Bolognese und frisch geriebenem Parmesan"},{day:"Freitag",price:"10,90 €",dish:"Saftig gegrilltes Schweinesteak mit herzhaften Schmorzwiebeln, würziger Kräuterbutter und knusprigen Bratkartoffeln"}],Bv={price:"7,90 €",dish:"Hausgemachter, herzhafter Linseneintopf mit Kasseler"},yO=[{name:"Matjesfilet „Hausfrauenart“",price:"15,90 €",description:"mit cremiger Hausfrauensauce und knusprigen Bratkartoffeln"},{name:"Schweinemedaillons",price:"18,90 €",description:"Zarte Schweinemedaillons mit cremigen Rahmchampignons und goldbraunen Rösti-Talern"}],Uv=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Business Lunch | LEON'S Rostock – Mo–Fr 11–15 Uhr",description:"Wöchentlich wechselnde Business-Lunch-Karte bei LEON'S Rostock am Hopfenmarkt. Montag bis Freitag, 11:00–15:00 Uhr.",path:"/business-lunch"}),c.jsx(Ou,{}),c.jsx(mo,{}),c.jsx("main",{className:"pt-8 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 max-w-3xl",children:[c.jsx(se,{asChild:!0,variant:"ghost",className:"mb-6 text-muted-foreground hover:text-foreground",children:c.jsxs(_e,{to:"/#angebote",children:[c.jsx($s,{className:"w-4 h-4 mr-2"}),"Zurück zu den Angeboten"]})}),c.jsx("h1",{className:"font-display text-3xl sm:text-4xl md:text-5xl text-foreground text-center mb-2",children:"Business Lunch"}),c.jsx("p",{className:"text-center text-muted-foreground mb-1",children:"Montag bis Freitag · 11:00–15:00 Uhr"}),c.jsx("div",{className:"flex justify-center mb-10",children:c.jsxs("span",{className:"inline-block bg-primary text-primary-foreground font-display tracking-wide text-sm px-4 py-1 rounded-full",children:["Woche ",gO]})}),c.jsx("section",{className:"bg-card border border-border rounded-lg shadow-sm divide-y divide-border overflow-hidden",children:vO.map(({day:e,price:t,dish:n})=>c.jsxs("article",{className:"p-4 sm:p-6",children:[c.jsxs("div",{className:"flex items-baseline gap-2 sm:gap-3 mb-1.5",children:[c.jsx("h2",{className:"font-display text-lg sm:text-2xl text-primary uppercase tracking-wide",children:e}),c.jsx("span",{className:"flex-1 border-b border-dotted border-border translate-y-[-4px]","aria-hidden":"true"}),c.jsx("span",{className:"font-display text-lg sm:text-2xl text-foreground whitespace-nowrap",children:t})]}
258),c.jsx("p",{className:"text-foreground/90 leading-relaxed",children:n})]},e))}),c.jsxs("section",{className:"mt-10",children:[c.jsxs("h2",{className:"font-display text-2xl sm:text-3xl text-foreground text-center mb-5 flex items-center justify-center gap-3",children:[c.jsx("span",{"aria-hidden":"true",children:"🥣"})," Suppe der Woche",c.jsx("span",{"aria-hidden":"true",children:"🥣"})]}),c.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-5 sm:p-6",children:[c.jsxs("div",{className:"flex items-baseline gap-2 sm:gap-3 mb-1.5",children:[c.jsx("span",{className:"flex-1 border-b border-dotted border-border translate-y-[-4px]","aria-hidden":"true"}),c.jsx("span",{className:"font-display text-lg sm:text-2xl text-foreground whitespace-nowrap",children:Bv.price})]}),c.jsx("p",{className:"text-foreground/90 leading-relaxed",children:Bv.dish})]})]}),c.jsxs("section",{className:"mt-10",children:[c.jsx("h2",{className:"font-display text-2xl sm:text-3xl text-primary text-center mb-5",children:"⭐ Das Besondere Angebot"}),c.jsx("div",{className:"bg-card border border-primary/30 rounded-lg shadow-sm divide-y divide-border overflow-hidden",children:yO.map(({name:e,price:t,description:n})=>c.jsxs("article",{className:"p-4 sm:p-6",children:[c.jsxs("div",{className:"flex items-baseline gap-2 sm:gap-3 mb-1.5",children:[c.jsx("h3",{className:"font-display text-lg sm:text-2xl text-foreground uppercase tracking-wide",children:e}),c.jsx("span",{className:"flex-1 border-b border-dotted border-border translate-y-[-4px]","aria-hidden":"true"}),c.jsx("span",{className:"font-display text-lg sm:text-2xl text-primary whitespace-nowrap",children:t})]}),c.jsx("p",{className:"text-foreground/90 leading-relaxed",children:n})]},e))})]}),c.jsxs("div",{className:"mt-12 text-center",children:[c.jsx(se,{asChild:!0,size:"lg",className:"font-display tracking-wide text-lg px-8",children:c.jsx(_e,{to:"/reservierung",children:"Jetzt Tisch reservieren"})}),c.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"Tagesgerichte solange der Vorrat reicht."})]})]})})]}),bO="/assets/dry-age-steakkarte-CMCSixGs.jpg",wO=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Dry Aged Steak Karte | LEON'S Rostock",description:"Premium Dry Aged Steaks bei LEON'S Rostock – wochenlang gereift, im 800°C Southbend-Ofen gegrillt. Entdecke unsere aktuelle Steakkarte.",path:"/dry-aged"}),c.jsx(Ou,{}),c.jsx(mo,{}),c.jsxs("main",{className:"pt-8 pb-16",children:[c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 max-w-3xl",children:[c.jsx(se,{asChild:!0,variant:"ghost",className:"mb-6 text-muted-foreground hover:text-foreground",children:c.jsxs(_e,{to:"/",children:[c.jsx($s,{className:"w-4 h-4 mr-2"}),"Zurück zur Startseite"]})}),c.jsx("h1",{className:"font-display text-3xl sm:text-4xl md:text-5xl text-foreground text-center mb-4",children:"DRY AGED STEAK KARTE"}),c.jsx("p",{className:"text-center text-muted-foreground mb-8 max-w-xl mx-auto",children:"Unsere Premium Dry Aged Steaks – wochenlang gereift für den unvergleichlichen Geschmack."})]}),c.jsx("div",{className:"w-full sm:container sm:mx-auto sm:px-6 sm:max-w-3xl",children:c.jsx("div",{className:"sm:rounded-lg overflow-hidden shadow-lg",children:c.jsx("img",{src:bO,alt:"Dry Aged Steak Karte – Leon's Rostock",className:"w-full h-auto object-contain block"})})})]})]});var Wv;function O(e,t,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);const u=o.prototype,d=Object.keys(u);for(let h=0;h<d.length;h++){const m=d[h];m in a||(a[m]=u[m].bind(a))}}const s=(n==null?void 0:n.Parent)??Object;class i extends s{}Object.defineProperty(i,"name",{value:e});function o(a){var l;const u=n!=null&&n.Parent?new i:this;r(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>{var l,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:u.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}
vendor: 47,263 bytes, lines 258-321
258class Ai extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ok extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Wv=globalThis).__zod_globalConfig??(Wv.__zod_globalConfig={});const ip=globalThis.__zod_globalConfig;function As(e){return ip}function Ak(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,s])=>t.indexOf(+r)===-1).map(([r,s])=>s)}function wf(e,t){return typeof t=="bigint"?t.toString():t}function op(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ap(e){return e==null}function lp(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const Hv=Symbol("evaluating");function fe(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Hv)return r===void 0&&(r=Hv,r=n()),r},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Bs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function es(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Vv(e){return JSON.stringify(e)}function xO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Dk="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const kO=op(()=>{var e;if(ip.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Ta(e){if(Hc(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Hc(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Mk(e){return Ta(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const SO=new Set(["string","number","symbol"]);function Au(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ts(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function J(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function _O(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function EO(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=es(e._zod.def,{get shape(){const o={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(o[a]=n.shape[a])}return Bs(this,"shape",o),o},checks:[]});return ts(e,i)}function jO(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=es(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete o[a]}return Bs(this,"shape",o),o},checks:[]});return ts(e,i)}function TO(e,t){if(!Ta(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const o in t)if(Object.getOwnPropertyDescriptor(i,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=es(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Bs(this,"shape",i),i}});return ts(e,s)}function NO(e,t){if(!Ta(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=es(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Bs(this,"shape",r),r}});return ts(e,n)}function CO(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=es(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t._zod.def.shape};return Bs(this,"shape",s),s},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ts(e,n)}function PO(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=es(t._zod.def,{get shape(){const a=t._zod.def.shape,l={...a};if(n)for(const u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)l[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return Bs(this,"shape",l),l},checks:[]});return ts(t,o)}function RO(e,t,n){const r=es(t._zod.def,{get shape(){const s=t._zod.def.shape,i={...s};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(i[o]=new e({type:"nonoptional",innerType:s[o]}))}else for(const o in s)i[o]=new e({type:"nonoptional",innerType:s[o]});return Bs(this,"shape",i),i}});return ts(t,r)}function xi(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function OO(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Ik(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Cl(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ds(e,t,n){var l,u,d,h,m,f;const r=e.message?e.message:Cl((d=(u=(l=e.inst)==null?void 0:l._zod.def)==null?void 0:u.error)==null?void 0:d.call(u,e))??Cl((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??Cl((m=n.customError)==null?void 0:m.call(n,e))??Cl((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:s,continue:i,input:o,...a}=e;return a.path??(a.path=[]),a.message=r,t!=null&&t.reportInput&&(a.input=o),a}function cp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Na(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Lk=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wf,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$k=O("$ZodError",Lk),zk=O("$ZodError",Lk,{Parent:Error});function AO(e,t=n=>n.message){const n={},r=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}function DO(e,t=n=>n.message){const n={_errors:[]},r=(s,i=[])=>{for(const o of s.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>r({issues:a},[...i,...o.path]));else if(o.code==="invalid_key")r({issues:o.issues},[...i,...o.path]);else if(o.code==="invalid_element")r({issues:o.issues},[...i,...o.path]);else{const a=[...i,...o.path];if(a.length===0)n._errors.push(t(o));else{let l=n,u=0;for(;u<a.length;){const d=a[u];u===a.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(o))):l[d]=l[d]||{_errors:[]},l=l[d],u++}}}};return r(e),n}const up=e=>(t,n,r,s)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Ai;if(o.issues.length){const a=new((s==null?void 0:s.Err)??e)(o.issues.map(l=>Ds(l,i,As())));throw Dk(a,s==null?void 0:s.callee),a}return o.value},dp=e=>async(t,n,r,s)=>{const i=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise&&(o=await o),o.issues.length){const a=new((s==null?void 0:s.Err)??e)(o.issues.map(l=>Ds(l,i,As())));throw Dk(a,s==null?void 0:s.callee),a}return o.value},Du=e=>(t,n,r)=>{const s=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new Ai;return i.issues.length?{success:!1,error:new(e??$k)(i.issues.map(o=>Ds(o,s,As())))}:{success:!0,data:i.value}},MO=Du(zk),Mu=e=>async(t,n,r)=>{const s=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},s);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(o=>Ds(o,s,As())))}:{success:!0,data:i.value}},IO=Mu(zk),LO=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return up(e)(t,n,s)},$O=e=>(t,n,r)=>up(e)(t,n,r),zO=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return dp(e)(t,n,s)},FO=e=>async(t,n,r)=>dp(e)(t,n,r),BO=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Du(e)(t,n,s)},UO=e=>(t,n,r)=>Du(e)(t,n,r),WO=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Mu(e)(t,n,s)},HO=e=>async(t,n,r)=>Mu(e)(t,n,r),VO=/^[cC][0-9a-z]{6,}$/,KO=/^[0-9a-z]+$/,GO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qO=/^[0-9a-vA-V]{20}$/,ZO=/^[A-Za-z0-9]{27}$/,JO=/^[a-zA-Z0-9_-]{21}$/,YO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,QO=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Kv=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,XO=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tA(){return new RegExp(eA,"u")}const nA=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rA=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,sA=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,iA=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oA=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Fk=/^[A-Za-z0-9_-]*$/,aA=/^https?$/,lA=/^\+[1-9]\d{6,14}$/,Bk="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",cA=new RegExp(`^${Bk}$`);function Uk(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function uA(e){return new RegExp(`^${Uk(e)}$`)}function dA(e){const t=Uk({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Bk}T(?:${r})$`)}const hA=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},fA=/^[^A-Z]*$/,mA=/^[^a-z]*$/,Bn=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),pA=O("$ZodCheckMaxLength",(e,t)=>{var n;Bn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!ap(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const s=r.value;if(s.length<=t.maximum)return;const o=cp(s);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),gA=O("$ZodCheckMinLength",(e,t)=>{var n;Bn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!ap(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const s=r.value;if(s.length>=t.minimum)return;const o=cp(s);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),vA=O("$ZodCheckLengthEquals",(e,t)=>{var n;Bn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!ap(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{const s=r.value,i=s.length;if(i===t.length)return;const o=cp(s),a=i>t.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Iu=O("$ZodCheckStringFormat",(e,t)=>{var n,r;Bn.init(e,t),e._zod.onattach.push(s=>{const i=s._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),yA=O("$ZodCheckRegex",(e,t)=>{Iu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),bA=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=fA),Iu.init(e,t)}),wA=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=mA),Iu.init(e,t)}),xA=O("$ZodCheckIncludes",(e,t)=>{Bn.init(e,t);const n=Au(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(s=>{const i=s._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),kA=O("$ZodCheckStartsWith",(e,t)=>{Bn.init(e,t);const n=new RegExp(`^${Au(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),SA=O("$ZodCheckEndsWith",(e,t)=>{Bn.init(e,t);const n=new RegExp(`.*${Au(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),_A=O("$ZodCheckOverwrite",(e,t)=>{Bn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class EA{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
259`).filter(o=>o),s=Math.min(...r.map(o=>o.length-o.trimStart().length)),i=r.map(o=>o.slice(s)).map(o=>" ".repeat(this.indent*2)+o);for(const o of i)this.content.push(o)}compile(){const t=Function,n=this==null?void 0:this.args,s=[...((this==null?void 0:this.content)??[""]).map(i=>`  ${i}`)];return new t(...n,s.join(`
260`))}}const jA={major:4,minor:4,patch:3},He=O("$ZodType",(e,t)=>{var s;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=jA;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{const i=(a,l,u)=>{let d=xi(a),h;for(const m of l){if(m._zod.def.when){if(OO(a)||!m._zod.def.when(a))continue}else if(d)continue;const f=a.issues.length,y=m._zod.check(a);if(y instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Ai;if(h||y instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await y,a.issues.length!==f&&(d||(d=xi(a,f)))});else{if(a.issues.length===f)continue;d||(d=xi(a,f))}}return h?h.then(()=>a):a},o=(a,l,u)=>{if(xi(a))return a.aborted=!0,a;const d=i(l,r,u);if(d instanceof Promise){if(u.async===!1)throw new Ai;return d.then(h=>e._zod.parse(h,u))}return e._zod.parse(d,u)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){const d=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(h=>o(h,a,l)):o(d,a,l)}const u=e._zod.parse(a,l);if(u instanceof Promise){if(l.async===!1)throw new Ai;return u.then(d=>i(d,r,l))}return i(u,r,l)}}fe(e,"~standard",()=>({validate:i=>{var o;try{const a=MO(e,i);return a.success?{value:a.data}:{issues:(o=a.error)==null?void 0:o.issues}}catch{return IO(e,i).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),hp=O("$ZodString",(e,t)=>{var n;He.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??hA(e._zod.bag),e._zod.parse=(r,s)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ee=O("$ZodStringFormat",(e,t)=>{Iu.init(e,t),hp.init(e,t)}),TA=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=QO),Ee.init(e,t)}),NA=O("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Kv(r))}else t.pattern??(t.pattern=Kv());Ee.init(e,t)}),CA=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=XO),Ee.init(e,t)}),PA=O("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{var r;try{const s=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===aA.source&&!/^https?:\/\//i.test(s)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=s;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),RA=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=tA()),Ee.init(e,t)}),OA=O("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=JO),Ee.init(e,t)}),AA=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=VO),Ee.init(e,t)}),DA=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=KO),Ee.init(e,t)}),MA=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=GO),Ee.init(e,t)}),IA=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=qO),Ee.init(e,t)}),LA=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ZO),Ee.init(e,t)}),$A=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=dA(t)),Ee.init(e,t)}),zA=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=cA),Ee.init(e,t)}),FA=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=uA(t)),Ee.init(e,t)}),BA=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=YO),Ee.init(e,t)}),UA=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=nA),Ee.init(e,t),e._zod.bag.format="ipv4"}),WA=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=rA),Ee.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),HA=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=sA),Ee.init(e,t)}),VA=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=iA),Ee.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,i]=r;if(!i)throw new Error;const o=Number(i);if(`${o}`!==i)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Wk(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const KA=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=oA),Ee.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Wk(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function GA(e){if(!Fk.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Wk(n)}const qA=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Fk),Ee.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{GA(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),ZA=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=lA),Ee.init(e,t)});function JA(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const s=JSON.parse(atob(r));return!("typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const YA=O("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{JA(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),QA=O("$ZodUnknown",(e,t)=>{He.init(e,t),e._zod.parse=n=>n}),XA=O("$ZodNever",(e,t)=>{He.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Gv(e,t,n){e.issues.length&&t.issues.push(...Ik(n,e.issues)),t.value[n]=e.value}const e4=O("$ZodArray",(e,t)=>{He.init(e,t),e._zod.parse=(n,r)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const i=[];for(let o=0;o<s.length;o++){const a=s[o],l=t.element._zod.run({value:a,issues:[]},r);l instanceof Promise?i.push(l.then(u=>Gv(u,n,o))):Gv(l,n,o)}return i.length?Promise.all(i).then(()=>n):n}});function Vc(e,t,n,r,s,i){const o=n in r;if(e.issues.length){if(s&&i&&!o)return;t.issues.push(...Ik(n,e.issues))}if(!o&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Hk(e){var r,s,i,o;const t=Object.keys(e.shape);for(const a of t)if(!((o=(i=(s=(r=e.shape)==null?void 0:r[a])==null?void 0:s._zod)==null?void 0:i.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=_O(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Vk(e,t,n,r,s,i){const o=[],a=s.keySet,l=s.catchall._zod,u=l.def.type,d=l.optin==="optional",h=l.optout==="optional";for(const m in t){if(m==="__proto__"||a.has(m))continue;if(u==="never"){o.push(m);continue}const f=l.run({value:t[m],issues:[]},r);f instanceof Promise?e.push(f.then(y=>Vc(y,n,m,t,d,h))):Vc(f,n,m,t,d,h)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const t4=O("$ZodObject",(e,t)=>{He.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=op(()=>Hk(t));fe(e._zod,"propValues",()=>{const a=t.shape,l={};for(const u in a){const d=a[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const h of d.values)l[u].add(h)}}return l});const s=Hc,i=t.catchall;let o;e._zod.parse=(a,l)=>{o??(o=r.value);const u=a.value;if(!s(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const d=[],h=o.shape;for(const m of o.keys){const f=h[m],y=f._zod.optin==="optional",p=f._zod.optout==="optional",x=f._zod.run({value:u[m],issues:[]},l);x instanceof Promise?d.push(x.then(v=>Vc(v,a,m,u,y,p))):Vc(x,a,m,u,y,p)}return i?Vk(d,u,a,l,r.value,e):d.length?Promise.all(d).then(()=>a):a}}),n4=O("$ZodObjectJIT",(e,t)=>{t4.init(e,t);const n=e._zod.parse,r=op(()=>Hk(t)),s=m=>{var b,k;const f=new EA(["shape","payload","ctx"]),y=r.value,p=S=>{const _=Vv(S);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let v=0;for(const S of y.keys)x[S]=`key_${v++}`;f.write("const newResult = {};");for(const S of y.keys){const _=x[S],E=Vv(S),T=m[S],C=((b=T==null?void 0:T._zod)==null?void 0:b.optin)==="optional",M=((k=T==null?void 0:T._zod)==null?void 0:k.optout)==="optional";f.write(`const ${_} = ${p(S)};`),C&&M?f.write(`
261        if (${_}.issues.length) {
262          if (${E} in input) {
263            payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
264              ...iss,
265              path: iss.path ? [${E}, ...iss.path] : [${E}]
266            })));
267          }
268        }
269        
270        if (${_}.value === undefined) {
271          if (${E} in input) {
272            newResult[${E}] = undefined;
273          }
274        } else {
275          newResult[${E}] = ${_}.value;
276        }
277        
278      `):C?f.write(`
279        if (${_}.issues.length) {
280          payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
281            ...iss,
282            path: iss.path ? [${E}, ...iss.path] : [${E}]
283          })));
284        }
285        
286        if (${_}.value === undefined) {
287          if (${E} in input) {
288            newResult[${E}] = undefined;
289          }
290        } else {
291          newResult[${E}] = ${_}.value;
292        }
293        
294      `):f.write(`
295        const ${_}_present = ${E} in input;
296        if (${_}.issues.length) {
297          payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
298            ...iss,
299            path: iss.path ? [${E}, ...iss.path] : [${E}]
300          })));
301        }
302        if (!${_}_present && !${_}.issues.length) {
303          payload.issues.push({
304            code: "invalid_type",
305            expected: "nonoptional",
306            input: undefined,
307            path: [${E}]
308          });
309        }
310
311        if (${_}_present) {
312          if (${_}.value === undefined) {
313            newResult[${E}] = undefined;
314          } else {
315            newResult[${E}] = ${_}.value;
316          }
317        }
318
319      `)}f.write("payload.value = newResult;"),f.write("return payload;");const g=f.compile();return(S,_)=>g(m,S,_)};let i;const o=Hc,a=!ip.jitless,u=a&&kO.value,d=t.catchall;let h;e._zod.parse=(m,f)=>{h??(h=r.value);const y=m.value;return o(y)?a&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(i||(i=s(t.shape)),m=i(m,f),d?Vk([],y,m,f,h,e):m):n(m,f):(m.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),m)}});function qv(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const s=e.filter(i=>!xi(i));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(o=>Ds(o,r,As())))}),t)}const r4=O("$ZodUnion",(e,t)=>{He.init(e,t),fe(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),fe(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),fe(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),fe(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>lp(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,s)=>{if(n)return n(r,s);let i=!1;const o=[];for(const a of t.options){const l=a._zod.run({value:r.value,issues:[]},s);if(l instanceof Promise)o.push(l),i=!0;else{if(l.issues.length===0)return l;o.push(l)}}return i?Promise.all(o).then(a=>qv(a,r,e,s)):qv(o,r,e,s)}}),s4=O("$ZodIntersection",(e,t)=>{He.init(e,t),e._zod.parse=(n,r)=>{const s=n.value,i=t.left._zod.run({value:s,issues:[]},r),o=t.right._zod.run({value:s,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([l,u])=>Zv(n,l,u)):Zv(n,i,o)}});function xf(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ta(e)&&Ta(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),s={...e,...t};for(const i of r){const o=xf(e[i],t[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};s[i]=o.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r],o=xf(s,i);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Zv(e,t,n){const r=new Map;let s;for(const a of t.issues)if(a.code==="unrecognized_keys"){s??(s=a);for(const l of a.keys)r.has(l)||r.set(l,{}),r.get(l).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const l of a.keys)r.has(l)||r.set(l,{}),r.get(l).r=!0;else e.issues.push(a);const i=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&s&&e.issues.push({...s,keys:i}),xi(e))return e;const o=xf(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const i4=O("$ZodEnum",(e,t)=>{He.init(e,t);const n=Ak(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(s=>SO.has(typeof s)).map(s=>typeof s=="string"?Au(s):s.toString()).join("|")})$`),e._zod.parse=(s,i)=>{const o=s.value;return r.has(o)||s.issues.push({code:"invalid_value",values:n,input:o,inst:e}),s}}),o4=O("$ZodTransform",(e,t)=>{He.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ok(e.constructor.name);const s=t.transform(n.value,n);if(r.async)return(s instanceof Promise?s:Promise.resolve(s)).then(o=>(n.value=o,n.fallback=!0,n));if(s instanceof Promise)throw new Ai;return n.value=s,n.fallback=!0,n}});function Jv(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Kk=O("$ZodOptional",(e,t)=>{He.init(e,t),e._zod.optin="optional",e._zod.optout="optional",fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),fe(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${lp(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const s=n.value,i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Jv(o,s)):Jv(i,s)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),a4=O("$ZodExactOptional",(e,t)=>{Kk.init(e,t),fe(e._zod,"values",()=>t.innerType._zod.values),fe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),l4=O("$ZodNullable",(e,t)=>{He.init(e,t),fe(e._zod,"optin",()=>t.innerType._zod.optin),fe(e._zod,"optout",()=>t.innerType._zod.optout),fe(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${lp(n.source)}|null)$`):void 0}),fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),c4=O("$ZodDefault",(e,t)=>{He.init(e,t),e._zod.optin="optional",fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>Yv(i,t)):Yv(s,t)}});function Yv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const u4=O("$ZodPrefault",(e,t)=>{He.init(e,t),e._zod.optin="optional",fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),d4=O("$ZodNonOptional",(e,t)=>{He.init(e,t),fe(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>Qv(i,e)):Qv(s,e)}});function Qv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const h4=O("$ZodCatch",(e,t)=>{He.init(e,t),e._zod.optin="optional",fe(e._zod,"optout",()=>t.innerType._zod.optout),fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Ds(o,r,As()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>Ds(i,r,As()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),f4=O("$ZodPipe",(e,t)=>{He.init(e,t),fe(e._zod,"values",()=>t.in._zod.values),fe(e._zod,"optin",()=>t.in._zod.optin),fe(e._zod,"optout",()=>t.out._zod.optout),fe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(o=>Pl(o,t.in,r)):Pl(i,t.in,r)}const s=t.in._zod.run(n,r);return s instanceof Promise?s.then(i=>Pl(i,t.out,r)):Pl(s,t.out,r)}});function Pl(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const m4=O("$ZodReadonly",(e,t)=>{He.init(e,t),fe(e._zod,"propValues",()=>t.innerType._zod.propValues),fe(e._zod,"values",()=>t.innerType._zod.values),fe(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),fe(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(Xv):Xv(s)}});function Xv(e){return e.value=Object.freeze(e.value),e}const p4=O("$ZodCustom",(e,t)=>{Bn.init(e,t),He.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,s=t.fn(r);if(s instanceof Promise)return s.then(i=>ey(i,n,r,e));ey(s,n,r,e)}});function ey(e,t,n,r){if(!e){const s={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(s.params=r._zod.def.params),t.issues.push(Na(s))}}var ty;class g4{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const s={...r,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function v4(){return new g4}(ty=globalThis).__zod_globalRegistry??(ty.__zod_globalRegistry=v4());const $o=globalThis.__zod_globalRegistry;function y4(e,t){return new e({type:"string",...J(t)})}function b4(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...J(t)})}function ny(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...J(t)})}function w4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...J(t)})}function x4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(t)})}function k4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(t)})}function S4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(t)})}function _4(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...J(t)})}function E4(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...J(t)})}function j4(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(t)})}function T4(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...J(t)})}function N4(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(t)})}function C4(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...J(t)})}function P4(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...J(t)})}function R4(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(t)})}function O4(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(t)})}function A4(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(t)})}function D4(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(t)})}function M4(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(t)})}function I4(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...J(t)})}function L4(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...J(t)})}function $4(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...J(t)})}function z4(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...J(t)})}function F4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(t)})}function B4(e,t){return new e({type:"string",format:"date",check:"string_format",...J(t)})}function U4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...J(t)})}function W4(e,t){return new e({type:"string",format:"duration",check:"string_format",...J(t)})}function H4(e){return new e({type:"unknown"})}function V4(e,t){return new e({type:"never",...J(t)})}function Gk(e,t){return new pA({check:"max_length",...J(t),maximum:e})}function Kc(e,t){return new gA({check:"min_length",...J(t),minimum:e})}function qk(e,t){return new vA({check:"length_equals",...J(t),length:e})}function K4(e,t){return new yA({check:"string_format",format:"regex",...J(t),pattern:e})}function G4(e){return new bA({check:"string_format",format:"lowercase",...J(e)})}function q4(e){return new wA({check:"string_format",format:"uppercase",...J(e)})}function Z4(e,t){return new xA({check:"string_format",format:"includes",...J(t),includes:e})}function J4(e,t){return new kA({check:"string_format",format:"starts_with",...J(t),prefix:e})}function Y4(e,t){return new SA({check:"string_format",format:"ends_with",...J(t),suffix:e})}function po(e){return new _A({check:"overwrite",tx:e})}function Q4(e){return po(t=>t.normalize(e))}function X4(){return po(e=>e.trim())}function eD(){return po(e=>e.toLowerCase())}function tD(){return po(e=>e.toUpperCase())}function nD(){return po(e=>xO(e))}function rD(e,t,n){return new e({type:"array",element:t,...J(n)})}function sD(e,t,n){return new e({type:"custom",check:"custom",fn:t,...J(n)})}function iD(e,t){const n=oD(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(Na(s,r.value,n._zod.def));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Na(i))}},e(r.value,r)),t);return n}function oD(e,t){const n=new Bn({check:"custom",...J(t)});return n._zod.check=e,n}function Zk(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??$o,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function et(e,t,n={path:[],schemaPath:[]}){var d,h;var r;const s=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);const a=(h=(d=e._zod).toJSONSchema)==null?void 0:h.call(d);if(a)o.schema=a;else{const m={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,m);else{const y=o.schema,p=t.processors[s.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);p(e,t,y,m)}const f=e._zod.parent;f&&(o.ref||(o.ref=f),et(f,t,m),t.seen.get(f).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),t.io==="input"&&ut(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&"_prefault"in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Jk(e,t){var o,a,l,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const d of e.seen.entries()){const h=(o=e.metadataRegistry.get(d[0]))==null?void 0:o.id;if(h){const m=r.get(h);if(m&&m!==d[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,d[0])}}const s=d=>{var p;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(p=e.external.registry.get(d[0]))==null?void 0:p.id,v=e.external.uri??(b=>b);if(x)return{ref:v(x)};const g=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=g,{defId:g,ref:`${v("__shared")}#/${h}/${g}`}}if(d[1]===n)return{ref:"#"};const f=`#/${h}/`,y=d[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:f+y}},i=d=>{if(d[1].schema.$ref)return;const h=d[1],{ref:m,defId:f}=s(d);h.def={...h.schema},f&&(h.defId=f);const y=h.schema;for(const p in y)delete y[p];y.$ref=m};if(e.cycles==="throw")for(const d of e.seen.entries()){const h=d[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root>
320
321Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of e.seen.entries()){const h=d[1];if(t===d[0]){i(d);continue}if(e.external){const f=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(t!==d[0]&&f){i(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){i(d);continue}if(h.cycle){i(d);continue}if(h.count>1&&e.reused==="ref"){i(d);continue}}}function Yk(e,t){var a,l,u,d;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const m=e.seen.get(h);if(m.ref===null)return;const f=m.def??m.schema,y={...f},p=m.ref;if(m.ref=null,p){r(p);const v=e.seen.get(p),g=v.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(g)):Object.assign(f,g),Object.assign(f,y),h._zod.parent===p)for(const k in f)k==="$ref"||k==="allOf"||k in y||delete f[k];if(g.$ref&&v.def)for(const k in f)k==="$ref"||k==="allOf"||k in v.def&&JSON.stringify(f[k])===JSON.stringify(v.def[k])&&delete f[k]}const x=h._zod.parent;if(x&&x!==p){r(x);const v=e.seen.get(x);if(v!=null&&v.schema.$ref&&(f.$ref=v.schema.$ref,v.def))for(const g in f)g==="$ref"||g==="allOf"||g in v.def&&JSON.stringify(f[g])===JSON.stringify(v.def[g])&&delete f[g]}e.override({zodSchema:h,jsonSchema:f,path:m.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,(a=e.external)!=null&&a.uri){const h=(l=e.external.registry.get(t))==null?void 0:l.id;if(!h)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(h)}Object.assign(s,n.def??n.schema);const i=(u=e.metadataRegistry.get(t))==null?void 0:u.id;i!==void 0&&s.id===i&&delete s.id;const o=((d=e.external)==null?void 0:d.defs)??{};for(const h of e.seen.entries()){const m=h[1];m.def&&m.defId&&(m.def.id===m.defId&&delete m.def.id,o[m.defId]=m.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?s.$defs=o:s.definitions=o);try{const h=JSON.parse(JSON.stringify(s));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Gc(t,"input",e.processors),output:Gc(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function ut(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ut(r.element,n);if(r.type==="set")return ut(r.valueType,n);if(r.type==="lazy")return ut(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return ut(r.innerType,n);if(r.type==="intersection")return ut(r.left,n)||ut(r.right,n);if(r.type==="record"||r.type==="map")return ut(r.keyType,n)||ut(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ut(r.in,n)||ut(r.out,n);if(r.type==="object"){for(const s in r.shape)if(ut(r.shape[s],n))return!0;return!1}if(r.type==="union"){for(const s of r.options)if(ut(s,n))return!0;return!1}if(r.type==="tuple"){for(const s of r.items)if(ut(s,n))return!0;return!!(r.rest&&ut(r.rest,n))}return!1}const aD=(e,t={})=>n=>{const r=Zk({...n,processors:t});return et(e,r),Jk(r,e),Yk(r,e)},Gc=(e,t,n={})=>r=>{const{libraryOptions:s,target:i}=r??{},o=Zk({...s??{},target:i,io:t,processors:n});return et(e,o),Jk(o,e),Yk(o,e)},lD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},cD=(e,t,n,r)=>{const s=n;s.type="string";const{minimum:i,maximum:o,format:a,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(s.minLength=i),typeof o=="number"&&(s.maxLength=o),a&&(s.format=lD[a]??a,s.format===""&&delete s.format,a==="time"&&delete s.format),u&&(s.contentEncoding=u),l&&l.size>0){const d=[...l];d.length===1?s.pattern=d[0].source:d.length>1&&(s.allOf=[...d.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},uD=(e,t,n,r)=>{n.not={}},dD=(e,t,n,r)=>{},hD=(e,t,n,r)=>{const s=e._zod.def,i=Ak(s.entries);i.every(o=>typeof o=="number")&&(n.type="number"),i.every(o=>
vendor: 4,988 bytes, line 321
321typeof o=="string")&&(n.type="string"),n.enum=i},fD=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},mD=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},pD=(e,t,n,r)=>{const s=n,i=e._zod.def,{minimum:o,maximum:a}=e._zod.bag;typeof o=="number"&&(s.minItems=o),typeof a=="number"&&(s.maxItems=a),s.type="array",s.items=et(i.element,t,{...r,path:[...r.path,"items"]})},gD=(e,t,n,r)=>{var u;const s=n,i=e._zod.def;s.type="object",s.properties={};const o=i.shape;for(const d in o)s.properties[d]=et(o[d],t,{...r,path:[...r.path,"properties",d]});const a=new Set(Object.keys(o)),l=new Set([...a].filter(d=>{const h=i.shape[d]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));l.size>0&&(s.required=Array.from(l)),((u=i.catchall)==null?void 0:u._zod.def.type)==="never"?s.additionalProperties=!1:i.catchall?i.catchall&&(s.additionalProperties=et(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},vD=(e,t,n,r)=>{const s=e._zod.def,i=s.inclusive===!1,o=s.options.map((a,l)=>et(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=o:n.anyOf=o},yD=(e,t,n,r)=>{const s=e._zod.def,i=et(s.left,t,{...r,path:[...r.path,"allOf",0]}),o=et(s.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(i)?i.allOf:[i],...a(o)?o.allOf:[o]];n.allOf=l},bD=(e,t,n,r)=>{const s=e._zod.def,i=et(s.innerType,t,r),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=s.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},wD=(e,t,n,r)=>{const s=e._zod.def;et(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType},xD=(e,t,n,r)=>{const s=e._zod.def;et(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},kD=(e,t,n,r)=>{const s=e._zod.def;et(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},SD=(e,t,n,r)=>{const s=e._zod.def;et(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType;let o;try{o=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},_D=(e,t,n,r)=>{const s=e._zod.def,i=s.in._zod.traits.has("$ZodTransform"),o=t.io==="input"?i?s.out:s.in:s.out;et(o,t,r);const a=t.seen.get(e);a.ref=o},ED=(e,t,n,r)=>{const s=e._zod.def;et(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,n.readOnly=!0},Qk=(e,t,n,r)=>{const s=e._zod.def;et(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType},jD=O("ZodISODateTime",(e,t)=>{$A.init(e,t),Ce.init(e,t)});function TD(e){return F4(jD,e)}const ND=O("ZodISODate",(e,t)=>{zA.init(e,t),Ce.init(e,t)});function CD(e){return B4(ND,e)}const PD=O("ZodISOTime",(e,t)=>{FA.init(e,t),Ce.init(e,t)});function RD(e){return U4(PD,e)}const OD=O("ZodISODuration",(e,t)=>{BA.init(e,t),Ce.init(e,t)});function AD(e){return W4(OD,e)}const DD=(e,t)=>{$k.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>DO(e,n)},flatten:{value:n=>AO(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,wf,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,wf,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jt=O("ZodError",DD,{Parent:Error}),MD=up(Jt),ID=dp(Jt),LD=Du(Jt),$D=Mu(Jt),zD=LO(Jt),FD=$O(Jt),BD=zO(Jt),UD=FO(Jt),WD=BO(Jt),HD=UO(Jt),VD=WO(Jt),KD=HO(Jt),ry=new WeakMap;function Lu(e,t,n){const r=Object.getPrototypeOf(e);let s=ry.get(r);if(s||(s=new Set,ry.set(r,s)),!s.has(t)){s.add(t);for(const i in n){const o=n[i];Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){const a=o.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}const Ve=O("ZodType",(e,t)=>(He.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Gc(e,"input"),output:Gc(e,"output")}}),e.toJSONSchema=aD(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>MD(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>LD(e,n,r),e.parseAsync=async(n,r)=>ID(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>$D(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>zD(e,n,r),e.decode=(n,r)=>FD(e,n,r),e.encodeAsync=async(n,r)=>BD(e,n,r),e.decodeAsync=async(n,r)=>UD(e,n,r),e.safeEncode=(n,r)=>WD(e,n,r),e.safeDecode=(n,r)=>HD(e,n,r),e.safeEncodeAsync=async(n,r)=>VD(e,n,r),e.safeDecodeAsync=async(n,r)=>KD(e,n,r),Lu(e,"ZodType",{check(...n){const r=this.def;return this.clone(es(r,{checks:[...r.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return ts(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(zM(n,r))},superRefine(n,r){return this.check(FM(n,r))}
vendor: 4,302 bytes, line 321
321,overwrite(n){return this.check(po(n))},optional(){return oy(this)},exactOptional(){return jM(this)},nullable(){return ay(this)},nullish(){return oy(ay(this))},nonoptional(n){return OM(this,n)},array(){return pM(this)},or(n){return bM([this,n])},and(n){return xM(this,n)},transform(n){return ly(this,_M(n))},default(n){return CM(this,n)},prefault(n){return RM(this,n)},catch(n){return DM(this,n)},pipe(n){return ly(this,n)},readonly(){return LM(this)},describe(n){const r=this.clone();return $o.add(r,{description:n}),r},meta(...n){if(n.length===0)return $o.get(this);const r=this.clone();return $o.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=$o.get(e))==null?void 0:n.description},configurable:!0}),e)),Xk=O("_ZodString",(e,t)=>{hp.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(r,s,i)=>cD(e,r,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Lu(e,"_ZodString",{regex(...r){return this.check(K4(...r))},includes(...r){return this.check(Z4(...r))},startsWith(...r){return this.check(J4(...r))},endsWith(...r){return this.check(Y4(...r))},min(...r){return this.check(Kc(...r))},max(...r){return this.check(Gk(...r))},length(...r){return this.check(qk(...r))},nonempty(...r){return this.check(Kc(1,...r))},lowercase(r){return this.check(G4(r))},uppercase(r){return this.check(q4(r))},trim(){return this.check(X4())},normalize(...r){return this.check(Q4(...r))},toLowerCase(){return this.check(eD())},toUpperCase(){return this.check(tD())},slugify(){return this.check(nD())}})}),GD=O("ZodString",(e,t)=>{hp.init(e,t),Xk.init(e,t),e.email=n=>e.check(b4(qD,n)),e.url=n=>e.check(_4(ZD,n)),e.jwt=n=>e.check(z4(uM,n)),e.emoji=n=>e.check(E4(JD,n)),e.guid=n=>e.check(ny(sy,n)),e.uuid=n=>e.check(w4(Rl,n)),e.uuidv4=n=>e.check(x4(Rl,n)),e.uuidv6=n=>e.check(k4(Rl,n)),e.uuidv7=n=>e.check(S4(Rl,n)),e.nanoid=n=>e.check(j4(YD,n)),e.guid=n=>e.check(ny(sy,n)),e.cuid=n=>e.check(T4(QD,n)),e.cuid2=n=>e.check(N4(XD,n)),e.ulid=n=>e.check(C4(eM,n)),e.base64=n=>e.check(I4(aM,n)),e.base64url=n=>e.check(L4(lM,n)),e.xid=n=>e.check(P4(tM,n)),e.ksuid=n=>e.check(R4(nM,n)),e.ipv4=n=>e.check(O4(rM,n)),e.ipv6=n=>e.check(A4(sM,n)),e.cidrv4=n=>e.check(D4(iM,n)),e.cidrv6=n=>e.check(M4(oM,n)),e.e164=n=>e.check($4(cM,n)),e.datetime=n=>e.check(TD(n)),e.date=n=>e.check(CD(n)),e.time=n=>e.check(RD(n)),e.duration=n=>e.check(AD(n))});function Oo(e){return y4(GD,e)}const Ce=O("ZodStringFormat",(e,t)=>{Ee.init(e,t),Xk.init(e,t)}),qD=O("ZodEmail",(e,t)=>{CA.init(e,t),Ce.init(e,t)}),sy=O("ZodGUID",(e,t)=>{TA.init(e,t),Ce.init(e,t)}),Rl=O("ZodUUID",(e,t)=>{NA.init(e,t),Ce.init(e,t)}),ZD=O("ZodURL",(e,t)=>{PA.init(e,t),Ce.init(e,t)}),JD=O("ZodEmoji",(e,t)=>{RA.init(e,t),Ce.init(e,t)}),YD=O("ZodNanoID",(e,t)=>{OA.init(e,t),Ce.init(e,t)}),QD=O("ZodCUID",(e,t)=>{AA.init(e,t),Ce.init(e,t)}),XD=O("ZodCUID2",(e,t)=>{DA.init(e,t),Ce.init(e,t)}),eM=O("ZodULID",(e,t)=>{MA.init(e,t),Ce.init(e,t)}),tM=O("ZodXID",(e,t)=>{IA.init(e,t),Ce.init(e,t)}),nM=O("ZodKSUID",(e,t)=>{LA.init(e,t),Ce.init(e,t)}),rM=O("ZodIPv4",(e,t)=>{UA.init(e,t),Ce.init(e,t)}),sM=O("ZodIPv6",(e,t)=>{WA.init(e,t),Ce.init(e,t)}),iM=O("ZodCIDRv4",(e,t)=>{HA.init(e,t),Ce.init(e,t)}),oM=O("ZodCIDRv6",(e,t)=>{VA.init(e,t),Ce.init(e,t)}),aM=O("ZodBase64",(e,t)=>{KA.init(e,t),Ce.init(e,t)}),lM=O("ZodBase64URL",(e,t)=>{qA.init(e,t),Ce.init(e,t)}),cM=O("ZodE164",(e,t)=>{ZA.init(e,t),Ce.init(e,t)}),uM=O("ZodJWT",(e,t)=>{YA.init(e,t),Ce.init(e,t)}),dM=O("ZodUnknown",(e,t)=>{QA.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>dD()});function iy(){return H4(dM)}const hM=O("ZodNever",(e,t)=>{XA.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>uD(e,n,r)});function fM(e){return V4(hM,e)}const mM=O("ZodArray",(e,t)=>{e4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>pD(e,n,r,s),e.element=t.element,Lu(e,"ZodArray",{min(n,r){return this.check(Kc(n,r))},nonempty(n){return this.check(Kc(1,n))},max(n,r){return this.check(Gk(n,r))},length(n,r){return this.check(qk(n,r))},unwrap(){return this.element}})});function pM(e,t){return rD(mM,e,t)}const gM=O("ZodObject",(e,t)=>{n4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>
321gD(e,n,r,s),fe(e,"shape",()=>t.shape),Lu(e,"ZodObject",{keyof(){return kM(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:iy()})},loose(){return this.clone({...this._zod.def,catchall:iy()})},strict(){return this.clone({...this._zod.def,catchall:fM()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return TO(this,n)},safeExtend(n){return NO(this,n)},merge(n){return CO(this,n)},pick(n){return EO(this,n)},omit(n){return jO(this,n)},partial(...n){return PO(e1,this,n[0])},required(...n){return RO(t1,this,n[0])}})});function vM(e,t){const n={type:"object",shape:e??{},...J(t)};return new gM(n)}const yM=O("ZodUnion",(e,t)=>{r4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>vD(e,n,r,s),e.options=t.options});function bM(e,t){return new yM({type:"union",options:e,...J(t)})}const wM=O("ZodIntersection",(e,t)=>{s4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>yD(e,n,r,s)});function xM(e,t){return new wM({type:"intersection",left:e,right:t})}const kf=O("ZodEnum",(e,t)=>{i4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(r,s,i)=>hD(e,r,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,s)=>{const i={};for(const o of r)if(n.has(o))i[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new kf({...t,checks:[],...J(s),entries:i})},e.exclude=(r,s)=>{const i={...t.entries};for(const o of r)if(n.has(o))delete i[o];else throw new Error(`Key ${o} not found in enum`);return new kf({...t,checks:[],...J(s),entries:i})}});function kM(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new kf({type:"enum",entries:n,...J(t)})}const SM=O("ZodTransform",(e,t)=>{o4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>mD(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ok(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(Na(i,n.value,t));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),n.issues.push(Na(o))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=s,n.fallback=!0,n)}});function _M(e){return new SM({type:"transform",transform:e})}const e1=O("ZodOptional",(e,t)=>{Kk.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Qk(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function oy(e){return new e1({type:"optional",innerType:e})}const EM=O("ZodExactOptional",(e,t)=>{a4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Qk(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function jM(e){return new EM({type:"optional",innerType:e})}const TM=O("ZodNullable",(e,t)=>{l4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>
321bD(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function ay(e){return new TM({type:"nullable",innerType:e})}const NM=O("ZodDefault",(e,t)=>{c4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>xD(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function CM(e,t){return new NM({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Mk(t)}})}const PM=O("ZodPrefault",(e,t)=>{u4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>kD(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function RM(e,t){return new PM({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Mk(t)}})}const t1=O("ZodNonOptional",(e,t)=>{d4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>wD(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function OM(e,t){return new t1({type:"nonoptional",innerType:e,...J(t)})}const AM=O("ZodCatch",(e,t)=>{h4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>SD(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function DM(e,t){return new AM({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const MM=O("ZodPipe",(e,t)=>{f4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>_D(e,n,r,s),e.in=t.in,e.out=t.out});function ly(e,t){return new MM({type:"pipe",in:e,out:t})}const IM=O("ZodReadonly",(e,t)=>{m4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>ED(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function LM(e){return new IM({type:"readonly",innerType:e})}const $M=O("ZodCustom",(e,t)=>{p4.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,r,s)=>fD(e,n)});function zM(e,t={}){return sD($M,e,t)}function FM(e,t){return iD(e,t)}function ae(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Mt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ft(e,t){const n=ae(e);return isNaN(t)?Mt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function yn(e,t){const n=ae(e);if(isNaN(t))return Mt(e,NaN);if(!t)return n;const r=n.getDate(),s=Mt(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const i=s.getDate();return r>=i?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}const fp=6048e5,BM=864e5;let UM={};function Ja(){return UM}function $n(e,t){var a,l,u,d;const n=Ja(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=ae(e),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Ms(e){return $n(e,{weekStartsOn:1})}function n1(e){const t=ae(e),n=t.getFullYear(),r=Mt(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=Ms(r),i=Mt(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Ms(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function to(e){const t=ae(e);return t.setHours(0,0,0,0),t}function qc(e){const t=ae(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Rn(e,t){const n=to(e),r=to(t),s=+n-qc(n),i=+r-qc(r);return Math.round((s-i)/BM)}function WM(e){const t=n1(e),n=Mt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ms(n)}function Sf(e,t){const n=t*7;return ft(e,n)}function HM(e,t){return yn(e,t*12)}function VM(e){let t;return e.forEach(function(n){const r=ae(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function KM(e){let t;return e.forEach(n=>{const r=ae(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function kt(e,t){const n=to(e),r=to(t);return+n==+r}function mp(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function GM(e){if(!mp(e)&&typeof e!="number")return!1;const t=ae(e);return!isNaN(Number(t))}function Ca(e,t){const n=ae(e),r=ae(t),s=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return s*12+i}function qM(e,t,n){const r=$n(e,n),s=$n(t,n),i=+r-qc(r),o=+s-qc(s);return Math.round((i-o)/fp)}function pp(e){const t=ae(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function jt(e){const t=ae(e);return t.setDate(1),t.setHours(0,0,0,0),t}function r1(e){const t=ae(e),n=Mt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function gp(e,t){var a,l,u,d;const n=Ja(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=ae(e),i=s.getDay(),o=(i<r?-7:0)+6-(i-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function s1(e){return gp(e,{weekStartsOn:1}
vendor: 13,722 bytes, line 321
321)}const ZM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},JM=(e,t,n)=>{let r;const s=ZM[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Gt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const YM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},QM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},XM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eI={date:Gt({formats:YM,defaultWidth:"full"}),time:Gt({formats:QM,defaultWidth:"full"}),dateTime:Gt({formats:XM,defaultWidth:"full"})},tI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nI=(e,t,n,r)=>tI[e];function $e(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const rI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},iI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},oI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},aI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cI=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},uI={ordinalNumber:cI,era:$e({values:rI,defaultWidth:"wide"}),quarter:$e({values:sI,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:iI,defaultWidth:"wide"}),day:$e({values:oI,defaultWidth:"wide"}),dayPeriod:$e({values:aI,defaultWidth:"wide",formattingValues:lI,defaultFormattingWidth:"wide"})};function ze(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?hI(a,h=>h.test(o)):dI(a,h=>h.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function dI(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function hI(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function $u(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const fI=/^(\d+)(th|st|nd|rd)?/i,mI=/\d+/i,pI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gI={any:[/^b/i,/^(a|c)/i]},vI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yI={any:[/1/i,/2/i,/3/i,/4/i]},bI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},wI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},xI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},SI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_I={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},EI={ordinalNumber:$u({matchPattern:fI,parsePattern:mI,valueCallback:e=>parseInt(e,10)}),era:ze({matchPatterns:pI,defaultMatchWidth:"wide",parsePatterns:gI,defaultParseWidth:"any"}),quarter:ze({matchPatterns:vI,defaultMatchWidth:"wide",parsePatterns:yI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ze({matchPatterns:bI,defaultMatchWidth:"wide",parsePatterns:wI,defaultParseWidth:"any"}),day:ze({matchPatterns:xI,defaultMatchWidth:"wide",parsePatterns:kI,defaultParseWidth:"any"}),dayPeriod:ze({matchPatterns:SI,defaultMatchWidth:"any",parsePatterns:_I,defaultParseWidth:"any"})},vp={code:"en-US",formatDistance:JM,formatLong:eI,formatRelative:nI,localize:uI,match:EI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function jI(e){const t=ae(e);return Rn(t,r1(t))+1}function i1(e){const t=ae(e),n=+Ms(t)-+WM(t);return Math.round(n/fp)+1}function o1(e,t){var d,h,m,f;const n=ae(e),r=n.getFullYear(),s=Ja(),i=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((f=(m=s.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,o=Mt(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=$n(o,t),l=Mt(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=$n(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function TI(e,t){var a,l,u,d;const n=Ja(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=o1(e,t),i=Mt(e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),$n(i,t)}function a1(e,t){const n=ae(e),r=+$n(n,t)-+TI(n,t);return Math.round(r/fp)+1}function ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const wr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ue(n+1,2)},d(e,t){return ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ue(s,t.length)}},Js={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cy={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return wr.y(e,t)},Y:function(e,t,n,r){const s=o1(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return ue(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):ue(i,t.length)},R:function(e,t){const n=n1(e);return ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return wr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=a1(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):ue(s,t.length)},I:function(e,t,n){const r=i1(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):wr.d(e,t)},D:function(e,t,n){const r=jI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ue(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ue(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return ue(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Js.noon:r===0?s=Js.midnight:s=r/12>
vendor: 4,693 bytes, line 321
321=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Js.evening:r>=12?s=Js.afternoon:r>=4?s=Js.morning:s=Js.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return wr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):wr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):wr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):wr.s(e,t)},S:function(e,t){return wr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dy(r);case"XXXX":case"XX":return ds(r);case"XXXXX":case"XXX":default:return ds(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dy(r);case"xxxx":case"xx":return ds(r);case"xxxxx":case"xxx":default:return ds(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uy(r,":");case"OOOO":default:return"GMT"+ds(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uy(r,":");case"zzzz":default:return"GMT"+ds(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ue(r,t.length)},T:function(e,t,n){const r=e.getTime();return ue(r,t.length)}};function uy(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+ue(i,2)}function dy(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):ds(e,t)}function ds(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=ue(Math.trunc(r/60),2),i=ue(r%60,2);return n+s+t+i}const hy=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},l1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},NI=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return hy(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",hy(r,t)).replace("{{time}}",l1(s,t))},CI={p:l1,P:NI},PI=/^D+$/,RI=/^Y+$/,OI=["D","DD","YY","YYYY"];function AI(e){return PI.test(e)}function DI(e){return RI.test(e)}function MI(e,t,n){const r=II(e,t,n);if(console.warn(r),OI.includes(e))throw new RangeError(r)}function II(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const LI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$I=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zI=/^'([^]*?)'?$/,FI=/''/g,BI=/[a-zA-Z]/;function Mn(e,t,n){var d,h,m,f,y,p,x,v;const r=Ja(),s=(n==null?void 0:n.locale)??r.locale??vp,i=(n==null?void 0:n.firstWeekContainsDate)??((h=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(m=r.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(x=r.locale)==null?void 0:x.options)==null?void 0:v.weekStartsOn)??0,a=ae(e);if(!GM(a))throw new RangeError("Invalid time value");let l=t.match($I).map(g=>{const b=g[0];if(b==="p"||b==="P"){const k=CI[b];return k(g,s.formatLong)}return g}).join("").match(LI).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const b=g[0];if(b==="'")return{isToken:!1,value:UI(g)};if(cy[b])return{isToken:!0,value:g};
321if(b.match(BI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:g}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(g=>{if(!g.isToken)return g.value;const b=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&DI(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&AI(b))&&MI(b,t,String(e));const k=cy[b[0]];return k(a,b,s.localize,u)}).join("")}function UI(e){const t=e.match(zI);return t?t[1].replace(FI,"'"):e}function WI(e){const t=ae(e),n=t.getFullYear(),r=t.getMonth(),s=Mt(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function HI(e){return Math.trunc(+ae(e)/1e3)}function VI(e){const t=ae(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function KI(e,t){return qM(VI(e),jt(e),t)+1}function _f(e,t){const n=ae(e),r=ae(t);return n.getTime()>r.getTime()}function c1(e,t){const n=ae(e),r=ae(t);return+n<+r}function yp(e,t){const n=ae(e),r=ae(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function GI(e,t){const n=ae(e),r=ae(t);return n.getFullYear()===r.getFullYear()}function Ld(e,t){return ft(e,-t)}function $d(e,t){const n=ae(e),r=n.getFullYear(),s=n.getDate(),i=Mt(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const o=WI(i);return n.setMonth(t,Math.min(s,o)),n}function fy(e,t){const n=ae(e);return isNaN(+n)?Mt(e,NaN):(n.setFullYear(t),n)}const qI={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},ZI=(e,t,n)=>{let r;const s=qI[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},JI={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},YI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},QI={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},XI={date:Gt({formats:JI,defaultWidth:"full"}),time:Gt({formats:YI,defaultWidth:"full"}),dateTime:Gt({formats:QI,defaultWidth:"full"})},eL={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},tL=(e,t,n,r)=>eL[e],nL={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},rL={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},sL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},iL={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},oL={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},aL={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},lL=(e,t)=>Number(e)+".",cL={ordinalNumber:lL,era:$e({values:nL,defaultWidth:"wide"}),quarter:$e({values:rL,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:sL,defaultWidth:"wide"}),day:$e({values:iL,defaultWidth:"wide"}),dayPeriod:$e({values:oL,defaultWidth:"wide",formattingValues:aL,defaultFormattingWidth:"wide"})},uL=/^(\d+)(\.)?/i,dL=/\d+/i,hL={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk t
321idsregning|e.Kr.|vesterlandsk tidsregning)/i},fL={any:[/^f/i,/^(v|e)/i]},mL={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},pL={any:[/1/i,/2/i,/3/i,/4/i]},gL={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},vL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yL={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},bL={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},wL={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},xL={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},kL={ordinalNumber:$u({matchPattern:uL,parsePattern:dL,valueCallback:e=>parseInt(e,10)}),era:ze({matchPatterns:hL,defaultMatchWidth:"wide",parsePatterns:fL,defaultParseWidth:"any"}),quarter:ze({matchPatterns:mL,defaultMatchWidth:"wide",parsePatterns:pL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ze({matchPatterns:gL,defaultMatchWidth:"wide",parsePatterns:vL,defaultParseWidth:"any"}),day:ze({matchPatterns:yL,defaultMatchWidth:"wide",parsePatterns:bL,defaultParseWidth:"any"}),dayPeriod:ze({matchPatterns:wL,defaultMatchWidth:"any",parsePatterns:xL,defaultParseWidth:"any"})},SL={code:"da",formatDistance:ZI,formatLong:XI,formatRelative:tL,localize:cL,match:kL,options:{weekStartsOn:1,firstWeekContainsDate:4}},my={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},_L=(e,t,n)=>{let r;const s=n!=null&&n.addSuffix?my[e].withPreposition:my[e].standalone;return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},EL={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},jL={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},TL={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},NL={date:Gt({formats:EL,defaultWidth:"full"}),time:Gt({formats:jL,defaultWidth:"full"}),dateTime:Gt({formats:TL,defaultWidth:"full"})},CL={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},PL=(e,t,n,r)=>CL[e],RL={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},OL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Ef={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},AL={narrow:Ef.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Ef.wide},DL={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},ML={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nac
321hm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},IL={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},LL=e=>Number(e)+".",$L={ordinalNumber:LL,era:$e({values:RL,defaultWidth:"wide"}),quarter:$e({values:OL,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:Ef,formattingValues:AL,defaultWidth:"wide"}),day:$e({values:DL,defaultWidth:"wide"}),dayPeriod:$e({values:ML,defaultWidth:"wide",formattingValues:IL,defaultFormattingWidth:"wide"})},zL=/^(\d+)(\.)?/i,FL=/\d+/i,BL={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},UL={any:[/^v/i,/^n/i]},WL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},HL={any:[/1/i,/2/i,/3/i,/4/i]},VL={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},KL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},GL={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},qL={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},ZL={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},JL={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},YL={ordinalNumber:$u({matchPattern:zL,parsePattern:FL,valueCallback:e=>parseInt(e)}),era:ze({matchPatterns:BL,defaultMatchWidth:"wide",parsePatterns:UL,defaultParseWidth:"any"}),quarter:ze({matchPatterns:WL,defaultMatchWidth:"wide",parsePatterns:HL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ze({matchPatterns:VL,defaultMatchWidth:"wide",parsePatterns:KL,defaultParseWidth:"any"}),day:ze({matchPatterns:GL,defaultMatchWidth:"wide",parsePatterns:qL,defaultParseWidth:"any"}),dayPeriod:ze({matchPatterns:ZL,defaultMatchWidth:"wide",parsePatterns:JL,defaultParseWidth:"any"})},QL={code:"de",formatDistance:_L,formatLong:NL,formatRelative:PL,localize:$L,match:YL,options:{weekStartsOn:1,firstWeekContainsDate:4}},XL={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},e$=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],t$=(e,t,n)=>{let r;const s=XL[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t<13?e$[t]:String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" sedan":r},n$={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"}
321,r$={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},s$={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},i$={date:Gt({formats:n$,defaultWidth:"full"}),time:Gt({formats:r$,defaultWidth:"full"}),dateTime:Gt({formats:s$,defaultWidth:"full"})},o$={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},a$=(e,t,n,r)=>o$[e],l$={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},c$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},u$={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},d$={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},h$={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},f$={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},m$=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+":a"}return n+":e"},p$={ordinalNumber:m$,era:$e({values:l$,defaultWidth:"wide"}),quarter:$e({values:c$,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:u$,defaultWidth:"wide"}),day:$e({values:d$,defaultWidth:"wide"}),dayPeriod:$e({values:h$,defaultWidth:"wide",formattingValues:f$,defaultFormattingWidth:"wide"})},g$=/^(\d+)(:a|:e)?/i,v$=/\d+/i,y$={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},b$={any:[/^f/i,/^[ev]/i]},w$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},x$={any:[/1/i,/2/i,/3/i,/4/i]},k$={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},S$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_$={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},E$={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},j$={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},T$={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},N$={ordinalNumber:$u({matchPattern:g$,parsePattern:v$,valueCallback:e=>parseInt(e,10)}),era:ze({matchPatterns:y$,defaultMatchWidth:"wide",parsePatterns:b$,defaultParseWidth:"any"}),quarter:ze({matchPatterns:w$,defaultMatchWidth:"wide",parsePatterns:x$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ze({matchPatterns:k$,defaultMatchWidth:"wide",parsePatterns:S$,defaultParseWidth:"any"}),day:ze({matchPatterns:_$,defaultMatchWidth:"wide",parsePatterns:E$,defaultParseWidth:"any"}),dayPeriod:ze({matchPatterns:j$,defaultMatchWidth:"any",parsePatterns:T$,defaultParseWidth:"any"})},C$={code:"sv",formatDistance:t$,formatLong:i$,formatRelative:a$,localize:p$,match:N$,options:{weekStartsOn:1,firstWeekContainsDate:4}},er=w.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:ve("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));er.displayName="Input";const u1=w.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:ve("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
321ing-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:n,...t}));u1.displayName="Textarea";var P$="Label",d1=w.forwardRef((e,t)=>c.jsx(De.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));d1.displayName=P$;var h1=d1;const R$=ku("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ut=w.forwardRef(({className:e,...t},n)=>c.jsx(h1,{ref:n,className:ve(R$(),e),...t}));Ut.displayName=h1.displayName;function O$(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var zu="Checkbox",[A$,G6]=oo(zu),[D$,bp]=A$(zu);function M$(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:s,disabled:i,form:o,name:a,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:h}=e,[m,f]=Lm({prop:n,defaultProp:s??!1,onChange:l,caller:zu}),[y,p]=w.useState(null),[x,v]=w.useState(null),g=w.useRef(!1),b=y?!!o||!!y.closest("form"):!0,k={checked:m,disabled:i,setChecked:f,control:y,setControl:p,name:a,form:o,value:d,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:Kr(s)?!1:s,isFormControl:b,bubbleInput:x,setBubbleInput:v};return c.jsx(D$,{scope:t,...k,children:I$(h)?h(k):r})}var f1="CheckboxTrigger",m1=w.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},s)=>{const{control:i,value:o,disabled:a,checked:l,required:u,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:m,isFormControl:f,bubbleInput:y}=bp(f1,e),p=lt(s,d),x=w.useRef(l);return w.useEffect(()=>{const v=i==null?void 0:i.form;if(v){const g=()=>h(x.current);return v.addEventListener("reset",g),()=>v.removeEventListener("reset",g)}},[i,h]),c.jsx(De.button,{type:"button",role:"checkbox","aria-checked":Kr(l)?"mixed":l,"aria-required":u,"data-state":b1(l),"data-disabled":a?"":void 0,disabled:a,value:o,...r,ref:p,onKeyDown:pe(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:pe(n,v=>{h(g=>Kr(g)?!0:!g),y&&f&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})})});m1.displayName=f1;var wp=w.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:o,disabled:a,value:l,onCheckedChange:u,form:d,...h}=e;return c.jsx(M$,{__scopeCheckbox:n,checked:s,defaultChecked:i,disabled:a,required:o,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:m})=>c.jsxs(c.Fragment,{children:[c.jsx(m1,{...h,ref:t,__scopeCheckbox:n}),m&&c.jsx(y1,{__scopeCheckbox:n})]})})});wp.displayName=zu;var p1="CheckboxIndicator",g1=w.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...s}=e,i=bp(p1,n);return c.jsx(ao,{present:r||Kr(i.checked)||i.checked===!0,children:c.jsx(De.span,{"data-state":b1(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});g1.displayName=p1;var v1="CheckboxBubbleInput",y1=w.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:a,disabled:l,name:u,value:d,form:h,bubbleInput:m,setBubbleInput:f}=bp(v1,e),y=lt(n,f),p=O$(i),x=Ux(r);w.useEffect(()=>{const g=m;if(!g)return;const b=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(b,"checked").set,_=!s.current;if(p!==i&&S){const E=new Event("click",{bubbles:_});g.indeterminate=Kr(i),S.call(g,Kr(i)?!1:i),g.dispatchEvent(E)}},[m,p,i,s]);const v=w.useRef(Kr(i)?!1:i);return c.jsx(De.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??v.current,required:a,disabled:l,name:u,value:d,form:h,...t,tabIndex:-1,ref:y,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});y1.displayName=v1;function I$(e){return typeof e=="function"}function Kr(e){return e==="indeterminate"}function b1(e){return Kr(e)?"indeterminate":e?"checked":"unchecked"}const w1=w.forwardRef(({className:e,...t},n)=>c.jsx(wp,{ref:n,className:ve("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:c.jsx(g1,{className:ve("flex items-center justify-center text-current"),children:c.jsx(IT,{className:"h-4 w-4"})})}));w1.displayName=wp.displayName;var G=function(){return G=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},G.apply(this,arguments)};function L$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function x1(e,t,n){for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Ya(e){return e.mode==="multiple"}function Qa(e){return e.mode==="range"}function Fu(e){return e.mode==="single"}var $$={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rd
321p-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function z$(e,t){return Mn(e,"LLLL y",t)}function F$(e,t){return Mn(e,"d",t)}function B$(e,t){return Mn(e,"LLLL",t)}function U$(e){return"".concat(e)}function W$(e,t){return Mn(e,"cccccc",t)}function H$(e,t){return Mn(e,"yyyy",t)}var V$=Object.freeze({__proto__:null,formatCaption:z$,formatDay:F$,formatMonthCaption:B$,formatWeekNumber:U$,formatWeekdayName:W$,formatYearCaption:H$}),K$=function(e,t,n){return Mn(e,"do MMMM (EEEE)",n)},G$=function(){return"Month: "},q$=function(){return"Go to next month"},Z$=function(){return"Go to previous month"},J$=function(e,t){return Mn(e,"cccc",t)},Y$=function(e){return"Week n. ".concat(e)},Q$=function(){return"Year: "},X$=Object.freeze({__proto__:null,labelDay:K$,labelMonthDropdown:G$,labelNext:q$,labelPrevious:Z$,labelWeekNumber:Y$,labelWeekday:J$,labelYearDropdown:Q$});function ez(){var e="buttons",t=$$,n=vp,r={},s={},i=1,o={},a=new Date;return{captionLayout:e,classNames:t,formatters:V$,labels:X$,locale:n,modifiersClassNames:r,modifiers:s,numberOfMonths:i,styles:o,today:a,mode:"default"}}function tz(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,s=e.toMonth,i=e.fromDate,o=e.toDate;return r?i=jt(r):t&&(i=new Date(t,0,1)),s?o=pp(s):n&&(o=new Date(n,11,31)),{fromDate:i?to(i):void 0,toDate:o?to(o):void 0}}var k1=w.createContext(void 0);function nz(e){var t,n=e.initialProps,r=ez(),s=tz(n),i=s.fromDate,o=s.toDate,a=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;a!=="buttons"&&(!i||!o)&&(a="buttons");var l;(Fu(n)||Ya(n)||Qa(n))&&(l=n.onSelect);var u=G(G(G({},r),n),{captionLayout:a,classNames:G(G({},r.classNames),n.classNames),components:G({},n.components),formatters:G(G({},r.formatters),n.formatters),fromDate:i,labels:G(G({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:G(G({},r.modifiers),n.modifiers),modifiersClassNames:G(G({},r.modifiersClassNames),n.modifiersClassNames),onSelect:l,styles:G(G({},r.styles),n.styles),toDate:o});return c.jsx(k1.Provider,{value:u,children:e.children})}function ye(){var e=w.useContext(k1);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function S1(e){var t=ye(),n=t.locale,r=t.classNames,s=t.styles,i=t.formatters.formatCaption;return c.jsx("div",{className:r.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:n})})}function rz(e){return c.jsx("svg",G({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:c.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function _1(e){var t,n,r=e.onChange,s=e.value,i=e.children,o=e.caption,a=e.className,l=e.style,u=ye(),d=(n=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:rz;return c.jsxs("div",{className:a,style:l,children:[c.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),c.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:s,onChange:r,children:i}),c.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[o,c.jsx(d,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function sz(e){var t,n=ye(),r=n.fromDate,s=n.toDate,i=n.styles,o=n.locale,a=n.formatters.formatMonthCaption,l=n.classNames,u=n.components,d=n.labels.labelMonthDropdown;if(!r)return c.jsx(c.Fragment,{});if(!s)return c.jsx(c.Fragment,{});var h=[];if(GI(r,s))for(var m=jt(r),f=r.getMonth();f<=s.getMonth();f++)h.push($d(m,f));else for(var m=jt(new Date),f=0;f<=11;f++)h.push($d(m,f));
321var y=function(x){var v=Number(x.target.value),g=$d(jt(e.displayMonth),v);e.onChange(g)},p=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:_1;return c.jsx(p,{name:"months","aria-label":d(),className:l.dropdown_month,style:i.dropdown_month,onChange:y,value:e.displayMonth.getMonth(),caption:a(e.displayMonth,{locale:o}),children:h.map(function(x){return c.jsx("option",{value:x.getMonth(),children:a(x,{locale:o})},x.getMonth())})})}function iz(e){var t,n=e.displayMonth,r=ye(),s=r.fromDate,i=r.toDate,o=r.locale,a=r.styles,l=r.classNames,u=r.components,d=r.formatters.formatYearCaption,h=r.labels.labelYearDropdown,m=[];if(!s)return c.jsx(c.Fragment,{});if(!i)return c.jsx(c.Fragment,{});for(var f=s.getFullYear(),y=i.getFullYear(),p=f;p<=y;p++)m.push(fy(r1(new Date),p));var x=function(g){var b=fy(jt(n),Number(g.target.value));e.onChange(b)},v=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:_1;return c.jsx(v,{name:"years","aria-label":h(),className:l.dropdown_year,style:a.dropdown_year,onChange:x,value:n.getFullYear(),caption:d(n,{locale:o}),children:m.map(function(g){return c.jsx("option",{value:g.getFullYear(),children:d(g,{locale:o})},g.getFullYear())})})}function oz(e,t){var n=w.useState(e),r=n[0],s=n[1],i=t===void 0?r:t;return[i,s]}function az(e){var t=e.month,n=e.defaultMonth,r=e.today,s=t||n||r||new Date,i=e.toDate,o=e.fromDate,a=e.numberOfMonths,l=a===void 0?1:a;if(i&&Ca(i,s)<0){var u=-1*(l-1);s=yn(i,u)}return o&&Ca(s,o)<0&&(s=o),jt(s)}function lz(){var e=ye(),t=az(e),n=oz(t,e.month),r=n[0],s=n[1],i=function(o){var a;if(!e.disableNavigation){var l=jt(o);s(l),(a=e.onMonthChange)===null||a===void 0||a.call(e,l)}};return[r,i]}function cz(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,s=jt(e),i=jt(yn(s,r)),o=Ca(i,s),a=[],l=0;l<o;l++){var u=yn(s,l);a.push(u)}return n&&(a=a.reverse()),a}function uz(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=r?i:1,a=jt(e);if(!n)return yn(a,o);var l=Ca(n,e);if(!(l<i))return yn(a,o)}}function dz(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=r?i:1,a=jt(e);if(!n)return yn(a,-o);var l=Ca(a,n);if(!(l<=0))return yn(a,-o)}}var E1=w.createContext(void 0);function hz(e){var t=ye(),n=lz(),r=n[0],s=n[1],i=cz(r,t),o=uz(r,t),a=dz(r,t),l=function(h){return i.some(function(m){return yp(h,m)})},u=function(h,m){l(h)||(m&&c1(h,m)?s(yn(h,1+t.numberOfMonths*-1)):s(h))},d={currentMonth:r,displayMonths:i,goToMonth:s,goToDate:u,previousMonth:a,nextMonth:o,isDateDisplayed:l};return c.jsx(E1.Provider,{value:d,children:e.children})}function Xa(){var e=w.useContext(E1);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function py(e){var t,n=ye(),r=n.classNames,s=n.styles,i=n.components,o=Xa().goToMonth,a=function(d){o(yn(d,e.displayIndex?-e.dis
321playIndex:0))},l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:S1,u=c.jsx(l,{id:e.id,displayMonth:e.displayMonth});return c.jsxs("div",{className:r.caption_dropdowns,style:s.caption_dropdowns,children:[c.jsx("div",{className:r.vhidden,children:u}),c.jsx(sz,{onChange:a,displayMonth:e.displayMonth}),c.jsx(iz,{onChange:a,displayMonth:e.displayMonth})]})}function fz(e){return c.jsx("svg",G({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function mz(e){return c.jsx("svg",G({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Zc=w.forwardRef(function(e,t){var n=ye(),r=n.classNames,s=n.styles,i=[r.button_reset,r.button];e.className&&i.push(e.className);var o=i.join(" "),a=G(G({},s.button_reset),s.button);return e.style&&Object.assign(a,e.style),c.jsx("button",G({},e,{ref:t,type:"button",className:o,style:a}))});function pz(e){var t,n,r=ye(),s=r.dir,i=r.locale,o=r.classNames,a=r.styles,l=r.labels,u=l.labelPrevious,d=l.labelNext,h=r.components;if(!e.nextMonth&&!e.previousMonth)return c.jsx(c.Fragment,{});var m=u(e.previousMonth,{locale:i}),f=[o.nav_button,o.nav_button_previous].join(" "),y=d(e.nextMonth,{locale:i}),p=[o.nav_button,o.nav_button_next].join(" "),x=(t=h==null?void 0:h.IconRight)!==null&&t!==void 0?t:mz,v=(n=h==null?void 0:h.IconLeft)!==null&&n!==void 0?n:fz;return c.jsxs("div",{className:o.nav,style:a.nav,children:[!e.hidePrevious&&c.jsx(Zc,{name:"previous-month","aria-label":m,className:f,style:a.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?c.jsx(x,{className:o.nav_icon,style:a.nav_icon}):c.jsx(v,{className:o.nav_icon,style:a.nav_icon})}),!e.hideNext&&c.jsx(Zc,{name:"next-month","aria-label":y,className:p,style:a.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?c.jsx(v,{className:o.nav_icon,style:a.nav_icon}):c.jsx(x,{className:o.nav_icon,style:a.nav_icon})})]})}function gy(e){var t=ye().numberOfMonths,n=Xa(),r=n.previousMonth,s=n.nextMonth,i=n.goToMonth,o=n.displayMonths,a=o.findIndex(function(y){return yp(e.displayMonth,y)}),l=a===0,u=a===o.length-1,d=t>1&&(l||!u),h=t>1&&(u||!l),m=function(){r&&i(r)},f=function(){s&&i(s)};return c.jsx(pz,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:h,nextMonth:s,previousMonth:r,onPreviousClick:m,onNextClick:f})}function gz(e){var t,n=ye(),r=n.classNames,s=n.disableNavigation,i=n.styles,o=n.captionLayout,a=n.components,l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:S1,u;return s?u=c.jsx(l,{id:e.id,displayMonth:e.displayMonth}):o==="dropdown"?u=c.jsx(py,{displayMonth:e.displayMonth,id:e.id}):o==="dropdown-buttons"?u=c.jsxs(c.Fragment,{children:[c.jsx(py,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),c.jsx(gy,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=c.jsxs(c.Fragment,{children:[c.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(gy,{displayMonth:e.displayMonth,id:e.id})]}),c.jsx("div",{className:r.caption,style:i.caption,children:u})}function vz(e){var t=ye(),n=t.footer,r=t.styles,s=t.classNames.tfoot;return n?c.jsx("tfoot",{className:s,style:r.tfoot,children:c.jsx("tr",{children:c.jsx("td",{colSpan:8,children:n})})}):c.jsx(c.Fragment,{})}function yz(e,t,n){for(var r=n?Ms(new Date):$n(new Date,{locale:e,weekStartsOn:t}),s=[],i=0;i<7;i++){var o=ft(r,i);s.push(o)}return s}function bz(){var e=ye(),t=e.classNames,n=e.styles,r=e.showWeekNumber,s=e.locale,i=e.weekStartsOn,o=e.ISOWeek,a=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,u=yz(s,i,o);return c.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&c.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map(function(d,h){return c.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(d,{locale:s}),children:a(d,{locale:s})},h)})]})}function wz(){var e,t=ye(),n=t.classNames,r=t.styles,s=t.components,i=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:bz;return c.jsx("thead",{style:r.head,className:n.head,children:c.jsx(i,{})})}function xz(e){var t=ye(),n=t.locale,r=t.formatters.formatDay;return c.jsx(c.Fragment,{children:r(e.date,{locale:n})})}var xp=w.createContext(void 0);function kz(e){if(!Ya(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return c.jsx(xp.Provider,{value:t,children:e.children})}return c.jsx(Sz,{initialProps:e.initialProps,children:e.children})}function Sz(e){var t=e.initialProps,n=e.children,r=t.selected,s=t.min,i=t.max,o=function(u,d,h){var m,f;(m=t.onDayClick)===null||m===void 0||m.call(t,u,d,h);var y=!!(d.selected&&s&&(r==null?void 0:r.length)===s);if(!y){var p=!!(!d.selected&&i&&(r==null?void 0:r.length)===i);if(!p){var x=r?x1([],r):[];if(d.selected){var v=x.findIndex(function(g){return kt(u,g)});x.splice(v,1)}else x.push(u);(f=t.onSelect)===null||f===void 0||f.call(t,x,u,d,h)}}},a={disabled:[]};r&&a.disabled.push(function(u){var d=i&&r.length>i-1,h=r.some(function(m){return kt(m,u)});return!!(d&&!h)});var l={selected:r,onDayClick:o,modifiers:a};return c.jsx(xp.Provider,{value:l,children:n})}function kp(){var e=w.useContext(xp);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function _z(e,t){var n=t||{},r=n.from,s=n.to;return r&&s?kt(s,e)&&kt(r,e)?void 0:kt(s,e)?{from:s,to:void 0}:kt(r,e)?void 0:_f(r,e)?{from:e,to:s}:{from:r,to:e}:s?_f(e,s)?{from:s,to:e}:{from:e,to:s}:r?c1(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Sp=w.createContext(void 0);function Ez(e){if(!Qa(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return c.jsx(Sp.Provider,{value:t,children:e.children})}return c.jsx(jz,{initialProps:e.initialProps,children:e.children})}function jz(e){var t=e.initialProps,n=e.children,r=t.selected,s=r||{},i=s.from,o=s.to,a=t.min,l=t.max,u=function(f,y,p){var x,v;(x=t.onDayClick)===null||x===void 0||x.call(t,f,y,p);var g=_z(f,r);(v=t.onSelect)===null||v===void 0||v.call(t,g,f,y,p)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(d.range_start=[i],o?(d.range_end=[o],kt(i,o)||(d.range_middle=[{after:i,before:o}])):d.range_end=[i]):o&&(d.range_start=[o],d.range_end=[o]),a&&(i&&!o&&d.disabled.push({after:Ld(i,a-1),before:ft(i,a-1)}),i&&o&&d.disabled.push({after:i,before:ft(i,a-1)}),!i&&o&&d.disabled.push({after:Ld(o,a-1),before:ft(o,a-1)})),l){if(i&&!o&&(d.disabled.push({before:ft(i,-l+1)}),d.disabled.push({after:ft(i,l-1)})),i&&o){var h=Rn(o,i)+1,m=l-h;d.disabled.push({before:Ld(i,m)}),d.disabled.push({after:ft(o,m)})}!i&&o&&(d.disabled.push({before:ft(o,-l+1)}),d.disabled.push({after:ft(o,l-1)}))}return c.jsx(Sp.Provider,{value:{selected:r,onDayClick:u,modifiers:d},children:n})}function _p(){var e=w.useContext(Sp);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function lc(e){return Array.isArray(e)?x1([],e):e!==void 0?[e]:[]}function Tz(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],s=n[1];t[r]=lc(s)}),t}var bn;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(bn||(bn={}));var Nz=bn.Selected,Hn=bn.Disabled,Cz=bn.Hidden,Pz=bn.Today,zd=bn.RangeEnd,Fd=bn.RangeMiddle,Bd=bn.RangeStart,Rz=bn.Outside;function Oz(e,t,n){var r,s=(r={},r[Nz]=lc(e.selected),r[Hn]=lc(e.disabled),r[Cz]=lc(e.hidden),r[Pz]=[e.today],r[zd]=[],r[Fd]=[],r[Bd]=[],r[Rz]=[],r);return e.fromDate&&s[Hn].push({before:e.fromDate}),e.toDate&&s[Hn].push({after:e.toDate}),Ya(e)?s[Hn]=s[Hn].concat(t.modifiers[Hn]):Qa(e)&&(s[Hn]=s[Hn].concat(n.modifiers[Hn]),s[Bd]=n.modifiers[Bd],s[Fd]=n.modifiers[Fd],s[zd]=n.modifiers[zd]),s}var j1=w.createContext(void 0);function Az(e){var t=ye(),n=kp(),r=_p(),s=Oz(t,n,r),i=Tz(t.modifiers),o=G(G({},s),i);return c.jsx(j1.Provider,{value:o,children:e.children})}function T1(){var e=w.useContext(j1);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Dz(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Mz(e){return!!(e&&typeof e=="object"&&"from"in e)}function Iz(e){return!!(e&&typeof e=="object"&&"after"in e)}function Lz(e){return!!(e&&typeof e=="object"&&"before"in e)}function $z(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function zz(e,t){var n,r=t.from,s=t.to;if(r&&s){var i=Rn(s,r)<0;i&&(n=[s,r],r=n[0],s=n[1]);var o=Rn(e,r)>=0&&Rn(s,e)>=0;return o}return s?kt(s,e):r?kt(r,e):!1}function Fz(e){return mp(e)}function Bz(e){return Array.isArray(e)&&e.every(mp)}function Uz(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(Fz(n))return kt(e,n);if(Bz(n))return n.includes(e);if(Mz(n))return zz(e,n);if($z(n))return n.dayOfWeek.includes(e.getDay());if(Dz(n)){var r=Rn(n.before,e),s=Rn(n.after,e),i=r>0,o=s<0,a=_f(n.before,n.after);return a?o&&i:i||o}return Iz(n)?Rn(e,n.after)>0:Lz(n)?Rn(n.before,e)>0:typeof n=="function"?n(e):!1})}
321function Ep(e,t,n){var r=Object.keys(t).reduce(function(i,o){var a=t[o];return Uz(e,a)&&i.push(o),i},[]),s={};return r.forEach(function(i){return s[i]=!0}),n&&!yp(e,n)&&(s.outside=!0),s}function Wz(e,t){for(var n=jt(e[0]),r=pp(e[e.length-1]),s,i,o=n;o<=r;){var a=Ep(o,t),l=!a.disabled&&!a.hidden;if(!l){o=ft(o,1);continue}if(a.selected)return o;a.today&&!i&&(i=o),s||(s=o),o=ft(o,1)}return i||s}var Hz=365;function N1(e,t){var n=t.moveBy,r=t.direction,s=t.context,i=t.modifiers,o=t.retry,a=o===void 0?{count:0,lastFocused:e}:o,l=s.weekStartsOn,u=s.fromDate,d=s.toDate,h=s.locale,m={day:ft,week:Sf,month:yn,year:HM,startOfWeek:function(x){return s.ISOWeek?Ms(x):$n(x,{locale:h,weekStartsOn:l})},endOfWeek:function(x){return s.ISOWeek?s1(x):gp(x,{locale:h,weekStartsOn:l})}},f=m[n](e,r==="after"?1:-1);r==="before"&&u?f=VM([u,f]):r==="after"&&d&&(f=KM([d,f]));var y=!0;if(i){var p=Ep(f,i);y=!p.disabled&&!p.hidden}return y?f:a.count>Hz?a.lastFocused:N1(f,{moveBy:n,direction:r,context:s,modifiers:i,retry:G(G({},a),{count:a.count+1})})}var C1=w.createContext(void 0);function Vz(e){var t=Xa(),n=T1(),r=w.useState(),s=r[0],i=r[1],o=w.useState(),a=o[0],l=o[1],u=Wz(t.displayMonths,n),d=s??(a&&t.isDateDisplayed(a))?a:u,h=function(){l(s),i(void 0)},m=function(x){i(x)},f=ye(),y=function(x,v){if(s){var g=N1(s,{moveBy:x,direction:v,context:f,modifiers:n});kt(s,g)||(t.goToDate(g,s),m(g))}},p={focusedDay:s,focusTarget:d,blur:h,focus:m,focusDayAfter:function(){return y("day","after")},focusDayBefore:function(){return y("day","before")},focusWeekAfter:function(){return y("week","after")},focusWeekBefore:function(){return y("week","before")},focusMonthBefore:function(){return y("month","before")},focusMonthAfter:function(){return y("month","after")},focusYearBefore:function(){return y("year","before")},focusYearAfter:function(){return y("year","after")},focusStartOfWeek:function(){return y("startOfWeek","before")},focusEndOfWeek:function(){return y("endOfWeek","after")}};return c.jsx(C1.Provider,{value:p,children:e.children})}function jp(){var e=w.useContext(C1);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function Kz(e,t){var n=T1(),r=Ep(e,n,t);return r}var Tp=w.createContext(void 0);function Gz(e){if(!Fu(e.initialProps)){var t={selected:void 0};return c.jsx(Tp.Provider,{value:t,children:e.children})}return c.jsx(qz,{initialProps:e.initialProps,children:e.children})}function qz(e){var t=e.initialProps,n=e.children,r=function(i,o,a){var l,u,d;if((l=t.onDayClick)===null||l===void 0||l.call(t,i,o,a),o.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,i,o,a);return}(d=t.onSelect)===null||d===void 0||d.call(t,i,i,o,a)},s={selected:t.selected,onDayClick:r};return c.jsx(Tp.Provider,{value:s,children:n})}function P1(){var e=w.useContext(Tp);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Zz(e,t){var n=ye(),r=P1(),s=kp(),i=_p(),o=jp(),a=o.focusDayAfter,l=o.focusDayBefore,u=o.focusWeekAfter,d=o.focusWeekBefore,h=o.blur,m=o.focus,f=o.focusMonthBefore,y=o.focusMonthAfter,p=o.focusYearBefore,x=o.focusYearAfter,v=o.focusStartOfWeek,g=o.focusEndOfWeek,b=function(D){var j,P,F,Z;Fu(n)?(j=r.onDayClick)===null||j===void 0||j.call(r,e,t,D):Ya(n)?(P=s.onDayClick)===null||P===void 0||P.call(s,e,t,D):Qa(n)?(F=i.onDayClick)===null||F===void 0||F.call(i,e,t,D):(Z=n.onDayClick)===null||Z===void 0||Z.call(n,e,t,D)},k=function(D){var j;m(e),(j=n.onDayFocus)===null||j===void 0||j.call(n,e,t,D)},S=function(D){var j;h(),(j=n.onDayBlur)===null||j===void 0||j.call(n,e,t,D)},_=function(D){var j;(j=n.onDayMouseEnter)===null||j===void 0||j.call(n,e,t,D)},E=function(D){var j;(j=n.onDayMouseLeave)===null||j===void 0||j.call(n,e,t,D)},T=function(D){var j;(j=n.onDayPointerEnter)===null||j===void 0||j.call(n,e,t,D)},C=function(D){var j;(j=n.onDayPointerLeave)===null||j===void 0||j.call(n,e,t,D)},M=function(D){var j;(j=n.onDayTouchCancel)===null||j===void 0||j.call(n,e,t,D)},W=function(D){var j;(j=n.onDayTouchEnd)===null||j===void 0||j.call(n,e,t,D)},$=function(D){var j;(j=n.onDayTouchMove)===null||j===void 0||j.call(n,e,t,D)},q=function(D){var j;(j=n.onDayTouchStart)===null||j===void 0||j.call(n,e,t,D)},L=function(D){var j;(j=n.onDayKeyUp)===null||j===void 0||j.call(n,e,t,D)},X=function(D){var j;switch(D.key){case"ArrowLeft":D.preventDefault(),D.stopPropagation(),n.dir==="rtl"?a():l();break;case"ArrowRight":D.preventDefault(),D.stopPropagation(),n.dir==="rtl"?l(
321):a();break;case"ArrowDown":D.preventDefault(),D.stopPropagation(),u();break;case"ArrowUp":D.preventDefault(),D.stopPropagation(),d();break;case"PageUp":D.preventDefault(),D.stopPropagation(),D.shiftKey?p():f();break;case"PageDown":D.preventDefault(),D.stopPropagation(),D.shiftKey?x():y();break;case"Home":D.preventDefault(),D.stopPropagation(),v();break;case"End":D.preventDefault(),D.stopPropagation(),g();break}(j=n.onDayKeyDown)===null||j===void 0||j.call(n,e,t,D)},K={onClick:b,onFocus:k,onBlur:S,onKeyDown:X,onKeyUp:L,onMouseEnter:_,onMouseLeave:E,onPointerEnter:T,onPointerLeave:C,onTouchCancel:M,onTouchEnd:W,onTouchMove:$,onTouchStart:q};return K}function Jz(){var e=ye(),t=P1(),n=kp(),r=_p(),s=Fu(e)?t.selected:Ya(e)?n.selected:Qa(e)?r.selected:void 0;return s}function Yz(e){return Object.values(bn).includes(e)}function Qz(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var s=e.modifiersClassNames[r];if(s)n.push(s);else if(Yz(r)){var i=e.classNames["day_".concat(r)];i&&n.push(i)}}),n}function Xz(e,t){var n=G({},e.styles.day);return Object.keys(t).forEach(function(r){var s;n=G(G({},n),(s=e.modifiersStyles)===null||s===void 0?void 0:s[r])}),n}function e3(e,t,n){var r,s,i,o=ye(),a=jp(),l=Kz(e,t),u=Zz(e,l),d=Jz(),h=!!(o.onDayCl
321ick||o.mode!=="default");w.useEffect(function(){var _;l.outside||a.focusedDay&&h&&kt(a.focusedDay,e)&&((_=n.current)===null||_===void 0||_.focus())},[a.focusedDay,e,n,h,l.outside]);var m=Qz(o,l).join(" "),f=Xz(o,l),y=!!(l.outside&&!o.showOutsideDays||l.hidden),p=(i=(s=o.components)===null||s===void 0?void 0:s.DayContent)!==null&&i!==void 0?i:xz,x=c.jsx(p,{date:e,displayMonth:t,activeModifiers:l}),v={style:f,className:m,children:x,role:"gridcell"},g=a.focusTarget&&kt(a.focusTarget,e)&&!l.outside,b=a.focusedDay&&kt(a.focusedDay,e),k=G(G(G({},v),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=b||g?0:-1,r)),u),S={isButton:h,isHidden:y,activeModifiers:l,selectedDays:d,buttonProps:k,divProps:v};return S}function t3(e){var t=w.useRef(null),n=e3(e.date,e.displayMonth,t);return n.isHidden?c.jsx("div",{role:"gridcell"}):n.isButton?c.jsx(Zc,G({name:"day",ref:t},n.buttonProps)):c.jsx("div",G({},n.divProps))}function n3(e){var t=e.number,n=e.dates,r=ye(),s=r.onWeekNumberClick,i=r.styles,o=r.classNames,a=r.locale,l=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,d=u(Number(t),{locale:a});if(!s)return c.jsx("span",{className:o.weeknumber,style:i.weeknumber,children:d});var h=l(Number(t),{locale:a}),m=function(f){s(t,n,f)};return c.jsx(Zc,{name:"week-number","aria-label":h,className:o.weeknumber,style:i.weeknumber,onClick:m,children:d})}function r3(e){var t,n,r=ye(),s=r.styles,i=r.classNames,o=r.showWeekNumber,a=r.components,l=(t=a==null?void 0:a.Day)!==null&&t!==void 0?t:t3,u=(n=a==null?void 0:a.WeekNumber)!==null&&n!==void 0?n:n3,d;return o&&(d=c.jsx("td",{className:i.cell,style:s.cell,children:c.jsx(u,{number:e.weekNumber,dates:e.dates})})),c.jsxs("tr",{className:i.row,style:s.row,children:[d,e.dates.map(function(h){return c.jsx("td",{className:i.cell,style:s.cell,role:"presentation",children:c.jsx(l,{displayMonth:e.displayMonth,date:h})},HI(h))})]})}function vy(e,t,n){for(var r=n!=null&&n.ISOWeek?s1(t):gp(t,n),s=n!=null&&n.ISOWeek?Ms(e):$n(e,n),i=Rn(r,s),o=[],a=0;a<=i;a++)o.push(ft(s,a));var l=o.reduce(function(u,d){var h=n!=null&&n.ISOWeek?i1(d):a1(d,n),m=u.find(function(f){return f.weekNumber===h});return m?(m.dates.push(d),u):(u.push({weekNumber:h,dates:[d]}),u)},[]);return l}function s3(e,t){var n=vy(jt(e),pp(e),t);if(t!=null&&t.useFixedWeeks){var r=KI(e,t);if(r<6){var s=n[n.length-1],i=s.dates[s.dates.length-1],o=Sf(i,6-r),a=vy(Sf(i,1),o,t);n.push.apply(n,a)}}return n}function i3(e){var t,n,r,s=ye(),i=s.locale,o=s.classNames,a=s.styles,l=s.hideHead,u=s.fixedWeeks,d=s.components,h=s.weekStartsOn,m=s.firstWeekContainsDate,f=s.ISOWeek,y=s3(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:f,locale:i,weekStartsOn:h,firstWeekContainsDate:m}),p=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:wz,x=(n=d==null?void 0:d.Row)!==null&&n!==void 0?n:r3,v=(r=d==null?void 0:d.Footer)!==null&&r!==void 0?r:vz;return c.jsxs("table",{id:e.id,className:o.table,style:a.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&c.jsx(p,{}),c.jsx("tbody",{className:o.tbody,style:a.tbody,children:y.map(function(g){return c.jsx(x,{displayMonth:e.displayMonth,dates:g.dates,weekNumber:g.weekNumber},g.weekNumber)})}),c.jsx(v,{displayMonth:e.displayMonth})]})}function o3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var a3=o3()?w.useLayoutEffect:w.useEffect,Ud=!1,l3=0;function yy(){return"react-day-picker-".concat(++l3)}function c3(e){var t,n=e??(Ud?yy():null),r=w.useState(n),s=r[0],i=r[1];return a3(function(){s===null&&i(yy())},[]),w.useEffect(function(){Ud===!1&&(Ud=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function u3(e){var t,n,r=ye(),s=r.dir,i=r.classNames,o=r.styles,a=r.components,l=Xa().displayMonths,u=c3(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),d=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,h=[i.month],m=o.month,f=e.displayIndex===0,y=e.displayIndex===l.length-1,p=!f&&!y;s==="rtl"&&(t=[f,y],y=t[0],f=t[1]),f&&(h.push(i.caption_start),m=G(G({},m),o.caption_start)),y&&(h.push(i.caption_end),m=G(G({},m),o.caption_end)),p&&(h.push(i.caption_between),m=G(G({},m),o.caption_between));var x=(n=a==null?void 0:a.Caption)!==null&&n!==void 0?n:gz;return c.jsxs("div",{className:h.join(" "),style:m,children:[c.jsx(x,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(i3,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function d3(e){var t=ye(),n=t.classNames,r=t.styles;return c.jsx("div",{className:n.months,style:r.months,children:e.children})}function h3(e){var t,n,r=e.initialProps,s=ye(),i=jp(),o=Xa(),a=w.useState(!1),l=a[0],u=a[1];w.useEffect(function(){s.initialFocus&&i.focusTarget&&(l||(i.focus(i.focusTarget),u(!0)))},[s.initialFocus,l,i.focus,i.focusTarget,i]);var d=[s.classNames.root,s.className];s.numberOfMonths>1&&d.push(s.classNames.multiple_months),s.showWeekNumber&&d.push(s.classNames.with_weeknumber);var h=G(G({},s.styles.root),s.style),m=Object.keys(r).filter(function(y){return y.startsWith("data-")}).reduce(function(y,p){var x;return G(G({},y),(x={},x[p]=r[p],x))},{}),f=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:d3;return c.jsx("div",G({className:d.join(" "),style:h,dir:s.dir,id:s.id,nonce:r.nonce,title:r.title,lang:r.lang},m,{children:c.jsx(f,{children:o.displayMonths.map(function(y,p){return c.jsx(u3,{displayIndex:p,displayMonth:y},p)})})}))}function f3(e){var t=e.children,n=L$(e,["children"]);return c.jsx(nz,{initialProps:n,children:c.jsx(hz,{children:c.jsx(Gz,{initialProps:n,children:c.jsx(kz,{initialProps:n,children:c.jsx(Ez,{initialProps:n,children:c.jsx(Az,{children:c.jsx(Vz,{children:t})})})})})})})}function m3(e){return c.jsx(f3,G({},e,{children:c.jsx(h3,{initialProps:e})}))}function R1({className:e,classNames:t,showOutsideDays:n=!0,...r}){return c.jsx(m3,{showOutsideDays:n,className:ve("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
321ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ve(yf({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:ve(yf({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>c.jsx($T,{className:"h-4 w-4"}),IconRight:({...s})=>c.jsx(zT,{className:"h-4 w-4"})},...r})}R1.displayName="Calendar";var Wd=0;function p3(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??by()),document.body.insertAdjacentElement("beforeend",e[1]??by()),Wd++,()=>{Wd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Wd--}},[])}function by(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Hd="focusScope.autoFocusOnMount",Vd="focusScope.autoFocusOnUnmount",wy={bubbles:!1,cancelable:!0},g3="FocusScope",O1=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=w.useState(null),u=In(s),d=In(i),h=w.useRef(null),m=lt(t,p=>l(p)),f=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let p=function(b){if(f.paused||!a)return;const k=b.target;a.contains(k)?h.current=k:kr(h.current,{select:!0})},x=function(b){if(f.paused||!a)return;const k=b.relatedTarget;k!==null&&(a.contains(k)||kr(h.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&kr(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",x);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",x),g.disconnect()}}},[r,a,f.paused]),w.useEffect(()=>{if(a){ky.add(f);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(Hd,wy);a.addEventListener(Hd,u),a.dispatchEvent(v),v.defaultPrevented||(v3(k3(A1(a)),{select:!0}),document.activeElement===p&&kr(a))}return()=>{a.removeEventListener(Hd,u),setTimeout(()=>{const v=new CustomEvent(Vd,wy);a.addEventListener(Vd,d),a.dispatchEvent(v),v.defaultPrevented||kr(p??document.body,{select:!0}),a.removeEventListener(Vd,d),ky.remove(f)},0)}}},[a,u,d,f]);const y=w.useCallback(p=>{if(!n&&!r||f.paused)return;const x=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(x&&v){const g=p.currentTarget,[b,k]=y3(g);b&&k?!p.shiftKey&&v===k?(p.preventDefault(),n&&kr(b,{select:!0})):p.shiftKey&&v===b&&(p.preventDefault(),n&&kr(k,{select:!0})):v===g&&p.preventDefault()}},[n,r,f.paused]);return c.jsx(De.div,{tabIndex:-1,...o,ref:m,onKeyDown:y})});O1.displayName=g3;function v3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(kr(r,{select:t}),document.activeElement!==n)return}function y3(e){const t=A1(e),n=xy(t,e),r=xy(t.reverse(),e);return[n,r]}function A1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xy(e,t){for(const n of e)if(!b3(n,{upTo:t}))return n}function b3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function w3(e){return e instanceof HTMLInputElement&&"select"in e}function kr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&w3(e)&&t&&e.select()}}var ky=x3();function x3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Sy(e,t),e.unshift(t)},remove(t){var n;e=Sy(e,t),(n=e[0])==null||n.resume()}}}function Sy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function k3(e){return e.filter(t=>t.tagName!=="A")}var S3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ys=new WeakMap,Ol=new WeakMap,Al={},Kd=0,D1=function(e){return e&&(e.host||D1(e.parentNode))},_3=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=D1(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},E3=function(e,t,n,r){var s=_3(t,Array.isArray(e)?e:[e]);Al[n]||(Al[n]=new WeakMap);var i=Al[n],o=[],a=new Set,l=new Set(s),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};
vendor: 8,404 bytes, lines 321-358
321s.forEach(u);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))d(m);else try{var f=m.getAttribute(r),y=f!==null&&f!=="false",p=(Ys.get(m)||0)+1,x=(i.get(m)||0)+1;Ys.set(m,p),i.set(m,x),o.push(m),p===1&&y&&Ol.set(m,!0),x===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return d(t),a.clear(),Kd++,function(){o.forEach(function(h){var m=Ys.get(h)-1,f=i.get(h)-1;Ys.set(h,m),i.set(h,f),m||(Ol.has(h)||h.removeAttribute(r),Ol.delete(h)),f||h.removeAttribute(n)}),Kd--,Kd||(Ys=new WeakMap,Ys=new WeakMap,Ol=new WeakMap,Al={})}},j3=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=S3(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),E3(r,s,n,"aria-hidden")):function(){return null}},Cn=function(){return Cn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Cn.apply(this,arguments)};function M1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function T3(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var cc="right-scroll-bar-position",uc="width-before-scroll-bar",N3="with-scroll-bars-hidden",C3="--removed-body-scroll-bar-size";function Gd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function P3(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var R3=typeof window<"u"?w.useLayoutEffect:w.useEffect,_y=new WeakMap;function O3(e,t){var n=P3(null,function(r){return e.forEach(function(s){return Gd(s,r)})});return R3(function(){var r=_y.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||Gd(a,null)}),i.forEach(function(a){s.has(a)||Gd(a,o)})}_y.set(n,e)},[e]),n}function A3(e){return e}function D3(e,t){t===void 0&&(t=A3);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return s}function M3(e){e===void 0&&(e={});var t=D3(null);return t.options=Cn({async:!0,ssr:!1},e),t}var I1=function(e){var t=e.sideCar,n=M1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Cn({},n))};I1.isSideCarExport=!0;function I3(e,t){return e.useMedium(t),I1}var L1=M3(),qd=function(){},Bu=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:qd,onWheelCapture:qd,onTouchMoveCapture:qd}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,m=e.sideCar,f=e.noRelative,y=e.noIsolation,p=e.inert,x=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,b=e.gapMode,k=M1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,_=O3([n,t]),E=Cn(Cn({},k),s);return w.createElement(w.Fragment,null,d&&w.createElement(S,{sideCar:L1,removeScrollBar:u,shards:h,noRelative:f,noIsolation:y,inert:p,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:b}),o?w.cloneElement(w.Children.only(a),Cn(Cn({},E),{ref:_})):w.createElement(g,Cn({},E,{className:l,ref:_}),a))});Bu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bu.classNames={fullWidth:uc,zeroRight:cc};var L3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=L3();return t&&e.setAttribute("nonce",t),e}function z3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function F3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var B3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$3())&&(z3(t,n),F3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},U3=function(){var e=B3();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$1=function(){var e=U3(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},W3={left:0,top:0,right:0,gap:0},Zd=function(e){return parseInt(e||"",10)||0},H3=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Zd(n),Zd(r),Zd(s)]},V3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return W3;var t=H3(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},K3=$1(),Di="data-scroll-locked",G3=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
322  .`.concat(N3,` {
323   overflow: hidden `).concat(r,`;
324   padding-right: `).concat(a,"px ").concat(r,`;
325  }
326  body[`).concat(Di,`] {
327    overflow: hidden `).concat(r,`;
328    overscroll-behavior: contain;
329    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
330    padding-left: `.concat(s,`px;
331    padding-top: `).concat(i,`px;
332    padding-right: `).concat(o,`px;
333    margin-left:0;
334    margin-top:0;
335    margin-right: `).concat(a,"px ").concat(r,`;
336    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
337  }
338  
339  .`).concat(cc,` {
340    right: `).concat(a,"px ").concat(r,`;
341  }
342  
343  .`).concat(uc,` {
344    margin-right: `).concat(a,"px ").concat(r,`;
345  }
346  
347  .`).concat(cc," .").concat(cc,` {
348    right: 0 `).concat(r,`;
349  }
350  
351  .`).concat(uc," .").concat(uc,` {
352    margin-right: 0 `).concat(r,`;
353  }
354  
355  body[`).concat(Di,`] {
356    `).concat(C3,": ").concat(a,`px;
357  }
358`)},Ey=function(){var e=parseInt(document.body.getAttribute(Di)||"0",10);return isFinite(e)?e:0},q3=function(){w.useEffect(function(){return document.body.setAttribute(Di,(Ey()+1).toString()),function(){var e=Ey()-1;e<=0?document.body.removeAttribute(Di):document.body.setAttribute(Di,e.toString())}},[])},Z3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;q3();var i=w.useMemo(function(){return V3(s)},[s]);return w.createElement(K3,{styles:G3(i,!t,s,n?"":"!important")})},jf=!1;if(typeof window<"u")try{var Dl=Object.defineProperty({},"passive",{get:function(){return jf=!0,!0}});window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{jf=!1}var Qs=jf?{passive:!1}:!1,J3=function(e){return e.tagName==="TEXTAREA"},z1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!J3(e)&&n[t]==="visible")},Y3=function(e){return z1(e,"overflowY")},Q3=function(e){return z1(e,"overflowX")},jy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=F1(e,r);if(s){var i=B1(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},X3=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},e5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},F1=function(e,t){return e==="v"?Y3(t):Q3(t)},B1=function(e,t){return e==="v"?X3(t):e5(t)},t5=function(e,t){return e==="h"&&t==="rtl"?-1:1}
vendor: 4,354 bytes, lines 358-361
358,n5=function(e,t,n,r,s){var i=t5(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),u=!1,d=o>0,h=0,m=0;do{if(!a)break;var f=B1(e,a),y=f[0],p=f[1],x=f[2],v=p-x-i*y;(y||v)&&F1(e,a)&&(h+=v,m+=y);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(m)<1||!s))&&(u=!0),u},Ml=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ty=function(e){return[e.deltaX,e.deltaY]},Ny=function(e){return e&&"current"in e?e.current:e},r5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},s5=function(e){return`
359  .block-interactivity-`.concat(e,` {pointer-events: none;}
360  .allow-interactivity-`).concat(e,` {pointer-events: all;}
361`)},i5=0,Xs=[];function o5(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),s=w.useState(i5++)[0],i=w.useState($1)[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=T3([e.lockRef.current],(e.shards||[]).map(Ny),!0).filter(Boolean);return p.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=w.useCallback(function(p,x){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var v=Ml(p),g=n.current,b="deltaX"in p?p.deltaX:g[0]-v[0],k="deltaY"in p?p.deltaY:g[1]-v[1],S,_=p.target,E=Math.abs(b)>Math.abs(k)?"h":"v";if("touches"in p&&E==="h"&&_.type==="range")return!1;var T=jy(E,_);if(!T)return!0;if(T?S=E:(S=E==="v"?"h":"v",T=jy(E,_)),!T)return!1;if(!r.current&&"changedTouches"in p&&(b||k)&&(r.current=S),!S)return!0;var C=r.current||S;return n5(C,x,p,C==="h"?b:k,!0)},[]),l=w.useCallback(function(p){var x=p;if(!(!Xs.length||Xs[Xs.length-1]!==i)){var v="deltaY"in x?Ty(x):Ml(x),g=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&r5(S.delta,v)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var b=(o.current.shards||[]).map(Ny).filter(Boolean).filter(function(S){return S.contains(x.target)}),k=b.length>0?a(x,b[0]):!o.current.noIsolation;k&&x.cancelable&&x.preventDefault()}}},[]),u=w.useCallback(function(p,x,v,g){var b={name:p,delta:x,target:v,should:g,shadowParent:a5(v)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(k){return k!==b})},1)},[]),d=w.useCallback(function(p){n.current=Ml(p),r.current=void 0},[]),h=w.useCallback(function(p){u(p.type,Ty(p),p.target,a(p,e.lockRef.current))},[]),m=w.useCallback(function(p){u(p.type,Ml(p),p.target,a(p,e.lockRef.current))},[]);w.useEffect(function(){return Xs.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Qs),document.addEventListener("touchmove",l,Qs),document.addEventListener("touchstart",d,Qs),function(){Xs=Xs.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Qs),document.removeEventListener("touchmove",l,Qs),document.removeEventListener("touchstart",d,Qs)}},[]);var f=e.removeScrollBar,y=e.inert;return w.createElement(w.Fragment,null,y?w.createElement(i,{styles:s5(s)}):null,f?w.createElement(Z3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function a5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const l5=I3(L1,o5);var U1=w.forwardRef(function(e,t){return w.createElement(Bu,Cn({},e,{ref:t,sideCar:l5}))});U1.classNames=Bu.classNames;var Uu="Popover",[W1,q6]=oo(Uu,[ju]),el=ju(),[c5,ns]=W1(Uu),H1=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=el(t),l=w.useRef(null),[u,d]=w.useState(!1),[h,m]=Lm({prop:r,defaultProp:s??!1,onChange:i,caller:Uu});return c.jsx(AP,{...a,children:c.jsx(c5,{scope:t,contentId:mC(),triggerRef:l,open:h,onOpenChange:m,onOpenToggle:w.useCallback(()=>m(f=>!f),[m]),hasCustomAnchor:u,onCustomAnchorAdd:w.useCallback(()=>d(!0),[]),onCustomAnchorRemove:w.useCallback(()=>d(!1),[]),modal:o,children:n})})};H1.displayName=Uu;var V1="PopoverAnchor",u5=w.forwardRef((e,t)=>
vendor: 4,449 bytes, line 361
361{const{__scopePopover:n,...r}=e,s=ns(V1,n),i=el(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return w.useEffect(()=>(o(),()=>a()),[o,a]),c.jsx(Qm,{...i,...r,ref:t})});u5.displayName=V1;var K1="PopoverTrigger",G1=w.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ns(K1,n),i=el(n),o=lt(t,s.triggerRef),a=c.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Q1(s.open),...r,ref:o,onClick:pe(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:c.jsx(Qm,{asChild:!0,...i,children:a})});G1.displayName=K1;var Np="PopoverPortal",[d5,h5]=W1(Np,{forceMount:void 0}),q1=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=ns(Np,t);return c.jsx(d5,{scope:t,forceMount:n,children:c.jsx(ao,{present:n||i.open,children:c.jsx(Im,{asChild:!0,container:s,children:r})})})};q1.displayName=Np;var no="PopoverContent",Z1=w.forwardRef((e,t)=>{const n=h5(no,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=ns(no,e.__scopePopover);return c.jsx(ao,{present:r||i.open,children:i.modal?c.jsx(m5,{...s,ref:t}):c.jsx(p5,{...s,ref:t})})});Z1.displayName=no;var f5=ya("PopoverContent.RemoveScroll"),m5=w.forwardRef((e,t)=>{const n=ns(no,e.__scopePopover),r=w.useRef(null),s=lt(t,r),i=w.useRef(!1);return w.useEffect(()=>{const o=r.current;if(o)return j3(o)},[]),c.jsx(U1,{as:f5,allowPinchZoom:!0,children:c.jsx(J1,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),p5=w.forwardRef((e,t)=>{const n=ns(no,e.__scopePopover),r=w.useRef(!1),s=w.useRef(!1);return c.jsx(J1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),J1=w.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...h}=e,m=ns(no,n),f=el(n);return p3(),c.jsx(O1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:c.jsx(bu,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:c.jsx(Qx,{"data-state":Q1(m.open),role:"dialog",id:m.contentId,...f,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Y1="PopoverClose",g5=w.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ns(Y1,n);return c.jsx(De.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,()=>s.onOpenChange(!1))})});g5.displayName=Y1;var v5="PopoverArrow",y5=w.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=el(n);return c.jsx(Xx,{...s,...r,ref:t})});y5.displayName=v5;function Q1(e){return e?"open":"closed"}var b5=H1,w5=G1,x5=q1,X1=Z1;const k5=b5,S5=w5,eS=w.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>c.jsx(x5,{children:c.jsx(X1,{ref:s,align:t,sideOffset:n,className:ve("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
361de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));eS.displayName=X1.displayName;function _5(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function l(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const E5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Cp extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class j5 extends Cp{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Cy extends Cp{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Py extends Cp{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Tf;(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"})(Tf||(Tf={}));class T5{constructor(t,{headers:n={},customFetch:r,region:s=Tf.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=E5(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return _5(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:u,signal:d,timeout:h}=r;let m={},{region:f}=r;f||(f=this.region);const y=new URL(`${this.url}/${n}`);f&&f!=="any"&&(m["x-region"]=f,y.searchParams.set("forceFunctionRegion",f));let p;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(m["Content-Type"]="application/octet-stream",p=u):typeof u=="string"?(m["Content-Type"]="text/plain",p=u):typeof FormData<"u"&&u instanceof FormData?p=u:(m["Content-Type"]="application/json",p=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?p=JSON.stringify(u):p=u;let x=d;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),d?(x=o.signal,d.addEventListener("abort",()=>o.abort())):x=o.signal);const v=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},m),this.headers),a),body:p,signal:x}).catch(S=>{throw new j5(S)}),g=v.headers.get("x-relay-error");if(g&&g==="true")throw new Cy(v);if(!v.ok)throw new Py(v);let b=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),k;return b==="application/json"?k=yield v.json():b==="application/octet-stream"||b==="application/pdf"?k=yield v.blob():b==="text/event-stream"?k=v:b==="multipart/form-data"?k=yield v.formData():k=yield v.text(),{data:k,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof Py||a instanceof Cy?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const tS=3,Ry=e=>Math.min(1e3*2**e,3e4),N5=[520,503],nS=["GET","HEAD","OPTIONS"];var C5=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
361de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Oy(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function P5(e,t,n,r){return!(!r||n>=tS||!nS.includes(e)||!N5.includes(t))}var R5=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,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=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(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"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let o=0;for(;;){const u=new Headers(n.headers);o>0&&u.set("X-Retry-Count",String(o));let d;try{d=await r(n.url.toString(),{method:n.method,headers:u,body:JSON.stringify(n.body,(h,m)=>typeof m=="bigint"?m.toString():m),signal:n.signal})}catch(h){if((h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.code)==="ABORT_ERR"||!nS.includes(n.method))throw h;if(n.retryEnabled&&o<tS){const m=Ry(o);o++,await Oy(m,n.signal);continue}throw h}if(P5(n.method,d.status,o,n.retryEnabled)){var a,l;const h=(a=(l=d.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&a!==void 0?a:null,m=h!==null?Math.max(0,parseInt(h,10)||0)*1e3:Ry(o);await d.text(),o++,await Oy(m,n.signal);continue}return await n.processResponse(d)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var a;let l="",u="",d="";const h=o==null?void 0:o.cause;if(h){var m,f,y,p;const g=(m=h==null?void 0:h.message)!==null&&m!==void 0?m:"",b=(f=h==null?void 0:h.code)!==null&&f!==void 0?f:"";l=`${(y=o==null?void 0:o.name)!==null&&y!==void 0?y:"FetchError"}: ${o==null?void 0:o.message}`,l+=`
362
363Caused by: ${(p=h==null?void 0:h.name)!==null&&p!==void 0?p:"Error"}: ${g}`,b&&(l+=` (${b})`),h!=null&&h.stack&&(l+=`
364${h.stack}`)}else{var x;l=(x=o==null?void 0:o.stack)!==null&&x!==void 0?x:""}const v=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(d="",u="Request was aborted (timeout or manual cancellation)",v>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${v} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(d="",u="HTTP headers exceeded server limits (typically 16KB)",v>this.urlLengthLimit&&(u+=`. Your request URL is ${v} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(a=o==null?void 0:o.name)!==null&&a!==void 0?a:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:u,code:d},data:null,count:null,status:0,statusText:""}}
364)),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,o=e.statusText;if(e.ok){var a,l;if(t.method!=="HEAD"){var u;const m=await e.text();m===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((u=t.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text"))?r=m:r=JSON.parse(m))}const d=(a=t.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),h=(l=e.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");d&&h&&h.length>1&&(s=parseInt(h[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const d=await e.text();try{n=JSON.parse(d),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,o="OK")}catch{e.status===404&&d===""?(i=204,o="No Content"):n={message:d}}if(n&&t.shouldThrowOnError)throw new C5(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},O5=class extends R5{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.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.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"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 Ay=new RegExp("[,()]");var ii=class extends O5{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 n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Ay.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Ay.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),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:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
364n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},A5=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new ii({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
3640){const l=[...new Set(a)].map(u=>`"${u}"`);i.searchParams.set("columns",l.join(","))}}return new ii({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);a.searchParams.set("columns",d.join(","))}}return new ii({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new ii({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ii({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function D5(e,t){if(Pa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Pa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M5(e){var t=D5(e,"string");return Pa(t)=="symbol"?t:t+""}function I5(e,t,n){return(t=M5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dy(Object(n),!0).forEach(function(r){I5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var L5=class rS{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:a}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(u,d)=>{const h=new AbortController,m=setTimeout(()=>h.abort(),i),f=d==null?void 0:d.signal;if(f){if(f.aborted)return clearTimeout(m),l(u,d);const y=()=>{clearTimeout(m),h.abort()};return f.addEventListener("abort",y,{once:!0}),l(u,Il(Il({},d),{},{signal:h.signal})).finally(()=>{clearTimeout(m),f.removeEventListener("abort",y)})}return l(u,Il(Il({},d),{},{signal:h.signal})).finally(()=>clearTimeout(m))}:this.fetch=l,this.retry=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new A5(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new rS(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const d=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(d)),h=r&&Object.values(n).some(d);h?(a="POST",u=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,y])=>y!==void 0).map(([f,y])=>[f,Array.isArray(y)?`{${y.join(",")}}`:`${y}
364`]).forEach(([f,y])=>{l.searchParams.append(f,y)})):(a="POST",u=n);const m=new Headers(this.headers);return h?m.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&m.set("Prefer",`count=${i}`),new ii({method:a,url:l,headers:m,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class $5{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 n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.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:
365import ws from "ws"
366new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
367
368Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const z5="2.105.1",F5=`realtime-js/${z5}`,B5="1.0.0",sS="2.0.0",U5=sS,W5=1e4,H5=100,Tr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},iS={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Nf={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class V5{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,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){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:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const m=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+m);let y=new DataView(f),p=0;y.setUint8(p++,this.KINDS.userBroadcastPush),y.setUint8(p++,l.length),y.setUint8(p++,a.length),y.setUint8(p++,o.length),y.setUint8(p++,u.length),y.setUint8(p++,h.length),y.setUint8(p++,n),Array.from(l,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(a,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(o,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(u,v=>y.setUint8(p++,v.charCodeAt(0))),Array.from(h,v=>y.setUint8(p++,v.charCodeAt(0)));var x=new Uint8Array(f.byteLength+r.byteLength);return x.set(new Uint8Array(f),0),x.set(new Uint8Array(r),f.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;
368return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+s));l=l+s;const d=r.decode(t.slice(l,l+i));l=l+i;const h=r.decode(t.slice(l,l+o));l=l+o;const m=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(m)):m,y={type:this.BROADCAST_EVENT,event:d,payload:f};return o>0&&(y.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var me;(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"})(me||(me={}));const My=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=K5(o,e,t,s),i),{}):{}},K5=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?oS(i,o):Cf(o)},oS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return J5(t,n)}switch(e){case me.bool:return G5(t);case me.float4:case me.float8:case me.int2:case me.int4:case me.int8:case me.numeric:case me.oid:return q5(t);case me.json:case me.jsonb:return Z5(t);case me.timestamp:return Y5(t);case me.abstime:case me.date:case me.daterange:case me.int4range:case me.int8range:case me.money:case me.reltime:case me.text:case me.time:case me.timestamptz:case me.timetz:case me.tsrange:case me.tstzrange:return Cf(t);default:return Cf(t)}},Cf=e=>e,G5=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},q5=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Z5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},J5=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>oS(t,a))}return e},Y5=e=>typeof e=="string"?e.replace(" ","T"):e,aS=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};var Qo=e=>typeof e=="function"?e:function(){return e},Q5=typeof self<"u"?self:null,oi=typeof window<"u"?window:null,Sn=Q5||oi||globalThis,X5="2.0.0",eF=1e4,tF=1e3,Tn={connecting:0,open:1,closing:2,closed:3},yt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},qn={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Pf={longpoll:"longpoll",websocket:"websocket"},nF={complete:4},Rf="base64url.bearer.phx.",Ll=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}
vendor: 8,135 bytes, line 368
368matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},lS=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},rF=class{constructor(e,t,n){this.state=yt.closed,this.topic=e,this.params=Qo(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ll(this,qn.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new lS(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=yt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=yt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=yt.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=yt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Ll(this,qn.leave,Qo({}),this.timeout).send(),this.state=yt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(qn.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=yt.closed,this.bindings=[]}onClose(e){this.on(qn.close,e)}onError(e){return this.on(qn.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Ll(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=yt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(qn.close,"leave")},n=new Ll(this,qn.leave,Qo({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=yt.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===yt.closed}isErrored(){return this.state===yt.errored}isJoined(){return this.state===yt.joined}isJoining(){return this.state===yt.joining}isLeaving(){return this.state===yt.leaving}},Jc=class{static request(e,t,n,r,s,i,o){if(Sn.XDomainRequest){let a=new Sn.XDomainRequest;return this.xdomainRequest(a,e,t,r,s,i,o)}else if(Sn.XMLHttpRequest){let a=new Sn.XMLHttpRequest;return this.xhrRequest(a,e,t,n,r,s,i,o)}else{if(Sn.fetch&&Sn.AbortController)return this.fetchRequest(e,t,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,o){let a={method:e,headers:n,body:r},l=null;return s&&(l=new AbortController,setTimeout(()=>l.abort(),s),a.signal=l.signal),Sn.fetch(t,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>o&&o(u)).catch(u=>{u.name==="AbortError"&&i?i():o&&o(null)}),l}static xdomainRequest(e,t,n,r,s,i,o){return e.timeout=s,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,o,a){e.open(t,n,!0),e.timeout=i;for(let[l,u]of Object.entries(r))e.setRequestHeader(l,u);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===nF.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},sF=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},ei=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Rf)&&(this.authToken=atob(t[1].slice(Rf.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Tn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Pf.websocket),"$1/"+Pf.longpoll)}endpointURL(){return Jc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Tn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Tn.open||this.readyState===Tn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Tn.open,this.onopen({}),this.poll();break;
368case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=sF(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
369`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=Tn.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=Jc.request(e,this.endpointURL(),t,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},iF=class zo{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=zo.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=zo.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=zo.syncDiff(this.state,s,i,o),a())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return zo.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.clone(t),o={},a={};return this.map(i,(l,u)=>{n[l]||(a[l]=u)}),this.map(n,(l,u)=>{let d=i[l];if(d){let h=u.metas.map(p=>p.phx_ref),m=d.metas.map(p=>p.phx_ref),f=u.metas.filter(p=>m.indexOf(p.phx_ref)<0),y=d.metas.filter(p=>h.indexOf(p.phx_ref)<0);f.length>0&&(o[l]=u,o[l].metas=f),y.length>0&&(a[l]=this.clone(d),a[l].metas=y)}else o[l]=u}),this.syncDiff(i,{joins:o,leaves:a},r,s)}static syncDiff(t,n,r,s){let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(a,l)=>{let u=t[a];if(t[a]=this.clone(l),u){let d=t[a].metas.map(m=>m.phx_ref),h=u.metas.filter(m=>d.indexOf(m.phx_ref)<0);t[a].metas.unshift(...h)}r(a,u,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;let d=l.metas.map(h=>h.phx_ref);u.metas=u.metas.filter(h=>d.indexOf(h.phx_ref)<0),s(a,u,l),u.metas.length===0&&delete t[a]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},$l={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,o=this.META_LENGTH+t.length+n.length+s.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),u=0;l.setUint8(u++,this.KINDS.push),l.setUint8(u++,t.length),l.setUint8(u++,n.length),l.setUint8(u++,s.length),l.setUint8(u++,r.length),Array.from(t,h=>l.setUint8(u++,h.charCodeAt(0))),Array.from(n,h=>l.setUint8(u++,h.charCodeAt(0))),Array.from(s,h=>l.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>l.setUint8(u++,h.charCodeAt(0)));var d=new Uint8Array(a.byteLength+i.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(i),a.byteLength),d.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,459 bytes, line 369
369,decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+s));o=o+s;let u=n.decode(e.slice(o,o+i));o=o+i;let d=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:u,payload:d}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(a,a+r));a=a+r;let u=n.decode(e.slice(a,a+s));a=a+s;let d=n.decode(e.slice(a,a+i));a=a+i;let h=n.decode(e.slice(a,a+o));a=a+o;let m=e.slice(a,e.byteLength),f={status:h,response:m};return{join_ref:l,ref:u,topic:d,event:qn.reply,payload:f}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(e.slice(i,i+r));i=i+r;let a=n.decode(e.slice(i,i+s));i=i+s;let l=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},oF=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||eF,this.transport=t.transport||Sn.WebSocket||ei,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||Sn&&Sn.sessionStorage,this.establishedConnections=0,this.defaultEncoder=$l.encode.bind($l),this.defaultDecoder=$l.decode.bind($l),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ei?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;oi&&oi.addEventListener&&(oi.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),oi.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),oi.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=r=>t.rejoinAfterMs?t.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>t.reconnectAfterMs?t.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(r,s,i)=>{console.log(`${r}: ${s}`,i)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Qo(t.params||{}),this.endPoint=`${e}/${Pf.websocket}`,this.vsn=t.vsn||X5,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new lS(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ei}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Jc.appendParams(Jc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Qo(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ei?this.connectWithFallback(ei,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case ei:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Rf}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),i=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),tF,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===Tn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 369
369triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(qn.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Tn.connecting:return"connecting";case Tn.open:return"open";case Tn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new rF(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=t;if(i&&i===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,s,o)&&l.trigger(r,s,i,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Xo{constructor(t,n){const r=lF(n);this.presence=new iF(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=Xo.onJoinPayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=Xo.onLeavePayload(s,i,o);t.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Xo.transformState(this.presence.state)}static transformState(t){return t=aF(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=dc(s),n},{})}static onJoinPayload(t,n,r){const s=Iy(n),i=dc(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=Iy(n),i=dc(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function dc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function aF(e){return JSON.parse(JSON.stringify(e))}function lF(e){return(e==null?void 0:e.events)&&{events:e.events}}function Iy(e){return e!=null&&e.metas?dc(e):[]}var Ly;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Ly||(Ly={}));class cF{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Xo(this.channel.channelAdapter,n)}}function uF(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
369if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class dF{constructor(t,n,r){const s=hF(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>H5){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===Tr.joined}isJoined(){return this.state===Tr.joined}isJoining(){return this.state===Tr.joining}isClosed(){return this.state===Tr.closed}isLeaving(){return this.state===Tr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function hF(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var $y;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})($y||($y={}));var ki;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ki||(ki={}));var Zn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Zn||(Zn={}));class ea{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new dF(this.socket.socketAdapter,t,this.params),this.presence=new cF(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=aS(this.socket.socketAdapter.endPointURL()),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 new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[ki.PRESENCE]&&this.bindings[ki.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},m={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>{t==null||t(Zn.CHANNEL_ERROR,uF(f))}),this._onClose(()=>t==null?void 0:t(Zn.CLOSED)),this.updateJoinPayload(Object.assign({config:m},h)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:f})=>{if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Zn.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=Tr.errored;const y=Object.values(f).join(", ")||"error";t==null||t(Zn.CHANNEL_ERROR,new Error(y,{cause:f}))}).receive("timeout",()=>{t==null||t(Zn.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<i;a++){const l=s[a],{filter:{event:u,schema:d,table:h,filter:m}}=l,f=t&&t[a];if(f&&f.event===u&&ea.isFilterValueEqual(f.schema,d)&&ea.isFilterValueEqual(f.table,h)&&ea.isFilterValueEqual(f.filter,m))o.push(Object.assign(Object.assign({},l),{id:f.id}));else{this.unsubscribe(),this.state=Tr.errored,n==null||n(Zn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=Tr.errored&&n&&n(Zn.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===ki.PRESENCE||t===ki.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("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:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
369try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this.channelAdapter.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 u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this.channelAdapter.push(t.type,t,n.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"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_on(t,n,r){const s=t.toLocaleLowerCase(),i=this.channelAdapter.on(t,r),o={type:s,filter:n,callback:r,ref:i};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,o,a,l,u,d;const h=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,r))return!1;const m=(s=this.bindings[h])===null||s===void 0?void 0:s.find(f=>f.ref===t.ref);if(!m)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in m){const f=m.id,y=(i=m.filter)===null||i===void 0?void 0:i.event;return f&&((o=n.ids)===null||o===void 0?void 0:o.includes(f))&&(y==="*"||(y==null?void 0:y.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const f=(u=(l=m==null?void 0:m.filter)===null||l===void 0?void 0:l.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return f==="*"||f===((d=n==null?void 0:n.event)===null||d===void 0?void 0:d.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===h})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:o}=iS;return n&&[r,s,i,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:a,type:l,errors:u}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:u}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=My(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=My(t.columns,t.old_record)),n}}class fF{constructor(t,n){this.socket=new oF(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Nf.connecting}isDisconnecting(){return this.socket.connectionState()==Nf.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const zy={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},mF=[1e3,2e3,5e3,1e4],pF=1e4,gF=`
370  addEventListener("message", (e) => {
371    if (e.data.event === "start") {
372      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
373    }
374  });`;class vF{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
374,this.ref=0,this.serializer=new V5,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new fF(t,s),this.httpEndpoint=aS(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n}
375
376To use Realtime in Node.js, you need to provide a WebSocket implementation:
377
378Option 1: Use Node.js 22+ which has native WebSocket support
379Option 2: Install and provide the "ws" package:
380
381  npm install ws
382
383  import ws from "ws"
384  const client = new RealtimeClient(url, {
385    ...options,
386    transport: ws
387  })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Nf.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new ea(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
387this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:F5};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(iS.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.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)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([gF],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,a,l,u,d,h,m;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const f={};f.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:W5,f.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:zy.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:zy.HEARTBEAT_INTERVAL),f.transport=(l=t==null?void 0:t.transport)!==null&&l!==void 0?l:$5.getWebSocketConstructor(),f.params=t==null?void 0:t.params,f.logger=t==null?void 0:t.logger,f.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),f.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:v=>mF[v-1]||pF;let y,p;const x=(d=t==null?void 0:t.vsn)!==null&&d!==void 0?d:U5;switch(x){case B5:y=(v,g)=>g(JSON.stringify(v)),p=(v,g)=>g(JSON.parse(v));break;case sS:y=this.serializer.encode.bind(this.serializer),p=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${f.vsn}`)}if(f.vsn=x,f.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:y,f.decode=(m=t==null?void 0:t.decode)!==null&&m!==void 0?m:p,f.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,f.params=Object.assign(Object.assign({},f.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,f.autoSendHeartbeat=!this.worker}return f}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
387var Ra=class extends Error{constructor(e,t){var n;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)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function yF(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function bF(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 wF(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=yF(e.baseUrl,r,s),l=await bF(e.auth),u=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),m=h&&d?JSON.parse(d):d;if(!u.ok){const f=h?m:void 0,y=f==null?void 0:f.error;throw new Ra((y==null?void 0:y.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:f})}return{status:u.status,headers:u.headers,data:m}}}}function zl(e){return e.join("�")}var xF=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:zl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${zl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${zl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${zl(e.namespace)}`}),!0}catch(t){if(t instanceof Ra&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ra&&n.status===409)return;throw n}}};function ti(e){return e.join("�")}var kF=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ti(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ti(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/${ti(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/${ti(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ra&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ra&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},SF=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=wF({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new xF(this.client,t),this.tableOps=new kF(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)}
387async 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)}};function Oa(e){"@babel/helpers - typeof";return Oa=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},Oa(e)}function _F(e,t){if(Oa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EF(e){var t=_F(e,"string");return Oa(t)=="symbol"?t:t+""}function jF(e,t,n){return(t=EF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fy(Object(n),!0).forEach(function(r){jF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Wu=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Hu(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Of=class extends Wu{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return V({},super.toJSON())}},cS=class extends Wu{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Yc(e,t,n){const r=V({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function TF(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const NF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),CF=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)},Af=e=>{if(Array.isArray(e))return e.map(n=>Af(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Af(r)}),t},PF=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),By=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)},RF=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const s=e;let i=parseInt(s.status,10);Number.isFinite(i)||(i=500),s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new Of(By(o),i,a,r))}).catch(()=>{const o=i+"";t(new Of(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new cS(By(e),e,r))},OF=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return V(V({},s),n);if(CF(r)){var i;const o=(t==null?void 0:t.headers)||{};let a;for(const[l,u]of Object.entries(o))l.toLowerCase()==="content-type"&&(a=u);s.headers=Yc(o,"Content-Type",(i=a)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),V(V({},s),n)};async function Ao(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,OF(t,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>RF(u,l,r,o))})}function uS(e="storage"){return{get:async(t,n,r,s)=>Ao(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>Ao(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>Ao(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>Ao(t,"HEAD",n,V(V({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>Ao(t,"DELETE",n,s,i,r,e)}}const AF=uS("storage"),{get:Aa,post:on,put:Df,head:DF,remove:Pp}=AF,Ct=uS("vectors");var go=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=TF(t),this.fetch=NF(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Yc(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Hu(n))return{data:null,error:n};throw n}}},MF=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(Hu(t))return{data:null,error:t};throw t}}};let dS;dS=Symbol.toStringTag;var IF=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[dS]="BlobDownloadBuilder",this.promise=null}asStream(){return new MF(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(Hu(t))return{data:null,error:t};throw t}}};const LF={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Uy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var $F=class extends go{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=V(V({},Uy),r);let a=V(V({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;if(typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,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")),r!=null&&r.headers)for(const[m,f]of Object.entries(r.headers))a=Yc(a,m,f);const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),h=await(e=="PUT"?Df:on)(s.fetch,`${s.url}/object/${d}`,i,V({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const u=V(V({},Uy),r);let d=V(V({},s.headers),{"x-upsert":String(u.upsert)});const h=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),h&&l.append("metadata",s.encodeMetadata(h)),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.has("cacheControl")||l.append("cacheControl",u.cacheControl),h&&!l.has("metadata")&&l.a
387ppend("metadata",s.encodeMetadata(h))):(l=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,h&&(d["x-metadata"]=s.toBase64(s.encodeMetadata(h))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!u.duplex&&(u.duplex="half")),r!=null&&r.headers)for(const[m,f]of Object.entries(r.headers))d=Yc(d,m,f);return{path:i,fullPath:(await Df(s.fetch,a.toString(),l,V({headers:d},u!=null&&u.duplex?{duplex:u.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=V({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await on(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new Wu("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await on(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
387stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await on(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await on(r.fetch,`${r.url}/object/sign/${s}`,V({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const a=new URLSearchParams;n!=null&&n.download&&a.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&a.set("cacheNonce",String(n.cacheNonce));const l=a.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await on(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const o=i.toString();return s.map(a=>V(V({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=this._getFinalPath(e),a=()=>Aa(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new IF(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Af(await Aa(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await DF(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(Hu(s)){var r;const i=s instanceof Of?s.status:s instanceof cS?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Pp(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=V(V(V({},LF),t),{},{prefix:e||""});return await on(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=V({},e);return await on(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const zF="2.105.1",tl={"X-Client-Info":`storage-js/${zF}`};var FF=class extends go{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=V(V({},tl),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Aa(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Aa(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await on(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Df(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await on(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Pp(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},BF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},tl),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await on(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Aa(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Pp(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!PF(e))throw new Wu("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 n=new SF({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
387),r=this.shouldThrowOnError;return new Proxy(n,{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(r)throw l;return{data:null,error:l}}}}})}},UF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},tl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Ct.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Ct.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},WF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},tl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},HF=class extends go{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},tl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ct.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},VF=class extends HF{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new KF(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},KF=class extends UF{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new GF(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
387,GF=class extends WF{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},qF=class extends FF{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new $F(this.url,this.headers,e,this.fetch)}get vectors(){return new VF(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new BF(this.url+"/iceberg",this.headers,this.fetch)}};function Vu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}const hS="2.105.1",ai=30*1e3,Mf=3,Jd=Mf*ai,ZF="http://localhost:9999",JF="supabase.auth.token",YF={"X-Client-Info":`gotrue-js/${hS}`},If="X-Supabase-Api-Version",fS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},QF=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,XF=10*60*1e3;class Da extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function z(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class eB extends Da{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function tB(e){return z(e)&&e.name==="AuthApiError"}class dn extends Da{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class ur extends Da{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Ke extends ur{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Fl(e){return z(e)&&e.name==="AuthSessionMissingError"}class ni extends ur{constructor(){super("Auth session or user missing","AuthInvalidToken
387ResponseError",500,void 0)}}class Bl extends ur{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Ul extends ur{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function nB(e){return z(e)&&e.name==="AuthImplicitGrantRedirectError"}class Wy extends ur{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class rB extends ur{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 Lf extends ur{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Yd(e){return z(e)&&e.name==="AuthRetryableFetchError"}class Hy extends ur{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class $f extends ur{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Vy=` 	
388\r=`.split(""),sB=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Vy.length;t+=1)e[Vy[t].charCodeAt(0)]=-2;for(let t=0;t<Qc.length;t+=1)e[Qc[t].charCodeAt(0)]=t;return e})();function Ky(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Qc[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Qc[r]),t.queuedBits-=6}}function mS(e,t,n){const r=sB[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Gy(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{aB(o,r,n)};for(let o=0;o<e.length;o+=1)mS(e.charCodeAt(o),s,i);return t.join("")}function iB(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 oB(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}iB(r,t)}}
388function aB(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Mi(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)mS(e.charCodeAt(s),n,r);return new Uint8Array(t)}function lB(e){const t=[];return oB(e,n=>t.push(n)),new Uint8Array(t)}function vs(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Ky(s,n,r)),Ky(null,n,r),t.join("")}function cB(e){return Math.round(Date.now()/1e3)+e}function uB(){return Symbol("auth-callback")}const Je=()=>typeof window<"u"&&typeof document<"u",as={tested:!1,writable:!1},pS=()=>{if(!Je())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(as.tested)return as.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),as.tested=!0,as.writable=!0}catch{as.tested=!0,as.writable=!1}return as.writable};function dB(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const gS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),hB=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",li=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},ls=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Ze=async(e,t)=>{await e.removeItem(t)};class Ku{constructor(){this.promise=new Ku.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ku.promiseConstructor=Promise;function Wl(e){const t=e.split(".");if(t.length!==3)throw new $f("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!QF.test(t[r]))throw new $f("JWT not in base64url format");return{header:JSON.parse(Gy(t[0])),payload:JSON.parse(Gy(t[1])),signature:Mi(t[2]),raw:{header:t[0],payload:t[1]}}}async function fB(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function mB(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function pB(e){return("0"+e.toString(16)).substr(-2)}function gB(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,pB).join("")}async function vB(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function yB(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await vB(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ri(e,t,n=!1){const r=gB();let s=r;n&&(s+="/recovery"),await li(e,`${t}-code-verifier`,s);const i=await yB(r);return[i,r===i?"plain":"s256"]}const bB=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function wB(e){const t=e.headers.get(If);if(!t||!t.match(bB))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function xB(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 kB(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 SB=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Vn(e){if(!SB.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function nn(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Qd(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;
388if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function _B(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="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(n,r,s)}})}function qy(e){return JSON.parse(JSON.stringify(e))}const hs=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),EB=[502,503,504,520,521,522,523,524,530];async function Zy(e){var t;if(!hB(e))throw new Lf(hs(e),0);if(EB.includes(e.status))throw new Lf(hs(e),e.status);let n;try{n=await e.json()}catch(i){throw new dn(hs(i),i)}let r;const s=wB(e);if(s&&s.getTime()>=fS["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Hy(hs(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Ke}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Hy(hs(n),e.status,n.weak_password.reasons);throw new eB(hs(n),e.status||500,r)}const jB=(e,t,n,r)=>{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(r),Object.assign(Object.assign({},s),n))};async function U(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[If]||(i[If]=fS["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await TB(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function TB(e,t,n,r,s,i){const o=jB(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Lf(hs(l),0)}if(a.ok||await Zy(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Zy(l)}}function zt(e){var t;let n=null;PB(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=cB(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Jy(e){const t=zt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Nr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function NB(e){return{data:e,error:null}}function CB(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Vu(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Yy(e){return e}function PB(e){return e.access_token&&e.refresh_token&&e.expires_in}const Xd=["global","local","others"];class RB{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=gS(r),this.experimental=s??{},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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
vendor: 4,751 bytes, line 388
388async signOut(t,n=Xd[0]){if(Xd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Xd.join(", ")}`);try{return await U(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(z(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await U(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Nr})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Vu(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await U(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:CB,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(z(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await U(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Nr})}catch(n){if(z(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await U(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Yy});if(d.error)throw d.error;const h=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const p=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(y.split(";")[1].split("=")[1]);u[`${x}Page`]=p}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(z(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Vn(t);try{return await U(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Nr})}catch(n){if(z(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Vn(t);try{return await U(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Nr})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Vn(t);try{return await U(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Nr})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Vn(t.userId);try{const{data:n,error:r}=await U(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(z(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Vn(t.userId),Vn(t.id);try{return{data:await U(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(z(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await U(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Yy});if(d.error)throw d.error;const h=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const p=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(y.split(";")[1].split("=")[1]);u[`${x}Page`]=p}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(z(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await U(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await U(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(z(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await U(this.fetch,"DELET
388E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(z(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await U(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(z(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await U(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await U(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await U(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(z(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await U(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(z(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){nn(this.experimental),Vn(t.userId);try{return await U(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){nn(this.experimental),Vn(t.userId),Vn(t.passkeyId);try{return await U(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(z(n))return{data:null,error:n};throw n}}}function Qy(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const xn={debug:!!(globalThis&&pS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class vS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Xy extends vS{}async function OB(e,t,n){xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let s;t>0&&(s=setTimeout(()=>{r.abort(),xn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){clearTimeout(s),xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Xy(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(xn.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(s),await n()}})}catch(i){if(t>0&&clearTimeout(s),(i==null?void 0:i.name)==="AbortError"&&t>0){if(r.signal.aborted)return xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@
388supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new Xy(`Lock "${e}" was released because another request stole it`)}throw i}}function AB(){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 yS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function DB(e){return parseInt(e,16)}function MB(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function IB(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:d,uri:h,version:m}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)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(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(m!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${m}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
389`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=yS(e.address),y=d?`${d}://${r}`:r,p=e.statement?`${e.statement}
390`:"",x=`${y} wants you to sign in with your Ethereum account:
391${f}
392
393${p}`;let v=`URI: ${h}
394Version: ${m}
395Chain ID: ${n}${o?`
396Nonce: ${o}`:""}
397Issued At: ${i.toISOString()}`;if(s&&(v+=`
398Expiration Time: ${s.toISOString()}`),a&&(v+=`
399Not Before: ${a.toISOString()}`),l&&(v+=`
400Request ID: ${l}`),u){let g=`
401Resources:`;for(const b of u){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);g+=`
402- ${b}`}v+=g}return`${x}
403${v}`}class Ie extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class Xc extends Ie{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function LB({error:e,options:t}){var n,r,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 Ie({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Ie({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Ie({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 Ie({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 Ie({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ie({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 Ie({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ie({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;if(bS(o)){if(i.rp.id!==o)return new Ie({message:`The RP ID "${i.rp.id}
403" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ie({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 Ie({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 Ie({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 Ie({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function $B({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ie({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ie({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(bS(r)){if(n.rpId!==r)return new Ie({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ie({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ie({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 Ie({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class zB{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}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 zf=new zB;function eb(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:n,excludeCredentials:r}=e,s=Vu(e,["challenge","user","excludeCredentials"]),i=Mi(t).buffer,o=Object.assign(Object.assign({},n),{id:Mi(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:Mi(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function tb(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:n}=e,r=Vu(e,["challenge","allowCredentials"]),s=Mi(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Mi(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function nb(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:vs(new Uint8Array(e.response.attestationObject)),clientDataJSON:vs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function rb(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:vs(new Uint8Array(s.authenticatorData)),clientDataJSON:vs(new Uint8Array(s.clientDataJSON)),signature:vs(new Uint8Array(s.signature)),userHandle:s.userHandle?vs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function bS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function eu(){var e,t;return!!(Je()&&"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 wS(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Xc("Browser returned unexpected credential type",t)}:{data:null,error:new Xc("Empty credential response",t)}}
403catch(t){return{data:null,error:LB({error:t,options:e})}}}async function xS(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Xc("Browser returned unexpected credential type",t)}:{data:null,error:new Xc("Empty credential response",t)}}catch(t){return{data:null,error:$B({error:t,options:e})}}}const FB={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},BB={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function tu(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=tu(a,o):r[i]=tu(o)}else r[i]=o}return r}function UB(e,t){return tu(FB,e,t||{})}function WB(e,t){return tu(BB,e,t||{})}class HB{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:n,friendlyName:r,signal:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=s??zf.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:d}=a.webauthn.credential_options.publicKey;if(!d.name){const h=r;if(h)d.name=`${d.id}:${h}`;else{const f=(await this.client.getUser()).data.user,y=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";d.name=`${d.id}:${y}`}}d.displayName||(d.displayName=d.name)}switch(a.webauthn.type){case"create":{const d=UB(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:m}=await wS({publicKey:d,signal:u});return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}case"request":{const d=WB(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:m}=await xS(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}}}catch(a){return z(a)?{data:null,error:a}:{data:null,error:new dn("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Da("rpId is required for WebAuthn authentication")};try{if(!eu())return{data:null,error:new dn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},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:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return z(o)?{data:null,error:o}:{data:null,error:new dn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Da("rpId is required for WebAuthn registration")};try{if(!eu())return{data:null,error:new dn("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 h;
403return(h=d.data)===null||h===void 0?void 0:h.all.find(m=>m.factor_type==="webauthn"&&m.friendly_name===t&&m.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:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return z(o)?{data:null,error:o}:{data:null,error:new dn("Unexpected error in register",o)}}}}AB();const VB={url:ZF,storageKey:JF,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:YF,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function sb(e,t,n){return await n()}const si={};class Ma{get jwks(){var t,n;return(n=(t=si[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){si[this.storageKey]=Object.assign(Object.assign({},si[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=si[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){si[this.storageKey]=Object.assign(Object.assign({},si[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},VB),t);if(this.storageKey=o.storageKey,this.instanceID=(n=Ma.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ma.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Je()){const a=`${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(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.experimental=(r=o.experimental)!==null&&r!==void 0?r:{},this.admin=new RB({url:o.url,headers:o.headers,fetch:o.fetch,experimental:this.experimental}),this.url=o.url,this.headers=o.headers,this.fetch=gS(o.fetch),this.lock=o.lock||sb,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&Je()&&(!((s=globalThis==null?void 0:globalThis.navigator)===null||s===void 0)&&s.locks)?this.lock=OB:this.lock=sb,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 HB(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:pS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Qy(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=Qy(this.memoryStorage)),Je()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}o.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${hS}) ${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 n={},r="none";if(Je()&&(n=dB(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Je()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),n
403B(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(n){return z(n)?this._returnResult({error:n}):this._returnResult({error:new dn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:zt}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(z(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:d,password:h,options:m}=t;let f=null,y=null;this.flowType==="pkce"&&([f,y]=await ri(this.storage,this.storageKey)),i=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:h,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:f,code_challenge_method:y},xform:zt})}else if("phone"in t){const{phone:d,password:h,options:m}=t;i=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},channel:(s=m==null?void 0:m.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:zt})}else throw new Bl("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ze(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(await Ze(this.storage,`${this.storageKey}-code-verifier`),z(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await U(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:Jy})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await U(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:Jy})}else throw new Bl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new ni;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(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:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,l,u,d,h,m;let f,y;if("message"in t)f=t.message,y=t.signature;else{const{chain:p,wallet:x,statement:v,options:g}=t;let b;if(Je())if(typeof x=="object")b=x;else{const C=window;if("ethereum"in C&&typeof C.ethereum=="object"&&"request"in C.ethereum&&typeof C.ethereum.request=="function")b=C.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"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=x}const k=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),S=await b.request({method:"eth_requestAccounts"}).then(C=>C).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 _=yS(S[0]);let E=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!E){const C=await b.request({method:"eth_chainId"});E=DB(C)}const T={domain:k.host,address:_,statement:v,uri:k.href,version:"1",chainId:E,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=IB(T),y=await b.request({method:"personal_sign",params:[MB(f),_]})}try{const{data:p,error:x}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:y}
403,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:zt});if(x)throw x;if(!p||!p.session||!p.user){const v=new ni;return this._returnResult({data:{user:null,session:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:x})}catch(p){if(z(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(t){var n,r,s,i,o,a,l,u,d,h,m,f;let y,p;if("message"in t)y=t.message,p=t.signature;else{const{chain:x,wallet:v,statement:g,options:b}=t;let k;if(Je())if(typeof v=="object")k=v;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))k=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=v}const S=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);
403if("signIn"in k&&k.signIn){const _=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),g?{statement:g}:null));let E;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")E=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)E=_;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)y=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),p=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=b==null?void 0:b.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=b==null?void 0:b.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(d=b==null?void 0:b.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(`
404`);const _=await k.signMessage(new TextEncoder().encode(y),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=_}}try{const{data:x,error:v}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:vs(p)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:zt});if(v)throw v;if(!x||!x.session||!x.user){const g=new ni;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:v})}catch(x){if(z(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await ls(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new rB;const{data:i,error:o}=await U(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:zt});if(await Ze(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new ni;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ze(this.storage,`${this.storageKey}-code-verifier`),z(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await U(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:zt}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const d=new ni;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:u})}catch(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await ri(this.storage,this.storageKey));const{error:h}=await U(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:d}=await U(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:u==null?void 0:u.message_id},error:d})}throw new Bl("You must provide either an email or phone number.")}catch(a){if(await Ze(this.storage,`${this.storageKey}-code-verifier`),z(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await U(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:zt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=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:u,session:l},error:null})}catch(s){if(z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ri(this.storage,this.storageKey));const u=await U(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((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:NB});return!((i=u.data)===null||i===void 0)&&i.url&&Je()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Ze(this.storage,`${this.storageKey}-code-verifier`),z(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:n},error:r}=t;if(r)throw r;if(!n)throw new Ke;const{error:s}=await U(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(z(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await U(this.fetch,"POST",n,{headers:this.headers,body:{email:r,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:r,type:s,options:i}=t,{data:o,error:a}=await U(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,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 Bl("You must provide either an email or phone number and a type")}catch(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();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 r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await ls(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
404id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Jd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await ls(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Qd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=_B(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 n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await U(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Nr}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ke}:await U(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:Nr})})}catch(n){if(z(n))return Fl(n)&&(await this._removeSession(),await Ze(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Ke;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await ri(this.storage,this.storageKey));const{data:u,error:d}=await U(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Nr});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Ze(this.storage,`${this.storageKey}-code-verifier`),z(r))return this._returnResult({data:{user:null},error:r});throw r}}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 Ke;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Wl(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),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)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(z(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}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 n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ke;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(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!Je())throw new Ul("No browser detected.");
404if(t.error||t.error_description||t.error_code)throw new Ul(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Wy("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Ul("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Wy("No code detected.");const{data:b,error:k}=await this._exchangeCodeForSession(t.code);if(k)throw k;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:b.session,redirectType:(r=b.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:o,refresh_token:a,expires_in:l,expires_at:u,token_type:d}=t;if(!o||!l||!a||!d)throw new Ul("No session defined in URL");const h=Math.round(Date.now()/1e3),m=parseInt(l);let f=h+m;u&&(f=parseInt(u));const y=f-h;y*1e3<=ai&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${y}s, should have been closer to ${m}s`);const p=f-m;h-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,f,h):h-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,f,h);const{data:x,error:v}=await this._getUser(o);if(v)throw v;const g={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:m,expires_at:f,refresh_token:a,token_type:d,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(s){if(z(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_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 n=await ls(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}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 n=>{var r;const{data:s,error:i}=n;if(i&&!Fl(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(tB(a)&&(a.status===404||a.status===401||a.status===403)||Fl(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ze(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}
404onAuthStateChange(t){const n=uB(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.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),Fl(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await ri(this.storage,this.storageKey,!0));try{return await U(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Ze(this.storage,`${this.storageKey}-code-verifier`),z(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,d;const{data:h,error:m}=i;if(m)throw m;const f=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 U(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Je()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(z(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;if(s)throw s;const{options:o,provider:a,token:l,access_token:u,nonce:d}=t,h=await U(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:zt}),{data:m,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!m||!m.session||!m.user?this._returnResult({data:{user:null,session:null},error:new ni}):(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("USER_UPDATED",m.session)),this._returnResult({data:m,error:f}))}catch(s){if(await Ze(this.storage,`${this.storageKey}-code-verifier`),z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await U(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await mB(async s=>(s>
4040&&await fB(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await U(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:zt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Yd(i)&&Date.now()+o-r<ai})}catch(r){if(this._debug(n,"error",r),z(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Je()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await ls(this.storage,this.storageKey);if(s&&this.userStorage){let o=await ls(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await li(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Qd()}else if(s&&!s.user&&!s.user){const o=await ls(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ze(this.storage,this.storageKey+"-user"),await li(this.storage,this.storageKey,s)):s.user=Qd()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Jd;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Jd}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Yd(o)||(this._debug(r,"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(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Ke;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Ku;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Ke;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),z(i)){const o={data:null,error:i};return Yd(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}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 Ze(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await li(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=qy(s);await li(this.storage,this.storageKey,i)}else{const s=qy(n);await li(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ze(this.storage,this.storageKey),await Ze(this.storage,this.storageKey+"-code-verifier"),await Ze(this.storage,this.storageKey+"-user"),this.userStorage&&await Ze(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Je()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
404catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ai);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/ai);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ai}ms, refresh threshold is ${Mf} ticks`),s<=Mf&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof vS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Je()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"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(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await ri(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await U(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;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:u}=await U(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(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(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;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"?nb(t.webauthn.credential_response):rb(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await U(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.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(n){if(z(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await U(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.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:eb(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:tb(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.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(t){var n,r,s,i;if(t)try{const{payload:f}=Wl(t);let y=null;f.aal&&(y=f.aal);let p=y;const{data:{user:x},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(k=>k.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(p="aal2");const b=f.amr||[];return{data:{currentLevel:y,nextLevel:p,currentAuthenticationMethods:b},error:null}}catch(f){if(z(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
404=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Wl(o.access_token);let u=null;l.aal&&(u=l.aal);let d=u;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(d="aal2");const m=l.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:m},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await U(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ke})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ke});const o=await U(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&&Je()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Ke});const o=await U(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&&Je()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await U(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Ke})})}catch(t){if(z(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await U(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ke})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+XF>s)return r;const{data:i,error:o}=await U(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,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:y}
404=await this.getSession();if(y||!f.session)return this._returnResult({data:null,error:y});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Wl(r);n!=null&&n.allowExpired||xB(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const d=kB(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,lB(`${a}.${l}`)))throw new $f("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s;nn(this.experimental);try{if(!eu())return this._returnResult({data:null,error:new dn("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}});if(o||!i)return this._returnResult({data:null,error:o});const a=tb(i.options),l=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:zf.createNewAbortSignal(),{data:u,error:d}=await xS({publicKey:a,signal:l});if(d||!u)return this._returnResult({data:null,error:d??new dn("WebAuthn ceremony failed",null)});const h=rb(u);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:h})}catch(i){if(z(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var n,r;nn(this.experimental);try{if(!eu())return this._returnResult({data:null,error:new dn("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const o=eb(s.options),a=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:zf.createNewAbortSignal(),{data:l,error:u}=await wS({publicKey:o,signal:a});if(u||!l)return this._returnResult({data:null,error:u??new dn("WebAuthn ceremony failed",null)});const d=nb(l);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:d})}catch(s){if(z(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){nn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Ke});const{data:s,error:i}=await U(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(z(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){nn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new Ke});const{data:i,error:o}=await U(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;nn(this.experimental);try{const{data:r,error:s}=await U(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){nn(this.experimental);try{const{data:n,error:r}=await U(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:zt});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){nn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Ke});const{data:s,error:i}=await U(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(z(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){nn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new Ke});const{data:i,error:o}=await U(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){nn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new Ke});const{error:i}
404=await U(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}}Ma.nextInstanceID={};const KB=Ma,GB="2.105.1";let Fo="";typeof Deno<"u"?Fo="deno":typeof document<"u"?Fo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Fo="react-native":Fo="node";const qB={"X-Client-Info":`supabase-js-${Fo}/${GB}`},ZB={headers:qB},JB={schema:"public"},YB={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},QB={};function Ia(e){"@babel/helpers - typeof";return Ia=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},Ia(e)}function XB(e,t){if(Ia(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ia(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e6(e){var t=XB(e,"string");return Ia(t)=="symbol"?t:t+""}function t6(e,t,n){return(t=e6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(n),!0).forEach(function(r){t6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const n6=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),r6=()=>Headers,s6=(e,t,n)=>{const r=n6(n),s=r6();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Re(Re({},o),{},{headers:u}))}};function i6(e){return e.endsWith("/")?e:e+"/"}function o6(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:u,realtime:d,global:h}=t,m={db:Re(Re({},l),s),auth:Re(Re({},u),i),realtime:Re(Re({},d),o),storage:{},global:Re(Re(Re({},h),a),{},{headers:Re(Re({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function a6(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(i6(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var l6=class extends KB{constructor(e){super(e)}},c6=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=a6(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:JB,realtime:QB,auth:Re(Re({},YB),{},{storageKey:o}),global:ZB},l=o6(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=s6(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Re({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},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 L5(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new qF(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new T5(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={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
404channel(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,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:u,experimental:d},h,m){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new l6({url:this.authUrl.href,headers:Re(Re({},f),h),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:u,experimental:d,fetch:m,hasCustomAuthorizationHeader:Object.keys(this.headers).some(y=>y.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new vF(this.realtimeUrl.href,Re(Re({},e),{},{params:Re(Re({},{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,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const u6=(e,t,n)=>new c6(e,t,n);function d6(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}d6()&&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");function h6(){var x,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((x=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:x[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,m=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(g,b,k)=>new Promise(S=>{const _=m();let E=!1,T;const C=$=>{E||(E=!0,clearTimeout(T),window.removeEventListener("message",M),S($))},M=$=>{if(u.indexOf($.origin)<0)return;const q=$.data;q&&q.type===d&&q.requestId===_&&C(q)};window.addEventListener("message",M);const W={type:g,requestId:_,projectId:s,key:b};k!==void 0&&(W.value=k);for(const $ of u)window.parent.postMessage(W,$);T=setTimeout(()=>C(null),h)});let y=!0;const p=250;return{getItem:async g=>{let b=await f("lovable-preview-auth:get",g);return!b&&y&&(await new Promise(k=>setTimeout(k,p)),b=await f("lovable-preview-auth:get",g)),y=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(g),null):b.value:localStorage.getItem(g)},setItem:(g,b)=>(localStorage.setItem(g,b),f("lovable-preview-auth:set",g,b).then(k=>{k&&k.ok&&typeof k.value=="string"&&localStorage.getItem(g)===b&&(k.value===""?localStorage.removeItem(g):localStorage.setItem(g,k.value))})),removeItem:g=>(localStorage.removeItem(g),f("lovable-preview-auth:remove",g).then(()=>{}))}}const f6="https://jqemtdvgnxhdpmolmnlh.supabase.co",m6="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImpxZW10ZHZnbnhoZHBtb2xtbmxoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzczNzA0MTksImV4cCI6MjA5Mjk0NjQxOX0.jIVgmqoYrLiZOYqtaYUuuaHGauOCROp6VGJ1OEii-30",Pt=u6(f6,m6,{auth:{storage:h6(),persistSession:!0,autoRefreshToken:!0}}),p6=vM({name:Oo().trim().min(1).max(100),phone:Oo().trim().min(4).max(30),email:Oo().trim().email().max(255),message:Oo().trim().min(1).max(1e3),callbackTime:Oo().trim().max(60).optional()}),eh={de:QL,en:vp,sv:C$,da:SL},g6=()=>{const{t:e,language:t}=We(),{toast:n}=$w(),[r,s]=w.useState(""),[i,o]=w.useState(""),[a,l]=w.useState(""),[u,d]=w.useState(""),[h,m]=w.useState(void 0),[f,y]=w.useState(""),[p,x]=w.useState(!1),[v,g]=w.useState(!1),[b,k]=w.useState(!1),_={de:{label:"Ich habe die",link:"Datenschutzerklärung",suffix:"gelesen und stimme der Verarbeitung meiner Angaben zur Bearbeitung meiner Bewerbung zu.",error:"Bitte stimmen Sie der Datenschutzerklärung zu."},en:{label:"I have read the",link:"privacy policy",suffix:"and consent to the processing of my data for handling my application.",error:"Please accept the privacy policy."},sv:{label:"Jag har läst",link:"integritetspolicyn",suffix:"och samtycker till behandlingen av mina uppgifter för min ansökan.",error:"Vänligen godkänn integritetspolicyn."},da:{label:"Jeg har læst",link:"privatlivspolitikken",suffix:"og samtykker til behandlingen af mine oplysninger til min ansøgning.",error:"Accepter venligst privatlivspolitikken."}}[t],E=async C=>
404{if(C.preventDefault(),!b){n({title:e(I.karriere.errorTitle),description:_.error,variant:"destructive"});return}const M=p6.safeParse({name:r,phone:i,email:a,message:u,callbackTime:f});if(!M.success){n({title:e(I.karriere.errorTitle),description:e(I.karriere.errorText),variant:"destructive"});return}x(!0);const{name:W,phone:$,email:q,message:L,callbackTime:X}=M.data,K=h?Mn(h,"yyyy-MM-dd"):null,D=X&&X.length>0?X:null,j=h?Mn(h,"PPP",{locale:eh[t]}):null,{error:P}=await Pt.functions.invoke("submit-chef-application",{body:{name:W,phone:$,email:q,message:L,callbackDate:K,callbackTime:D,callbackPretty:j}});if(x(!1),P){n({title:e(I.karriere.errorTitle),description:e(I.karriere.errorText),variant:"destructive"});return}g(!0),s(""),o(""),l(""),d(""),m(void 0),y("")};if(v)return c.jsxs("div",{className:"bg-primary/10 border border-primary/30 rounded-lg p-8 text-center",children:[c.jsx(sf,{className:"w-12 h-12 text-primary mx-auto mb-4"}),c.jsx("h3",{className:"font-display text-2xl text-foreground mb-2",children:e(I.karriere.successTitle)}),c.jsx("p",{className:"text-muted-foreground",children:e(I.karriere.successText)})]});const T=new Date;return T.setHours(0,0,0,0),c.jsxs("form",{onSubmit:E,className:"w-full space-y-4 bg-card/50 backdrop-blur-sm border border-border rounded-lg p-4 sm:p-6 md:p-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(LT,{className:"w-5 h-5 text-primary","aria-hidden":"true"}),c.jsx("span",{className:"text-sm font-semibold uppercase tracking-widest text-primary",children:e(I.karriere.badge)})]}),c.jsxs("div",{children:[c.jsx(Ut,{htmlFor:"karriere-name",children:e(I.karriere.nameLabel)}),c.jsx(er,{id:"karriere-name",value:r,onChange:C=>s(C.target.value),placeholder:e(I.karriere.namePlaceholder),maxLength:100,required:!0,className:"mt-1 text-base"})]}),c.jsxs("div",{children:[c.jsx(Ut,{htmlFor:"karriere-phone",children:e(I.karriere.phoneLabel)}),c.jsx(er,{id:"karriere-phone",type:"tel",value:i,onChange:C=>o(C.target.value),placeholder:e(I.karriere.phonePlaceholder),maxLength:30,required:!0,className:"mt-1 text-base"})]}),c.jsxs("div",{children:[c.jsx(Ut,{htmlFor:"karriere-email",children:e(I.karriere.emailLabel)}),c.jsx(er,{id:"karriere-email",type:"email",value:a,onChange:C=>l(C.target.value),placeholder:e(I.karriere.emailPlaceholder),maxLength:255,required:!0,className:"mt-1 text-base"}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:e(I.karriere.emailHint)})]}),c.jsxs("div",{children:[c.jsx(Ut,{htmlFor:"karriere-message",children:e(I.karriere.messageLabel)}),c.jsx(u1,{id:"karriere-message",value:u,onChange:C=>d(C.target.value),placeholder:e(I.karriere.messagePlaceholder),maxLength:1e3,rows:5,required:!0,className:"mt-1 text-base"})]}),c.jsxs("div",{className:"pt-2 border-t border-border/60",children:[c.jsx("p",{className:"text-sm font-semibold text-foreground mb-3",children:e(I.karriere.callbackHeading)}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(Ut,{htmlFor:"karriere-date",children:e(I.karriere.callbackDateLabel)}),c.jsxs(k5,{children:[c.jsx(S5,{asChild:!0,children:c.jsxs(se,{id:"karriere-date",type:"button",variant:"outline",className:ve("w-full min-w-0 mt-1 justify-start text-left font-normal text-base",!h&&"text-muted-foreground"),children:[c.jsx(fx,{className:"mr-2 h-4 w-4"}),h?Mn(h,"PPP",{locale:eh[t]}):e(I.karriere.callbackDatePlaceholder)]})}),c.jsx(eS,{className:"w-auto p-0",align:"start",children:c.jsx(R1,{mode:"single",selected:h,onSelect:m,disabled:C=>C<T,initialFocus:!0,locale:eh[t],className:ve("p-3 pointer-events-auto")})})]})]}),c.jsxs("div",{children:[c.jsx(Ut,{htmlFor:"karriere-time",children:e(I.karriere.callbackTimeLabel)}),c.jsxs("div",{className:"relative mt-1",children:[c.jsx(Ga,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"}),c.jsx(er,{id:"karriere-time",value:f,onChange:C=>y(C.target.value),placeholder:e(I.karriere.callbackTimePlaceholder),maxLength:60,className:"pl-9 text-base"})]})]})]})]}),c.jsxs("div",{className:"flex items-start gap-3 pt-2",children:[c.jsx(w1,{id:"karriere-privacy",checked:b,onCheckedChange:C=>k(C===!0),className:"mt-1"}),c.jsxs(Ut,{htmlFor:"karriere-privacy",className:"text-base sm:text-sm text-muted-foreground font-normal leading-relaxed cursor-pointer",children:[_.label," ",c.jsx(_e,{to:"/datenschutz",target:"_blank",className:"text-primary underline",children:_.link})," ",_.suffix]})]}),c.jsx(se,{type:"submit",disabled:p||!b,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:e(p?I.karriere.submitting:I.karriere.submit)})]})},v6={"@context":"https://schema.org","@type":"JobPosting",title:"Koch (m/w/d) – Nordic Grill & BBQ",description:"LEON'S Nordic Grill- & BBQ-Haus am Hopfenmarkt Rostock sucht Köchin/Koch (m/w/d) in Voll- oder Teilzeit. Arbeit mit dem 800°C Southbend-Ofen, frische regionale Produkte, familiengeführtes Team.",datePosted:new Date().toISOString().split("T")[0],employmentType:["FULL_TIME","PART_TIME"],hiringOrganization:{"@type":"Organization",name:"GBSE GmbH (LEON'S Nordic Grill- & BBQ-Haus)",sameAs:"https://steak-reservation-hub.lovable.app/"},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",streetAddress:"Hopfenmarkt",addressLocality:"Rostock",postalCode:"18055",addressCountry:"DE"}},directApply:!0},y6=()=>{const{t:e}=We();return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Karriere – Koch (m/w/d) gesucht | LEON'S Rostock",description:"LEON'S Nordic Grill- & BBQ-Haus Rostock sucht Köchin/Koch (m/w/d) in Voll- oder Teilzeit. Jetzt online bewerben am Hopfenmarkt Rostock.",path:"/karriere",jsonLd:v6}),c.jsx(mo,{}),c.jsx("main",{className:"py-10 sm:py-16",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(_e,{to:"/",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-primary mb-8 transition-colors",children:[c.jsx($s,{className:"w-4 h-4"}),e(I.pages.backToHome)]}),c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsx("img",{src:Pk,alt:"Stellenanzeige: Leon's Nordic Grill & BBQ sucht Koch (m/w/d) in Voll- oder Teilzeit",className:"w-full h-auto object-contain rounded-lg sm:rounded-2xl shadow-2xl mb-10"}),c.jsxs("div",{className:"text-center mb-10",children:[c.jsx("p",{className:"inline-block text-primary font-semibold text-sm md:text-base uppercase tracking-widest mb-3",children:e(I.karriere.badge)}),c.jsx("h1",{className:"font-display text-4xl md:text-6xl text-foreground leading-none mb-6",children:e(I.karriere.title)}),c.jsx("p",{className:"text-muted-foreground text-lg md:text-xl leading-relaxed",children:e(I.karriere.intro)})]}),c.jsx(g6,{})]})]})})]})},ob="https://jqemtdvgnxhdpmolmnlh.supabase.co",ab="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImpxZW10ZHZnbnhoZHBtb2xtbmxoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzczNzA0MTksImV4cCI6MjA5Mjk0NjQxOX0.jIVgmqoYrLiZOYqtaYUuuaHGauOCROp6VGJ1OEii-30",b6=()=>{const[e]=_2(),t=e.get("token"),[n,r]=w.useState("loading");w.useEffect(()=>{if(!t){r("invalid");return}(async()=>{try{const o=await(await fetch(`${ob}/functions/v1/handle-email-unsubscribe?token=${encodeURIComponent(t)}`,{headers:{apikey:ab}})).json();o.valid?r("valid"):o.reason==="already_unsubscribed"?r("already"):r("invalid")}catch{r("invalid")}})()},[t]);const s=async()=>
404{if(t){r("submitting");try{const o=await(await fetch(`${ob}/functions/v1/handle-email-unsubscribe`,{method:"POST",headers:{"Content-Type":"application/json",apikey:ab},body:JSON.stringify({token:t})})).json();o.success?r("done"):o.reason==="already_unsubscribed"?r("already"):r("error")}catch{r("error")}}};return c.jsx("main",{className:"min-h-screen flex items-center justify-center px-4 bg-background",children:c.jsxs("div",{className:"max-w-md w-full bg-card border border-border rounded-lg p-8 text-center",children:[c.jsx("h1",{className:"font-display text-3xl text-foreground mb-4",children:"Newsletter abmelden"}),n==="loading"&&c.jsxs("div",{className:"flex flex-col items-center gap-3 text-muted-foreground",children:[c.jsx(wa,{className:"w-8 h-8 animate-spin"}),c.jsx("p",{children:"Wird geprüft..."})]}),n==="valid"&&c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-muted-foreground mb-6",children:"Bist du sicher, dass du keine E-Mails mehr von uns erhalten möchtest?"}),c.jsx(se,{onClick:s,className:"bg-primary hover:bg-primary/90 text-primary-foreground",children:"Abmeldung bestätigen"})]}),n==="submitting"&&c.jsxs("div",{className:"flex flex-col items-center gap-3 text-muted-foreground",children:[c.jsx(wa,{className:"w-8 h-8 animate-spin"}),c.jsx("p",{children:"Abmeldung wird verarbeitet..."})]}),n==="done"&&c.jsxs("div",{className:"flex flex-col items-center gap-3",children:[c.jsx(sf,{className:"w-12 h-12 text-primary"}),c.jsx("p",{className:"text-foreground",children:"Du wurdest erfolgreich abgemeldet."})]}),n==="already"&&c.jsxs("div",{className:"flex flex-col items-center gap-3",children:[c.jsx(sf,{className:"w-12 h-12 text-primary"}),c.jsx("p",{className:"text-foreground",children:"Diese E-Mail-Adresse ist bereits abgemeldet."})]}),(n==="invalid"||n==="error")&&c.jsxs("div",{className:"flex flex-col items-center gap-3",children:[c.jsx(FT,{className:"w-12 h-12 text-destructive"}),c.jsx("p",{className:"text-muted-foreground",children:"Der Link ist ungültig oder abgelaufen."})]})]})})},w6=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Reservierung | LEON'S Rostock – Tisch online buchen",description:"Reservieren Sie Ihren Tisch im LEON'S Rostock am Hopfenmarkt schnell und einfach online.",path:"/reservierung"}),c.jsx(Ou,{}),c.jsx(mo,{}),c.jsx("main",{className:"pt-8 pb-16",children:c.jsx(Rk,{})})]}),x6=1,k6="8c586cde-76d7-4755-9349-8433da46aeeb",S6="cc33d0ee-2e30-4d92-8bbc-07c39932b554",_6="/__l5e/assets-v1/8c586cde-76d7-4755-9349-8433da46aeeb/weihnachtsmenue-2026.png",E6="a/v1/cc33d0ee-2e30-4d92-8bbc-07c39932b554/8c586cde-76d7-4755-9349-8433da46aeeb/weihnachtsmenue-2026.png",j6="weihnachtsmenue-2026.png",T6=2188308,N6="image/png",C6="2026-10-02T12:11:06Z",lb={version:x6,asset_id:k6,project_id:S6,url:_6,r2_key:E6,original_filename:j6,size:T6,content_type:N6,created_at:C6},P6="https://www.yovite.com/Restaurant-Gutschein-R-59065063.html?REF=REST",R6={"@context":"https://schema.org","@type":"WebPage",name:"Weihnachten bei LEON'S Rostock",description:"Festliches Weihnachtsmenü, Weihnachtsfeiern und Geschenkgutscheine bei LEON'S Nordic Grill- & BBQ-Haus am Hopfenmarkt Rostock.",url:"https://steak-reservation-hub.lovable.app/weihnachten"},O6=()=>{const{t:e}=We(),t=I.weihnachten;return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Fn,{title:"Weihnachten bei LEON'S Rostock – Festtagsmenü & Weihnachtsfeiern",description:"Weihnachtsmenüs 2026 ab 34,90 € pro Person, Weihnachtsfeiern und Geschenkgutscheine bei LEON'S Nordic Grill- & BBQ-Haus am Hopfenmarkt Rostock. Jetzt Tisch reservieren.",path:"/weihnachten",jsonLd:R6}),c.jsx(mo,{}),c.jsxs("main",{children:[c.jsxs("section",{"aria-labelledby":"weihnachten-title",className:"relative bg-foreground overflow-hidden",children:[c.jsxs("div",{"aria-hidden":"true",className:"absolute inset-0 pointer-events-none",children:[c.jsx("div",{className:"absolute -top-20 -right-20 w-96 h-96 rounded-full bg-gold/15 blur-3xl"}),c.jsx("div",{className:"absolute bottom-0 -left-24 w-80 h-80 rounded-full bg-primary/20 blur-3xl"})]}),c.jsxs("div",{className:"container mx-auto px-4 relative py-12 md:py-20 text-center",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 bg-gold text-gold-foreground rounded-full px-4 py-1.5 text-sm font-semibold uppercase tracking-widest mb-5",children:[c.jsx(vx,{className:"w-4 h-4","aria-hidden":"true"}),e(t.pageSubtitle)]}),c.jsx("h1",{id:"weihnachten-title",className:"font-display text-4xl md:text-6xl text-primary-foreground leading-none mb-6 break-words",children:e(t.heroTitle)}
404),c.jsx("p",{className:"text-primary-foreground/80 text-lg md:text-xl leading-relaxed max-w-2xl mx-auto mb-8",children:e(t.heroText)}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[c.jsx(se,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold w-full sm:w-auto min-h-11",children:c.jsx(_e,{to:"/reservierung",children:e(t.ctaReserve)})}),c.jsx(se,{asChild:!0,size:"lg",variant:"outline",className:"border-primary-foreground/40 text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground font-semibold w-full sm:w-auto min-h-11",children:c.jsxs("a",{href:"tel:+493814583443",children:[c.jsx(Yo,{className:"mr-2 w-4 h-4","aria-hidden":"true"}),"0381 4583443"]})})]})]})]}),c.jsx("section",{"aria-labelledby":"weihnachten-menu-title",className:"py-12 sm:py-20 bg-secondary/30",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 text-primary font-semibold text-sm uppercase tracking-widest mb-3",children:[c.jsx(av,{className:"w-4 h-4","aria-hidden":"true"}),e(t.menuBadge)]}),c.jsx("h2",{id:"weihnachten-menu-title",className:"font-display text-4xl md:text-5xl text-foreground leading-none mb-4 break-words",children:e(t.menuTitle)}),c.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed",children:e(t.menuText)}),c.jsxs("p",{className:"text-gold font-semibold text-base md:text-lg mt-3 flex items-center justify-center gap-2",children:[c.jsx(fx,{className:"w-4 h-4 shrink-0","aria-hidden":"true"}),e(t.menuAvailable)]})]}),c.jsx("a",{href:lb.url,target:"_blank",rel:"noopener noreferrer","aria-label":e(t.menuEnlarge),className:"block max-w-2xl mx-auto rounded-xl overflow-hidden shadow-2xl ring-1 ring-border hover:ring-gold transition-all duration-300",children:c.jsx("img",{src:lb.url,alt:"Weihnachtsmenüs 2026 bei LEON'S – Wildgulasch, Lachs, Vegetarisch und Ente, ab 34,90 € pro Person",width:1024,height:1536,className:"w-full h-auto block",loading:"lazy"})}),c.jsx("p",{className:"text-center text-xs text-muted-foreground mt-3",children:e(t.menuEnlargeHint)}),c.jsx("div",{className:"text-center mt-6",children:c.jsx(se,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold w-full sm:w-auto min-h-11",children:c.jsxs(_e,{to:"/reservierung",children:[e(t.menuCta),c.jsx(ba,{className:"ml-2 w-4 h-4","aria-hidden":"true"})]})})})]})}),c.jsx("section",{"aria-labelledby":"weihnachten-party-title",className:"py-12 sm:py-20 bg-background",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10 md:mb-14",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 text-primary font-semibold text-sm uppercase tracking-widest mb-3",children:[c.jsx(Ic,{className:"w-4 h-4","aria-hidden":"true"}),e(t.partyBadge)]}),c.jsx("h2",{id:"weihnachten-party-title",className:"font-display text-4xl md:text-5xl text-foreground leading-none mb-4 break-words",children:e(t.partyTitle)}),c.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed",children:e(t.partyText)})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-10",children:[{icon:Ic,title:t.party1Title,text:t.party1Text},{icon:av,title:t.party2Title,text:t.party2Text},{icon:Yo,title:t.party3Title,text:t.party3Text}].map(({icon:n,title:r,text:s})=>c.jsxs("div",{className:"bg-card/60 border border-border rounded-lg p-6 text-center",children:[c.jsx(n,{className:"w-8 h-8 text-primary mx-auto mb-4","aria-hidden":"true"}),c.jsx("h3",{className:"font-display text-2xl text-foreground mb-2",children:e(r)}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e(s)})]},e(r)))}),c.jsx("p",{className:"text-center text-muted-foreground text-sm mb-6 max-w-xl mx-auto",children:e(t.contactNote)}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[c.jsx(se,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold w-full sm:w-auto min-h-11",children:c.jsxs(_e,{to:"/reservierung",children:[c.jsx(DT,{className:"mr-2 w-4 h-4","aria-hidden":"true"}),e(t.groupCta)]})}),c.jsx(se,{asChild:!0,size:"lg",variant:"outline",className:"border-primary text-primary hover:bg-primary/10 font-semibold w-full sm:w-auto min-h-11",children:c.jsxs("a",{href:"tel:+493814583443",children:[c.jsx(Yo,{className:"mr-2 w-4 h-4","aria-hidden":"true"}),"0381 4583443"]})})]})]})}),c.jsxs("section",{"aria-labelledby":"weihnachten-voucher-title",className:"relative py-12 sm:py-20 bg-foreground overflow-hidden",children:[c.jsxs("div",{"aria-hidden":"true",className:"absolute inset-0 pointer-events-none",children:[c.jsx("div",{className:"absolute -top-16 -right-16 w-72 h-72 rounded-full bg-gold/15 blur-3xl"}),c.jsx("div",{className:"absolute -bottom-20 -left-16 w-72 h-72 rounded-full bg-primary/20 blur-3xl"})]}),c.jsxs("div",{className:"container mx-auto px-4 relative text-center",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 bg-gold text-gold-foreground rounded-full px-4 py-1.5 text-sm font-semibold uppercase tracking-widest mb-5",children:[c.jsx(HT,{className:"w-4 h-4","aria-hidden":"true"}),e(t.voucherBadge)]}),c.jsx("h2",{id:"weihnachten-voucher-title",className:"font-display text-4xl md:text-5xl text-primary-foreground leading-none mb-4 break-words",children:e(t.voucherTitle)}
404),c.jsx("p",{className:"text-primary-foreground/80 text-base md:text-lg leading-relaxed max-w-2xl mx-auto mb-8",children:e(t.voucherText)}),c.jsx(se,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold w-full sm:w-auto min-h-11",children:c.jsxs("a",{href:P6,target:"_blank",rel:"noopener noreferrer",children:[e(t.voucherCta),c.jsx(ba,{className:"ml-2 w-4 h-4","aria-hidden":"true"})]})})]})]})]})]})};async function A6(e){const{data:t}=await Pt.storage.from("lunch-menus").createSignedUrl(e,86400);return(t==null?void 0:t.signedUrl)??null}const D6=()=>{const[e,t]=w.useState(null),[n,r]=w.useState(!1),[s,i]=w.useState(!0);return w.useEffect(()=>{Pt.auth.getSession().then(({data:a})=>t(a.session));const{data:o}=Pt.auth.onAuthStateChange((a,l)=>t(l));return()=>o.subscription.unsubscribe()},[]),w.useEffect(()=>{if(!e){r(!1),i(!1);return}i(!0),Pt.from("user_roles").select("role").eq("user_id",e.user.id).eq("role","admin").maybeSingle().then(({data:o})=>{r(!!o),i(!1)})},[e]),s?c.jsx("div",{className:"min-h-screen grid place-items-center bg-background",children:c.jsx(wa,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):e?c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx("header",{className:"border-b border-border",children:c.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[c.jsx("h1",{className:"font-display text-2xl text-foreground",children:"Admin"}),c.jsx(se,{variant:"outline",size:"sm",onClick:()=>Pt.auth.signOut(),children:"Abmelden"})]})}),c.jsx("main",{className:"container mx-auto px-4 py-8 max-w-2xl",children:n?c.jsx(I6,{}):c.jsx("p",{className:"text-muted-foreground",children:"Dieses Konto hat keine Admin-Rechte. Bitte mit dem Admin-Konto anmelden."})})]}):c.jsx(M6,{})},M6=()=>{const[e,t]=w.useState(""),[n,r]=w.useState(""),[s,i]=w.useState("login"),[o,a]=w.useState(!1),l=async u=>{u.preventDefault(),a(!0);const d=s==="login"?Pt.auth.signInWithPassword({email:e,password:n}):Pt.auth.signUp({email:e,password:n,options:{emailRedirectTo:`${window.location.origin}/admin`}}),{error:h}=await d;a(!1),h?gs({title:"Fehler",description:h.message,variant:"destructive"}):s==="signup"&&(gs({title:"Konto angelegt",description:"Bitte E-Mail bestätigen und danach anmelden."}),i("login"))};return c.jsx("div",{className:"min-h-screen grid place-items-center bg-background px-4",children:c.jsxs("form",{onSubmit:l,className:"w-full max-w-sm space-y-4 border border-border rounded-lg p-4 sm:p-6",children:[c.jsx("h1",{className:"font-display text-2xl text-foreground",children:s==="login"?"Admin-Anmeldung":"Admin-Konto anlegen"}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ut,{htmlFor:"email",children:"E-Mail"}),c.jsx(er,{id:"email",type:"email",value:e,required:!0,onChange:u=>t(u.target.value)})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ut,{htmlFor:"password",children:"Passwort"}),c.jsx(er,{id:"password",type:"password",value:n,required:!0,minLength:6,onChange:u=>r(u.target.value)})]}),c.jsxs(se,{type:"submit",className:"w-full",disabled:o,children:[o&&c.jsx(wa,{className:"w-4 h-4 mr-2 animate-spin"}),s==="login"?"Anmelden":"Konto anlegen"]}),c.jsx("button",{type:"button",className:"text-sm text-muted-foreground underline w-full",onClick:()=>i(s==="login"?"signup":"login"),children:s==="login"?"Noch kein Konto? Jetzt anlegen":"Zurück zur Anmeldung"})]})})},I6=()=>{const[e,t]=w.useState([]),[n,r]=w.useState({}),[s,i]=w.useState(""),[o,a]=w.useState(null),[l,u]=w.useState(!1),d=w.useCallback(async()=>{const{data:f}=await Pt.from("lunch_menus").select("*").order("created_at",{ascending:!1}),y=f??[];t(y);const p=await Promise.all(y.map(async x=>[x.id,await A6(x.image_path)??""]));r(Object.fromEntries(p))},[]);w.useEffect(()=>{d()},[d]);const h=async f=>{if(f.preventDefault(),!o)return;u(!0);const y=o.name.split(".").pop()??"jpg",p=`${Date.now()}.${y}`,{error:x}=await Pt.storage.from("lunch-menus").upload(p,o);if(x){u(!1),gs({title:"Upload fehlgeschlagen",description:x.message,variant:"destructive"});return}const{error:v}=await Pt.from("lunch_menus").insert({title:s,image_path:p});if(u(!1),v){gs({title:"Speichern fehlgeschlagen",description:v.message,variant:"destructive"});return}i(""),a(null),gs({title:"Mittagskarte veröffentlicht"}),d()},m=async f=>{await Pt.storage.from("lunch-menus").remove([f.image_path]);const{error:y}=await Pt.from("lunch_menus").delete().eq("id",f.id);if(y){gs({title:"Löschen fehlgeschlagen",description:y.message,variant:"destructive"});return}d()};return c.jsxs("div",{className:"space-y-10",children:[c.jsxs("form",{onSubmit:h,className:"w-full space-y-4 border border-border rounded-lg p-4 sm:p-6",children:[c.jsx("h2",{className:"font-display text-xl text-foreground",children:"Neue Mittagskarte hochladen"}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ut,{htmlFor:"title",children:"Bezeichnung (z. B. Woche 21.09.–25.09.26)"}),c.jsx(er,{id:"title",value:s,onChange:f=>i(f.target.value)})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Ut,{htmlFor:"file",children:"Bild der Mittagskarte"}),c.jsx(er,{id:"file",type:"file",accept:"image/*",onChange:f=>{var y;return a(((y=f.target.files)==null?void 0:y[0])??null)},required:!0})]}),c.jsxs(se,{type:"submit",disabled:l||!o,children:[l?c.jsx(wa,{className:"w-4 h-4 mr-2 animate-spin"}):c.jsx(YT,{className:"w-4 h-4 mr-2"}),"Veröffentlichen"]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Die zuletzt hochgeladene Karte wird auf der Business-Lunch-Seite angezeigt."})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsx("h2",{className:"font-display text-xl text-foreground",children:"Hochgeladene Karten"}
404),e.length===0&&c.jsx("p",{className:"text-muted-foreground",children:"Noch keine Karte hochgeladen."}),e.map((f,y)=>c.jsxs("div",{className:"border border-border rounded-lg p-4 space-y-3",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-foreground font-medium",children:f.title||"Ohne Bezeichnung"}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[new Date(f.created_at).toLocaleDateString("de-DE"),y===0&&" · aktuell online"]})]}),c.jsxs(se,{variant:"outline",size:"sm",className:"w-full sm:w-auto",onClick:()=>m(f),children:[c.jsx(JT,{className:"w-4 h-4 mr-2"}),"Löschen"]})]}),n[f.id]&&c.jsx("img",{src:n[f.id],alt:f.title,className:"w-full h-auto object-contain rounded"})]},f.id))]})]})},L6=()=>{const e=fo();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},th={message:{de:"Wir verwenden nur technisch notwendige Speichermechanismen (z. B. für Ihre Spracheinstellung). Tracking oder Analyse-Cookies werden nicht eingesetzt.",en:"We only use technically necessary storage mechanisms (e.g. for your language setting). No tracking or analytics cookies are used.",sv:"Vi använder bara tekniskt nödvändiga lagringsmekanismer (t.ex. för din språkinställning). Inga spårnings- eller analyskakkor används.",da:"Vi bruger kun teknisk nødvendige lagringsmekanismer (f.eks. til din sprogindstilling). Der bruges ingen sporings- eller analysecookies."},accept:{de:"Verstanden",en:"Got it",sv:"Förstått",da:"Forstået"},privacy:{de:"Datenschutzerklärung",en:"Privacy Policy",sv:"Integritetspolicy",da:"Privatlivspolitik"}},$6=()=>{const[e,t]=w.useState(!1),{t:n}=We();w.useEffect(()=>{localStorage.getItem("leons-cookie-consent")||t(!0)},[]);const r=()=>{localStorage.setItem("leons-cookie-consent","true"),t(!1)};return e?c.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-[60] max-h-[45vh] overflow-y-auto p-2 md:p-4 animate-fade-in pointer-events-none",children:c.jsx("div",{className:"container mx-auto max-w-3xl pointer-events-none",children:c.jsxs("div",{className:"bg-card border border-border rounded-lg p-3 sm:p-4 md:p-6 shadow-lg flex flex-col sm:flex-row items-stretch sm:items-center gap-3 md:gap-4 pointer-events-auto",children:[c.jsxs("p",{className:"text-sm text-muted-foreground flex-1 leading-relaxed",children:[n(th.message)," ",c.jsx(_e,{to:"/datenschutz",className:"text-primary hover:underline",children:n(th.privacy)})]}),c.jsx(se,{onClick:r,size:"sm",className:"w-full sm:w-auto min-h-11 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold whitespace-nowrap shrink-0",children:n(th.accept)})]})})}):null},z6=()=>{const[e,t]=w.useState(!1),[n,r]=w.useState([]),[s,i]=w.useState({w:0,dw:0});return w.useEffect(()=>{if(typeof window>"u")return;new URLSearchParams(window.location.search).get("debug")==="overflow"&&t(!0)},[]),w.useEffect(()=>{if(!e)return;const o="overflow-debugger-style";if(!document.getElementById(o)){const d=document.createElement("style");d.id=o,d.textContent=`
405        [data-overflow-offender="true"] {
406          outline: 3px solid #ff0055 !important;
407          outline-offset: -3px !important;
408          background: rgba(255, 0, 85, 0.15) !important;
409        }
410      `,document.head.appendChild(d)}const a=()=>{const d=document.documentElement.clientWidth,h=window.innerWidth;i({w:d,dw:h});const m=document.body.querySelectorAll("*"),f=[];m.forEach(y=>{if(y.closest("[data-overflow-debugger]"))return;const p=y.getBoundingClientRect(),x=p.width>d+1,v=p.right>d+1;x||v?(y.setAttribute("data-overflow-offender","true"),f.length<15&&f.push({tag:y.tagName.toLowerCase(),cls:(y.getAttribute("class")||"").slice(0,60)||"(no class)",width:Math.round(p.width),text:(y.textContent||"").trim().slice(0,40)})):y.removeAttribute("data-overflow-offender")}),r(f)};a();const l=()=>a();window.addEventListener("resize",l);const u=window.setInterval(a,1500);return()=>{window.removeEventListener("resize",l),window.clearInterval(u)}},[e]),e?c.jsxs("div",{"data-overflow-debugger":!0,style:{position:"fixed",top:0,left:0,right:0,zIndex:99999,background:"rgba(0,0,0,0.92)",color:"#fff",fontFamily:"monospace",fontSize:"11px",padding:"8px 10px",maxHeight:"45vh",overflowY:"auto",borderBottom:"2px s
410olid #ff0055"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:8},children:[c.jsxs("strong",{style:{color:"#ff5588"},children:["Overflow Debug — vw ",s.w,"px / innerWidth ",s.dw,"px — ",n.length," offender",n.length===1?"":"s"]}),c.jsx("button",{onClick:()=>{document.querySelectorAll("[data-overflow-offender]").forEach(o=>o.removeAttribute("data-overflow-offender")),t(!1)},style:{background:"#ff0055",color:"#fff",border:"none",padding:"4px 8px",borderRadius:4,fontWeight:"bold"},children:"✕"})]}),n.length===0?c.jsx("div",{style:{color:"#7fff7f",marginTop:4},children:"✓ No overflowing elements detected."}):c.jsx("ol",{style:{margin:"6px 0 0 18px",padding:0},children:n.map((o,a)=>c.jsxs("li",{style:{marginBottom:3},children:[c.jsxs("span",{style:{color:"#ffb347"},children:["<",o.tag,">"]})," ",c.jsxs("span",{style:{color:"#88ccff"},children:[o.width,"px"]})," ",c.jsx("span",{style:{color:"#aaa"},children:o.cls}),o.text&&c.jsxs("span",{style:{color:"#ddd"},children:[' · "',o.text,'"']})]},a))})]}):null},F6=new xR,B6=()=>c.jsx(SR,{client:F6,children:c.jsx(j2,{children:c.jsxs(YP,{children:[c.jsx(AN,{}),c.jsx(dC,{}),c.jsxs(w2,{children:[c.jsxs(h2,{children:[c.jsx(ct,{path:"/",element:c.jsx(nO,{})}),c.jsx(ct,{path:"/impressum",element:c.jsx(rO,{})}),c.jsx(ct,{path:"/datenschutz",element:c.jsx(sO,{})}),c.jsx(ct,{path:"/agb",element:c.jsx(iO,{})}),c.jsx(ct,{path:"/partner",element:c.jsx(pO,{})}),c.jsx(ct,{path:"/business-lunch",element:c.jsx(Uv,{})}),c.jsx(ct,{path:"/mittagskarte",element:c.jsx(Uv,{})}),c.jsx(ct,{path:"/dry-aged",element:c.jsx(wO,{})}),c.jsx(ct,{path:"/karriere",element:c.jsx(y6,{})}),c.jsx(ct,{path:"/weihnachten",element:c.jsx(O6,{})}),c.jsx(ct,{path:"/reservierung",element:c.jsx(w6,{})}),c.jsx(ct,{path:"/unsubscribe",element:c.jsx(b6,{})}),c.jsx(ct,{path:"/admin",element:c.jsx(D6,{})}),c.jsx(ct,{path:"*",element:c.jsx(L6,{})})]}),c.jsx($6,{}),c.jsx(z6,{})]})]})})});Pw(document.getElementById("root")).render(c.jsx(Lw,{children:c.jsx(B6,{})}));

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.