PageSourceSearch

https://luitpold-am-see.de/assets/index-C6F1Xx6I.js

js luitpold-am-see.de collected 2026-10-08 01:52:56 UTC 845,297 bytes, 240 lines download raw bytes

vendor: 6,287 bytes, lines 1-9
1var fT=Object.defineProperty;var Yg=t=>{throw TypeError(t)};var pT=(t,e,n)=>e in t?fT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var lr=(t,e,n)=>pT(t,typeof e!="symbol"?e+"":e,n),Dd=(t,e,n)=>e.has(t)||Yg("Cannot "+n);var j=(t,e,n)=>(Dd(t,e,"read from private field"),n?n.call(t):e.get(t)),ye=(t,e,n)=>e.has(t)?Yg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),re=(t,e,n,r)=>(Dd(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),pt=(t,e,n)=>(Dd(t,e,"access private method"),n);var Bl=(t,e,n,r)=>({set _(s){re(t,e,s,n)},get _(){return j(t,e,r)}});function mT(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 Sl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var kx={exports:{}},Yu={},_x={exports:{}},de={};/**
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 kl=Symbol.for("react.element"),gT=Symbol.for("react.portal"),yT=Symbol.for("react.fragment"),vT=Symbol.for("react.strict_mode"),wT=Symbol.for("react.profiler"),xT=Symbol.for("react.provider"),bT=Symbol.for("react.context"),ST=Symbol.for("react.forward_ref"),kT=Symbol.for("react.suspense"),_T=Symbol.for("react.memo"),ET=Symbol.for("react.lazy"),Jg=Symbol.iterator;function TT(t){return t===null||typeof t!="object"?null:(t=Jg&&t[Jg]||t["@@iterator"],typeof t=="function"?t:null)}var Ex={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tx=Object.assign,Cx={};function Io(t,e,n){this.props=t,this.context=e,this.refs=Cx,this.updater=n||Ex}Io.prototype.isReactComponent={};Io.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Io.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ax(){}Ax.prototype=Io.prototype;function Yp(t,e,n){this.props=t,this.context=e,this.refs=Cx,this.updater=n||Ex}var Jp=Yp.prototype=new Ax;Jp.constructor=Yp;Tx(Jp,Io.prototype);Jp.isPureReactComponent=!0;var Zg=Array.isArray,Px=Object.prototype.hasOwnProperty,Zp={current:null},jx={key:!0,ref:!0,__self:!0,__source:!0};function Rx(t,e,n){var r,s={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)Px.call(e,r)&&!jx.hasOwnProperty(r)&&(s[r]=e[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:kl,type:t,key:i,ref:o,props:s,_owner:Zp.current}}function CT(t,e){return{$$typeof:kl,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Qp(t){return typeof t=="object"&&t!==null&&t.$$typeof===kl}function AT(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Qg=/\/+/g;function Md(t,e){return typeof t=="object"&&t!==null&&t.key!=null?AT(""+t.key):e.toString(36)}function Tc(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case kl:case gT:o=!0}}if(o)return o=t,s=s(o),t=r===""?"."+Md(o,0):r,Zg(s)?(n="",t!=null&&(n=t.replace(Qg,"$&/")+"/"),Tc(s,e,n,"",function(c){return c})):s!=null&&(Qp(s)&&(s=CT(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Qg,"$&/")+"/")+t)),e.push(s)),1;if(o=0,r=r===""?".":r+":",Zg(t))for(var a=0;a<t.length;a++){i=t[a];var l=r+Md(i,a);o+=Tc(i,e,n,l,s)}else if(l=TT(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=r+Md(i,a++),o+=Tc(i,e,n,l,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function zl(t,e,n){if(t==null)return t;var r=[],s=0;return Tc(t,r,"","",function(i){return e.call(n,i,s++)}),r}function PT(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var At={current:null},Cc={transition:null},jT={ReactCurrentDispatcher:At,ReactCurrentBatchConfig:Cc,ReactCurrentOwner:Zp};function Nx(){throw Error("act(...) is not supported in production builds of React.")}de.Children={map:zl,forEach:function(t,e,n){zl(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return zl(t,function(){e++}),e},toArray:function(t){return zl(t,function(e){return e})||[]},only:function(t){if(!Qp(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};de.Component=Io;de.Fragment=yT;de.Profiler=wT;de.PureComponent=Yp;de.StrictMode=vT;de.Suspense=kT;
vendor: 5,064 bytes, lines 9-25
9de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jT;de.act=Nx;de.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Tx({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=Zp.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Px.call(e,l)&&!jx.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:kl,type:t.type,key:s,ref:i,props:r,_owner:o}};de.createContext=function(t){return t={$$typeof:bT,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:xT,_context:t},t.Consumer=t};de.createElement=Rx;de.createFactory=function(t){var e=Rx.bind(null,t);return e.type=t,e};de.createRef=function(){return{current:null}};de.forwardRef=function(t){return{$$typeof:ST,render:t}};de.isValidElement=Qp;de.lazy=function(t){return{$$typeof:ET,_payload:{_status:-1,_result:t},_init:PT}};de.memo=function(t,e){return{$$typeof:_T,type:t,compare:e===void 0?null:e}};de.startTransition=function(t){var e=Cc.transition;Cc.transition={};try{t()}finally{Cc.transition=e}};de.unstable_act=Nx;de.useCallback=function(t,e){return At.current.useCallback(t,e)};de.useContext=function(t){return At.current.useContext(t)};de.useDebugValue=function(){};de.useDeferredValue=function(t){return At.current.useDeferredValue(t)};de.useEffect=function(t,e){return At.current.useEffect(t,e)};de.useId=function(){return At.current.useId()};de.useImperativeHandle=function(t,e,n){return At.current.useImperativeHandle(t,e,n)};de.useInsertionEffect=function(t,e){return At.current.useInsertionEffect(t,e)};de.useLayoutEffect=function(t,e){return At.current.useLayoutEffect(t,e)};de.useMemo=function(t,e){return At.current.useMemo(t,e)};de.useReducer=function(t,e,n){return At.current.useReducer(t,e,n)};de.useRef=function(t){return At.current.useRef(t)};de.useState=function(t){return At.current.useState(t)};de.useSyncExternalStore=function(t,e,n){return At.current.useSyncExternalStore(t,e,n)};de.useTransition=function(){return At.current.useTransition()};de.version="18.3.1";_x.exports=de;var b=_x.exports;const R=Sl(b),Ox=mT({__proto__:null,default:R},[b]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var RT=b,NT=Symbol.for("react.element"),OT=Symbol.for("react.fragment"),LT=Object.prototype.hasOwnProperty,IT=RT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,DT={key:!0,ref:!0,__self:!0,__source:!0};function Lx(t,e,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)LT.call(e,r)&&!DT.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:NT,type:t,key:i,ref:o,props:s,_owner:IT.current}}Yu.Fragment=OT;Yu.jsx=Lx;Yu.jsxs=Lx;kx.exports=Yu;var h=kx.exports,Ix={exports:{}},Yt={},Dx={exports:{}},Mx={};/**
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(t){function e(C,P){var D=C.length;C.push(P);e:for(;0<D;){var Q=D-1>>>1,Y=C[Q];if(0<s(Y,P))C[Q]=P,C[D]=Y,D=Q;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var P=C[0],D=C.pop();if(D!==P){C[0]=D;e:for(var Q=0,Y=C.length,oe=Y>>>1;Q<oe;){var le=2*(Q+1)-1,$e=C[le],nt=le+1,ge=C[nt];if(0>s($e,D))nt<Y&&0>s(ge,$e)?(C[Q]=ge,C[nt]=D,Q=nt):(C[Q]=$e,C[le]=D,Q=le);else if(nt<Y&&0>s(ge,D))C[Q]=ge,C[nt]=D,Q=nt;else break e}}return P}function s(C,P){var D=C.sortIndex-P.sortIndex;return D!==0?D:C.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,f=3,p=!1,m=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(C){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=C)r(c),P.sortIndex=P.expirationTime,e(l,P);else break;P=n(c)}}function S(C){if(g=!1,w(C),!m)if(n(l)!==null)m=!0,Z(k);else{var P=n(c);P!==null&&H(S,P.startTime-C)}}function k(C,P){m=!1,g&&(g=!1,y(T),T=-1),p=!0;var D=f;try{for(w(P),d=n(l);d!==null&&(!(d.expirationTime>P)||C&&!F());){var Q=d.callback;
vendor: 9,160 bytes, lines 25-34
25if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var Y=Q(d.expirationTime<=P);P=t.unstable_now(),typeof Y=="function"?d.callback=Y:d===n(l)&&r(l),w(P)}else r(l);d=n(l)}if(d!==null)var oe=!0;else{var le=n(c);le!==null&&H(S,le.startTime-P),oe=!1}return oe}finally{d=null,f=D,p=!1}}var _=!1,E=null,T=-1,A=5,N=-1;function F(){return!(t.unstable_now()-N<A)}function U(){if(E!==null){var C=t.unstable_now();N=C;var P=!0;try{P=E(!0,C)}finally{P?X():(_=!1,E=null)}}else _=!1}var X;if(typeof v=="function")X=function(){v(U)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,se=M.port2;M.port1.onmessage=U,X=function(){se.postMessage(null)}}else X=function(){x(U,0)};function Z(C){E=C,_||(_=!0,X())}function H(C,P){T=x(function(){C(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(C){C.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,Z(k))},t.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<C?Math.floor(1e3/C):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(C){switch(f){case 1:case 2:case 3:var P=3;break;default:P=f}var D=f;f=P;try{return C()}finally{f=D}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(C,P){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var D=f;f=C;try{return P()}finally{f=D}},t.unstable_scheduleCallback=function(C,P,D){var Q=t.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?Q+D:Q):D=Q,C){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=D+Y,C={id:u++,callback:P,priorityLevel:C,startTime:D,expirationTime:Y,sortIndex:-1},D>Q?(C.sortIndex=D,e(c,C),n(l)===null&&C===n(c)&&(g?(y(T),T=-1):g=!0,H(S,D-Q))):(C.sortIndex=Y,e(l,C),m||p||(m=!0,Z(k))),C},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(C){var P=f;return function(){var D=f;f=P;try{return C.apply(this,arguments)}finally{f=D}}}})(Mx);Dx.exports=Mx;var MT=Dx.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 $T=b,Ht=MT;function L(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $x=new Set,Ia={};function ui(t,e){xo(t,e),xo(t+"Capture",e)}function xo(t,e){for(Ia[t]=e,t=0;t<e.length;t++)$x.add(e[t])}var xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gh=Object.prototype.hasOwnProperty,FT=/^[: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]*$/,Xg={},ey={};function UT(t){return Gh.call(ey,t)?!0:Gh.call(Xg,t)?!1:FT.test(t)?ey[t]=!0:(Xg[t]=!0,!1)}function BT(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function zT(t,e,n,r){if(e===null||typeof e>"u"||BT(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Pt(t,e,n,r,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ht[t]=new Pt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ht[e]=new Pt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ht[t]=new Pt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ht[t]=new Pt(t,2,!1,t,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(t){ht[t]=new Pt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ht[t]=new Pt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ht[t]=new Pt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ht[t]=new Pt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ht[t]=new Pt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Xp=/[\-:]([a-z])/g;function em(t){return t[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(t){var e=t.replace(Xp,em);ht[e]=new Pt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Xp,em);ht[e]=new Pt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Xp,em);ht[e]=new Pt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ht[t]=new Pt(t,1,!1,t.toLowerCase(),null,!1,!1)});ht.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ht[t]=new Pt(t,1,!1,t.toLowerCase(),null,!0,!0)});function tm(t,e,n,r){var s=ht.hasOwnProperty(e)?ht[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(zT(e,n,s,r)&&(n=null),r||s===null?UT(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Ar=$T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vl=Symbol.for("react.element"),Li=Symbol.for("react.portal"),Ii=Symbol.for("react.fragment"),nm=Symbol.for("react.strict_mode"),Yh=Symbol.for("react.profiler"),Fx=Symbol.for("react.provider"),Ux=Symbol.for("react.context"),rm=Symbol.for("react.forward_ref"),Jh=Symbol.for("react.suspense"),Zh=Symbol.for("react.suspense_list"),sm=Symbol.for("react.memo"),zr=Symbol.for("react.lazy"),Bx=Symbol.for("react.offscreen"),ty=Symbol.iterator;function qo(t){return t===null||typeof t!="object"?null:(t=ty&&t[ty]||t["@@iterator"],typeof t=="function"?t:null)}var Me=Object.assign,$d;function ua(t){if($d===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);$d=e&&e[1]||""}return`
34`+$d+t}var Fd=!1;function Ud(t,e){if(!t||Fd)return"";Fd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}
vendor: 16,752 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.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 t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Fd=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?ua(t):""}function VT(t){switch(t.tag){case 5:return ua(t.type);case 16:return ua("Lazy");case 13:return ua("Suspense");case 19:return ua("SuspenseList");case 0:case 2:case 15:return t=Ud(t.type,!1),t;case 11:return t=Ud(t.type.render,!1),t;case 1:return t=Ud(t.type,!0),t;default:return""}}function Qh(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ii:return"Fragment";case Li:return"Portal";case Yh:return"Profiler";case nm:return"StrictMode";case Jh:return"Suspense";case Zh:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ux:return(t.displayName||"Context")+".Consumer";case Fx:return(t._context.displayName||"Context")+".Provider";case rm:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case sm:return e=t.displayName||null,e!==null?e:Qh(t.type)||"Memo";case zr:e=t._payload,t=t._init;try{return Qh(t(e))}catch{}}return null}function WT(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qh(e);case 8:return e===nm?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ms(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function zx(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function HT(t){var e=zx(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wl(t){t._valueTracker||(t._valueTracker=HT(t))}function Vx(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=zx(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Zc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Xh(t,e){var n=e.checked;return Me({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function ny(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=ms(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Wx(t,e){e=e.checked,e!=null&&tm(t,"checked",e,!1)}function ef(t,e){Wx(t,e);var n=ms(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?tf(t,e.type,n):e.hasOwnProperty("defaultValue")&&tf(t,e.type,ms(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ry(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function tf(t,e,n){(e!=="number"||Zc(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var da=Array.isArray;function Xi(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+ms(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function nf(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(L(91));return Me({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function sy(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(L(92));if(da(n)){if(1<n.length)throw Error(L(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:ms(n)}}function Hx(t,e){var n=ms(e.value),r=ms(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function iy(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Kx(t){switch(t){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 rf(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Kx(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Hl,qx=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Hl=Hl||document.createElement("div"),Hl.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Hl.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Da(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var va={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},KT=["Webkit","ms","Moz","O"];Object.keys(va).forEach(function(t){KT.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),va[e]=va[t]})});function Gx(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||va.hasOwnProperty(t)&&va[t]?(""+e).trim():e+"px"}function Yx(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gx(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var qT=Me({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 sf(t,e){if(e){if(qT[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(L(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(L(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(L(61))}if(e.style!=null&&typeof e.style!="object")throw Error(L(62))}}function of(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 af=null;function im(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var lf=null,eo=null,to=null;function oy(t){if(t=Tl(t)){if(typeof lf!="function")throw Error(L(280));var e=t.stateNode;e&&(e=ed(e),lf(t.stateNode,t.type,e))}}function Jx(t){eo?to?to.push(t):to=[t]:eo=t}function Zx(){if(eo){var t=eo,e=to;if(to=eo=null,oy(t),e)for(t=0;t<e.length;t++)oy(e[t])}}function Qx(t,e){return t(e)}function Xx(){}var Bd=!1;function eb(t,e,n){if(Bd)return t(e,n);Bd=!0;try{return Qx(t,e,n)}finally{Bd=!1,(eo!==null||to!==null)&&(Xx(),Zx())}}function Ma(t,e){var n=t.stateNode;if(n===null)return null;var r=ed(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(L(231,e,typeof n));return n}var cf=!1;if(xr)try{var Go={};Object.defineProperty(Go,"passive",{get:function(){cf=!0}}),window.addEventListener("test",Go,Go),window.removeEventListener("test",Go,Go)}catch{cf=!1}function GT(t,e,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var wa=!1,Qc=null,Xc=!1,uf=null,YT={onError:function(t){wa=!0,Qc=t}};function JT(t,e,n,r,s,i,o,a,l){wa=!1,Qc=null,GT.apply(YT,arguments)}function ZT(t,e,n,r,s,i,o,a,l){if(JT.apply(this,arguments),wa){if(wa){var c=Qc;wa=!1,Qc=null}else throw Error(L(198));Xc||(Xc=!0,uf=c)}}function di(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function tb(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function ay(t){if(di(t)!==t)throw Error(L(188))}function QT(t){var e=t.alternate;if(!e){if(e=di(t),e===null)throw Error(L(188));return e!==t?null:t}for(var n=t,r=e;;){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 ay(s),t;if(i===r)return ay(s),e;i=i.sibling}throw Error(L(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(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?t:e}function nb(t){return t=QT(t),t!==null?rb(t):null}function rb(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=rb(t);if(e!==null)return e;t=t.sibling}return null}var sb=Ht.unstable_scheduleCallback,ly=Ht.unstable_cancelCallback,XT=Ht.unstable_shouldYield,eC=Ht.unstable_requestPaint,Ke=Ht.unstable_now,tC=Ht.unstable_getCurrentPriorityLevel,om=Ht.unstable_ImmediatePriority,ib=Ht.unstable_UserBlockingPriority,eu=Ht.unstable_NormalPriority,nC=Ht.unstable_LowPriority,ob=Ht.unstable_IdlePriority,Ju=null,Qn=null;function rC(t){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(Ju,t,void 0,(t.current.flags&128)===128)}catch{}}var jn=Math.clz32?Math.clz32:oC,sC=Math.log,iC=Math.LN2;function oC(t){return t>>>=0,t===0?32:31-(sC(t)/iC|0)|0}var Kl=64,ql=4194304;function ha(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function tu(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=ha(a):(i&=o,i!==0&&(r=ha(i)))}else o=n&~s,o!==0?r=ha(o):i!==0&&(r=ha(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-jn(e),s=1<<n,r|=t[n],e&=~s;return r}function aC(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 lC(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-jn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=aC(a,e)):l<=e&&(t.expiredLanes|=a),i&=~a}}function df(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ab(){var t=Kl;return Kl<<=1,!(Kl&4194240)&&(Kl=64),t}function zd(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _l(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-jn(e),t[e]=n}function cC(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-jn(n),i=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~i}}function am(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-jn(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var xe=0;function lb(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var cb,lm,ub,db,hb,hf=!1,Gl=[],is=null,os=null,as=null,$a=new Map,Fa=new Map,Hr=[],uC="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 cy(t,e){switch(t){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":os=null;break;case"mouseover":case"mouseout":as=null;break;case"pointerover":case"pointerout":$a.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fa.delete(e.pointerId)}}function Yo(t,e,n,r,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},e!==null&&(e=Tl(e),e!==null&&lm(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function dC(t,e,n,r,s){switch(e){case"focusin":return is=Yo(is,t,e,n,r,s),!0;case"dragenter":return os=Yo(os,t,e,n,r,s),!0;case"mouseover":return as=Yo(as,t,e,n,r,s),!0;case"pointerover":var i=s.pointerId;return $a.set(i,Yo($a.get(i)||null,t,e,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Fa.set(i,Yo(Fa.get(i)||null,t,e,n,r,s)),!0}return!1}function fb(t){var e=Fs(t.target);if(e!==null){var n=di(e);if(n!==null){if(e=n.tag,e===13){if(e=tb(n),e!==null){t.blockedOn=e,hb(t.priority,function(){ub(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ac(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ff(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);af=r,n.target.dispatchEvent(r),af=null}else return e=Tl(n),e!==null&&lm(e),t.blockedOn=n,!1;e.shift()}return!0}function uy(t,e,n){Ac(t)&&n.delete(e)}function hC(){hf=!1,is!==null&&Ac(is)&&(is=null),os!==null&&Ac(os)&&(os=null),as!==null&&Ac(as)&&(as=null),$a.forEach(uy),Fa.forEac
vendor: 9,276 bytes, line 37
37h(uy)}function Jo(t,e){t.blockedOn===e&&(t.blockedOn=null,hf||(hf=!0,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,hC)))}function Ua(t){function e(s){return Jo(s,t)}if(0<Gl.length){Jo(Gl[0],t);for(var n=1;n<Gl.length;n++){var r=Gl[n];r.blockedOn===t&&(r.blockedOn=null)}}for(is!==null&&Jo(is,t),os!==null&&Jo(os,t),as!==null&&Jo(as,t),$a.forEach(e),Fa.forEach(e),n=0;n<Hr.length;n++)r=Hr[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Hr.length&&(n=Hr[0],n.blockedOn===null);)fb(n),n.blockedOn===null&&Hr.shift()}var no=Ar.ReactCurrentBatchConfig,nu=!0;function fC(t,e,n,r){var s=xe,i=no.transition;no.transition=null;try{xe=1,cm(t,e,n,r)}finally{xe=s,no.transition=i}}function pC(t,e,n,r){var s=xe,i=no.transition;no.transition=null;try{xe=4,cm(t,e,n,r)}finally{xe=s,no.transition=i}}function cm(t,e,n,r){if(nu){var s=ff(t,e,n,r);if(s===null)Qd(t,e,r,ru,n),cy(t,r);else if(dC(s,t,e,n,r))r.stopPropagation();else if(cy(t,r),e&4&&-1<uC.indexOf(t)){for(;s!==null;){var i=Tl(s);if(i!==null&&cb(i),i=ff(t,e,n,r),i===null&&Qd(t,e,r,ru,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Qd(t,e,r,null,n)}}var ru=null;function ff(t,e,n,r){if(ru=null,t=im(r),t=Fs(t),t!==null)if(e=di(t),e===null)t=null;else if(n=e.tag,n===13){if(t=tb(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return ru=t,null}function pb(t){switch(t){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(tC()){case om:return 1;case ib:return 4;case eu:case nC:return 16;case ob:return 536870912;default:return 16}default:return 16}}var es=null,um=null,Pc=null;function mb(){if(Pc)return Pc;var t,e=um,n=e.length,r,s="value"in es?es.value:es.textContent,i=s.length;for(t=0;t<n&&e[t]===s[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===s[i-r];r++);return Pc=s.slice(t,1<r?1-r:void 0)}function jc(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Yl(){return!0}function dy(){return!1}function Jt(t){function e(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 t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Yl:dy,this.isPropagationStopped=dy,this}return Me(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yl)},persist:function(){},isPersistent:Yl}),e}var Do={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dm=Jt(Do),El=Me({},Do,{view:0,detail:0}),mC=Jt(El),Vd,Wd,Zo,Zu=Me({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hm,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Zo&&(Zo&&t.type==="mousemove"?(Vd=t.screenX-Zo.screenX,Wd=t.screenY-Zo.screenY):Wd=Vd=0,Zo=t),Vd)},movementY:function(t){return"movementY"in t?t.movementY:Wd}}),hy=Jt(Zu),gC=Me({},Zu,{dataTransfer:0}),yC=Jt(gC),vC=Me({},El,{relatedTarget:0}),Hd=Jt(vC),wC=Me({},Do,{animationName:0,elapsedTime:0,pseudoElement:0}),xC=Jt(wC),bC=Me({},Do,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),SC=Jt(bC),kC=Me({},Do,{data:0}),fy=Jt(kC),_C={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EC={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"},TC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CC(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=TC[t])?!!e[t]:!1}function hm(){return CC}var AC=Me({},El,{key:function(t){if(t.key){var e=_C[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=jc(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?EC[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hm,charCode:function(t){return t.type==="keypress"?jc(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?jc(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),PC=Jt(AC),jC=Me({},Zu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),py=Jt(jC),RC=Me({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hm}),NC=Jt(RC),OC=Me({},Do,{propertyName:0,elapsedTime:0,pseudoElement:0}),LC=Jt(OC),IC=Me({},Zu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),DC=Jt(IC),MC=[9,13,27,32],fm=xr&&"CompositionEvent"in window,xa=null;xr&&"documentMode"in document&&(xa=document.documentMode);var $C=xr&&"TextEvent"in window&&!xa,gb=xr&&(!fm||xa&&8<xa&&11>=xa),my=" ",gy=!1;function yb(t,e){switch(t){case"keyup":return MC.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vb(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Di=!1;function FC(t,e){switch(t){case"compositionend":return vb(e);case"keypress":return e.which!==32?null:(gy=!0,my);case"textInput":return t=e.data,t===my&&gy?null:t;default:return null}}function UC(t,e){if(Di)return t==="compositionend"||!fm&&yb(t,e)?(t=mb(),Pc=um=es=null,Di=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return gb&&e.locale!=="ko"?null:e.data;default:return null}}var BC={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 yy(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!BC[t.type]:e==="textarea"}function wb(t,e,n,r){Jx(r),e=su(e,"onChange"),0<e.length&&(n=new dm("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var ba=null,Ba=null;function zC(t){jb(t,0)}function Qu(t){var e=Fi(t);if(Vx(e))return t}function VC(t,e){if(t==="change")return e}var xb=!1;if(xr){var Kd;if(xr){var qd="oninput"in document;if(!qd){var vy=document.createElement("div");vy.setAttribute("oninput","return;"),qd=typeof vy.oninput=="function"}Kd=qd}else Kd=!1;xb=Kd&&(!document.documentMode||9<document.documentMode)}function wy(){ba&&(ba.detachEvent("onpropertychange",bb),Ba=ba=null)}function bb(t){if(t.propertyName==="value"&&Qu(Ba)){var e=[];wb(e,Ba,t,im(t)),eb(zC,e)}}function WC(t,e,n){t==="focusin"?(wy(),ba=e,Ba=n,ba.attachEvent("onpropertychange",bb)):t==="focusout"&&wy()}function HC(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Qu(Ba)}function KC(t,e){if(t==="click")return Qu(e)}function qC(t,e){if(t==="input"||t==="change")return Qu(e)}function GC(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var On=typeof Object.is=="function"?Object.is:GC;function za(t,e){if(On(t,e))return!0;
vendor: 4,808 bytes, line 37
37if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Gh.call(e,s)||!On(t[s],e[s]))return!1}return!0}function xy(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function by(t,e){var n=xy(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xy(n)}}function Sb(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Sb(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function kb(){for(var t=window,e=Zc();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Zc(t.document)}return e}function pm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function YC(t){var e=kb(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Sb(n.ownerDocument.documentElement,n)){if(r!==null&&pm(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!t.extend&&i>r&&(s=r,r=i,i=s),s=by(n,i);var o=by(n,r);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var JC=xr&&"documentMode"in document&&11>=document.documentMode,Mi=null,pf=null,Sa=null,mf=!1;function Sy(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mf||Mi==null||Mi!==Zc(r)||(r=Mi,"selectionStart"in r&&pm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sa&&za(Sa,r)||(Sa=r,r=su(pf,"onSelect"),0<r.length&&(e=new dm("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Mi)))}function Jl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var $i={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionend:Jl("Transition","TransitionEnd")},Gd={},_b={};xr&&(_b=document.createElement("div").style,"AnimationEvent"in window||(delete $i.animationend.animation,delete $i.animationiteration.animation,delete $i.animationstart.animation),"TransitionEvent"in window||delete $i.transitionend.transition);function Xu(t){if(Gd[t])return Gd[t];if(!$i[t])return t;var e=$i[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in _b)return Gd[t]=e[n];return t}var Eb=Xu("animationend"),Tb=Xu("animationiteration"),Cb=Xu("animationstart"),Ab=Xu("transitionend"),Pb=new Map,ky="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 _s(t,e){Pb.set(t,e),ui(e,[t])}for(var Yd=0;Yd<ky.length;Yd++){var Jd=ky[Yd],ZC=Jd.toLowerCase(),QC=Jd[0].toUpperCase()+Jd.slice(1);_s(ZC,"on"+QC)}_s(Eb,"onAnimationEnd");_s(Tb,"onAnimationIteration");_s(Cb,"onAnimationStart");_s("dblclick","onDoubleClick");_s("focusin","onFocus");_s("focusout","onBlur");_s(Ab,"onTransitionEnd");xo("onMouseEnter",["mouseout","mouseover"]);xo("onMouseLeave",["mouseout","mouseover"]);xo("onPointerEnter",["pointerout","pointerover"]);xo("onPointerLeave",["pointerout","pointerover"]);ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ui("onBeforeInput",["compositionend","keypress","textInput","paste"]);ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fa="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(" "),XC=new Set("cancel close invalid load scroll toggle".split(" ").concat(fa));function _y(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,ZT(r,e,void 0,t),t.currentTarget=null}function jb(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;_y(s,a,c),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;_y(s,a,c),i=l}}}if(Xc)throw t=uf,Xc=!1,uf=null,t}function Pe(t,e){var n=e[xf];n===void 0&&(n=e[xf]=new Set);var r=t+"__bubble";n.has(r)||(Rb(e,t,2,!1),n.add(r))}function Zd(t,e,n){var r=0;e&&(r|=4),Rb(n,t,r,e)}var Zl="_reactListening"+Math.random().toString(36).slice(2);function Va(t){if(!t[Zl]){t[Zl]=!0,$x.forEach(function(n){n!=="selectionchange"&&(XC.has(n)||Zd(n,!1,t),Zd(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zl]||(e[Zl]=!0,Zd("selectionchange",!1,e))}}function Rb(t,e,n,r){switch(pb(e)){case 1:var s=fC;break;case 4:s=pC;break;default:s=cm}n=s.bind(null,e,n,t),s=void 0,!cf||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Qd(t,e,n,r,s){var i=r;if(!(e&1)&&!(e&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}eb(function(){var c=i,u=im(n),d=[];e:{var f=Pb.get(t);if(f!==void 0){var p=dm,m=t;switch(t){case"keypress":if(jc(n)===0)break e;case"keydown":case"keyup":p=PC;break;case"focusin":m="focus",p=Hd;break;case"focusout":m="blur",p=Hd;break;case"beforeblur":case"afterblur":p=Hd;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":p=hy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=yC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=NC;break;case Eb:case Tb:case Cb:p=xC;break;case Ab:p=LC;break;case"scroll":p=mC;break;case"wheel":p=DC;break;case"copy":case"cut":case"paste":p=SC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=py}var g=(e&4)!==0,x=!g&&t==="scroll",y=g?f!==null?f+"Capture":null:f;g=[];for(var v=c,w;v!==null;){w=v;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,y!==null&&(S=Ma(v,y),S!=null&&g.push(Wa(v,S,w)))),x)break;v=v.return}0<g.length&&(f=new p(f,m,null,n,u),d.push({event:f,listeners:g}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",f&&n!==af&&(m=n.relatedTarget||n.fromElement)&&(Fs(m)||m[br]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=c,m=m?Fs(m):null,m!==null&&(x=di(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(g=hy,S="onMouseLeave",y="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(g=py,S="onPointerLeave",y="onPointerEnter",v="pointer"),x=p==null?f:Fi(p),w=m==null?f:Fi(m),f=new g(S,v+"leave",p,n,u),f.target=x,f.relatedTarget=w,S=null,Fs(u)===c&&(g=new g(y,v+"enter",m,n,u),g.target=w,g.relatedTarget=x,S=g),x=S,p&&m)t:{for(g=p,y=m,v=0,w=g;w;w=wi(w))v++;for(w=0,S=y;S;S=wi(S))w++;for(;0<v-w;)g=wi(g),v--;for(;0<w-v;)y=wi(y),w--;for(;v--;){if(g===y||y!==null&&g===y.alternate)break t;g=wi(g),y=wi(y)}g=null}else g=null;p!==null&&Ey(d,f,p,g,!1),m!==null&&x!==null&&Ey(d,x,m,g,!0)}}
vendor: 5,681 bytes, lines 37-38
37e:{if(f=c?Fi(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var k=VC;else if(yy(f))if(xb)k=qC;else{k=HC;var _=WC}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=KC);if(k&&(k=k(t,c))){wb(d,k,n,u);break e}_&&_(t,f,c),t==="focusout"&&(_=f._wrapperState)&&_.controlled&&f.type==="number"&&tf(f,"number",f.value)}switch(_=c?Fi(c):window,t){case"focusin":(yy(_)||_.contentEditable==="true")&&(Mi=_,pf=c,Sa=null);break;case"focusout":Sa=pf=Mi=null;break;case"mousedown":mf=!0;break;case"contextmenu":case"mouseup":case"dragend":mf=!1,Sy(d,n,u);break;case"selectionchange":if(JC)break;case"keydown":case"keyup":Sy(d,n,u)}var E;if(fm)e:{switch(t){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Di?yb(t,n)&&(T="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(gb&&n.locale!=="ko"&&(Di||T!=="onCompositionStart"?T==="onCompositionEnd"&&Di&&(E=mb()):(es=u,um="value"in es?es.value:es.textContent,Di=!0)),_=su(c,T),0<_.length&&(T=new fy(T,t,null,n,u),d.push({event:T,listeners:_}),E?T.data=E:(E=vb(n),E!==null&&(T.data=E)))),(E=$C?FC(t,n):UC(t,n))&&(c=su(c,"onBeforeInput"),0<c.length&&(u=new fy("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}jb(d,e)})}function Wa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function su(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ma(t,n),i!=null&&r.unshift(Wa(t,i,s)),i=Ma(t,e),i!=null&&r.push(Wa(t,i,s))),t=t.return}return r}function wi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Ey(t,e,n,r,s){for(var i=e._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=Ma(n,i),l!=null&&o.unshift(Wa(n,l,a))):s||(l=Ma(n,i),l!=null&&o.push(Wa(n,l,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var eA=/\r\n?/g,tA=/\u0000|\uFFFD/g;function Ty(t){return(typeof t=="string"?t:""+t).replace(eA,`
38`).replace(tA,"")}function Ql(t,e,n){if(e=Ty(e),Ty(t)!==e&&n)throw Error(L(425))}function iu(){}var gf=null,yf=null;function vf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var wf=typeof setTimeout=="function"?setTimeout:void 0,nA=typeof clearTimeout=="function"?clearTimeout:void 0,Cy=typeof Promise=="function"?Promise:void 0,rA=typeof queueMicrotask=="function"?queueMicrotask:typeof Cy<"u"?function(t){return Cy.resolve(null).then(t).catch(sA)}:wf;function sA(t){setTimeout(function(){throw t})}function Xd(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),Ua(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Ua(e)}function ls(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Ay(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Mo=Math.random().toString(36).slice(2),Jn="__reactFiber$"+Mo,Ha="__reactProps$"+Mo,br="__reactContainer$"+Mo,xf="__reactEvents$"+Mo,iA="__reactListeners$"+Mo,oA="__reactHandles$"+Mo;function Fs(t){var e=t[Jn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[br]||n[Jn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ay(t);t!==null;){if(n=t[Jn])return n;t=Ay(t)}return e}t=n,n=t.parentNode}return null}function Tl(t){return t=t[Jn]||t[br],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Fi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(L(33))}function ed(t){return t[Ha]||null}var bf=[],Ui=-1;function Es(t){return{current:t}}function je(t){0>Ui||(t.current=bf[Ui],bf[Ui]=null,Ui--)}function Ee(t,e){Ui++,bf[Ui]=t.current,t.current=e}var gs={},bt=Es(gs),Lt=Es(!1),ni=gs;function bo(t,e){var n=t.type.contextTypes;if(!n)return gs;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function It(t){return t=t.childContextTypes,t!=null}function ou(){je(Lt),je(bt)}function Py(t,e,n){if(bt.current!==gs)throw Error(L(168));Ee(bt,e),Ee(Lt,n)}function Nb(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(L(108,WT(t)||"Unknown",s));return Me({},n,r)}function au(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||gs,ni=bt.current,Ee(bt,t),Ee(Lt,Lt.current),!0}function jy(t,e,n){var r=t.stateNode;if(!r)throw Error(L(169));n?(t=Nb(t,e,ni),r.__reactInternalMemoizedMergedChildContext=t,je(Lt),je(bt),Ee(bt,t)):je(Lt),Ee(Lt,n)}var mr=null,td=!1,eh=!1;function Ob(t){mr===null?mr=[t]:mr.push(t)}function aA(t){td=!0,Ob(t)}function Ts(){if(!eh&&mr!==null){eh=!0;var t=0,e=xe;try{var n=mr;for(xe=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}mr=null,td=!1}catch(s){throw mr!==null&&(mr=mr.slice(t+1)),sb(om,Ts),s}finally{xe=e,eh=!1}}return null}var Bi=[],zi=0,lu=null,cu=0,tn=[],nn=0,ri=null,yr=1,vr="";function Ls(t,e){Bi[zi++]=cu,Bi[zi++]=lu,lu=t,cu=e}
vendor: 5,984 bytes, line 38
38function Lb(t,e,n){tn[nn++]=yr,tn[nn++]=vr,tn[nn++]=ri,ri=t;var r=yr;t=vr;var s=32-jn(r)-1;r&=~(1<<s),n+=1;var i=32-jn(e)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,yr=1<<32-jn(e)+s|n<<s|r,vr=i+t}else yr=1<<i|n<<s|r,vr=t}function mm(t){t.return!==null&&(Ls(t,1),Lb(t,1,0))}function gm(t){for(;t===lu;)lu=Bi[--zi],Bi[zi]=null,cu=Bi[--zi],Bi[zi]=null;for(;t===ri;)ri=tn[--nn],tn[nn]=null,vr=tn[--nn],tn[nn]=null,yr=tn[--nn],tn[nn]=null}var Vt=null,zt=null,Ne=!1,Cn=null;function Ib(t,e){var n=sn(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Ry(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Vt=t,zt=ls(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Vt=t,zt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=ri!==null?{id:yr,overflow:vr}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=sn(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Vt=t,zt=null,!0):!1;default:return!1}}function Sf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function kf(t){if(Ne){var e=zt;if(e){var n=e;if(!Ry(t,e)){if(Sf(t))throw Error(L(418));e=ls(n.nextSibling);var r=Vt;e&&Ry(t,e)?Ib(r,n):(t.flags=t.flags&-4097|2,Ne=!1,Vt=t)}}else{if(Sf(t))throw Error(L(418));t.flags=t.flags&-4097|2,Ne=!1,Vt=t}}}function Ny(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Vt=t}function Xl(t){if(t!==Vt)return!1;if(!Ne)return Ny(t),Ne=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!vf(t.type,t.memoizedProps)),e&&(e=zt)){if(Sf(t))throw Db(),Error(L(418));for(;e;)Ib(t,e),e=ls(e.nextSibling)}if(Ny(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(L(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){zt=ls(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}zt=null}}else zt=Vt?ls(t.stateNode.nextSibling):null;return!0}function Db(){for(var t=zt;t;)t=ls(t.nextSibling)}function So(){zt=Vt=null,Ne=!1}function ym(t){Cn===null?Cn=[t]:Cn.push(t)}var lA=Ar.ReactCurrentBatchConfig;function Qo(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,t));var s=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,t))}return t}function ec(t,e){throw t=Object.prototype.toString.call(e),Error(L(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Oy(t){var e=t._init;return e(t._payload)}function Mb(t){function e(y,v){if(t){var w=y.deletions;w===null?(y.deletions=[v],y.flags|=16):w.push(v)}}function n(y,v){if(!t)return null;for(;v!==null;)e(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function s(y,v){return y=hs(y,v),y.index=0,y.sibling=null,y}function i(y,v,w){return y.index=w,t?(w=y.alternate,w!==null?(w=w.index,w<v?(y.flags|=2,v):w):(y.flags|=2,v)):(y.flags|=1048576,v)}function o(y){return t&&y.alternate===null&&(y.flags|=2),y}function a(y,v,w,S){return v===null||v.tag!==6?(v=ah(w,y.mode,S),v.return=y,v):(v=s(v,w),v.return=y,v)}function l(y,v,w,S){var k=w.type;return k===Ii?u(y,v,w.props.children,S,w.key):v!==null&&(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===zr&&Oy(k)===v.type)?(S=s(v,w.props),S.ref=Qo(y,v,w),S.return=y,S):(S=Mc(w.type,w.key,w.props,null,y.mode,S),S.ref=Qo(y,v,w),S.return=y,S)}function c(y,v,w,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=lh(w,y.mode,S),v.return=y,v):(v=s(v,w.children||[]),v.return=y,v)}function u(y,v,w,S,k){return v===null||v.tag!==7?(v=ei(w,y.mode,S,k),v.return=y,v):(v=s(v,w),v.return=y,v)}function d(y,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=ah(""+v,y.mode,w),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Vl:return w=Mc(v.type,v.key,v.props,null,y.mode,w),w.ref=Qo(y,null,v),w.return=y,w;case Li:return v=lh(v,y.mode,w),v.return=y,v;case zr:var S=v._init;return d(y,S(v._payload),w)}if(da(v)||qo(v))return v=ei(v,y.mode,w,null),v.return=y,v;ec(y,v)}return null}function f(y,v,w,S){var k=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(y,v,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Vl:return w.key===k?l(y,v,w,S):null;case Li:return w.key===k?c(y,v,w,S):null;case zr:return k=w._init,f(y,v,k(w._payload),S)}if(da(w)||qo(w))return k!==null?null:u(y,v,w,S,null);ec(y,w)}return null}function p(y,v,w,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(w)||null,a(v,y,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Vl:return y=y.get(S.key===null?w:S.key)||null,l(v,y,S,k);case Li:return y=y.get(S.key===null?w:S.key)||null,c(v,y,S,k);case zr:var _=S._init;return p(y,v,w,_(S._payload),k)}if(da(S)||qo(S))return y=y.get(w)||null,u(v,y,S,k,null);ec(v,S)}return null}function m(y,v,w,S){for(var k=null,_=null,E=v,T=v=0,A=null;E!==null&&T<w.length;T++){E.index>T?(A=E,E=null):A=E.sibling;var N=f(y,E,w[T],S);if(N===null){E===null&&(E=A);break}t&&E&&N.alternate===null&&e(y,E),v=i(N,v,T),_===null?k=N:_.sibling=N,_=N,E=A}if(T===w.length)return n(y,E),Ne&&Ls(y,T),k;if(E===null){for(;T<w.length;T++)E=d(y,w[T],S),E!==null&&(v=i(E,v,T),_===null?k=E:_.sibling=E,_=E);return Ne&&Ls(y,T),k}for(E=r(y,E);T<w.length;T++)A=p(E,y,T,w[T],S),A!==null&&(t&&A.alternate!==null&&E.delete(A.key===null?T:A.key),v=i(A,v,T),_===null?k=A:_.sibling=A,_=A);
vendor: 1,877 bytes, line 38
38return t&&E.forEach(function(F){return e(y,F)}),Ne&&Ls(y,T),k}function g(y,v,w,S){var k=qo(w);if(typeof k!="function")throw Error(L(150));if(w=k.call(w),w==null)throw Error(L(151));for(var _=k=null,E=v,T=v=0,A=null,N=w.next();E!==null&&!N.done;T++,N=w.next()){E.index>T?(A=E,E=null):A=E.sibling;var F=f(y,E,N.value,S);if(F===null){E===null&&(E=A);break}t&&E&&F.alternate===null&&e(y,E),v=i(F,v,T),_===null?k=F:_.sibling=F,_=F,E=A}if(N.done)return n(y,E),Ne&&Ls(y,T),k;if(E===null){for(;!N.done;T++,N=w.next())N=d(y,N.value,S),N!==null&&(v=i(N,v,T),_===null?k=N:_.sibling=N,_=N);return Ne&&Ls(y,T),k}for(E=r(y,E);!N.done;T++,N=w.next())N=p(E,y,T,N.value,S),N!==null&&(t&&N.alternate!==null&&E.delete(N.key===null?T:N.key),v=i(N,v,T),_===null?k=N:_.sibling=N,_=N);return t&&E.forEach(function(U){return e(y,U)}),Ne&&Ls(y,T),k}function x(y,v,w,S){if(typeof w=="object"&&w!==null&&w.type===Ii&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Vl:e:{for(var k=w.key,_=v;_!==null;){if(_.key===k){if(k=w.type,k===Ii){if(_.tag===7){n(y,_.sibling),v=s(_,w.props.children),v.return=y,y=v;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===zr&&Oy(k)===_.type){n(y,_.sibling),v=s(_,w.props),v.ref=Qo(y,_,w),v.return=y,y=v;break e}n(y,_);break}else e(y,_);_=_.sibling}w.type===Ii?(v=ei(w.props.children,y.mode,S,w.key),v.return=y,y=v):(S=Mc(w.type,w.key,w.props,null,y.mode,S),S.ref=Qo(y,v,w),S.return=y,y=S)}return o(y);case Li:e:{for(_=w.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=s(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else e(y,v);v=v.sibling}v=lh(w,y.mode,S),v.return=y,y=v}return o(y);case zr:return _=w._init,x(y,v,_(w._payload),S)}if(da(w))return m(y,v,w,S);if(qo(w))return g(y,v,w,S);
vendor: 9,139 bytes, line 38
38ec(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=s(v,w),v.return=y,y=v):(n(y,v),v=ah(w,y.mode,S),v.return=y,y=v),o(y)):n(y,v)}return x}var ko=Mb(!0),$b=Mb(!1),uu=Es(null),du=null,Vi=null,vm=null;function wm(){vm=Vi=du=null}function xm(t){var e=uu.current;je(uu),t._currentValue=e}function _f(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function ro(t,e){du=t,vm=Vi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ot=!0),t.firstContext=null)}function un(t){var e=t._currentValue;if(vm!==t)if(t={context:t,memoizedValue:e,next:null},Vi===null){if(du===null)throw Error(L(308));Vi=t,du.dependencies={lanes:0,firstContext:t}}else Vi=Vi.next=t;return e}var Us=null;function bm(t){Us===null?Us=[t]:Us.push(t)}function Fb(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,bm(e)):(n.next=s.next,s.next=n),e.interleaved=n,Sr(t,r)}function Sr(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Vr=!1;function Sm(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ub(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function wr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function cs(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,Sr(t,n)}return s=r.interleaved,s===null?(e.next=e,bm(r)):(e.next=s.next,s.next=e),r.interleaved=e,Sr(t,n)}function Rc(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,am(t,n)}}function Ly(t,e){var n=t.updateQueue,r=t.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=e:i=i.next=e}else s=i=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function hu(t,e,n,r){var s=t.updateQueue;Vr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,u=c=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=t,g=a;switch(f=e,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=Me({},d,f);break e;case 2:Vr=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(u===null&&(l=d),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);ii|=o,t.lanes=o,t.memoizedState=d}}function Iy(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(L(191,s));s.call(r)}}}var Cl={},Xn=Es(Cl),Ka=Es(Cl),qa=Es(Cl);function Bs(t){if(t===Cl)throw Error(L(174));return t}function km(t,e){switch(Ee(qa,e),Ee(Ka,t),Ee(Xn,Cl),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:rf(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=rf(e,t)}je(Xn),Ee(Xn,e)}function _o(){je(Xn),je(Ka),je(qa)}function Bb(t){Bs(qa.current);var e=Bs(Xn.current),n=rf(e,t.type);e!==n&&(Ee(Ka,t),Ee(Xn,n))}function _m(t){Ka.current===t&&(je(Xn),je(Ka))}var Le=Es(0);function fu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var th=[];function Em(){for(var t=0;t<th.length;t++)th[t]._workInProgressVersionPrimary=null;th.length=0}var Nc=Ar.ReactCurrentDispatcher,nh=Ar.ReactCurrentBatchConfig,si=0,De=null,Xe=null,it=null,pu=!1,ka=!1,Ga=0,cA=0;function mt(){throw Error(L(321))}function Tm(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!On(t[n],e[n]))return!1;return!0}function Cm(t,e,n,r,s,i){if(si=i,De=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Nc.current=t===null||t.memoizedState===null?fA:pA,t=n(r,s),ka){i=0;do{if(ka=!1,Ga=0,25<=i)throw Error(L(301));i+=1,it=Xe=null,e.updateQueue=null,Nc.current=mA,t=n(r,s)}while(ka)}if(Nc.current=mu,e=Xe!==null&&Xe.next!==null,si=0,it=Xe=De=null,pu=!1,e)throw Error(L(300));return t}function Am(){var t=Ga!==0;return Ga=0,t}function Vn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?De.memoizedState=it=t:it=it.next=t,it}function dn(){if(Xe===null){var t=De.alternate;t=t!==null?t.memoizedState:null}else t=Xe.next;var e=it===null?De.memoizedState:it.next;if(e!==null)it=e,Xe=t;else{if(t===null)throw Error(L(310));Xe=t,t={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},it===null?De.memoizedState=it=t:it=it.next=t}return it}function Ya(t,e){return typeof e=="function"?e(t):e}function rh(t){var e=dn(),n=e.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=t;var r=Xe,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,c=i;do{var u=c.lane;if((si&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,De.lanes|=u,ii|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,On(r,e.memoizedState)||(Ot=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do i=s.lane,De.lanes|=i,ii|=i,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function sh(t){var e=dn(),n=e.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,i=e.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=t(i,o.action),o=o.next;while(o!==s);On(i,e.memoizedState)||(Ot=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function zb(){}function Vb(t,e){var n=De,r=dn(),s=e(),i=!On(r.memoizedState,s);if(i&&(r.memoizedState=s,Ot=!0),r=r.queue,Pm(Kb.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||it!==null&&it.memoizedState.tag&1){if(n.flags|=2048,Ja(9,Hb.bind(null,n,r,s,e),void 0,null),ot===null)throw Error(L(349));si&30||Wb(n,e,s)}return s}function Wb(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=De.updateQueue,e===null?(e={lastEffect:null,stores:null},De.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Hb(t,e,n,r){e.value=n,e.getSnapshot=r,qb(e)&&Gb(t)}function Kb(t,e,n){return n(function(){qb(e)&&Gb(t)})}function qb(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!On(t,n)}catch{return!0}}function Gb(t){var e=Sr(t,1);e!==null&&Rn(e,t,1,-1)}function Dy(t){var e=Vn();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:t},e.queue=t,t=t.dispatch=hA.bind(null,De,t),[e.memoizedState,t]}function Ja(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=De.updateQueue,e===null?(e={lastEffect:null,stores:null},De.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Yb(){return dn().memoizedState}function Oc(t,e,n,r){var s=Vn();De.flags|=t,s.memoizedState=Ja(1|e,n,void 0,r===void 0?null:r)}
vendor: 4,559 bytes, line 38
38function nd(t,e,n,r){var s=dn();r=r===void 0?null:r;var i=void 0;if(Xe!==null){var o=Xe.memoizedState;if(i=o.destroy,r!==null&&Tm(r,o.deps)){s.memoizedState=Ja(e,n,i,r);return}}De.flags|=t,s.memoizedState=Ja(1|e,n,i,r)}function My(t,e){return Oc(8390656,8,t,e)}function Pm(t,e){return nd(2048,8,t,e)}function Jb(t,e){return nd(4,2,t,e)}function Zb(t,e){return nd(4,4,t,e)}function Qb(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Xb(t,e,n){return n=n!=null?n.concat([t]):null,nd(4,4,Qb.bind(null,e,t),n)}function jm(){}function eS(t,e){var n=dn();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Tm(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function tS(t,e){var n=dn();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Tm(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function nS(t,e,n){return si&21?(On(n,e)||(n=ab(),De.lanes|=n,ii|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Ot=!0),t.memoizedState=n)}function uA(t,e){var n=xe;xe=n!==0&&4>n?n:4,t(!0);var r=nh.transition;nh.transition={};try{t(!1),e()}finally{xe=n,nh.transition=r}}function rS(){return dn().memoizedState}function dA(t,e,n){var r=ds(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sS(t))iS(e,n);else if(n=Fb(t,e,n,r),n!==null){var s=Ct();Rn(n,t,r,s),oS(n,e,r)}}function hA(t,e,n){var r=ds(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sS(t))iS(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,On(a,o)){var l=e.interleaved;l===null?(s.next=s,bm(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}n=Fb(t,e,s,r),n!==null&&(s=Ct(),Rn(n,t,r,s),oS(n,e,r))}}function sS(t){var e=t.alternate;return t===De||e!==null&&e===De}function iS(t,e){ka=pu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function oS(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,am(t,n)}}var mu={readContext:un,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},fA={readContext:un,useCallback:function(t,e){return Vn().memoizedState=[t,e===void 0?null:e],t},useContext:un,useEffect:My,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Oc(4194308,4,Qb.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Oc(4194308,4,t,e)},useInsertionEffect:function(t,e){return Oc(4,2,t,e)},useMemo:function(t,e){var n=Vn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Vn();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=dA.bind(null,De,t),[r.memoizedState,t]},useRef:function(t){var e=Vn();return t={current:t},e.memoizedState=t},useState:Dy,useDebugValue:jm,useDeferredValue:function(t){return Vn().memoizedState=t},useTransition:function(){var t=Dy(!1),e=t[0];return t=uA.bind(null,t[1]),Vn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=De,s=Vn();if(Ne){if(n===void 0)throw Error(L(407));n=n()}else{if(n=e(),ot===null)throw Error(L(349));si&30||Wb(r,e,n)}s.memoizedState=n;var i={value:n,getSnapshot:e};return s.queue=i,My(Kb.bind(null,r,i,t),[t]),r.flags|=2048,Ja(9,Hb.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Vn(),e=ot.identifierPrefix;if(Ne){var n=vr,r=yr;n=(r&~(1<<32-jn(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ga++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=cA++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},pA={readContext:un,useCallback:eS,useContext:un,useEffect:Pm,useImperativeHandle:Xb,useInsertionEffect:Jb,useLayoutEffect:Zb,useMemo:tS,useReducer:rh,useRef:Yb,useState:function(){return rh(Ya)},useDebugValue:jm,useDeferredValue:function(t){var e=dn();return nS(e,Xe.memoizedState,t)},useTransition:function(){var t=rh(Ya)[0],e=dn().memoizedState;return[t,e]},useMutableSource:zb,useSyncExternalStore:Vb,useId:rS,unstable_isNewReconciler:!1},mA={readContext:un,useCallback:eS,useContext:un,useEffect:Pm,useImperativeHandle:Xb,useInsertionEffect:Jb,useLayoutEffect:Zb,useMemo:tS,useReducer:sh,useRef
vendor: 5,969 bytes, lines 38-40
38:Yb,useState:function(){return sh(Ya)},useDebugValue:jm,useDeferredValue:function(t){var e=dn();return Xe===null?e.memoizedState=t:nS(e,Xe.memoizedState,t)},useTransition:function(){var t=sh(Ya)[0],e=dn().memoizedState;return[t,e]},useMutableSource:zb,useSyncExternalStore:Vb,useId:rS,unstable_isNewReconciler:!1};function bn(t,e){if(t&&t.defaultProps){e=Me({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Ef(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Me({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var rd={isMounted:function(t){return(t=t._reactInternals)?di(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ct(),s=ds(t),i=wr(r,s);i.payload=e,n!=null&&(i.callback=n),e=cs(t,i,s),e!==null&&(Rn(e,t,s,r),Rc(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ct(),s=ds(t),i=wr(r,s);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=cs(t,i,s),e!==null&&(Rn(e,t,s,r),Rc(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ct(),r=ds(t),s=wr(n,r);s.tag=2,e!=null&&(s.callback=e),e=cs(t,s,r),e!==null&&(Rn(e,t,r,n),Rc(e,t,r))}};function $y(t,e,n,r,s,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,o):e.prototype&&e.prototype.isPureReactComponent?!za(n,r)||!za(s,i):!0}function aS(t,e,n){var r=!1,s=gs,i=e.contextType;return typeof i=="object"&&i!==null?i=un(i):(s=It(e)?ni:bt.current,r=e.contextTypes,i=(r=r!=null)?bo(t,s):gs),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=rd,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function Fy(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&rd.enqueueReplaceState(e,e.state,null)}function Tf(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},Sm(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=un(i):(i=It(e)?ni:bt.current,s.context=bo(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Ef(t,e,i,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&rd.enqueueReplaceState(s,s.state,null),hu(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function Eo(t,e){try{var n="",r=e;do n+=VT(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function ih(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Cf(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var gA=typeof WeakMap=="function"?WeakMap:Map;function lS(t,e,n){n=wr(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){yu||(yu=!0,Mf=r),Cf(t,e)},n}function cS(t,e,n){n=wr(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){Cf(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Cf(t,e),typeof r!="function"&&(us===null?us=new Set([this]):us.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Uy(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new gA;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=jA.bind(null,t,e,n),e.then(t,t))}function By(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function zy(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=wr(-1,1),e.tag=2,cs(n,e,1))),n.lanes|=1),t)}var yA=Ar.ReactCurrentOwner,Ot=!1;function kt(t,e,n,r){e.child=t===null?$b(e,null,n,r):ko(e,t.child,n,r)}function Vy(t,e,n,r,s){n=n.render;var i=e.ref;return ro(e,s),r=Cm(t,e,n,r,i,s),n=Am(),t!==null&&!Ot?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,kr(t,e,s)):(Ne&&n&&mm(e),e.flags|=1,kt(t,e,r,s),e.child)}function Wy(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!$m(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,uS(t,e,i,r,s)):(t=Mc(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:za,n(o,r)&&t.ref===e.ref)return kr(t,e,s)}return e.flags|=1,t=hs(i,r),t.ref=e.ref,t.return=e,e.child=t}function uS(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(za(i,r)&&t.ref===e.ref)if(Ot=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(Ot=!0);else return e.lanes=t.lanes,kr(t,e,s)}return Af(t,e,n,r,s)}function dS(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Hi,Ft),Ft|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ee(Hi,Ft),Ft|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ee(Hi,Ft),Ft|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,Ee(Hi,Ft),Ft|=r;return kt(t,e,s,n),e.child}function hS(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 5,244 bytes, line 40
40function Af(t,e,n,r,s){var i=It(n)?ni:bt.current;return i=bo(e,i),ro(e,s),n=Cm(t,e,n,r,i,s),r=Am(),t!==null&&!Ot?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,kr(t,e,s)):(Ne&&r&&mm(e),e.flags|=1,kt(t,e,n,s),e.child)}function Hy(t,e,n,r,s){if(It(n)){var i=!0;au(e)}else i=!1;if(ro(e,s),e.stateNode===null)Lc(t,e),aS(e,n,r),Tf(e,n,r,s),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=un(c):(c=It(n)?ni:bt.current,c=bo(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Fy(e,o,r,c),Vr=!1;var f=e.memoizedState;o.state=f,hu(e,r,o,s),l=e.memoizedState,a!==r||f!==l||Lt.current||Vr?(typeof u=="function"&&(Ef(e,n,u,r),l=e.memoizedState),(a=Vr||$y(e,n,a,r,f,l,c))?(d||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"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Ub(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:bn(e.type,a),o.props=c,d=e.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=un(l):(l=It(n)?ni:bt.current,l=bo(e,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Fy(e,o,r,l),Vr=!1,f=e.memoizedState,o.state=f,hu(e,r,o,s);var m=e.memoizedState;a!==d||f!==m||Lt.current||Vr?(typeof p=="function"&&(Ef(e,n,p,r),m=e.memoizedState),(c=Vr||$y(e,n,c,r,f,m,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=m),o.props=r,o.state=m,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return Pf(t,e,n,r,i,s)}function Pf(t,e,n,r,s,i){hS(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return s&&jy(e,n,!1),kr(t,e,i);r=e.stateNode,yA.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=ko(e,t.child,null,i),e.child=ko(e,null,a,i)):kt(t,e,a,i),e.memoizedState=r.state,s&&jy(e,n,!0),e.child}function fS(t){var e=t.stateNode;e.pendingContext?Py(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Py(t,e.context,!1),km(t,e.containerInfo)}function Ky(t,e,n,r,s){return So(),ym(s),e.flags|=256,kt(t,e,n,r),e.child}var jf={dehydrated:null,treeContext:null,retryLane:0};function Rf(t){return{baseLanes:t,cachePool:null,transitions:null}}function pS(t,e,n){var r=e.pendingProps,s=Le.current,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),Ee(Le,s&1),t===null)return kf(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,i?(r=e.mode,i=e.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=od(o,r,0,null),t=ei(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Rf(n),e.memoizedState=jf,t):Rm(e,o));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return vA(t,e,o,r,a,s,n);if(i){i=r.fallback,o=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=hs(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=hs(a,i):(i=ei(i,o,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,o=t.child.memoizedState,o=o===null?Rf(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=jf,r}return i=t.child,t=i.sibling,r=hs(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Rm(t,e){return e=od({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function tc(t,e,n,r){return r!==null&&ym(r),ko(e,t.child,null,n),t=Rm(e,e.pen
vendor: 7,680 bytes, line 40
40dingProps.children),t.flags|=2,e.memoizedState=null,t}function vA(t,e,n,r,s,i,o){if(n)return e.flags&256?(e.flags&=-257,r=ih(Error(L(422))),tc(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,s=e.mode,r=od({mode:"visible",children:r.children},s,0,null),i=ei(i,s,o,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&ko(e,t.child,null,o),e.child.memoizedState=Rf(o),e.memoizedState=jf,i);if(!(e.mode&1))return tc(t,e,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(L(419)),r=ih(i,r,void 0),tc(t,e,o,r)}if(a=(o&t.childLanes)!==0,Ot||a){if(r=ot,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(t,s),Rn(r,t,s,-1))}return Mm(),r=ih(Error(L(421))),tc(t,e,o,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=RA.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,zt=ls(s.nextSibling),Vt=e,Ne=!0,Cn=null,t!==null&&(tn[nn++]=yr,tn[nn++]=vr,tn[nn++]=ri,yr=t.id,vr=t.overflow,ri=e),e=Rm(e,r.children),e.flags|=4096,e)}function qy(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),_f(t.return,e,n)}function oh(t,e,n,r,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function mS(t,e,n){var r=e.pendingProps,s=r.revealOrder,i=r.tail;if(kt(t,e,r.children,n),r=Le.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qy(t,n,e);else if(t.tag===19)qy(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Ee(Le,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&fu(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),oh(e,!1,s,n,i);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&fu(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}oh(e,!0,n,null,i);break;case"together":oh(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Lc(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function kr(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ii|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(L(153));if(e.child!==null){for(t=e.child,n=hs(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=hs(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function wA(t,e,n){switch(e.tag){case 3:fS(e),So();break;case 5:Bb(e);break;case 1:It(e.type)&&au(e);break;case 4:km(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;Ee(uu,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Le,Le.current&1),e.flags|=128,null):n&e.child.childLanes?pS(t,e,n):(Ee(Le,Le.current&1),t=kr(t,e,n),t!==null?t.sibling:null);Ee(Le,Le.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return mS(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ee(Le,Le.current),r)break;return null;case 22:case 23:return e.lanes=0,dS(t,e,n)}return kr(t,e,n)}var gS,Nf,yS,vS;gS=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Nf=function(){};yS=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,Bs(Xn.current);var i=null;switch(n){case"input":s=Xh(t,s),r=Xh(t,r),i=[];break;case"select":s=Me({},s,{value:void 0}),r=Me({},r,{value:void 0}),i=[];break;case"textarea":s=nf(t,s),r=nf(t,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=iu)}sf(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ia.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="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(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ia.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Pe("scroll",t),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}};vS=function(t,e,n,r){n!==r&&(e.flags|=4)};function Xo(t,e){if(!Ne)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function xA(t,e,n){var r=e.pendingProps;switch(gm(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(e),null;case 1:return It(e.type)&&ou(),gt(e),null;case 3:return r=e.stateNode,_o(),je(Lt),je(bt),Em(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Xl(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Cn!==null&&(Uf(Cn),Cn=null))),Nf(t,e),gt(e),null;case 5:_m(e);var s=Bs(qa.current);if(n=e.type,t!==null&&e.stateNode!=null)yS(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(L(166));return gt(e),null}if(t=Bs(Xn.current),Xl(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[Jn]=e,r[Ha]=i,t=(e.mode&1)!==0,n){case"dialog":Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":case"embed":Pe("load",r);break;case"video":case"audio":for(s=0;s<fa.length;s++)Pe(fa[s],r);break;case"source":Pe("error",r);break;case"img":case"image":case"link":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"input":ny(r,i),Pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Pe("invalid",r);break;case"textarea":sy(r,i),Pe("invalid",r)}sf(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 32,436 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ql(r.textContent,a,t),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ql(r.textContent,a,t),s=["children",""+a]):Ia.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Pe("scroll",r)}switch(n){case"input":Wl(r),ry(r,i,!0);break;case"textarea":Wl(r),iy(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=iu)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Kx(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Jn]=e,t[Ha]=r,gS(t,e,!1,!1),e.stateNode=t;e:{switch(o=of(n,r),n){case"dialog":Pe("cancel",t),Pe("close",t),s=r;break;case"iframe":case"object":case"embed":Pe("load",t),s=r;break;case"video":case"audio":for(s=0;s<fa.length;s++)Pe(fa[s],t);s=r;break;case"source":Pe("error",t),s=r;break;case"img":case"image":case"link":Pe("error",t),Pe("load",t),s=r;break;case"details":Pe("toggle",t),s=r;break;case"input":ny(t,r),s=Xh(t,r),Pe("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=Me({},r,{value:void 0}),Pe("invalid",t);break;case"textarea":sy(t,r),s=nf(t,r),Pe("invalid",t);break;default:s=r}sf(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Yx(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qx(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Da(t,l):typeof l=="number"&&Da(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ia.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Pe("scroll",t):l!=null&&tm(t,i,l,o))}switch(n){case"input":Wl(t),ry(t,r,!1);break;case"textarea":Wl(t),iy(t);break;case"option":r.value!=null&&t.setAttribute("value",""+ms(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?Xi(t,!!r.multiple,i,!1):r.defaultValue!=null&&Xi(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=iu)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return gt(e),null;case 6:if(t&&e.stateNode!=null)vS(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(L(166));if(n=Bs(qa.current),Bs(Xn.current),Xl(e)){if(r=e.stateNode,n=e.memoizedProps,r[Jn]=e,(i=r.nodeValue!==n)&&(t=Vt,t!==null))switch(t.tag){case 3:Ql(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ql(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jn]=e,e.stateNode=r}return gt(e),null;case 13:if(je(Le),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ne&&zt!==null&&e.mode&1&&!(e.flags&128))Db(),So(),e.flags|=98560,i=!1;else if(i=Xl(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(L(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(L(317));i[Jn]=e}else So(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;gt(e),i=!1}else Cn!==null&&(Uf(Cn),Cn=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Le.current&1?et===0&&(et=3):Mm())),e.updateQueue!==null&&(e.flags|=4),gt(e),null);case 4:return _o(),Nf(t,e),t===null&&Va(e.stateNode.containerInfo),gt(e),null;case 10:return xm(e.type._context),gt(e),null;case 17:return It(e.type)&&ou(),gt(e),null;case 19:if(je(Le),i=e.memoizedState,i===null)return gt(e),null;if(r=(e.flags&128)!==0,o=i.rendering,o===null)if(r)Xo(i,!1);else{if(et!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=fu(t),o!==null){for(e.flags|=128,Xo(i,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,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,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Ee(Le,Le.current&1|2),e.child}t=t.sibling}i.tail!==null&&Ke()>To&&(e.flags|=128,r=!0,Xo(i,!1),e.lanes=4194304)}else{if(!r)if(t=fu(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Xo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ne)return gt(e),null}else 2*Ke()-i.renderingStartTime>To&&n!==1073741824&&(e.flags|=128,r=!0,Xo(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ke(),e.sibling=null,n=Le.current,Ee(Le,r?n&1|2:n&1),e):(gt(e),null);case 22:case 23:return Dm(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ft&1073741824&&(gt(e),e.subtreeFlags&6&&(e.flags|=8192)):gt(e),null;case 24:return null;case 25:return null}throw Error(L(156,e.tag))}function bA(t,e){switch(gm(e),e.tag){case 1:return It(e.type)&&ou(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return _o(),je(Lt),je(bt),Em(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return _m(e),null;case 13:if(je(Le),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(L(340));So()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return je(Le),null;case 4:return _o(),null;case 10:return xm(e.type._context),null;case 22:case 23:return Dm(),null;case 24:return null;default:return null}}var nc=!1,wt=!1,SA=typeof WeakSet=="function"?WeakSet:Set,z=null;function Wi(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(t,e,r)}else n.current=null}function Of(t,e,n){try{n()}catch(r){Ve(t,e,r)}}var Gy=!1;function kA(t,e){if(gf=nu,t=kb(),pm(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.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,c=0,u=0,d=t,f=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===t)break t;if(f===n&&++c===s&&(a=o),f===i&&++u===r&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(yf={focusedElem:t,selectionRange:n},nu=!1,z=e;z!==null;)if(e=z,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,z=t;else for(;z!==null;){e=z;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,x=m.memoizedState,y=e.stateNode,v=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:bn(e.type,g),x);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){Ve(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,z=t;break}z=e.return}return m=Gy,Gy=!1,m}function _a(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&Of(e,n,i)}s=s.next}while(s!==r)}}function sd(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Lf(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function wS(t){var e=t.alternate;e!==null&&(t.alternate=null,wS(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Jn],delete e[Ha],delete e[xf],delete e[iA],delete e[oA])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function xS(t){return t.tag===5||t.tag===3||t.tag===4}function Yy(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||xS(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function If(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=iu));else if(r!==4&&(t=t.child,t!==null))for(If(t,e,n),t=t.sibling;t!==null;)If(t,e,n),t=t.sibling}function Df(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Df(t,e,n),t=t.sibling;t!==null;)Df(t,e,n),t=t.sibling}var ct=null,Tn=!1;function Ir(t,e,n){for(n=n.child;n!==null;)bS(t,e,n),n=n.sibling}function bS(t,e,n){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(Ju,n)}catch{}switch(n.tag){case 5:wt||Wi(n,e);case 6:var r=ct,s=Tn;ct=null,Ir(t,e,n),ct=r,Tn=s,ct!==null&&(Tn?(t=ct,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ct.removeChild(n.stateNode));break;case 18:ct!==null&&(Tn?(t=ct,n=n.stateNode,t.nodeType===8?Xd(t.parentNode,n):t.nodeType===1&&Xd(t,n),Ua(t)):Xd(ct,n.stateNode));break;case 4:r=ct,s=Tn,ct=n.stateNode.containerInfo,Tn=!0,Ir(t,e,n),ct=r,Tn=s;break;case 0:case 11:case 14:case 15:if(!wt&&(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)&&Of(n,e,o),s=s.next}while(s!==r)}Ir(t,e,n);break;case 1:if(!wt&&(Wi(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ve(n,e,a)}Ir(t,e,n);break;case 21:Ir(t,e,n);break;case 22:n.mode&1?(wt=(r=wt)||n.memoizedState!==null,Ir(t,e,n),wt=r):Ir(t,e,n);break;default:Ir(t,e,n)}}function Jy(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new SA),e.forEach(function(r){var s=NA.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function gn(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:ct=a.stateNode,Tn=!1;break e;case 3:ct=a.stateNode.containerInfo,Tn=!0;break e;case 4:ct=a.stateNode.containerInfo,Tn=!0;break e}a=a.return}if(ct===null)throw Error(L(160));bS(i,o,s),ct=null,Tn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Ve(s,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)SS(e,t),e=e.sibling}function SS(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(gn(e,t),Bn(t),r&4){try{_a(3,t,t.return),sd(3,t)}catch(g){Ve(t,t.return,g)}try{_a(5,t,t.return)}catch(g){Ve(t,t.return,g)}}break;case 1:gn(e,t),Bn(t),r&512&&n!==null&&Wi(n,n.return);break;case 5:if(gn(e,t),Bn(t),r&512&&n!==null&&Wi(n,n.return),t.flags&32){var s=t.stateNode;try{Da(s,"")}catch(g){Ve(t,t.return,g)}}if(r&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Wx(s,i),of(a,o);var c=of(a,i);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?Yx(s,d):u==="dangerouslySetInnerHTML"?qx(s,d):u==="children"?Da(s,d):tm(s,u,d,c)}switch(a){case"input":ef(s,i);break;case"textarea":Hx(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Xi(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?Xi(s,!!i.multiple,i.defaultValue,!0):Xi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ha]=i}catch(g){Ve(t,t.return,g)}}break;case 6:if(gn(e,t),Bn(t),r&4){if(t.stateNode===null)throw Error(L(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(g){Ve(t,t.return,g)}}break;case 3:if(gn(e,t),Bn(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ua(e.containerInfo)}catch(g){Ve(t,t.return,g)}break;case 4:gn(e,t),Bn(t);break;case 13:gn(e,t),Bn(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Lm=Ke())),r&4&&Jy(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(wt=(c=wt)||u,gn(e,t),wt=c):gn(e,t),Bn(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(z=t,u=t.child;u!==null;){for(d=z=u;z!==null;){switch(f=z,p=f.child,f.tag){case 0:case 11:case 14:case 15:_a(4,f,f.return);break;case 1:Wi(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{e=r,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(g){Ve(r,n,g)}}break;case 5:Wi(f,f.return);break;case 22:if(f.memoizedState!==null){Qy(d);continue}}p!==null?(p.return=f,z=p):Qy(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{s=d.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Gx("display",o))}catch(g){Ve(t,t.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){Ve(t,t.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gn(e,t),Bn(t),r&4&&Jy(t);break;case 21:break;default:gn(e,t),Bn(t)}}function Bn(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(xS(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Da(s,""),r.flags&=-33);var i=Yy(t);Df(t,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Yy(t);If(t,a,o);break;default:throw Error(L(161))}}catch(l){Ve(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function _A(t,e,n){z=t,kS(t)}function kS(t,e,n){for(var r=(t.mode&1)!==0;z!==null;){var s=z,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||nc;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||wt;a=nc;var c=wt;if(nc=o,(wt=l)&&!c)for(z=s;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?Xy(s):l!==null?(l.return=o,z=l):Xy(s);for(;i!==null;)z=i,kS(i),i=i.sibling;z=s,nc=a,wt=c}Zy(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,z=i):Zy(t)}}function Zy(t){for(;z!==null;){var e=z;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:wt||sd(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!wt)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:bn(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&Iy(e,i,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Iy(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.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(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Ua(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}wt||e.flags&512&&Lf(e)}catch(f){Ve(e,e.return,f)}}if(e===t){z=null;break}if(n=e.sibling,n!==null){n.return=e.return,z=n;break}z=e.return}}function Qy(t){for(;z!==null;){var e=z;if(e===t){z=null;break}var n=e.sibling;if(n!==null){n.return=e.return,z=n;break}z=e.return}}function Xy(t){for(;z!==null;){var e=z;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{sd(4,e)}catch(l){Ve(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(l){Ve(e,s,l)}}var i=e.return;try{Lf(e)}catch(l){Ve(e,i,l)}break;case 5:var o=e.return;try{Lf(e)}catch(l){Ve(e,o,l)}}}catch(l){Ve(e,e.return,l)}if(e===t){z=null;break}var a=e.sibling;if(a!==null){a.return=e.return,z=a;break}z=e.return}}var EA=Math.ceil,gu=Ar.ReactCurrentDispatcher,Nm=Ar.ReactCurrentOwner,an=Ar.ReactCurrentBatchConfig,pe=0,ot=null,Je=null,dt=0,Ft=0,Hi=Es(0),et=0,Za=null,ii=0,id=0,Om=0,Ea=null,Nt=null,Lm=0,To=1/0,hr=null,yu=!1,Mf=null,us=null,rc=!1,ts=null,vu=0,Ta=0,$f=null,Ic=-1,Dc=0;function Ct(){return pe&6?Ke():Ic!==-1?Ic:Ic=Ke()}function ds(t){return t.mode&1?pe&2&&dt!==0?dt&-dt:lA.transition!==null?(Dc===0&&(Dc=ab()),Dc):(t=xe,t!==0||(t=window.event,t=t===void 0?16:pb(t.type)),t):1}function Rn(t,e,n,r){if(50<Ta)throw Ta=0,$f=null,Error(L(185));_l(t,n,r),(!(pe&2)||t!==ot)&&(t===ot&&(!(pe&2)&&(id|=n),et===4&&Kr(t,dt)),Dt(t,r),n===1&&pe===0&&!(e.mode&1)&&(To=Ke()+500,td&&Ts()))}function Dt(t,e){var n=t.callbackNode;lC(t,e);var r=tu(t,t===ot?dt:0);if(r===0)n!==null&&ly(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&ly(n),e===1)t.tag===0?aA(ev.bind(null,t)):Ob(ev.bind(null,t)),rA(function(){!(pe&6)&&Ts()}),n=null;else{switch(lb(r)){case 1:n=om;break;case 4:n=ib;break;case 16:n=eu;break;case 536870912:n=ob;break;default:n=eu}n=RS(n,_S.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function _S(t,e){if(Ic=-1,Dc=0,pe&6)throw Error(L(327));var n=t.callbackNode;if(so()&&t.callbackNode!==n)return null;var r=tu(t,t===ot?dt:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=wu(t,r);else{e=r;var s=pe;pe|=2;var i=TS();(ot!==t||dt!==e)&&(hr=null,To=Ke()+500,Xs(t,e));do try{AA();break}catch(a){ES(t,a)}while(!0);wm(),gu.current=i,pe=s,Je!==null?e=0:(ot=null,dt=0,e=et)}if(e!==0){if(e===2&&(s=df(t),s!==0&&(r=s,e=Ff(t,s))),e===1)throw n=Za,Xs(t,0),Kr(t,r),Dt(t,Ke()),n;if(e===6)Kr(t,r);else{if(s=t.current.alternate,!(r&30)&&!TA(s)&&(e=wu(t,r),e===2&&(i=df(t),i!==0&&(r=i,e=Ff(t,i))),e===1))throw n=Za,Xs(t,0),Kr(t,r),Dt(t,Ke()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(L(345));case 2:Is(t,Nt,hr);break;case 3:if(Kr(t,r),(r&130023424)===r&&(e=Lm+500-Ke(),10<e)){if(tu(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){Ct(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=wf(Is.bind(null,t,Nt,hr),e);break}Is(t,Nt,hr);break;case 4:if(Kr(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var o=31-jn(r);i=1<<o,o=e[o],o>s&&(s=o),r&=~i}if(r=s,r=Ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*EA(r/1960))-r,10<r){t.timeoutHandle=wf(Is.bind(null,t,Nt,hr),r);break}Is(t,Nt,hr);break;case 5:Is(t,Nt,hr);break;default:throw Error(L(329))}}}return Dt(t,Ke()),t.callbackNode===n?_S.bind(null,t):null}function Ff(t,e){var n=Ea;return t.current.memoizedState.isDehydrated&&(Xs(t,e).flags|=256),t=wu(t,e),t!==2&&(e=Nt,Nt=n,e!==null&&Uf(e)),t}function Uf(t){Nt===null?Nt=t:Nt.push.apply(Nt,t)}function TA(t){for(var e=t;;){if(e.flags&16384){var n=e.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(!On(i(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Kr(t,e){for(e&=~Om,e&=~id,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-jn(e),r=1<<n;t[n]=-1,e&=~r}}function ev(t){if(pe&6)throw Error(L(327));so();var e=tu(t,0);if(!(e&1))return Dt(t,Ke()),null;var n=wu(t,e);if(t.tag!==0&&n===2){var r=df(t);r!==0&&(e=r,n=Ff(t,r))}if(n===1)throw n=Za,Xs(t,0),Kr(t,e),Dt(t,Ke()),n;if(n===6)throw Error(L(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Is(t,Nt,hr),Dt(t,Ke()),null}function Im(t,e){var n=pe;pe|=1;try{return t(e)}finally{pe=n,pe===0&&(To=Ke()+500,td&&Ts())}}function oi(t){ts!==null&&ts.tag===0&&!(pe&6)&&so();var e=pe;pe|=1;var n=an.transition,r=xe;try{if(an.transition=null,xe=1,t)return t()}finally{xe=r,an.transition=n,pe=e,!(pe&6)&&Ts()}}function Dm(){Ft=Hi.current,je(Hi)}function Xs(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,nA(n)),Je!==null)for(n=Je.return;n!==null;){var r=n;switch(gm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ou();break;case 3:_o(),je(Lt),je(bt),Em();break;case 5:_m(r);break;case 4:_o();break;case 13:je(Le);break;case 19:je(Le);break;case 10:xm(r.type._context);break;case 22:case 23:Dm()}n=n.return}if(ot=t,Je=t=hs(t.current,null),dt=Ft=e,et=0,Za=null,Om=id=ii=0,Nt=Ea=null,Us!==null){for(e=0;e<Us.length;e++)if(n=Us[e],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}Us=null}return t}function ES(t,e){do{var n=Je;try{if(wm(),Nc.current=mu,pu){for(var r=De.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}pu=!1}if(si=0,it=Xe=De=null,ka=!1,Ga=0,Nm.current=null,n===null||n.return===null){et=1,Za=e,Je=null;break}e:{var i=t,o=n.return,a=n,l=e;if(e=dt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=By(o);if(p!==null){p.flags&=-257,zy(p,o,a,i,e),p.mode&1&&Uy(i,c,e),e=p,l=c;var m=e.updateQueue;if(m===null){var g=new Set;g.add(l),e.updateQueue=g}else m.add(l);break e}else{if(!(e&1)){Uy(i,c,e),Mm();break e}l=Error(L(426))}}else if(Ne&&a.mode&1){var x=By(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),zy(x,o,a,i,e),ym(Eo(l,a));break e}}i=l=Eo(l,a),et!==4&&(et=2),Ea===null?Ea=[i]:Ea.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var y=lS(i,l,e);Ly(i,y);break e;case 1:a=l;var v=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(us===null||!us.has(w)))){i.flags|=65536,e&=-e,i.lanes|=e;var S=cS(i,a,e);Ly(i,S);break e}}i=i.return}while(i!==null)}AS(n)}catch(k){e=k,Je===n&&n!==null&&(Je=n=n.return);continue}break}while(!0)}function TS(){var t=gu.current;return gu.current=mu,t===null?mu:t}function Mm(){(et===0||et===3||et===2)&&(et=4),ot===null||!(ii&268435455)&&!(id&268435455)||Kr(ot,dt)}function wu(t,e){var n=pe;pe|=2;var r=TS();(ot!==t||dt!==e)&&(hr=null,Xs(t,e));do try{CA();break}catch(s){ES(t,s)}while(!0);if(wm(),pe=n,gu.current=r,Je!==null)throw Error(L(261));return ot=null,dt=0,et}function CA(){for(;Je!==null;)CS(Je)}function AA(){for(;Je!==null&&!XT();)CS(Je)}function CS(t){var e=jS(t.alternate,t,Ft);t.memoizedProps=t.pendingProps,e===null?AS(t):Je=e,Nm.current=null}function AS(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=bA(n,e),n!==null){n.flags&=32767,Je=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{et=6,Je=null;return}}else if(n=xA(n,e,Ft),n!==null){Je=n;return}if(e=e.sibling,e!==null){Je=e;return}Je=e=t}while(e!==null);et===0&&(et=5)}function Is(t,e,n){var r=xe,s=an.transition;try{an.transition=null,xe=1,PA(t,e,n,r)}finally{an.transition=s,xe=r}return null}function PA(t,e,n,r){do so();while(ts!==null);if(pe&6)throw Error(L(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(L(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(cC(t,i),t===ot&&(Je=ot=null,dt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rc||(rc=!0,RS(eu,function(){return so(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=an.transition,an.transition=null;var o=xe;xe=1;var a=pe;pe|=4,Nm.current=null,kA(t,n),SS(n,t),YC(yf),nu=!!gf,yf=gf=null,t.current=n,_A(n),eC(),pe=a,xe=o,an.transition=i}else t.current=n;if(rc&&(rc=!1,ts=t,vu=s),i=t.pendingLanes,i===0&&(us=null),rC(n.stateNode),Dt(t,Ke()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(yu)throw yu=!1,t=Mf,Mf=null,t;return vu&1&&t.tag!==0&&so(),i=t.pendingLanes,i&1?t===$f?Ta++:(Ta=0,$f=t):Ta=0,Ts(),null}function so(){if(ts!==null){var t=lb(vu),e=an.transition,n=xe;try{if(an.transition=null,xe=16>t?16:t,ts===null)var r=!1;else{if(t=ts,ts=null,vu=0,pe&6)throw Error(L(331));var s=pe;for(pe|=4,z=t.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(z=c;z!==null;){var u=z;switch(u.tag){case 0:case 11:case 15:_a(8,u,i)}var d=u.child;if(d!==null)d.return=u,z=d;else for(;z!==null;){u=z;var f=u.sibling,p=u.return;if(wS(u),u===c){z=null;break}if(f!==null){f.return=p,z=f;break}z=p}}}var m=i.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}z=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,z=o;else e:for(;z!==null;){if(i=z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_a(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,z=y;break e}z=i.return}}var v=t.current;for(z=v;z!==null;){o=z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,z=w;else e:for(o=v;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:sd(9,a)}}catch(k){Ve(a,a.return,k)}if(a===o){z=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,z=S;break e}z=a.return}}if(pe=s,Ts(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(Ju,t)}catch{}r=!0}return r}finally{xe=n,an.transition=e}}return!1}function tv(t,e,n){e=Eo(n,e),e=lS(t,e,1),t=cs(t,e,1),e=Ct(),t!==null&&(_l(t,1,e),Dt(t,e))}function Ve(t,e,n){if(t.tag===3)tv(t,t,n);else for(;e!==null;){if(e.tag===3){tv(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(us===null||!us.has(r))){t=Eo(n,t),t=cS(e,t,1),e=cs(e,t,1),t=Ct(),e!==null&&(_l(e,1,t),Dt(e,t));break}}e=e.return}}function jA(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ct(),t.pingedLanes|=t.suspendedLanes&n,ot===t&&(dt&n)===n&&(et===4||et===3&&(dt&130023424)===dt&&500>Ke()-Lm?Xs(t,0):Om|=n),Dt(t,e)}function PS(t,e){e===0&&(t.mode&1?(e=ql,ql<<=1,!(ql&130023424)&&(ql=4194304)):e=1);var n=Ct();t=Sr(t,e),t!==null&&(_l(t,e,n),Dt(t,n))}function RA(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),PS(t,n)}function NA(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(e),PS(t,n)}var jS;jS=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Lt.current)Ot=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Ot=!1,wA(t,e,n);Ot=!!(t.flags&131072)}else Ot=!1,Ne&&e.flags&1048576&&Lb(e,cu,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Lc(t,e),t=e.pendingProps;var s=bo(e,bt.current);ro(e,n),s=Cm(null,e,r,t,s,n);var i=Am();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,It(r)?(i=!0,au(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Sm(e),s.updater=rd,e.stateNode=s,s._reactInternals=e,Tf(e,r,t,n),e=Pf(null,e,r,!0,i,n)):(e.tag=0,Ne&&i&&mm(e),kt(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Lc(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=LA(r),t=bn(r,t),s){case 0:e=Af(null,e,r,t,n);break e;case 1:e=Hy(null,e,r,t,n);break e;case 11:e=Vy(null,e,r,t,n);break e;case 14:e=Wy(null,e,r,bn(r.type,t),n);break e}throw Error(L(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:bn(r,s),Af(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:bn(r,s),Hy(t,e,r,s,n);case 3:e:{if(fS(e),t===null)throw Error(L(387));r=e.pendingProps,i=e.memoizedState,s=i.element,Ub(t,e),hu(e,r,null,n);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Eo(Error(L(423)),e),e=Ky(t,e,r,n,s);break e}else if(r!==s){s=Eo(Error(L(424)),e),e=Ky(t,e,r,n,s);break e}else for(zt=ls(e.stateNode.containerInfo.firstChild),Vt=e,Ne=!0,Cn=null,n=$b(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===s){e=kr(t,e,n);break e}kt(t,e,r,n)}e=e.child}return e;case 5:return Bb(e),t===null&&kf(e),r=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,vf(r,s)?o=null:i!==null&&vf(r,i)&&(e.flags|=32),hS(t,e),kt(t,e,o,n),e.child;case 6:return t===null&&kf(e),null;case 13:return pS(t,e,n);case 4:return km(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ko(e,null,r,n):kt(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:bn(r,s),Vy(t,e,r,s,n);case 7:return kt(t,e,e.pendingProps,n),e.child;case 8:return kt(t,e,e.pendingProps.children,n),e.child;case 12:return kt(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,Ee(uu,r._currentValue),r._currentValue=o,i!==null)if(On(i.value,o)){if(i.children===s.children&&!Lt.current){e=kr(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);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=wr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),_f(i.return,n,e),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(L(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),_f(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}kt(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,ro(e,n),s=un(s),r=r(s),e.flags|=1,kt(t,e,r,n),e.child;case 14:return r=e.type,s=bn(r,e.pendingProps),s=bn(r.type,s),Wy(t,e,r,s,n);case 15:return uS(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:bn(r,s),Lc(t,e),e.tag=1,It(r)?(t=!0,au(e)):t=!1,ro(e,n),aS(e,r,s),Tf(e,r,s,n),Pf(null,e,r,!0,t,n);case 19:return mS(t,e,n);case 22:return dS(t,e,n)}throw Error(L(156,e.tag))};function RS(t,e){return sb(t,e)}function OA(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 sn(t,e,n,r){return new OA(t,e,n,r)}function $m(t){return t=t.prototype,!(!t||!t.isReactComponent)}function LA(t){if(typeof t=="function")return $m(t)?1:0;if(t!=null){if(t=t.$$typeof,t===rm)return 11;if(t===sm)return 14}return 2}function hs(t,e){var n=t.alternate;return n===null?(n=sn(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 5,099 bytes, line 40
40ons=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Mc(t,e,n,r,s,i){var o=2;if(r=t,typeof t=="function")$m(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ii:return ei(n.children,s,i,e);case nm:o=8,s|=8;break;case Yh:return t=sn(12,n,e,s|2),t.elementType=Yh,t.lanes=i,t;case Jh:return t=sn(13,n,e,s),t.elementType=Jh,t.lanes=i,t;case Zh:return t=sn(19,n,e,s),t.elementType=Zh,t.lanes=i,t;case Bx:return od(n,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Fx:o=10;break e;case Ux:o=9;break e;case rm:o=11;break e;case sm:o=14;break e;case zr:o=16,r=null;break e}throw Error(L(130,t==null?t:typeof t,""))}return e=sn(o,n,e,s),e.elementType=t,e.type=r,e.lanes=i,e}function ei(t,e,n,r){return t=sn(7,t,r,e),t.lanes=n,t}function od(t,e,n,r){return t=sn(22,t,r,e),t.elementType=Bx,t.lanes=n,t.stateNode={isHidden:!1},t}function ah(t,e,n){return t=sn(6,t,null,e),t.lanes=n,t}function lh(t,e,n){return e=sn(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function IA(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zd(0),this.expirationTimes=zd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Fm(t,e,n,r,s,i,o,a,l){return t=new IA(t,e,n,a,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=sn(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sm(i),t}function DA(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Li,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function NS(t){if(!t)return gs;t=t._reactInternals;e:{if(di(t)!==t||t.tag!==1)throw Error(L(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(It(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(L(171))}if(t.tag===1){var n=t.type;if(It(n))return Nb(t,n,e)}return e}function OS(t,e,n,r,s,i,o,a,l){return t=Fm(n,r,!0,t,s,i,o,a,l),t.context=NS(null),n=t.current,r=Ct(),s=ds(n),i=wr(r,s),i.callback=e??null,cs(n,i,s),t.current.lanes=s,_l(t,s,r),Dt(t,r),t}function ad(t,e,n,r){var s=e.current,i=Ct(),o=ds(s);return n=NS(n),e.context===null?e.context=n:e.pendingContext=n,e=wr(i,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=cs(s,e,o),t!==null&&(Rn(t,s,o,i),Rc(t,s,o)),o}function xu(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function nv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Um(t,e){nv(t,e),(t=t.alternate)&&nv(t,e)}function MA(){return null}var LS=typeof reportError=="function"?reportError:function(t){console.error(t)};function Bm(t){this._internalRoot=t}ld.prototype.render=Bm.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(L(409));ad(t,e,null,null)};ld.prototype.unmount=Bm.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;oi(function(){ad(null,t,null,null)}),e[br]=null}};function ld(t){this._internalRoot=t}ld.prototype.unstable_scheduleHydration=function(t){if(t){var e=db();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Hr.length&&e!==0&&e<Hr[n].priority;n++);Hr.splice(n,0,t),n===0&&fb(t)}};function zm(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function cd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function rv(){}function $A(t,e,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=xu(o);i.call(c)}}var o=OS(e,r,t,0,null,!1,!1,"",rv);return t._reactRootContainer=o,t[br]=o.current,Va(t.nodeType===8?t.parentNode:t),oi(),o}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=xu(l);a.call(c)}}var l=Fm(t,0,!1,null,null,!1,!1,"",rv);return t._reactRootContainer=l,t[br]=l.current,Va(t.nodeType===8?t.parentNode:t),oi(function(){ad(e,l,n,r)}),l}function ud(t,e,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=xu(o);a.call(l)}}ad(e,o,t,s)}else o=$A(n,e,t,s,r);return xu(o)}cb=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=ha(e.pendingLanes);
vendor: 4,306 bytes, line 40
40n!==0&&(am(e,n|1),Dt(e,Ke()),!(pe&6)&&(To=Ke()+500,Ts()))}break;case 13:oi(function(){var r=Sr(t,1);if(r!==null){var s=Ct();Rn(r,t,1,s)}}),Um(t,1)}};lm=function(t){if(t.tag===13){var e=Sr(t,134217728);if(e!==null){var n=Ct();Rn(e,t,134217728,n)}Um(t,134217728)}};ub=function(t){if(t.tag===13){var e=ds(t),n=Sr(t,e);if(n!==null){var r=Ct();Rn(n,t,e,r)}Um(t,e)}};db=function(){return xe};hb=function(t,e){var n=xe;try{return xe=t,e()}finally{xe=n}};lf=function(t,e,n){switch(e){case"input":if(ef(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=ed(r);if(!s)throw Error(L(90));Vx(r),ef(r,s)}}}break;case"textarea":Hx(t,n);break;case"select":e=n.value,e!=null&&Xi(t,!!n.multiple,e,!1)}};Qx=Im;Xx=oi;var FA={usingClientEntryPoint:!1,Events:[Tl,Fi,ed,Jx,Zx,Im]},ea={findFiberByHostInstance:Fs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},UA={bundleType:ea.bundleType,version:ea.version,rendererPackageName:ea.rendererPackageName,rendererConfig:ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=nb(t),t===null?null:t.stateNode},findFiberByHostInstance:ea.findFiberByHostInstance||MA,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 sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{Ju=sc.inject(UA),Qn=sc}catch{}}Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FA;Yt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zm(e))throw Error(L(200));return DA(t,e,null,n)};Yt.createRoot=function(t,e){if(!zm(t))throw Error(L(299));var n=!1,r="",s=LS;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Fm(t,1,!1,null,null,n,!1,r,s),t[br]=e.current,Va(t.nodeType===8?t.parentNode:t),new Bm(e)};Yt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(L(188)):(t=Object.keys(t).join(","),Error(L(268,t)));return t=nb(e),t=t===null?null:t.stateNode,t};Yt.flushSync=function(t){return oi(t)};Yt.hydrate=function(t,e,n){if(!cd(e))throw Error(L(200));return ud(null,t,e,!0,n)};Yt.hydrateRoot=function(t,e,n){if(!zm(t))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=LS;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=OS(e,null,t,1,n??null,s,!1,i,o),t[br]=e.current,Va(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new ld(e)};Yt.render=function(t,e,n){if(!cd(e))throw Error(L(200));return ud(null,t,e,!1,n)};Yt.unmountComponentAtNode=function(t){if(!cd(t))throw Error(L(40));return t._reactRootContainer?(oi(function(){ud(null,null,t,!1,function(){t._reactRootContainer=null,t[br]=null})}),!0):!1};Yt.unstable_batchedUpdates=Im;Yt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!cd(n))throw Error(L(200));if(t==null||t._reactInternals===void 0)throw Error(L(38));return ud(t,e,n,!1,r)};Yt.version="18.3.1-next-f1338f8080-20240426";function IS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IS)}catch(t){console.error(t)}}IS(),Ix.exports=Yt;var Al=Ix.exports;const DS=Sl(Al);var MS,sv=Al;MS=sv.createRoot,sv.hydrateRoot;var BA=typeof Element<"u",zA=typeof Map=="function",VA=typeof Set=="function",WA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $c(t,e){if(t===e)return!0;
40if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,s;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!$c(t[r],e[r]))return!1;return!0}var i;if(zA&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!$c(r.value[1],e.get(r.value[0])))return!1;return!0}if(VA&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(WA&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[r]))return!1;if(BA&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&t.$$typeof)&&!$c(t[s[r]],e[s[r]]))return!1;return!0}return t!==t&&e!==e}var HA=function(e,n){try{return $c(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const KA=Sl(HA);var qA=function(t,e,n,r,s,i,o,a){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,i,o,a],u=0;l=new Error(e.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},GA=qA;const iv=Sl(GA);var YA=function(e,n,r,s){var i=r?r.call(s,e,n):void 0;if(i!==void 0)return!!i;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var o=Object.keys(e),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<o.length;c++){var u=o[c];if(!l(u))return!1;var d=e[u],f=n[u];if(i=r?r.call(s,d,f,u):void 0,i===!1||i===void 0&&d!==f)return!1}return!0};const JA=Sl(YA);var $S=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))($S||{}),ch={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"]}},ov=Object.values($S),dd={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},FS=Object.entries(dd).reduce((t,[e,n])=>(t[n]=e,t),{}),Pn="data-rh",io={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},oo=(t,e)=>{for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(Object.prototype.hasOwnProperty.call(r,e))return r[e]}return null},ZA=t=>{let e=oo(t,"title");const n=oo(t,io.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,()=>e);const r=oo(t,io.DEFAULT_TITLE);return e||r||void 0},QA=t=>oo(t,io.ON_CHANGE_CLIENT_STATE)||(()=>{}),uh=(t,e)=>e.filter(n=>typeof n[t]<"u").map(n=>n[t]).reduce((n,r)=>({...n,...r}),{}),XA=(t,e)=>e.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(t.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),eP=t=>console&&typeof console.warn=="function"&&console.warn(t),ta=(t,e,n)=>{const r={};return n.filter(s=>Array.isArray(s[t])?!0:(typeof s[t]<"u"&&eP(`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`),!1)).map(s=>s[t]).reverse().reduce((s,i)=>{const o={};i.filter(l=>{let c;const u=Object.keys(l);for(let f=0;f<u.length;f+=1){const p=u[f],m=p.toLowerCase();e.indexOf(m)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(m==="rel"&&l[m].toLowerCase()==="stylesheet")&&(c=m),e.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),o[c]||(o[c]={}),r[c][d]?!1:(o[c][d]=!0,!0)}
40).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const c=a[l],u={...r[c],...o[c]};r[c]=u}return s},[]).reverse()},tP=(t,e)=>{if(Array.isArray(t)&&t.length){for(let n=0;n<t.length;n+=1)if(t[n][e])return!0}return!1},nP=t=>({baseTag:XA(["href"],t),bodyAttributes:uh("bodyAttributes",t),defer:oo(t,io.DEFER),encode:oo(t,io.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:uh("htmlAttributes",t),linkTags:ta("link",["rel","href"],t),metaTags:ta("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:ta("noscript",["innerHTML"],t),onChangeClientState:QA(t),scriptTags:ta("script",["src","innerHTML"],t),styleTags:ta("style",["cssText"],t),title:ZA(t),titleAttributes:uh("titleAttributes",t),prioritizeSeoTags:tP(t,io.PRIORITIZE_SEO_TAGS)}),US=t=>Array.isArray(t)?t.join(""):t,rP=(t,e)=>{const n=Object.keys(t);for(let r=0;r<n.length;r+=1)if(e[n[r]]&&e[n[r]].includes(t[n[r]]))return!0;return!1},dh=(t,e)=>Array.isArray(t)?t.reduce((n,r)=>(rP(r,e)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:t,priority:[]},av=(t,e)=>({...t,[e]:void 0}),sP=["noscript","script","style"],Bf=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),BS=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]<"u"?`${n}="${t[n]}"`:`${n}`;return e?`${e} ${r}`:r},""),iP=(t,e,n,r)=>{const s=BS(n),i=US(e);return s?`<${t} ${Pn}="true" ${s}>${Bf(i,r)}</${t}>`:`<${t} ${Pn}="true">${Bf(i,r)}</${t}>`},oP=(t,e,n=!0)=>e.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof i[u]>"u"?u:`${u}="${Bf(i[u],n)}"`;return c?`${c} ${d}`:d},""),a=i.innerHTML||i.cssText||"",l=sP.indexOf(t)===-1;return`${r}<${t} ${Pn}="true" ${o}${l?"/>":`>${a}</${t}>`}`},""),zS=(t,e={})=>Object.keys(t).reduce((n,r)=>{const s=dd[r];return n[s||r]=t[r],n},e),aP=(t,e,n)=>{const r={key:e,[Pn]:!0},s=zS(n,r);return[R.createElement("title",s,e)]},Fc=(t,e)=>e.map((n,r)=>{const s={key:r,[Pn]:!0};return Object.keys(n).forEach(i=>{const a=dd[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[i]}),R.createElement(t,s)}),Xt=(t,e,n=!0)=>{switch(t){case"title":return{toComponent:()=>aP(t,e.title,e.titleAttributes),toString:()=>iP(t,e.title,e.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>zS(e),toString:()=>BS(e)};default:return{toComponent:()=>Fc(t,e),toString:()=>oP(t,e,n)}}},lP=({metaTags:t,linkTags:e,scriptTags:n,encode:r})=>{const s=dh(t,ch.meta),i=dh(e,ch.link),o=dh(n,ch.script);return{priorityMethods:{toComponent:()=>[...Fc("meta",s.priority),...Fc("link",i.priority),...Fc("script",o.priority)],toString:()=>`${Xt("meta",s.priority,r)} ${Xt("link",i.priority,r)} ${Xt("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},cP=t=>{const{baseTag:e,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:c}=t;let{linkTags:u,metaTags:d,scriptTags:f}=t,p={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=lP(t)),{priority:p,base:Xt("base",e,r),bodyAttributes:Xt("bodyAttributes",n,r),htmlAttributes:Xt("htmlAttributes",s,r),link:Xt("link",u,r),meta:Xt("meta",d,r),noscript:Xt("noscript",i,r),script:Xt("script",f,r),style:Xt("style",o,r),title:Xt("title",{title:a,titleAttributes:l},r)}},zf=cP,ic=[],Vm=!!(typeof window<"u"&&window.document&&window.document.createElement),Vf=class{constructor(t,e){lr(this,"instances",[]);lr(this,"canUseDOM",Vm);lr(this,"context");lr(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?ic:this.instances,add:t=>{(this.canUseDOM?ic:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?ic:this.instances).indexOf(t);(this.canUseDOM?ic:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=zf({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},uP=parseInt(R.version.split(".")[0],10),Wf=uP>=19,dP={},VS=R.createContext(dP),Ks,WS=(Ks=class extends b.Component{constructor(n){super(n);lr(this,"helmetData");Wf?this.helmetData=null:this.helmetData=new Vf(this.props.context||{},Ks.canUseDOM)}render(){return Wf?R.createElement(R.Fragment,null,this.props.children):R.createElement(VS.Provider,{value:this.helmetData.value},this.props.children)}},lr(Ks,"canUseDOM",Vm),Ks),xi=(t,e)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${t}[${Pn}]`),s=[].slice.call(r),i=[];let o;return e&&e.length&&e.forEach(a=>{const l=document.createElement(t);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText"){const u=a.cssText;l.appendChild(document.createTextNode(u))}else{const u=c,d=typeof a[u]>
40"u"?"":a[u];l.setAttribute(c,d)}l.setAttribute(Pn,"true"),s.some((c,u)=>(o=u,l.isEqualNode(c)))?s.splice(o,1):i.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:i}},Hf=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const r=n.getAttribute(Pn),s=r?r.split(","):[],i=[...s],o=Object.keys(e);for(const a of o){const l=e[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const c=i.indexOf(a);c!==-1&&i.splice(c,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);s.length===i.length?n.removeAttribute(Pn):n.getAttribute(Pn)!==o.join(",")&&n.setAttribute(Pn,o.join(","))},hP=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=US(t)),Hf("title",e)},lv=(t,e)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=t;Hf("body",r),Hf("html",s),hP(d,f);const p={baseTag:xi("base",n),linkTags:xi("link",i),metaTags:xi("meta",o),noscriptTags:xi("noscript",a),scriptTags:xi("script",c),styleTags:xi("style",u)},m={},g={};Object.keys(p).forEach(x=>{const{newTags:y,oldTags:v}=p[x];y.length&&(m[x]=y),v.length&&(g[x]=p[x].oldTags)}),e&&e(),l(t,m,g)},na=null,fP=t=>{na&&cancelAnimationFrame(na),t.defer?na=requestAnimationFrame(()=>{lv(t,()=>{na=null})}):(lv(t),na=null)},pP=fP,cv=class extends b.Component{constructor(){super(...arguments);lr(this,"rendered",!1)}shouldComponentUpdate(e){return!JA(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:n}=this.props.context;let r=null;const s=nP(e.get().map(i=>{const{context:o,...a}=i.props;return a}));WS.canUseDOM?pP(s):zf&&(r=zf(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Uc=[],uv=t=>{const e={};for(const n of Object.keys(t))e[FS[n]||n]=t[n];return e},js=t=>{const e={};for(const n of Object.keys(t)){const r=dd[n];e[r||n]=t[n]}return e},dv=(t,e)=>{if(!Vm)return;const n=document.getElementsByTagName(t)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],o=Object.keys(e);for(const a of i)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=e[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)},hh=()=>{const t={},e={};for(const n of Uc){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(t,uv(r)),s&&Object.assign(e,uv(s))}dv("html",t),dv("body",e)},mP=class extends b.Component{componentDidMount(){Uc.push(this),hh()}componentDidUpdate(){hh()}componentWillUnmount(){const t=Uc.indexOf(this);t!==-1&&Uc.splice(t,1),hh()}resolveTitle(){const{title:t,titleTemplate:e,defaultTitle:n}=this.props;return t&&e?e.replace(/%s/g,()=>Array.isArray(t)?t.join(""):t):t||n||void 0}renderTitle(){const t=this.resolveTitle();if(t===void 0)return null;const e=this.props.titleAttributes||{};return R.createElement("title",js(e),t)}renderBase(){const{base:t}=this.props;return t?R.createElement("base",js(t)):null}renderMeta(){const{meta:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>R.createElement("meta",{key:n,...js(e)}))}renderLink(){const{link:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>R.createElement("link",{key:n,...js(e)}))}renderScript(){const{script:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{innerHTML:r,...s}=e,i=js(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("script",{key:n,...i})})}renderStyle(){const{style:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{cssText:r,...s}=e,i=js(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{innerHTML:r,...s}=e,i=js(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())}},qh,Ln=(qh=class extends b.Component{shouldComponentUpdate(t){return!KA(av(this.props,"helmetData"),av(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,r){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,r)}]}}mapObjectTypeChildren(t,e,n,r){switch(t.type){case"title":return{...e,[t.type]:r,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach(r=>{n={...n,[r]:t[r]}}),n}
40warnOnInvalidChildren(t,e){return iv(ov.some(n=>t.type===n),typeof t.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 ${ov.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),iv(!e||typeof e=="string"||Array.isArray(e)&&!e.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return R.Children.forEach(t,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((l,c)=>(l[FS[c]||c]=i[c],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":e=this.mapChildrenToProps(s,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:e=this.mapObjectTypeChildren(r,e,o,s);break}}),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:r}=e;if(t&&(n=this.mapChildrenToProps(t,n)),r&&!(r instanceof Vf)){const s=r;r=new Vf(s.context,!0),delete n.helmetData}return Wf?R.createElement(mP,{...n}):r?R.createElement(cv,{...n,context:r.value}):R.createElement(VS.Consumer,null,s=>R.createElement(cv,{...n,context:s}))}},lr(qh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),qh);const gP=1,yP=1e6;let fh=0;function vP(){return fh=(fh+1)%Number.MAX_SAFE_INTEGER,fh.toString()}const ph=new Map,hv=t=>{if(ph.has(t))return;const e=setTimeout(()=>{ph.delete(t),Ca({type:"REMOVE_TOAST",toastId:t})},yP);ph.set(t,e)},wP=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,gP)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;return n?hv(n):t.toasts.forEach(r=>{hv(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Bc=[];let zc={toasts:[]};function Ca(t){zc=wP(zc,t),Bc.forEach(e=>{e(zc)})}function xP({...t}){const e=vP(),n=s=>Ca({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>Ca({type:"DISMISS_TOAST",toastId:e});return Ca({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function bP(){const[t,e]=b.useState(zc);return b.useEffect(()=>(Bc.push(e),()=>{const n=Bc.indexOf(e);n>-1&&Bc.splice(n,1)}),[t]),{...t,toast:xP,dismiss:n=>Ca({type:"DISMISS_TOAST",toastId:n})}}function Ye(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function fv(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function HS(...t){return e=>{let n=!1;const r=t.map(s=>{const i=fv(s,e);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():fv(t[s],null)}}}}function Kt(...t){return b.useCallback(HS(...t),t)}function Pl(t,e=[]){let n=[];function r(i,o){const a=b.createContext(o),l=n.length;n=[...n,o];const c=d=>{var y;const{scope:f,children:p,...m}=d,g=((y=f==null?void 0:f[t])==null?void 0:y[l])||a,x=b.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:x,children:p})};c.displayName=i+"Provider";function u(d,f){var g;const p=((g=f==null?void 0:f[t])==null?void 0:g[l])||a,m=b.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[t])||i;return b.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[r,SP(s,...e)]}function SP(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c}
vendor: 11,237 bytes, line 40
40)=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function bu(t){const e=_P(t),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,a=b.Children.toArray(i),l=a.find(TP);if(l){const c=l.props.children,u=a.map(d=>d===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:d);return h.jsx(e,{...o,ref:s,children:b.isValidElement(c)?b.cloneElement(c,void 0,u):null})}return h.jsx(e,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}var kP=bu("Slot");function _P(t){const e=b.forwardRef((n,r)=>{const{children:s,...i}=n;if(b.isValidElement(s)){const o=AP(s),a=CP(i,s.props);return s.type!==b.Fragment&&(a.ref=r?HS(r,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var KS=Symbol("radix.slottable");function EP(t){const e=({children:n})=>h.jsx(h.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=KS,e}function TP(t){return b.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===KS}function CP(t,e){const n={...e};for(const r in e){const s=t[r],i=e[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{...t,...n}}function AP(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function PP(t){const e=t+"CollectionProvider",[n,r]=Pl(e),[s,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:x,children:y}=g,v=R.useRef(null),w=R.useRef(new Map).current;return h.jsx(s,{scope:x,itemMap:w,collectionRef:v,children:y})};o.displayName=e;const a=t+"CollectionSlot",l=bu(a),c=R.forwardRef((g,x)=>{const{scope:y,children:v}=g,w=i(a,y),S=Kt(x,w.collectionRef);return h.jsx(l,{ref:S,children:v})});c.displayName=a;const u=t+"CollectionItemSlot",d="data-radix-collection-item",f=bu(u),p=R.forwardRef((g,x)=>{const{scope:y,children:v,...w}=g,S=R.useRef(null),k=Kt(x,S),_=i(u,y);return R.useEffect(()=>(_.itemMap.set(S,{ref:S,...w}),()=>void _.itemMap.delete(S))),h.jsx(f,{[d]:"",ref:k,children:v})});p.displayName=u;function m(g){const x=i(t+"CollectionConsumer",g);return R.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const w=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,E)=>w.indexOf(_.ref.current)-w.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},m,r]}var jP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ft=jP.reduce((t,e)=>{const n=bu(`Primitive.${e}`),r=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function qS(t,e){t&&Al.flushSync(()=>t.dispatchEvent(e))}function ys(t){const e=b.useRef(t);return b.useEffect(()=>{e.current=t}),b.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function RP(t,e=globalThis==null?void 0:globalThis.document){const n=ys(t);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var NP="DismissableLayer",Kf="dismissableLayer.update",OP="dismissableLayer.pointerDownOutside",LP="dismissableLayer.focusOutside",pv,GS=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wm=b.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=t,c=b.useContext(GS),[u,d]=b.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),m=Kt(e,E=>d(E)),g=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(x),v=u?g.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=v>=y,k=DP(E=>{const T=E.target,A=[...c.branches].some(N=>N.contains(T));!S||A||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},f),_=MP(E=>{const T=E.target;[...c.branches].some(N=>N.contains(T))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},f);return RP(E=>{v===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),b.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(pv=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),mv(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=pv)}},[u,f,n,c]),b.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),mv())},[u,c]),b.useEffect(()=>{const E=()=>p({});return document.addEventListener(Kf,E),()=>document.removeEventListener(Kf,E)},[]),h.jsx(ft.div,{...l,ref:m,style:{pointerEvents:w?S?"auto":"none":void 0,...t.style},onFocusCapture:Ye(t.onFocusCapture,_.onFocusCapture),onBlurCapture:Ye(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ye(t.onPointerDownCapture,k.onPointerDownCapture)})});Wm.displayName=NP;var IP="DismissableLayerBranch",YS=b.forwardRef((t,e)=>{const n=b.useContext(GS),r=b.useRef(null),s=Kt(e,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(ft.div,{...t,ref:s})});YS.displayName=IP;function DP(t,e=globalThis==null?void 0:globalThis.document){const n=ys(t),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){JS(OP,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function MP(t,e=globalThis==null?void 0:globalThis.document){const n=ys(t),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&JS(LP,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mv(){const t=new CustomEvent(Kf);document.dispatchEvent(t)}function JS(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?qS(s,i):s.dispatchEvent(i)}var $P=Wm,FP=YS,vs=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},UP="Portal",ZS=b.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[s,i]=b.useState(!1);vs(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?DS.createPortal(h.jsx(ft.div,{...r,ref:e}),o):null});ZS.displayName=UP;function BP(t,e){return b.useReducer((n,r)=>e[n][r]??n,t)}var Hm=t=>{const{present:e,children:n}=t,r=zP(e),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=Kt(r.ref,VP(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}):null};Hm.displayName="Presence";function zP(t){const[e,n]=b.useState(),r=b.useRef(null),s=b.useRef(t),i=b.useRef("none"),o=t?"mounted":"unmounted",[a,l]=BP(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=oc(r.current);i.current=a==="mounted"?c:"none"},[a]),vs(()=>{const c=r.current,u=s.current;if(u!==t){const f=i.current,p=oc(c);t?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),vs(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=p=>{const g=oc(r.current).includes(p.animationName);if(p.target===e&&g&&(l("ANIMATION_END"),!s.current)){const x=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=x)})}},f=p=>{p.target===e&&(i.current=oc(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function oc(t){return(t==null?void 0:t.animationName)||"none"}function VP(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var WP=Ox[" useInsertionEffect ".trim().toString()]||vs;function QS({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,i,o]=HP({defaultProp:e,onChange:n}),a=t!==void 0,l=a?t:s;{const u=b.useRef(t!==void 0);b.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=b.useCallback(u=>{var d;if(a){const f=KP(u)?u(t):u;f!==t&&((d=o.current)==null||d.call(o,f))}else i(u)},[a,t,i,o]);return[l,c]}function HP({defaultProp:t,onChange:e}){const[n,r]=b.useState(t),s=b.useRef(n),i=b.useRef(e);return WP(()=>{i.current=e},[e]),b.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function KP(t){return typeof t=="function"}var qP=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"}),GP="VisuallyHidden",hd=b.forwardRef((t,e)=>h.jsx(ft.span,{...t,ref:e,style:{...qP,...t.style}}));hd.displayName=GP;var YP=hd,Km="ToastProvider",[qm,JP,ZP]=PP("Toast"),[XS,Gz]=Pl("Toast",[ZP]),[QP,fd]=XS(Km),e1=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,l]=b.useState(null),[c,u]=b.useState(0),d=b.useRef(!1),f=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Km}\`. Expected non-empty \`string\`.`),h.jsx(qm.Provider,{scope:e,children:h.jsx(QP,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:
40a,onViewportChange:l,onToastAdd:b.useCallback(()=>u(p=>p+1),[]),onToastRemove:b.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};e1.displayName=Km;var t1="ToastViewport",XP=["F8"],qf="toast.viewportPause",Gf="toast.viewportResume",n1=b.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=XP,label:s="Notifications ({hotkey})",...i}=t,o=fd(t1,n),a=JP(n),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=Kt(e,d,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=o.toastCount>0;b.useEffect(()=>{const x=y=>{var w;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=l.current,y=d.current;if(m&&x&&y){const v=()=>{if(!o.isClosePausedRef.current){const _=new CustomEvent(qf);y.dispatchEvent(_),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const _=new CustomEvent(Gf);y.dispatchEvent(_),o.isClosePausedRef.current=!1}},S=_=>{!x.contains(_.relatedTarget)&&w()},k=()=>{x.contains(document.activeElement)||w()};return x.addEventListener("focusin",v),x.addEventListener("focusout",S),x.addEventListener("pointermove",v),x.addEventListener("pointerleave",k),window.addEventListener("blur",v),window.addEventListener("focus",w),()=>{x.removeEventListener("focusin",v),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",v),x.removeEventListener("pointerleave",k),window.removeEventListener("blur",v),window.removeEventListener("focus",w)}}},[m,o.isClosePausedRef]);const g=b.useCallback(({tabbingDirection:x})=>{const v=a().map(w=>{const S=w.ref.current,k=[S,...hj(S)];return x==="forwards"?k:k.reverse()});return(x==="forwards"?v.reverse():v).flat()},[a]);return b.useEffect(()=>{const x=d.current;if(x){const y=v=>{var k,_,E;const w=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!w){const T=document.activeElement,A=v.shiftKey;if(v.target===x&&A){(k=c.current)==null||k.focus();return}const U=g({tabbingDirection:A?"backwards":"forwards"}),X=U.findIndex(M=>M===T);mh(U.slice(X+1))?v.preventDefault():A?(_=c.current)==null||_.focus():(E=u.current)==null||E.focus()}};return x.addEventListener("keydown",y),()=>x.removeEventListener("keydown",y)}},[a,g]),h.jsxs(FP,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&h.jsx(Yf,{ref:c,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"forwards"});mh(x)}}),h.jsx(qm.Slot,{scope:n,children:h.jsx(ft.ol,{tabIndex:-1,...i,ref:f})}),m&&h.jsx(Yf,{ref:u,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"backwards"});mh(x)}})]})});n1.displayName=t1;var r1="ToastFocusProxy",Yf=b.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,i=fd(r1,n);return h.jsx(hd,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});Yf.displayName=r1;var jl="Toast",ej="toast.swipeStart",tj="toast.swipeMove",nj="toast.swipeCancel",rj="toast.swipeEnd",s1=b.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=t,[a,l]=QS({prop:r,defaultProp:s??!0,onChange:i,caller:jl});return h.jsx(Hm,{present:n||a,children:h.jsx(oj,{open:a,...o,ref:e,onClose:()=>l(!1),onPause:ys(t.onPause),onResume:ys(t.onResume),onSwipeStart:Ye(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ye(t.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ye(t.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ye(t.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});s1.displayName=jl;var[sj,ij]=XS(jl,{onClose(){}}),oj=b.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}
40=t,g=fd(jl,n),[x,y]=b.useState(null),v=Kt(e,M=>y(M)),w=b.useRef(null),S=b.useRef(null),k=s||g.duration,_=b.useRef(0),E=b.useRef(k),T=b.useRef(0),{onToastAdd:A,onToastRemove:N}=g,F=ys(()=>{var se;(x==null?void 0:x.contains(document.activeElement))&&((se=g.viewport)==null||se.focus()),o()}),U=b.useCallback(M=>{!M||M===1/0||(window.clearTimeout(T.current),_.current=new Date().getTime(),T.current=window.setTimeout(F,M))},[F]);b.useEffect(()=>{const M=g.viewport;if(M){const se=()=>{U(E.current),c==null||c()},Z=()=>{const H=new Date().getTime()-_.current;E.current=E.current-H,window.clearTimeout(T.current),l==null||l()};return M.addEventListener(qf,Z),M.addEventListener(Gf,se),()=>{M.removeEventListener(qf,Z),M.removeEventListener(Gf,se)}}},[g.viewport,k,l,c,U]),b.useEffect(()=>{i&&!g.isClosePausedRef.current&&U(k)},[i,k,g.isClosePausedRef,U]),b.useEffect(()=>(A(),()=>N()),[A,N]);const X=b.useMemo(()=>x?d1(x):null,[x]);return g.viewport?h.jsxs(h.Fragment,{children:[X&&h.jsx(aj,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:X}),h.jsx(sj,{scope:n,onClose:F,children:Al.createPortal(h.jsx(qm.ItemSlot,{scope:n,children:h.jsx($P,{asChild:!0,onEscapeKeyDown:Ye(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||F(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(ft.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...m,ref:v,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ye(t.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:Ye(t.onPointerDown,M=>{M.button===0&&(w.current={x:M.clientX,y:M.clientY})}),onPointerMove:Ye(t.onPointerMove,M=>{if(!w.current)return;const se=M.clientX-w.current.x,Z=M.clientY-w.current.y,H=!!S.current,C=["left","right"].includes(g.swipeDirection),P=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,D=C?P(0,se):0,Q=C?0:P(0,Z),Y=M.pointerType==="touch"?10:2,oe={x:D,y:Q},le={originalEvent:M,delta:oe};H?(S.current=oe,ac(tj,d,le,{discrete:!1})):gv(oe,g.swipeDirection,Y)?(S.current=oe,ac(ej,u,le,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(se)>Y||Math.abs(Z)>Y)&&(w.current=null)}),onPointerUp:Ye(t.onPointerUp,M=>{const se=S.current,Z=M.target;if(Z.hasPointerCapture(M.pointerId)&&Z.releasePointerCapture(M.pointerId),S.current=null,w.current=null,se){const H=M.currentTarget,C={originalEvent:M,delta:se};gv(se,g.swipeDirection,g.swipeThreshold)?ac(rj,p,C,{discrete:!0}):ac(nj,f,C,{discrete:!0}),H.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),aj=t=>{const{__scopeToast:e,children:n,...r}=t,s=fd(jl,e),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return uj(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:h.jsx(ZS,{asChild:!0,children:h.jsx(hd,{...r,children:i&&h.jsxs(h.Fragment,{children:[s.label," ",n]})})})},lj="ToastTitle",i1=b.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return h.jsx(ft.div,{...r,ref:e})});i1.displayName=lj;var cj="ToastDescription",o1=b.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return h.jsx(ft.div,{...r,ref:e})});o1.displayName=cj;var a1="ToastAction",l1=b.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?h.jsx(u1,{altText:n,asChild:!0,children:h.jsx(Gm,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${a1}\`. Expected non-empty \`string\`.`),null)});l1.displayName=a1;var c1="ToastClose",Gm=b.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=ij(c1,n);return h.jsx(u1,{asChild:!0,children:h.jsx(ft.button,{type:"button",...r,ref:e,onClick:Ye(t.onClick,s.onClose)})})});Gm.displayName=c1;var u1=b.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return h.jsx(ft.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function d1(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),dj(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&&e.push(o)}else e.push(...d1(r))}}),e}function ac(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?qS(s,i):s.dispatchEvent(i)}var gv=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),i=r>s;return e==="left"||e==="right"?i&&r>n:!i&&s>n};function uj(t=()=>{}){const e=ys(t);vs(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function dj(t){return t.nodeType===t.ELEMENT_NODE}function hj(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function mh(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var fj=e1,h1=n1,f1=s1,p1=i1,m1=o1,g1=l1,y1=Gm;function v1(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=v1(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function w1(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=v1(t))&&(r&&(r+=" "),r+=e);return r}const yv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,vv=w1,Ym=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return vv(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=yv(u)||yv(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(m=>{let[g,x]=m;return Array.isArray(x)?x.includes({...i,...a}[g]):{...i,...a}[g]===x})?[...c,d,f]:c},[]);return vv(t,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 pj=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),x1=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===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 mj={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 gj=b.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...mj,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:x1("lucide",s),...a},[...o.map(([c,u])=>b.createElement(c,u)),...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 tt=(t,e)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(gj,{ref:i,iconNode:e,className:x1(`lucide-${pj(t)}`,r),...s}));return n.displayName=`${t}`,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 b1=tt("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 yj=tt("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 vj=tt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
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 wj=tt("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"}]]);/**
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 xj=tt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 bj=tt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 Sj=tt("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
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 kj=tt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 _j=tt("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"}]]);/**
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 Ej=tt("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
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 Tj=tt("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"}]]);/**
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 Cj=tt("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"}]]);/**
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 Aj=tt("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
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 Pj=tt("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"}]]);/**
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 lc=tt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
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 jj=tt("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"}]]);/**
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 cc=tt("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: 8,801 bytes, lines 145-155
145],["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"}]]);/**
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 gh=tt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
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 S1=tt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Jm="-",Rj=t=>{const e=Oj(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(Jm);return a[0]===""&&a.length!==1&&a.shift(),k1(a,e)||Nj(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},k1=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?k1(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(Jm);return(o=e.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},wv=/^\[(.+)\]$/,Nj=t=>{if(wv.test(t)){const e=wv.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},Oj=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Ij(Object.entries(t.classGroups),n).forEach(([i,o])=>{Jf(o,r,i,e)}),r},Jf=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:xv(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(Lj(s)){Jf(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Jf(o,xv(e,i),n,r)})})},xv=(t,e)=>{let n=t;return e.split(Jm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Lj=t=>t.isThemeGetter,Ij=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[e+o,a])):i);return[n,s]}):t,Dj=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),e++,e>t&&(e=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)}}},_1="!",Mj=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;x<a.length;x++){let y=a[x];if(c===0){if(y===s&&(r||a.slice(x,x+i)===e)){l.push(a.slice(u,x)),u=x+i;continue}if(y==="/"){d=x;continue}}y==="["?c++:y==="]"&&c--}const f=l.length===0?a:a.substring(u),p=f.startsWith(_1),m=p?f.substring(1):f,g=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},$j=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},Fj=t=>({cache:Dj(t.cacheSize),parseClassName:Mj(t),...Rj(t)}),Uj=/\s+/,Bj=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],o=t.trim().split(Uj);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let m=!!p,g=r(m?f.substring(0,p):f);if(!g){if(!m){a=c+(a.length>0?" "+a:a);continue}if(g=r(f),!g){a=c+(a.length>0?" "+a:a);continue}m=!1}const x=$j(u).join(":"),y=d?x+_1:x,v=y+g;if(i.includes(v))continue;i.push(v);const w=s(g,m);for(let S=0;S<w.length;++S){const k=w[S];i.push(y+k)}a=c+(a.length>0?" "+a:a)}return a};function zj(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=E1(e))&&(r&&(r+=" "),r+=n);return r}const E1=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=E1(t[r]))&&(n&&(n+=" "),n+=e);return n};function Vj(t,...e){let n,r,s,i=o;function o(l){const c=e.reduce((u,d)=>d(u),t());return n=Fj(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Bj(l,n);return s(l,u),u}return function(){return i(zj.apply(null,arguments))}}const Ae=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},T1=/^\[(?:([a-z-]+):)?(.+)\]$/i,Wj=/^\d+\/\d+$/,Hj=new Set(["px","full","screen"]),Kj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qj=/\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$/,Gj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cr=t=>ao(t)||Hj.has(t)||Wj.test(t),Dr=t=>$o(t,"length",sR),ao=t=>!!t&&!Number.isNaN(Number(t)),yh=t=>$o(t,"number",ao),ra=t=>!!t&&Number.isInteger(Number(t)),Zj=t=>t.endsWith("%")&&ao(t.slice(0,-1)),ie=t=>T1.test(t),Mr=t=>Kj.test(t),Qj=new Set(["length","size","percentage"]),Xj=t=>$o(t,Qj,C1),eR=t=>$o(t,"position",C1),tR=new Set(["image","url"]),nR=t=>$o(t,tR,oR),rR=t=>$o(t,"",iR),sa=()=>!0,$o=(t,e,n)=>{const r=T1.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},sR=t=>qj.test(t)&&!Gj.test(t),C1=()=>!1,iR=t=>Yj.test(t),oR=t=>Jj.test(t),aR=()=>{const t=Ae("colors"),e=Ae("spacing"),n=Ae("blur"),r=Ae("brightness"),s=Ae("borderColor"),i=Ae("borderRadius"),o=Ae("borderSpacing"),a=Ae("borderWidth"),l=Ae("contrast"),c=Ae("grayscale"),u=Ae("hueRotate"),d=Ae("invert"),f=Ae("gap"),p=Ae("gradientColorStops"),m=Ae("gradientColorStopPositions"),g=Ae("inset"),x=Ae("margin"),y=Ae("opacity"),v=Ae("padding"),w=Ae("saturate"),S=Ae("scale"),k=Ae("sepia"),_=Ae("skew"),E=Ae("space"),T=Ae("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",ie,e],U=()=>[ie,e],X=()=>["",cr,Dr],M=()=>["auto",ao,ie],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",ie],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[ao,ie];return{cacheSize:500,separator:":",theme:{colors:[sa],spacing:[cr,Dr],blur:["none","",Mr,ie],brightness:Q(),borderColor:[t],borderRadius:["none","","full",Mr,ie],borderSpacing:U(),borderWidth:X(),contrast:Q(),grayscale:P(),hueRotate:Q(),invert:P(),gap:U(),gradientColorStops:[t],gradientColorStopPositions:[Zj,Dr],inset:F(),margin:F(),opacity:Q(),padding:U(),saturate:Q(),scale:Q(),sepia:P(),skew:Q(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Mr]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...se(),ie]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ra,ie]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",ra,ie]}],"grid-cols":[{"grid-cols":[sa]}],"col-start-end":[{col:["auto",{span:["full",ra,ie]},ie]}],"col-start":[{"col-start":M()}
vendor: 4,241 bytes, line 155
155],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[sa]}],"row-start-end":[{row:["auto",{span:[ra,ie]},ie]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],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",ie,e]}],"min-w":[{"min-w":[ie,e,"min","max","fit"]}],"max-w":[{"max-w":[ie,e,"none","full","min","max","fit","prose",{screen:[Mr]},Mr]}],h:[{h:[ie,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Mr,Dr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yh]}],"font-family":[{font:[sa]}],"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",ie]}],"line-clamp":[{"line-clamp":["none",ao,yh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cr,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cr,Dr]}],"underline-offset":[{"underline-offset":["auto",cr,ie]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],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",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),eR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nR]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}
155],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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":[y]}],"border-style":[{border:[...Z(),"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":[y]}
vendor: 4,467 bytes, line 155
155],"divide-style":[{divide:Z()}],"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:["",...Z()]}],"outline-offset":[{"outline-offset":[cr,ie]}],"outline-w":[{outline:[cr,Dr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[cr,Dr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Mr,rR]}],"shadow-color":[{shadow:[sa]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Mr,ie]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"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",ie]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ra,ie]}],"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",ie]}],accent:[{accent:["auto",t]}],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",ie]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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"]}],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",ie]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[cr,Dr,yh]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
155none"]}]},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"]}}},lR=Vj(aR);function qt(...t){return lR(w1(t))}const cR=fj,A1=b.forwardRef(({className:t,...e},n)=>h.jsx(h1,{ref:n,className:qt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));A1.displayName=h1.displayName;const uR=Ym("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"}}),P1=b.forwardRef(({className:t,variant:e,...n},r)=>h.jsx(f1,{ref:r,className:qt(uR({variant:e}),t),...n}));P1.displayName=f1.displayName;const dR=b.forwardRef(({className:t,...e},n)=>h.jsx(g1,{ref:n,className:qt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));dR.displayName=g1.displayName;const j1=b.forwardRef(({className:t,...e},n)=>h.jsx(y1,{ref:n,className:qt("absolute right-2 top-2 rounded-md p-1 text-foreground
155/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",t),"toast-close":"",...e,children:h.jsx(S1,{className:"h-4 w-4"})}));j1.displayName=y1.displayName;const R1=b.forwardRef(({className:t,...e},n)=>h.jsx(p1,{ref:n,className:qt("text-sm font-semibold",t),...e}));R1.displayName=p1.displayName;const N1=b.forwardRef(({className:t,...e},n)=>h.jsx(m1,{ref:n,className:qt("text-sm opacity-90",t),...e}));N1.displayName=m1.displayName;function hR(){const{toasts:t}=bP();return h.jsxs(cR,{children:[t.map(function({id:e,title:n,description:r,action:s,...i}){return h.jsxs(P1,{...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(R1,{children:n}),r&&h.jsx(N1,{children:r})]}),s,h.jsx(j1,{})]},e)}),h.jsx(A1,{})]})}var bv=["light","dark"],fR="(prefers-color-scheme: dark)",pR=b.createContext(void 0),mR={setTheme:t=>{},themes:[]},gR=()=>{var t;return(t=b.useContext(pR))!=null?t:mR};b.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(m=>`'${m}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?bv.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(m,g=!1,x=!0)=>{let y=o?o[m]:m,v=g?m+"|| ''":`'${y}'`,w="";return s&&x&&!g&&bv.includes(m)&&(w+=`d.style.colorScheme = '${m}';`),n==="class"?g||y?w+=`c.add(${v})`:w+="null":y&&(w+=`d[s](n,${v})`),w},p=t?`!function(){${u}${f(t)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${c})){var t='${fR}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${c?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var yR=t=>{switch(t){case"success":return xR;case"info":return SR;case"warning":return bR;case"error":return kR;default:return null}},vR=Array(12).fill(0),wR=({visible:t,className:e})=>R.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},R.createElement("div",{className:"sonner-spinner"},vR.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),xR=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"})),bR=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"})),SR=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"})),kR=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"})),_R=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"})),ER=()=>{let[t,e]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{e(document.hidden)};
155return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Zf=1,TR=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Zf++,i=this.toasts.find(a=>a.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:n}),{...a,...t,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),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(AR(l)&&!l.ok){s=!1;let c=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,u=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:n,type:"error",message:c,description:u})}else if(e.success!==void 0){s=!1;let c=typeof e.success=="function"?await e.success(l):e.success,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],e.error!==void 0){s=!1;let c=typeof e.error=="function"?await e.error(l):e.error,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Zf++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Rt=new TR,CR=(t,e)=>{let n=(e==null?void 0:e.id)||Zf++;return Rt.addToast({title:t,...e,id:n}),n},AR=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",PR=CR,jR=()=>Rt.toasts,RR=()=>Rt.getActiveToasts(),He=Object.assign(PR,{success:Rt.success,info:Rt.info,warning:Rt.warning,error:Rt.error,custom:Rt.custom,message:Rt.message,promise:Rt.promise,dismiss:Rt.dismiss,loading:Rt.loading},{getHistory:jR,getToasts:RR});function NR(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}NR(`: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;
155left: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}
155: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%);
155--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%)}
156`);function uc(t){return t.label!==void 0}var OR=3,LR="32px",IR="16px",Sv=4e3,DR=356,MR=14,$R=20,FR=200;function yn(...t){return t.filter(Boolean).join(" ")}function UR(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var BR=t=>{var e,n,r,s,i,o,a,l,c,u,d;let{invert:f,toast:p,unstyled:m,interacting:g,setHeights:x,visibleToasts:y,heights:v,index:w,toasts:S,expanded:k,removeToast:_,defaultRichColors:E,closeButton:T,style:A,cancelButtonStyle:N,actionButtonStyle:F,className:U="",descriptionClassName:X="",duration:M,position:se,gap:Z,loadingIcon:H,expandByDefault:C,classNames:P,icons:D,closeButtonAriaLabel:Q="Close toast",pauseWhenPageIsHidden:Y}=t,[oe,le]=R.useState(null),[$e,nt]=R.useState(null),[ge,jr]=R.useState(!1),[$n,or]=R.useState(!1),[Fn,Rr]=R.useState(!1),[Un,ar]=R.useState(!1),[Ko,gi]=R.use
156State(!1),[O,G]=R.useState(0),[ue,ae]=R.useState(0),he=R.useRef(p.duration||M||Sv),Ce=R.useRef(null),be=R.useRef(null),Fe=w===0,Mt=w+1<=y,ke=p.type,We=p.dismissible!==!1,Fl=p.className||"",aT=p.descriptionClassName||"",Ul=R.useMemo(()=>v.findIndex(ne=>ne.toastId===p.id)||0,[v,p.id]),lT=R.useMemo(()=>{var ne;return(ne=p.closeButton)!=null?ne:T},[p.closeButton,T]),Hg=R.useMemo(()=>p.duration||M||Sv,[p.duration,M]),Ld=R.useRef(0),yi=R.useRef(0),Kg=R.useRef(0),vi=R.useRef(null),[cT,uT]=se.split("-"),qg=R.useMemo(()=>v.reduce((ne,Se,Re)=>Re>=Ul?ne:ne+Se.height,0),[v,Ul]),Gg=ER(),dT=p.invert||f,Id=ke==="loading";yi.current=R.useMemo(()=>Ul*Z+qg,[Ul,qg]),R.useEffect(()=>{he.current=Hg},[Hg]),R.useEffect(()=>{jr(!0)},[]),R.useEffect(()=>{let ne=be.current;if(ne){let Se=ne.getBoundingClientRect().height;return ae(Se),x(Re=>[{toastId:p.id,height:Se,position:p.position},...Re]),()=>x(Re=>Re.filter(fn=>fn.toastId!==p.id))}},[x,p.id]),R.useLayoutEffect(()=>{if(!ge)return;let ne=be.current,Se=ne.style.height;ne.style.height="auto";let Re=ne.getBoundingClientRect().height;ne.style.height=Se,ae(Re),x(fn=>fn.find(pn=>pn.toastId===p.id)?fn.map(pn=>pn.toastId===p.id?{...pn,height:Re}:pn):[{toastId:p.id,height:Re,position:p.position},...fn])},[ge,p.title,p.description,x,p.id]);let Nr=R.useCallback(()=>{or(!0),G(yi.current),x(ne=>ne.filter(Se=>Se.toastId!==p.id)),setTimeout(()=>{_(p)},FR)},[p,_,x,yi]);R.useEffect(()=>{if(p.promise&&ke==="loading"||p.duration===1/0||p.type==="loading")return;let ne;return k||g||Y&&Gg?(()=>{if(Kg.current<Ld.current){let Se=new Date().getTime()-Ld.current;he.current=he.current-Se}Kg.current=new Date().getTime()})():he.current!==1/0&&(Ld.current=new Date().getTime(),ne=setTimeout(()=>{var Se;(Se=p.onAutoClose)==null||Se.call(p,p),Nr()},he.current)),()=>clearTimeout(ne)},[k,g,p,ke,Y,Gg,Nr]),R.useEffect(()=>{p.delete&&Nr()},[Nr,p.delete]);function hT(){var ne,Se,Re;return D!=null&&D.loading?R.createElement("div",{className:yn(P==null?void 0:P.loader,(ne=p==null?void 0:p.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":ke==="loading"},D.loading):H?R.createElement("div",{className:yn(P==null?void 0:P.loader,(Se=p==null?void 0:p.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":ke==="loading"},H):R.createElement(wR,{className:yn(P==null?void 0:P.loader,(Re=p==null?void 0:p.classNames)==null?void 0:Re.loader),visible:ke==="loading"})}return R.createElement("li",{tabIndex:0,ref:be,className:yn(U,Fl,P==null?void 0:P.toast,(e=p==null?void 0:p.classNames)==null?void 0:e.toast,P==null?void 0:P.default,P==null?void 0:P[ke],(n=p==null?void 0:p.classNames)==null?void 0:n[ke]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:E,"data-styled":!(p.jsx||p.unstyled||m),"data-mounted":ge,"data-promise":!!p.promise,"data-swiped":Ko,"data-removed":$n,"data-visible":Mt,"data-y-position":cT,"data-x-position":uT,"data-index":w,"data-front":Fe,"data-swiping":Fn,"data-dismissible":We,"data-type":ke,"data-invert":dT,"data-swipe-out":Un,"data-swipe-direction":$e,"data-expanded":!!(k||C&&ge),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${$n?O:yi.current}px`,"--initial-height":C?"auto":`${ue}px`,...A,...p.style},onDragEnd:()=>{Rr(!1),le(null),vi.current=null},onPointerDown:ne=>{Id||!We||(Ce.current=new Date,G(yi.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(Rr(!0),vi.current={x:ne.clientX,y:ne.clientY}))},onPointerUp:()=>{var ne,Se,Re,fn;if(Un||!We)return;vi.current=null;let pn=Number(((ne=be.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Or=Number(((Se=be.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ps=new Date().getTime()-((Re=Ce.current)==null?void 0:Re.getTime()),mn=oe==="x"?pn:Or,Lr=Math.abs(mn)/Ps;if(Math.abs(mn)>=$R||Lr>.11){G(yi.current),(fn=p.onDismiss)==null||fn.call(p,p),nt(oe==="x"?pn>0?"right":"left":Or>0?"down":"up"),Nr(),ar(!0),gi(!1);return}Rr(!1),le(null)},onPointerMove:ne=>{var Se,Re,fn,pn;if(!vi.current||!We||((Se=window.getSelection())==null?void 0:Se.toString().length)>0)return;let Or=ne.clientY-vi.current.y,Ps=ne.clientX-vi.current.x,mn=(Re=t.swipeDirections)!=null?Re:UR(se);!oe&&(Math.abs(Ps)>1||Math.abs(Or)>1)&&le(Math.abs(Ps)>Math.abs(Or)?"x":"y");let Lr={x:0,y:0};oe==="y"?(mn.includes("top")||mn.includes("bottom"))&&(mn.includes("top")&&Or<0||mn.includes("bottom")&&Or>0)&&(Lr.y=Or):oe==="x"&&(mn.includes("left")||mn.includes("right"))&&(mn.includes("left")&&Ps<0||mn.includes("right")&&Ps>0)&&(Lr.x=Ps),(Math.abs(Lr.x)>0||Math.abs(Lr.y)>0)&&gi(!0),(fn=be.current)==null||fn.style.setProperty("--swipe-amount-x",`${Lr.x}px`),(pn=be.current)==null||pn.style.setProperty("--swipe-amount-y",`${Lr.y}px`)}},lT&&!p.jsx?R.createElement("button",{"aria-label":Q,"data-disabled":Id,"data-close-button":!0,onClick:Id||!We?()=>{}:()=>{var ne;Nr(),(ne=p.onDismiss)==null||ne.call(p,p)},className:yn(P==null?void 0:P.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:_R):null,p.jsx||b.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:R.createElement(R.Fragment,null,ke||p.icon||p.promise?R.createElement("div",{"data-icon":"",className:yn(P==null?void 0:P.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)}
vendor: 6,717 bytes, line 156
156,p.promise||p.type==="loading"&&!p.icon?p.icon||hT():null,p.type!=="loading"?p.icon||(D==null?void 0:D[ke])||yR(ke):null):null,R.createElement("div",{"data-content":"",className:yn(P==null?void 0:P.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},R.createElement("div",{"data-title":"",className:yn(P==null?void 0:P.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?R.createElement("div",{"data-description":"",className:yn(X,aT,P==null?void 0:P.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),b.isValidElement(p.cancel)?p.cancel:p.cancel&&uc(p.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||N,onClick:ne=>{var Se,Re;uc(p.cancel)&&We&&((Re=(Se=p.cancel).onClick)==null||Re.call(Se,ne),Nr())},className:yn(P==null?void 0:P.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,b.isValidElement(p.action)?p.action:p.action&&uc(p.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||F,onClick:ne=>{var Se,Re;uc(p.action)&&((Re=(Se=p.action).onClick)==null||Re.call(Se,ne),!ne.defaultPrevented&&Nr())},className:yn(P==null?void 0:P.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function kv(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function zR(t,e){let n={};return[t,e].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?IR:LR;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var VR=b.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:f,style:p,visibleToasts:m=OR,toastOptions:g,dir:x=kv(),gap:y=MR,loadingIcon:v,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=t,[_,E]=R.useState([]),T=R.useMemo(()=>Array.from(new Set([r].concat(_.filter(Y=>Y.position).map(Y=>Y.position)))),[_,r]),[A,N]=R.useState([]),[F,U]=R.useState(!1),[X,M]=R.useState(!1),[se,Z]=R.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=R.useRef(null),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=R.useRef(null),D=R.useRef(!1),Q=R.useCallback(Y=>{E(oe=>{var le;return(le=oe.find($e=>$e.id===Y.id))!=null&&le.delete||Rt.dismiss(Y.id),oe.filter(({id:$e})=>$e!==Y.id)})},[]);return R.useEffect(()=>Rt.subscribe(Y=>{if(Y.dismiss){E(oe=>oe.map(le=>le.id===Y.id?{...le,delete:!0}:le));return}setTimeout(()=>{DS.flushSync(()=>{E(oe=>{let le=oe.findIndex($e=>$e.id===Y.id);return le!==-1?[...oe.slice(0,le),{...oe[le],...Y},...oe.slice(le+1)]:[Y,...oe]})})})}),[]),R.useEffect(()=>{if(u!=="system"){Z(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;let Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:oe})=>{Z(oe?"dark":"light")})}catch{Y.addListener(({matches:le})=>{try{Z(le?"dark":"light")}catch($e){console.error($e)}})}},[u]),R.useEffect(()=>{_.length<=1&&U(!1)},[_]),R.useEffect(()=>{let Y=oe=>{var le,$e;s.every(nt=>oe[nt]||oe.code===nt)&&(U(!0),(le=H.current)==null||le.focus()),oe.code==="Escape"&&(document.activeElement===H.current||($e=H.current)!=null&&$e.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[s]),R.useEffect(()=>{if(H.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,D.current=!1)}},[H.current]),R.createElement("section",{ref:e,"aria-label":`${S} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((Y,oe)=>{var le;let[$e,nt]=Y.split("-");return _.length?R.createElement("ol",{key:Y,dir:x==="auto"?kv():x,tabIndex:-1,ref:H,className:a,"data-sonner-toaster":!0,"data-theme":se,"data-y-position":$e,"data-lifted":F&&_.length>1&&!i,"data-x-position":nt,style:{"--front-toast-height":`${((le=A[0])==null?void 0:le.height)||0}px`,"--width":`${DR}px`,"--gap":`${y}px`,...p,...zR(l,c)},onBlur:ge=>{D.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(D.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||D.current||(D.current=!0,P.current=ge.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{X||U(!1)},onDragEnd:()=>U(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},_.filter(ge=>!ge.position&&oe===0||ge.position===Y).map((ge,jr)=>{var $n,or;return R.createElement(BR,{key:ge.id,icons:w,index:jr,toast:ge,defaultRichColors:d,duration:($n=g==null?void 0:g.duration)!=null?$n:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:m,closeButton:(or=g==null?void 0:g.closeButton)!=null?or:o,interacting:X,position:Y,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Q,toasts:_.filter(Fn=>Fn.position==ge.position),heights:A.filter(Fn=>Fn.position==ge.position),setHeights:N,expandByDefault:i,gap:y,loadingIcon:v,expanded:F,pauseWhenPageIsHidden:k,swipeDirections:t.swipeDirections})})):null}))});const WR=({...t})=>{const{theme:e="system"}=gR();return h.jsx(VR,{theme:e,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"}},...t})},HR=["top","right","bottom","left"],ws=Math.min,Ut=Math.max,Su=Math.round,dc=Math.floor,er=t=>({x:t,y:t}
vendor: 25,695 bytes, line 156
156),KR={left:"right",right:"left",bottom:"top",top:"bottom"},qR={start:"end",end:"start"};function Qf(t,e,n){return Ut(t,ws(e,n))}function _r(t,e){return typeof t=="function"?t(e):t}function Er(t){return t.split("-")[0]}function Fo(t){return t.split("-")[1]}function Zm(t){return t==="x"?"y":"x"}function Qm(t){return t==="y"?"height":"width"}const GR=new Set(["top","bottom"]);function Zn(t){return GR.has(Er(t))?"y":"x"}function Xm(t){return Zm(Zn(t))}function YR(t,e,n){n===void 0&&(n=!1);const r=Fo(t),s=Xm(t),i=Qm(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=ku(o)),[o,ku(o)]}function JR(t){const e=ku(t);return[Xf(t),e,Xf(e)]}function Xf(t){return t.replace(/start|end/g,e=>qR[e])}const _v=["left","right"],Ev=["right","left"],ZR=["top","bottom"],QR=["bottom","top"];function XR(t,e,n){switch(t){case"top":case"bottom":return n?e?Ev:_v:e?_v:Ev;case"left":case"right":return e?ZR:QR;default:return[]}}function eN(t,e,n,r){const s=Fo(t);let i=XR(Er(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(Xf)))),i}function ku(t){return t.replace(/left|right|bottom|top/g,e=>KR[e])}function tN(t){return{top:0,right:0,bottom:0,left:0,...t}}function O1(t){return typeof t!="number"?tN(t):{top:t,right:t,bottom:t,left:t}}function _u(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function Tv(t,e,n){let{reference:r,floating:s}=t;const i=Zn(e),o=Xm(e),a=Qm(o),l=Er(e),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Fo(e)){case"start":p[o]-=f*(n&&c?-1:1);break;case"end":p[o]+=f*(n&&c?-1:1);break}return p}const nN=async(t,e,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(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:d}=Tv(c,r,l),f=r,p={},m=0;for(let g=0;g<a.length;g++){const{name:x,fn:y}=a[g],{x:v,y:w,data:S,reset:k}=await y({x:u,y:d,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:c,platform:o,elements:{reference:t,floating:e}});u=v??u,d=w??d,p={...p,[x]:{...p[x],...S}},k&&m<=50&&(m++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):k.rects),{x:u,y:d}=Tv(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:p}};async function Qa(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=_r(e,t),m=O1(p),x=a[f?d==="floating"?"reference":"floating":d],y=_u(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:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},k=_u(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:l}):v);return{top:(y.top-k.top+m.top)/S.y,bottom:(k.bottom-y.bottom+m.bottom)/S.y,left:(y.left-k.left+m.left)/S.x,right:(k.right-y.right+m.right)/S.x}}const rN=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=_r(t,e)||{};if(c==null)return{};const d=O1(u),f={x:n,y:r},p=Xm(s),m=Qm(p),g=await o.getDimensions(c),x=p==="y",y=x?"top":"left",v=x?"bottom":"right",w=x?"clientHeight":"clientWidth",S=i.reference[m]+i.reference[p]-f[p]-i.floating[m],k=f[p]-i.reference[p],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=_?_[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(_)))&&(E=a.floating[w]||i.floating[m]);const T=S/2-k/2,A=E/2-g[m]/2-1,N=ws(d[y],A),F=ws(d[v],A),U=N,X=E-g[m]-F,M=E/2-g[m]/2+T,se=Qf(U,M,X),Z=!l.arrow&&Fo(s)!=null&&M!==se&&i.reference[m]/2-(M<U?N:F)-g[m]/2<0,H=Z?M<U?M-U:M-X:0;return{[p]:f[p]+H,data:{[p]:se,centerOffset:M-se-H,...Z&&{alignmentOffset:H}},reset:Z}}}),sN=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=_r(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Er(s),v=Zn(a),w=Er(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=f||(w||!g?[ku(a)]:JR(a)),_=m!=="none";!f&&_&&k.push(...eN(a,g,m,S));const E=[a,...k],T=await Qa(e,x),A=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&A.push(T[y]),d){const M=YR(s,o,S);A.push(T[M[0]],T[M[1]])}if(N=[...N,{placement:s,overflows:A}],!A.every(M=>M<=0)){var F,U;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,se=E[M];if(se&&(!(d==="alignment"?v!==Zn(se):!1)||N.every(C=>C.overflows[0]>0&&Zn(C.placement)===v)))return{data:{index:M,overflows:N},reset:{placement:se}};let Z=(U=N.filter(H=>H.overflows[0]<=0).sort((H,C)=>H.overflows[1]-C.overflows[1])[0])==null?void 0:U.placement;if(!Z)switch(p){case"bestFit":{var X;const H=(X=N.filter(C=>{if(_){const P=Zn(C.placement);return P===v||P==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(P=>P>0).reduce((P,D)=>P+D,0)]).sort((C,P)=>C[1]-P[1])[0])==null?void 0:X[0];H&&(Z=H);break}case"initialPlacement":Z=a;break}if(s!==Z)return{reset:{placement:Z}}}return{}}}};function Cv(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Av(t){return HR.some(e=>t[e]>=0)}const iN=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=_r(t,e);switch(r){case"referenceHidden":{const i=await Qa(e,{...s,elementContext:"reference"}),o=Cv(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Av(o)}}}case"escaped":{const i=await Qa(e,{...s,altBoundary:!0}),o=Cv(i,n.floating);return{data:{escapedOffsets:o,escaped:Av(o)}}}default:return{}}}}},L1=new Set(["left","top"]);async function oN(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Er(n),a=Fo(n),l=Zn(n)==="y",c=L1.has(o)?-1:1,u=i&&l?-1:1,d=_r(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const aN=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=e,l=await oN(e,t);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}}}}},lN=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...l}=_r(t,e),c={x:n,y:r},u=await Qa(e,l),d=Zn(Er(s)),f=Zm(d);let p=c[f],m=c[d];if(i){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=p+u[x],w=p-u[y];p=Qf(v,p,w)}if(o){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=m+u[x],w=m-u[y];m=Qf(v,m,w)}const g=a.fn({...e,[f]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[d]:o}}}}}},cN=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=_r(t,e),u={x:n,y:r},d=Zn(s),f=Zm(d);let p=u[f],m=u[d];const g=_r(a,e),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=f==="y"?"height":"width",S=i.reference[f]-i.floating[w]+x.mainAxis,k=i.reference[f]+i.reference[w]-x.mainAxis;p<S?p=S:p>k&&(p=k)}if(c){var y,v;const w=f==="y"?"width":"height",S=L1.has(Er(s)),k=i.reference[d]-i.floating[w]+(S&&((y=o.offset)==null?void 0:y[d])||0)+(S?0:x.crossAxis),_=i.reference[d]+i.reference[w]+(S?0:((v=o.offset)==null?void 0:v[d])||0)-(S?x.crossAxis:0);m<k?m=k:m>_&&(m=_)}return{[f]:p,[d]:m}}}},uN=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:l=()=>{},...c}=_r(t,e),u=await Qa(e,c),d=Er(s),f=Fo(s),p=Zn(s)==="y",{width:m,height:g}=i.floating;let x,y;d==="top"||d==="bottom"?(x=d,y=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,x=f==="end"?"top":"bottom");const v=g-u.top-u.bottom,w=m-u.left-u.right,S=ws(g-u[x],v),k=ws(m-u[y],w),_=!e.middlewareData.shift;let E=S,T=k;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(E=v),_&&!f){const N=Ut(u.left,0),F=Ut(u.right,0),U=Ut(u.top,0),X=Ut(u.bottom,0);p?T=m-2*(N!==0||F!==0?N+F:Ut(u.left,u.right)):E=g-2*(U!==0||X!==0?U+X:Ut(u.top,u.bottom))}await l({...e,availableWidth:T,availableHeight:E});const A=await o.getDimensions(a.floating);return m!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}};function pd(){return typeof window<"u"}function Uo(t){return I1(t)?(t.nodeName||"").toLowerCase():"#document"}function Wt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ir(t){var e;return(e=(I1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function I1(t){return pd()?t instanceof Node||t instanceof Wt(t).Node:!1}function In(t){return pd()?t instanceof Element||t instanceof Wt(t).Element:!1}function rr(t){return pd()?t instanceof HTMLElement||t instanceof Wt(t).HTMLElement:!1}function Pv(t){return!pd()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Wt(t).ShadowRoot}const dN=new Set(["inline","contents"]);function Rl(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Dn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!dN.has(s)}const hN=new Set(["table","td","th"]);function fN(t){return hN.has(Uo(t))}const pN=[":popover-open",":modal"];function md(t){return pN.some(e=>{try{return t.matches(e)}catch{return!1}})}const mN=["transform","translate","scale","rotate","perspective"],gN=["transform","translate","scale","rotate","perspective","filter"],yN=["paint","layout","strict","content"];function eg(t){const e=tg(),n=In(t)?Dn(t):t;return mN.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||gN.some(r=>(n.willChange||"").includes(r))||yN.some(r=>(n.contain||"").includes(r))}function vN(t){let e=xs(t);for(;rr(e)&&!Co(e);){if(eg(e))return e;if(md(e))return null;e=xs(e)}return null}function tg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wN=new Set(["html","body","#document"]);function Co(t){return wN.has(Uo(t))}function Dn(t){return Wt(t).getComputedStyle(t)}function gd(t){return In(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function xs(t){if(Uo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Pv(t)&&t.host||ir(t);return Pv(e)?e.host:e}function D1(t){const e=xs(t);return Co(e)?t.ownerDocument?t.ownerDocument.body:t.body:rr(e)&&Rl(e)?e:D1(e)}function Xa(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=D1(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=Wt(s);if(i){const a=ep(o);return e.concat(o,o.visualViewport||[],Rl(s)?s:[],a&&n?Xa(a):[])}return e.concat(s,Xa(s,[],n))}function ep(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function M1(t){const e=Dn(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=rr(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,a=Su(n)!==i||Su(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function ng(t){return In(t)?t:t.contextElement}function lo(t){const e=ng(t);if(!rr(e))return er(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=M1(e);let o=(i?Su(n.width):n.width)/r,a=(i?Su(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const xN=er(0);function $1(t){const e=Wt(t);return!tg()||!e.visualViewport?xN:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bN(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Wt(t)?!1:e}function ai(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=ng(t);let o=er(1);e&&(r?In(r)&&(o=lo(r)):o=lo(t));const a=bN(i,n,r)?$1(i):er(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=Wt(i),p=r&&In(r)?Wt(r):r;let m=f,g=ep(m);for(;g&&r&&p!==m;){const x=lo(g),y=g.getBoundingClientRect(),v=Dn(g),w=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*x.x,S=y.top+(g.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=w,c+=S,m=Wt(g),g=ep(m)}}return _u({width:u,height:d,x:l,y:c})}function rg(t,e){const n=gd(t).scrollLeft;return e?e.left+n:ai(ir(t)).left+n}function F1(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:rg(t,r)),i=r.top+e.scrollTop;return{x:s,y:i}}function SN(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=ir(r),a=e?md(e.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=er(1);const u=er(0),d=rr(r);if((d||!d&&!i)&&((Uo(r)!=="body"||Rl(o))&&(l=gd(r)),rr(r))){const p=ai(r);c=lo(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=o&&!d&&!i?F1(o,l,!0):er(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function kN(t){return Array.from(t.getClientRects())}function _N(t){const e=ir(t),n=gd(t),r=t.ownerDocument.body,s=Ut(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Ut(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+rg(t);const a=-n.scrollTop;return Dn(r).direction==="rtl"&&(o+=Ut(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function EN(t,e){const n=Wt(t),r=ir(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=tg();(!c||c&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const TN=new Set(["absolute","fixed"]);function CN(t,e){const n=ai(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=rr(t)?lo(t):er(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function jv(t,e,n){let r;if(e==="viewport")r=EN(t,n);else if(e==="document")r=_N(ir(t));else if(In(e))r=CN(e,n);else{const s=$1(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return _u(r)}function U1(t,e){const n=xs(t);return n===e||!In(n)||Co(n)?!1:Dn(n).position==="fixed"||U1(n,e)}function AN(t,e){const n=e.get(t);if(n)return n;let r=Xa(t,[],!1).filter(a=>In(a)&&Uo(a)!=="body"),s=null;const i=Dn(t).position==="fixed";let o=i?xs(t):t;for(;In(o)&&!Co(o);){const a=Dn(o),l=eg(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&TN.has(s.position)||Rl(o)&&!l&&U1(t,o))?r=r.filter(u=>u!==o):s=a,o=xs(o)}return e.set(t,r),r}function PN(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?md(e)?[]:AN(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=jv(e,u,s);return c.top=Ut(d.top,c.top),c.right=ws(d.right,c.right),c.bottom=ws(d.bottom,c.bottom),c.left=Ut(d.left,c.left),c},jv(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function jN(t){const{width:e,height:n}=M1(t);return{width:e,height:n}}function RN(t,e,n){const r=rr(e),s=ir(e),i=n==="fixed",o=ai(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=er(0);function c(){l.x=rg(s)}if(r||!r&&!i)if((Uo(e)!=="body"||Rl(s))&&(a=gd(e)),r){const p=ai(e,!0,i,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?F1(s,a):er(0),d=o.left+a.scrollLeft-l.x-u.x,f=o.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:o.width,height:o.height}}function vh(t){return Dn(t).position==="static"}function Rv(t,e){if(!rr(t)||Dn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ir(t)===n&&(n=n.ownerDocument.body),n}function B1(t,e){const n=Wt(t);if(md(t))return n;if(!rr(t)){let s=xs(t);for(;s&&!Co(s);){if(In(s)&&!vh(s))return s;s=xs(s)}return n}let r=Rv(t,e);for(;r&&fN(r)&&vh(r);)r=Rv(r,e);return r&&Co(r)&&vh(r)&&!eg(r)?n:r||vN(t)||n}const NN=async function(t){const e=this.getOffsetParent||B1,n=this.getDimensions,r=await n(t.floating);return{reference:RN(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ON(t){return Dn(t).direction==="rtl"}const LN={convertOffsetParentRelativeRectToViewportRelativeRect:SN,getDocumentElement:ir,getClippingRect:PN,getOffsetParent:B1,getElementRects:NN,getClientRects:kN,getDimensions:jN,getScale:lo,isElement:In,isRTL:ON};function z1(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function IN(t,e){let n=null,r;const s=ir(t);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 c=t.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||e(),!f||!p)return;const m=dc(d),g=dc(s.clientWidth-(u+f)),x=dc(s.clientHeight-(d+p)),y=dc(u),w={rootMargin:-m+"px "+-g+"px "+-x+"px "+-y+"px",threshold:Ut(0,ws(1,l))||1};let S=!0;function k(_){const E=_[0].intersectionRatio;if(E!==l){if(!S)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!z1(c,t.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(k,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(t)}return o(!0),i}function DN(t,e,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,c=ng(t),u=s||i?[...c?Xa(c):[],...Xa(e)]:[];u.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&a?IN(c,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(e)})),n()}),c&&!l&&p.observe(c),p.observe(e));let m,g=l?ai(t):null;l&&x();function x(){const y=ai(t);g&&!z1(g,y)&&n(),g=y,m=requestAnimationFrame(x)}return n(),()=>{var y;u.forEach(v=>{s&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const MN=aN,$N=lN,FN=sN,UN=uN,BN=iN,Nv=rN,zN=cN,VN=(t,e,n)=>{const r=new Map,s={platform:LN,...n},i={...s.platform,_c:r};return nN(t,e,{...s,platform:i})};var WN=typeof document<"u",HN=function(){},Vc=WN?b.useLayoutEffect:HN;function Eu(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Eu(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Eu(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function V1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ov(t,e){const n=V1(t);return Math.round(e*n)/n}function wh(t){const e=b.useRef(t);return Vc(()=>{e.current=t}),e}function KN(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[u,d]=b.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);Eu(f,r)||p(r);const[m,g]=b.useState(null),[x,y]=b.useState(null),v=b.useCallback(C=>{C!==_.current&&(_.current=C,g(C))},[]),w=b.useCallback(C=>{C!==E.current&&(E.current=C,y(C))},[]),S=i||m,k=o||x,_=b.useRef(null),E=b.useRef(null),T=b.useRef(u),A=l!=null,N=wh(l),F=wh(s),U=wh(c),X=b.useCallback(()=>{if(!_.current||!E.current)return;const C={placement:e,strategy:n,middleware:f};F.current&&(C.platform=F.current),VN(_.current,E.current,C).then(P=>{const D={...P,isPositioned:U.current!==!1};M.current&&!Eu(T.current,D)&&(T.current=D,Al.flushSync(()=>{d(D)}))})},[f,e,n,F,U]);Vc(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[c]);const M=b.useRef(!1);Vc(()=>(M.current=!0,()=>{M.current=!1}),[]),Vc(()=>{if(S&&(_.current=S),k&&(E.current=k),S&&k){if(N.current)return N.current(S,k,X);X()}},[S,k,X,N,A]);const se=b.useMemo(()=>({reference:_,floating:E,setReference:v,setFloating:w}),[v,w]),Z=b.useMemo(()=>({reference:S,floating:k}),[S,k]),H=b.useMemo(()=>{const C={position:n,left:0,top:0};if(!Z.floating)return C;const P=Ov(Z.floating,u.x),D=Ov(Z.floating,u.y);return a?{...C,transform:"translate("+P+"px, "+D+"px)",...V1(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:D}},[n,a,Z.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:X,refs:se,elements:Z,floatingStyles:H}),[u,X,se,Z,H])}const qN=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Nv({element:r.current,padding:s}).fn(n):{}:r?Nv({element:r,padding:s}).fn(n):{}}}},GN=(t,e)=>({...MN(t),options:[t,e]}),YN=(t,e)=>({...$N(t),options:[t,e]}),JN=(t,e)=>({...zN(t),options:[t,e]}),ZN=(t,e)=>({...FN(t),options:[t,e]}),QN=(t,e)=>({...UN(t),options:[t,e]}),XN=(t,e)=>({...BN(t),options:[t,e]}),eO=(t,e)=>({...qN(t),options:[t,e]});var tO="Arrow",W1=b.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...i}=t;return h.jsx(ft.svg,{...i,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});W1.displayName=tO;var nO=W1;function H1(t){const[e,n]=b.useState(void 0);return vs(()=>{if(t){n({width:t.offsetWidth,height:t.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,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=t.offsetWidth,a=t.offsetHeight;n({width:o,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var K1="Popper",[q1,G1]=Pl(K1),[Yz,Y1]=q1(K1),J1="PopperAnchor",Z1=b.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=Y1(J1,n),o=b.useRef(null),a=Kt(e,o);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:h.jsx(ft.div,{...s,ref:a})});Z1.displayName=J1;var sg="PopperContent",[rO,sO]=q1(sg),Q1=b.forwardRef((t,e)=>{var ge,jr,$n,or,Fn,Rr;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=t,x=Y1(sg,n),[y,v]=b.useState(null),w=Kt(e,Un=>v(Un)),[S,k]=b.useState(null),_=H1(S),E=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,A=r+(i!=="center"?"-"+i:""),N=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},F=Array.isArray(c)?c:[c],U=F.length>0,X={padding:N,boundary:F.filter(oO),altBoundary:U},{refs:M,floatingStyles:se,placement:Z,isPositioned:H,middlewareData:C}=KN({strategy:"fixed",placement:A,whileElementsMounted:(...Un)=>DN(...Un,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[GN({mainAxis:s+T,alignmentAxis:o}),l&&YN({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?JN():void 0,...X}),l&&ZN({...X}),QN({...X,apply:({elements:Un,rects:ar,availableWidth:Ko,availableHeight:gi})=>{const{width:O,height:G}=ar.reference,ue=Un.floating.style;ue.setProperty("--radix-popper-available-width",`${Ko}px`),ue.setProperty("--radix-popper-available-height",`${gi}px`),ue.setProperty("--radix-popper-anchor-width",`${O}px`),ue.setProperty("--radix-popper-anchor-height",`${G}px`)}}),S&&eO({element:S,padding:a}),aO({arrowWidth:E,arrowHeight:T}),f&&XN({strategy:"referenceHidden",...X})]}),[P,D]=tk(Z),Q=ys(m);vs(()=>{H&&(Q==null||Q())},[H,Q]);const Y=(ge=C.arrow)==null?void 0:ge.x,oe=(jr=C.arrow)==null?void 0:jr.y,le=(($n=C.arrow)==null?void 0:$n.centerOffset)!==0,[$e,nt]=b.useState();return vs(()=>{y&&nt(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:H?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(or=C.transformOrigin)==null?void 0:or.x,(Fn=C.transformOrigin)==null?void 0:Fn.y].join(" "),...((Rr=C.hide)==null?void 0:Rr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(rO,{scope:n,placedSide:P,onArrowChange:k,arrowX:Y,arrowY:oe,shouldHideArrow:le,children:h.jsx(ft.div,{"data-side":P,"data-align":D,...g,ref:w,style:{...g.style,animation:H?void 0:"none"}})})})});Q1.displayName=sg;var X1="PopperArrow",iO={top:"bottom",right:"left",bottom:"top",left:"r
156ight"},ek=b.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,i=sO(X1,r),o=iO[i.placedSide];return h.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:h.jsx(nO,{...s,ref:n,style:{...s.style,display:"block"}})})});ek.displayName=X1;function oO(t){return t!==null}var aO=t=>({name:"transformOrigin",options:t,fn(e){var x,y,v;const{placement:n,rects:r,middlewareData:s}=e,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=tk(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=s.arrow)==null?void 0:y.x)??0)+a/2,p=(((v=s.arrow)==null?void 0:v.y)??0)+l/2;let m="",g="";return c==="bottom"?(m=o?d:`${f}px`,g=`${-l}px`):c==="top"?(m=o?d:`${f}px`,g=`${r.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=o?d:`${p}px`):c==="left"&&(m=`${r.floating.width+l}px`,g=o?d:`${p}px`),{data:{x:m,y:g}}}});function tk(t){const[e,n="center"]=t.split("-");return[e,n]}var lO=Z1,cO=Q1,uO=ek,[yd,Jz]=Pl("Tooltip",[G1]),ig=G1(),nk="TooltipProvider",dO=700,Lv="tooltip.open",[hO,rk]=yd(nk),sk=t=>{const{__scopeTooltip:e,delayDuration:n=dO,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=t,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),h.jsx(hO,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};sk.displayName=nk;var ik="Tooltip",[Zz,vd]=yd(ik),tp="TooltipTrigger",fO=b.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=vd(tp,n),i=rk(tp,n),o=ig(n),a=b.useRef(null),l=Kt(e,a,s.onTriggerChange),c=b.useRef(!1),u=b.useRef(!1),d=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(lO,{asChild:!0,...o,children:h.jsx(ft.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Ye(t.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ye(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:Ye(t.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ye(t.onFocus,()=>{c.current||s.onOpen()}),onBlur:Ye(t.onBlur,s.onClose),onClick:Ye(t.onClick,s.onClose)})})});fO.displayName=tp;var pO="TooltipPortal",[Qz,mO]=yd(pO,{forceMount:void 0}),Ao="TooltipContent",ok=b.forwardRef((t,e)=>{const n=mO(Ao,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=t,o=vd(Ao,t.__scopeTooltip);return h.jsx(Hm,{present:r||o.open,children:o.disableHoverableContent?h.jsx(ak,{side:s,...i,ref:e}):h.jsx(gO,{side:s,...i,ref:e})})}),gO=b.forwardRef((t,e)=>{const n=vd(Ao,t.__scopeTooltip),r=rk(Ao,t.__scopeTooltip),s=b.useRef(null),i=Kt(e,s),[o,a]=b.useState(null),{trigger:l,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,f=b.useCallback(()=>{a(null),d(!1)},[d]),p=b.useCallback((m,g)=>{const x=m.currentTarget,y={x:m.clientX,y:m.clientY},v=bO(y,x.getBoundingClientRect()),w=SO(y,v),S=kO(g.getBoundingClientRect()),k=EO([...w,...S]);a(k),d(!0)},[d]);return b.useEffect(()=>()=>f(),[f]),b.useEffect(()=>{if(l&&u){const m=x=>p(x,u),g=x=>p(x,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[l,u,p,f]),b.useEffect(()=>{if(o){const m=g=>{const x=g.target,y={x:g.clientX,y:g.clientY},v=(l==null?void 0:l.contains(x))||(u==null?void 0:u.contains(x)),w=!_O(y,o);v?f():w&&(f(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,o,c,f]),h.jsx(ak,{...t,ref:i})}),[yO,vO]=yd(ik,{isInside:!1}),wO=EP("TooltipContent"),ak=b.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,l=vd(Ao,n),c=ig(n),{onClose:u}=l;return b.useEffect(()=>(document.addEventListener(Lv,u),()=>document.removeEventListener(Lv,u)),[u]),b.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),h.jsx(Wm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:h.jsxs(cO,{"data-state":l.stateAttribute,...c,...a,ref:e,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:[h.jsx(wO,{children:r}),h.jsx(yO,{scope:n,isInside:!0,children:h.jsx(YP,{id:l.contentId,role:"tooltip",children:s||r})})]})})});ok.displayName=Ao;var lk="TooltipArrow",xO=b.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=ig(n);return vO(lk,n).isInside?null:h.jsx(uO,{...s,...r,ref:e})});xO.displayName=lk;function bO(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.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 SO(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function kO(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function _O(t,e){const{x:n,y:r}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],l=e[o],c=a.x,u=a.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(s=!s)}return s}function EO(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),TO(e)}function TO(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[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(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}
vendor: 18,865 bytes, line 156
156var CO=sk,ck=ok;const AO=CO,PO=b.forwardRef(({className:t,sideOffset:e=4,...n},r)=>h.jsx(ck,{ref:r,sideOffset:e,className:qt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));PO.displayName=ck.displayName;var wd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xd=typeof window>"u"||"Deno"in globalThis;function Sn(){}function jO(t,e){return typeof t=="function"?t(e):t}function RO(t){return typeof t=="number"&&t>=0&&t!==1/0}function NO(t,e){return Math.max(t+(e||0)-Date.now(),0)}function np(t,e){return typeof t=="function"?t(e):t}function OO(t,e){return typeof t=="function"?t(e):t}function Iv(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==og(o,e.options))return!1}else if(!tl(e.queryKey,o))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function Dv(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(el(e.options.mutationKey)!==el(i))return!1}else if(!tl(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function og(t,e){return((e==null?void 0:e.queryKeyHashFn)||el)(t)}function el(t){return JSON.stringify(t,(e,n)=>rp(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function tl(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>tl(t[n],e[n])):!1}function uk(t,e){if(t===e)return t;const n=Mv(t)&&Mv(e);if(n||rp(t)&&rp(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&t[d]===void 0&&e[d]===void 0?(a[d]=void 0,c++):(a[d]=uk(t[d],e[d]),a[d]===t[d]&&t[d]!==void 0&&c++)}return s===o&&c===s?t:a}return e}function Mv(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function rp(t){if(!$v(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!$v(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function $v(t){return Object.prototype.toString.call(t)==="[object Object]"}function LO(t){return new Promise(e=>{setTimeout(e,t)})}function IO(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?uk(t,e):e}function DO(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function MO(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var ag=Symbol();function dk(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===ag?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var qs,Yr,ho,mx,$O=(mx=class extends wd{constructor(){super();ye(this,qs);ye(this,Yr);ye(this,ho);re(this,ho,e=>{if(!xd&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Yr)||this.setEventListener(j(this,ho))}onUnsubscribe(){var e;this.hasListeners()||((e=j(this,Yr))==null||e.call(this),re(this,Yr,void 0))}setEventListener(e){var n;re(this,ho,e),(n=j(this,Yr))==null||n.call(this),re(this,Yr,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){j(this,qs)!==e&&(re(this,qs,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof j(this,qs)=="boolean"?j(this,qs):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},qs=new WeakMap,Yr=new WeakMap,ho=new WeakMap,mx),hk=new $O,fo,Jr,po,gx,FO=(gx=class extends wd{constructor(){super();ye(this,fo,!0);ye(this,Jr);ye(this,po);re(this,po,e=>{if(!xd&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){j(this,Jr)||this.setEventListener(j(this,po))}onUnsubscribe(){var e;this.hasListeners()||((e=j(this,Jr))==null||e.call(this),re(this,Jr,void 0))}setEventListener(e){var n;re(this,po,e),(n=j(this,Jr))==null||n.call(this),re(this,Jr,e(this.setOnline.bind(this)))}setOnline(e){j(this,fo)!==e&&(re(this,fo,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return j(this,fo)}},fo=new WeakMap,Jr=new WeakMap,po=new WeakMap,gx),Tu=new FO;function UO(){let t,e;const n=new Promise((s,i)=>{t=s,e=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}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function BO(t){return Math.min(1e3*2**t,3e4)}function fk(t){return(t??"online")==="online"?Tu.isOnline():!0}var pk=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function xh(t){return t instanceof pk}function mk(t){let e=!1,n=0,r=!1,s;const i=UO(),o=g=>{var x;r||(f(new pk(g)),(x=t.abort)==null||x.call(t))},a=()=>{e=!0},l=()=>{e=!1},c=()=>hk.isFocused()&&(t.networkMode==="always"||Tu.isOnline())&&t.canRun(),u=()=>fk(t.networkMode)&&t.canRun(),d=g=>{var x;r||(r=!0,(x=t.onSuccess)==null||x.call(t,g),s==null||s(),i.resolve(g))},f=g=>{var x;r||(r=!0,(x=t.onError)==null||x.call(t,g),s==null||s(),i.reject(g))},p=()=>new Promise(g=>{var x;s=y=>{(r||c())&&g(y)},(x=t.onPause)==null||x.call(t)}).then(()=>{var g;s=void 0,r||(g=t.onContinue)==null||g.call(t)}),m=()=>{if(r)return;let g;const x=n===0?t.initialPromise:void 0;try{g=x??t.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(d).catch(y=>{var _;if(r)return;const v=t.retry??(xd?0:3),w=t.retryDelay??BO,S=typeof w=="function"?w(n,y):w,k=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(e||!k){f(y);return}n++,(_=t.onFail)==null||_.call(t,n,y),LO(S).then(()=>c()?void 0:p()).then(()=>{e?f(y):m()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),i)}}var zO=t=>setTimeout(t,0);function VO(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=zO;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var _t=VO(),Gs,yx,gk=(yx=class{constructor(){ye(this,Gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),RO(this.gcTime)&&re(this,Gs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(xd?1/0:5*60*1e3))}clearGcTimeout(){j(this,Gs)&&(clearTimeout(j(this,Gs)),re(this,Gs,void 0))}},Gs=new WeakMap,yx),mo,Ys,en,Js,yt,xl,Zs,_n,dr,vx,WO=(vx=class extends gk{constructor(e){super();ye(this,_n);ye(this,mo);ye(this,Ys);ye(this,en);ye(this,Js);ye(this,yt);ye(this,xl);ye(this,Zs);re(this,Zs,!1),re(this,xl,e.defaultOptions),this.setOptions(e.options),this.observers=[],re(this,Js,e.client),re(this,en,j(this,Js).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,re(this,mo,KO(this.options)),this.state=e.state??j(this,mo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=j(this,yt))==null?void 0:e.promise}setOptions(e){this.options={...j(this,xl),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,en).remove(this)}setData(e,n){const r=IO(this.state.data,e,this.options);return pt(this,_n,dr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){pt(this,_n,dr).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=j(this,yt))==null?void 0:r.promise;return(s=j(this,yt))==null||s.cancel(e),n?n.then(Sn).catch(Sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,mo))}isActive(){return this.observers.some(e=>OO(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ag||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>np(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!NO(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=j(this,yt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=j(this,yt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),j(this,en).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(j(this,yt)&&(j(this,Zs)?j(this,yt).cancel({revert:!0}):j(this,yt).cancelRetry()),this.scheduleGc()),j(this,en).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,_n,dr).call(this,{type:"invalidate"})}fetch(e,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,yt))return j(this,yt).continueRetry(),j(this,yt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(re(this,Zs,!0),r.signal)})},i=()=>{const f=dk(this.options,n),m=(()=>{const g={client:j(this,Js),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return re(this,Zs,!1),this.options.persister?this.options.persister(f,m,this):f(m)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,Js),state:this.state,fetchFn:i};return s(f),f})();(c=this.options.behavior)==null||c.onFetch(a,this),re(this,Ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&pt(this,_n,dr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,m,g,x;xh(f)&&f.silent||pt(this,_n,dr).call(this,{type:"error",error:f}),xh(f)||((m=(p=j(this,en).config).onError)==null||m.call(p,f,this),(x=(g=j(this,en).config).onSettled)==null||x.call(g,this.state.data,f,this)),this.scheduleGc()};return re(this,yt,mk({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,m,g,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){l(y);return}(m=(p=j(this,en).config).onSuccess)==null||m.call(p,f,this),(x=(g=j(this,en).config).onSettled)==null||x.call(g,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{pt(this,_n,dr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,_n,dr).call(this,{type:"pause"})},onContinue:()=>{pt(this,_n,dr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),j(this,yt).start()}},mo=new WeakMap,Ys=new WeakMap,en=new WeakMap,Js=new WeakMap,yt=new WeakMap,xl=new WeakMap,Zs=new WeakMap,_n=new WeakSet,dr=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...HO(r.data,this.options),fetchMeta:e.meta??null};case"success":return re(this,Ys,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return xh(s)&&s.revert&&j(this,Ys)?{...j(this,Ys),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,...e.state}}};this.state=n(this.state),_t.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,en).notify({query:this,type:"updated",action:e})})},vx);function HO(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fk(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function KO(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 Kn,wx,qO=(wx=class extends wd{constructor(e={}){super();ye(this,Kn);this.config=e,re(this,Kn,new Map)}build(e,n,r){const s=n.queryKey,i=n.queryHash??og(s,n);let o=this.get(i);return o||(o=new WO({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){j(this,Kn).has(e.queryHash)||(j(this,Kn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=j(this,Kn).get(e.queryHash);n&&(e.destroy(),n===e&&j(this,Kn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){_t.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return j(this,Kn).get(e)}getAll(){return[...j(this,Kn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Iv(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Iv(e,r)):n}notify(e){_t.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){_t.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_t.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Kn=new WeakMap,wx),qn,St,Qs,Gn,Fr,xx,GO=(xx=class extends gk{constructor(e){super();ye(this,Gn);ye(this,qn);ye(this,St);ye(this,Qs);this.mutationId=e.mutationId,re(this,St,e.mutationCache),re(this,qn,[]),this.state=e.state||YO(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){j(this,qn).includes(e)||(j(this,qn).push(e),this.clearGcTimeout(),j(this,St).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){re(this,qn,j(this,qn).filter(n=>n!==e)),this.scheduleGc(),j(this,St).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){j(this,qn).length||(this.state.status==="pending"?this.scheduleGc():j(this,St).remove(this))}continue(){var e;return((e=j(this,Qs))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,l,c,u,d,f,p,m,g,x,y,v,w,S,k,_,E,T;const n=()=>{pt(this,Gn,Fr).call(this,{type:"continue"})};re(this,Qs,mk({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(A,N)=>{pt(this,Gn,Fr).call(this,{type:"failed",failureCount:A,error:N})},onPause:()=>{pt(this,Gn,Fr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,St).canRun(this)}));const r=this.state.status==="pending",s=!j(this,Qs).canStart();try{if(r)n();else{pt(this,Gn,Fr).call(this,{type:"pending",variables:e,isPaused:s}),await((o=(i=j(this,St).config).onMutate)==null?void 0:o.call(i,e,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));N!==this.state.context&&pt(this,Gn,Fr).call(this,{type:"pending",context:N,variables:e,isPaused:s})}const A=await j(this,Qs).start();return await((u=(c=j(this,St).config).onSuccess)==null?void 0:u.call(c,A,e,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,A,e,this.state.context)),await((m=(p=j(this,St).config).onSettled)==null?void 0:m.call(p,A,null,this.state.variables,this.state.context,this)),await((x=(g=this.options).onSettled)==null?void 0:x.call(g,A,null,e,this.state.context)),pt(this,Gn,Fr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((v=(y=j(this,St).config).onError)==null?void 0:v.call(y,A,e,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,A,e,this.state.context)),await((_=(k=j(this,St).config).onSettled)==null?void 0:_.call(k,void 0,A,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,A,e,this.state.context)),A}finally{pt(this,Gn,Fr).call(this,{type:"error",error:A})}}finally{j(this,St).runNext(this)}}},qn=new WeakMap,St=new WeakMap,Qs=new WeakMap,Gn=new WeakSet,Fr=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_t.batch(()=>{j(this,qn).forEach(r=>{r.onMutationUpdate(e)}),j(this,St).notify({mutation:this,type:"updated",action:e})})},xx);function YO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}
156var gr,En,bl,bx,JO=(bx=class extends wd{constructor(e={}){super();ye(this,gr);ye(this,En);ye(this,bl);this.config=e,re(this,gr,new Set),re(this,En,new Map),re(this,bl,0)}build(e,n,r){const s=new GO({mutationCache:this,mutationId:++Bl(this,bl)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){j(this,gr).add(e);const n=hc(e);if(typeof n=="string"){const r=j(this,En).get(n);r?r.push(e):j(this,En).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(j(this,gr).delete(e)){const n=hc(e);if(typeof n=="string"){const r=j(this,En).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&j(this,En).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=hc(e);if(typeof n=="string"){const r=j(this,En).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=hc(e);if(typeof n=="string"){const s=(r=j(this,En).get(n))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_t.batch(()=>{j(this,gr).forEach(e=>{this.notify({type:"removed",mutation:e})}),j(this,gr).clear(),j(this,En).clear()})}getAll(){return Array.from(j(this,gr))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Dv(n,r))}findAll(e={}){return this.getAll().filter(n=>Dv(e,n))}notify(e){_t.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return _t.batch(()=>Promise.all(e.map(n=>n.continue().catch(Sn))))}},gr=new WeakMap,En=new WeakMap,bl=new WeakMap,bx);function hc(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Fv(t){return{onFetch:(e,n)=>{var u,d,f,p,m;const r=e.options,s=(f=(d=(u=e.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((p=e.state.data)==null?void 0:p.pages)||[],o=((m=e.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const x=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},y=dk(e.options,e.fetchOptions),v=async(w,S,k)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const F={client:e.client,queryKey:e.queryKey,pageParam:S,direction:k?"backward":"forward",meta:e.options.meta};return x(F),F})(),T=await y(E),{maxPages:A}=e.options,N=k?MO:DO;return{pages:N(w.pages,T,A),pageParams:N(w.pageParams,S,A)}};if(s&&i.length){const w=s==="backward",S=w?ZO:Uv,k={pages:i,pageParams:o},_=S(r,k);a=await v(k,_,w)}else{const w=t??i.length;do{const S=l===0?o[0]??r.initialPageParam:Uv(r,a);if(l>0&&S==null)break;a=await v(a,S),l++}while(l<w)}return a};e.options.persister?e.fetchFn=()=>{var g,x;return(x=(g=e.options).persister)==null?void 0:x.call(g,c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=c}}}function Uv(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function ZO(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Ue,Zr,Qr,go,yo,Xr,vo,wo,Sx,QO=(Sx=class{constructor(t={}){ye(this,Ue);ye(this,Zr);ye(this,Qr);ye(this,go);ye(this,yo);ye(this,Xr);ye(this,vo);ye(this,wo);re(this,Ue,t.queryCache||new qO),re(this,Zr,t.mutationCache||new JO),re(this,Qr,t.defaultOptions||{}),re(this,go,new Map),re(this,yo,new Map),re(this,Xr,0)}mount(){Bl(this,Xr)._++,j(this,Xr)===1&&(re(this,vo,hk.subscribe(async t=>{t&&(await this.resumePausedMutations(),j(this,Ue).onFocus())})),re(this,wo,Tu.subscribe(async t=>{t&&(await this.resumePausedMutations(),j(this,Ue).onOnline())})))}unmount(){var t,e;Bl(this,Xr)._--,j(this,Xr)===0&&((t=j(this,vo))==null||t.call(this),re(this,vo,void 0),(e=j(this,wo))==null||e.call(this),re(this,wo,void 0))}isFetching(t){return j(this,Ue).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return j(this,Zr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=j(this,Ue).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=j(this,Ue).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(np(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return j(this,Ue).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=j(this,Ue).get(r.queryHash),i=s==null?void 0:s.state.data,o=jO(e,i);if(o!==void 0)return j(this,Ue).build(this,r).setData(o,{...n,manual:!0})}
156setQueriesData(t,e,n){return _t.batch(()=>j(this,Ue).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=j(this,Ue).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=j(this,Ue);_t.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=j(this,Ue);return _t.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=_t.batch(()=>j(this,Ue).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(Sn).catch(Sn)}invalidateQueries(t,e={}){return _t.batch(()=>(j(this,Ue).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=_t.batch(()=>j(this,Ue).findAll(t).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(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=j(this,Ue).build(this,e);return n.isStaleByTime(np(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Sn).catch(Sn)}fetchInfiniteQuery(t){return t.behavior=Fv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Sn).catch(Sn)}ensureInfiniteQueryData(t){return t.behavior=Fv(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Tu.isOnline()?j(this,Zr).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Ue)}getMutationCache(){return j(this,Zr)}getDefaultOptions(){return j(this,Qr)}setDefaultOptions(t){re(this,Qr,t)}setQueryDefaults(t,e){j(this,go).set(el(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...j(this,go).values()],n={};return e.forEach(r=>{tl(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){j(this,yo).set(el(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...j(this,yo).values()],n={};return e.forEach(r=>{tl(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...j(this,Qr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=og(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===ag&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...j(this,Qr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){j(this,Ue).clear(),j(this,Zr).clear()}},Ue=new WeakMap,Zr=new WeakMap,Qr=new WeakMap,go=new WeakMap,yo=new WeakMap,Xr=new WeakMap,vo=new WeakMap,wo=new WeakMap,Sx),XO=b.createContext(void 0),e2=({client:t,children:e})=>(b.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),h.jsx(XO.Provider,{value:t,children:e}));/**
157 * @remix-run/router v1.23.0
158 *
159 * Copyright (c) Remix Software Inc.
160 *
161 * This source code is licensed under the MIT license found in the
162 * LICENSE.md file in the root directory of this source tree.
163 *
164 * @license MIT
165 */function nl(){return nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nl.apply(this,arguments)}var ns;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ns||(ns={}));const Bv="popstate";function t2(t){t===void 0&&(t={});function e(r,s){let{pathname:i,search:o,hash:a}=r.location;return sp("",{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:Cu(s)}return r2(e,n,null,t)}function Ze(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function yk(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function n2(){return Math.random().toString(36).substr(2,8)}function zv(t,e){return{usr:t.state,key:t.key,idx:e}}function sp(t,e,n,r){return n===void 0&&(n=null),nl({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Bo(e):e,{state:n,key:e&&e.key||r||n2()})}function Cu(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Bo(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function r2(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=ns.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(nl({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=ns.Pop;let x=u(),y=x==null?null:x-c;c=x,l&&l({action:a,location:g.location,delta:y})}function f(x,y){a=ns.Push;let v=sp(g.location,x,y);c=u()+1;let w=zv(v,c),S=g.createHref(v);try{o.pushState(w,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(S)}i&&l&&l({action:a,location:g.location,delta:1})}function p(x,y){a=ns.Replace;let v=sp(g.location,x,y);c=u();let w=zv(v,c),S=g.createHref(v);o.replaceState(w,"",S),i&&l&&l({action:a,location:g.location,delta:0})}function m(x){let y=s.location.origin!=="null"?s.location.origin:s.location.href,v=typeof x=="str
165ing"?x:Cu(x);return v=v.replace(/ $/,"%20"),Ze(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let g={get action(){return a},get location(){return t(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Bv,d),l=x,()=>{s.removeEventListener(Bv,d),l=null}},createHref(x){return e(s,x)},createURL:m,encodeLocation(x){let y=m(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(x){return o.go(x)}};return g}var Vv;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Vv||(Vv={}));function s2(t,e,n){return n===void 0&&(n="/"),i2(t,e,n,!1)}function i2(t,e,n,r){let s=typeof e=="string"?Bo(e):e,i=lg(s.pathname||"/",n);if(i==null)return null;let o=vk(t);o2(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=y2(i);a=m2(o[l],c,r)}return a}function vk(t,e,n,r){e===void 0&&(e=[]),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("/")&&(Ze(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 c=fs([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Ze(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),vk(i.children,e,u,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:f2(c,i.index),routesMeta:u})};return t.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of wk(i.path))s(i,o,l)}),e}function wk(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=wk(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function o2(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:p2(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const a2=/^:[\w-]+$/,l2=3,c2=2,u2=1,d2=10,h2=-2,Wv=t=>t==="*";function f2(t,e){let n=t.split("/"),r=n.length;return n.some(Wv)&&(r+=h2),e&&(r+=c2),n.filter(s=>!Wv(s)).reduce((s,i)=>s+(a2.test(i)?l2:i===""?u2:d2),r)}function p2(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function m2(t,e,n){let{routesMeta:r}=t,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?e:e.slice(i.length)||"/",d=Hv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Hv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 9,180 bytes, lines 165-174
165Object.assign(s,d.params),o.push({params:s,pathname:fs([i,d.pathname]),pathnameBase:b2(fs([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=fs([i,d.pathnameBase]))}return o}function Hv(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=g2(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let g=a[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=a[d];return p&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:t}}function g2(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),yk(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function y2(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return yk(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function lg(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function v2(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?Bo(t):t;return{pathname:n?n.startsWith("/")?n:w2(n,e):e,search:S2(r),hash:k2(s)}}function w2(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function bh(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 x2(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function xk(t,e){let n=x2(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bk(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=Bo(t):(s=nl({},t),Ze(!s.pathname||!s.pathname.includes("?"),bh("?","pathname","search",s)),Ze(!s.pathname||!s.pathname.includes("#"),bh("#","pathname","hash",s)),Ze(!s.search||!s.search.includes("#"),bh("#","search","hash",s)));let i=t===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=e.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;s.pathname=f.join("/")}a=d>=0?e[d]:"/"}let l=v2(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const fs=t=>t.join("/").replace(/\/\/+/g,"/"),b2=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),S2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,k2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function _2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Sk=["post","put","patch","delete"];new Set(Sk);const E2=["get",...Sk];new Set(E2);/**
166 * React Router v6.30.1
167 *
168 * Copyright (c) Remix Software Inc.
169 *
170 * This source code is licensed under the MIT license found in the
171 * LICENSE.md file in the root directory of this source tree.
172 *
173 * @license MIT
174 */function rl(){return rl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rl.apply(this,arguments)}const cg=b.createContext(null),T2=b.createContext(null),hi=b.createContext(null),bd=b.createContext(null),fi=b.createContext({outlet:null,matches:[],isDataRoute:!1}),kk=b.createContext(null);function C2(t,e){let{relative:n}=e===void 0?{}:e;Nl()||Ze(!1);let{basename:r,navigator:s}=b.useContext(hi),{hash:i,pathname:o,search:a}=Ek(t,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:fs([r,o])),s.createHref({pathname:l,search:a,hash:i})}function Nl(){return b.useContext(bd)!=null}function pi(){return Nl()||Ze(!1),b.useContext(bd).location}function _k(t){b.useContext(hi).static||b.useLayoutEffect(t)}function Sd(){let{isDataRoute:t}=b.useContext(fi);return t?U2():A2()}function A2(){Nl()||Ze(!1);let t=b.useContext(cg),{basename:e,future:n,navigator:r}=b.useContext(hi),{matches:s}=b.useContext(fi),{pathname:i}=pi(),o=JSON.stringify(xk(s,n.v7_relativeSplatPath)),a=b.useRef(!1);return _k(()=>{a.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=bk(c,JSON.parse(o),i,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:fs([e,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[e,r,o,i,t])}function Ek(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=b.useContext(hi),{matches:s}=b.useContext(fi),{pathname:i}=pi(),o=JSON.stringify(xk(s,r.v7_relativeSplatPath));return b.useMemo(()=>bk(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function P2(t,e){return j2(t,e)}function j2(t,e,n,r){Nl()||Ze(!1);let{navigator:s}=b.useContext(hi),{matches:i}=b.useContext(fi),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=pi(),u;if(e){var d;let x=typeof e=="string"?Bo(e):e;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Ze(!1),u=x}else u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let m=s2(t,{pathname:p}),g=I2(m&&m.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:fs([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:fs([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return e&&g?b.createElement(bd.Provider,{value:{location:rl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ns.Pop}},g):g}function R2(){let t=F2(),e=_2(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},e),n?b.createElement("pre",{style:s},n):null,null)}const N2=b.createElement(R2,null);class O2 extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?b.createElement(fi.Provider,{value:this.props.routeContext},b.createElement(kk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function L2(t){let{routeContext:e,match:n,children:r}=t,s=b.useContext(cg);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(fi.Provider,{value:e},r)}function I2(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(s=n)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Ze(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let p,m=!1,g=null,x=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||N2,l&&(c<0&&f===0?(m=!0,x=null):c===f&&(m=!0,x=d.route.hydrateFallbackElement||null)));let y=e.concat(o.slice(0,f+1)),v=()=>{let w;return p?w=g:m?w=x:d.route.Component?w=b.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,b.createElement(L2,{match:d,routeC
174ontext:{outlet:u,matches:y,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(O2,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var Tk=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Tk||{}),Au=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Au||{});function D2(t){let e=b.useContext(cg);return e||Ze(!1),e}function M2(t){let e=b.useContext(T2);return e||Ze(!1),e}function $2(t){let e=b.useContext(fi);return e||Ze(!1),e}function Ck(t){let e=$2(),n=e.matches[e.matches.length-1];return n.route.id||Ze(!1),n.route.id}function F2(){var t;let e=b.useContext(kk),n=M2(Au.UseRouteError),r=Ck(Au.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function U2(){let{router:t}=D2(Tk.UseNavigateStable),e=Ck(Au.UseNavigateStable),n=b.useRef(!1);return _k(()=>{n.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,rl({fromRouteId:e},i)))},[t,e])}function B2(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Zt(t){Ze(!1)}function z2(t){let{basename:e="/",children:n=null,location:r,navigationType:s=ns.Pop,navigator:i,static:o=!1,future:a}=t;Nl()&&Ze(!1);let l=e.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:o,future:rl({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Bo(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,g=b.useMemo(()=>{let x=lg(u,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:p,key:m},navigationType:s}},[l,u,d,f,p,m,s]);return g==null?null:b.createElement(hi.Provider,{value:c},b.createElement(bd.Provider,{children:n,value:g}))}function V2(t){let{children:e,location:n}=t;return P2(ip(e),n)}new Promise(()=>{});function ip(t,e){e===void 0&&(e=[]);let n=[];return b.Children.forEach(t,(r,s)=>{if(!b.isValidElement(r))return;let i=[...e,s];if(r.type===b.Fragment){n.push.apply(n,ip(r.props.children,i));return}r.type!==Zt&&Ze(!1),!r.props.index||!r.props.children||Ze(!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=ip(r.props.children,i)),n.push(o)}),n}/**
175 * React Router DOM v6.30.1
176 *
177 * Copyright (c) Remix Software Inc.
178 *
179 * This source code is licensed under the MIT license found in the
180 * LICENSE.md file in the root directory of this source tree.
181 *
182 * @license MIT
183 */function op(){return op=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},op.apply(this,arguments)}function W2(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function H2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function K2(t,e){return t.button===0&&(!e||e==="_self")&&!H2(t)}const q2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],G2="6";try{window.__reactRouterVersion=G2}catch{}const Y2="startTransition",Kv=Ox[Y2];function J2(t){let{basename:e,children:n,future:r,window:s}=t,i=b.useRef();i.current==null&&(i.current=t2({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&Kv?Kv(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>B2(r),[r]),b.createElement(z2,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Z2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rn=b.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,f=W2(e,q2),{basename:p}=b.useContext(hi),m,g=!1;if(typeof c=="string"&&Q2.test(c)&&(m=c,Z2))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),k=lg(S.pathname,p);S.origin===w.origin&&k!=null?c=k+S.search+S.hash:g=!0}catch{}let x=C2(c,{relative:s}),y=X2(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:s,viewTransition:d});function v(w){r&&r(w),w.defaultPrevented||y(w)}return b.createElement("a",op({},f,{href:m||x,onClick:g||i?r:v,ref:n,target:l}))});var qv;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(qv||(qv={}));var Gv;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Gv||(Gv={}));function X2(t,e){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=e===void 0?{}:e,l=Sd(),c=pi(),u=Ek(t,{relative:o});return b.useCallback(d=>
183{if(K2(d,n)){d.preventDefault();let f=r!==void 0?r:Cu(c)===Cu(u);l(t,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,u,r,s,n,t,i,o,a])}const eL=()=>{const{pathname:t}=pi();return b.useEffect(()=>{window.scrollTo(0,0)},[t]),null},tL="360e7432-13fe-452a-a547-e5969b148842",nL=`https://direct-book.com/properties/${tL}`,ug=()=>{window.open(nL,"_blank","noopener,noreferrer")},Yv=[{label:"Speisekarte",target:"/speisekarte"},{label:"DEIN EVENT",target:"#events"},{label:"Hochzeit",target:"/hochzeit"},{label:"LUI-Veranstaltungen",target:"/veranstaltungen"},{label:"Übernachtung",target:"/uebernachtung"},{label:"Kontakt",target:"#kontakt"}],Ak=()=>{const[t,e]=b.useState(!1),[n,r]=b.useState(!1),s=pi(),i=Sd(),o=s.pathname==="/";b.useEffect(()=>{const u=()=>e(window.scrollY>60);return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]);const a=u=>{var d;r(!1),u.startsWith("/")?i(u):o?(d=document.querySelector(u))==null||d.scrollIntoView({behavior:"smooth"}):i("/"+u)},l=()=>{var u;r(!1),o?(u=document.querySelector("#reservieren"))==null||u.scrollIntoView({behavior:"smooth"}):i("/#reservieren")},c=()=>{r(!1),ug()};return h.jsxs("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${t?"bg-background/95 backdrop-blur-md border-b border-foreground
183/10 py-3":"bg-transparent py-5"}`,children:[h.jsxs("div",{className:"container mx-auto flex items-center justify-between px-5",children:[h.jsx("a",{href:"/",onClick:u=>{u.preventDefault(),o?window.scrollTo({top:0,behavior:"smooth"}):i("/")},className:`transition-colors duration-300 ${t?"text-foreground":"text-primary-foreground"}`,children:h.jsx("span",{className:"font-headline text-2xl md:text-3xl tracking-tighter",children:"LUI."})}),h.jsx("ul",{className:"hidden md:flex items-center gap-10",children:Yv.map(u=>h.jsx("li",{children:h.jsx("button",{onClick:()=>a(u.target),className:`font-body text-xs tracking-[0.15em] uppercase transition-colors duration-300 ${t?"text-foreground/70 hover:text-foreground":"text-primary-foreground/80 hover:text-primary-foreground"}`,children:u.label})},u.label))}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("button",{onClick:c,className:`hidden md:inline-flex text-xs tracking-[0.15em] uppercase px-6 py-2.5 transition-all duration-300 border ${t?"border-foreground text-foreground hover:bg-foreground hover:text-background":"border-primary-foreground/50 text-primary-foreground hover:bg-primary-foreground hover:text-foreground"}`,children:"Zimmer buchen"}),h.jsx("button",{onClick:l,className:`hidden md:inline-flex text-xs tracking-[0.15em] uppercase px-6 py-2.5 transition-all duration-300 ${t?"btn-invert":"border border-primary-foreground/50 text-primary-foreground hover:bg-primary-foreground hover:text-foreground"}`,children:"Tisch reservieren"}),h.jsx("button",{onClick:()=>r(!n),className:`md:hidden flex items-center gap-2 transition-colors ${t?"text-foreground":"text-primary-foreground"}`,"aria-label":"Menü",children:n?h.jsx(S1,{className:"w-5 h-5"}):h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-lg leading-none",children:"+"}),h.jsx("span",{className:"font-body text-xs tracking-[0.15em] uppercase",children:"Menü"})]})})]})]}),n&&h.jsx("div",{className:`md:hidden border-t mt-2 ${t?"bg-background/95 backdrop-blur-md border-foreground
183/10":"bg-foreground/90 backdrop-blur-md border-primary-foreground/10"}`,children:h.jsxs("ul",{className:"flex flex-col py-8 px-5 gap-1",children:[Yv.map(u=>h.jsx("li",{children:h.jsx("button",{onClick:()=>a(u.target),className:`w-full text-left font-body text-sm tracking-[0.15em] uppercase py-3 transition-colors ${t?"text-foreground/70 hover:text-foreground":"text-primary-foreground/70 hover:text-primary-foreground"}`,children:u.label})},u.label)),h.jsx("li",{className:"mt-4",children:h.jsx("button",{onClick:c,className:`w-full text-sm tracking-[0.15em] uppercase px-6 py-3 transition-all border ${t?"border-foreground text-foreground hover:bg-foreground hover:text-background":"border-primary-foreground text-primary-foreground hover:bg-primary-foreground hover:text-foreground"}`,children:"Zimmer buchen"})}),h.jsx("li",{className:"mt-2",children:h.jsx("button",{onClick:l,className:`w-full text-sm tracking-[0.15em] uppercase px-6 py-3 transition-all ${t?"btn-invert":"border border-primary-foreground text-primary-foreground hover:bg-primary-foreground hover:text-foreground"}`,children:"Tisch reservieren"})})]})})]})},dg=b.createContext({});function hg(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const Pk=typeof window<"u",jk=Pk?b.useLayoutEffect:b.useEffect,kd=b.createContext(null);function fg(t,e){t.indexOf(e)===-1&&t.push(e)}function Pu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const sr=(t,e,n)=>n>e?e:n<t?t:n;let _d=()=>{},Po=()=>{};const Tr={},Rk=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Nk(t){return typeof t=="object"&&t!==null}const Ok=t=>/^0[^.\s]+$/u.test(t);function Lk(t){let e;return()=>(e===void 0&&(e=t()),e)}const ln=t=>t,rL=(t,e)=>n=>e(t(n)),Ol=(...t)=>t.reduce(rL),sl=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class pg{constructor(){this.subscriptions=[]}add(e){return fg(this.subscriptions,e),()=>Pu(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cn=t=>t*1e3,on=t=>t/1e3;function Ik(t,e){return e?t*(1e3/e):0}const Dk=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,sL=1e-7,iL=12;function oL(t,e,n,r,s){let i,o,a=0;do o=e+(n-e)/2,i=Dk(o,r,s)-t,i>0?n=o:e=o;while(Math.abs(i)>sL&&++a<iL);return o}function Ll(t,e,n,r){if(t===e&&n===r)return ln;const s=i=>oL(i,0,1,t,n);return i=>i===0||i===1?i:Dk(s(i),e,r)}const Mk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$k=t=>e=>1-t(1-e),Fk=Ll(.33,1.53,.69,.99),mg=$k(Fk),Uk=Mk(mg),Bk=t=>(t*=2)<1?.5*mg(t):.5*(2-Math.pow(2,-10*(t-1))),gg=t=>1-Math.sin(Math.acos(t)),zk=$k(gg),Vk=Mk(gg),aL=Ll(.42,0,1,1),lL=Ll(0,0,.58,1),Wk=Ll(.42,0,.58,1),cL=t=>Array.isArray(t)&&typeof t[0]!="number",Hk=t=>Array.isArray(t)&&typeof t[0]=="number",Jv={linear:ln,easeIn:aL,easeInOut:Wk,easeOut:lL,circIn:gg,circInOut:Vk,circOut:zk,backIn:mg,backInOut:Uk,backOut:Fk,anticipate:Bk},uL=t=>typeof t=="string",Zv=t=>{if(Hk(t)){Po(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,r,s]=t;return Ll(e,n,r,s)}else if(uL(t))return Po(Jv[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Jv[t];return t},fc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Qv={value:null,addProjectionMetrics:null};function dL(t,e){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),t()),l++,d(a)}const u={schedule:(d,f=!1,p=!1)=>{const g=p&&s?n:r;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(c),e&&Qv.value&&Qv.value.frameloop[e].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const hL=40;function Kk(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=fc.reduce((w,S)=>(w[S]=dL(i,e?S:void 0),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,g=()=>{const w=Tr.useManualTiming?s.timestamp:performance.now();n=!1,Tr.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(w-s.timestamp,hL),1)),s.timestamp=w,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(r=!1,t(g))},x=()=>{n=!0,r=!0,s.isProcessing||t(g)};return{schedule:fc.reduce((w,S)=>{const k=o[S];return w[S]=(_,E=!1,T=!1)=>(n||x(),k.schedule(_,E,T)),w},{}),cancel:w=>{for(let S=0;S<fc.length;S++)o[fc[S]].cancel(w)},state:s,steps:o}}const{schedule:Te,cancel:bs,state:ut,steps:Sh}=Kk(typeof requestAnimationFrame<"u"?requestAnimationFrame:ln,!0);let Wc;function fL(){Wc=void 0}const Et={now:()=>(Wc===void 0&&Et.set(ut.isProcessing||Tr.useManualTiming?ut.timestamp:performance.now()),Wc),set:t=>{Wc=t,queueMicrotask(fL)}},qk=t=>e=>typeof e=="string"&&e.startsWith(t),Gk=qk("--"),pL=qk("var(--"),yg=t=>pL(t)?mL.test(t.split("/*")[0].trim()):!1,mL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Xv(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const zo={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},il={...zo,transform:t=>sr(0,1,t)},pc={...zo,default:1},Aa=t=>Math.round(t*1e5)/1e5,vg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gL(t){return t==null}const yL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wg=(t,e)=>n=>!!(typeof n=="string"&&yL.test(n)&&n.startsWith(t)||e&&!gL(n)&&Object.prototype.hasOwnProperty.call(n,e)),Yk=(t,e,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(vg);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},vL=t=>sr(0,255,t),kh={...zo,transform:t=>Math.round(vL(t))},zs={test:wg("rgb","red"),parse:Yk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+kh.transform(t)+", "+kh.transform(e)+", "+kh.transform(n)+", "+Aa(il.transform(r))+")"};function wL(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alph
vendor: 4,202 bytes, line 183
183a:s?parseInt(s,16)/255:1}}const ap={test:wg("#"),parse:wL,transform:zs.transform},Il=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ur=Il("deg"),tr=Il("%"),V=Il("px"),xL=Il("vh"),bL=Il("vw"),e0={...tr,parse:t=>tr.parse(t)/100,transform:t=>tr.transform(t*100)},Ki={test:wg("hsl","hue"),parse:Yk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+tr.transform(Aa(e))+", "+tr.transform(Aa(n))+", "+Aa(il.transform(r))+")"},Ge={test:t=>zs.test(t)||ap.test(t)||Ki.test(t),parse:t=>zs.test(t)?zs.parse(t):Ki.test(t)?Ki.parse(t):ap.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?zs.transform(t):Ki.transform(t),getAnimatableNone:t=>{const e=Ge.parse(t);return e.alpha=0,Ge.transform(e)}},SL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kL(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(vg))==null?void 0:e.length)||0)+(((n=t.match(SL))==null?void 0:n.length)||0)>0}const Jk="number",Zk="color",_L="var",EL="var(",t0="${}",TL=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ol(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=e.replace(TL,l=>(Ge.test(l)?(r.color.push(i),s.push(Zk),n.push(Ge.parse(l))):l.startsWith(EL)?(r.var.push(i),s.push(_L),n.push(l)):(r.number.push(i),s.push(Jk),n.push(parseFloat(l))),++i,t0)).split(t0);return{values:n,split:a,indexes:r,types:s}}function Qk(t){return ol(t).values}function Xk(t){const{split:e,types:n}=ol(t),r=e.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=e[o],s[o]!==void 0){const a=n[o];a===Jk?i+=Aa(s[o]):a===Zk?i+=Ge.transform(s[o]):i+=s[o]}return i}}const CL=t=>typeof t=="number"?0:Ge.test(t)?Ge.getAnimatableNone(t):t;function AL(t){const e=Qk(t);return Xk(t)(e.map(CL))}const Nn={test:kL,parse:Qk,createTransformer:Xk,getAnimatableNone:AL};function _h(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function PL({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,i=0,o=0;if(!e)s=i=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=_h(l,a,t+1/3),i=_h(l,a,t),o=_h(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function ju(t,e){return n=>n>0?e:t}const Ie=(t,e,n)=>t+(e-t)*n,Eh=(t,e,n)=>{const r=t*t,s=n*(e*e-r)+r;return s<0?0:Math.sqrt(s)},jL=[ap,zs,Ki],RL=t=>jL.find(e=>e.test(t));function n0(t){const e=RL(t);if(_d(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===Ki&&(n=PL(n)),n}const r0=(t,e)=>{const n=n0(t),r=n0(e);if(!n||!r)return ju(t,e);const s={...n};return i=>(s.red=Eh(n.red,r.red,i),s.green=Eh(n.green,r.green,i),s.blue=Eh(n.blue,r.blue,i),s.alpha=Ie(n.alpha,r.alpha,i),zs.transform(s))},lp=new Set(["none","hidden"]);function NL(t,e){return lp.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function OL(t,e){return n=>Ie(t,e,n)}function xg(t){return typeof t=="number"?OL:typeof t=="string"?yg(t)?ju:Ge.test(t)?r0:DL:Array.isArray(t)?e_:typeof t=="object"?Ge.test(t)?r0:LL:ju}function e_(t,e){const n=[...t],r=n.length,s=t.map((i,o)=>xg(i)(i,e[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function LL(t,e){const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=xg(t[s])(t[s],e[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function IL(t,e){const n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const i=e.types[s],o=t.indexes[i][r[i]],a=t.values[o]??0;n[s]=a,r[i]++}return n}const DL=(t,e)=>{const n=Nn.createTransformer(e),r=ol(t),s=ol(e);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?lp.has(t)&&!s.values.length||lp.has(e)&&!r.values.length?NL(t,e):Ol(e_(IL(r,s),s.values),n):(_d(!0,`Complex values '${t}' and '${e}
183' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ju(t,e))};function t_(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Ie(t,e,n):xg(t)(t,e)}const ML=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>Te.update(e,n),stop:()=>bs(e),now:()=>ut.isProcessing?ut.timestamp:Et.now()}},n_=(t,e,n=10)=>{let r="";const s=Math.max(Math.round(e/n),2);for(let i=0;i<s;i++)r+=Math.round(t(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ru=2e4;function bg(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Ru;)e+=n,r=t.next(e);return e>=Ru?1/0:e}function $L(t,e=100,n){const r=n({...t,keyframes:[0,e]}),s=Math.min(bg(r),Ru);return{type:"keyframes",ease:i=>r.next(s*i).value/e,duration:on(s)}}const FL=5;function r_(t,e,n){const r=Math.max(e-FL,0);return Ik(n-t(r),e-r)}const Oe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Th=.001;function UL({duration:t=Oe.duration,bounce:e=Oe.bounce,velocity:n=Oe.velocity,mass:r=Oe.mass}){let s,i;_d(t<=cn(Oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=sr(Oe.minDamping,Oe.maxDamping,o),t=sr(Oe.minDuration,Oe.maxDuration,on(t)),o<1?(s=c=>{const u=c*o,d=u*t,f=u-n,p=cp(c,o),m=Math.exp(-d);return Th-f/p*m},i=c=>{const d=c*o*t,f=d*n+n,p=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-d),g=cp(Math.pow(c,2),o);return(-s(c)+Th>0?-1:1)*((f-p)*m)/g}):(s=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-Th+u*d},i=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=zL(s,i,a);if(t=cn(t),isNaN(l))return{stiffness:Oe.stiffness,damping:Oe.damping,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:t}}}const BL=12;function zL(t,e,n){let r=n;for(let s=1;s<BL;s++)r=r-t(r)/e(r);return r}function cp(t,e){return t*Math.sqrt(1-e*e)}const VL=["duration","bounce"],WL=["stiffness","damping","mass"];function s0(t,e){return e.some(n=>t[n]!==void 0)}function HL(t){let e={velocity:Oe.velocity,stiffness:Oe.stiffness,damping:Oe.damping,mass:Oe.mass,isResolvedFromDuration:!1,...t};if(!s0(t,WL)&&s0(t,VL))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*sr(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Oe.mass,stiffness:s,damping:i}}else{const n=UL({...t,velocity:0});e={...e,...n,mass:Oe.mass},e.isResolvedFromDuration=!0}return e}function Nu(t=Oe.visualDuration,e=Oe.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=HL({...n,velocity:-on(n.velocity||0)}),m=f||0,g=c/(2*Math.sqrt(l*u)),x=o-i,y=on(Math.sqrt(l/u)),v=Math.abs(x)<5;r||(r=v?Oe.restSpeed.granular:Oe.restSpeed.default),s||(s=v?Oe.restDelta.granular:Oe.restDelta.default);let w;if(g<1){const k=cp(y,g);w=_=>{const E=Math.exp(-g*y*_);return o-E*((m+g*y*x)/k*Math.sin(k*_)+x*Math.cos(k*_))}}else if(g===1)w=k=>o-Math.exp(-y*k)*(x+(m+y*x)*k);
vendor: 9,682 bytes, line 183
183else{const k=y*Math.sqrt(g*g-1);w=_=>{const E=Math.exp(-g*y*_),T=Math.min(k*_,300);return o-E*((m+g*y*x)*Math.sinh(T)+k*x*Math.cosh(T))/k}}const S={calculatedDuration:p&&d||null,next:k=>{const _=w(k);if(p)a.done=k>=d;else{let E=k===0?m:0;g<1&&(E=k===0?cn(m):r_(w,k,_));const T=Math.abs(E)<=r,A=Math.abs(o-_)<=s;a.done=T&&A}return a.value=a.done?o:_,a},toString:()=>{const k=Math.min(bg(S),Ru),_=n_(E=>S.next(k*E).value,k,30);return k+"ms "+_},toTransition:()=>{}};return S}Nu.applyToOptions=t=>{const e=$L(t,100,Nu);return t.ease=e.ease,t.duration=cn(e.duration),t.type="keyframes",t};function up({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},p=T=>a!==void 0&&T<a||l!==void 0&&T>l,m=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let g=n*e;const x=d+g,y=o===void 0?x:o(x);y!==x&&(g=y-d);const v=T=>-g*Math.exp(-T/r),w=T=>y+v(T),S=T=>{const A=v(T),N=w(T);f.done=Math.abs(A)<=c,f.value=f.done?y:N};let k,_;const E=T=>{p(f.value)&&(k=T,_=Nu({keyframes:[f.value,m(f.value)],velocity:r_(w,T,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:T=>{let A=!1;return!_&&k===void 0&&(A=!0,S(T),E(T)),k!==void 0&&T>=k?_.next(T-k):(!A&&S(T),f)}}}function KL(t,e,n){const r=[],s=n||Tr.mix||t_,i=t.length-1;for(let o=0;o<i;o++){let a=s(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||ln:e;a=Ol(l,a)}r.push(a)}return r}function qL(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const i=t.length;if(Po(i===e.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=KL(e,r,s),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=sl(t[d],t[d+1],u);return a[d](f)};return n?u=>c(sr(t[0],t[i-1],u)):c}function GL(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=sl(0,e,r);t.push(Ie(n,1,s))}}function YL(t){const e=[0];return GL(e,t.length-1),e}function JL(t,e){return t.map(n=>n*e)}function ZL(t,e){return t.map(()=>e||Wk).splice(0,t.length-1)}function Pa({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=cL(r)?r.map(Zv):Zv(r),i={done:!1,value:e[0]},o=JL(n&&n.length===e.length?n:YL(e),t),a=qL(o,e,{ease:Array.isArray(s)?s:ZL(e,s)});return{calculatedDuration:t,next:l=>(i.value=a(l),i.done=l>=t,i)}}const QL=t=>t!==null;function Sg(t,{repeat:e,repeatType:n="loop"},r,s=1){const i=t.filter(QL),a=s<0||e&&n!=="loop"&&e%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const XL={decay:up,inertia:up,tween:Pa,keyframes:Pa,spring:Nu};function s_(t){typeof t.type=="string"&&(t.type=XL[t.type])}class kg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const eI=t=>t/100;class _g extends kg{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Et.now()&&this.tick(Et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;s_(e);const{type:n=Pa,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Pa;l!==Pa&&typeof a[0]!="number"&&(this.mixKeyframes=Ol(eI,t_(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=bg(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,S=r;if(d){const T=Math.min(this.currentTime,s)/a;let A=Math.floor(T),N=T%1;!N&&T>=1&&(N=1),N===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(f==="reverse"?(N=1-N,p&&(N-=p/a)):f==="mirror"&&(S=o)),w=sr(0,1,N)*a}const k=v?{done:!1,value:u[0]}:S.next(w);i&&(k.value=i(k.value));let{done:_}=k;!v&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return E&&m!==up&&(k.value=Sg(u,this.options,x,this.speed)),g&&g(k.value),E&&this.finish(),k}then(e,n){return this.finished.then(e,n)}get duration(){return on(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+on(e)}get time(){return on(this.currentTime)}set time(e){var n;e=cn(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Et.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=on(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:e=ML,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function tI(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Vs=t=>t*180/Math.PI,dp=t=>{const e=Vs(Math.atan2(t[1],t[0]));return hp(e)},nI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:dp,rotateZ:dp,skewX:t=>Vs(Math.atan(t[1])),skewY:t=>Vs(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},hp=t=>(t=t%360,t<0&&(t+=360),t),i0=dp,o0=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),a0=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),rI={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:o0,scaleY:a0,scale:t=>(o0(t)+a0(t))/2,rotateX:t=>hp(Vs(Math.atan2(t[6],t[5]))),rotateY:t=>hp(Vs(Math.atan2(-t[2],t[0]))),rotateZ:i0,rotate:i0,skewX:t=>Vs(Math.atan(t[4])),skewY:t=>Vs(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function fp(t){return t.includes("scale")?1:0}function pp(t,e){if(!t||t==="none")return fp(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=rI,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=nI,s=a}if(!s)return fp(e);const i=r[e],o=s[1].split(",").map(iI);return typeof i=="function"?i(o):o[i]}const sI=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return pp(n,e)};function iI(t){return parseFloat(t.trim())}const Vo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wo=new Set(Vo),l0=t=>t===zo||t===V,oI=new Set(["x","y","z"]),aI=Vo.filter(t=>!oI.has(t));function lI(t){const e=[];return aI.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const rs={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>pp(e,"x"),y:(t,{transform:e})=>pp(e,"y")};rs.translateX=rs.x;rs.translateY=rs.y;const ti=new Set;let mp=!1,gp=!1,yp=!1;function i_(){if(gp){const t=Array.from(ti).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const s=lI(r);s.length&&(n.set(r,s),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const s=n.get(r);
vendor: 1,610 bytes, line 183
183s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}gp=!1,mp=!1,ti.forEach(t=>t.complete(yp)),ti.clear()}function o_(){ti.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(gp=!0)})}function cI(){yp=!0,o_(),i_(),yp=!1}class Eg{constructor(e,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ti.add(this),mp||(mp=!0,Te.read(o_),Te.resolveKeyframes(i_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:s}=this;if(e[0]===null){const i=s==null?void 0:s.get(),o=e[e.length-1];if(i!==void 0)e[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),s&&i===void 0&&s.set(e[0])}tI(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ti.delete(this)}cancel(){this.state==="scheduled"&&(ti.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const uI=t=>t.startsWith("--");function dI(t,e,n){uI(e)?t.style.setProperty(e,n):t.style[e]=n}const hI={};function a_(t,e){const n=Lk(t);return()=>hI[e]??n()}const fI=a_(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),l_=a_(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 5,100 bytes, line 183
183,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pa=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,c0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pa([0,.65,.55,1]),circOut:pa([.55,0,1,.45]),backIn:pa([.31,.01,.66,-.59]),backOut:pa([.33,1.53,.69,.99])};function c_(t,e){if(t)return typeof t=="function"?l_()?n_(t,e):"ease-out":Hk(t)?pa(t):Array.isArray(t)?t.map(n=>c_(n,e)||c0.easeOut):c0[t]}function pI(t,e,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const d=c_(a,s);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function u_(t){return typeof t=="function"&&"applyToOptions"in t}function mI({type:t,...e}){return u_(t)&&l_()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class d_ extends kg{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,Po(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=mI(e);this.animation=pI(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Sg(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):dI(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return on(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+on(e)}get time(){return on(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=cn(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&fI()?(this.animation.timeline=e,ln):n(this)}}const h_={anticipate:Bk,backInOut:Uk,circInOut:Vk};function gI(t){return t in h_}function yI(t){typeof t.ease=="string"&&gI(t.ease)&&(t.ease=h_[t.ease])}const Ch=10;class vI extends d_{constructor(e){yI(e),s_(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new _g({...o,autoplay:!1}),l=Math.max(Ch,Et.now()-this.startTime),c=sr(0,Ch,l-Ch);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const u0=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nn.test(t)||t==="0")&&!t.startsWith("url("));function wI(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function xI(t,e,n,r){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const i=t[t.length-1],o=u0(s,e),a=u0(i,e);return _d(o===a,`You are trying to animate ${e} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:wI(t)||(n==="spring"||u_(n))&&r}function vp(t){t.duration=0,t.type="keyframes"}const bI=new Set(["opacity","clipPath","filter","transform"]),SI=Lk(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function kI(t){var u;const{motionValue:e,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=t;if(!(((u=e==null?void 0:e.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return SI()&&n&&bI.has(n)&&(n!=="transform"||!c)&&!l&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const _I=40;class EI extends kg{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:
183o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var m;super(),this.stop=()=>{var g,x;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Et.now();const f={autoplay:e,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||Eg;this.keyframeResolver=new p(a,(g,x,y)=>this.onKeyframesResolved(g,x,f,!y),l,c,u),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,r,s){var x,y;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=Et.now(),xI(e,i,o,a)||((Tr.instantAnimations||!l)&&(u==null||u(Sg(e,r,n))),e[0]=e[e.length-1],vp(r),r.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>_I?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},p=!c&&kI(f),m=(y=(x=f.motionValue)==null?void 0:x.owner)==null?void 0:y.current,g=p?new vI({...f,element:m}):new _g(f);g.finished.then(()=>{this.notifyFinished()}).catch(ln),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),cI()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function f_(t,e,n,r=0,s=1){const i=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const TI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function CI(t){const e=TI.exec(t);if(!e)return[,];const[,n,r,s]=e;return[`--${n??r}`,s]}const AI=4;function p_(t,e,n=1){Po(n<=AI,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=CI(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const o=i.trim();return Rk(o)?parseFloat(o):o}return yg(s)?p_(s,e,n+1):s}const PI={type:"spring",stiffness:500,damping:25,restSpeed:10},jI=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),RI={type:"keyframes",duration:.8},NI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OI=(t,{keyframes:e})=>e.length>2?RI:Wo.has(t)?t.startsWith("scale")?jI(e[1]):PI:NI,LI=t=>t!==null;function II(t,{repeat:e,repeatType:n="loop"},r){const s=t.filter(LI),i=e&&n!=="loop"&&e%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function m_(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...r}=t;return{...e,...r}}return t}function Tg(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?m_(n,t):n}function DI({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Cg=(t,e,n,r={},s,i)=>o=>{const a=Tg(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-cn(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:s};DI(a)||Object.assign(u,OI(t,u)),u.duration&&(u.duration=cn(u.duration)),u.repeatDelay&&(u.repeatDelay=cn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(vp(u),u.delay===0&&(
vendor: 8,708 bytes, line 183
183d=!0)),(Tr.instantAnimations||Tr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,vp(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&e.get()!==void 0){const f=II(u.keyframes,a);if(f!==void 0){Te.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new _g(u):new EI(u)};function d0(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Ag(t,e,n,r){if(typeof e=="function"){const[s,i]=d0(r);e=e(n!==void 0?n:t.custom,s,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,i]=d0(r);e=e(n!==void 0?n:t.custom,s,i)}return e}function co(t,e,n){const r=t.getProps();return Ag(r,e,n!==void 0?n:r.custom,t)}const g_=new Set(["width","height","top","left","right","bottom",...Vo]),h0=30,MI=t=>!isNaN(parseFloat(t));class $I{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Et.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Et.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=MI(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new pg);const r=this.events[e].add(n);return e==="change"?()=>{r(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>h0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,h0);return Ik(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function jo(t,e){return new $I(t,e)}const wp=t=>Array.isArray(t);function FI(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,jo(n))}function UI(t){return wp(t)?t[t.length-1]||0:t}function BI(t,e){const n=co(t,e);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=UI(i[o]);FI(t,o,a)}}const xt=t=>!!(t&&t.getVelocity);function zI(t){return!!(xt(t)&&t.add)}function xp(t,e){const n=t.getValue("willChange");if(zI(n))return n.add(e);if(!n&&Tr.WillChange){const r=new Tr.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function Pg(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const VI="framerAppearId",y_="data-"+Pg(VI);function v_(t){return t.props[y_]}function WI({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function w_(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();i=i?m_(i,l):l;const c=i==null?void 0:i.reduceMotion;r&&(i=r);const u=[],d=s&&t.animationState&&t.animationState.getState()[s];for(const f in a){const p=t.getValue(f,t.latestValues[f]??null),m=a[f];if(m===void 0||d&&WI(d,f))continue;const g={delay:n,...Tg(i||{},f)},x=p.get();if(x!==void 0&&!p.isAnimating&&!Array.isArray(m)&&m===x&&!g.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const S=v_(t);if(S){const k=window.MotionHandoffAnimation(S,f,Te);k!==null&&(g.startTime=k,y=!0)}}xp(t,f);const v=c??t.shouldReduceMotion;p.start(Cg(f,p,m,v&&g_.has(f)?{type:!1}:g,t,y));const w=p.animation;w&&u.push(w)}if(o){const f=()=>Te.update(()=>{o&&BI(t,o)});u.length?Promise.all(u).then(f):f()}return u}function bp(t,e,n={}){var l;const r=co(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(w_(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return HI(t,e,c,u,d,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>u())}else return Promise.all([i(),o(n.delay)])}function HI(t,e,n=0,r=0,s=0,i=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(bp(l,e,{...o,delay:n+(typeof r=="function"?0:r)+f_(t.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function KI(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(i=>bp(t,i,n));r=Promise.all(s)}else if(typeof e=="string")r=bp(t,e,n);else{const s=typeof e=="function"?co(t,e,n.custom):e;r=Promise.all(w_(t,s,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const qI={test:t=>t==="auto",parse:t=>t},x_=t=>e=>e.test(t),b_=[zo,V,tr,Ur,bL,xL,qI],f0=t=>b_.find(x_(t));function GI(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ok(t):!0}const YI=new Set(["brightness","contrast","saturate","opacity"]);function JI(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(vg)||[];if(!r)return t;const s=n.replace(r,"");let i=YI.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+s+")"}const ZI=/\b([a-z-]*)\(.*?\)/gu,Sp={...Nn,getAnimatableNone:t=>{const e=t.match(ZI);return e?e.map(JI).join(" "):t}},kp={...Nn,getAnimatableNone:t=>{const e=Nn.parse(t);return Nn.createTransformer(t)(e.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},p0={...zo,transform:Math.round},QI={rotate:Ur,rotateX:Ur,rotateY:Ur,rotateZ:Ur,scale:pc,scaleX:pc,scaleY:pc,scaleZ:pc,skew:Ur,skewX:Ur,skewY:Ur,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:il,originX:e0,originY:e0,originZ:V},jg={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...QI,zIndex:p0,fillOpacity:il,strokeOpacity:il,numOctaves:p0},XI={...jg,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:Sp,WebkitFilter:Sp,mask:kp,WebkitMask:kp},S_=t=>XI[t],eD=new Set([Sp,kp]);function k_(t,e){let n=S_(t);return eD.has(n)||(n=Nn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const tD=new Set(["auto","none","0"]);function nD(t,e,n){let r=0,s;for(;r<t.length&&!s;){const i=t[r];typeof i=="string"&&!tD.has(i)&&ol(i).values.length&&(s=t[r]),r++}if(s&&n)for(const i of e)t[i]=k_(n,s)}class rD extends Eg{constructor(e,n,r,s,i){super(e,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let d=e[u];
vendor: 1,295 bytes, line 183
183if(typeof d=="string"&&(d=d.trim(),yg(d))){const f=p_(d,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!g_.has(r)||e.length!==2)return;const[s,i]=e,o=f0(s),a=f0(i),l=Xv(s),c=Xv(i);if(l!==c&&rs[r]){this.needsMeasurement=!0;return}if(o!==a)if(l0(o)&&l0(a))for(let u=0;u<e.length;u++){const d=e[u];typeof d=="string"&&(e[u]=parseFloat(d))}else rs[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let s=0;s<e.length;s++)(e[s]===null||GI(e[s]))&&r.push(s);r.length&&nD(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rs[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=rs[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 19,552 bytes, line 183
183h(([l,c])=>{e.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const sD=new Set(["opacity","clipPath","filter","transform"]);function Rg(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const s=document.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(r=>r!=null)}const __=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function _p(t){return Nk(t)&&"offsetHeight"in t}const{schedule:Ng,cancel:Xz}=Kk(queueMicrotask,!1),wn={x:!1,y:!1};function E_(){return wn.x||wn.y}function iD(t){return t==="x"||t==="y"?wn[t]?null:(wn[t]=!0,()=>{wn[t]=!1}):wn.x||wn.y?null:(wn.x=wn.y=!0,()=>{wn.x=wn.y=!1})}function T_(t,e){const n=Rg(t),r=new AbortController,s={passive:!0,...e,signal:r.signal};return[n,s,()=>r.abort()]}function oD(t){return!(t.pointerType==="touch"||E_())}function aD(t,e,n={}){const[r,s,i]=T_(t,n);return r.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",m)},d=x=>{c&&(c(x),c=void 0),u()},f=x=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(x))},p=()=>{a=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},m=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}d(x)}},g=x=>{if(!oD(x))return;l=!1;const y=e(o,x);typeof y=="function"&&(c=y,o.addEventListener("pointerleave",m,s))};o.addEventListener("pointerenter",g,s),o.addEventListener("pointerdown",p,s)}),i}const C_=(t,e)=>e?t===e?!0:C_(t,e.parentElement):!1,Og=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,lD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cD(t){return lD.has(t.tagName)||t.isContentEditable===!0}const uD=new Set(["INPUT","SELECT","TEXTAREA"]);function dD(t){return uD.has(t.tagName)||t.isContentEditable===!0}const Hc=new WeakSet;function m0(t){return e=>{e.key==="Enter"&&t(e)}}function Ah(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const hD=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=m0(()=>{if(Hc.has(n))return;Ah(n,"down");const s=m0(()=>{Ah(n,"up")}),i=()=>Ah(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",i,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function g0(t){return Og(t)&&!E_()}const y0=new WeakSet;function fD(t,e,n={}){const[r,s,i]=T_(t,n),o=a=>{const l=a.currentTarget;if(!g0(a)||y0.has(a))return;Hc.add(l),n.stopPropagation&&y0.add(a);const c=e(l,a),u=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Hc.has(l)&&Hc.delete(l),g0(p)&&typeof c=="function"&&c(p,{success:m})},d=p=>{u(p,l===window||l===document||n.useGlobalTarget||C_(l,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),_p(a)&&(a.addEventListener("focus",c=>hD(c,s)),!cD(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Lg(t){return Nk(t)&&"ownerSVGElement"in t}const Kc=new WeakMap;let Br;const A_=(t,e,n)=>(r,s)=>s&&s[0]?s[0][t+"Size"]:Lg(r)&&"getBBox"in r?r.getBBox()[e]:r[n],pD=A_("inline","width","offsetWidth"),mD=A_("block","height","offsetHeight");function gD({target:t,borderBoxSize:e}){var n;(n=Kc.get(t))==null||n.forEach(r=>{r(t,{get width(){return pD(t,e)},get height(){return mD(t,e)}})})}function yD(t){t.forEach(gD)}function vD(){typeof ResizeObserver>"u"||(Br=new ResizeObserver(yD))}function wD(t,e){Br||vD();const n=Rg(t);return n.forEach(r=>{let s=Kc.get(r);s||(s=new Set,Kc.set(r,s)),s.add(e),Br==null||Br.observe(r)}),()=>{n.forEach(r=>{const s=Kc.get(r);s==null||s.delete(e),s!=null&&s.size||Br==null||Br.unobserve(r)})}}const qc=new Set;let qi;function xD(){qi=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};qc.forEach(e=>e(t))},window.addEventListener("resize",qi)}function bD(t){return qc.add(t),qi||xD(),()=>{qc.delete(t),!qc.size&&typeof qi=="function"&&(window.removeEventListener("resize",qi),qi=void 0)}}function v0(t,e){return typeof t=="function"?bD(t):wD(t,e)}function SD(t){return Lg(t)&&t.tagName==="svg"}const kD=[...b_,Ge,Nn],_D=t=>kD.find(x_(t)),w0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gi=()=>({x:w0(),y:w0()}),x0=()=>({min:0,max:0}),Qe=()=>({x:x0(),y:x0()}),ED=new WeakMap;function Ed(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function al(t){return typeof t=="string"||Array.isArray(t)}const Ig=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dg=["initial",...Ig];function Td(t){return Ed(t.animate)||Dg.some(e=>al(t[e]))}function P_(t){return!!(Td(t)||t.variants)}function TD(t,e,n){for(const r in e){const s=e[r],i=n[r];if(xt(s))t.addValue(r,s);else if(xt(i))t.addValue(r,jo(s,{owner:t}));else if(i!==s)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(r);t.addValue(r,jo(o!==void 0?o:s,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ep={current:null},j_={current:!1},CD=typeof window<"u";function AD(){if(j_.current=!0,!!CD)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ep.current=t.matches;t.addEventListener("change",e),e()}else Ep.current=!1}const b0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ou={};function R_(t){Ou=t}function PD(){return Ou}class jD{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Eg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Et.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Te.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Td(n),this.isVariantNode=P_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const m=f[p];c[p]!==void 0&&xt(m)&&m.set(c[p])}}mount(e){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=e,ED.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(j_.current||AD(),this.shouldReduceMotion=Ep.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),bs(this.notifyUpdate),bs(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&sD.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new d_({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:cn(u)}),f=o(d);this.valueSubscriptions.set(e,()=>{f(),d.cancel()});return}const r=Wo.has(e);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ou){const n=Ou[e];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[e]&&s&&r(this.props)&&(this.features[e]=new s(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<b0.length;r++){const s=b0[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=e[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=TD(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=jo(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(Rk(r)||Ok(r))?r=parseFloat(r):!_D(r)&&Nn.test(n)&&(r=k_(e,n)),this.setBaseTarget(e,xt(r)?r.get():r)),xt(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ag(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[e])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!xt(s)?s:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new pg),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ng.render(this.render)}}class N_ extends jD{constructor(){super(...arguments),this.KeyframeResolver=rD}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const r=e.style;return r?r[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;xt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Cs{constructor(e){this.isMounted=!1,this.node=e}update(){}}function O_({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function RD({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ND(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ph(t){return t===void 0||t===1}function Tp({scale:t,scaleX:e,scaleY:n}){return!Ph(t)||!Ph(e)||!Ph(n)}function Ds(t){return Tp(t)||L_(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function L_(t){return S0(t.x)||S0(t.y)}function S0(t){return t&&t!=="0%"}function Lu(t,e,n){const r=t-n,s=e*r;return n+s}function k0(t,e,n,r,s){return s!==void 0&&(t=Lu(t,s,r)),Lu(t,n,r)+e}function Cp(t,e=0,n=1,r,s){t.min=k0(t.min,e,n,r,s),t.max=k0(t.max,e,n,r,s)}function I_(t,{x:e,y:n}){Cp(t.x,e.translate,e.scale,e.originPoint),Cp(t.y,n.translate,n.scale,n.originPoint)}const _0=.999999999999,E0=1.0000000000001;function OD(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ji(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,I_(t,o)),r&&Ds(i.latestValues)&&Ji(t,i.latestValues))}e.x<E0&&e.x>_0&&(e.x=1),e.y<E0&&e.y>_0&&(e.y=1)}function Yi(t,e){t.min=t.min+e,t.max=t.max+e}function T0(t,e,n,r,s=.5){const i=Ie(t.min,t.max,s);Cp(t,e,n,i,r)}function Ji(t,e){T0(t.x,e.x,e.scaleX,e.scale,e.originX),T0(t.y,e.y,e.scaleY,e.scale,e.originY)}function D_(t,e){return O_(ND(t.getBoundingClientRect(),e))}function LD(t,e,n){const r=D_(t,n),{scroll:s}=e;return s&&(Yi(r.x,s.offset.x),Yi(r.y,s.offset.y)),r}const ID={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},DD=Vo.length;function MD(t,e,n){let r="",s=!0;for(let i=0;i<DD;i++){const o=Vo[i],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=__(a,jg[o]);if(!l){s=!1;const u=ID[o]||o;r+=`${u}(${c}) `}n&&(e[o]=c)}}return r=r.trim(),n?r=n(e,s?"":r):s&&(r="none"),r}function Mg(t,e,n){const{style:r,vars:s,transformOrigin:i}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Wo.has(l)){o=!0;continue}else if(Gk(l)){s[l]=c;continue}else{const u=__(c,jg[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(e.transform||(o||n?r.transform=MD(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function M_(t,{style:e,vars:n},r,s){const i=t.style;let o;for(o in e)i[o]=e[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function C0(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ia={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(V.test(t))t=parseFloat(t);else return t;const n=C0(t,e.target.x),r=C0(t,e.target.y);return`${n}% ${r}%`}},$D={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=Nn.parse(t);if(s.length>5)return r;const i=Nn.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const c=Ie(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Ap={borderRadius:{...ia,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ia,borderTopRightRadius:ia,borderBottomLeftRadius:ia,borderBottomRightRadius:ia,boxShadow:$D};function $_(t,{layout:e,layoutId:n}){return Wo.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ap[t]||t==="opacity")}function $g(t,e,n){var o;const r=t.style,s=e==null?void 0:e.style,i={};if(!r)return i;for(const a in r)(xt(r[a])||s&&xt(s[a])||$_(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function FD(t){return window.getComputedStyle(t)}class UD extends N_{constructor(){super(...arguments),this.type="html",this.renderInstance=M_}readValueFromInstance(e,n){var r;if(Wo.has(n))return(r=this.projection)!=null&&r.isProjecting?fp(n):sI(e,n);{const s=FD(e),i=(Gk(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return D_(e,n)}build(e,n,r){Mg(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return $g(e,n,r)}}const BD={offset:"stroke-dashoffset",array:"stroke-dasharray"},zD={offset:"strokeDashoffset",array:"strokeDasharray"};function VD(t,e,n=1,r=0,s=!0){t.pathLength=1;const i=s?BD:zD;t[i.offset]=`${-r}`,t[i.array]=`${e} ${n}`}const WD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function F_(t,{attrX:e,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Mg(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f}=t;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const p of WD)d[p]!==void 0&&(f[p]=d[p],delete d[p]);e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&VD(d,s,i,o,!1)}const U_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),B_=t=>typeof t=="string"&&t.toLowerCase()==="svg";function HD(t,e,n,r){M_(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(U_.has(s)?s:Pg(s),e.attrs[s])}function z_(t,e,n){const r=$g(t,e,n);for(const s in t)if(xt(t[s])||xt(e[s])){const i=Vo.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=t[s]}return r}class KD extends N_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qe}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Wo.has(n)){const r=S_(n);return r&&r.default||0}return n=U_.has(n)?n:Pg(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return z_(e,n,r)}build(e,n,r){F_(e,n,this.isSVGTag,r.transformTemplate,r.style)}
vendor: 19,267 bytes, line 183
183renderInstance(e,n,r,s){HD(e,n,r,s)}mount(e){this.isSVGTag=B_(e.tagName),super.mount(e)}}const qD=Dg.length;function V_(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?V_(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<qD;n++){const r=Dg[n],s=t.props[r];(al(s)||s===!1)&&(e[r]=s)}return e}function W_(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const GD=[...Ig].reverse(),YD=Ig.length;function JD(t){return e=>Promise.all(e.map(({animation:n,options:r})=>KI(t,n,r)))}function ZD(t){let e=JD(t),n=A0(),r=!0;const s=l=>(c,u)=>{var f;const d=co(t,u,l==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:m,...g}=d;c={...c,...g,...m}}return c};function i(l){e=l(t)}function o(l){const{props:c}=t,u=V_(t.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let x=0;x<YD;x++){const y=GD[x],v=n[y],w=c[y]!==void 0?c[y]:u[y],S=al(w),k=y===l?v.isActive:null;k===!1&&(m=x);let _=w===u[y]&&w!==c[y]&&S;if(_&&r&&t.manuallyAnimateOnMount&&(_=!1),v.protectedKeys={...p},!v.isActive&&k===null||!w&&!v.prevProp||Ed(w)||typeof w=="boolean")continue;if(y==="exit"&&v.isActive&&k!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const E=QD(v.prevProp,w);let T=E||y===l&&v.isActive&&!_&&S||x>m&&S,A=!1;const N=Array.isArray(w)?w:[w];let F=N.reduce(s(y),{});k===!1&&(F={});const{prevResolvedValues:U={}}=v,X={...U,...F},M=H=>{T=!0,f.has(H)&&(A=!0,f.delete(H)),v.needsAnimating[H]=!0;const C=t.getValue(H);C&&(C.liveStyle=!1)};for(const H in X){const C=F[H],P=U[H];if(p.hasOwnProperty(H))continue;let D=!1;wp(C)&&wp(P)?D=!W_(C,P):D=C!==P,D?C!=null?M(H):f.add(H):C!==void 0&&f.has(H)?M(H):v.protectedKeys[H]=!0}v.prevProp=w,v.prevResolvedValues=F,v.isActive&&(p={...p,...F}),r&&t.blockInitialAnimation&&(T=!1);const se=_&&E;T&&(!se||A)&&d.push(...N.map(H=>{const C={type:y};if(typeof H=="string"&&r&&!se&&t.manuallyAnimateOnMount&&t.parent){const{parent:P}=t,D=co(P,H);if(P.enteringChildren&&D){const{delayChildren:Q}=D.transition||{};C.delay=f_(P.enteringChildren,t,Q)}}return{animation:H,options:C}}))}if(f.size){const x={};if(typeof c.initial!="boolean"){const y=co(t,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(x.transition=y.transition)}f.forEach(y=>{const v=t.getBaseTarget(y),w=t.getValue(y);w&&(w.liveStyle=!0),x[y]=v??null}),d.push({animation:x})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(d):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=t.variantChildren)==null||d.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(l,c)}),n[l].isActive=c;const u=o(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=A0()}}}function QD(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!W_(e,t):!1}function Rs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function A0(){return{animate:Rs(!0),whileInView:Rs(),whileHover:Rs(),whileTap:Rs(),whileDrag:Rs(),whileFocus:Rs(),exit:Rs()}}function P0(t,e){t.min=e.min,t.max=e.max}function vn(t,e){P0(t.x,e.x),P0(t.y,e.y)}function j0(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const H_=1e-4,XD=1-H_,eM=1+H_,K_=.01,tM=0-K_,nM=0+K_;function Tt(t){return t.max-t.min}function rM(t,e,n){return Math.abs(t-e)<=n}function R0(t,e,n,r=.5){t.origin=r,t.originPoint=Ie(e.min,e.max,t.origin),t.scale=Tt(n)/Tt(e),t.translate=Ie(n.min,n.max,t.origin)-t.originPoint,(t.scale>=XD&&t.scale<=eM||isNaN(t.scale))&&(t.scale=1),(t.translate>=tM&&t.translate<=nM||isNaN(t.translate))&&(t.translate=0)}function ja(t,e,n,r){R0(t.x,e.x,n.x,r?r.originX:void 0),R0(t.y,e.y,n.y,r?r.originY:void 0)}function N0(t,e,n){t.min=n.min+e.min,t.max=t.min+Tt(e)}function sM(t,e,n){N0(t.x,e.x,n.x),N0(t.y,e.y,n.y)}function O0(t,e,n){t.min=e.min-n.min,t.max=t.min+Tt(e)}function Iu(t,e,n){O0(t.x,e.x,n.x),O0(t.y,e.y,n.y)}function L0(t,e,n,r,s){return t-=e,t=Lu(t,1/n,r),s!==void 0&&(t=Lu(t,1/s,r)),t}function iM(t,e=0,n=1,r=.5,s,i=t,o=t){if(tr.test(e)&&(e=parseFloat(e),e=Ie(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Ie(i.min,i.max,r);t===i&&(a-=e),t.min=L0(t.min,e,n,a,s),t.max=L0(t.max,e,n,a,s)}function I0(t,e,[n,r,s],i,o){iM(t,e[n],e[r],e[s],e.scale,i,o)}const oM=["x","scaleX","originX"],aM=["y","scaleY","originY"];function D0(t,e,n,r){I0(t.x,e,oM,n?n.x:void 0,r?r.x:void 0),I0(t.y,e,aM,n?n.y:void 0,r?r.y:void 0)}function M0(t){return t.translate===0&&t.scale===1}function q_(t){return M0(t.x)&&M0(t.y)}function $0(t,e){return t.min===e.min&&t.max===e.max}function lM(t,e){return $0(t.x,e.x)&&$0(t.y,e.y)}function F0(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function G_(t,e){return F0(t.x,e.x)&&F0(t.y,e.y)}function U0(t){return Tt(t.x)/Tt(t.y)}function B0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Wn(t){return[t("x"),t("y")]}function cM(t,e,n){let r="";const s=t.x.translate/e.x,i=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Y_=["TopLeft","TopRight","BottomLeft","BottomRight"],uM=Y_.length,z0=t=>typeof t=="string"?parseFloat(t):t,V0=t=>typeof t=="number"||V.test(t);function dM(t,e,n,r,s,i){s?(t.opacity=Ie(0,n.opacity??1,hM(r)),t.opacityExit=Ie(e.opacity??1,0,fM(r))):i&&(t.opacity=Ie(e.opacity??1,n.opacity??1,r));for(let o=0;o<uM;o++){const a=`border${Y_[o]}Radius`;let l=W0(e,a),c=W0(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||V0(l)===V0(c)?(t[a]=Math.max(Ie(z0(l),z0(c),r),0),(tr.test(c)||tr.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=Ie(e.rotate||0,n.rotate||0,r))}function W0(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const hM=J_(0,.5,zk),fM=J_(.5,.95,ln);function J_(t,e,n){return r=>r<t?0:r>e?1:n(sl(t,e,r))}function pM(t,e,n){const r=xt(t)?t:jo(t);return r.start(Cg("",r,e,n)),r.animation}function ll(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const mM=(t,e)=>t.depth-e.depth;class gM{constructor(){this.children=[],this.isDirty=!1}add(e){fg(this.children,e),this.isDirty=!0}remove(e){Pu(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mM),this.isDirty=!1,this.children.forEach(e)}}function yM(t,e){const n=Et.now(),r=({timestamp:s})=>{const i=s-n;i>=e&&(bs(r),t(i-e))};return Te.setup(r,!0),()=>bs(r)}function Gc(t){return xt(t)?t.get():t}class vM{constructor(){this.members=[]}add(e){fg(this.members,e);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===e||r===this.lead||r===this.prevLead)continue;const s=r.instance;s&&s.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Pu(this.members,r)}e.scheduleRender()}remove(e){if(Pu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s],o=i.instance;if(i.isPresent!==!1&&(!o||o.isConnected!==!1)){r=i;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender();const s=r.options.layoutDependency,i=e.options.layoutDependency;if(!(s!==void 0&&i!==void 0&&s===i)){const l=r.instance;l&&l.isConnected===!1&&!r.snapshot||(e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:a}=e.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Yc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},jh=["","X","Y","Z"],wM=1e3;let xM=0;function Rh(t,e,n,r){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Z_(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=v_(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Te,!(s||i))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Z_(r)}function Q_({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=e==null?void 0:e()){this.id=xM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(kM),this.nodes.forEach(CM),this.nodes.forEach(AM),this.nodes.forEach(_M)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new gM)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new pg),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Lg(o)&&!SD(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;Te.read(()=>{d=window.innerWidth}),t(o,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=yM(f,250),Yc.hasAnimatedSinceResize&&(Yc.hasAnimatedSinceResize=!1,this.nodes.forEach(q0)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||OM,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=c.getProps(),y=!this.targetLayout||!G_(this.targetLayout,p),v=!d&&f;if(this.options.layoutRoot||this.resumeFrom||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Tg(m,"layout"),onPlay:g,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,v)}else d||q0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),bs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(PM),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Z_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(H0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(K0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(TM),this.nodes.forEach(bM),this.nodes.forEach(SM)):this.nodes.forEach(K0),this.clearAllSnapshots();const a=Et.now();ut.delta=sr(0,1e3/60,a-ut.timestamp),ut.timestamp=a,ut.isProcessing=!0,Sh.update.process(ut),Sh.preRender.process(ut),Sh.render.process(ut),ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ng.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(EM),this.sharedNodes.forEach(jM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Tt(this.snapshot.measuredBox.x)&&!Tt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Qe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!q_(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Ds(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),LM(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Qe();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(IM))){const{scroll:u}=this.root;u&&(Yi(a.x,u.offset.x),Yi(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Qe();if(vn(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&vn(a,o),Yi(a.x,d.offset.x),Yi(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=Qe();vn(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ji(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ds(u.latestValues)&&Ji(l,u.latestValues)}return Ds(this.latestValues)&&Ji(l,this.latestValues),l}removeTransform(o){const a=Qe();vn(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Ds(c.latestValues))continue;Tp(c.latestValues)&&c.updateSnapshot();const u=Qe(),d=c.measurePageBox();vn(u,d),D0(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Ds(this.latestValues)&&D0(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=ut.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Qe(),this.targetWithTransforms=Qe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s
vendor: 6,644 bytes, line 183
183M(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vn(this.target,this.layout.layoutBox),I_(this.target,this.targetDelta)):vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tp(this.parent.latestValues)||L_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qe(),this.relativeTargetOrigin=Qe(),Iu(this.relativeTargetOrigin,a,l),vn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ut.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;vn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;OD(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Qe());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(j0(this.prevProjectionDelta.x,this.projectionDelta.x),j0(this.prevProjectionDelta.y,this.projectionDelta.y)),ja(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!B0(this.projectionDelta.x,this.prevProjectionDelta.x)||!B0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gi(),this.projectionDelta=Gi(),this.projectionDeltaWithTransform=Gi()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Gi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Qe(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,x=this.getStack(),y=!x||x.members.length<=1,v=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(NM));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const k=S/1e3;G0(d.x,o.x,k),G0(d.y,o.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Iu(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),RM(this.relativeTarget,this.relativeTargetOrigin,f,k),w&&lM(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Qe()),vn(w,this.relativeTarget)),g&&(this.animationValues=u,dM(u,c,this.latestValues,k,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(bs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{Yc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jo(0)),this.motionValue.jump(0,!1),this.currentAnimation=pM(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&X_(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Qe();const d=Tt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Tt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}vn(a,l),Ji(a,u),ja(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new vM),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 17,308 bytes, lines 183-191
183resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Rh("z",o,c,this.animationValues);for(let u=0;u<jh.length;u++)Rh(`rotate${jh[u]}`,o,c,this.animationValues),Rh(`skew${jh[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Gc(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Gc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ds(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=cM(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:f,y:p}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in Ap){if(u[m]===void 0)continue;const{correct:g,applyTo:x,isCSSVariable:y}=Ap[m],v=d==="none"?u[m]:g(u[m],c);if(x){const w=x.length;for(let S=0;S<w;S++)o[x[S]]=v}else y?this.options.visualElement.renderState.vars[m]=v:o[m]=v}this.options.layoutId&&(o.pointerEvents=c===this?Gc(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(H0),this.root.sharedNodes.clear()}}}function bM(t){t.updateLayout()}function SM(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?Wn(d=>{const f=o?e.measuredBox[d]:e.layoutBox[d],p=Tt(f);f.min=r[d].min,f.max=f.min+p}):X_(i,e.layoutBox,r)&&Wn(d=>{const f=o?e.measuredBox[d]:e.layoutBox[d],p=Tt(r[d]);f.max=f.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+p)});const a=Gi();ja(a,r,e.layoutBox);const l=Gi();o?ja(l,t.applyTransform(s,!0),e.measuredBox):ja(l,r,e.layoutBox);const c=!q_(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Qe();Iu(m,e.layoutBox,f.layoutBox);const g=Qe();Iu(g,r,p.layoutBox),G_(m,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function kM(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function _M(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function EM(t){t.clearSnapshot()}function H0(t){t.clearMeasurements()}function K0(t){t.isLayoutDirty=!1}function TM(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function q0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function CM(t){t.resolveTargetDelta()}function AM(t){t.calcProjection()}function PM(t){t.resetSkewAndRotation()}function jM(t){t.removeLeadSnapshot()}function G0(t,e,n){t.translate=Ie(e.translate,0,n),t.scale=Ie(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Y0(t,e,n,r){t.min=Ie(e.min,n.min,r),t.max=Ie(e.max,n.max,r)}function RM(t,e,n,r){Y0(t.x,e.x,n.x,r),Y0(t.y,e.y,n.y,r)}function NM(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const OM={duration:.45,ease:[.4,0,.1,1]},J0=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Z0=J0("applewebkit/")&&!J0("chrome/")?Math.round:ln;function Q0(t){t.min=Z0(t.min),t.max=Z0(t.max)}function LM(t){Q0(t.x),Q0(t.y)}function X_(t,e,n){return t==="position"||t==="preserve-aspect"&&!rM(U0(e),U0(n),.2)}function IM(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const DM=Q_({attachResizeListener:(t,e)=>ll(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Nh={current:void 0},eE=Q_({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Nh.current){const t=new DM({});t.mount(window),t.setOptions({layoutScroll:!0}),Nh.current=t}return Nh.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Fg=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function X0(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function MM(...t){return e=>{let n=!1;const r=t.map(s=>{const i=X0(s,e);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():X0(t[s],null)}}}}function $M(...t){return b.useCallback(MM(...t),t)}class FM extends b.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=_p(r)&&r.offsetWidth||0,i=_p(r)&&r.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=s-o.width-o.left,o.bottom=i-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function UM({children:t,isPresent:e,anchorX:n,anchorY:r,root:s,pop:i}){var f;const o=b.useId(),a=b.useRef(null),l=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=b.useContext(Fg),u=((f=t.props)==null?void 0:f.ref)??(t==null?void 0:t.ref),d=$M(a,u);return b.useInsertionEffect(()=>{const{width:p,height:m,top:g,left:x,right:y,bottom:v}=l.current;if(e||i===!1||!a.current||!p||!m)return;const w=n==="left"?`left: ${x}`:`right: ${y}`,S=r==="bottom"?`bottom: ${v}`:`top: ${g}`;a.current.dataset.motionPopId=o;const k=document.createElement("style");c&&(k.nonce=c);const _=s??document.head;return _.appendChild(k),k.sheet&&k.sheet.insertRule(`
184          [data-motion-pop-id="${o}"] {
185            position: absolute !important;
186            width: ${p}px !important;
187            height: ${m}px !important;
188            ${w}px !important;
189            ${S}px !important;
190          }
191        `),()=>{_.contains(k)&&_.removeChild(k)}},[e]),h.jsx(FM,{isPresent:e,childRef:a,sizeRef:l,pop:i,children:i===!1?t:b.cloneElement(t,{ref:d})})}const BM=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=hg(zM),d=b.useId();let f=!0,p=b.useMemo(()=>(f=!1,{id:d,initial:e,isPresent:n,custom:s,onExitComplete:m=>{u.set(m,!0);for(const g of u.values())if(!g)return;r&&r()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,r]);return i&&f&&(p={...p}),b.useMemo(()=>{u.forEach((m,g)=>u.set(g,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),t=h.jsx(UM,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:t}),h.jsx(kd.Provider,{value:p,children:t})};function zM(){return new Map}function tE(t=!0){const e=b.useContext(kd);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=e,i=b.useId();b.useEffect(()=>{if(t)return s(i)},[t]);const o=b.useCallback(()=>t&&r&&r(i),[i,r,t]);return!n&&r?[!1,o]:[!0]}const mc=t=>t.key||"";function ew(t){const e=[];return b.Children.forEach(t,n=>{b.isValidElement(n)&&e.push(n)}),e}const nE=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=tE(o),f=b.useMemo(()=>ew(t),[t]),p=o&&!u?[]:f.map(mc),m=b.useRef(!0),g=b.useRef(f),x=hg(()=>new Map),y=b.useRef(new Set),[v,w]=b.useState(f),[S,k]=b.useState(f);jk(()=>{m.current=!1,g.current=f;for(let T=0;T<S.length;T++){const A=mc(S[T]);p.includes(A)?(x.delete(A),y.current.delete(A)):x.get(A)!==!0&&x.set(A,!1)}},[S,p.length,p.join("-")]);const _=[];if(f!==v){let T=[...f];for(let A=0;A<S.length;A++){const N=S[A],F=mc(N);p.includes(F)||(T.splice(A,0,N),_.push(N))}return i==="wait"&&_.length&&(T=_),k(ew(T)),w(f),null}const{forceRender:E}=b.useContext(dg);return h.jsx(h.Fragment,{children:S.map(T=>{const A=mc(T),N=o&&!u?!1:f===S||p.includes(A),F=()=>{if(y.current.has(A))return;if(y.current.add(A),x.has(A))x.set(A,!0);else return;let U=!0;x.forEach(X=>{X||(U=!1)}),U&&(E==null||E(),k(g.current),o&&(d==null||d()),r&&r())};return h.jsx(BM,{isPresent:N,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:N?void 0:F,anchorX:a,anchorY:l,children:T},A)})})},rE=b.createContext({strict:!1}),tw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let nw=!1;function VM(){if(nw)return;const t={};for(const e in tw)t[e]={isEnabled:n=>tw[e].some(r=>!!n[r])};R_(t),nw=!0}function sE(){return VM(),PD()}function WM(t){const e=sE();for(const n in t)e[n]={...e[n],...t[n]};R_(e)}const HM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Du(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||HM.has(t)}let iE=t=>!Du(t);function KM(t){typeof t=="function"&&(iE=e=>e.startsWith("on")?!Du(e):t(e))}try{KM(require("@emotion/is-prop-valid").default)}catch{}function qM(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(iE(s)||n===!0&&Du(s)||!e&&!Du(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}const Cd=b.createContext({});function GM(t,e){if(Td(t)){const{initial:n,animate:r}=t;return{initial:n===!1||al(n)?n:void 0,animate:al(r)?r:void 0}}return t.inherit!==!1?e:{}}function YM(t){const{initial:e,animate:n}=GM(t,b.useContext(Cd));return b.useMemo(()=>({initial:e,animate:n}),[rw(e),rw(n)])}function rw(t){return Array.isArray(t)?t.join(" "):t}const Ug=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function oE(t,e,n){for(const r in e)!xt(e[r])&&!$_(r,n)&&(t[r]=e[r])}function JM({transformTemplate:t},e){return b.useMemo(()=>{const n=Ug();return Mg(n,e,t),Object.assign({},n.vars,n.style)},[e])}function ZM(t,e){const n=t.style||{},r={};return oE(r,n,t),Object.assign(r,JM(t,e)),r}function QM(t,e){const n={},r=ZM(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const aE=()=>({...Ug(),attrs:{}});function XM(t,e,n,r){const s=b.useMemo(()=>{const i=aE();return F_(i,e,B_(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};oE(i,t.style,t),s.style={...i,...s.style}}return s}const e$=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Bg(t){return typeof t!="string"||t.includes("-")?!1:!!(e$.indexOf(t)>-1||/[A-Z]/u.test(t))}function t$(t,e,n,{latestValues:r},s,i=!1,o){const l=(o??Bg(t)?XM:QM)(e,r,s,t),c=qM(e,typeof t=="string",i),u=t!==b.Fragment?{...c,...l,ref:n}:{},{children:d}=e,f=b.useMemo(()=>xt(d)?d.get():d,[d]);return b.createElement(t,{...u,children:f})}function n$({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,s){return{latestValues:r$(n,r,s,t),renderState:e()}}function r$(t,e,n,r){const s={},i=r(t,{});for(const f in i)s[f]=Gc(i[f]);let{initial:o,animate:a}=t;const l=Td(t),c=P_(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Ed(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=Ag(t,f[p]);if(m){const{transitionEnd:g,transition:x,...y}=m;for(const v in y){let w=y[v];if(Array.isArray(w)){const S=u?w.length-1:0;w=w[S]}w!==null&&(s[v]=w)}for(const v in g)s[v]=g[v]}}}return s}const lE=t=>(e,n)=>{const r=b.useContext(Cd),s=b.useContext(kd),i=()=>n$(t,e,r,s);return n?i():hg(i)},s$=lE({scrapeMotionValuesFromProps:$g,createRenderState:Ug}),i$=lE({scrapeMotionValuesFromProps:z_,createRenderState:aE}),o$=Symbol.for("motionComponentSymbol");function a$(t,e,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const s=b.useRef(null);return b.useCallback(i=>{var a;i&&((a=t.onMount)==null||a.call(t,i)),e&&(i?e.mount(i):e.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[e])}const cE=b.createContext({});function Ci(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function l$(t,e,n,r,s,i){var w,S;const{visualElement:o}=b.useContext(Cd),a=b.useContext(rE),l=b.useContext(kd),c=b.useContext(Fg),u=c.reducedMotion,d=c.skipAnimations,f=b.useRef(null),p=b.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,g=b.useContext(cE);m&&!m.projection&&s&&(m.type==="html"||m.type==="svg")&&c$(f.current,n,s,g);const x=b.useRef(!1);b.useInsertionEffect(()=>{m&&x.current&&m.update(n,l)});const y=n[y_],v=b.useRef(!!y&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,y))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,y)));return jk(()=>{p.current=!0,m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,y)}),v.current=!1),m.enteringChildren=void 0)}),m}function c$(t,e,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:uE(t.parent)),t.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Ci(a),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function uE(t){if(t)return t.options.allowProjection!==!1?t.projection:uE(t.parent)}function Oh(t,{forwardMotionProps:e=!1,type:n}={},r,s){r&&WM(r);const i=n?n==="svg":Bg(t),o=i?i$:s$;function a(c,u){let d;const f={...b.useContext(Fg),...c,layoutId:u$(c)},{isStatic:p}=f,m=YM(c),g=o(c,p);if(!p&&Pk){d$();const x=h$(f);d=x.MeasureLayout,m.visualElement=l$(t,g,f,s,x.ProjectionNode,i)}return h.jsxs(Cd.Provider,{value:m,children:[d&&m.visualElement?h.jsx(d,{visualElement:m.visualElement,...f}):null,t$(t,c,a$(g,m.visualElement,u),g,p,e,i)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=b.forwardRef(a);return l[o$]=t,l}function u$({layoutId:t}){const e=b.useContext(dg).id;return e&&t!==void 0?e+"-"+t:t}function d$(t,e){b.useContext(rE).strict}function h$(t){const e=sE(),{drag:n,layout:r}=e;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 17,815 bytes, line 191
191function f$(t,e){if(typeof Proxy>"u")return Oh;const n=new Map,r=(i,o)=>Oh(i,o,t,e),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,Oh(o,void 0,t,e)),n.get(o))})}const p$=(t,e)=>e.isSVG??Bg(t)?new KD(e):new UD(e,{allowProjection:t!==b.Fragment});class m$ extends Cs{constructor(e){super(e),e.animationState||(e.animationState=ZD(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ed(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let g$=0;class y$ extends Cs{constructor(){super(...arguments),this.id=g$++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const v$={animation:{Feature:m$},exit:{Feature:y$}};function Dl(t){return{point:{x:t.pageX,y:t.pageY}}}const w$=t=>e=>Og(e)&&t(e,Dl(e));function Ra(t,e,n,r){return ll(t,e,w$(n),r)}const dE=({current:t})=>t?t.ownerDocument.defaultView:null,sw=(t,e)=>Math.abs(t-e);function x$(t,e){const n=sw(t.x,e.x),r=sw(t.y,e.y);return Math.sqrt(n**2+r**2)}const iw=new Set(["auto","scroll"]);class hE{constructor(e,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Ih(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=x$(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:x}=p,{timestamp:y}=ut;this.history.push({...x,timestamp:y});const{onStart:v,onMove:w}=this.handlers;m||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Lh(m,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ih(p.type==="pointercancel"?this.lastMoveEventInfo:Lh(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,v),x&&x(p,v)},!Og(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=Dl(e),c=Lh(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=ut;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(e,Ih(c,this.history)),this.removeListeners=Ol(Ra(this.contextWindow,"pointermove",this.handlePointerMove),Ra(this.contextWindow,"pointerup",this.handlePointerUp),Ra(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const r=getComputedStyle(n);(iw.has(r.overflowX)||iw.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const r=e===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,s),Te.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),bs(this.updatePoint)}}function Lh(t,e){return e?{point:e(t.point)}:t}function ow(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ih({point:t},e){return{point:t,delta:ow(t,fE(e)),offset:ow(t,b$(e)),velocity:S$(e,.1)}}function b$(t){return t[0]}function fE(t){return t[t.length-1]}function S$(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=fE(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>cn(e)));)n--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&s.timestamp-r.timestamp>cn(e)*2&&(r=t[1]);const i=on(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function k$(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Ie(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Ie(n,t,r.max):Math.min(t,n)),t}function aw(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function _$(t,{top:e,left:n,bottom:r,right:s}){return{x:aw(t.x,n,s),y:aw(t.y,e,r)}}function lw(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function E$(t,e){return{x:lw(t.x,e.x),y:lw(t.y,e.y)}}function T$(t,e){let n=.5;const r=Tt(t),s=Tt(e);return s>r?n=sl(e.min,e.max-r,t.min):r>s&&(n=sl(t.min,t.max-s,e.min)),sr(0,1,n)}function C$(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Pp=.35;function A$(t=Pp){return t===!1?t=0:t===!0&&(t=Pp),{x:cw(t,"left","right"),y:cw(t,"top","bottom")}}function cw(t,e,n){return{min:uw(t,e),max:uw(t,n)}}function uw(t,e){return typeof t=="number"?t:t[e]||0}const P$=new WeakMap;class j${constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(Dl(d).point),this.stopAnimation()},o=(d,f)=>{const{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iD(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wn(y=>{let v=this.getAxisMotionValue(y).get()||0;if(tr.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[y];S&&(v=Tt(S)*(parseFloat(v)/100))}}this.originPoint[y]=v}),g&&Te.update(()=>g(d,f),!1,!0),xp(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=N$(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),x&&Te.update(()=>x(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new hE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:dE(this.visualElement),element:this.visualElement.current})}stop(e,n){const r=e||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Te.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,r){const{drag:s}=this.getProps();if(!r||!gc(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=k$(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;e&&Ci(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=_$(r.layoutBox,e):this.constraints=!1,this.elastic=A$(n),s!==this.constraints&&!Ci(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&Wn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=C$(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ci(e))return!1;const r=e.current;Po(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=LD(r,s.root,this.visualElement.getTransformPagePoint());let o=E$(s.layout.layoutBox,i);if(n){const a=n(RD(o));this.hasMutatedConstraints=!!a,a&&(o=O_(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Wn(u=>{if(!gc(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,m={type:"inertia",velocity:r?e[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return xp(this.visualElement,e),r.start(Cg(e,r,0,n,this.visualElement,!1))}stopAnimation(){Wn(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Wn(n=>{const{drag:r}=this.getProps();if(!gc(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(e[n]-Ie(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ci(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Wn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=T$({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Wn(o=>{if(!gc(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Ie(l,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;P$.set(this.visualElement,this);const e=this.visualElement.current,n=Ra(e,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==e&&dD(f);u&&d&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Ci(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=R$(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Te.read(s);const a=ll(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Wn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Pp,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function dw(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function R$(t,e,n){const r=v0(t,dw(n)),s=v0(e,dw(n));return()=>{r(),s()}}function gc(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function N$(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class O$ extends Cs{constructor(e){super(e),this.removeGroupControls=ln,this.removeListeners=ln,this.controls=new j$(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ln}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Dh=t=>(e,n)=>{t&&Te.update(()=>t(e,n),!1,!0)};class L$ extends Cs{constructor(){super(...arguments),this.removePointerDownListener=ln}onPointerDown(e){this.session=new hE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Dh(e),onStart:Dh(n),onMove:Dh(r),onEnd:(i,o)=>{delete this.session,s&&Te.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Ra(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Mh=!1;class I$ extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=e;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Mh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Yc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Mh=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Te.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ng.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;Mh=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pE(t){const[e,n]=tE(),r=b.useContext(dg);return h.jsx(I$,{...t,layoutGroup:r,switchLayoutGroup:b.useContext(cE),isPresent:e,safeToRemove:n})}const D$={pan:{Feature:L$},drag:{Feature:O$,ProjectionNode:eE,MeasureLayout:pE}};function hw(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Te.postRender(()=>i(e,Dl(e)))}class M$ extends Cs{mount(){const{current:e}=this.node;e&&(this.unmount=aD(e,(n,r)=>(hw(this.node,r,"Start"),s=>hw(this.node,s,"End"))))}unmount(){}}class $$ extends Cs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ol(ll(this.node.current,"focus",()=>this.onFocus()),ll(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fw(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Te.postRender(()=>i(e,Dl(e)))}class F$ extends Cs{mount(){const{current:e}=this.node;if(!e)return;
191const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=fD(e,(s,i)=>(fw(this.node,i,"Start"),(o,{success:a})=>fw(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const jp=new WeakMap,$h=new WeakMap,U$=t=>{const e=jp.get(t.target);e&&e(t)},B$=t=>{t.forEach(U$)};function z$({root:t,...e}){const n=t||document;$h.has(n)||$h.set(n,{});const r=$h.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(B$,{root:t,...e})),r[s]}function V$(t,e,n){const r=z$(e);return jp.set(t,n),r.observe(t),()=>{jp.delete(t),r.unobserve(t)}}const W$={some:0,all:1};class H$ extends Cs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:W$[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return V$(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(K$(e,n))&&this.startObserver()}unmount(){}}function K$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const q$={inView:{Feature:H$},tap:{Feature:F$},focus:{Feature:$$},hover:{Feature:M$}},G$={layout:{ProjectionNode:eE,MeasureLayout:pE}},Y$={...v$,...q$,...D$,...G$},fe=f$(Y$,p$),J$={some:0,all:1};function Z$(t,e,{root:n,margin:r,amount:s="some"}={}){const i=Rg(t),o=new WeakMap,a=c=>{c.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):l.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof s=="number"?s:J$[s]});return i.forEach(c=>l.observe(c)),()=>l.disconnect()}function Ml(t,{root:e,margin:n,amount:r,once:s=!1,initial:i=!1}={}){const[o,a]=b.useState(i);return b.useEffect(()=>{if(!t.current||s&&o)return;const l=()=>(a(!0),s?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:r};return Z$(t.current,l,c)},[e,t,n,s,r]),o}const Q$="/assets/hero-image-fw0xvpfM.jpg",X$=()=>{const t=()=>{var e;(e=document.querySelector("#reservieren"))==null||e.scrollIntoView({behavior:"smooth"})};return h.jsxs("section",{className:"relative h-screen min-h-[700px] w-full overflow-hidden",children:[h.jsxs("div",{className:"absolute inset-0",children:[h.jsx("img",{src:Q$,alt:"Luftaufnahme des Hotel Luitpold am See mit Blick auf den Chiemsee und die Alpen",className:"w-full h-full object-cover object-center",fetchPriority:"high",decoding:"async",width:1920,height:1080}),h.jsx("div",{className:"absolute inset-0 hero-overlay"})]}),h.jsxs("div",{className:"relative z-10 flex flex-col items-center justify-end h-full text-center px-5 pb-24 md:pb-32",children:[h.jsxs(fe.h1,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:1,delay:.3},className:"font-headline text-[6rem] sm:text-[8rem] md:text-[12rem] lg:text-[16rem] text-primary-foreground leading-[0.85] tracking-tighter",children:[h.jsx("span",{"aria-hidden":"true",children:"LUI."}),h.jsx("span",{className:"sr-only",children:"LUI — Modern Dining & Events am Chiemsee"})]}),h.jsx(fe.p,{initial:{opacity:0}
191,animate:{opacity:1},transition:{duration:1,delay:.8},className:"text-primary-foreground/80 font-body text-sm md:text-lg max-w-xl mt-6 leading-relaxed font-light",children:"Dein Logenplatz für exzellente Kulinarik am Chiemsee"}),h.jsx(fe.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:1.1},className:"text-primary-foreground/70 font-body text-xs tracking-[0.2em] uppercase mt-3",children:"by Luitpold am See"}),h.jsxs(fe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:1.4},className:"mt-10 flex flex-col sm:flex-row items-center gap-4",children:[h.jsx("button",{onClick:t,className:"border border-primary-foreground/50 text-primary-foreground text-xs tracking-[0.2em] uppercase px-10 py-4 hover:bg-primary-foreground hover:text-foreground transition-all duration-300",children:"Tisch reservieren"}),h.jsx("button",{type:"button",onClick:ug,className:"bg-primary-foreground text-foreground text-xs tracking-[0.2em] uppercase px-10 py-4 hover:bg-transparent hover:text-primary-foreground border border-primary-foreground transition-all duration-300",children:"Zimmer buchen"})]})]}),h.jsx(fe.div,{initial:{opacity:0}
191,animate:{opacity:1},transition:{delay:2},className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-10",children:h.jsx(fe.div,{animate:{y:[0,8,0]},transition:{repeat:1/0,duration:2.5},className:"w-[1px] h-12 bg-primary-foreground/30"})})]})},e4="/assets/ambiance-22UAY88M.jpg",t4=()=>{const t=b.useRef(null),e=Ml(t,{once:!0,margin:"-100px"});return h.jsx("section",{id:"konzept",className:"py-24 md:py-40",children:h.jsxs("div",{className:"container mx-auto px-5",children:[h.jsxs(fe.div,{ref:t,initial:{opacity:0,y:30},animate:e?{opacity:1,y:0}:{},transition:{duration:.8},className:"mb-16 md:mb-24",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-6",children:"Unser Konzept"}),h.jsxs("h2",{className:"font-headline text-5xl sm:text-7xl md:text-8xl lg:text-9xl text-foreground leading-[0.9] tracking-tighter",children:["MODERN",h.jsx("br",{}),"DINING."]})]}),h.jsxs("div",{className:"grid md:grid-cols-2 gap-16 md:gap-24 items-center",children:[h.jsxs(fe.div,{initial:{opacity:0},animate:e?{opacity:1}:{},transition:{duration:1,delay:.2},children:[h.jsx("h3",{className:"font-display italic text-2xl md:text-3xl text-muted-foreground mb-8",children:"Classic Heritage."}),h.jsx("div",{className:"w-12 h-[1px] bg-foreground mb-8"}),h.jsx("p",{className:"text-muted-foreground font-body text-sm md:text-base leading-relaxed font-light mb-6",children:"Im LUI verschmelzen die besten Aromen des Mittelmeerraums mit der herzlichen Gastfreundschaft Oberbayerns. Unsere Küche setzt auf regionale Zutaten, die mit mediterraner Finesse veredelt werden."}),h.jsx("p",{className:"text-muted-foreground font-body text-sm md:text-base leading-relaxed font-light",children:"Direkt am Ufer des Chiemsees gelegen, bietet dir das LUI eine einzigartige Atmosphäre – ob auf der Sonnenterrasse oder im stilvollen Innenbereich mit Panoramablick."})]}),h.jsx(fe.div,{initial:{opacity:0}
191,animate:e?{opacity:1}:{},transition:{duration:1,delay:.4},children:h.jsx("img",{src:e4,alt:"Jugendstil-Villa LUI by Luitpold am See in Prien am Chiemsee mit Seeterrasse und Biergarten",className:"w-full h-[450px] md:h-[600px] object-cover",loading:"lazy"})})]})]})})},n4="/assets/dish-1-Cx3ZIFZq.jpg",r4="/assets/dish-2-BQWxTNHk.jpg",s4="/assets/dish-3-DEJRphf5.jpg",i4="/assets/dish-4-B2rsOs3x.jpg",o4="/assets/dish-5-D7NkapCF.jpg",a4="/assets/dish-6-CQN8Qm5j.jpg",l4=[{title:"Luitpold's Rindertatar",desc:"mit Sauerteigbrot und Butter (150 g)",price:"16,90"},{title:"Gebratenes Chiemsee-Hechtfilet",desc:"mit Tomaten-Zwiebel-Schmelze, dazu Kartoffeln",price:"23,90"},{title:"Jägerschnitzel",desc:"in Waldpilzrahm, dazu Spätzle",price:"20,90"},{title:"Gebratenes Zanderfilet",desc:"auf Spinatrisotto mit Sauce Hollandaise",price:"22,90"},{title:"Maik's Zwiebelrostbraten",desc:"mit Zwiebelsoße, grünen Bohnen und Pommes Frites",price:"27,80"},{title:"Kaiserschmarrn",desc:"mit Rosinen & Apfelmus",price:"9,80"}],c4=["Luitpold's Rindertatar mit Sauerteigbrot auf weißem Teller","Hähnchenschnitzel im Knuspermantel mit Pommes Frites","Rinderstreifen-Salat mit Microgreens und frischem Gemüse","Zanderfilet auf Spinatrisotto mit Sauce Hollandaise","Maik's Zwiebelrostbraten mit grünen Bohnen","Kaiserschmarrn mit hausgemachtem Apfelmus"],oa=[n4,r4,s4,i4,o4,a4],u4=()=>{const t=b.useRef(null),e=Ml(t,{once:!0,margin:"-100px"}),[n,r]=b.useState(0),s=b.useCallback(()=>r(o=>(o+1)%oa.length),[]),i=b.useCallback(()=>r(o=>(o-1+oa.length)%oa.length),[]);return b.useEffect(()=>{const o=setInterval(s,5e3);return()=>clearInterval(o)},[s]),h.jsx("section",{id:"speisen",className:"py-24 md:py-40 border-t border-foreground
191/10",children:h.jsxs("div",{className:"container mx-auto px-5",children:[h.jsxs(fe.div,{ref:t,initial:{opacity:0,y:30},animate:e?{opacity:1,y:0}:{},transition:{duration:.8},className:"mb-16 md:mb-24",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-6",children:"Unsere Küche"}),h.jsxs("h2",{className:"font-headline text-5xl sm:text-7xl md:text-8xl lg:text-9xl text-foreground leading-[0.9] tracking-tighter",children:["HAND",h.jsx("br",{}),"WERK."]})]}),h.jsxs("div",{className:"grid md:grid-cols-2 gap-16 md:gap-24",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground font-body text-sm md:text-base max-w-lg leading-relaxed font-light mb-12",children:"Wir servieren dir nicht nur Speisen, sondern Momente. Fangfrischer Fisch aus dem Chiemsee, bestes Fleisch aus der Region und eine Weinkarte, die keine Wünsche offen lässt."}),h.jsx("div",{className:"border-t border-foreground/10",children:l4.map((o,a)=>h.jsx(fe.div,{initial:{opacity:0,y:10},animate:e?{opacity:1,y:0}:{},transition:{duration:.4,delay:a*.06}
191,className:"py-4 border-b border-foreground/10 hover:pl-2 transition-all duration-300",children:h.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:"font-body text-sm md:text-base font-medium",children:o.title}),h.jsx("p",{className:"font-display italic text-xs text-muted-foreground font-light mt-0.5",children:o.desc})]}),h.jsxs("span",{className:"font-body text-sm md:text-base font-medium shrink-0 tabular-nums",children:[o.price," €"]})]})},o.title))}),h.jsx(rn,{to:"/speisekarte",className:"inline-flex items-center gap-3 btn-invert text-xs tracking-[0.15em] uppercase px-6 py-3 mt-8",children:"Karte entdecken"})]}),h.jsxs(fe.div,{initial:{opacity:0,y:20},animate:e?{opacity:1,y:0}:{},transition:{duration:.6,delay:.4},className:"relative overflow-hidden",children:[h.jsx("div",{className:"relative aspect-[3/4] md:aspect-[4/5] overflow-hidden",children:oa.map((o,a)=>h.jsx("img",{src:o,alt:c4[a]||`Gericht aus dem LUI Restaurant ${a+1}`,className:`absolute inset-0 w-full h-full object-cover transition-all duration-1000 ease-in-out ${a===n?"opacity-100 scale-100":"opacity-0 scale-105"}`},a))}),h.jsxs("div",{className:"absolute bottom-6 right-6 flex items-center gap-3",children:[h.jsx("button",{onClick:i,className:"w-10 h-10 flex items-center justify-center border border-primary-foreground/40 text-primary-foreground/80 hover:bg-primary-foreground/20 transition-all","aria-label":"Vorheriges Bild",children:h.jsx(xj,{className:"w-4 h-4"})}),h.jsx("button",{onClick:s,className:"w-10 h-10 flex items-center justify-center border border-primary-foreground/40 text-primary-foreground/80 hover:bg-primary-foreground/20 transition-all","aria-label":"Nächstes Bild",children:h.jsx(bj,{className:"w-4 h-4"})})]}),h.jsx("div",{className:"absolute bottom-6 left-6 flex gap-2",children:oa.map((o,a)=>h.jsx("button",{onClick:()=>r(a),className:`h-[2px] transition-all duration-500 ${a===n?"w-8 bg-primary-foreground":"w-4 bg-primary-foreground/40"}`,"aria-label":`Bild ${a+1}`},a))})]})]})]})})},d4="/assets/event-hochzeit-BcJnwN3_.jpg",h4="/assets/event-firmenfeier-BaxBTalA.jpg",f4="/assets/event-private-feier-CLCaGt8Z.jpg",p4=[{title:"Hochzeiten",tag:"Weddings",desc:"Feiere deinen schönsten Tag mit Seeblick – von der freien Trauung auf der Terrasse bis zum Dinner im stilvollen Festsaal.",image:d4,alt:"Hochzeitsfeier auf der Seeterrasse des LUI mit Chiemsee-Panorama"},{title:"Firmenfeiern",tag:"Corporate",desc:"Seminare, Teambuildings oder Firmenjubiläen – professionelles Ambiente mit mediterranem Catering und modernster Technik.",image:h4,alt:"Firmenfeier und Teambuilding-Event im stilvollen Festsaal des LUI"},{title:"Private Feiern",tag:"Private",desc:"Geburtstage, Jubiläen oder exklusive Dinner: Wir gestalten dein individuelles Event mit bis zu 120 Gästen.",image:f4,alt:"Privates Dinner und Geburtstagsfeier im LUI Restaurant am Chiemsee"}],m4=()=>{const t=b.useRef(null),e=Ml(t,{once:!0,margin:"-100px"});return h.jsx("section",{id:"events",className:"py-24 md:py-40 border-t border-foreground
191/10",children:h.jsxs("div",{className:"container mx-auto px-5",children:[h.jsxs(fe.div,{initial:{opacity:0,y:30},animate:e?{opacity:1,y:0}:{},transition:{duration:.8},className:"mb-16 md:mb-24",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-6",children:"Events & Momente"}),h.jsxs("h2",{className:"font-headline text-5xl sm:text-7xl md:text-8xl lg:text-9xl text-foreground leading-[0.9] tracking-tighter",children:["DEINE",h.jsx("br",{}),"BÜHNE."]})]}),h.jsx("p",{className:"text-muted-foreground font-body text-sm md:text-base max-w-2xl leading-relaxed font-light mb-16",children:"Ob die Traumhochzeit in Weiß oder das exklusive Firmenevent – wir verwandeln deine Vision in Realität. Mit Herzblut, Professionalität und der schönsten Kulisse, die Bayern zu bieten hat."}),h.jsx("div",{ref:t,className:"grid md:grid-cols-3 gap-4 md:gap-6",children:p4.map((n,r)=>h.jsxs(fe.div,{initial:{opacity:0,y:30},animate:e?{opacity:1,y:0}:{},transition:{duration:.6,delay:r*.15},className:"group",children:[h.jsxs("div",{className:"relative overflow-hidden mb-4",children:[h.jsx("img",{src:n.image,alt:n.alt,className:"w-full aspect-[4/5] object-cover group-hover:scale-105 transition-all duration-700",loading:"lazy"}),h.jsx("span",{className:"absolute top-4 left-4 bg-foreground text-background font-body text-[10px] tracking-[0.15em] uppercase px-3 py-1.5",children:n.tag})]}),h.jsxs("p",{className:"font-body text-sm leading-relaxed",children:[h.jsx("span",{className:"font-semibold uppercase tracking-wide",children:n.title}),h.jsxs("span",{className:"text-muted-foreground font-light",children:[" — ",n.desc]})]})]},n.title))}),h.jsx(fe.div,{initial:{opacity:0}
191,animate:e?{opacity:1}:{},transition:{duration:.6,delay:.6},className:"mt-16",children:h.jsxs("a",{href:"https://feiern-chiemsee.de/locations/luitpold-am-see",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-3 btn-invert text-xs tracking-[0.15em] uppercase px-8 py-4",children:["Jetzt dein Traumevent anfragen",h.jsx(yj,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})]})})},g4="/assets/partner-schlosswirtschaft-DbJ6Tipc.png",y4="/assets/partner-boje5-B5S1dz0e.png",v4="/assets/partner-feiern-BkSciADR.png",w4=[{name:"Schlosswirtschaft Herrenchiemsee",tag:"Gasthaus",desc:"Bayerische Wirtshauskultur im historischen Ambiente auf der Herreninsel.",url:"https://schlosswirtschaft-herrenchiemsee.de/",image:g4,alt:"Logo der Schlosswirtschaft Herrenchiemsee – Partner des LUI"},{name:"Boje 5",tag:"Bar & Grill",desc:"Grillplatz & Bar direkt am Hafen – Grillen, Tagen & Feiern auf der Herreninsel.",url:"https://boje-5.de/",image:y4,alt:"Logo von Boje 5 – Grillplatz und Bar auf der Herreninsel"},{name:"Feiern am Chiemsee",tag:"Events",desc:"Dein Portal für exklusive Eventlocations und Feiern in der Chiemsee-Region.",url:"https://www.feiern-chiemsee.de",image:v4,alt:"Logo von Feiern am Chiemsee – Eventportal für die Chiemsee-Region"}],x4=()=>{const t=b.useRef(null),e=Ml(t,{once:!0,margin:"-100px"});return h.jsx("section",{id:"netzwerk",className:"py-24 md:py-40 border-t border-foreground
191/10",children:h.jsxs("div",{className:"container mx-auto px-5",children:[h.jsxs(fe.div,{initial:{opacity:0,y:30},animate:e?{opacity:1,y:0}:{},transition:{duration:.8},className:"mb-16 md:mb-24",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-6",children:"The Collection"}),h.jsxs("h2",{className:"font-headline text-5xl sm:text-7xl md:text-8xl lg:text-9xl text-foreground leading-[0.9] tracking-tighter",children:["VER",h.jsx("br",{}),"BUNDEN."]})]}),h.jsx("div",{ref:t,className:"grid sm:grid-cols-3 gap-4 md:gap-6",children:w4.map((n,r)=>h.jsxs(fe.a,{href:n.url,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},animate:e?{opacity:1,y:0}:{},transition:{duration:.5,delay:r*.12},className:"group block",children:[h.jsxs("div",{className:"relative overflow-hidden mb-4",children:[h.jsx("img",{src:n.image,alt:n.alt,className:"w-full aspect-[16/10] object-cover group-hover:scale-[1.03] transition-all duration-700",loading:"lazy"}),h.jsx("span",{className:"absolute top-4 left-4 bg-foreground text-background font-body text-[10px] tracking-[0.15em] uppercase px-3 py-1.5",children:n.tag})]}),h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("p",{className:"font-body text-sm leading-relaxed",children:[h.jsx("span",{className:"font-semibold uppercase tracking-wide",children:n.name}),h.jsxs("span",{className:"text-muted-foreground font-light",children:[" — ",n.desc]})]}),h.jsx(vj,{className:"w-4 h-4 text-muted-foreground group-hover:text-foreground shrink-0 mt-0.5 transition-colors"})]})]},n.name))})]})})},b4=()=>{const t=b.useRef(null),e=Ml(t,{once:!0,margin:"-100px"});return h.jsx("section",{id:"reservieren",className:"py-24 md:py-40 border-t border-foreground
191/10",children:h.jsx("div",{className:"container mx-auto px-5",children:h.jsxs("div",{ref:t,className:"max-w-3xl mx-auto",children:[h.jsxs(fe.div,{initial:{opacity:0,y:30},animate:e?{opacity:1,y:0}:{},transition:{duration:.8},className:"mb-16",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-6",children:"Reservierung"}),h.jsxs("h2",{className:"font-headline text-5xl sm:text-7xl md:text-8xl text-foreground leading-[0.9] tracking-tighter mb-8",children:["DEIN",h.jsx("br",{}),"TISCH."]}),h.jsx("p",{className:"text-muted-foreground font-body text-sm md:text-base font-light leading-relaxed max-w-lg",children:"Ob romantisches Dinner zu zweit oder Feier mit Freunden – wir freuen uns auf deinen Besuch."})]}),h.jsx(fe.div,{initial:{opacity:0},animate:e?{opacity:1}:{},transition:{duration:.8,delay:.2},className:"border border-border overflow-hidden",children:h.jsx("iframe",{height:"600",width:"100%",frameBorder:"0",src:"https://wdgb3ko1vu9l90n47yms.centralplanner.online/public/webforms/5373-Restaurant-Prien-am-Chiemsee",title:"Tisch reservieren – LUI by Luitpold am See",className:"w-full"})}),h.jsxs("p",{className:"text-muted-foreground font-body text-sm mt-8",children:["oder telefonisch unter"," ",h.jsx("a",{href:"tel:+498051609100",className:"text-foreground hover:underline transition-colors",children:"+49 8051 609 100"})]}),h.jsx("p",{className:"text-muted-foreground/60 font-body text-xs mt-2",children:"Kostenlose Stornierung bis 24h vorher"}),h.jsxs(fe.div,{initial:{opacity:0}
191,animate:e?{opacity:1}:{},transition:{duration:.8,delay:.4},className:"mt-12 grid sm:grid-cols-3 gap-8 divider pt-12",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-2",children:"Adresse"}),h.jsxs("p",{className:"font-body text-sm text-foreground/70 leading-relaxed font-light",children:["Seestraße 110",h.jsx("br",{}),"83209 Prien am Chiemsee"]})]}),h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-2",children:"Öffnungszeiten"}),h.jsxs("p",{className:"font-body text-sm text-foreground/70 leading-relaxed font-light",children:["Mi – So: 11:30 – 22:30",h.jsx("br",{}),"Küche: 12:00 – 21:00",h.jsx("br",{}),"Mo & Di: Ruhetage"]})]}),h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-2",children:"Kontakt"}),h.jsxs("p",{className:"font-body text-sm text-foreground/70 leading-relaxed font-light",children:[h.jsx("a",{href:"tel:+498051609100",className:"hover:text-foreground transition-colors",children:"+49 8051 609 100"}),h.jsx("br",{}),h.jsx("a",{href:"mailto:[email protected]",className:"hover:text-foreground transition-colors",children:"[email protected]"})]})]})]})]})})})},As=()=>h.jsx("footer",{id:"kontakt",className:"bg-background py-16 border-t border-foreground
191/10 scroll-mt-24",children:h.jsxs("div",{className:"container mx-auto px-5",children:[h.jsxs("div",{className:"mb-12",children:[h.jsx("span",{className:"font-headline text-4xl md:text-6xl text-foreground leading-[0.9] tracking-tighter",children:"LUI."}),h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mt-2",children:"by Luitpold am See"})]}),h.jsxs("div",{className:"grid sm:grid-cols-3 gap-8 mb-12",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-3",children:"Navigation"}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx(rn,{to:"/speisekarte",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"Speisekarte"}),h.jsx(rn,{to:"/veranstaltungen",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"Veranstaltungen"}),h.jsx(rn,{to:"/uebernachtung",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"Übernachtung"})]})]}),h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-3",children:"Kontakt"}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("a",{href:"tel:+498051609100",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"+49 8051 609 100"}),h.jsx("a",{href:"mailto:[email protected]",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"[email protected]"})]})]}),h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-3",children:"Rechtliches"}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx(rn,{to:"/impressum",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"Impressum"}),h.jsx(rn,{to:"/datenschutz",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"Datenschutz"}),h.jsx(rn,{to:"/agb",className:"text-foreground/60 hover:text-foreground font-body text-sm transition-colors",children:"AGB"})]})]})]}
191),h.jsx("div",{className:"border-t border-foreground/10 pt-8",children:h.jsxs("p",{className:"text-muted-foreground/60 font-body text-xs",children:["© ",new Date().getFullYear()," LUI by Luitpold am See. Alle Rechte vorbehalten."]})})]})}),S4=()=>{const t=()=>{var e;(e=document.querySelector("#reservieren"))==null||e.scrollIntoView({behavior:"smooth"})};return h.jsx(nE,{children:h.jsx(fe.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{delay:2,type:"spring",stiffness:200},className:"fixed bottom-6 right-6 z-50 md:hidden",children:h.jsx("button",{onClick:t,className:"w-16 h-16 rounded-full bg-foreground text-primary-foreground flex items-center justify-center shadow-lg hover:scale-105 transition-transform","aria-label":"Tisch reservieren",children:h.jsx("span",{className:"font-brush text-sm",children:"LUI"})})})})},k4=()=>{const[t,e]=b.useState(!1);b.useEffect(()=>{if(!localStorage.getItem("cookie-consent")){const s=setTimeout(()=>e(!0),1e3);return()=>clearTimeout(s)}},[]);const n=r=>{localStorage.setItem("cookie-consent",r),e(!1)};return h.jsx(nE,{children:t&&h.jsx(fe.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",stiffness:200,damping:25},className:"fixed bottom-0 left-0 right-0 z-[60] p-4 md:p-6",children:h.jsx("div",{className:"max-w-3xl mx-auto bg-foreground border border-primary-foreground/10 p-6 md:p-8",children:h.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-4 md:gap-8",children:[h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"font-body text-sm font-medium text-primary-foreground mb-2",children:"Datenschutz & Cookies"}),h.jsxs("p",{className:"text-primary-foreground/50 font-body text-xs leading-relaxed",children:["Wir verwenden Cookies, um dir das beste Erlebnis auf unserer Webseite zu bieten."," ",h.jsx("a",{href:"/datenschutz",className:"underline hover:text-primary-foreground transition-colors",children:"Datenschutzerklärung"})]})]}),h.jsxs("div",{className:"flex gap-3 w-full md:w-auto",children:[h.jsx("button",{onClick:()=>n("rejected"),className:"flex-1 md:flex-none px-6 py-2.5 border border-primary-foreground/30 text-primary-foreground/60 hover:text-primary-foreground hover:border-primary-foreground font-body text-xs tracking-wide transition-colors",children:"Ablehnen"}),h.jsx("button",{onClick:()=>n("accepted"),className:"flex-1 md:flex-none px-6 py-2.5 bg-primary-foreground text-foreground hover:bg-primary-foreground/90 font-body text-xs tracking-wide transition-colors",children:"Annehmen"})]})]})})})})},_4=[{icon:Pj,href:"tel:+498051609100",label:"Anrufen"},{icon:Tj,href:"mailto:[email protected]",label:"E-Mail"},{icon:_j,href:"https://www.instagram.com/luitpoldamsee",label:"Instagram"}],E4=()=>h.jsx("div",{className:"fixed right-0 top-1/2 -translate-y-1/2 z-40 hidden md:flex flex-col",children:_4.map(t=>h.jsx("a",{href:t.href,target:t.href.startsWith("http")?"_blank":void 0,rel:t.href.startsWith("http")?"noopener noreferrer":void 0,"aria-label":t.label,className:"flex items-center justify-center w-12 h-12 text-foreground/40 hover:text-foreground border-b border-foreground
191/5 transition-colors duration-300",children:h.jsx(t.icon,{className:"w-4 h-4"})},t.label))}),T4=()=>h.jsxs(h.Fragment,{children:[h.jsx("a",{href:"#main-content",className:"skip-nav",children:"Zum Inhalt springen"}),h.jsxs("main",{id:"main-content",children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"LUI – Modern Dining & Events am Chiemsee"}),h.jsx("meta",{name:"description",content:"LUI by Luitpold am See: Modern Dining, mediterrane Küche & Seeterrasse am Chiemsee. Eventlocation für Hochzeiten & Firmenfeiern. Jetzt reservieren!"}),h.jsx("link",{rel:"canonical",href:"https://luitpold-am-see.de/"}),h.jsx("meta",{property:"og:title",content:"LUI – Modern Dining & Events am Chiemsee"}),h.jsx("meta",{property:"og:description",content:"Modern Dining, mediterrane Küche & Seeterrasse am Chiemsee. Eventlocation für Hochzeiten & Firmenfeiern in Prien."}),h.jsx("meta",{property:"og:url",content:"https://luitpold-am-see.de/"}),h.jsx("meta",{property:"og:type",content:"website"}),h.jsx("meta",{name:"theme-color",content:"#1a1a1a"})]}),h.jsx(Ak,{}),h.jsx(X$,{}),h.jsx(t4,{}),h.jsx(u4,{}),h.jsx(m4,{}),h.jsx(x4,{}),h.jsx(b4,{}),h.jsx(As,{}),h.jsx(S4,{}),h.jsx(E4,{}),h.jsx(k4,{})]})]}),mi=({tag:t,headline:e,subtitle:n,description:r,imageUrl:s,imageAlt:i})=>{const o=!!s;return h.jsxs(h.Fragment,{children:[h.jsx(Ak,{}),h.jsxs("section",{className:`relative w-full overflow-hidden ${o?"h-screen min-h-[700px]":"pt-32 md:pt-40 pb-16 md:pb-24 bg-background"}`,children:[o&&h.jsx(h.Fragment,{children:h.jsxs("div",{className:"absolute inset-0",children:[h.jsx("img",{src:s,alt:i||"",className:"w-full h-full object-cover object-center"}),h.jsx("div",{className:"absolute inset-0 hero-overlay"})]})}),h.jsx("div",{className:`container mx-auto px-5 relative z-10 ${o?"flex flex-col items-center justify-end h-full text-center pb-24 md:pb-32 pt-32":""}`,children:h.jsxs(fe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[h.jsxs(rn,{to:"/",className:`inline-flex items-center gap-2 font-body text-xs tracking-[0.15em] uppercase mb-10 transition-colors ${o?"text-primary-foreground/80 hover:text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:[h.jsx(b1,{className:"w-4 h-4"}),"Zurück"]}),h.jsx("p",{className:`font-body text-xs tracking-[0.3em] uppercase mb-6 ${o?"text-primary-foreground/70":"text-muted-foreground"}`,children:t}),h.jsx("h1",{className:`font-headline text-5xl sm:text-7xl md:text-8xl lg:text-9xl leading-[0.9] tracking-tighter ${o?"text-primary-foreground":"text-foreground"}`,children:e.split(`
192`).map((a,l)=>h.jsxs("span",{children:[l>0&&h.jsx("br",{}),a]},l))}),n&&h.jsx("p",{className:`font-display italic text-xl md:text-2xl mt-6 ${o?"text-primary-foreground/80":"text-muted-foreground"}`,children:n}),r&&h.jsx("p",{className:`font-body text-sm md:text-base max-w-2xl leading-relaxed font-light mt-6 ${o?"text-primary-foreground/80 mx-auto":"text-muted-foreground"}`,children:r})]})})]})]})},C4=()=>h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Impressum – LUI by Luitpold am See"}),h.jsx("meta",{name:"description",content:"Impressum und Kontaktdaten des LUI by Luitpold am See in Prien am Chiemsee."})]}),h.jsx(mi,{tag:"Rechtliches",headline:"IMPRESSUM."}),h.jsx("main",{className:"pb-20 bg-background",children:h.jsx("div",{className:"container mx-auto px-5 max-w-3xl",children:h.jsxs("div",{className:"prose prose-sm font-body text-muted-foreground space-y-6",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"Angaben gemäß § 5 DDG"}),h.jsxs("p",{children:["Luitpold am See",h.jsx("br",{}),"Seestraße 110",h.jsx("br",{}),"83209 Prien am Chiemsee"]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"Kontakt"}),h.jsxs("p",{children:["Telefon: +49 8051 609 100",h.jsx("br",{}),"E-Mail: [email protected]"]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"Umsatzsteuer-ID"}),h.jsx("p",{children:"Umsatzsteuer-Identifikationsnummer gemäß § 27a Umsatzsteuergesetz: [USt-IdNr. einfügen]"})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"Verantwortlich für den Inhalt nach § 18 Abs. 2 MStV"}),h.jsxs("p",{children:["[Name des Verantwortlichen]",h.jsx("br",{}),"Seestraße 110",h.jsx("br",{}),"83209 Prien am Chiemsee"]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"Streitschlic
192htung"}),h.jsxs("p",{children:["Die Europäische Kommission stellt eine Plattform zur Online-Streitbeilegung (OS) bereit:"," ",h.jsx("a",{href:"https://ec.europa.eu/consumers/odr/",target:"_blank",rel:"noopener noreferrer",className:"text-foreground hover:underline",children:"https://ec.europa.eu/consumers/odr/"}),".",h.jsx("br",{}),"Wir sind nicht bereit oder verpflichtet, an Streitbeilegungsverfahren vor einer Verbraucherschlichtungsstelle teilzunehmen."]})]})]})})}),h.jsx(As,{})]}),A4=()=>h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Datenschutzerklärung – LUI by Luitpold am See"}),h.jsx("meta",{name:"description",content:"Datenschutzerklärung des LUI by Luitpold am See – Informationen zur Datenverarbeitung gemäß DSGVO."})]}),h.jsx(mi,{tag:"Rechtliches",headline:`DATEN
193SCHUTZ.`}),h.jsx("main",{className:"pb-20 bg-background",children:h.jsx("div",{className:"container mx-auto px-5 max-w-3xl",children:h.jsxs("div",{className:"prose prose-sm font-body text-muted-foreground space-y-6",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"1. Datenschutz auf einen Blick"}),h.jsx("h3",{className:"font-body text-base font-medium text-foreground",children:"Allgemeine Hinweise"}),h.jsx("p",{children:"Die folgenden Hinweise geben einen einfachen Überblick darüber, was mit Ihren personenbezogenen Daten passiert, wenn Sie diese Website besuchen."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"2. Verantwortliche Stelle"}),h.jsxs("p",{children:["Luitpold am See",h.jsx("br",{}),"Seestraße 110",h.jsx("br",{}),"83209 Prien am Chiemsee",h.jsx("br",{}),"Telefon: +49 8051 609 100",h.jsx("br",{}),"E-Mail: [email protected]"]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"3. Datenerfassung auf dieser Website"}),h.jsx("h3",{className:"font-body text-base font-medium text-foreground",children:"Cookies"}),h.jsx("p",{children:'Unsere Internetseiten verwenden so genannte „Cookies". Cookies sind kleine Datenpakete und richten auf Ihrem Endgerät keinen Schaden an.'}),h.jsx("h3",{className:"font-body text-base font-medium text-foreground",children:"Kontaktformular"}),h.jsx("p",{children:"Wenn Sie uns per Kontaktformular Anfragen zukommen lassen, werden Ihre Angaben zur Bearbeitung der Anfrage bei uns gespeichert. Die Verarbeitung erfolgt auf Grundlage von Art. 6 Abs. 1 lit. b DSGVO."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"4. Ihre Rechte"}),h.jsx("p",{children:"Sie haben jederzeit das Recht auf unentgeltliche Auskunft über Ihre gespeicherten personenbezogenen Daten (Art. 15–21 DSGVO)."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"5. Hosting"}),h.jsx("p",{children:"Diese Website wird extern gehostet. Die Nutzung erfolgt auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO."})]})]})})}),h.jsx(As,{})]}),P4=()=>h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"AGB – LUI by Luitpold am See"}),h.jsx("meta",{name:"description",content:"Allgemeine Geschäftsbedingungen für Reservierungen und Veranstaltungen im LUI by Luitpold am See."})]}),h.jsx(mi,{tag:"Rechtliches",headline:"AGB."}),h.jsx("main",{className:"pb-20 bg-background",children:h.jsx("div",{className:"container mx-auto px-5 max-w-3xl",children:h.jsxs("div",{className:"prose prose-sm font-body text-muted-foreground space-y-6",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"§ 1 Geltungsbereich"}),h.jsx("p",{children:"Diese Allgemeinen Geschäftsbedingungen gelten für alle Reservierungen und Veranstaltungsbuchungen im Restaurant Luitpold am See, Seestraße 110, 83209 Prien am Chiemsee."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"§ 2 Reservierungen"}),h.jsx("p",{children:"Reservierungen sind verbindlich. Bei Nichterscheinen oder Stornierung weniger als 24 Stunden vor dem vereinbarten Termin behalten wir uns vor, eine Aufwandsentschädigung zu erheben."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"§ 3 Veranstaltungen"}),h.jsx("p",{children:"Für die Buchung von Veranstaltungen gelten gesonderte Vereinbarungen, die im jeweiligen Veranstaltungsvertrag festgehalten werden."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"§ 4 Haftung"}),h.jsx("p",{children:"Der Gast haftet für alle von ihm oder seinen Begleitpersonen verursachten SchÃ
193¤den. Die Haftung des Restaurants ist auf Vorsatz und grobe Fahrlässigkeit beschränkt."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"font-body text-lg font-medium text-foreground",children:"§ 5 Schlussbestimmungen"}),h.jsx("p",{children:"Es gilt das Recht der Bundesrepublik Deutschland. Gerichtsstand ist Traunstein."})]})]})})}),h.jsx(As,{})]}),j4="/assets/event-vatertag-ndaMnTgA.jpg",pw=[{date:"2026-03-26",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-04-04",title:"Prienavera Musik Abend",location:"Prienavera Erlebnisbad"},{date:"2026-04-09",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-04-17",title:"Jubiläum Schlosswirtschaft",location:"Schlosswirtschaft Herrenchiemsee"},{date:"2026-04-23",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-04-30",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-05-06",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-05-14",title:"Vatertag deluxe",location:"LUI by Luitpold am See",description:"11–14 Uhr Frühshoppen mit Ziach, 18–23 Uhr Hax'n Party mit Preaner Buam",image:j4},{date:"2026-05-21",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-05-28",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-06-04",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-06-11",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-06-18",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-06-25",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-07-02",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-07-09",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-07-16",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-07-17",title:"Oberkrainer Abend",location:"Schlosswirtschaft Herrenchiemsee",description:"Ab 18:00 Uhr"},{date:"2026-07-23",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-07-30",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-08-06",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-08-13",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-08-20",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-08-27",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-09-27",title:"Morgentanz mit den Riederinger Musikanten",location:"Schlosswirtschaft Herrenchiemsee",description:"Ab 07:00 Uhr"},{date:"2026-10-01",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-10-03",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-10-08",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-10-15",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-10-17",title:"Lui Lounge",location:"LUI by Luitpold am See"},{date:"2026-10-22",title:"Summer Closing – Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-10-24",title:"Lui Lounge original EST 2023",location:"LUI by Luitpold am See",description:"DJ Sophie ab 18 Uhr"},{date:"2026-11-29",title:"Staad wern / Adventssingen",location:"Schlosswirtschaft Herrenchiemsee",description:"Ab 17:30 Uhr"},{date:"2026-12-31",title:"Silvester",location:"Luitpold am See"}],mE=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],R4=["So","Mo","Di","Mi","Do","Fr","Sa"],N4=t=>{const e=new Date(t);return`${R4[e.getDay()]}, ${e.getDate()}. ${mE[e.getMonth()]}`},Fh=t=>!t.toLowerCase().includes("lui lounge"),O4=()=>{const[t,e]=b.useState("all"),n=b.useMemo(()=>{const r=pw.filter(i=>t==="special"?Fh(i.title):t==="lounge"?!Fh(i.title):!0),s=new Map;return r.forEach(i=>
193{const o=mE[new Date(i.date).getMonth()],a=new Date(i.date).getFullYear(),l=`${o} ${a}`;s.has(l)||s.set(l,[]),s.get(l).push(i)}),s},[t]);return h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Events 2026 – LUI by Luitpold am See am Chiemsee"}),h.jsx("meta",{name:"description",content:"Alle Events & Termine im LUI: Live-Musik, kulinarische Abende, saisonale Highlights und die LUI Lounge – am Chiemsee in Prien."}),h.jsx("link",{rel:"canonical",href:"https://luitpold-am-see.de/veranstaltungen"}),h.jsx("meta",{property:"og:title",content:"Events 2026 – LUI by Luitpold am See am Chiemsee"}),h.jsx("meta",{property:"og:description",content:"Live-Musik, kulinarische Abende und LUI Lounge am Chiemsee."}),h.jsx("meta",{property:"og:url",content:"https://luitpold-am-see.de/veranstaltungen"}),h.jsx("meta",{property:"og:type",content:"website"}),h.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":pw.slice(0,20).map(r=>({"@type":"Event",name:r.title,startDate:r.date,eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",description:r.description,location:{"@type":"Place",name:r.location,address:{"@type":"PostalAddress",streetAddress:"Seestraße 110",addressLocality:"Prien am Chiemsee",postalCode:"83209",addressCountry:"DE"}},organizer:{"@type":"Organization",name:"LUI by Luitpold am See",url:"https://luitpold-am-see.de"}}))})})]}),h.jsx(mi,{tag:"Veranstaltungen 2026",headline:`LUI
194EVENTS.`,subtitle:"Events & Termine",description:"Von kulinarischen Abenden über Live-Musik bis hin zu saisonalen Highlights am Chiemsee."}),h.jsx("main",{className:"pb-20 bg-background",children:h.jsxs("div",{className:"container mx-auto px-5",children:[h.jsx(fe.div,{initial:{opacity:0}
194,animate:{opacity:1},transition:{duration:.4,delay:.2},className:"flex gap-3 mb-12 flex-wrap",children:[["all","Alle Events"],["special","Highlights"],["lounge","Lui Lounge"]].map(([r,s])=>h.jsx("button",{onClick:()=>e(r),className:`font-body text-xs tracking-[0.15em] px-5 py-2.5 transition-all uppercase ${t===r?"btn-solid":"btn-invert"}`,children:s},r))}),h.jsx("div",{className:"max-w-3xl space-y-14",children:Array.from(n.entries()).map(([r,s],i)=>h.jsxs(fe.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1*Math.min(i,4)},children:[h.jsxs("h2",{className:"font-body text-lg md:text-xl font-medium mb-6 flex items-center gap-4",children:[h.jsx("span",{className:"w-8 h-[1px] bg-foreground"}),r]}),h.jsx("div",{className:"border-t border-foreground/10",children:s.map((o,a)=>{const l=Fh(o.title);return h.jsx("div",{className:"group py-5 md:py-6 border-b border-foreground/10 hover:pl-2 transition-all duration-300",children:h.jsxs("div",{className:"flex flex-col md:flex-row md:items-start gap-2 md:gap-6",children:[h.jsxs("div",{className:"flex items-center gap-2 md:min-w-[180px] shrink-0",children:[h.jsx(wj,{className:"w-3.5 h-3.5 text-muted-foreground"}),h.jsx("span",{className:"font-body text-sm text-foreground font-medium",children:N4(o.date)})]}),h.jsxs("div",{className:"flex-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[l&&h.jsx(jj,{className:"w-3.5 h-3.5 text-foreground/40"}),h.jsx("h3",{className:"font-body text-sm md:text-base font-medium",children:o.title})]}),o.description&&h.jsx("p",{className:"text-muted-foreground font-body text-xs font-light mt-1",children:o.description}),h.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[h.jsx(Cj,{className:"w-3 h-3 text-muted-foreground"}),h.jsx("span",{className:"text-muted-foreground font-body text-xs",children:o.location})]}),o.image&&h.jsx("div",{className:"mt-4 overflow-hidden",children:h.jsx("img",{src:o.image,alt:o.title,className:"w-full max-w-md aspect-[16/9] object-cover group-hover:scale-[1.02] transition-all duration-700",loading:"lazy"})})]})]})},`${o.date}-${a}`)})})]},r))}),h.jsxs(fe.div,{initial:{opacity:0}
194,animate:{opacity:1},transition:{duration:.6,delay:.5},className:"mt-20",children:[h.jsx("p",{className:"text-muted-foreground font-body text-sm mb-5",children:"Du möchtest deine eigene Veranstaltung im LUI feiern?"}),h.jsx("a",{href:"https://feiern-chiemsee.de",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 btn-invert text-xs tracking-[0.15em] uppercase px-8 py-4",children:"Event anfragen"})]})]})}),h.jsx(As,{})]})},L4=1,I4="0410e40a-76f1-498d-90ae-5d68682fcf71",D4="398df9de-5abc-4ede-96a6-991e38e477fa",M4="/__l5e/assets-v1/0410e40a-76f1-498d-90ae-5d68682fcf71/kaffee-kuchen-brotzeit.jpg",$4="a/v1/398df9de-5abc-4ede-96a6-991e38e477fa/0410e40a-76f1-498d-90ae-5d68682fcf71/kaffee-kuchen-brotzeit.jpg",F4="kaffee-kuchen-brotzeit.jpg",U4=5959212,B4="image/png",z4="2026-07-15T18:54:55Z",V4={version:L4,asset_id:I4,project_id:D4,url:M4,r2_key:$4,original_filename:F4,size:U4,content_type:B4,created_at:z4},W4=1,H4="7521a6e6-92f6-4290-815e-9ea59c0b12b5",K4="398df9de-5abc-4ede-96a6-991e38e477fa",q4="/__l5e/assets-v1/7521a6e6-92f6-4290-815e-9ea59c0b12b5/sonderschiff-chiemsee.jpg",G4="a/v1/398df9de-5abc-4ede-96a6-991e38e477fa/7521a6e6-92f6-4290-815e-9ea59c0b12b5/sonderschiff-chiemsee.jpg",Y4="sonderschiff-chiemsee.jpg",J4=1868485,Z4="image/jpeg",Q4="2026-07-15T18:58:02Z",X4={version:W4,asset_id:H4,project_id:K4,url:q4,r2_key:G4,original_filename:Y4,size:J4,content_type:Z4,created_at:Q4},Ws={hero1:"https://feiern-chiemsee.de/wp-content/uploads/2025/02/113juliagabriel-hochzeit-hochzeitsfotograf-chiemsee-herreninsel-kirche-trauung-jugendstilvilla-hotel-luitpold-bayern-nicolerohdephotography_DSC7264-2048x1367.jpg",hero2:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/102_ZU_0157-2048x1365.jpg",paar1:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/275-20260130-StyledShoot-Fotografie-Julia-Wolf-09-Paarfotos-Tuer-29-2048x1365.jpg",paar2:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/0589JU1-2048x1367.jpg",kirche:"https://feiern-chiemsee.de/wp-content/uploads/2025/02/002juliagabriel-hochzeit-hochzeitsfotograf-chiemsee-herreninsel-kirche-trauung-jugendstilvilla-hotel-luitpold-bayern-nicolerohdephotography_DSC5111-1367x2048.jpg",sekt:"https://feiern-chiemsee.de/wp-content/uploads/2025/02/048juliagabriel-hochzeit-hochzeitsfotograf-chiemsee-herreninsel-kirche-trauung-jugendstilvilla-hotel-luitpold-bayern-nicolerohdephotography_DSC5832-2048x1367.jpg",dinner:"https://feiern-chiemsee.de/wp-content/uploads/2024/12/Bild7.jpg"},e5=[{name:"Rommy Fitrikova",role:"Rezeption & Bankett",img:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/L4A9937-1.jpg"},{name:"Amelie Obermüller",role:"Bankett & Marketing",img:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/L4A0080-1.jpg"},{name:"Sabine Löhmann",role:"Bankett & Blumen",img:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/L4A9947-1.jpg"},{name:"Felix Löhmann",role:"Betriebsleitung Luitpold",img:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/L4A9918-1.jpg"},{name:"Johannes Löhmann",role:"Betriebsleitung Schlosswirtschaft",img:"https://feiern-chiemsee.de/wp-content/uploads/2026/07/L4A0043-1.jpg"}],t5=[{tag:"Trauung",title:"TRAUUNG AUF HERRENCHIEMSEE.",image:Ws.kirche,caption:"Ehemalige Pfarrkirche St. Maria",text:"Die Herreninsel bietet den perfekten Rahmen für eine Trauung voller besonderer Momente. Für eine kirchliche Zeremonie steht die ehemalige Pfarrkirche St. Maria direkt neben der Schlosswirtschaft Herrenchiemsee zur Verfügung. Standesamtliche Trauungen finden im historischen Bibliothekssaal des Augustiner-Chorherrenstifts statt – organisiert über die Gemeinde Breitbrunn. Auch freie Trauungen sind im Bibliothekssaal möglich; die Buchung erfolgt über die Bayerische Schlösserverwaltung."},{tag:"Empfang",title:"SEKTEMPFANG MIT SEEBLICK.",image:Ws.sekt,caption:"Terrasse der Schlosswirtschaft Herrenchiemsee",text:"Nach der Trauung beginnt Euer Hochzeitstag bei einem Sektempfang auf der Terrasse der Schlosswirtschaft. Mit Blick auf den Chiemsee stoßen Familie und Freunde auf Euch an – kleine Häppchen und eine entspannte Atmosphäre schaffen den perfekten Auftakt."},{tag:"Nachmittag",title:"KAFFEE, KUCHEN & BROTZEIT.",image:V4.url,caption:"Hausgemachte Torte & herzhafte Brotzeit",text:"Ob als genussvolle Pause zwischen Trauung und Abendfeier oder als entspannter Programmpunkt mit Euren Gästen – Kaffee, Kuchen und Brotzeit im Panoramarestaurant schaffen einen besonderen Moment. Ein Highlight ist das gemeinsame Anschneiden Eurer Hochzeitstorte, individuell nach Euren Wünschen gestaltet. Dazu ergänzen wir das Angebot auf Wunsch mit einer bayerischen Brotzeit und Fingerfood – süß wie herzhaft."},{tag:"Abend",title:"ABENDMENÜ & FEIER.",image:Ws.dinner,caption:"Schlosswirtschaft Herrenchiemsee",text:"Den kulinarischen Höhepunkt bildet ein individuell abgestimmtes Abendmenü, das wir gemeinsam mit Euch planen. Für Vor- und Nachspeise empfehlen wir unsere beliebten Tischbuffets – locker, gesellig, zum Teilen. Nach dem Essen beginnt der ausgelassene Teil des Abends: Do-it-yourself-Bar, Tanzfläche und viel Raum für unvergessliche Momente."},{tag:"Rückfahrt",title:"SONDERSCHIFF ANS FESTLAND.",image:X4.url,caption:"Chiemsee-Schifffahrt am Anleger Herrenchiemsee",text:"Nach einer unvergesslichen Feier bringt ein Sondersc
194hiff Eure Hochzeitsgesellschaft zurück ans Festland. Die Buchung erfolgt direkt über die Chiemsee-Schifffahrt und ist für Abendveranstaltungen auf der Herreninsel erforderlich. Die Insel muss spätestens um 00:30 Uhr verlassen werden."}],n5=()=>h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Hochzeit am Chiemsee – Heiraten auf Herrenchiemsee"}),h.jsx("meta",{name:"description",content:"Heiraten am Chiemsee: Trauung in St. Maria, Sektempfang mit Seeblick, Abendmenü in der Schlosswirtschaft Herrenchiemsee. Jetzt Hochzeit anfragen."}),h.jsx("link",{rel:"canonical",href:"https://luitpold-am-see.de/hochzeit"}),h.jsx("meta",{property:"og:title",content:"Hochzeit am Chiemsee – Heiraten auf Herrenchiemsee"}),h.jsx("meta",{property:"og:description",content:"Trauung, Sektempfang und Feier auf der Herreninsel – Deine Hochzeit am Chiemsee."}),h.jsx("meta",{property:"og:url",content:"https://luitpold-am-see.de/hochzeit"}),h.jsx("meta",{property:"og:type",content:"website"}),h.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"EventVenue",name:"Schlosswirtschaft Herrenchiemsee – Hochzeitslocation",description:"Hochzeitslocation auf der Herreninsel im Chiemsee mit Panoramarestaurant, Biergarten und Seeblick.",url:"https://luitpold-am-see.de/hochzeit",maximumAttendeeCapacity:250,telephone:"+49-8051-609100"})})]}),h.jsx(mi,{tag:"Hochzeit am Chiemsee",headline:`HEIRATEN AUF DER HERRENINSEL
195ODER DIREKT AM CHIEMSEE-UFER IM LUI.`,subtitle:"Euer Ja-Wort.",description:"Trauung, Sektempfang und Feier an einem der schönsten Orte Bayerns – Eure Hochzeit auf Herrenchiemsee."}),h.jsx("main",{className:"pb-24 bg-background",children:h.jsxs("div",{className:"container mx-auto px-5 max-w-4xl",children:[h.jsxs(fe.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mt-4 space-y-6",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground",children:"Ein ganz besonderer Ort"}),h.jsx("h2",{className:"font-headline text-3xl md:text-5xl leading-[0.95] tracking-tighter",children:"INSELZAUBER & LEBENSGEFÜHL."}),h.jsx("p",{className:"text-muted-foreground font-body leading-relaxed font-light max-w-2xl",children:"Unser Panorama-Restaurant mit variablem Raumangebot für bis zu 250 Personen und bayerischem Biergarten zwischen Kastanien für bis zu 400 Personen. Das historische Haus aus dem 18. Jahrhundert liegt direkt am Schiffsanleger auf einer Anhöhe mit einem wunderschönen Ausblick auf den Chiemsee und in die Berge."})]}),h.jsxs(fe.div,{initial:{opacity:0}
195,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.8},className:"grid grid-cols-2 gap-2 md:gap-4 mt-12",children:[h.jsx("img",{src:Ws.hero1,alt:"Hochzeitspaar vor der Kirche auf Herrenchiemsee",loading:"lazy",className:"w-full aspect-[3/4] object-cover grayscale contrast-[1.05]"}),h.jsx("img",{src:Ws.hero2,alt:"Schlosswirtschaft Herrenchiemsee mit Seeblick",loading:"lazy",className:"w-full aspect-[3/4] object-cover grayscale contrast-[1.05]"})]}),h.jsxs("div",{className:"grid sm:grid-cols-3 gap-8 py-12 my-16 border-y border-foreground/10",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-headline text-4xl mb-1",children:"250"}),h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground",children:"Gäste im Restaurant"})]}),h.jsxs("div",{children:[h.jsx("p",{className:"font-headline text-4xl mb-1",children:"400"}),h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground",children:"Gäste im Biergarten"})]}),h.jsxs("div",{children:[h.jsx("p",{className:"font-headline text-4xl mb-1",children:"1"}),h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground",children:"Insel im Chiemsee"})]})]}),h.jsxs(fe.div,{initial:{opacity:0}
195,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.8},className:"grid grid-cols-2 gap-2 md:gap-4 mb-20",children:[h.jsx("img",{src:Ws.paar1,alt:"Brautpaar auf Herrenchiemsee",loading:"lazy",className:"w-full aspect-[4/3] object-cover grayscale contrast-[1.05]"}),h.jsx("img",{src:Ws.paar2,alt:"Hochzeit am Chiemsee",loading:"lazy",className:"w-full aspect-[4/3] object-cover grayscale contrast-[1.05]"})]}),h.jsx("div",{className:"space-y-24",children:t5.map((t,e)=>h.jsxs(fe.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.6,delay:.05*(e%3)},className:"grid md:grid-cols-2 gap-10 items-start",children:[t.image?h.jsxs("div",{className:"order-first md:order-none",children:[h.jsx("img",{src:t.image,alt:t.caption??t.title,loading:"lazy",className:"w-full aspect-[4/5] object-cover grayscale contrast-[1.05]"}),t.caption&&h.jsx("p",{className:"mt-3 font-body text-xs tracking-[0.2em] uppercase text-muted-foreground",children:t.caption})]}):h.jsx("div",{className:"hidden md:block"}),h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-4",children:t.tag}),h.jsx("h3",{className:"font-headline text-2xl md:text-4xl leading-[0.95] tracking-tighter mb-5",children:t.title}),h.jsx("p",{className:"text-muted-foreground font-body leading-relaxed font-light",children:t.text})]})]},t.title))}),h.jsxs("section",{className:"mt-32",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-4",children:"Ansprechpartner"}),h.jsx("h2",{className:"font-headline text-3xl md:text-5xl leading-[0.95] tracking-tighter mb-12",children:"WIR SIND FÜR EUCH DA."}),h.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-6",children:e5.map(t=>h.jsxs("div",{children:[h.jsx("img",{src:t.img,alt:t.name,loading:"lazy",className:"w-full aspect-square object-cover mb-3 grayscale"}),h.jsx("p",{className:"font-headline text-base leading-tight",children:t.name}),h.jsx("p",{className:"font-body text-xs tracking-[0.05em] text-muted-foreground mt-1",children:t.role})]},t.name))})]}),h.jsxs("section",{className:"mt-24 pt-16 border-t border-foreground
195/10",children:[h.jsx("p",{className:"text-muted-foreground font-body text-sm mb-5",children:"Lasst uns über Eure Hochzeit sprechen."}),h.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[h.jsx("a",{href:"mailto:[email protected]?subject=Hochzeit%20am%20Chiemsee",className:"inline-flex items-center justify-center gap-3 btn-invert text-xs tracking-[0.15em] uppercase px-8 py-4",children:"Anfrage senden"}),h.jsx("a",{href:"tel:+498051609100",className:"inline-flex items-center justify-center gap-3 border border-foreground/20 text-xs tracking-[0.15em] uppercase px-8 py-4 hover:bg-foreground hover:text-background transition-colors",children:"+49 8051 609 100"})]})]})]})}),h.jsx(As,{})]}),gE=({sections:t})=>{const e=t.map(i=>i.heading),[n,r]=b.useState(e[0]??"");b.useEffect(()=>{e.length&&!e.includes(n)&&r(e[0])},[e,n]);const s=t.find(i=>i.heading===n)??t[0];return t.length?h.jsxs(h.Fragment,{children:[e.length>1&&h.jsx(fe.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:.2},className:"flex gap-3 mb-16 flex-wrap",children:e.map(i=>h.jsx("button",{onClick:()=>r(i),className:`font-body text-xs tracking-[0.15em] px-5 py-2.5 transition-all uppercase ${n===i?"btn-solid":"btn-invert"}`,children:i},i))}),h.jsx("div",{className:"max-w-3xl space-y-16",children:s==null?void 0:s.categories.map((i,o)=>h.jsx(r5,{category:i,index:o},`${i.title}-${o}`))})]}):h.jsx("p",{className:"text-muted-foreground font-body text-sm",children:"Diese Speisekarte enthält noch keine Inhalte."})},r5=({category:t,index:e})=>h.jsxs(fe.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.05*Math.min(e,6)},children:[h.jsxs("h3",{className:"font-body text-lg md:text-xl font-medium mb-6 flex items-center gap-4",children:[h.jsx("span",{className:"w-8 h-[1px] bg-foreground"}),t.title]}
195),h.jsx("div",{className:"border-t border-foreground/10",children:t.items.map((n,r)=>h.jsx("div",{className:"group py-4 border-b border-foreground/10 hover:pl-2 transition-all duration-300",children:h.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-baseline gap-3 flex-wrap",children:[h.jsx("span",{className:"font-body text-sm md:text-base font-medium",children:n.name}),n.size&&h.jsx("span",{className:"font-body text-xs text-muted-foreground shrink-0",children:n.size})]}),n.description&&h.jsx("p",{className:"font-display italic text-xs text-muted-foreground font-light mt-0.5 leading-relaxed",children:n.description})]}),h.jsx("span",{className:"font-body text-sm md:text-base font-medium shrink-0 tabular-nums",children:n.price})]})},`${n.name}-${r}`))})]}),yE=[{heading:"Speisen",categories:[{title:"Vorspeisen & Suppen",items:[{name:"Luitpold's Rindertatar",description:"mit Sauerteigbrot und Butter (150 g)",price:"15,90 €"},{name:"Räucherlachs",description:"in Honig-Senf-Mayo auf Kartoffelpuffer mit Salatgarnitur",price:"15,90 €"},{name:"Bärlauchcremesuppe",description:"mit Croutons",price:"6,90 €"},{name:"Hausgemachte Rinderbrühe",description:"mit Pfannkuchenstreifen",price:"6,60 €"},{name:"Hausgemachte Rinderbrühe",description:"mit Kaspressknödel-Würfeln und Röstzwiebeln",price:"6,60 €"},{name:"Kleiner Beilagensalat",description:"mit Balsamicodressing",price:"6,90 €"}]},{title:"Salate",items:[{name:"Großer Salatteller",description:"mit Balsamicodressing und gerösteten Körnern",price:"13,30 €"},{name:"Großer Salatteller",description:"mit Kaspressknödel",price:"16,70 €"},{name:"Großer Salatteller",description:"mit gebratenen Zanderstreifen",price:"22,90 €"},{name:"Großer Salatteller",description:"mit gebratenen Hähnchenstreifen",price:"19,80 €"}]},{title:"Hauptspeisen",items:[{name:"Ofenfrischer Schweinebraten",description:"mit Kartoffelknödel und Krautsalat",price:"18,90 €"},{name:"Jägerschnitzel",description:"in Waldpilzrahm dazu Spätzle",price:"20,90 €"},{name:'Lammragout „Irish Stew" Art',description:"mit Kartoffeln",price:"19,80 €"},{name:"Gebratenes Chiemsee-Hechtfilet",description:"auf Bärlauchrisotto und Sauce Hollandaise",price:"24,90 €"},{name:"Weiße Tagliatelle",description:"in Bärlauchpesto geschwenkt mit Kirschtomaten und Parmesanspähne",price:"16,80 €"},{name:"Lui's Knödeltrio",description:"Spinat-, Topfen- & Kaspressknödel mit Butter & Bergkäsespähne",price:"15,90 €"},{name:"Allgäuer Käsespätzle",description:"mit Röstzwiebeln und Salat",price:"15,90 €"},{name:"Nudeltaschen mit Steinpilzfüllung",description:"in leichtem Kräuterrahm und Kirschtomaten",price:"18,10 €"},{name:"Gebratenes Zanderfilet",description:"auf Spinatrisotto mit Sauce Hollandaise",price:"22,90 €"},{name:"Gebratenes Saiblingsfilet",description:"mit Tomaten-Zwiebelschmelze und Kartoffeln",price:"25,90 €"},{name:"Hähnchenschnitzel",description:"in Cornflakespanade und Pommes Frites",price:"21,50 €"},{name:'Schweinschnitzel „Wiener Art"',description:"mit Preiselbeeren und Pommes Frites",price:"20,90 €"},{name:"Hausgemachtes Rindergulasch",description:"mit Spätzle und kleinem Salat",price:"21,20 €"},{name:"Jan's Burger",description:"gebratenes Patty mit hausgemachter Sauce, Salat, Gouda, Speck und Zwiebeln dazu Pommes Frites und Cole Slaw",price:"19,60 €"},{name:"Maik's Zwiebelrostbraten",description:"mit Zwiebelsoße, grünen Bohnen und Pommes Frites",price:"27,80 €"},{name:"Currywurst",description:"mit Pommes Frites",price:"12,40 €"}]},{title:"Kindergerichte",items:[{name:"Kinderschnitzel",description:"mit Pommes Frites und Ketchup",price:"8,60 €"},{name:"Spätzle mit Soße",price:"4,30 €"},{name:"Portion Pommes Frites",description:"mit Ketchup",price:"4,40 €"},{name:"Räuberteller",price:"2,00 €"}]},{title:"Brotzeiten",items:[{name:"Bayerischer Wurstsalat",description:"mit Zwiebeln und Brot",price:"10,90 €"},{name:"Obazda",description:"mit Radiesalfrischkäse und Brez'n",price:"10,90 €"}]}
195,{title:"Nachspeisen",items:[{name:"Mousse von der dunklen Schokolade",description:"auf Beerenragout",price:"9,80 €"},{name:"Kleines Tiramisu",price:"8,90 €"},{name:"Kaiserschmarrn",description:"mit Rosinen & Apfelmus",price:"9,80 €"},{name:"Kaiserschmarrn groß",description:"mit Rosinen & Apfelmus",price:"13,80 €"}]}]},{heading:"Getränke",categories:[{title:"Alkoholfreie Getränke",items:[{name:"Luitpold's Durstlöscher",description:"Holunder, Limette, Minze",size:"0,5 l",price:"5,40 €"},{name:"Tafelwasser",description:"spritzig oder still",size:"0,3 l",price:"3,70 €"},{name:"Tafelwasser",description:"spritzig oder still",size:"0,5 l",price:"4,70 €"},{name:"Adelholzener Mineralwasser",description:"spritzig oder still",size:"0,75 l",price:"7,10 €"},{name:"Coca-Cola, Fanta, Sprite, Mezzo Mix",size:"0,3 l",price:"3,90 €"},{name:"Coca-Cola, Fanta, Sprite, Mezzo Mix",size:"0,5 l",price:"4,90 €"},{name:"Coca-Cola light",size:"0,33 l",price:"4,50 €"},{name:"Organics by Red Bull",description:"Bitter Lemon, Tonic Water, Ginger Ale",size:"0,2 l",price:"4,50 €"},{name:"Saftschorle",description:"Apfel, Apfel naturtrüb, Orange, Johannisbeere, Rhabarber, Maracuja",size:"0,3 l",price:"3,80 €"},{name:"Rauch Säfte",description:"Apfel, Apfel naturtrüb, Orange, Johannisbeere, Rhabarber, Maracuja",size:"0,2 l",price:"3,80 €"}]},{title:"Aperitif & Sekt",items:[{name:"Glas Spumante",description:"Dongjone, Weingut Dal Din, Prosecco",size:"0,1 l",price:"3,90 €"},{name:"Aperol Spritz",size:"0,25 l",price:"7,30 €"},{name:"Hugo",description:"Sekt, Wasser, Holunderblütensirup",size:"0,25 l",price:"7,30 €"},{name:"Lillet Wild Berry",description:"Wild Berry, Wasser, Lillet",size:"0,25 l",price:"7,30 €"},{name:"Aperol Lemon",description:"Bitter Lemon, Aperol",size:"0,25 l",price:"7,30 €"},{name:"Campari Orange oder Campari Soda",description:"Orangensaft oder Wasser, Campari",size:"0,25 l",price:"7,30 €"},{name:"Enzo Spritz – alkoholfrei",description:"alkoholfreier Sekt, Wasser, Enziansirup",size:"0,25 l",price:"7,30 €"},{name:"Mandarinen Spritz – alkoholfrei",description:"alkoholfreier Sekt, Wasser, Mandarinensirup",size:"0,25 l",price:"7,30 €"},{name:"Crodino Spritz – alkoholfrei",size:"0,3 l",price:"7,30 €"}]},{title:"Weinempfehlung",items:[{name:"Muskateller",description:"Weingut Burnikel",size:"0,1 l",price:"4,50 €"},{name:"Muskateller",description:"Weingut Burnikel",size:"0,75 l",price:"26,00 €"},{name:"Rosé in Bloom",description:"Weingut Hannes Reeh, Neusiedlersee",size:"0,1 l",price:"4,50 €"},{name:"Rosé in Bloom",description:"Weingut Hannes Reeh, Neusiedlersee",size:"0,75 l",price:"25,60 €"},{name:"Aufricht Turteltaube",description:"Bodensee Baden",size:"0,1 l",price:"5,00 €"},{name:"Aufricht Turteltaube",description:"Bodensee Baden",size:"0,75 l",price:"31,00 €"}]},{title:"Bier",items:[{name:"Radler",description:"Helles mit Zitronenlimonade",size:"0,5 l",price:"5,20 €"},{name:"Dunkles Bier",size:"0,5 l",price:"5,20 €"},{name:"Alkoholfreies Helles",size:"0,5 l",price:"5,20 €"},{name:"Pils",size:"0,3 l",price:"4,90 €"},{name:"Hefe Weißbier vom Fass",size:"0,3 l",price:"4,70 €"},{name:"Hefe Weißbier vom Fass",size:"0,5 l",price:"5,50 €"},{name:"Russ'n",description:"Weißbier mit Zitronenlimonade",size:"0,5 l",price:"5,50 €"},{name:"Alkoholfreies Weißbier",size:"0,5 l",price:"5,50 €"},{name:"Leichtes Weißbier",size:"0,5 l",price:"5,50 €"},{name:"Dunkles Weißbier",size:"0,5 l",price:"5,50 €"}]},{title:"Wein offen — Weißwein",items:[{name:"Riesling",description:"Weingut Burnikel",size:"0,25 l",price:"5,80 €"},{name:"Chardonnay",description:"Weingut Wieninger, Wien",size:"0,25 l",price:"10,80 €"},{name:"Sauvignon Blanc",description:"Weingut Burnikel",size:"0,25 l",price:"8,90 €"},{name:"Weißburgunder",description:"Weingut Christian Fischer, Thermen Region",size:"0,25 l",price:"10,80 €"}]},{title:"Wein offen — Roséwein",items:[{name:"Rosé Hasen",description:"Weingut Pfaffl, Weinviertel",size:"0,25 l",price:"6,90 €"},{name:"WUMA!! Rosé × Luitpold Sonderedition",size:"0,25 l",price:"7,90 €"}]},{title:"Wein offen — Rotwein",items:[{name:"Zweigelt",description:"Weingut Dockner Tom, Traisental",size:"0,25 l",price:"5,80 €"},{name:'Pinot Noir „Butcher"',description:"Weingut Schwarz, Neusiedlersee",size:"0,25 l",price:"9,40 €"},{name:"Marena Merlot",description:"Weingut Cusumano, Sizilien",size:"0,25 l",price:"9,40 €"}]},{title:"Warme Getränke",items:[{name:"Espresso",price:"2,90 €"},{name:"Doppelter Espresso",price:"3,70 €"},{name:"Cappuccino",price:"4,90 €"},{name:"Latte Macchiato",price:"5,60 €"},{name:"Haferl Kaffee",price:"4,90 €"},{name:"Haferl Milchkaffee",price:"4,90 €"},{name:"Haferl Tee",price:"4,30 €"},{name:"Haferl Trinkschokolade",description:"mit Sahne",price:"5,40 €"},{name:"Laktosefreie Alternative",price:"+0,50 €"}]},{title:"Schnäpse",items:[{name:"Williams",size:"2 cl",price:"3,90 €"},{name:"Obstler",size:"2 cl",price:"3,90 €"},{name:"Marille",size:"2 cl",price:"3,90 €"},{name:"Enzian",size:"2 cl",price:"3,90 €"},{name:"Linie",size:"2 cl",price:"3,90 €"},{name:"Grappa Nonino",size:"2 cl",price:"4,90 €"},{name:"Ramazotti",size:"4 cl",price:"5,90 €"}]},{title:"Longdrinks & Cocktails",items:[{name:"Rüscherl",description:"Asbach Uralt, Coca-Cola",price:"4,90 €"},{name:"Gin Tonic",description:"Gin, Tonic Water by Red Bull, Gurke",price:"7,90 €"},{name:"Cuba Libre",description:"Havana Club 3J, Kokossirup, Coca-Cola, Limette",price:"7,90 €"}
195,{name:"Bacardi Cola",description:"Bacardi, Coca-Cola",price:"7,90 €"},{name:"Whiskey Cola",description:"Bulleit Whiskey, Coca-Cola",price:"7,90 €"},{name:"Vodka Bull oder Vodka Lemon",description:"Vodka, Red Bull oder Bitter Lemon",price:"7,90 €"},{name:"Espresso Martini",description:"Vodka, Espresso, Kahlua, Zucker",price:"8,90 €"},{name:"Asbach Kaffee Felix",description:"Asbach Uralt, Kaffee",price:"7,90 €"}]},{title:"Sekt & Schaumwein — Flaschen",items:[{name:"Spumante Dongjone",description:"Weingut Dal Din, Prosecco",size:"0,75 l",price:"23,90 €"},{name:"Spumante Rosé Brut Lèna",description:"Weingut Dal Din",size:"0,75 l",price:"26,90 €"},{name:"Sekt Brut",description:"Weingut Bründlmayer, Kamptal",size:"0,75 l",price:"49,00 €"},{name:"Hop and Grape",description:"Weingut Daniel Mattern, Rheinhessen",size:"0,75 l",price:"28,00 €"}]},{title:"Weißwein — Flaschen",items:[{name:"Muskateller",description:"Weingut Burnikel",size:"0,75 l",price:"26,00 €"},{name:"Chardonnay",description:"Weingut Wieninger, Wien",size:"0,75 l",price:"39,80 €"},{name:"Chardonnay Select",description:"Weingut Wieninger, Wien",size:"1,5 l",price:"93,40 €"},{name:"Sauvignon Blanc Kalk & Kreide",description:"Weingut Tement",size:"0,75 l",price:"39,80 €"},{name:"Weißer Burgunder Classic",description:"Weingut Christian Fischer, Thermen Region",size:"0,75 l",price:"31,30 €"},{name:"Weisserburgunder Pinot Blanc",description:"Bioweinbau Christian Mrozowski, Weinviertel",size:"0,75 l",price:"28,50 €"},{name:"Lugana Frati",description:"Weingut Ca dei Frati, Lugana",size:"0,75 l",price:"36,30 €"}]},{title:"Roséwein — Flaschen",items:[{name:"Sundowner Rosé",description:"Weingut Burnikel",size:"0,75 l",price:"25,40 €"},{name:"Rosé Hasen",description:"Weingut Pfaffl, Weinviertel",size:"0,75 l",price:"23,40 €"},{name:"Rosé in Bloom",description:"Weingut Hannes Reeh, Neusiedlersee",size:"0,75 l",price:"25,60 €"},{name:"Rosé in Bloom",description:"Weingut Hannes Reeh, Neusiedlersee",size:"1,5 l",price:"59,00 €"},{name:"AIX Rosé",description:"Maison Saint Aix, Provence",size:"0,75 l",price:"36,30 €"},{name:"AIX Rosé",description:"Maison Saint Aix, Provence",size:"1,5 l",price:"81,70 €"}]},{title:"Rotwein — Flaschen",items:[{name:"Puszta Libre!",description:"Weingut Claus Preisinger, Neusiedlersee",size:"0,75 l",price:"26,00 €"},{name:"Cabernet Sauvignon",description:"Weingut Scheiblhofer, Neusiedlersee",size:"0,75 l",price:"28,50 €"},{name:"Lovely Merlot",description:"Weingut Scheiblhofer, Neusiedlersee",size:"0,75 l",price:"25,60 €"},{name:"Cabernet Sauvignon unplugged",description:"Weingut Hannes Reeh, Neusiedlersee",size:"0,75 l",price:"52,60 €"},{name:"Marena Merlot",description:"Weingut Cusumano, Sizilien",size:"0,75 l",price:"25,60 €"},{name:"Primitivo Rifugio IGT",description:"Weingut Conti Zecca",size:"0,75 l",price:"36,70 €"},{name:"Rioja Vina Alberdi Reserva",description:"Weingut La Rioja Alta",size:"0,75 l",price:"39,20 €"},{name:"Epistem",description:"Weingut Atlan und Artisan, Yecla",size:"0,75 l",price:"32,50 €"},{name:"Epistem No. 3",description:"Weingut Atlan und Artisan, Yecla",size:"0,75 l",price:"39,40 €"}]}]}];function s5(t,e,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(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}const i5=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class zg extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class o5 extends zg{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class mw extends zg{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class gw extends zg{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Rp;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Rp||(Rp={}));class a5{constructor(e,{headers:n={},customFetch:r,region:s=Rp.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=i5(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return s5(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:d}=r;let f={},{region:p}=r;p||(p=this.region);const m=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,m.searchParams.set("forceFunctionRegion",p));let g;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",g=c):typeof c=="string"?(f["Content-Type"]="text/plain",g=c):typeof FormData<"u"&&c instanceof FormData?g=c:(f["Content-Type"]="application/json",g=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?g=JSON.stringify(c):g=c;let x=u;d&&(o=new AbortController,i=setTimeout(()=>
195o.abort(),d),u?(x=o.signal,u.addEventListener("abort",()=>o.abort())):x=o.signal);const y=yield this.fetch(m.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:g,signal:x}).catch(k=>{throw new o5(k)}),v=y.headers.get("x-relay-error");if(v&&v==="true")throw new mw(y);if(!y.ok)throw new gw(y);let w=((s=y.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return w==="application/json"?S=yield y.json():w==="application/octet-stream"||w==="application/pdf"?S=yield y.blob():w==="text/event-stream"?S=y:w==="multipart/form-data"?S=yield y.formData():S=yield y.text(),{data:S,error:null,response:y}}catch(a){return{data:null,error:a,response:a instanceof gw||a instanceof mw?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const vE=3,yw=t=>Math.min(1e3*2**t,3e4),l5=[520,503],wE=["GET","HEAD","OPTIONS"];var c5=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function vw(t,e){return new Promise(n=>{if(e!=null&&e.aborted){n();return}const r=setTimeout(()=>{e==null||e.removeEventListener("abort",s),n()},t);function s(){clearTimeout(r),n()}e==null||e.addEventListener("abort",s)})}function u5(t,e,n,r){return!(!r||n>=vE||!wE.includes(t)||!l5.includes(e))}var d5=class{constructor(t){var e,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=t.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=t.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=t.retry)!==null&&i!==void 0?i:!0,t.fetch?this.fetch=t.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(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){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 c=new Headers(n.headers);o>0&&c.set("X-Retry-Count",String(o));let u;try{u=await r(n.url.toString(),{method:n.method,headers:c,body:JSON.stringify(n.body,(d,f)=>typeof f=="bigint"?f.toString():f),signal:n.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!wE.includes(n.method))throw d;if(n.retryEnabled&&o<vE){const f=yw(o);o++,await vw(f,n.signal);continue}throw d}if(u5(n.method,u.status,o,n.retryEnabled)){var a,l;const d=(a=(l=u.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&a!==void 0?a:null,f=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:yw(o);await u.text(),o++,await vw(f,n.signal);continue}return await n.processResponse(u)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var a;let l="",c="",u="";const d=o==null?void 0:o.cause;if(d){var f,p,m,g;const v=(f=d==null?void 0:d.message)!==null&&f!==void 0?f:"",w=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";l=`${(m=o==null?void 0:o.name)!==null&&m!==void 0?m:"FetchError"}: ${o==null?void 0:o.message}`,l+=`
196
197Caused by: ${(g=d==null?void 0:d.name)!==null&&g!==void 0?g:"Error"}: ${v}`,w&&(l+=` (${w})`),d!=null&&d.stack&&(l+=`
198${d.stack}`)}else{var x;l=(x=o==null?void 0:o.stack)!==null&&x!==void 0?x:""}const y=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",y>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${y} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",y>this.urlLengthLimit&&(c+=`. Your request URL is ${y} 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:c,code:u},data:null,count:null,status:0,statusText:""}}
198)),i.then(t,e)}async processResponse(t){var e=this;let n=null,r=null,s=null,i=t.status,o=t.statusText;if(t.ok){var a,l;if(e.method!=="HEAD"){var c;const f=await t.text();f===""||(e.headers.get("Accept")==="text/csv"||e.headers.get("Accept")&&(!((c=e.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?r=f:r=JSON.parse(f))}const u=(a=e.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),d=(l=t.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");u&&d&&d.length>1&&(s=parseInt(d[1])),e.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 u=await t.text();try{n=JSON.parse(u),Array.isArray(n)&&t.status===404&&(r=[],n=null,i=200,o="OK")}catch{t.status===404&&u===""?(i=204,o="No Content"):n={message:u}}if(n&&e.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}},h5=class extends d5{select(t){let e=!1;const n=(t??"*").split("").map(r=>/\s/.test(r)&&!e?"":(r==='"'&&(e=!e),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!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},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${t}`),this}range(t,e,{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,`${t}`),this.url.searchParams.set(i,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[t?"analyze":null,e?"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(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const ww=new RegExp("[,()]");var Ai=class extends h5{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&ww.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&ww.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{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(t,`${s}fts${i}.${e}`),this}match(t){return Object.entries(t).filter(([e,n])=>
198n!==void 0).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},f5=class{constructor(t,{headers:e={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=t,this.headers=new Headers(e),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(t,e){const{head:n=!1,count:r}=e??{},s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new Ai({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(e&&o.append("Prefer",`count=${e}`),n||o.append("Prefer","missing=default"),Array.isArray(t)){const a=t.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
1980){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new Ai({method:s,url:i,headers:o,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,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`),e!==void 0&&a.searchParams.set("on_conflict",e),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(t)){const c=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);a.searchParams.set("columns",u.join(","))}}return new Ai({method:o,url:a,headers:l,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Ai({method:r,url:s,headers:i,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new Ai({method:n,url:r,headers:s,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function cl(t){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cl(t)}function p5(t,e){if(cl(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function m5(t){var e=p5(t,"string");return cl(e)=="symbol"?e:e+""}function g5(t,e,n){return(e=m5(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function yc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xw(Object(n),!0).forEach(function(r){g5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var y5=class xE{constructor(e,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:a}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(c,u)=>{const d=new AbortController,f=setTimeout(()=>d.abort(),i),p=u==null?void 0:u.signal;if(p){if(p.aborted)return clearTimeout(f),l(c,u);const m=()=>{clearTimeout(f),d.abort()};return p.addEventListener("abort",m,{once:!0}),l(c,yc(yc({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(f),p.removeEventListener("abort",m)})}return l(c,yc(yc({},u),{},{signal:d.signal})).finally(()=>clearTimeout(f))}:this.fetch=l,this.retry=a}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new f5(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new xE(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${e}`);let c;const u=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(u)),d=r&&Object.values(n).some(u);d?(a="POST",c=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([p,m])=>m!==void 0).map(([p,m])=>[p,Array.isArray(m)?`{${m.join(",")}}`:`${m}
198`]).forEach(([p,m])=>{l.searchParams.append(p,m)})):(a="POST",c=n);const f=new Headers(this.headers);return d?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new Ai({method:a,url:l,headers:f,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class v5{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.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"&&n.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.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 s=globalThis.process;if(s){const i=s.versions;if(i&&i.node){const o=i.node,a=parseInt(o.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
199import ws from "ws"
200new 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 e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
201
202Suggested solution: ${e.workaround}`),new Error(n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const w5="2.105.4",x5=`realtime-js/${w5}`,b5="1.0.0",bE="2.0.0",S5=bE,k5=1e4,_5=100,qr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},SE={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Np={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class E5{constructor(e){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=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,r;const s=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(e){var n,r;const s=(r=(n=e.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(e,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(e,n,r){var s,i;const o=e.topic,a=(s=e.ref)!==null&&s!==void 0?s:"",l=(i=e.join_ref)!==null&&i!==void 0?i:"",c=e.payload.event,u=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+d.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let m=new DataView(p),g=0;m.setUint8(g++,this.KINDS.userBroadcastPush),m.setUint8(g++,l.length),m.setUint8(g++,a.length),m.setUint8(g++,o.length),m.setUint8(g++,c.length),m.setUint8(g++,d.length),m.setUint8(g++,n),Array.from(l,y=>
202m.setUint8(g++,y.charCodeAt(0))),Array.from(a,y=>m.setUint8(g++,y.charCodeAt(0))),Array.from(o,y=>m.setUint8(g++,y.charCodeAt(0))),Array.from(c,y=>m.setUint8(g++,y.charCodeAt(0))),Array.from(d,y=>m.setUint8(g++,y.charCodeAt(0)));var x=new Uint8Array(p.byteLength+r.byteLength);return x.set(new Uint8Array(p),0),x.set(new Uint8Array(r),p.byteLength),x.buffer}decode(e,n){if(this._isArrayBuffer(e)){let r=this._binaryDecode(e);return n(r)}if(typeof e=="string"){const r=JSON.parse(e),[s,i,o,a,l]=r;return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(e){const n=new DataView(e),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,n,s)}}_decodeUserBroadcast(e,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 c=r.decode(e.slice(l,l+s));l=l+s;const u=r.decode(e.slice(l,l+i));l=l+i;const d=r.decode(e.slice(l,l+o));l=l+o;const f=e.slice(l,e.byteLength),p=a===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,m={type:this.BROADCAST_EVENT,event:u,payload:p};return o>0&&(m.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:m}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([r])=>n.includes(r)))}}var _e;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(_e||(_e={}));const bw=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return e?Object.keys(e).reduce((i,o)=>(i[o]=T5(o,t,e,s),i),{}):{}},T5=(t,e,n,r)=>{const s=e.find(a=>a.name===t),i=s==null?void 0:s.type,o=n[t];return i&&!r.includes(i)?kE(i,o):Op(o)},kE=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return j5(e,n)}switch(t){case _e.bool:return C5(e);case _e.float4:case _e.float8:case _e.int2:case _e.int4:case _e.int8:case _e.numeric:case _e.oid:return A5(e);case _e.json:case _e.jsonb:return P5(e);case _e.timestamp:return R5(e);case _e.abstime:case _e.date:case _e.daterange:case _e.int4range:case _e.int8range:case _e.money:case _e.reltime:case _e.text:case _e.time:case _e.timestamptz:case _e.timetz:case _e.tsrange:case _e.tstzrange:return Op(e);default:return Op(e)}},Op=t=>t,C5=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},A5=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},P5=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},j5=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let i;const o=t.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>kE(e,a))}return t},R5=t=>typeof t=="string"?t.replace(" ","T"):t,_E=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};var Na=t=>typeof t=="function"?t:function(){return t},N5=typeof self<"u"?self:null,Pi=typeof window<"u"?window:null,Hn=N5||Pi||globalThis,O5="2.0.0",L5=1e4,I5=1e3,Yn={connecting:0,open:1,closing:2,closed:3},jt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},fr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Lp={longpoll:"longpoll",websocket:"websocket"},D5={complete:4},Ip="base64url.bearer.phx.",vc=class{constructor(t,e,n,r){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 21,724 bytes, lines 202-203
202oks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,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(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:t,response:e,_ref:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(e))}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,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},EE=class{constructor(t,e){this.callback=t,this.timerCalc=e,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))}},M5=class{constructor(t,e,n){this.state=jt.closed,this.topic=t,this.params=Na(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new vc(this,fr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new EE(()=>{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=jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=jt.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=jt.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=jt.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 vc(this,fr.leave,Na({}),this.timeout).send(),this.state=jt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(fr.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(t=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=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=jt.closed,this.bindings=[]}onClose(t){this.on(fr.close,t)}onError(t){return this.on(fr.error,e=>t(e))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter(n=>!(n.event===t&&(typeof e>"u"||e===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new vc(this,t,function(){return e},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=jt.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(fr.close,"leave")},n=new vc(this,fr.leave,Na({}),t);return n.receive("ok",()=>e()).receive("timeout",()=>e()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}filterBindings(t,e,n){return!0}isMember(t,e,n,r){return this.topic!==t?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=jt.joining,this.joinPush.resend(t))}trigger(t,e,n,r){let s=this.onMessage(t,e,n,r);if(e&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===t&&this.filterBindings(o,e,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===jt.closed}isErrored(){return this.state===jt.errored}isJoined(){return this.state===jt.joined}isJoining(){return this.state===jt.joining}isLeaving(){return this.state===jt.leaving}},Mu=class{static request(t,e,n,r,s,i,o){if(Hn.XDomainRequest){let a=new Hn.XDomainRequest;return this.xdomainRequest(a,t,e,r,s,i,o)}else if(Hn.XMLHttpRequest){let a=new Hn.XMLHttpRequest;return this.xhrRequest(a,t,e,n,r,s,i,o)}else{if(Hn.fetch&&Hn.AbortController)return this.fetchRequest(t,e,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,n,r,s,i,o){let a={method:t,headers:n,body:r},l=null;return s&&(l=new AbortController,setTimeout(()=>l.abort(),s),a.signal=l.signal),Hn.fetch(e,a).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>o&&o(c)).catch(c=>{c.name==="AbortError"&&i?i():o&&o(null)}),l}static xdomainRequest(t,e,n,r,s,i,o){return t.timeout=s,t.open(e,n),t.onload=()=>{let a=this.parseJSON(t.responseText);o&&o(a)},i&&(t.ontimeout=i),t.onprogress=()=>{},t.send(r),t}static xhrRequest(t,e,n,r,s,i,o,a){t.open(e,n,!0),t.timeout=i;for(let[l,c]of Object.entries(r))t.setRequestHeader(l,c);return t.onerror=()=>a&&a(null),t.onreadystatechange=()=>{if(t.readyState===D5.complete&&a){let l=this.parseJSON(t.responseText);a(l)}},o&&(t.ontimeout=o),t.send(s),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let s=e?`${e}[${r}]`:r,i=t[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},$5=t=>{let e="",n=new Uint8Array(t),r=n.byteLength;for(let s=0;s<r;s++)e+=String.fromCharCode(n[s]);return btoa(e)},bi=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(Ip)&&(this.authToken=atob(e[1].slice(Ip.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(t),this.readyState=Yn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Lp.websocket),"$1/"+Lp.longpoll)}endpointURL(){return Mu.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=Yn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Yn.open||this.readyState===Yn.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:n,token:r,messages:s}=e;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=Yn.open,this.onopen({}),this.poll();break;case 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(t){typeof t!="string"&&(t=$5(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(`
203`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,n){for(let s of this.reqs)s.abort();this.readyState=Yn.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(t,e,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=Mu.request(t,this.endpointURL(),e,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},F5=class ma{constructor(e,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,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=ma.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=ma.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=ma.syncDiff(this.state,s,i,o),a())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return ma.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,n,r,s){let i=this.clone(e),o={},a={};return this.map(i,(l,c)=>{n[l]||(a[l]=c)}),this.map(n,(l,c)=>{let u=i[l];if(u){let d=c.metas.map(g=>g.phx_ref),f=u.metas.map(g=>g.phx_ref),p=c.metas.filter(g=>f.indexOf(g.phx_ref)<0),m=u.metas.filter(g=>d.indexOf(g.phx_ref)<0);p.length>0&&(o[l]=c,o[l].metas=p),m.length>0&&(a[l]=this.clone(u),a[l].metas=m)}else o[l]=c}),this.syncDiff(i,{joins:o,leaves:a},r,s)}static syncDiff(e,n,r,s){let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(a,l)=>{let c=e[a];if(e[a]=this.clone(l),c){let u=e[a].metas.map(f=>f.phx_ref),d=c.metas.filter(f=>u.indexOf(f.phx_ref)<0);e[a].metas.unshift(...d)}r(a,c,l)}),this.map(o,(a,l)=>{let c=e[a];if(!c)return;let u=l.metas.map(d=>d.phx_ref);c.metas=c.metas.filter(d=>u.indexOf(d.phx_ref)<0),s(a,c,l),c.metas.length===0&&delete e[a]}),e}static list(e,n){return n||(n=function(r,s){return s}),this.map(e,(r,s)=>n(r,s))}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static clone(e){return JSON.parse(JSON.stringify(e))}},wc={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,r,s,i,o]=JSON.parse(t);return e({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(t){let{join_ref:e,ref:n,event:r,topic:s,payload:i}=t,o=this.META_LENGTH+e.length+n.length+s.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,e.length),l.setUint8(c++,n.length),l.setUint8(c++,s.length),l.setUint8(c++,r.length),Array.from(e,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(s,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(a.byteLength+i.byteLength);return u.set(new Uint8Array(a),0),u.set(new Uint8Array(i),a.byteLength),u.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,r);case this.KINDS.reply:return this.decodeReply(t,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,r)}},decodePush(t,e,n){let r=e.getUint8(1),s=e.getUint8(2),i=e.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(t.slice(o,o+r));o=o+r;let l=n.decode(t.slice(o,o+s));o=o+s;let c=n.decode(t.slice(o,o+i));o=o+i;let u=t.slice(o,t.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:u}},decodeReply(t,e,n){let r=e.getUint8(1),s=e.getUint8(2),i=e.getUint8(3),o=e.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(t.slice(a,a+r));a=a+r;let c=n.decode(t.slice(a,a+s));a=a+s;let u=n.decode(t.slice(a,a+i));a=a+i;let d=n.decode(t.slice(a,a+o));a=a+o;let f=t.slice(a,t.byteLength),p={status:d,response:f};return{join_ref:l,ref:c,topic:u,event:fr.reply,payload:p}},decodeBroadcast(t,e,n){let r=e.getUint8(1),s=e.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(t.slice(i,i+r));i=i+r;let a=n.decode(t.slice(i,i+s));i=i+s;let l=t.slice(i,t.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},U5=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||L5,this.transport=e.transport||Hn.WebSocket||bi,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=Hn&&Hn.sessionStorage}catch{}this.sessionStore=e.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=wc.encode.bind(wc),this.defaultDecoder=wc.decode.bind(wc),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==bi?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;Pi&&Pi.addEventListener&&(Pi.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Pi.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),Pi.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>e.rejoinAfterMs?e.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>e.reconnectAfterMs?e.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(s,i,o)=>{console.log(`${s}: ${i}`,o)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Na(e.params||{}),this.endPoint=`${t}/${Lp.websocket}`,this.vsn=e.vsn||O5,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new EE(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return bi}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Mu.appendParams(Mu.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Na(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==bi?this.connectWithFallback(bi,this.longPollFallbackMs):this.transportConnect())}log(t,e,n){this.logger&&this.logger(t,e,n)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage(s=>{s.ref===e&&(this.off([r]),t(Date.now()-n))});return!0}transportName(t){switch(t){case bi:return"LongPoll";default:return t.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${Ip}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(t),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([s,i]),r=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,e),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(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,e),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(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),I5,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();const r=this.conn;this.waitForBufferDone(r,()=>{e?r.close(e,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),t&&t()})})}waitForBufferDone(t,e,n=1){if(n===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,n+1)},150*n)}waitForSocketClosed(t,e,n=1){if(n===5||t.readyState===Yn.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,n+1)},150*n)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let e=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",t,e,n),(e===this.transport||n>0)&&this.triggerChanError(t)}
203triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(fr.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case Yn.connecting:return"connecting";case Yn.open:return"open";case Yn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([n])=>t.indexOf(n)===-1)}channel(t,e={}){let n=new M5(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:r,ref:s,join_ref:i}=t;this.log("push",`${e} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}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(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=e;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",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([n,r])=>{try{r(...e)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}leaveOpenTopic(t){let e=this.channels.find(n=>n.topic===t&&(n.isJoined()||n.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class Oa{constructor(e,n){const r=z5(n);this.presence=new F5(e.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=Oa.onJoinPayload(s,i,o);e.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=Oa.onLeavePayload(s,i,o);e.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return Oa.transformState(this.presence.state)}static transformState(e){return e=B5(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return n[r]=Jc(s),n},{})}static onJoinPayload(e,n,r){const s=Sw(n),i=Jc(r);return{event:"join",key:e,currentPresences:s,newPresences:i}}static onLeavePayload(e,n,r){const s=Sw(n),i=Jc(r);return{event:"leave",key:e,currentPresences:s,leftPresences:i}}}function Jc(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function B5(t){return JSON.parse(JSON.stringify(t))}function z5(t){return(t==null?void 0:t.events)&&{events:t.events}}function Sw(t){return t!=null&&t.metas?Jc(t):[]}var kw;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(kw||(kw={}));class V5{get state(){return this.presenceAdapter.state}constructor(e,n){this.channel=e,this.presenceAdapter=new Oa(this.channel.channelAdapter,n)}}function W5(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
203if(typeof e.code=="number"){const n=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${n}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class H5{constructor(e,n,r){const s=K5(r);this.channel=e.getSocket().channel(n,s),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,n){return this.channel.on(e,n)}off(e,n){this.channel.off(e,n)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,n,r){let s;try{s=this.channel.push(e,n,r)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>_5){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(e){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),e)}canPush(){return this.socket.isConnected()&&this.state===qr.joined}isJoined(){return this.state===qr.joined}isJoining(){return this.state===qr.joining}isClosed(){return this.state===qr.closed}isLeaving(){return this.state===qr.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function K5(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}var _w;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(_w||(_w={}));var Zi;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Zi||(Zi={}));var pr;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(pr||(pr={}));class La{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}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(e,n={config:{}},r){var s,i;if(this.topic=e,this.params=n,this.socket=r,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new H5(this.socket.socketAdapter,e,this.params),this.presence=new V5(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=_E(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(e,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,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[Zi.PRESENCE]&&this.bindings[Zi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},f={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>{e==null||e(pr.CHANNEL_ERROR,W5(p))}),this._onClose(()=>e==null?void 0:e(pr.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){e==null||e(pr.SUBSCRIBED);return}this._updatePostgresBindings(p,e)}).receive("error",p=>{this.state=qr.errored;const m=Object.values(p).join(", ")||"error";e==null||e(pr.CHANNEL_ERROR,new Error(m,{cause:p}))}).receive("timeout",()=>{e==null||e(pr.TIMED_OUT)})}return this}_updatePostgresBindings(e,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:c,schema:u,table:d,filter:f}}=l,p=e&&e[a];if(p&&p.event===c&&La.isFilterValueEqual(p.schema,u)&&La.isFilterValueEqual(p.table,d)&&La.isFilterValueEqual(p.filter,f))o.push(Object.assign(Object.assign({},l),{id:p.id}));else{this.unsubscribe(),this.state=qr.errored,n==null||n(pr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=qr.errored&&n&&n(pr.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=e===Zi.PRESENCE||e===Zi.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,n,r)}async httpSend(e,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:e,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;
203try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(e,n={}){var r,s;if(!this.channelAdapter.canPush()&&e.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}=e,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c instanceof Error&&c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this.channelAdapter.push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_on(e,n,r){const s=e.toLocaleLowerCase(),i=this.channelAdapter.on(e,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(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,n,r)=>{var s,i,o,a,l,c,u;const d=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,r))return!1;const f=(s=this.bindings[d])===null||s===void 0?void 0:s.find(p=>p.ref===e.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in f){const p=f.id,m=(i=f.filter)===null||i===void 0?void 0:i.event;return p&&((o=n.ids)===null||o===void 0?void 0:o.includes(p))&&(m==="*"||(m==null?void 0:m.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const p=(c=(l=f==null?void 0:f.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return p==="*"||p===((u=n==null?void 0:n.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===d})}_notThisChannelEvent(e,n){const{close:r,error:s,leave:i,join:o}=SE;return n&&[r,s,i,o].includes(e)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:a,type:l,errors:c}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:c}),this._getPayloadRecords(s))}return n})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in e.bindings)for(const r of e.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=bw(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=bw(e.columns,e.old_record)),n}}class q5{constructor(e,n){this.socket=new U5(e,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(e){this.socket.heartbeatCallback=e}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(e,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{e(),i("ok")},n,r)})}push(e){this.socket.push(e)}log(e,n,r){this.socket.log(e,n,r)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Np.connecting}isDisconnecting(){return this.socket.connectionState()==Np.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Ew={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},G5=[1e3,2e3,5e3,1e4],Y5=1e4;function J5(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(e){return t.has(e)?t.get(e):null},key(e){var n;return(n=Array.from(t.keys())[e])!==null&&n!==void 0?n:null},removeItem(e){t.delete(e)},setItem(e,n){t.set(e,String(n))}}}function Z5(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return J5()}const Q5=`
204  addEventListener("message", (e) => {
205    if (e.data.event === "start") {
206      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
207    }
208  });`;class X5{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(e,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
208,this.ref=0,this.serializer=new E5,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 q5(e,s),this.httpEndpoint=_E(e),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(e){const n=e.message;throw n.includes("Node.js")?new Error(`${n}
209
210To use Realtime in Node.js, you need to provide a WebSocket implementation:
211
212Option 1: Use Node.js 22+ which has native WebSocket support
213Option 2: Install and provide the "ws" package:
214
215  npm install ws
216
217  import ws from "ws"
218  const client = new RealtimeClient(url, {
219    ...options,
220    transport: ws
221  })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,n)}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return n==="ok"&&e.teardown(),n}async removeAllChannels(){const e=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(e);return await this.disconnect(),n}log(e,n,r){this.socketAdapter.log(e,n,r)}connectionState(){return this.socketAdapter.connectionState()||Np.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new La(`realtime:${e}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.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}
221this._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(e=null){let n,r=!1;if(e)n=e,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:x5};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(SE.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,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(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(n,r)=>{n=="sent"&&this._setAuthSafely(),e&&e(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),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(e){let n;if(e)n=e;else{const r=new Blob([Q5],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(e){var n,r,s,i,o,a,l,c,u,d,f,p;this.worker=(n=e==null?void 0:e.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=e==null?void 0:e.accessToken)!==null&&r!==void 0?r:null;const m={};m.timeout=(s=e==null?void 0:e.timeout)!==null&&s!==void 0?s:k5,m.heartbeatIntervalMs=(i=e==null?void 0:e.heartbeatIntervalMs)!==null&&i!==void 0?i:Ew.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=e==null?void 0:e.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((a=e==null?void 0:e.heartbeatIntervalMs)!==null&&a!==void 0?a:Ew.HEARTBEAT_INTERVAL),m.transport=(l=e==null?void 0:e.transport)!==null&&l!==void 0?l:v5.getWebSocketConstructor(),m.params=e==null?void 0:e.params,m.logger=e==null?void 0:e.logger,m.heartbeatCallback=this._wrapHeartbeatCallback(e==null?void 0:e.heartbeatCallback),m.sessionStorage=(c=e==null?void 0:e.sessionStorage)!==null&&c!==void 0?c:Z5(),m.reconnectAfterMs=(u=e==null?void 0:e.reconnectAfterMs)!==null&&u!==void 0?u:v=>G5[v-1]||Y5;let g,x;const y=(d=e==null?void 0:e.vsn)!==null&&d!==void 0?d:S5;switch(y){case b5:g=(v,w)=>w(JSON.stringify(v)),x=(v,w)=>w(JSON.parse(v));break;case bE:g=this.serializer.encode.bind(this.serializer),x=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${m.vsn}`)}if(m.vsn=y,m.encode=(f=e==null?void 0:e.encode)!==null&&f!==void 0?f:g,m.decode=(p=e==null?void 0:e.decode)!==null&&p!==void 0?p:x,m.beforeReconnect=this._reconnectAuth.bind(this),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,m.params=Object.assign(Object.assign({},m.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl,m.autoSendHeartbeat=!this.worker}return m}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
221var ul=class extends Error{constructor(t,e){var n;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((n=e.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function eF(t,e,n){const r=new URL(e,t);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function tF(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function nF(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=eF(t.baseUrl,r,s),l=await tF(t.auth),c=await e(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),u=await c.text(),d=(c.headers.get("content-type")||"").includes("application/json"),f=d&&u?JSON.parse(u):u;if(!c.ok){const p=d?f:void 0,m=p==null?void 0:p.error;throw new ul((m==null?void 0:m.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:m==null?void 0:m.type,icebergCode:m==null?void 0:m.code,details:p})}return{status:c.status,headers:c.headers,data:f}}}}function xc(t){return t.join("�")}var rF=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:xc(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${xc(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${xc(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${xc(t.namespace)}`}),!0}catch(e){if(e instanceof ul&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof ul&&n.status===409)return;throw n}}};function Si(t){return t.join("�")}var sF=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Si(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Si(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Si(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Si(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Si(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Si(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof ul&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof ul&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},iF=class{constructor(t){var r;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=nF({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(r=t.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new rF(this.client,e),this.tableOps=new sF(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
221async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function dl(t){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dl(t)}function oF(t,e){if(dl(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function aF(t){var e=oF(t,"string");return dl(e)=="symbol"?e:e+""}function lF(t,e,n){return(e=aF(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tw(Object(n),!0).forEach(function(r){lF(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ad=class extends Error{constructor(t,e="storage",n,r){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Pd(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var Dp=class extends Ad{constructor(t,e,n,r="storage"){super(t,r,e,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n}toJSON(){return J({},super.toJSON())}},TE=class extends Ad{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function $u(t,e,n){const r=J({},t),s=e.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function cF(t){const e={};for(const[n,r]of Object.entries(t))e[n.toLowerCase()]=r;return e}const uF=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),dF=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Mp=t=>{if(Array.isArray(t))return t.map(n=>Mp(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=Mp(r)}),e},hF=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),Cw=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null){const n=e.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(t)},fF=async(t,e,n,r)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const s=t;let i=parseInt(String(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+"";e(new Dp(Cw(o),i,a,r))}).catch(()=>{const o=i+"";e(new Dp(s.statusText||`HTTP ${i} error`,i,o,r))})}else e(new TE(Cw(t),t,r))},pF=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};if(t==="GET"||t==="HEAD"||!r)return J(J({},s),n);if(dF(r)){var i;const o=(e==null?void 0:e.headers)||{};let a;for(const[l,c]of Object.entries(o))l.toLowerCase()==="content-type"&&(a=c);s.headers=$u(o,"Content-Type",(i=a)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return e!=null&&e.duplex&&(s.duplex=e.duplex),J(J({},s),n)};async function aa(t,e,n,r,s,i,o){return new Promise((a,l)=>
221{t(n,pF(e,r,s,i)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;if(o==="vectors"){const u=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!u||!u.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>fF(c,l,r,o))})}function CE(t="storage"){return{get:async(e,n,r,s)=>aa(e,"GET",n,r,s,void 0,t),post:async(e,n,r,s,i)=>aa(e,"POST",n,s,i,r,t),put:async(e,n,r,s,i)=>aa(e,"PUT",n,s,i,r,t),head:async(e,n,r,s)=>aa(e,"HEAD",n,J(J({},r),{},{noResolveJson:!0}),s,void 0,t),remove:async(e,n,r,s,i)=>aa(e,"DELETE",n,s,i,r,t)}}const mF=CE("storage"),{get:hl,post:kn,put:$p,head:gF,remove:Vg}=mF,Bt=CE("vectors");var Ho=class{constructor(t,e={},n,r="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=cF(e),this.fetch=uF(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=$u(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Pd(n))return{data:null,error:n};throw n}}},yF=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Pd(e))return{data:null,error:e};throw e}}};let AE;AE=Symbol.toStringTag;var vF=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[AE]="BlobDownloadBuilder",this.promise=null}asStream(){return new yF(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Pd(e))return{data:null,error:e};throw e}}};const wF={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Aw={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var xF=class extends Ho{constructor(t,e={},n,r){super(t,e,r,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=J(J({},Aw),r);let a=J(J({},s.headers),t==="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[f,p]of Object.entries(r.headers))a=$u(a,f,p);const c=s._removeEmptyFolders(e),u=s._getFinalPath(c),d=await(t=="PUT"?$p:kn)(s.fetch,`${s.url}/object/${u}`,i,J({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,id:d.Id,fullPath:d.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,r){var s=this;const i=s._removeEmptyFolders(t),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",e),s.handleOperation(async()=>{let l;const c=J(J({},Aw),r);let u=J(J({},s.headers),{"x-upsert":String(c.upsert)});const d=c.metadata;if(typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),d&&l.append("metadata",s.encodeMetadata(d)),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.has("cacheControl")||l.append("cacheControl",c.cacheControl),d&&!l.has("metadata")&&l.append("metadata",s.encodeMetadata(d))):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType,d&&(u["x-metadata"]=s.toBase64(s.encodeMetadata(d))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!c.duplex&&(c.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))u=$u(u,f,p);return{path:i,fullPath:(await $p(s.fetch,a.toString(),l,J({headers:u},c!=null&&c.duplex?{duplex:c.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(t);const s=J({},n.headers);e!=null&&e.upsert&&(s["x-upsert"]="true");const i=await kn(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 Ad("No token returned by API");return{signedUrl:o.toString(),path:t,token:a}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var r=this;return r.handleOperation(async()=>await kn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(t,e,n){var r=this;return r.handleOperation(async()=>({path:(await kn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(t,e,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(t);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await kn(r.fetch,`${r.url}/object/sign/${s}
221`,J({expiresIn:e},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(t,e,n){var r=this;return r.handleOperation(async()=>{const s=await kn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:e,paths:t},{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=>J(J({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(t,e,n){const r=typeof(e==null?void 0:e.transform)=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;e!=null&&e.transform&&this.applyTransformOptsToQuery(s,e.transform),(e==null?void 0:e.cacheNonce)!=null&&s.set("cacheNonce",String(e.cacheNonce));const i=s.toString(),o=this._getFinalPath(t),a=()=>hl(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new vF(a,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>Mp(await hl(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await gF(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(s){if(e.shouldThrowOnError)throw s;if(Pd(s)){var r;const i=s instanceof Dp?s.status:s instanceof TE?(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(t,e){const n=this._getFinalPath(t),r=new URLSearchParams;e!=null&&e.download&&r.set("download",e.download===!0?"":e.download),e!=null&&e.transform&&this.applyTransformOptsToQuery(r,e.transform),(e==null?void 0:e.cacheNonce)!=null&&r.set("cacheNonce",String(e.cacheNonce));const s=r.toString(),i=typeof(e==null?void 0:e.transform)=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await Vg(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,n){var r=this;return r.handleOperation(async()=>{const s=J(J(J({},wF),e),{},{prefix:t||""});return await kn(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const r=J({},t);return await kn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const bF="2.105.4",$l={"X-Client-Info":`storage-js/${bF}`};var SF=class extends Ho{constructor(t,e={},n,r){const s=new URL(t);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=J(J({},$l),e);super(i,o,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await hl(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await hl(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await kn(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await $p(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await kn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Vg(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},kF=class extends Ho{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=J(J({},$l),e);super(r,s,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await kn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&n.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&n.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&n.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&n.set("sortOrder",t.sortOrder),t!=null&&t.search&&n.set("search",t.search);const r=n.toString(),s=r?`${e.url}/bucket?${r}`:`${e.url}/bucket`;return await hl(e.fetch,s,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Vg(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!hF(t))throw new Ad("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 iF({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}
221),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}}}}})}},_F=class extends Ho{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=J(J({},$l),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await Bt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await Bt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},EF=class extends Ho{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=J(J({},$l),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},TF=class extends Ho{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=J(J({},$l),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Bt.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},CF=class extends TF{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new AF(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},AF=class extends _F{constructor(t,e,n,r){super(t,e,r),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,J(J({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,J(J({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new PF(this.url,this.headers,this.vectorBucketName,t,this.fetch)}}
221,PF=class extends EF{constructor(t,e,n,r,s){super(t,e,s),this.vectorBucketName=n,this.indexName=r}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,J(J({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,J(J({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,J(J({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,J(J({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,J(J({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},jF=class extends SF{constructor(t,e={},n,r){super(t,e,n,r)}from(t){return new xF(this.url,this.headers,t,this.fetch)}get vectors(){return new CF(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new kF(this.url+"/iceberg",this.headers,this.fetch)}};
221function jd(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}const PE="2.105.4",ji=30*1e3,Fp=3,Uh=Fp*ji,RF="http://localhost:9999",NF="supabase.auth.token",OF={"X-Client-Info":`gotrue-js/${PE}`},Up="X-Supabase-Api-Version",jE={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},LF=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,IF=10*60*1e3;class fl extends Error{constructor(e,n,r){super(e),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 $(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class DF extends fl{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function MF(t){return $(t)&&t.name==="AuthApiError"}class An extends fl{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class Pr extends fl{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class rt extends Pr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function bc(t){return $(t)&&t.name==="AuthSessionMissingError"}class ki extends Pr{constructor(){super("Auth session or user missing","AuthInvalidToken
221ResponseError",500,void 0)}}class Sc extends Pr{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class kc extends Pr{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function $F(t){return $(t)&&t.name==="AuthImplicitGrantRedirectError"}class Pw extends Pr{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class FF extends Pr{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 Bp extends Pr{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Bh(t){return $(t)&&t.name==="AuthRetryableFetchError"}class jw extends Pr{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class zp extends Pr{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Fu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Rw=` 	
222\r=`.split(""),UF=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Rw.length;e+=1)t[Rw[e].charCodeAt(0)]=-2;for(let e=0;e<Fu.length;e+=1)t[Fu[e].charCodeAt(0)]=e;return t})();function Nw(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Fu[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Fu[r]),e.queuedBits-=6}}function RE(t,e,n){const r=UF[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Ow(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{VF(o,r,n)};for(let o=0;o<t.length;o+=1)RE(t.charCodeAt(o),s,i);return e.join("")}function BF(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function zF(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}BF(r,e)}}function VF(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function uo(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)RE(t.charCodeAt(s),n,r);return new Uint8Array(e)}function WF(t){const e=[];return zF(t,n=>e.push(n)),new Uint8Array(e)}function Hs(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>Nw(s,n,r)),Nw(null,n,r),e.join("")}function HF(t){return Math.round(Date.now()/1e3)+t}function KF(){return Symbol("auth-callback")}const lt=()=>typeof window<"u"&&typeof document<"u",Ns={tested:!1,writable:!1},NE=()=>{if(!lt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ns.tested)return Ns.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Ns.tested=!0,Ns.writable=!0}catch{Ns.tested=!0,Ns.writable=!1}return Ns.writable};function qF(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
222h((s,i)=>{e[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const OE=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),GF=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Ri=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},Os=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return null}},at=async(t,e)=>{await t.removeItem(e)};class Rd{constructor(){this.promise=new Rd.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Rd.promiseConstructor=Promise;function _c(t){const e=t.split(".");if(e.length!==3)throw new zp("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!LF.test(e[r]))throw new zp("JWT not in base64url format");return{header:JSON.parse(Ow(e[0])),payload:JSON.parse(Ow(e[1])),signature:uo(e[2]),raw:{header:e[0],payload:e[1]}}}async function YF(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function JF(t,e){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){r(o);return}}catch(o){if(!e(i,o)){s(o);return}}})()})}function ZF(t){return("0"+t.toString(16)).substr(-2)}function QF(){const e=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(e),Array.from(e,ZF).join("")}async function XF(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function eU(t){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."),t;const n=await XF(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _i(t,e,n=!1){const r=QF();let s=r;n&&(s+="/recovery"),await Ri(t,`${e}-code-verifier`,s);const i=await eU(r);return[i,r===i?"plain":"s256"]}const tU=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function nU(t){const e=t.headers.get(Up);if(!e||!e.match(tU))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function rU(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function sU(t){switch(t){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 iU=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ur(t){if(!iU.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function xn(t){if(!t.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 zh(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,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:(e,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 oU(t,e){return new Proxy(t,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
222if(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!e.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."),e.value=!0),Reflect.get(n,r,s)}})}function Lw(t){return JSON.parse(JSON.stringify(t))}const Ms=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error}return JSON.stringify(t)},aU=[502,503,504,520,521,522,523,524,530];async function Iw(t){var e;if(!GF(t))throw new Bp(Ms(t),0);if(aU.includes(t.status))throw new Bp(Ms(t),t.status);let n;try{n=await t.json()}catch(i){throw new An(Ms(i),i)}let r;const s=nU(t);if(s&&s.getTime()>=jE["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 jw(Ms(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new rt}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 jw(Ms(n),t.status,n.weak_password.reasons);throw new DF(Ms(n),t.status||500,r)}const lU=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function W(t,e,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Up]||(i[Up]=jE["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 cU(t,e,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 cU(t,e,n,r,s,i){const o=lU(e,r,s,i);let a;try{a=await t(n,Object.assign({},o))}catch(l){throw console.error(l),new Bp(Ms(l),0)}if(a.ok||await Iw(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Iw(l)}}function Qt(t){var e;let n=null;hU(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=HF(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function Dw(t){const e=Qt(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Gr(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function uU(t){return{data:t,error:null}}function dU(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=t,o=jd(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,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 Mw(t){return t}function hU(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const Vh=["global","local","others"];class fU{constructor({url:e="",headers:n={},fetch:r,experimental:s}){this.url=e,this.headers=n,this.fetch=OE(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 222
222async signOut(e,n=Vh[0]){if(Vh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Vh.join(", ")}`);try{return await W(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if($(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await W(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Gr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=jd(e,["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 W(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:dU,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if($(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await W(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Gr})}catch(n){if($(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await W(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Mw});if(u.error)throw u.error;const d=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(m=>{const g=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(m.split(";")[1].split("=")[1]);c[`${x}Page`]=g}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if($(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){ur(e);try{return await W(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Gr})}catch(n){if($(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){ur(e);try{return await W(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:Gr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){ur(e);try{return await W(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:Gr})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){ur(e.userId);try{const{data:n,error:r}=await W(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if($(n))return{data:null,error:n};throw n}}async _deleteFactor(e){ur(e.userId),ur(e.id);try{return{data:await W(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await W(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Mw});if(u.error)throw u.error;const d=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(m=>{const g=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(m.split(";")[1].split("=")[1]);c[`${x}Page`]=g}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if($(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(e){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await W(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await W(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if($(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(e){try{return await W(this.fetch,"DELET
222E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await W(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _listCustomProviders(e){try{const n={};return e!=null&&e.type&&(n.type=e.type),await W(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($(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(e){try{return await W(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _getCustomProvider(e){try{return await W(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _updateCustomProvider(e,n){try{return await W(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if($(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(e){try{return await W(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _adminListPasskeys(e){xn(this.experimental),ur(e.userId);try{return await W(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(e){xn(this.experimental),ur(e.userId),ur(e.passkeyId);try{return await W(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}}function $w(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const zn={debug:!!(globalThis&&NE()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
222class LE extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class Fw extends LE{}async function pU(t,e,n){zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;let s;e>0&&(s=setTimeout(()=>{r.abort(),zn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e)),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){clearTimeout(s),zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,i.name);try{return await n()}finally{zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,i.name)}}else{if(e===0)throw zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new Fw(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(zn.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(e>0&&clearTimeout(s),i!==null&&typeof i=="object"&&"name"in i&&i.name==="AbortError"&&e>0){if(r.signal.aborted)return zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",t),console.warn(`@supabase/gotrue-js: Lock "${t}" was not released within ${e}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(t,{mode:"exclusive",steal:!0},async o=>{if(o){zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",t,o.name);try{return await n()}finally{zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",t,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",t),new Fw(`Lock "${t}" was released because another request stole it`)}throw i}}function mU(){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 IE(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function gU(t){return parseInt(t,16)}function yU(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function vU(t){var e;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:d,version:f}=t;{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(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
223`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const p=IE(t.address),m=u?`${u}://${r}
223`:r,g=t.statement?`${t.statement}
224`:"",x=`${m} wants you to sign in with your Ethereum account:
225${p}
226
227${g}`;let y=`URI: ${d}
228Version: ${f}
229Chain ID: ${n}${o?`
230Nonce: ${o}`:""}
231Issued At: ${i.toISOString()}`;if(s&&(y+=`
232Expiration Time: ${s.toISOString()}`),a&&(y+=`
233Not Before: ${a.toISOString()}`),l&&(y+=`
234Request ID: ${l}`),c){let v=`
235Resources:`;for(const w of c){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);v+=`
236- ${w}`}y+=v}return`${x}
237${y}`}class qe extends Error{constructor({message:e,code:n,cause:r,name:s}){var i;super(e,{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}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Uu extends qe{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function wU({error:t,options:e}){var n,r,s;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new qe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new qe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new qe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new qe({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new qe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new qe({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new qe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new qe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const o=window.location.hostname;if(DE(o)){if(i.rp.id!==o)return new qe({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new qe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new qe({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new qe({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new qe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function xU({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new qe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new qe({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(DE(r)){if(n.rpId!==r)return new qe({message:`The RP ID "${n.rpId}
237" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new qe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new qe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new qe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class bU{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const Vp=new bU;function Uw(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:r}=t,s=jd(t,["challenge","user","excludeCredentials"]),i=uo(e).buffer,o=Object.assign(Object.assign({},n),{id:uo(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 c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:uo(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function Bw(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,r=jd(t,["challenge","allowCredentials"]),s=uo(e).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:uo(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function zw(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:Hs(new Uint8Array(t.response.attestationObject)),clientDataJSON:Hs(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Vw(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,r=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Hs(new Uint8Array(s.authenticatorData)),clientDataJSON:Hs(new Uint8Array(s.clientDataJSON)),signature:Hs(new Uint8Array(s.signature)),userHandle:s.userHandle?Hs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function DE(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Bu(){var t,e;return!!(lt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function ME(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Uu("Browser returned unexpected credential type",e)}:{data:null,error:new Uu("Empty credential response",e)}}catch(e){return{data:null,error:wU({error:e,options:t})}}}async function $E(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Uu("Browser returned unexpected credential type",e)}:{data:null,error:new Uu("Empty credential response",e)}}catch(e){return{data:null,error:xU({error:e,options:t})}}}const SU={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},kU={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function zu(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of t)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(e(o)){const a=r[i];e(a)?r[i]=zu(a,o):r[i]=zu(o)}else r[i]=o}return r}function _U(t,e){return zu(SU,t,e||{})}function EU(t,e){return zu(kU,t,e||{})}class TU{constructor(e){this.client=e,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(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!a)return{data:null,error:l};const c=s??Vp.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:u}=a.webauthn.credential_options.publicKey;if(!u.name){const d=r;if(d)u.name=`${u.id}:${d}`;else{const p=(await this.client.getUser()).data.user,m=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";u.name=`${u.id}:${m}`}}u.displayName||(u.displayName=u.name)}
237switch(a.webauthn.type){case"create":{const u=_U(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:f}=await ME({publicKey:u,signal:c});return d?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}case"request":{const u=EU(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:f}=await $E(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}}}catch(a){return $(a)?{data:null,error:a}:{data:null,error:new An("Unexpected error in challenge",a)}}}async _verify({challengeId:e,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:r})}async _authenticate({factorId:e,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 fl("rpId is required for WebAuthn authentication")};try{if(!Bu())return{data:null,error:new An("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return $(o)?{data:null,error:o}:{data:null,error:new An("Unexpected error in authenticate",o)}}}async _register({friendlyName:e,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 fl("rpId is required for WebAuthn registration")};try{if(!Bu())return{data:null,error:new An("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===e&&f.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:a};const{data:l,error:c}=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:c}}catch(o){return $(o)?{data:null,error:o}:{data:null,error:new An("Unexpected error in register",o)}}}}mU();const CU={url:RF,storageKey:NF,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:OF,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function Ww(t,e,n){return await n()}const Ei={};class pl{get jwks(){var e,n;return(n=(e=Ei[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){Ei[this.storageKey]=Object.assign(Object.assign({},Ei[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=Ei[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Ei[this.storageKey]=Object.assign(Object.assign({},Ei[this.storageKey]),{cachedAt:e})}constructor(e){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({},CU),e);if(this.storageKey=o.storageKey,this.instanceID=(n=pl.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,pl.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&lt()){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 fU({url:o.url,headers:o.headers,fetch:o.fetch,experimental:this.experimental}),this.url=o.url,this.headers=o.headers,this.fetch=OE(o.fetch),this.lock=o.lock||Ww,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&&lt()&&(!((s=globalThis==null?void 0:globalThis.navigator)===null||s===void 0)&&s.locks)?this.lock=pU:this.lock=Ww,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 TU(this)}
237,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:NE()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=$w(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=$w(this.memoryStorage)),lt()&&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(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${PE}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),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 e;try{let n={},r="none";if(lt()&&(n=qF(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),lt()&&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),$F(i)){const l=(e=i.details)===null||e===void 0?void 0:e.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 $(n)?this._returnResult({error:n}):this._returnResult({error:new An("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const i=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Qt}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if($(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var n,r,s;try{let i;if("email"in e){const{email:u,password:d,options:f}=e;let p=null,m=null;this.flowType==="pkce"&&([p,m]=await _i(this.storage,this.storageKey)),i=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:m},xform:Qt})}else if("phone"in e){const{phone:u,password:d,options:f}=e;i=await W(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Qt})}else throw new Sc("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await at(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await at(this.storage,`${this.storageKey}-code-verifier`),$(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let n;if("email"in e){const{email:i,password:o,options:a}=e;n=await W(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:Dw})}else if("phone"in e){const{phone:i,password:o,options:a}=e;n=await W(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:Dw})}else throw new Sc("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 ki;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($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,r,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,r,s,i,o,a,l,c,u,d,f;let p,m;if("message"in e)p=e.message,m=e.signature;else{const{chain:g,wallet:x,statement:y,options:v}=e;let w;if(lt())if(typeof x=="object")w=x;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")w=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=x}const S=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href),k=await w.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!k||k.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=IE(k[0]);let E=(r=v==null?void 0:v.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!E){const A=await w.request({method:"eth_chainId"});E=gU(A)}const T={domain:S.host,address:_,statement:y,uri:S.href,version:"1",chainId:E,nonce:(s=v==null?void 0:v.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=v==null?void 0:v.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=v==null?void 0:v.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.resources};p=vU(T),m=await w.request({method:"personal_sign",params:[yU(p),_]})}try{const{data:g,error:x}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:m},!((d=e.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Qt});if(x)throw x;if(!g||!g.session||!g.user){const y=new ki;return this._returnResult({data:{user:null,session:null},error:y})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:x})}catch(g){if($(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(e){var n,r,s,i,o,a,l,c,u,d,f,p;let m,g;if("message"in e)m=e.message,g=e.signature;else{const{chain:x,wallet:y,statement:v,options:w}=e;let S;if(lt())if(typeof y=="object")S=y;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))S=_.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 y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=y}const k=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const _=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),v?{statement:v}: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)m=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),g=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");m=[`${k.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(s=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((d=(u=w==null?void 0:w.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...w.sign
237InWithSolana.resources.map(E=>`- ${E}`)]:[]].join(`
238`);const _=await S.signMessage(new TextEncoder().encode(m),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=_}}try{const{data:x,error:y}=await W(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:m,signature:Hs(g)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=e.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Qt});if(y)throw y;if(!x||!x.session||!x.user){const v=new ki;return this._returnResult({data:{user:null,session:null},error:v})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:y})}catch(x){if($(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(e){const n=await Os(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new FF;const{data:i,error:o}=await W(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Qt});if(await at(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new ki;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 at(this.storage,`${this.storageKey}-code-verifier`),$(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=e,a=await W(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:Qt}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new ki;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,r,s,i,o;try{if("email"in e){const{email:a,options:l}=e;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await _i(this.storage,this.storageKey));const{error:d}=await W(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:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:u}=await W(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new Sc("You must provide either an email or phone number.")}catch(a){if(await at(this.storage,`${this.storageKey}-code-verifier`),$(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(e){var n,r;try{let s,i;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,i=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await W(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Qt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if($(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await _i(this.storage,this.storageKey));const c=await W(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:uU});return!((i=c.data)===null||i===void 0)&&i.url&&lt()&&!(!((o=e.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await at(this.storage,`${this.storageKey}-code-verifier`),$(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 e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new rt;const{error:s}=await W(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if($(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:i}=e,{error:o}=await W(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 e){const{phone:r,type:s,options:i}=e,{data:o,error:a}=await W(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 Sc("You must provide either an email or phone number and a type")}catch(n){if($(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(e,n){this._debug("#_acquireLock","begin",e);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}`,e,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(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(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 e=null;
238const n=await Os(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<Uh:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await Os(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=zh()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};e.user=oU(e.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:i}=await this._callRefreshToken(e.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(e){if(e)return await this._getUser(e);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await W(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Gr}):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 rt}:await W(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:Gr})})}catch(n){if($(n))return bc(n)&&(await this._removeSession(),await at(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new rt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await _i(this.storage,this.storageKey));const{data:c,error:u}=await W(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Gr});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await at(this.storage,`${this.storageKey}-code-verifier`),$(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new rt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=_c(e.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(e.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(e.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:e.access_token,refresh_token:e.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($(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:a}=n;
238if(a)throw a;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new rt;const{data:s,error:i}=await this._callRefreshToken(e.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($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){var r;try{if(!lt())throw new kc("No browser detected.");if(e.error||e.error_description||e.error_code)throw new kc(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Pw("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new kc("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Pw("No code detected.");const{data:w,error:S}=await this._exchangeCodeForSession(e.code);if(S)throw S;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:w.session,redirectType:(r=w.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:c,token_type:u}=e;if(!o||!l||!a||!u)throw new kc("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(l);let p=d+f;c&&(p=parseInt(c));const m=p-d;m*1e3<=ji&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${f}s`);const g=p-f;d-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,p,d):d-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,p,d);const{data:x,error:y}=await this._getUser(o);if(y)throw y;const v={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:f,expires_at:p,refresh_token:a,token_type:u,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:e.type},error:null})}catch(s){if($(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await Os(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!bc(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,e);if(a&&!(MF(a)&&(a.status===404||a.status===401||a.status===403)||bc(a)))return this._returnResult({error:a})}return e!=="others"&&(await this._removeSession(),await at(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=KF(),r={id:n,callback:e,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(e){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(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),bc(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await _i(this.storage,this.storageKey,!0));try{return await W(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await at(this.storage,`${this.storageKey}-code-verifier`),$(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,c,u;const{data:d,error:f}=i;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await W(this.fetch,"GET",p,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return lt()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:e.provider,url:r==null?void 0:r.url},error:null})}catch(r){if($(r))return this._returnResult({data:{provider:e.provider,url:null},error:r});throw r}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
238if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=e,d=await W(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:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Qt}),{data:f,error:p}=d;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new ki}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(s){if(await at(this.storage,`${this.storageKey}-code-verifier`),$(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await W(this.fetch,"DELETE",`${this.url}/user/identities/${e.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($(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await JF(async s=>(s>
2380&&await YF(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await W(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Qt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Bh(i)&&Date.now()+o-r<ji})}catch(r){if(this._debug(n,"error",r),$(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),lt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Os(this.storage,this.storageKey);if(s&&this.userStorage){let o=await O
238s(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Ri(this.userStorage,this.storageKey+"-user",o)),s.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:zh()}else if(s&&!s.user&&!s.user){const o=await Os(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await at(this.storage,this.storageKey+"-user"),await Ri(this.storage,this.storageKey,s)):s.user=zh()}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()<Uh;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Uh}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Bh(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(e){var n,r;if(!e)throw new rt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Rd;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new rt;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),$(i)){const o={data:null,error:i};return Bh(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(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,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(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await at(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Ri(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Lw(s);await Ri(this.storage,this.storageKey,i)}else{const s=Lw(n);await Ri(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await at(this.storage,this.storageKey),await at(this.storage,this.storageKey+"-code-verifier"),await at(this.storage,this.storageKey+"-user"),this.userStorage&&await at(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&lt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ji);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);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 e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);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 e=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-e)/ji);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ji}ms, refresh threshold is ${Fp} ticks`),s<=Fp&&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(e){if(e instanceof LE)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!lt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
238await 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(e,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 _i(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}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await W(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){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:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:l,error:c}=await W(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 c?this._returnResult({data:null,error:c}):(e.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($(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){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:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?zw(e.webauthn.credential_response):Vw(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:l}=await W(this.fetch,"POST",`${this.url}/factors/${e.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($(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(e){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 W(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,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:Uw(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:Bw(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;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(e=n==null?void 0:n.factors)!==null&&e!==void 0?e:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,r,s,i;if(e)try{const{payload:p}=_c(e);let m=null;p.aal&&(m=p.aal);let g=m;const{data:{user:x},error:y}=await this.getUser(e);if(y)return this._returnResult({data:null,error:y});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(g="aal2");const w=p.amr||[];return{data:{currentLevel:m,nextLevel:g,currentAuthenticationMethods:w},error:null}}catch(p){if($(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:a}
238=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}=_c(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(p=>p.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const f=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await W(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new rt})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,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 rt});const o=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&lt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(e,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 rt});const o=await W(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&lt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;return r?this._returnResult({data:null,error:r}):n?await W(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 rt})})}catch(e){if($(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await W(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new rt})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(a=>a.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===e),r&&this.jwks_cached_at+IF>s)return r;const{data:i,error:o}=await W(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===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:p,error:m}
238=await this.getSession();if(m||!p.session)return this._returnResult({data:null,error:m});r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=_c(r);n!=null&&n.allowExpired||rU(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const u=sU(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,WF(`${a}.${l}`)))throw new zp("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(e){var n,r,s;xn(this.experimental);try{if(!Bu())return this._returnResult({data:null,error:new An("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.captchaToken}});if(o||!i)return this._returnResult({data:null,error:o});const a=Bw(i.options),l=(s=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:Vp.createNewAbortSignal(),{data:c,error:u}=await $E({publicKey:a,signal:l});if(u||!c)return this._returnResult({data:null,error:u??new An("WebAuthn ceremony failed",null)});const d=Vw(c);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:d})}catch(i){if($(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(e){var n,r;xn(this.experimental);try{if(!Bu())return this._returnResult({data:null,error:new An("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=Uw(s.options),a=(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:Vp.createNewAbortSignal(),{data:l,error:c}=await ME({publicKey:o,signal:a});if(c||!l)return this._returnResult({data:null,error:c??new An("WebAuthn ceremony failed",null)});const u=zw(l);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:u})}catch(s){if($(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){xn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new rt});const{data:s,error:i}=await W(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(e){if($(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){xn(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 rt});const{data:i,error:o}=await W(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(e){var n;xn(this.experimental);try{const{data:r,error:s}=await W(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=e==null?void 0:e.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($(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(e){xn(this.experimental);try{const{data:n,error:r}=await W(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:Qt});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($(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){xn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new rt});const{data:s,error:i}=await W(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(e){if($(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){xn(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 rt});const{data:i,error:o}=await W(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:e.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(e){xn(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 rt});const{error:i}
238=await W(this.fetch,"DELETE",`${this.url}/passkeys/${e.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($(n))return this._returnResult({data:null,error:n});throw n}}}pl.nextInstanceID={};const AU=pl,PU="2.105.4";let ga="";typeof Deno<"u"?ga="deno":typeof document<"u"?ga="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ga="react-native":ga="node";const jU={"X-Client-Info":`supabase-js-${ga}/${PU}`},RU={headers:jU},NU={schema:"public"},OU={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},LU={};function ml(t){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ml(t)}function IU(t,e){if(ml(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DU(t){var e=IU(t,"string");return ml(e)=="symbol"?e:e+""}function MU(t,e,n){return(e=DU(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Be(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hw(Object(n),!0).forEach(function(r){MU(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const $U=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),FU=()=>Headers,UU=(t,e,n)=>{const r=$U(n),s=FU();return async(i,o)=>{var a;const l=(a=await e())!==null&&a!==void 0?a:t;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",t),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Be(Be({},o),{},{headers:c}))}};function BU(t){return t.endsWith("/")?t:t+"/"}function zU(t,e){var n,r;const{db:s,auth:i,realtime:o,global:a}=t,{db:l,auth:c,realtime:u,global:d}=e,f={db:Be(Be({},l),s),auth:Be(Be({},c),i),realtime:Be(Be({},u),o),storage:{},global:Be(Be(Be({},d),a),{},{headers:Be(Be({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}function VU(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(BU(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var WU=class extends AU{constructor(t){super(t)}},HU=class{constructor(t,e,n){var r,s;this.supabaseUrl=t,this.supabaseKey=e;const i=VU(t);if(!e)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:NU,realtime:LU,auth:Be(Be({},OU),{},{storageKey:o}),global:RU},l=zU(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:(u,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=UU(e,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Be({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new y5(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 jF(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new a5(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:r}=await t.auth.getSession();
238return(e=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:c,experimental:u,lockAcquireTimeout:d,skipAutoInitialize:f},p,m){const g={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new WU({url:this.authUrl.href,headers:Be(Be({},g),p),storageKey:i,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,experimental:u,fetch:m,lockAcquireTimeout:d,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new X5(this.realtimeUrl.href,Be(Be({},t),{},{params:Be(Be({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const KU=(t,e,n)=>new HU(t,e,n);function qU(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}qU()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const GU="https://cmgzjwgfsatiiknrxhpv.supabase.co",YU="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNtZ3pqd2dmc2F0aWlrbnJ4aHB2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Nzg5MzczNTcsImV4cCI6MjA5NDUxMzM1N30.oLYJGH4oX4XX1PwiPiB1wr-O0lLHiAUywTnJNSS3BB4",vt=KU(GU,YU,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),JU=()=>{const[t,e]=b.useState(yE),[n,r]=b.useState(null);return b.useEffect(()=>{(async()=>{const s=new Date().toISOString().slice(0,10),{data:i}=await vt.from("menus").select("data, season_label, title").eq("is_active",!0).lte("start_date",s).gte("end_date",s).order("start_date",{ascending:!1}).limit(1).maybeSingle();i&&Array.isArray(i.data)&&i.data.length>0&&(e(i.data),r(i.season_label??i.title??null))})()},[]),h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Speisekarte – LUI am Chiemsee | Mediterrane Küche"}),h.jsx("meta",{name:"description",content:"Speisekarte im LUI in Prien: Regionale Küche, fangfrischer Fisch aus dem Chiemsee, erlesene Weine und saisonale Highlights."}),h.jsx("link",{rel:"canonical",href:"https://luitpold-am-see.de/speisekarte"}),h.jsx("meta",{property:"og:title",content:"Speisekarte – LUI am Chiemsee | Mediterrane Küche"}),h.jsx("meta",{property:"og:description",content:"Regionale Küche, fangfrischer Fisch und erlesene Weine – am Chiemsee."}),h.jsx("meta",{property:"og:url",content:"https://luitpold-am-see.de/speisekarte"}),h.jsx("meta",{property:"og:type",content:"website"})]}),h.jsx(mi,{tag:n?`Unsere Karte · ${n}`:"Unsere Karte",headline:`SPEISEN
239& DRINKS.`,subtitle:"Vom Chiemsee auf den Teller.",description:"Regionale Küche, fangfrischer Fisch und eine erlesene Auswahl an Weinen – alles mit Blick auf den Chiemsee."}),h.jsx("main",{className:"pb-20 bg-background",children:h.jsxs("div",{className:"container mx-auto px-5",children:[h.jsx(gE,{sections:t}),h.jsxs(fe.div,{initial:{opacity:0}
239,animate:{opacity:1},transition:{duration:.6,delay:.5},className:"mt-20 pt-16 border-t border-foreground/10",children:[h.jsx("p",{className:"text-muted-foreground font-body text-sm mb-5",children:"Du möchtest einen Tisch reservieren?"}),h.jsx(rn,{to:"/#reservieren",className:"inline-flex items-center gap-3 btn-invert text-xs tracking-[0.15em] uppercase px-8 py-4",children:"Tisch reservieren"})]})]})}),h.jsx(As,{})]})},ZU=()=>h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Zimmer & Frühstück am Chiemsee – Luitpold am See"}),h.jsx("meta",{name:"description",content:"Übernachte im Luitpold am See in Prien – Zimmer mit Frühstück am Chiemsee. Bestpreisgarantie über die offizielle Booking Engine."}),h.jsx("link",{rel:"canonical",href:"https://luitpold-am-see.de/uebernachtung"}),h.jsx("meta",{property:"og:title",content:"Zimmer & Frühstück am Chiemsee – Luitpold am See"}),h.jsx("meta",{property:"og:description",content:"Zimmer direkt buchen: Übernachtung mit Frühstück am Chiemsee. Bestpreisgarantie."}),h.jsx("meta",{property:"og:type",content:"website"}),h.jsx("meta",{property:"og:url",content:"https://luitpold-am-see.de/uebernachtung"}),h.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"LodgingBusiness",name:"Luitpold am See",description:"Zimmer mit Frühstück am Chiemsee in Prien.",url:"https://luitpold-am-see.de/uebernachtung",telephone:"+49-8051-609100",address:{"@type":"PostalAddress",streetAddress:"Seestraße 110",addressLocality:"Prien am Chiemsee",postalCode:"83209",addressCountry:"DE"}}
239)})]}),h.jsx(mi,{tag:"Übernachtung",headline:`BLEIB
240AM SEE.`,subtitle:"Zimmer direkt buchen",description:"Frühstücken am Chiemsee. Reserviere Deine Übernachtung direkt bei uns – ohne Umwege, mit Bestpreisgarantie.",imageUrl:"/uebernachtung-hero.jpg",imageAlt:"Helles Doppelzimmer im Luitpold am See mit Holzboden, gemütlichem Bett und Sitzecke"}),h.jsx("section",{className:"pb-24 md:pb-40",children:h.jsx("div",{className:"container mx-auto px-5",children:h.jsxs("div",{className:"max-w-3xl mx-auto",children:[h.jsxs("div",{className:"border border-foreground/10 p-8 md:p-12 bg-background",children:[h.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-muted-foreground mb-6",children:"Online Buchen"}),h.jsx("h2",{className:"font-headline text-3xl md:text-5xl text-foreground leading-[0.95] tracking-tighter mb-6",children:"VERFÜGBARKEIT PRÜFEN"}),h.jsx("p",{className:"text-muted-foreground font-body text-sm md:text-base font-light leading-relaxed mb-10 max-w-xl",children:"Wähle Deine Reisedaten und buche in wenigen Schritten – sicher und direkt beim Haus."}),h.jsx("button",{type:"button",onClick:ug,className:"btn-invert text-xs tracking-[0.15em] uppercase px-8 py-4",children:"Jetzt Zimmer mit Frühstück buchen"}),h.jsx("p",{className:"mt-4 font-body text-xs md:text-sm tracking-[0.05em] uppercase text-muted-foreground",children:"Inklusive Frühstück am Chiemsee – direkt im Haus, mit Blick auf den See."})]}),h.jsxs("div",{className:"mt-12 grid sm:grid-cols-2 gap-8 pt-12 border-t border-foreground
240/10",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-2",children:"Rezeption"}),h.jsxs("p",{className:"font-body text-sm text-foreground/70 leading-relaxed font-light",children:[h.jsx("a",{href:"tel:+498051609100",className:"hover:text-foreground transition-colors",children:"+49 8051 609 100"}),h.jsx("br",{}),h.jsx("a",{href:"mailto:[email protected]",className:"hover:text-foreground transition-colors",children:"[email protected]"})]})]}),h.jsxs("div",{children:[h.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground mb-2",children:"Adresse"}),h.jsxs("p",{className:"font-body text-sm text-foreground/70 leading-relaxed font-light",children:["Seestraße 110",h.jsx("br",{}),"83209 Prien am Chiemsee"]})]})]})]})})}),h.jsx(As,{})]});var ve;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},t.find=(s,i)=>{for(const o of s)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=r,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ve||(ve={}));var Kw;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Kw||(Kw={}));const K=ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wr=t=>{switch(typeof t){case"undefined":return K.undefined;case"string":return K.string;case"number":return Number.isNaN(t)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(t)?K.array:t===null?K.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?K.promise:typeof Map<"u"&&t instanceof Map?K.map:typeof Set<"u"&&t instanceof Set?K.set:typeof Date<"u"&&t instanceof Date?K.date:K.object;default:return K.unknown}}
vendor: 4,685 bytes, line 240
240,I=ve.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Cr extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(e){if(!(e instanceof Cr))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ve.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Cr.create=t=>new Cr(t);const Wp=(t,e)=>{let n;switch(t.code){case I.invalid_type:t.received===K.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case I.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,ve.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:n=`Unrecognized key(s) in object: ${ve.joinValues(t.keys,", ")}`;break;case I.invalid_union:n="Invalid input";break;case I.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ve.joinValues(t.options)}`;break;case I.invalid_enum_value:n=`Invalid enum value. Expected ${ve.joinValues(t.options)}, received '${t.received}'`;break;case I.invalid_arguments:n="Invalid function arguments";break;case I.invalid_return_type:n="Invalid function return type";break;case I.invalid_date:n="Invalid date";break;case I.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:ve.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case I.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case I.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case I.custom:n="Invalid input";break;case I.invalid_intersection_types:n="Intersection results could not be merged";break;case I.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case I.not_finite:n="Number must be finite";break;default:n=e.defaultError,ve.assertNever(t)}return{message:n}};let QU=Wp;function XU(){return QU}const eB=t=>
vendor: 29,073 bytes, line 240
240{const{data:e,path:n,errorMaps:r,issueData:s}=t,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:e,defaultError:a}).message;return{...s,path:i,message:a}};function B(t,e){const n=XU(),r=eB({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Wp?void 0:Wp].filter(s=>!!s)});t.common.issues.push(r)}class Gt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return ee;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return Gt.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return ee;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:e.value,value:r}}}const ee=Object.freeze({status:"aborted"}),ya=t=>({status:"dirty",value:t}),hn=t=>({status:"valid",value:t}),qw=t=>t.status==="aborted",Gw=t=>t.status==="dirty",Ro=t=>t.status==="valid",Vu=t=>typeof Promise<"u"&&t instanceof Promise;var q;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(q||(q={}));class Ss{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Yw=(t,e)=>{if(Ro(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Cr(t.common.issues);return this._error=n,this._error}}};function ce(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{const{message:l}=t;return o.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class me{get description(){return this._def.description}_getType(e){return Wr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Wr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Gt,ctx:{common:e.parent.common,data:e.data,parsedType:Wr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Vu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wr(e)},s=this._parseSync({data:e,path:r.path,parent:r});return Yw(r,s)}"~validate"(e){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wr(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:n});return Ro(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(i=>Ro(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wr(e)},s=this._parse({data:e,path:r.path,parent:r}),i=await(Vu(s)?s:Promise.resolve(s));return Yw(r,i)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=e(s),a=()=>i.addIssue({code:I.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new Oo({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ps.create(this,this._def)}nullable(){return Lo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return nr.create(this)}promise(){return qu.create(this,this._def)}or(e){return Hu.create([this,e],this._def)}and(e){return Ku.create(this,e,this._def)}transform(e){return new Oo({...ce(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Kp({...ce(this._def),innerType:this,defaultValue:n,typeName:te.ZodDefault})}brand(){return new kB({typeName:te.ZodBranded,type:this,...ce(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new qp({...ce(this._def),innerType:this,catchValue:n,typeName:te.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Wg.create(this,e)}readonly(){return Gp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tB=/^c[^\s-]{8,}$/i,nB=/^[0-9a-z]+$/,rB=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sB=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,iB=/^[a-z0-9_-]{21}$/i,oB=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aB=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,lB=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cB="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Wh;const uB=/^(?:(?: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])$/,dB=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,hB=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,fB=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pB=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mB=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,FE="((\\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])))",gB=new RegExp(`^${FE}$`);function UE(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function yB(t){return new RegExp(`^${UE(t)}$`)}function vB(t){let e=`${FE}T${UE(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function wB(t,e){return!!((e==="v4"||!e)&&uB.test(t)||(e==="v6"||!e)&&hB.test(t))}function xB(t,e){if(!oB.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function bB(t,e){return!!((e==="v4"||!e)&&dB.test(t)||(e==="v6"||!e)&&fB.test(t))}class ss extends me{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){const i=this._getOrReturnCtx(e);return B(i,{code:I.invalid_type,expected:K.string,received:i.parsedType}),ee}const r=new Gt;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:I.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:I.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?B(s,{code:I.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&B(s,{code:I.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")lB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"email",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Wh||(Wh=new RegExp(cB,"u")),Wh.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"emoji",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")sB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"uuid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")iB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"nanoid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")tB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"cuid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")nB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"cuid2",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")rB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"ulid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),B(s,{validation:"url",code:I.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"regex",code:I.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),B(s,{code:I.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),B(s,{code:I.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),B(s,{code:I.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?vB(i).test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{code:I.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?gB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{code:I.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?yB(i).test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{code:I.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?aB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"duration",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?wB(e.data,i.version)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"ip",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?xB(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"jwt",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?bB(e.data,i.version)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"cidr",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?pB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"base64",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?mB.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"base64url",code:I.invalid_string,message:i.message}),r.dirty()):ve.assertNever(i);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:I.invalid_string,...q.errToObj(r)})}_addCheck(e){return new ss({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...q.errToObj(e)})}url(e){return this._addCheck({kind:"url",...q.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...q.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...q.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...q.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...q.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...q.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...q.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...q.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...q.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...q.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...q.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...q.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...q.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...q.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...q.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...q.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...q.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...q.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...q.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...q.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...q.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...q.errToObj(n)})}nonempty(e){return this.min(1,q.errToObj(e))}trim(){return new ss({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ss({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ss({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}ss.create=t=>new ss({checks:[],typeName:te.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...ce(t)});function SB(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(t.toFixed(s).replace(".","")),o=Number.parseInt(e.toFixed(s).replace(".",""));return i%o/10**s}class gl extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){const i=this._getOrReturnCtx(e);return B(i,{code:I.invalid_type,expected:K.number,received:i.parsedType}),ee}let r;const s=new Gt;for(const i of this._def.checks)i.kind==="int"?ve.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),B(r,{code:I.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:I.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:I.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?SB(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),B(r,{code:I.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),B(r,{code:I.not_finite,message:i.message}),s.dirty()):ve.assertNever(i);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,q.toString(n))}gt(e,n){return this.setLimit("min",e,!1,q.toString(n))}lte(e,n){return this.setLimit("max",e,!0,q.toString(n))}lt(e,n){return this.setLimit("max",e,!1,q.toString(n))}setLimit(e,n,r,s){return new gl({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:q.toString(s)}]})}_addCheck(e){return new gl({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:q.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:q.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:q.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:q.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:q.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:q.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:q.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:q.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:q.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ve.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}gl.create=t=>new gl({checks:[],typeName:te.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...ce(t)});class yl extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==K.bigint)return this._getInvalidInput(e);let r;const s=new Gt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:I.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:I.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),B(r,{code:I.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ve.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return B(n,{code:I.invalid_type,expected:K.bigint,received:n.parsedType}),ee}gte(e,n){return this.setLimit("min",e,!0,q.toString(n))}gt(e,n){return this.setLimit("min",e,!1,q.toString(n))}lte(e,n){return this.setLimit("max",e,!0,q.toString(n))}lt(e,n){return this.setLimit("max",e,!1,q.toString(n))}setLimit(e,n,r,s){return new yl({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:q.toString(s)}]})}_addCheck(e){return new yl({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:q.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:q.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:q.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:q.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:q.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}yl.create=t=>new yl({checks:[],typeName:te.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...ce(t)});class Jw extends me{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){const r=this._getOrReturnCtx(e);return B(r,{code:I.invalid_type,expected:K.boolean,received:r.parsedType}),ee}return hn(e.data)}}Jw.create=t=>new Jw({typeName:te.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...ce(t)});class Wu extends me{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){const i=this._getOrReturnCtx(e);return B(i,{code:I.invalid_type,expected:K.date,received:i.parsedType}),ee}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return B(i,{code:I.invalid_date}),ee}const r=new Gt;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:I.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:I.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ve.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Wu({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:q.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:q.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Wu.create=t=>new Wu({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:te.ZodDate,...ce(t)});class Zw extends me{_parse(e){if(this._getType(e)!==K.symbol){const r=this._getOrReturnCtx(e);return B(r,{code:I.invalid_type,expected:K.symbol,received:r.parsedType}),ee}return hn(e.data)}}Zw.create=t=>new Zw({typeName:te.ZodSymbol,...ce(t)});class Qw extends me{_parse(e){if(this._getType(e)!==K.undefined){const r=this._getOrReturnCtx(e);return B(r,{code:I.invalid_type,expected:K.undefined,received:r.parsedType}),ee}return hn(e.data)}}Qw.create=t=>new Qw({typeName:te.ZodUndefined,...ce(t)});class Xw extends me{_parse(e){if(this._getType(e)!==K.null){const r=this._getOrReturnCtx(e);return B(r,{code:I.invalid_type,expected:K.null,received:r.parsedType}),ee}return hn(e.data)}}Xw.create=t=>new Xw({typeName:te.ZodNull,...ce(t)});class ex extends me{constructor(){super(...arguments),this._any=!0}_parse(e){return hn(e.data)}}ex.create=t=>new ex({typeName:te.ZodAny,...ce(t)});class tx extends me{constructor(){super(...arguments),this._unknown=!0}_parse(e){return hn(e.data)}}tx.create=t=>new tx({typeName:te.ZodUnknown,...ce(t)});class ks extends me{_parse(e){const n=this._getOrReturnCtx(e);return B(n,{code:I.invalid_type,expected:K.never,received:n.parsedType}),ee}}ks.create=t=>new ks({typeName:te.ZodNever,...ce(t)});class nx extends me{_parse(e){if(this._getType(e)!==K.undefined){const r=this._getOrReturnCtx(e);return B(r,{code:I.invalid_type,expected:K.void,received:r.parsedType}),ee}return hn(e.data)}}nx.create=t=>new nx({typeName:te.ZodVoid,...ce(t)});class nr extends me{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==K.array)return B(n,{code:I.invalid_type,expected:K.array,received:n.parsedType}),ee;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&(B(n,{code:o?I.too_big:I.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(B(n,{code:I.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(B(n,{code:I.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Ss(n,o,n.path,a)))).then(o=>Gt.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Ss(n,o,n.path,a)));return Gt.mergeArray(r,i)}
vendor: 5,075 bytes, line 240
240get element(){return this._def.type}min(e,n){return new nr({...this._def,minLength:{value:e,message:q.toString(n)}})}max(e,n){return new nr({...this._def,maxLength:{value:e,message:q.toString(n)}})}length(e,n){return new nr({...this._def,exactLength:{value:e,message:q.toString(n)}})}nonempty(e){return this.min(1,e)}}nr.create=(t,e)=>new nr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...ce(e)});function Ni(t){if(t instanceof ze){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ps.create(Ni(r))}return new ze({...t._def,shape:()=>e})}else return t instanceof nr?new nr({...t._def,type:Ni(t.element)}):t instanceof ps?ps.create(Ni(t.unwrap())):t instanceof Lo?Lo.create(Ni(t.unwrap())):t instanceof li?li.create(t.items.map(e=>Ni(e))):t}class ze extends me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=ve.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==K.object){const c=this._getOrReturnCtx(e);return B(c,{code:I.invalid_type,expected:K.object,received:c.parsedType}),ee}const{status:r,ctx:s}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ks&&this._def.unknownKeys==="strip"))for(const c in s.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const u=i[c],d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ss(s,d,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof ks){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&(B(s,{code:I.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ss(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>Gt.mergeObjectSync(r,c)):Gt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return q.errToObj,new ze({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:q.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new ze({...this._def,unknownKeys:"strip"})}passthrough(){return new ze({...this._def,unknownKeys:"passthrough"})}extend(e){return new ze({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ze({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new ze({...this._def,catchall:e})}pick(e){const n={};for(const r of ve.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new ze({...this._def,shape:()=>n})}omit(e){const n={};for(const r of ve.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new ze({...this._def,shape:()=>n})}deepPartial(){return Ni(this)}partial(e){const n={};for(const r of ve.objectKeys(this.shape)){const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}return new ze({...this._def,shape:()=>n})}required(e){const n={};for(const r of ve.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof ps;)i=i._def.innerType;n[r]=i}return new ze({...this._def,shape:()=>n})}keyof(){return BE(ve.objectKeys(this.shape))}}ze.create=(t,e)=>new ze({shape:()=>t,unknownKeys:"strip",catchall:ks.create(),typeName:te.ZodObject,...ce(e)});ze.strictCreate=(t,e)=>new ze({shape:()=>t,unknownKeys:"strict",catchall:ks.create(),typeName:te.ZodObject,...ce(e)});ze.lazycreate=(t,e)=>new ze({shape:t,unknownKeys:"strip",catchall:ks.create(),typeName:te.ZodObject,...ce(e)});class Hu extends me{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Cr(a.ctx.common.issues));return B(n,{code:I.invalid_union,unionErrors:o}),ee}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;
vendor: 5,010 bytes, line 240
240const a=o.map(l=>new Cr(l));return B(n,{code:I.invalid_union,unionErrors:a}),ee}}get options(){return this._def.options}}Hu.create=(t,e)=>new Hu({options:t,typeName:te.ZodUnion,...ce(e)});function Hp(t,e){const n=Wr(t),r=Wr(e);if(t===e)return{valid:!0,data:t};if(n===K.object&&r===K.object){const s=ve.objectKeys(e),i=ve.objectKeys(t).filter(a=>s.indexOf(a)!==-1),o={...t,...e};for(const a of i){const l=Hp(t[a],e[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===K.array&&r===K.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const o=t[i],a=e[i],l=Hp(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===K.date&&r===K.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Ku extends me{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(i,o)=>{if(qw(i)||qw(o))return ee;const a=Hp(i.value,o.value);return a.valid?((Gw(i)||Gw(o))&&n.dirty(),{status:n.value,value:a.data}):(B(r,{code:I.invalid_intersection_types}),ee)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ku.create=(t,e,n)=>new Ku({left:t,right:e,typeName:te.ZodIntersection,...ce(n)});class li extends me{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==K.array)return B(r,{code:I.invalid_type,expected:K.array,received:r.parsedType}),ee;if(r.data.length<this._def.items.length)return B(r,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;!this._def.rest&&r.data.length>this._def.items.length&&(B(r,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Ss(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Gt.mergeArray(n,o)):Gt.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new li({...this._def,rest:e})}}li.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new li({items:t,typeName:te.ZodTuple,rest:null,...ce(e)})};class rx extends me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==K.map)return B(r,{code:I.invalid_type,expected:K.map,received:r.parsedType}),ee;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new Ss(r,a,r.path,[c,"key"])),value:i._parse(new Ss(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return ee;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return ee;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}rx.create=(t,e,n)=>new rx({valueType:e,keyType:t,typeName:te.ZodMap,...ce(n)});class vl extends me{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==K.set)return B(r,{code:I.invalid_type,expected:K.set,received:r.parsedType}),ee;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(B(r,{code:I.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(B(r,{code:I.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return ee;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>i._parse(new Ss(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,n){return new vl({...this._def,minSize:{value:e,message:q.toString(n)}})}max(e,n){return new vl({...this._def,maxSize:{value:e,message:q.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}vl.create=(t,e)=>new vl({valueType:t,minSize:null,maxSize:null,typeName:te.ZodSet,...ce(e)});class sx extends me{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}sx.create=(t,e)=>new sx({getter:t,typeName:te.ZodLazy,...ce(e)});class ix extends me{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return B(n,{received:n.data,code:I.invalid_literal,expected:this._def.value}),ee}
vendor: 5,366 bytes, line 240
240return{status:"valid",value:e.data}}get value(){return this._def.value}}ix.create=(t,e)=>new ix({value:t,typeName:te.ZodLiteral,...ce(e)});function BE(t,e){return new No({values:t,typeName:te.ZodEnum,...ce(e)})}class No extends me{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return B(n,{expected:ve.joinValues(r),received:n.parsedType,code:I.invalid_type}),ee}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return B(n,{received:n.data,code:I.invalid_enum_value,options:r}),ee}return hn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return No.create(e,{...this._def,...n})}exclude(e,n=this._def){return No.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}No.create=BE;class ox extends me{_parse(e){const n=ve.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==K.string&&r.parsedType!==K.number){const s=ve.objectValues(n);return B(r,{expected:ve.joinValues(s),received:r.parsedType,code:I.invalid_type}),ee}if(this._cache||(this._cache=new Set(ve.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=ve.objectValues(n);return B(r,{received:r.data,code:I.invalid_enum_value,options:s}),ee}return hn(e.data)}get enum(){return this._def.values}}ox.create=(t,e)=>new ox({values:t,typeName:te.ZodNativeEnum,...ce(e)});class qu extends me{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==K.promise&&n.common.async===!1)return B(n,{code:I.invalid_type,expected:K.promise,received:n.parsedType}),ee;const r=n.parsedType===K.promise?n.data:Promise.resolve(n.data);return hn(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}qu.create=(t,e)=>new qu({type:t,typeName:te.ZodPromise,...ce(e)});class Oo extends me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o=>{B(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return ee;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ee:l.status==="dirty"||n.value==="dirty"?ya(l.value):l});{if(n.value==="aborted")return ee;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?ee:a.status==="dirty"||n.value==="dirty"?ya(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ee:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ee:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ro(o))return ee;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Ro(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):ee);ve.assertNever(s)}}Oo.create=(t,e,n)=>new Oo({schema:t,typeName:te.ZodEffects,effect:e,...ce(n)});Oo.createWithPreprocess=(t,e,n)=>new Oo({schema:e,effect:{type:"preprocess",transform:t},typeName:te.ZodEffects,...ce(n)});class ps extends me{_parse(e){return this._getType(e)===K.undefined?hn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ps.create=(t,e)=>new ps({innerType:t,typeName:te.ZodOptional,...ce(e)});class Lo extends me{_parse(e){return this._getType(e)===K.null?hn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Lo.create=(t,e)=>new Lo({innerType:t,typeName:te.ZodNullable,...ce(e)});class Kp extends me{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===K.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Kp.create=(t,e)=>new Kp({innerType:t,typeName:te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ce(e)});class qp extends me{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Vu(s)?s.then(i=>
240({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Cr(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Cr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}qp.create=(t,e)=>new qp({innerType:t,typeName:te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ce(e)});class ax extends me{_parse(e){if(this._getType(e)!==K.nan){const r=this._getOrReturnCtx(e);return B(r,{code:I.invalid_type,expected:K.nan,received:r.parsedType}),ee}return{status:"valid",value:e.data}}}ax.create=t=>new ax({typeName:te.ZodNaN,...ce(t)});class kB extends me{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Wg extends me{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ee:i.status==="dirty"?(n.dirty(),ya(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ee:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Wg({in:e,out:n,typeName:te.ZodPipeline})}}class Gp extends me{_parse(e){const n=this._def.innerType._parse(e),r=s=>(Ro(s)&&(s.value=Object.freeze(s.value)),s);return Vu(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Gp.create=(t,e)=>new Gp({innerType:t,typeName:te.ZodReadonly,...ce(e)});ze.lazycreate;var te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(te||(te={}));const Qi=ss.create;ks.create;nr.create;const zE=ze.create;ze.strictCreate;Hu.create;Ku.create;li.create;No.create;qu.create;ps.create;Lo.create;const VE=()=>{const[t,e]=b.useState(null),[n,r]=b.useState(null),[s,i]=b.useState(!1),[o,a]=b.useState(!0);b.useEffect(()=>{const{data:u}=vt.auth.onAuthStateChange((d,f)=>{e(f),r((f==null?void 0:f.user)??null),f!=null&&f.user?setTimeout(()=>l(f.user.id),0):(i(!1),a(!1))});return vt.auth.getSession().then(({data:{session:d}})=>{e(d),r((d==null?void 0:d.user)??null),d!=null&&d.user?l(d.user.id):a(!1)}),()=>u.subscription.unsubscribe()},[]);const l=async u=>{a(!0);const{data:d}=await vt.from("user_roles").select("role").eq("user_id",u).eq("role","admin").maybeSingle();i(!!d),a(!1)};return{session:t,user:n,isAdmin:s,loading:o,signOut:async()=>{await vt.auth.signOut()}}},$t=b.forwardRef(({className:t,type:e,...n},r)=>h.jsx("input",{type:e,className:qt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...n}));$t.displayName="Input";const _B=Ym("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"}}),st=b.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},i)=>{const o=r?kP:"button";return h.jsx(o,{className:qt(_B({variant:e,size:n,className:t})),ref:i,...s})});st.displayName="Button";const EB=zE({email:Qi().trim().email("Ungültige E-Mail").max(255),password:Qi().min(6,"Mindestens 6 Zeichen").max(128)}),TB=()=>{const t=Sd(),{session:e,loading:n}=VE(),[r,s]=b.useState("login"),[i,o]=b.useState(""),[a,l]=b.useState(""),[c,u]=b.useState(!1);b.useEffect(()=>{!n&&e&&t("/admin",{replace:!0})},[e,n,t]);const d=async f=>{f.preventDefault();const p=EB.safeParse({email:i,password:a});if(!p.success){He.error(p.error.errors[0].message);return}const m={email:p.data.email,password:p.data.password};u(!0);try{if(r==="login"){const{error:g}=await vt.auth.signInWithPassword(m);if(g)throw g;He.success("Willkommen zurück")}else{const{error:g}=await vt.auth.signUp({...m,options:{emailRedirectTo:`${window.location.origin}/admin`}});if(g)throw g;He.success("Konto erstellt. Bitte E-Mail bestätigen.")}}catch(g){He.error(g.message??"Fehler bei der Anmeldung")}finally{u(!1)}};return h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Login – LUI Admin"}),h.jsx("meta",{name:"robots",content:"noindex,nofollow"})]}),h.jsx("main",{className:"min-h-screen flex items-center justify-center px-5 bg-background",children:h.jsxs("div",{className:"w-full max-w-sm",children:[h.jsx(rn,{to:"/",className:"font-headline text-3xl tracking-tighter block mb-10",children:"LUI"}),h.jsx("h1",{className:"font-headline text-3xl mb-2 tracking-tighter",children:r==="login"?"ANMELDEN":"REGISTRIEREN"}),h.jsx("p",{className:"font-body text-sm text-muted-foreground mb-8",children:"Zugang zum Admin-Bereich für die Speisekarten."}),h.jsxs("form",{onSubmit:d,className:"space-y-4",children:[h.jsx($t,{type:"email",placeholder:"E-Mail",value:i,onChange:f=>o(f.target.value),autoComplete:"email",required:!0}),h.jsx($t,{type:"password",placeholder:"Passwort",value:a,onChange:f=>l(f.target.value),autoComplete:r==="login"?"current-password":"new-password",required:!0}
vendor: 20,271 bytes, line 240
240),h.jsx(st,{type:"submit",disabled:c,className:"w-full",children:c?"...":r==="login"?"Anmelden":"Konto erstellen"})]}),h.jsx("button",{onClick:()=>s(r==="login"?"signup":"login"),className:"mt-6 text-xs tracking-[0.15em] uppercase text-muted-foreground hover:text-foreground transition",children:r==="login"?"Neues Konto erstellen":"Bereits registriert? Anmelden"})]})})]})};function Mn(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function ci(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}const WE=6048e5,CB=864e5;let AB={};function Nd(){return AB}function wl(t,e){var a,l,c,u;const n=Nd(),r=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=Mn(t),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Gu(t){return wl(t,{weekStartsOn:1})}function HE(t){const e=Mn(t),n=e.getFullYear(),r=ci(t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=Gu(r),i=ci(t,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Gu(i);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function lx(t){const e=Mn(t);return e.setHours(0,0,0,0),e}function cx(t){const e=Mn(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function PB(t,e){const n=lx(t),r=lx(e),s=+n-cx(n),i=+r-cx(r);return Math.round((s-i)/CB)}function jB(t){const e=HE(t),n=ci(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),Gu(n)}function RB(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function NB(t){if(!RB(t)&&typeof t!="number")return!1;const e=Mn(t);return!isNaN(Number(e))}function OB(t){const e=Mn(t),n=ci(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}const LB={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"}},IB=(t,e,n)=>{let r;const s=LB[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hh(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const DB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},MB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$B={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FB={date:Hh({formats:DB,defaultWidth:"full"}),time:Hh({formats:MB,defaultWidth:"full"}),dateTime:Hh({formats:$B,defaultWidth:"full"})},UB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},BB=(t,e,n,r)=>UB[t];function la(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return s[i]}}const zB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},VB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WB={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"]},HB={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"]},KB={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"}},qB={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"}},GB=(t,e)=>{const n=Number(t),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"},YB={ordinalNumber:GB,era:la({values:zB,defaultWidth:"wide"}),quarter:la({values:VB,defaultWidth:"wide",argumentCallback:t=>t-1}),month:la({values:WB,defaultWidth:"wide"}),day:la({values:HB,defaultWidth:"wide"}),dayPeriod:la({values:KB,defaultWidth:"wide",formattingValues:qB,defaultFormattingWidth:"wide"})};function ca(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(s);if(!i)return null;const o=i[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?ZB(a,d=>d.test(o)):JB(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function JB(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function ZB(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function QB(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(s.length);return{value:o,rest:a}}}const XB=/^(\d+)(th|st|nd|rd)?/i,ez=/\d+/i,tz={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},nz={any:[/^b/i,/^(a|c)/i]},rz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sz={any:[/1/i,/2/i,/3/i,/4/i]},iz={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},oz={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]},az={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},lz={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]},cz={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},uz={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}},dz={ordinalNumber:QB({matchPattern:XB,parsePattern:ez,valueCallback:t=>parseInt(t,10)}),era:ca({matchPatterns:tz,defaultMatchWidth:"wide",parsePatterns:nz,defaultParseWidth:"any"}),quarter:ca({matchPatterns:rz,defaultMatchWidth:"wide",parsePatterns:sz,defaultParseWidth:"any",valueCallback:t=>t+1}),month:ca({matchPatterns:iz,defaultMatchWidth:"wide",parsePatterns:oz,defaultParseWidth:"any"}),day:ca({matchPatterns:az,defaultMatchWidth:"wide",parsePatterns:lz,defaultParseWidth:"any"}),dayPeriod:ca({matchPatterns:cz,defaultMatchWidth:"any",parsePatterns:uz,defaultParseWidth:"any"})},hz={code:"en-US",formatDistance:IB,formatLong:FB,formatRelative:BB,localize:YB,match:dz,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fz(t){const e=Mn(t);return PB(e,OB(e))+1}function pz(t){const e=Mn(t),n=+Gu(e)-+jB(e);return Math.round(n/WE)+1}function KE(t,e){var u,d,f,p;const n=Mn(t),r=n.getFullYear(),s=Nd(),i=(e==null?void 0:e.firstWeekContainsDate)??((d=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??s.firstWeekContainsDate??((p=(f=s.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=ci(t,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=wl(o,e),l=ci(t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=wl(l,e);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function mz(t,e){var a,l,c,u;const n=Nd(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,s=KE(t,e),i=ci(t,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),wl(i,e)}function gz(t,e){const n=Mn(t),r=+wl(n,e)-+mz(n,e);return Math.round(r/WE)+1}function we(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const $r={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return we(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):we(n+1,2)},d(t,e){return we(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e){return we(t.getHours()%12||12,e.length)},H(t,e){return we(t.getHours(),e.length)},m(t,e){return we(t.getMinutes(),e.length)},s(t,e){return we(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return we(s,e.length)}},Ti={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ux={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){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(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return $r.y(t,e)},Y:function(t,e,n,r){const s=KE(t,r),i=s>0?s:1-s;if(e==="YY"){const o=i%100;return we(o,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):we(i,e.length)},R:function(t,e){const n=HE(t);return we(n,e.length)},u:function(t,e){const n=t.getFullYear();return we(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return we(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(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return we(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(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return $r.M(t,e);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(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return we(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(t,e,n,r){const s=gz(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):we(s,e.length)},I:function(t,e,n){const r=pz(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):we(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):$r.d(t,e)},D:function(t,e,n){const r=fz(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):we(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){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(t,e,n,r){const s=t.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return we(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(t,e,n,r){const s=t.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return we(i,e.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(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return we(s,e.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(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e,n){const r=t.getHours();let s;switch(r===12?s=Ti.noon:r===0?s=Ti.midnight:s=r/12>=1?"pm":"am",e){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(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Ti.evening:r>=12?s=Ti.afternoon:r>=4?s=Ti.morning:s=Ti.night,e){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(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return $r.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):$r.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):$r.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):$r.s(t,e)},S:function(t,e){return $r.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return hx(r);case"XXXX":case"XX":return $s(r);case"XXXXX":case"XXX":default:return $s(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return hx(r);case"xxxx":case"xx":return $s(r);case"xxxxx":case"xxx":default:return $s(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+dx(r,":");case"OOOO":default:return"GMT"+$s(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+dx(r,":");case"zzzz":default:return"GMT"+$s(r,":")}},t:function(t,e,n){const r=Math.trunc(t.getTime()/1e3);return we(r,e.length)},T:function(t,e,n){const r=t.getTime();return we(r,e.length)}};function dx(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+e+we(i,2)}function hx(t,e){return t%60===0?(t>0?"-":"+")+we(Math.abs(t)/60,2):$s(t,e)}function $s(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=we(Math.trunc(r/60),2),i=we(r%60,2);return n+s+e+i}const fx=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},qE=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},yz=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return fx(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",fx(r,e)).replace("{{time}}",qE(s,e))},vz={p:qE,P:yz},wz=/^D+$/,xz=/^Y+$/,bz=["D","DD","YY","YYYY"];function Sz(t){return wz.test(t)}function kz(t){return xz.test(t)}function _z(t,e,n){const r=Ez(t,e,n);if(console.warn(r),bz.includes(t))throw new RangeError(r)}function Ez(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Tz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Cz=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Az=/^'([^]*?)'?$/,Pz=/''/g,jz=/[a-zA-Z]/;function Ec(t,e,n){var u,d,f,p;const r=Nd(),s=r.locale??hz,i=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,a=Mn(t);if(!NB(a))throw new RangeError("Invalid time value");let l=e.match(Cz).map(m=>{const g=m[0];if(g==="p"||g==="P"){const x=vz[g];return x(m,s.formatLong)}return m}).join("").match(Tz).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const g=m[0];if(g==="'")return{isToken:!1,value:Rz(m)};if(ux[g])return{isToken:!0,value:m};
vendor: 3,919 bytes, line 240
240if(g.match(jz))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:m}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(m=>{if(!m.isToken)return m.value;const g=m.value;(kz(g)||Sz(g))&&_z(g,e,String(t));const x=ux[g[0]];return x(a,g,s.localize,c)}).join("")}function Rz(t){const e=t.match(Az);return e?e[1].replace(Pz,"'"):t}const GE=b.forwardRef(({className:t,...e},n)=>h.jsx("textarea",{className:qt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-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",t),ref:n,...e}));GE.displayName="Textarea";var Nz="Label",YE=b.forwardRef((t,e)=>h.jsx(ft.label,{...t,ref:e,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));YE.displayName=Nz;var JE=YE;const Oz=Ym("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oi=b.forwardRef(({className:t,...e},n)=>h.jsx(JE,{ref:n,className:qt(Oz(),t),...e}));Oi.displayName=JE.displayName;function Lz(t){const e=b.useRef({value:t,previous:t});return b.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Od="Switch",[Iz,t3]=Pl(Od),[Dz,Mz]=Iz(Od),ZE=b.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:i,required:o,disabled:a,value:l="on",onCheckedChange:c,form:u,...d}=t,[f,p]=b.useState(null),m=Kt(e,w=>p(w)),g=b.useRef(!1),x=f?u||!!f.closest("form"):!0,[y,v]=QS({prop:s,defaultProp:i??!1,onChange:c,caller:Od});return h.jsxs(Dz,{scope:n,checked:y,disabled:a,children:[h.jsx(ft.button,{type:"button",role:"switch","aria-checked":y,"aria-required":o,"data-state":tT(y),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:m,onClick:Ye(t.onClick,w=>{v(S=>!S),x&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})}),x&&h.jsx(eT,{control:f,bubbles:!g.current,name:r,value:l,checked:y,required:o,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});ZE.displayName=Od;var QE="SwitchThumb",XE=b.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,s=Mz(QE,n);return h.jsx(ft.span,{"data-state":tT(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});XE.displayName=QE;var $z="SwitchBubbleInput",eT=b.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...s},i)=>{const o=b.useRef(null),a=Kt(o,i),l=Lz(n),c=H1(e);return b.useEffect(()=>{const u=o.current;if(!u)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&p){const m=new Event("click",{bubbles:r});p.call(u,n),u.dispatchEvent(m)}},[l,n,r]),h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:a,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});eT.displayName=$z;function tT(t){return t?"checked":"unchecked"}var nT=ZE,Fz=XE;const rT=b.forwardRef(({className:t,...e},n)=>h.jsx(nT,{className:qt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",t),...e,ref:n,children:h.jsx(Fz,{className:qt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));rT.displayName=nT.displayName;
240const Kh=[{heading:"Speisen",categories:[{title:"Vorspeisen",items:[{name:"",price:""}]}]}],Uz=zE({title:Qi().trim().min(1,"Titel erforderlich").max(120),season_label:Qi().trim().max(80).optional(),start_date:Qi().min(1,"Startdatum erforderlich"),end_date:Qi().min(1,"Enddatum erforderlich")}),sT=1,iT=150,Bz=t=>{if(!t)return null;const e=t.replace(/\s+/g,"").match(/(\d+[.,]?\d*)/);if(!e)return null;const n=parseFloat(e[1].replace(",","."));return Number.isFinite(n)?n:null},oT=t=>{var r;const e={};(r=t.name)!=null&&r.trim()||(e.name="Name fehlt");const n=(t.price??"").trim();if(!n)e.price="Preis fehlt";else{const s=Bz(n);s===null?e.price="Preis nicht lesbar":s<sT?e.price=`Preis sehr niedrig (${s.toFixed(2)} €)`:s>iT&&(e.price=`Preis sehr hoch (${s.toFixed(2)} €)`)}return e},px=t=>{let e=0,n=0;const r={};return t.forEach((s,i)=>{s.categories.forEach((o,a)=>{o.items.forEach((l,c)=>{var d;const u=oT(l);(u.name||u.price)&&(r[`${i}-${a}-${c}`]=u,(u.name||(d=u.price)!=null&&d.includes("fehlt"))&&e++,u.price&&!u.price.includes("fehlt")&&n++)})})}),{map:r,missing:e,implausible:n,total:Object.keys(r).length}},zz=()=>{const{session:t,isAdmin:e,loading:n,signOut:r,user:s}=VE(),i=Sd(),[o,a]=b.useState([]),[l,c]=b.useState(null),[u,d]=b.useState(!1),[f,p]=b.useState(!1),[m,g]=b.useState(!1),[x,y]=b.useState(""),[v,w]=b.useState(""),[S,k]=b.useState(""),[_,E]=b.useState(""),[T,A]=b.useState(!0),[N,F]=b.useState(Kh),[U,X]=b.useState(null),[M,se]=b.useState(null),[Z,H]=b.useState(null),[C,P]=b.useState(!1);b.useEffect(()=>{!n&&!t&&i("/auth",{replace:!0})},[t,n,i]),b.useEffect(()=>{e&&D()},[e]);const D=async()=>{const{data:O,error:G}=await vt.from("menus").select("*").order("start_date",{ascending:!1});if(G){He.error(G.message);return}a(O??[])},Q=()=>{c(null),y(""),w(""),k(Ec(new Date,"yyyy-MM-dd")),E(""),A(!0),F(Kh),X(null),se(null),H(null),d(!0)},Y=O=>{var G;c(O),y(O.title),w(O.season_label??""),k(O.start_date),E(O.end_date),A(O.is_active),F((G=O.data)!=null&&G.length?O.data:Kh),X(O.file_url??null),se(O.file_name??null),H(O.file_type??null),d(!0)},oe=()=>{F(JSON.parse(JSON.stringify(yE))),He.success("Bestehende Speisekarte als Vorlage geladen")},le=async O=>{var Fl;const G=/\.(pdf|jpe?g|png|webp)$/i.test(O.name);if(!(O.type==="application/pdf"||O.type.startsWith("image/")||G)){He.error("Bitte PDF oder Bild (JPG/PNG) hochladen. Word-Dateien vorher als PDF exportieren.");return}if(O.size>20*1024*1024){He.error("Datei zu groß (max. 20 MB)");return}P(!0);const ae=((Fl=O.name.split(".").pop())==null?void 0:Fl.toLowerCase())??"pdf",he=`${(s==null?void 0:s.id)??"anon"}/${Date.now()}-${Math.random().toString(36).slice(2,8)}.${ae}`,{error:Ce}=await vt.storage.from("menu-files").upload(he,O,{contentType:O.type||void 0,upsert:!1});if(Ce){P(!1),He.error(Ce.message);return}const{data:be}=vt.storage.from("menu-files").getPublicUrl(he);He.message("Speisekarte wird ausgelesen…",{description:"Das kann 10–30 Sekunden dauern."});const{data:Fe,error:Mt}=await vt.functions.invoke("parse-menu",{body:{fileUrl:be.publicUrl,fileType:O.type||(ae==="pdf"?"application/pdf":`image/${ae}`)}});if(await vt.storage.from("menu-files").remove([he]),P(!1),Mt||Fe&&Fe.error){He.error((Mt==null?void 0:Mt.message)||(Fe==null?void 0:Fe.error)||"Auslesen fehlgeschlagen");return}const ke=Fe==null?void 0:Fe.sections;if(!Array.isArray(ke)||ke.length===0){He.error("Keine Inhalte erkannt. Bitte manuell befüllen.");return}F(ke);const We=px(ke);We.total>0?He.warning(`Erkannt, aber ${We.total} Eintrag/Einträge prüfen: ${We.missing} fehlende Felder, ${We.implausible} unplausible Preise.`,{description:"Markierte Felder im Formular rot prüfen."}):He.success(`Speisekarte erkannt (${ke.length} Bereich(e)). Alles plausibel.`)},$e=async()=>{const O=Uz.safeParse({title:x,season_label:v,start_date:S,end_date:_});if(!O.success){He.error(O.error.errors[0].message);return}if(new Date(_)<new Date(S)){He.error("Enddatum muss nach dem Startdatum liegen");return}g(!0);const G={title:O.data.title,season_label:O.data.season_label||null,start_date:O.data.start_date,end_date:O.data.end_date,is_active:T,data:N,created_by:s==null?void 0:s.id},{error:ue}=l?await vt.from("menus").update(G).eq("id",l.id):await vt.from("menus").insert(G);if(g(!1),ue){He.error(ue.message);return}He.success(l?"Speisekarte aktualisiert":"Speisekarte angelegt"),d(!1),c(null),D()},nt=async O=>{if(!confirm(`„${O.title}" wirklich löschen?`))return;const{error:G}=await vt.from("menus").delete().eq("id",O.id);if(G)return He.error(G.message);He.success("Gelöscht"),D()},ge=async O=>{const{error:G}=await vt.from("menus").update({is_active:!O.is_active}).eq("id",O.id);if(G)return He.error(G.message);D()},jr=(O,G)=>F(ue=>ue.map((ae,he)=>he===O?{...ae,...G}:ae)),$n=()=>F(O=>[...O,{heading:"Neuer Bereich",categories:[{title:"Neue Kategorie",items:[]}]}]),or=O=>F(G=>G.filter((ue,ae)=>ae!==O)),Fn=(O,G,ue)=>F(ae=>ae.map((he,Ce)=>Ce===O?{...he,categories:he.categories.map((be,Fe)=>Fe===G?{...be,...ue}:be)}:he)),Rr=O=>F(G=>G.map((ue,ae)=>ae===O?{...ue,categories:[...ue.categories,{title:"Neue Kategorie",items:[]}]}:ue)),Un=(O,G)=>F(ue=>ue.map((ae,he)=>he===O?{...ae,categories:ae.categories.filter((Ce,be)=>be!==G)}:ae)),ar=(O,G,ue,ae)=>F(he=>he.map((Ce,be)=>be===O?{...Ce,categories:Ce.categories.map((Fe,Mt)=>Mt===G?{...Fe,items:Fe.items.map((ke,We)=>We===ue?{...ke,...ae}:ke)}:Fe)}:Ce)),Ko=(O,G)=>F(ue=>ue.map((ae,he)=>he===O?{...ae,categories:ae.categories.map((Ce,be)=>be===G?{...Ce,items:[...Ce.items,{name:"",price:""}]}:Ce)}:ae)),gi=(O,G,ue)=>F(ae=>ae.map((he,Ce)=>Ce===O?{...he,categories:he.categories.map((be,Fe)=>Fe===G?{...be,items:be.items.filter((Mt,ke)=>ke!==ue)}:be)}:he));return n?h.jsx("div",{className:"min-h-screen flex items-center justify-center",children:"Lade…"}):t?e?h.jsxs(h.Fragment,{children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Admin – Speisekarten verwalten"}),h.jsx("meta",{name:"robots",content:"noindex,nofollow"})]}
240),h.jsx("header",{className:"border-b border-foreground/10 bg-background sticky top-0 z-30",children:h.jsxs("div",{className:"container mx-auto px-5 h-16 flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsx(rn,{to:"/",className:"font-headline text-2xl tracking-tighter",children:"LUI"}),h.jsx("span",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground",children:"Admin"})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("span",{className:"font-body text-xs text-muted-foreground hidden sm:block",children:s==null?void 0:s.email}),h.jsxs(st,{variant:"ghost",size:"sm",onClick:r,children:[h.jsx(Ej,{className:"w-4 h-4 mr-2"}),"Abmelden"]})]})]})}),h.jsx("main",{className:"container mx-auto px-5 py-10 bg-background min-h-screen",children:u?h.jsxs(h.Fragment,{children:[h.jsxs("button",{onClick:()=>{d(!1),c(null)},className:"flex items-center gap-2 text-xs tracking-[0.15em] uppercase text-muted-foreground hover:text-foreground mb-8",children:[h.jsx(b1,{className:"w-4 h-4"}),"Zurück zur Übersicht"]}),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[h.jsxs("div",{className:"space-y-8",children:[h.jsx("h2",{className:"font-headline text-4xl tracking-tighter",children:l?"BEARBEITEN":"NEUE KARTE"}),h.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[h.jsxs("div",{children:[h.jsx(Oi,{children:"Titel *"}),h.jsx($t,{value:x,onChange:O=>y(O.target.value),placeholder:"z. B. Frühlingskarte 2026"})]}),h.jsxs("div",{children:[h.jsx(Oi,{children:"Saison-Label (optional)"}),h.jsx($t,{value:v,onChange:O=>w(O.target.value),placeholder:"z. B. Frühling"})]}),h.jsxs("div",{children:[h.jsx(Oi,{children:"Startdatum *"}),h.jsx($t,{type:"date",value:S,onChange:O=>k(O.target.value)})]}),h.jsxs("div",{children:[h.jsx(Oi,{children:"Enddatum *"}),h.jsx($t,{type:"date",value:_,onChange:O=>E(O.target.value)})]})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(rT,{checked:T,onCheckedChange:A,id:"active"}),h.jsx(Oi,{htmlFor:"active",children:"Aktiv (im Zeitraum auf Website anzeigen)"})]}
240),h.jsxs("div",{className:"border border-foreground/10 p-5 space-y-3",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"font-body font-medium text-sm tracking-wide",children:"Aus Datei importieren (KI)"}),h.jsxs("p",{className:"font-body text-xs text-muted-foreground mt-1",children:["Lade ein ",h.jsx("strong",{children:"PDF"})," oder ein Bild (JPG/PNG) deiner Speisekarte hoch. Die KI liest die Inhalte automatisch aus und füllt das Formular unten. Anschließend kannst du prüfen, anpassen und speichern. ",h.jsx("strong",{children:"Word-Dateien bitte vorher als PDF exportieren"}),'(Word → Datei → „Als PDF speichern").']})]}),h.jsx($t,{type:"file",accept:".pdf,.jpg,.jpeg,.png,.webp,application/pdf,image/*",disabled:C,onChange:O=>{var ue;const G=(ue=O.target.files)==null?void 0:ue[0];G&&le(G),O.target.value=""}}),C&&h.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"Wird hochgeladen und ausgelesen…"})]}),h.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[h.jsx(st,{type:"button",variant:"outline",size:"sm",onClick:oe,children:"Aktuelle Speisekarte als Vorlage laden"}),h.jsx(st,{type:"button",variant:"outline",size:"sm",onClick:()=>p(O=>!O),children:f?"Vorschau schließen":"Vorschau (mobile)"})]}),(()=>{const O=px(N);return O.total===0?null:h.jsxs("div",{className:"border border-destructive/40 bg-destructive/5 p-4 flex items-start gap-3",children:[h.jsx(gh,{className:"w-4 h-4 mt-0.5 text-destructive shrink-0"}),h.jsxs("div",{className:"text-xs font-body leading-relaxed",children:[h.jsxs("strong",{children:[O.total," Eintrag/Einträge prüfen."]})," ",O.missing>0&&h.jsxs(h.Fragment,{children:["Fehlende Felder: ",O.missing,". "]}),O.implausible>0&&h.jsxs(h.Fragment,{children:["Unplausible Preise: ",O.implausible," (außerhalb ",sT,"–",iT," €)."]})]})]})})(),h.jsxs("div",{className:"space-y-10 pt-4",children:[N.map((O,G)=>
240h.jsxs("div",{className:"border border-foreground/10 p-5 space-y-4",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx($t,{value:O.heading,onChange:ue=>jr(G,{heading:ue.target.value}),className:"font-medium",placeholder:"Bereich (z. B. Speisen, Getränke)"}),h.jsx(st,{type:"button",variant:"ghost",size:"sm",onClick:()=>or(G),children:h.jsx(cc,{className:"w-4 h-4"})})]}),O.categories.map((ue,ae)=>h.jsxs("div",{className:"pl-4 border-l border-foreground/10 space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx($t,{value:ue.title,onChange:he=>Fn(G,ae,{title:he.target.value}),placeholder:"Kategorie (z. B. Vorspeisen)"}),h.jsx(st,{type:"button",variant:"ghost",size:"sm",onClick:()=>Un(G,ae),children:h.jsx(cc,{className:"w-4 h-4"})})]}),ue.items.map((he,Ce)=>{const be=oT(he),Fe=!!be.name,Mt=!!be.price,ke="border-destructive focus-visible:ring-destructive/40";return h.jsxs("div",{className:"grid grid-cols-12 gap-2 items-start",children:[h.jsxs("div",{className:"col-span-4",children:[h.jsx($t,{placeholder:"Name",value:he.name,onChange:We=>ar(G,ae,Ce,{name:We.target.value}),className:Fe?ke:"","aria-invalid":Fe}),Fe&&h.jsxs("p",{className:"text-[10px] text-destructive mt-1 flex items-center gap-1",children:[h.jsx(gh,{className:"w-3 h-3"}),be.name]})]}),h.jsx(GE,{className:"col-span-5 min-h-[40px]",placeholder:"Beschreibung (optional)",value:he.description??"",onChange:We=>ar(G,ae,Ce,{description:We.target.value}),rows:1}),h.jsx($t,{className:"col-span-1",placeholder:"Größe",value:he.size??"",onChange:We=>ar(G,ae,Ce,{size:We.target.value})}),h.jsxs("div",{className:"col-span-1",children:[h.jsx($t,{placeholder:"Preis",value:he.price,onChange:We=>ar(G,ae,Ce,{price:We.target.value}),className:Mt?ke:"","aria-invalid":Mt,title:be.price}),Mt&&h.jsxs("p",{className:"text-[10px] text-destructive mt-1 flex items-center gap-1",children:[h.jsx(gh,{className:"w-3 h-3"}),be.price]})]}),h.jsx(st,{type:"button",variant:"ghost",size:"sm",className:"col-span-1",onClick:()=>gi(G,ae,Ce),children:h.jsx(cc,{className:"w-4 h-4"})})]},Ce)}),h.jsxs(st,{type:"button",variant:"outline",size:"sm",onClick:()=>Ko(G,ae),className:"gap-2",children:[h.jsx(lc,{className:"w-3 h-3"}),"Gericht"]})]},ae)),h.jsxs(st,{type:"button",variant:"outline",size:"sm",onClick:()=>Rr(G),className:"gap-2",children:[h.jsx(lc,{className:"w-3 h-3"}),"Kategorie"]})]},G)),h.jsxs(st,{type:"button",variant:"outline",onClick:$n,className:"gap-2",children:[h.jsx(lc,{className:"w-4 h-4"}),"Bereich hinzufügen"]})]}),h.jsxs("div",{className:"flex gap-3 pt-6 border-t border-foreground
240/10",children:[h.jsx(st,{onClick:$e,disabled:m,children:m?"Speichere…":l?"Änderungen speichern":"Speisekarte anlegen"}),h.jsx(st,{variant:"ghost",onClick:()=>{d(!1),c(null)},children:"Abbrechen"})]})]}),h.jsx("div",{className:"lg:sticky lg:top-24 lg:self-start",children:h.jsxs("div",{className:"border border-foreground/10 bg-background",children:[h.jsxs("div",{className:"px-5 py-3 border-b border-foreground/10 flex items-center justify-between",children:[h.jsx("span",{className:"font-body text-xs tracking-[0.2em] uppercase text-muted-foreground",children:"Live-Vorschau"}),v&&h.jsx("span",{className:"font-display italic text-xs text-muted-foreground",children:v})]}),h.jsx("div",{className:`p-6 overflow-auto ${f?"max-w-sm mx-auto":""}`,style:{maxHeight:"75vh"},children:h.jsx(gE,{sections:N})})]})})]})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-end justify-between mb-10 flex-wrap gap-4",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"font-headline text-5xl md:text-6xl tracking-tighter",children:"SPEISEKARTEN"}),h.jsx("p",{className:"font-body text-sm text-muted-foreground mt-2",children:"Lege saisonale Karten an und terminiere, wann sie auf der Website erscheinen."})]}),h.jsxs(st,{onClick:Q,className:"gap-2",children:[h.jsx(lc,{className:"w-4 h-4"}),"Neue Speisekarte"]})]}
240),h.jsxs("div",{className:"border-t border-foreground/10",children:[o.length===0&&h.jsx("p",{className:"py-8 text-muted-foreground font-body text-sm",children:"Noch keine Speisekarten angelegt. Erstelle deine erste Karte."}),o.map(O=>{const G=Ec(new Date,"yyyy-MM-dd"),ue=O.is_active&&O.start_date<=G&&O.end_date>=G,ae=O.start_date>G;return h.jsxs("div",{className:"py-5 border-b border-foreground/10 flex items-center justify-between gap-4 flex-wrap",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[h.jsx("h3",{className:"font-body font-medium text-base",children:O.title}),O.season_label&&h.jsx("span",{className:"font-display italic text-xs text-muted-foreground",children:O.season_label}),ue&&h.jsx("span",{className:"text-[10px] tracking-[0.15em] uppercase bg-foreground text-background px-2 py-0.5",children:"Live"}),ae&&h.jsx("span",{className:"text-[10px] tracking-[0.15em] uppercase border border-foreground/30 px-2 py-0.5",children:"Geplant"}),!O.is_active&&h.jsx("span",{className:"text-[10px] tracking-[0.15em] uppercase border border-foreground
240/30 px-2 py-0.5 text-muted-foreground",children:"Pausiert"})]}),h.jsxs("p",{className:"text-xs text-muted-foreground mt-1 font-body",children:[Ec(new Date(O.start_date),"dd.MM.yyyy")," – ",Ec(new Date(O.end_date),"dd.MM.yyyy")]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(st,{variant:"ghost",size:"sm",onClick:()=>ge(O),title:O.is_active?"Pausieren":"Aktivieren",children:O.is_active?h.jsx(kj,{className:"w-4 h-4"}):h.jsx(Sj,{className:"w-4 h-4"})}),h.jsx(st,{variant:"ghost",size:"sm",onClick:()=>Y(O),children:h.jsx(Aj,{className:"w-4 h-4"})}),h.jsx(st,{variant:"ghost",size:"sm",onClick:()=>nt(O),children:h.jsx(cc,{className:"w-4 h-4"})})]})]},O.id)})]})]})})]}):h.jsxs("main",{className:"min-h-screen flex items-center justify-center px-5 bg-background",children:[h.jsxs(Ln,{children:[h.jsx("title",{children:"Kein Zugriff – LUI Admin"}),h.jsx("meta",{name:"robots",content:"noindex"})]}),h.jsxs("div",{className:"max-w-md text-center",children:[h.jsx("h1",{className:"font-headline text-3xl tracking-tighter mb-4",children:"KEIN ZUGRIFF"}),h.jsxs("p",{className:"font-body text-sm text-muted-foreground mb-6",children:["Dein Konto (",s==null?void 0:s.email,") hat noch keine Admin-Rolle. Bitte einmalig in der Datenbank in der Tabelle ",h.jsx("code",{children:"user_roles"})," einen Eintrag mit deiner User-ID und der Rolle ",h.jsx("code",{children:"admin"})," anlegen."]}),h.jsxs("p",{className:"font-body text-xs text-muted-foreground mb-6 break-all",children:["Deine User-ID: ",h.jsx("code",{children:s==null?void 0:s.id})]}),h.jsxs("div",{className:"flex gap-3 justify-center",children:[h.jsx(st,{variant:"outline",onClick:r,children:"Abmelden"}),h.jsx(rn,{to:"/",className:"btn-invert text-xs tracking-[0.15em] uppercase px-6 py-3",children:"Zur Website"})]})]})]}):null},Vz=()=>{const t=pi();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),h.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),h.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),h.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},Wz=new QO,Hz=()=>h.jsxs(h.Fragment,{children:[h.jsx(eL,{}),h.jsxs(V2,{children:[h.jsx(Zt,{path:"/",element:h.jsx(T4,{})}),h.jsx(Zt,{path:"/impressum",element:h.jsx(C4,{})}),h.jsx(Zt,{path:"/datenschutz",element:h.jsx(A4,{})}),h.jsx(Zt,{path:"/agb",element:h.jsx(P4,{})}),h.jsx(Zt,{path:"/veranstaltungen",element:h.jsx(O4,{})}),h.jsx(Zt,{path:"/hochzeit",element:h.jsx(n5,{})}),h.jsx(Zt,{path:"/speisekarte",element:h.jsx(JU,{})}),h.jsx(Zt,{path:"/uebernachtung",element:h.jsx(ZU,{})}),h.jsx(Zt,{path:"/auth",element:h.jsx(TB,{})}),h.jsx(Zt,{path:"/admin",element:h.jsx(zz,{})}),h.jsx(Zt,{path:"*",element:h.jsx(Vz,{})})]})]}),Kz=()=>h.jsx(e2,{client:Wz,children:h.jsxs(AO,{children:[h.jsx(hR,{}),h.jsx(WR,{}),h.jsx(J2,{children:h.jsx(Hz,{})})]})});MS(document.getElementById("root")).render(h.jsx(WS,{children:h.jsx(Kz,{})}));

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.